@nxgt/material 1.13.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/abnfDiagram-O67JEVCF-mm89LXw2.js +89 -0
- package/dist/architecture-7GRP2DOG-DDr0RGVC.js +3 -0
- package/dist/architectureDiagram-NJMV4G6O-CGoA5SIv.js +4146 -0
- package/dist/array-CApNbSU9.js +6 -0
- package/dist/blockDiagram-BEXU5L5S-Dq8gitB4.js +1946 -0
- package/dist/c4Diagram-YGBWAQC7-DO_alqIu.js +2990 -0
- package/dist/channel-1fT-W0NS.js +5 -0
- package/dist/chunk-2Q5K7J3B-kzxEEeTu.js +15 -0
- package/dist/chunk-3FUC2YCW-C3yD2fMw.js +364 -0
- package/dist/chunk-5DYCD2WN-Dn2jrYde.js +37 -0
- package/dist/chunk-5VM5RSS4-Cr17nBXp.js +5 -0
- package/dist/chunk-6AEJRKK7-JyfUnUEu.js +10 -0
- package/dist/chunk-742MDFTN-BbWkrtj2.js +275 -0
- package/dist/chunk-7INBJB4K-C3x7JNTG.js +4487 -0
- package/dist/chunk-7M6MHVWA-Cc7UTu4b.js +4256 -0
- package/dist/chunk-7PRAP22T-C8rsGRvH.js +67 -0
- package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
- package/dist/chunk-FOHPRMQF-Crq0JMf2.js +21388 -0
- package/dist/chunk-GNY47TPC-d-Bi8r0p.js +75 -0
- package/dist/chunk-GTNCS2PH-CTS015lZ.js +490 -0
- package/dist/chunk-GWA4HPMP-B4pgM-E1.js +61 -0
- package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
- package/dist/chunk-JWPE2WC7-Ccb0QaC8.js +8 -0
- package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
- package/dist/chunk-MBY4JIJT-Dg6AeftH.js +1847 -0
- package/dist/chunk-NETBCI7D-TXZM0vKz.js +236 -0
- package/dist/chunk-O7XYJQB3-md6vjVm4.js +3922 -0
- package/dist/chunk-UA2S7LBM-DQTYPe9y.js +363 -0
- package/dist/chunk-WEXAMYUT-DmKWJz6y.js +26 -0
- package/dist/chunk-XXDRQBXY-C9XIYQdM.js +9 -0
- package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
- package/dist/chunk-Z7XXMR3K-BoDf6lxl.js +677 -0
- package/dist/chunk-ZIGJFQKS-CP5430fN.js +663 -0
- package/dist/classDiagram-v2-NBCMYWYE-6KoTmufe.js +3397 -0
- package/dist/components.js +3 -3
- package/dist/cose-bilkent-JH36ORCC-CejnZl_t.js +2251 -0
- package/dist/cynefin-OW5HDTMX-B8HVdZhp.js +3 -0
- package/dist/cynefinDiagram-VND7K2PF-DZnc0dlm.js +349 -0
- package/dist/cytoscape.esm-_jXi1N4y.js +18151 -0
- package/dist/dagre-6A5THRUB-cuS57NO5.js +2192 -0
- package/dist/diagram-22UHCM2B-zQSFmH0t.js +5084 -0
- package/dist/diagram-3UASUU5V-D45Fgu1j.js +724 -0
- package/dist/diagram-ATOU4E4O-YMtQnlqd.js +432 -0
- package/dist/diagram-CDSNMT55-DP7UmEW1.js +301 -0
- package/dist/diagram-MLGK6HIB-WvSqrTRC.js +134 -0
- package/dist/diagram-MPIPVDR6-C2F3__mt.js +214 -0
- package/dist/dist-1DdJvBEt.js +50 -0
- package/dist/{dist-BGGDEbJ3.js → dist-DppLdkXt.js} +2 -2
- package/dist/dnd.js +2 -2
- package/dist/ebnfDiagram-ZINNZB2B-BZC6cSiy.js +100 -0
- package/dist/elk-276RUBZZ-7DJf1MEV.js +47598 -0
- package/dist/erDiagram-OPXOYQCR-YKlEVEF0.js +1970 -0
- package/dist/eventmodeling-NTZA5JFV-C1CEo-26.js +3 -0
- package/dist/flowDiagram-KWPJA3E3-DyLvzIlg.js +17 -0
- package/dist/ganttDiagram-FUAMR5RP-KIaOrYOF.js +2928 -0
- package/dist/gitGraph-4MIJSDKK-BTeCS_5q.js +3 -0
- package/dist/gitGraphDiagram-X574FWY7-DpFW-7JE.js +729 -0
- package/dist/graphlib-DFaO_iIU.js +372 -0
- package/dist/{hooks-DReKyuyc.js → hooks-C5xy0u03.js} +1 -1
- package/dist/hooks.js +1 -1
- package/dist/{i18n-DtDrodl8.js → i18n-Cech9IAc.js} +314 -841
- package/dist/i18n.js +1 -1
- package/dist/info-A6RAGUB7-BvtuPd9C.js +3 -0
- package/dist/infoDiagram-VRGFBTTK-H3F-BCnu.js +20 -0
- package/dist/init-Buj1GKRa.js +27 -0
- package/dist/isArrayLikeObject-VG1KOJ3m.js +539 -0
- package/dist/ishikawaDiagram-OU5B5YK6-DgQDmcF3.js +719 -0
- package/dist/journeyDiagram-ZHPQQLJL-CanDOlfn.js +884 -0
- package/dist/kanban-definition-PNTS6WVX-DmnUgxgb.js +976 -0
- package/dist/katex-BMQ6LGsM.js +21962 -0
- package/dist/lib/components/index.d.ts +4 -0
- package/dist/lib/components/ui/chat/chat-composer-mentions.d.ts +8 -0
- package/dist/lib/components/ui/chat/chat-composer.d.ts +5 -1
- package/dist/lib/components/ui/chat/chat-markdown.d.ts +2 -2
- package/dist/lib/components/ui/emoji/emoji-list.d.ts +5 -0
- package/dist/lib/components/ui/emoji/emoji-picker.d.ts +7 -0
- package/dist/lib/components/ui/emoji/emoji.utils.d.ts +2 -0
- package/dist/lib/components/ui/emoji/emoji.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/emoji/index.d.ts +4 -0
- package/dist/lib/components/ui/emoji/types.d.ts +6 -0
- package/dist/lib/components/ui/entity-header.stories.d.ts +1 -0
- package/dist/lib/components/ui/kanban/kanban.stories.d.ts +1 -0
- package/dist/lib/components/ui/markdown/index.d.ts +3 -0
- package/dist/lib/components/ui/markdown/markdown.d.ts +7 -0
- package/dist/lib/components/ui/markdown/markdown.stories.d.ts +14 -0
- package/dist/lib/components/ui/markdown/markdown.test.d.ts +1 -0
- package/dist/lib/components/ui/markdown/markdown.utils.d.ts +1 -0
- package/dist/lib/components/ui/markdown/mermaid.lazy.d.ts +12 -0
- package/dist/lib/components/ui/markdown/partials/markdown-code.d.ts +2 -0
- package/dist/lib/components/ui/markdown/partials/mermaid-diagram.d.ts +4 -0
- package/dist/lib/components/ui/mentions/index.d.ts +3 -0
- package/dist/lib/components/ui/mentions/mention-list.d.ts +8 -0
- package/dist/lib/components/ui/mentions/mentions.utils.d.ts +7 -0
- package/dist/lib/components/ui/mentions/mentions.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/mentions/types.d.ts +7 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/mention/mention-list.d.ts +12 -1
- package/dist/lib/components/ui/terminal/index.d.ts +2 -0
- package/dist/lib/components/ui/terminal/terminal.d.ts +11 -0
- package/dist/lib/components/ui/terminal/terminal.stories.d.ts +14 -0
- package/dist/lib/components/ui/terminal/terminal.utils.d.ts +5 -0
- package/dist/lib/components/ui/terminal/terminal.utils.test.d.ts +1 -0
- package/dist/lib/i18n/resources/en/index.d.ts +7 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +7 -0
- package/dist/lib/i18n/resources/fr/index.d.ts +7 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +7 -0
- package/dist/lib/i18n/resources/index.d.ts +14 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/{lib-CD3tyuc8.js → lib-Bbw5QPoj.js} +472 -471
- package/dist/lib.js +2 -2
- package/dist/{main-r84Yresa.js → main-BjDU9FDM.js} +59393 -30376
- package/dist/main.js +6 -6
- package/dist/material.css +1 -1
- package/dist/math-C5EhTgJw.js +10 -0
- package/dist/mermaid-parser.core-Cz-MfB4Z.js +638 -0
- package/dist/mermaid.core-BI1sunfX.js +1096 -0
- package/dist/mindmap-definition-NLK3R4M7-DW0BIU_q.js +1008 -0
- package/dist/ordinal-DuP05kVQ.js +65 -0
- package/dist/packet-AYTQ26CC-CshIswP8.js +3 -0
- package/dist/path-Cjou0lUh.js +85 -0
- package/dist/pegDiagram-GJSIUBJH-CJIx0u4M.js +94 -0
- package/dist/pie-WAS4IAKB-CYs22y4X.js +3 -0
- package/dist/pieDiagram-5QR66LMP-zAhv5fKz.js +157 -0
- package/dist/quadrantDiagram-O4NWA36T-CO4n_yQo.js +2001 -0
- package/dist/radar-RG4KPBEZ-BOJKjbGv.js +3 -0
- package/dist/railroad-74A4TZTK-Dt1BmUkI.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-Cs9GMUMY.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-D4y0fXoW.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-D2f_ZNR5.js +3 -0
- package/dist/railroadDiagram-XR7U4H2S-B8iV7mfe.js +76 -0
- package/dist/requirementDiagram-PLB6GJNP-CGoX1NrW.js +2228 -0
- package/dist/rough.esm-rcMoXTJj.js +1352 -0
- package/dist/sankeyDiagram-IPEJSGJF-DdSM2wiI.js +962 -0
- package/dist/sequenceDiagram-PO4LG4MO-CCRqF5XO.js +4200 -0
- package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
- package/dist/src-B4npqWNl.js +1775 -0
- package/dist/stateDiagram-v2-GCMORJYK-CQTX5ks8.js +2143 -0
- package/dist/step-B6KjpKgN.js +706 -0
- package/dist/string-B-ZWXCs2.js +392 -0
- package/dist/swimlanes-2SLR337P-C2NNOb5n.js +4763 -0
- package/dist/swimlanesDiagram-TC7HE7FX-CPsqPrbP.js +28 -0
- package/dist/timeline-definition-EJHVYXUP-DuxGHv-N.js +1073 -0
- package/dist/treeView-Q6P3EWNA-BrJylG9N.js +3 -0
- package/dist/treemap-WGGIJYW6-DpIZuqbj.js +3 -0
- package/dist/usecaseDiagram-POWQR4AR-cuAeIBW3.js +9932 -0
- package/dist/vennDiagram-UO4OBE2U-DLwBSAnC.js +1880 -0
- package/dist/wardley-WFR3VGLG-CbwdAAbH.js +3 -0
- package/dist/wardleyDiagram-VNRHLVJA-D7IZU6vu.js +645 -0
- package/dist/xychartDiagram-PMCCYNJV-BDOFv_xK.js +2167 -0
- package/package.json +7 -1
|
@@ -0,0 +1,724 @@
|
|
|
1
|
+
import { n as e, t } from "./src-B4npqWNl.js";
|
|
2
|
+
import { i as n } from "./chunk-ZIGJFQKS-CP5430fN.js";
|
|
3
|
+
import { t as r } from "./ordinal-DuP05kVQ.js";
|
|
4
|
+
import { n as i } from "./mermaid-parser.core-Cz-MfB4Z.js";
|
|
5
|
+
import { n as a } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
6
|
+
import { D as o, H as s, U as c, a as l, b as u, c as d, f, q as p, v as m, w as h, y as g } from "./chunk-O7XYJQB3-md6vjVm4.js";
|
|
7
|
+
import { t as _ } from "./chunk-6AEJRKK7-JyfUnUEu.js";
|
|
8
|
+
import { t as v } from "./chunk-JWPE2WC7-Ccb0QaC8.js";
|
|
9
|
+
import { i as y, n as b } from "./chunk-7PRAP22T-C8rsGRvH.js";
|
|
10
|
+
import { t as x } from "./chunk-WEXAMYUT-DmKWJz6y.js";
|
|
11
|
+
//#region node_modules/d3/node_modules/d3-format/src/formatDecimal.js
|
|
12
|
+
function S(e) {
|
|
13
|
+
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
|
|
14
|
+
}
|
|
15
|
+
function C(e, t) {
|
|
16
|
+
if (!isFinite(e) || e === 0) return null;
|
|
17
|
+
var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
|
|
18
|
+
return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region node_modules/d3/node_modules/d3-format/src/exponent.js
|
|
22
|
+
function w(e) {
|
|
23
|
+
return e = C(Math.abs(e)), e ? e[1] : NaN;
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region node_modules/d3/node_modules/d3-format/src/formatGroup.js
|
|
27
|
+
function T(e, t) {
|
|
28
|
+
return function(n, r) {
|
|
29
|
+
for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
|
|
30
|
+
return a.reverse().join(t);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region node_modules/d3/node_modules/d3-format/src/formatNumerals.js
|
|
35
|
+
function E(e) {
|
|
36
|
+
return function(t) {
|
|
37
|
+
return t.replace(/[0-9]/g, function(t) {
|
|
38
|
+
return e[+t];
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region node_modules/d3/node_modules/d3-format/src/formatSpecifier.js
|
|
44
|
+
var D = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
45
|
+
function O(e) {
|
|
46
|
+
if (!(t = D.exec(e))) throw Error("invalid format: " + e);
|
|
47
|
+
var t;
|
|
48
|
+
return new k({
|
|
49
|
+
fill: t[1],
|
|
50
|
+
align: t[2],
|
|
51
|
+
sign: t[3],
|
|
52
|
+
symbol: t[4],
|
|
53
|
+
zero: t[5],
|
|
54
|
+
width: t[6],
|
|
55
|
+
comma: t[7],
|
|
56
|
+
precision: t[8] && t[8].slice(1),
|
|
57
|
+
trim: t[9],
|
|
58
|
+
type: t[10]
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
O.prototype = k.prototype;
|
|
62
|
+
function k(e) {
|
|
63
|
+
this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
|
|
64
|
+
}
|
|
65
|
+
k.prototype.toString = function() {
|
|
66
|
+
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
|
67
|
+
};
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region node_modules/d3/node_modules/d3-format/src/formatTrim.js
|
|
70
|
+
function A(e) {
|
|
71
|
+
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
|
|
72
|
+
case ".":
|
|
73
|
+
r = i = n;
|
|
74
|
+
break;
|
|
75
|
+
case "0":
|
|
76
|
+
r === 0 && (r = n), i = n;
|
|
77
|
+
break;
|
|
78
|
+
default:
|
|
79
|
+
if (!+e[n]) break out;
|
|
80
|
+
r > 0 && (r = 0);
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region node_modules/d3/node_modules/d3-format/src/formatPrefixAuto.js
|
|
87
|
+
var j;
|
|
88
|
+
function M(e, t) {
|
|
89
|
+
var n = C(e, t);
|
|
90
|
+
if (!n) return j = void 0, e.toPrecision(t);
|
|
91
|
+
var r = n[0], i = n[1], a = i - (j = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
|
|
92
|
+
return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + C(e, Math.max(0, t + a - 1))[0];
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region node_modules/d3/node_modules/d3-format/src/formatRounded.js
|
|
96
|
+
function N(e, t) {
|
|
97
|
+
var n = C(e, t);
|
|
98
|
+
if (!n) return e + "";
|
|
99
|
+
var r = n[0], i = n[1];
|
|
100
|
+
return i < 0 ? "0." + Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + Array(i - r.length + 2).join("0");
|
|
101
|
+
}
|
|
102
|
+
//#endregion
|
|
103
|
+
//#region node_modules/d3/node_modules/d3-format/src/formatTypes.js
|
|
104
|
+
var P = {
|
|
105
|
+
"%": (e, t) => (e * 100).toFixed(t),
|
|
106
|
+
b: (e) => Math.round(e).toString(2),
|
|
107
|
+
c: (e) => e + "",
|
|
108
|
+
d: S,
|
|
109
|
+
e: (e, t) => e.toExponential(t),
|
|
110
|
+
f: (e, t) => e.toFixed(t),
|
|
111
|
+
g: (e, t) => e.toPrecision(t),
|
|
112
|
+
o: (e) => Math.round(e).toString(8),
|
|
113
|
+
p: (e, t) => N(e * 100, t),
|
|
114
|
+
r: N,
|
|
115
|
+
s: M,
|
|
116
|
+
X: (e) => Math.round(e).toString(16).toUpperCase(),
|
|
117
|
+
x: (e) => Math.round(e).toString(16)
|
|
118
|
+
};
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region node_modules/d3/node_modules/d3-format/src/identity.js
|
|
121
|
+
function F(e) {
|
|
122
|
+
return e;
|
|
123
|
+
}
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region node_modules/d3/node_modules/d3-format/src/locale.js
|
|
126
|
+
var I = Array.prototype.map, L = [
|
|
127
|
+
"y",
|
|
128
|
+
"z",
|
|
129
|
+
"a",
|
|
130
|
+
"f",
|
|
131
|
+
"p",
|
|
132
|
+
"n",
|
|
133
|
+
"µ",
|
|
134
|
+
"m",
|
|
135
|
+
"",
|
|
136
|
+
"k",
|
|
137
|
+
"M",
|
|
138
|
+
"G",
|
|
139
|
+
"T",
|
|
140
|
+
"P",
|
|
141
|
+
"E",
|
|
142
|
+
"Z",
|
|
143
|
+
"Y"
|
|
144
|
+
];
|
|
145
|
+
function R(e) {
|
|
146
|
+
var t = e.grouping === void 0 || e.thousands === void 0 ? F : T(I.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? F : E(I.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
|
|
147
|
+
function l(e, l) {
|
|
148
|
+
e = O(e);
|
|
149
|
+
var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, g = e.comma, _ = e.precision, v = e.trim, y = e.type;
|
|
150
|
+
y === "n" ? (g = !0, y = "g") : P[y] || (_ === void 0 && (_ = 12), v = !0, y = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
|
|
151
|
+
var b = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : ""), x = (p === "$" ? r : /[%p]/.test(y) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), S = P[y], C = /[defgprs%]/.test(y);
|
|
152
|
+
_ = _ === void 0 ? 6 : /[gprs]/.test(y) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
|
|
153
|
+
function w(e) {
|
|
154
|
+
var n = b, r = x, o, l, p;
|
|
155
|
+
if (y === "c") r = S(e) + r, e = "";
|
|
156
|
+
else {
|
|
157
|
+
e = +e;
|
|
158
|
+
var w = e < 0 || 1 / e < 0;
|
|
159
|
+
if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = A(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && j !== void 0 ? L[8 + j / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {
|
|
160
|
+
for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {
|
|
161
|
+
r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
g && !m && (e = t(e, Infinity));
|
|
167
|
+
var T = n.length + e.length + r.length, E = T < h ? Array(h - T + 1).join(u) : "";
|
|
168
|
+
switch (g && m && (e = t(E + e, E.length ? h - r.length : Infinity), E = ""), d) {
|
|
169
|
+
case "<":
|
|
170
|
+
e = n + e + r + E;
|
|
171
|
+
break;
|
|
172
|
+
case "=":
|
|
173
|
+
e = n + E + e + r;
|
|
174
|
+
break;
|
|
175
|
+
case "^":
|
|
176
|
+
e = E.slice(0, T = E.length >> 1) + n + e + r + E.slice(T);
|
|
177
|
+
break;
|
|
178
|
+
default:
|
|
179
|
+
e = E + n + e + r;
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
return a(e);
|
|
183
|
+
}
|
|
184
|
+
return w.toString = function() {
|
|
185
|
+
return e + "";
|
|
186
|
+
}, w;
|
|
187
|
+
}
|
|
188
|
+
function u(e, t) {
|
|
189
|
+
var n = Math.max(-8, Math.min(8, Math.floor(w(t) / 3))) * 3, r = 10 ** -n, i = l((e = O(e), e.type = "f", e), { suffix: L[8 + n / 3] });
|
|
190
|
+
return function(e) {
|
|
191
|
+
return i(r * e);
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
return {
|
|
195
|
+
format: l,
|
|
196
|
+
formatPrefix: u
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
//#endregion
|
|
200
|
+
//#region node_modules/d3/node_modules/d3-format/src/defaultLocale.js
|
|
201
|
+
var z, B;
|
|
202
|
+
V({
|
|
203
|
+
thousands: ",",
|
|
204
|
+
grouping: [3],
|
|
205
|
+
currency: ["$", ""]
|
|
206
|
+
});
|
|
207
|
+
function V(e) {
|
|
208
|
+
return z = R(e), B = z.format, z.formatPrefix, z;
|
|
209
|
+
}
|
|
210
|
+
//#endregion
|
|
211
|
+
//#region node_modules/d3-hierarchy/src/hierarchy/count.js
|
|
212
|
+
function H(e) {
|
|
213
|
+
var t = 0, n = e.children, r = n && n.length;
|
|
214
|
+
if (!r) t = 1;
|
|
215
|
+
else for (; --r >= 0;) t += n[r].value;
|
|
216
|
+
e.value = t;
|
|
217
|
+
}
|
|
218
|
+
function U() {
|
|
219
|
+
return this.eachAfter(H);
|
|
220
|
+
}
|
|
221
|
+
//#endregion
|
|
222
|
+
//#region node_modules/d3-hierarchy/src/hierarchy/each.js
|
|
223
|
+
function W(e, t) {
|
|
224
|
+
let n = -1;
|
|
225
|
+
for (let r of this) e.call(t, r, ++n, this);
|
|
226
|
+
return this;
|
|
227
|
+
}
|
|
228
|
+
//#endregion
|
|
229
|
+
//#region node_modules/d3-hierarchy/src/hierarchy/eachBefore.js
|
|
230
|
+
function ee(e, t) {
|
|
231
|
+
for (var n = this, r = [n], i, a, o = -1; n = r.pop();) if (e.call(t, n, ++o, this), i = n.children) for (a = i.length - 1; a >= 0; --a) r.push(i[a]);
|
|
232
|
+
return this;
|
|
233
|
+
}
|
|
234
|
+
//#endregion
|
|
235
|
+
//#region node_modules/d3-hierarchy/src/hierarchy/eachAfter.js
|
|
236
|
+
function te(e, t) {
|
|
237
|
+
for (var n = this, r = [n], i = [], a, o, s, c = -1; n = r.pop();) if (i.push(n), a = n.children) for (o = 0, s = a.length; o < s; ++o) r.push(a[o]);
|
|
238
|
+
for (; n = i.pop();) e.call(t, n, ++c, this);
|
|
239
|
+
return this;
|
|
240
|
+
}
|
|
241
|
+
//#endregion
|
|
242
|
+
//#region node_modules/d3-hierarchy/src/hierarchy/find.js
|
|
243
|
+
function ne(e, t) {
|
|
244
|
+
let n = -1;
|
|
245
|
+
for (let r of this) if (e.call(t, r, ++n, this)) return r;
|
|
246
|
+
}
|
|
247
|
+
//#endregion
|
|
248
|
+
//#region node_modules/d3-hierarchy/src/hierarchy/sum.js
|
|
249
|
+
function re(e) {
|
|
250
|
+
return this.eachAfter(function(t) {
|
|
251
|
+
for (var n = +e(t.data) || 0, r = t.children, i = r && r.length; --i >= 0;) n += r[i].value;
|
|
252
|
+
t.value = n;
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
//#endregion
|
|
256
|
+
//#region node_modules/d3-hierarchy/src/hierarchy/sort.js
|
|
257
|
+
function ie(e) {
|
|
258
|
+
return this.eachBefore(function(t) {
|
|
259
|
+
t.children && t.children.sort(e);
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
//#endregion
|
|
263
|
+
//#region node_modules/d3-hierarchy/src/hierarchy/path.js
|
|
264
|
+
function ae(e) {
|
|
265
|
+
for (var t = this, n = oe(t, e), r = [t]; t !== n;) t = t.parent, r.push(t);
|
|
266
|
+
for (var i = r.length; e !== n;) r.splice(i, 0, e), e = e.parent;
|
|
267
|
+
return r;
|
|
268
|
+
}
|
|
269
|
+
function oe(e, t) {
|
|
270
|
+
if (e === t) return e;
|
|
271
|
+
var n = e.ancestors(), r = t.ancestors(), i = null;
|
|
272
|
+
for (e = n.pop(), t = r.pop(); e === t;) i = e, e = n.pop(), t = r.pop();
|
|
273
|
+
return i;
|
|
274
|
+
}
|
|
275
|
+
//#endregion
|
|
276
|
+
//#region node_modules/d3-hierarchy/src/hierarchy/ancestors.js
|
|
277
|
+
function se() {
|
|
278
|
+
for (var e = this, t = [e]; e = e.parent;) t.push(e);
|
|
279
|
+
return t;
|
|
280
|
+
}
|
|
281
|
+
//#endregion
|
|
282
|
+
//#region node_modules/d3-hierarchy/src/hierarchy/descendants.js
|
|
283
|
+
function ce() {
|
|
284
|
+
return Array.from(this);
|
|
285
|
+
}
|
|
286
|
+
//#endregion
|
|
287
|
+
//#region node_modules/d3-hierarchy/src/hierarchy/leaves.js
|
|
288
|
+
function le() {
|
|
289
|
+
var e = [];
|
|
290
|
+
return this.eachBefore(function(t) {
|
|
291
|
+
t.children || e.push(t);
|
|
292
|
+
}), e;
|
|
293
|
+
}
|
|
294
|
+
//#endregion
|
|
295
|
+
//#region node_modules/d3-hierarchy/src/hierarchy/links.js
|
|
296
|
+
function ue() {
|
|
297
|
+
var e = this, t = [];
|
|
298
|
+
return e.each(function(n) {
|
|
299
|
+
n !== e && t.push({
|
|
300
|
+
source: n.parent,
|
|
301
|
+
target: n
|
|
302
|
+
});
|
|
303
|
+
}), t;
|
|
304
|
+
}
|
|
305
|
+
//#endregion
|
|
306
|
+
//#region node_modules/d3-hierarchy/src/hierarchy/iterator.js
|
|
307
|
+
function* de() {
|
|
308
|
+
var e = this, t, n = [e], r, i, a;
|
|
309
|
+
do
|
|
310
|
+
for (t = n.reverse(), n = []; e = t.pop();) if (yield e, r = e.children) for (i = 0, a = r.length; i < a; ++i) n.push(r[i]);
|
|
311
|
+
while (n.length);
|
|
312
|
+
}
|
|
313
|
+
//#endregion
|
|
314
|
+
//#region node_modules/d3-hierarchy/src/hierarchy/index.js
|
|
315
|
+
function G(e, t) {
|
|
316
|
+
e instanceof Map ? (e = [void 0, e], t === void 0 && (t = me)) : t === void 0 && (t = pe);
|
|
317
|
+
for (var n = new K(e), r, i = [n], a, o, s, c; r = i.pop();) if ((o = t(r.data)) && (c = (o = Array.from(o)).length)) for (r.children = o, s = c - 1; s >= 0; --s) i.push(a = o[s] = new K(o[s])), a.parent = r, a.depth = r.depth + 1;
|
|
318
|
+
return n.eachBefore(ge);
|
|
319
|
+
}
|
|
320
|
+
function fe() {
|
|
321
|
+
return G(this).eachBefore(he);
|
|
322
|
+
}
|
|
323
|
+
function pe(e) {
|
|
324
|
+
return e.children;
|
|
325
|
+
}
|
|
326
|
+
function me(e) {
|
|
327
|
+
return Array.isArray(e) ? e[1] : null;
|
|
328
|
+
}
|
|
329
|
+
function he(e) {
|
|
330
|
+
e.data.value !== void 0 && (e.value = e.data.value), e.data = e.data.data;
|
|
331
|
+
}
|
|
332
|
+
function ge(e) {
|
|
333
|
+
var t = 0;
|
|
334
|
+
do
|
|
335
|
+
e.height = t;
|
|
336
|
+
while ((e = e.parent) && e.height < ++t);
|
|
337
|
+
}
|
|
338
|
+
function K(e) {
|
|
339
|
+
this.data = e, this.depth = this.height = 0, this.parent = null;
|
|
340
|
+
}
|
|
341
|
+
K.prototype = G.prototype = {
|
|
342
|
+
constructor: K,
|
|
343
|
+
count: U,
|
|
344
|
+
each: W,
|
|
345
|
+
eachAfter: te,
|
|
346
|
+
eachBefore: ee,
|
|
347
|
+
find: ne,
|
|
348
|
+
sum: re,
|
|
349
|
+
sort: ie,
|
|
350
|
+
path: ae,
|
|
351
|
+
ancestors: se,
|
|
352
|
+
descendants: ce,
|
|
353
|
+
leaves: le,
|
|
354
|
+
links: ue,
|
|
355
|
+
copy: fe,
|
|
356
|
+
[Symbol.iterator]: de
|
|
357
|
+
};
|
|
358
|
+
//#endregion
|
|
359
|
+
//#region node_modules/d3-hierarchy/src/accessors.js
|
|
360
|
+
function _e(e) {
|
|
361
|
+
if (typeof e != "function") throw Error();
|
|
362
|
+
return e;
|
|
363
|
+
}
|
|
364
|
+
//#endregion
|
|
365
|
+
//#region node_modules/d3-hierarchy/src/constant.js
|
|
366
|
+
function q() {
|
|
367
|
+
return 0;
|
|
368
|
+
}
|
|
369
|
+
function J(e) {
|
|
370
|
+
return function() {
|
|
371
|
+
return e;
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
//#endregion
|
|
375
|
+
//#region node_modules/d3-hierarchy/src/treemap/round.js
|
|
376
|
+
function ve(e) {
|
|
377
|
+
e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
|
|
378
|
+
}
|
|
379
|
+
//#endregion
|
|
380
|
+
//#region node_modules/d3-hierarchy/src/treemap/dice.js
|
|
381
|
+
function ye(e, t, n, r, i) {
|
|
382
|
+
for (var a = e.children, o, s = -1, c = a.length, l = e.value && (r - t) / e.value; ++s < c;) o = a[s], o.y0 = n, o.y1 = i, o.x0 = t, o.x1 = t += o.value * l;
|
|
383
|
+
}
|
|
384
|
+
//#endregion
|
|
385
|
+
//#region node_modules/d3-hierarchy/src/treemap/slice.js
|
|
386
|
+
function be(e, t, n, r, i) {
|
|
387
|
+
for (var a = e.children, o, s = -1, c = a.length, l = e.value && (i - n) / e.value; ++s < c;) o = a[s], o.x0 = t, o.x1 = r, o.y0 = n, o.y1 = n += o.value * l;
|
|
388
|
+
}
|
|
389
|
+
//#endregion
|
|
390
|
+
//#region node_modules/d3-hierarchy/src/treemap/squarify.js
|
|
391
|
+
var xe = (1 + Math.sqrt(5)) / 2;
|
|
392
|
+
function Se(e, t, n, r, i, a) {
|
|
393
|
+
for (var o = [], s = t.children, c, l, u = 0, d = 0, f = s.length, p, m, h = t.value, g, _, v, y, b, x, S; u < f;) {
|
|
394
|
+
p = i - n, m = a - r;
|
|
395
|
+
do
|
|
396
|
+
g = s[d++].value;
|
|
397
|
+
while (!g && d < f);
|
|
398
|
+
for (_ = v = g, x = Math.max(m / p, p / m) / (h * e), S = g * g * x, b = Math.max(v / S, S / _); d < f; ++d) {
|
|
399
|
+
if (g += l = s[d].value, l < _ && (_ = l), l > v && (v = l), S = g * g * x, y = Math.max(v / S, S / _), y > b) {
|
|
400
|
+
g -= l;
|
|
401
|
+
break;
|
|
402
|
+
}
|
|
403
|
+
b = y;
|
|
404
|
+
}
|
|
405
|
+
o.push(c = {
|
|
406
|
+
value: g,
|
|
407
|
+
dice: p < m,
|
|
408
|
+
children: s.slice(u, d)
|
|
409
|
+
}), c.dice ? ye(c, n, r, i, h ? r += m * g / h : a) : be(c, n, r, h ? n += p * g / h : i, a), h -= g, u = d;
|
|
410
|
+
}
|
|
411
|
+
return o;
|
|
412
|
+
}
|
|
413
|
+
var Ce = (function e(t) {
|
|
414
|
+
function n(e, n, r, i, a) {
|
|
415
|
+
Se(t, e, n, r, i, a);
|
|
416
|
+
}
|
|
417
|
+
return n.ratio = function(t) {
|
|
418
|
+
return e((t = +t) > 1 ? t : 1);
|
|
419
|
+
}, n;
|
|
420
|
+
})(xe);
|
|
421
|
+
//#endregion
|
|
422
|
+
//#region node_modules/d3-hierarchy/src/treemap/index.js
|
|
423
|
+
function we() {
|
|
424
|
+
var e = Ce, t = !1, n = 1, r = 1, i = [0], a = q, o = q, s = q, c = q, l = q;
|
|
425
|
+
function u(e) {
|
|
426
|
+
return e.x0 = e.y0 = 0, e.x1 = n, e.y1 = r, e.eachBefore(d), i = [0], t && e.eachBefore(ve), e;
|
|
427
|
+
}
|
|
428
|
+
function d(t) {
|
|
429
|
+
var n = i[t.depth], r = t.x0 + n, u = t.y0 + n, d = t.x1 - n, f = t.y1 - n;
|
|
430
|
+
d < r && (r = d = (r + d) / 2), f < u && (u = f = (u + f) / 2), t.x0 = r, t.y0 = u, t.x1 = d, t.y1 = f, t.children && (n = i[t.depth + 1] = a(t) / 2, r += l(t) - n, u += o(t) - n, d -= s(t) - n, f -= c(t) - n, d < r && (r = d = (r + d) / 2), f < u && (u = f = (u + f) / 2), e(t, r, u, d, f));
|
|
431
|
+
}
|
|
432
|
+
return u.round = function(e) {
|
|
433
|
+
return arguments.length ? (t = !!e, u) : t;
|
|
434
|
+
}, u.size = function(e) {
|
|
435
|
+
return arguments.length ? (n = +e[0], r = +e[1], u) : [n, r];
|
|
436
|
+
}, u.tile = function(t) {
|
|
437
|
+
return arguments.length ? (e = _e(t), u) : e;
|
|
438
|
+
}, u.padding = function(e) {
|
|
439
|
+
return arguments.length ? u.paddingInner(e).paddingOuter(e) : u.paddingInner();
|
|
440
|
+
}, u.paddingInner = function(e) {
|
|
441
|
+
return arguments.length ? (a = typeof e == "function" ? e : J(+e), u) : a;
|
|
442
|
+
}, u.paddingOuter = function(e) {
|
|
443
|
+
return arguments.length ? u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e) : u.paddingTop();
|
|
444
|
+
}, u.paddingTop = function(e) {
|
|
445
|
+
return arguments.length ? (o = typeof e == "function" ? e : J(+e), u) : o;
|
|
446
|
+
}, u.paddingRight = function(e) {
|
|
447
|
+
return arguments.length ? (s = typeof e == "function" ? e : J(+e), u) : s;
|
|
448
|
+
}, u.paddingBottom = function(e) {
|
|
449
|
+
return arguments.length ? (c = typeof e == "function" ? e : J(+e), u) : c;
|
|
450
|
+
}, u.paddingLeft = function(e) {
|
|
451
|
+
return arguments.length ? (l = typeof e == "function" ? e : J(+e), u) : l;
|
|
452
|
+
}, u;
|
|
453
|
+
}
|
|
454
|
+
//#endregion
|
|
455
|
+
//#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-3UASUU5V.mjs
|
|
456
|
+
var Y = class {
|
|
457
|
+
constructor() {
|
|
458
|
+
this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = c, this.getAccTitle = g, this.setDiagramTitle = p, this.getDiagramTitle = h, this.getAccDescription = m, this.setAccDescription = s;
|
|
459
|
+
}
|
|
460
|
+
static {
|
|
461
|
+
a(this, "TreeMapDB");
|
|
462
|
+
}
|
|
463
|
+
getNodes() {
|
|
464
|
+
return this.nodes;
|
|
465
|
+
}
|
|
466
|
+
getConfig() {
|
|
467
|
+
let e = f, t = u();
|
|
468
|
+
return n({
|
|
469
|
+
...e.treemap,
|
|
470
|
+
...t.treemap ?? {}
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
addNode(e, t) {
|
|
474
|
+
this.nodes.push(e), this.levels.set(e, t), t === 0 && (this.outerNodes.push(e), this.root ??= e);
|
|
475
|
+
}
|
|
476
|
+
getRoot() {
|
|
477
|
+
return {
|
|
478
|
+
name: "",
|
|
479
|
+
children: this.outerNodes
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
addClass(e, t) {
|
|
483
|
+
let n = this.classes.get(e) ?? {
|
|
484
|
+
id: e,
|
|
485
|
+
styles: [],
|
|
486
|
+
textStyles: []
|
|
487
|
+
}, r = t.replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
|
|
488
|
+
r && r.forEach((e) => {
|
|
489
|
+
b(e) && (n?.textStyles ? n.textStyles.push(e) : n.textStyles = [e]), n?.styles ? n.styles.push(e) : n.styles = [e];
|
|
490
|
+
}), this.classes.set(e, n);
|
|
491
|
+
}
|
|
492
|
+
getClasses() {
|
|
493
|
+
return this.classes;
|
|
494
|
+
}
|
|
495
|
+
getStylesForClass(e) {
|
|
496
|
+
return this.classes.get(e)?.styles ?? [];
|
|
497
|
+
}
|
|
498
|
+
clear() {
|
|
499
|
+
l(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
|
|
500
|
+
}
|
|
501
|
+
};
|
|
502
|
+
function X(e) {
|
|
503
|
+
if (!e.length) return [];
|
|
504
|
+
let t = [], n = [];
|
|
505
|
+
return e.forEach((e) => {
|
|
506
|
+
let r = {
|
|
507
|
+
name: e.name,
|
|
508
|
+
children: e.type === "Leaf" ? void 0 : []
|
|
509
|
+
};
|
|
510
|
+
for (r.classSelector = e?.classSelector, e?.cssCompiledStyles && (r.cssCompiledStyles = e.cssCompiledStyles), e.type === "Leaf" && e.value !== void 0 && (r.value = e.value); n.length > 0 && n[n.length - 1].level >= e.level;) n.pop();
|
|
511
|
+
if (n.length === 0) t.push(r);
|
|
512
|
+
else {
|
|
513
|
+
let e = n[n.length - 1].node;
|
|
514
|
+
e.children ? e.children.push(r) : e.children = [r];
|
|
515
|
+
}
|
|
516
|
+
e.type !== "Leaf" && n.push({
|
|
517
|
+
node: r,
|
|
518
|
+
level: e.level
|
|
519
|
+
});
|
|
520
|
+
}), t;
|
|
521
|
+
}
|
|
522
|
+
a(X, "buildHierarchy");
|
|
523
|
+
var Te = /* @__PURE__ */ a((e, t) => {
|
|
524
|
+
v(e, t);
|
|
525
|
+
let n = [];
|
|
526
|
+
for (let n of e.TreemapRows ?? []) n.$type === "ClassDefStatement" && t.addClass(n.className ?? "", n.styleText ?? "");
|
|
527
|
+
for (let r of e.TreemapRows ?? []) {
|
|
528
|
+
let e = r.item;
|
|
529
|
+
if (!e) continue;
|
|
530
|
+
let i = r.indent ? parseInt(r.indent) : 0, a = Ee(e), o = e.classSelector ? t.getStylesForClass(e.classSelector) : [], s = o.length > 0 ? o : void 0, c = {
|
|
531
|
+
level: i,
|
|
532
|
+
name: a,
|
|
533
|
+
type: e.$type,
|
|
534
|
+
value: e.value,
|
|
535
|
+
classSelector: e.classSelector,
|
|
536
|
+
cssCompiledStyles: s
|
|
537
|
+
};
|
|
538
|
+
n.push(c);
|
|
539
|
+
}
|
|
540
|
+
let r = X(n), i = /* @__PURE__ */ a((e, n) => {
|
|
541
|
+
for (let r of e) t.addNode(r, n), r.children && r.children.length > 0 && i(r.children, n + 1);
|
|
542
|
+
}, "addNodesRecursively");
|
|
543
|
+
i(r, 0);
|
|
544
|
+
}, "populate"), Ee = /* @__PURE__ */ a((e) => e.name ? String(e.name) : "", "getItemName"), Z = {
|
|
545
|
+
parser: { yy: void 0 },
|
|
546
|
+
parse: /* @__PURE__ */ a(async (t) => {
|
|
547
|
+
try {
|
|
548
|
+
let n = await i("treemap", t);
|
|
549
|
+
e.debug("Treemap AST:", n);
|
|
550
|
+
let r = Z.parser?.yy;
|
|
551
|
+
if (!(r instanceof Y)) throw Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");
|
|
552
|
+
Te(n, r);
|
|
553
|
+
} catch (t) {
|
|
554
|
+
throw e.error("Error parsing treemap:", t), t;
|
|
555
|
+
}
|
|
556
|
+
}, "parse")
|
|
557
|
+
}, De = 10, Q = 10, $ = 25, Oe = {
|
|
558
|
+
draw: /* @__PURE__ */ a((n, i, o, s) => {
|
|
559
|
+
let c = s.db, l = c.getConfig(), f = l.padding ?? De, p = c.getDiagramTitle(), m = c.getRoot(), { themeVariables: h } = u();
|
|
560
|
+
if (!m) return;
|
|
561
|
+
let g = p ? 30 : 0, v = _(i), b = l.nodeWidth ? l.nodeWidth * Q : 960, S = l.nodeHeight ? l.nodeHeight * Q : 500, C = b, w = S + g;
|
|
562
|
+
v.attr("viewBox", `0 0 ${C} ${w}`), d(v, w, C, l.useMaxWidth);
|
|
563
|
+
let T;
|
|
564
|
+
try {
|
|
565
|
+
let e = l.valueFormat || ",";
|
|
566
|
+
if (e === "$0,0") T = /* @__PURE__ */ a((e) => "$" + B(",")(e), "valueFormat");
|
|
567
|
+
else if (e.startsWith("$") && e.includes(",")) {
|
|
568
|
+
let t = /\.\d+/.exec(e), n = t ? t[0] : "";
|
|
569
|
+
T = /* @__PURE__ */ a((e) => "$" + B("," + n)(e), "valueFormat");
|
|
570
|
+
} else if (e.startsWith("$")) {
|
|
571
|
+
let t = e.substring(1);
|
|
572
|
+
T = /* @__PURE__ */ a((e) => "$" + B(t || "")(e), "valueFormat");
|
|
573
|
+
} else T = B(e);
|
|
574
|
+
} catch (t) {
|
|
575
|
+
e.error("Error creating format function:", t), T = B(",");
|
|
576
|
+
}
|
|
577
|
+
let E = r().range([
|
|
578
|
+
"transparent",
|
|
579
|
+
h.cScale0,
|
|
580
|
+
h.cScale1,
|
|
581
|
+
h.cScale2,
|
|
582
|
+
h.cScale3,
|
|
583
|
+
h.cScale4,
|
|
584
|
+
h.cScale5,
|
|
585
|
+
h.cScale6,
|
|
586
|
+
h.cScale7,
|
|
587
|
+
h.cScale8,
|
|
588
|
+
h.cScale9,
|
|
589
|
+
h.cScale10,
|
|
590
|
+
h.cScale11
|
|
591
|
+
]), D = r().range([
|
|
592
|
+
"transparent",
|
|
593
|
+
h.cScalePeer0,
|
|
594
|
+
h.cScalePeer1,
|
|
595
|
+
h.cScalePeer2,
|
|
596
|
+
h.cScalePeer3,
|
|
597
|
+
h.cScalePeer4,
|
|
598
|
+
h.cScalePeer5,
|
|
599
|
+
h.cScalePeer6,
|
|
600
|
+
h.cScalePeer7,
|
|
601
|
+
h.cScalePeer8,
|
|
602
|
+
h.cScalePeer9,
|
|
603
|
+
h.cScalePeer10,
|
|
604
|
+
h.cScalePeer11
|
|
605
|
+
]), O = r().range([
|
|
606
|
+
h.cScaleLabel0,
|
|
607
|
+
h.cScaleLabel1,
|
|
608
|
+
h.cScaleLabel2,
|
|
609
|
+
h.cScaleLabel3,
|
|
610
|
+
h.cScaleLabel4,
|
|
611
|
+
h.cScaleLabel5,
|
|
612
|
+
h.cScaleLabel6,
|
|
613
|
+
h.cScaleLabel7,
|
|
614
|
+
h.cScaleLabel8,
|
|
615
|
+
h.cScaleLabel9,
|
|
616
|
+
h.cScaleLabel10,
|
|
617
|
+
h.cScaleLabel11
|
|
618
|
+
]);
|
|
619
|
+
p && v.append("text").attr("x", C / 2).attr("y", g / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(p);
|
|
620
|
+
let k = v.append("g").attr("transform", `translate(0, ${g})`).attr("class", "treemapContainer"), A = G(m).sum((e) => e.value ?? 0).sort((e, t) => (t.value ?? 0) - (e.value ?? 0)), j = we().size([b, S]).paddingTop((e) => e.children && e.children.length > 0 ? $ + Q : 0).paddingInner(f).paddingLeft((e) => e.children && e.children.length > 0 ? Q : 0).paddingRight((e) => e.children && e.children.length > 0 ? Q : 0).paddingBottom((e) => e.children && e.children.length > 0 ? Q : 0).round(!0)(A), M = j.descendants().filter((e) => e.children && e.children.length > 0), N = k.selectAll(".treemapSection").data(M).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
|
|
621
|
+
N.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", $).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", .6).attr("stroke-width", .6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), N.append("clipPath").attr("id", (e, t) => `clip-section-${i}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", $), N.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, t) => `treemapSection section${t}`).attr("fill", (e) => E(e.data.name)).attr("fill-opacity", .6).attr("stroke", (e) => D(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", .4).attr("style", (e) => {
|
|
622
|
+
if (e.depth === 0) return "display: none;";
|
|
623
|
+
let t = y({ cssCompiledStyles: e.data.cssCompiledStyles });
|
|
624
|
+
return t.nodeStyles + ";" + t.borderStyles.join(";");
|
|
625
|
+
}), N.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", $ / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("clip-path", (e, t) => `url(#clip-section-${i}-${t})`).attr("style", (e) => e.depth === 0 ? "display: none;" : "dominant-baseline: middle; font-size: 12px; fill:" + O(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + y({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).each(function(e) {
|
|
626
|
+
if (e.depth === 0) return;
|
|
627
|
+
let n = t(this), r = e.data.name;
|
|
628
|
+
n.text(r);
|
|
629
|
+
let i = e.x1 - e.x0, a;
|
|
630
|
+
a = l.showValues !== !1 && e.value ? i - 10 - 30 - 10 - 6 : i - 6 - 6;
|
|
631
|
+
let o = Math.max(15, a), s = n.node();
|
|
632
|
+
if (s.getComputedTextLength() > o) {
|
|
633
|
+
let e = r;
|
|
634
|
+
for (; e.length > 0;) {
|
|
635
|
+
if (e = r.substring(0, e.length - 1), e.length === 0) {
|
|
636
|
+
n.text("..."), s.getComputedTextLength() > o && n.text("");
|
|
637
|
+
break;
|
|
638
|
+
}
|
|
639
|
+
if (n.text(e + "..."), s.getComputedTextLength() <= o) break;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
}), l.showValues !== !1 && N.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", $ / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? T(e.value) : "").attr("font-style", "italic").attr("style", (e) => e.depth === 0 ? "display: none;" : "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + O(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + y({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:"));
|
|
643
|
+
let P = j.leaves(), F = P.length > 20, I = F ? 16 : 38, L = F ? 14 : 28, R = F ? 4 : 8, z = F ? 4 : 6, V = F ? 2 : 4, H = F ? 8 : 10, U = F ? 1 : 2, W = k.selectAll(".treemapLeafGroup").data(P).enter().append("g").attr("class", (e, t) => `treemapNode treemapLeafGroup leaf${t}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
|
|
644
|
+
W.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? E(e.parent.data.name) : E(e.data.name)).attr("style", (e) => y({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", .3).attr("stroke", (e) => e.parent ? E(e.parent.data.name) : E(e.data.name)).attr("stroke-width", 3), W.append("clipPath").attr("id", (e, t) => `clip-${i}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), W.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => `text-anchor: middle; dominant-baseline: middle; font-size: ${I}px;fill:` + O(e.data.name) + ";" + y({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, t) => `url(#clip-${i}-${t})`).text((e) => e.data.name).each(function(e) {
|
|
645
|
+
let n = t(this), r = e.x1 - e.x0, i = e.y1 - e.y0, a = n.node(), o = r - 2 * V, s = i - 2 * V;
|
|
646
|
+
if (o < H || s < H) {
|
|
647
|
+
n.style("display", "none");
|
|
648
|
+
return;
|
|
649
|
+
}
|
|
650
|
+
let c = parseInt(n.style("font-size"), 10), l = .6;
|
|
651
|
+
for (; a.getComputedTextLength() > o && c > R;) c--, n.style("font-size", `${c}px`);
|
|
652
|
+
let u = Math.max(z, Math.min(L, Math.round(c * l))), d = c + U + u;
|
|
653
|
+
for (; d > s && c > R && (c--, u = Math.max(z, Math.min(L, Math.round(c * l))), !(u < z && c === R));) n.style("font-size", `${c}px`), d = c + U + u;
|
|
654
|
+
n.style("font-size", `${c}px`), F ? (c < R || s < R) && n.style("display", "none") : (a.getComputedTextLength() > o || c < R || s < c) && n.style("display", "none");
|
|
655
|
+
}), l.showValues !== !1 && W.append("text").attr("class", "treemapValue").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", function(e) {
|
|
656
|
+
return (e.y1 - e.y0) / 2;
|
|
657
|
+
}).attr("style", (e) => `text-anchor: middle; dominant-baseline: hanging; font-size: ${L}px;fill:` + O(e.data.name) + ";" + y({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, t) => `url(#clip-${i}-${t})`).text((e) => e.value ? T(e.value) : "").each(function(e) {
|
|
658
|
+
let n = t(this), r = this.parentNode;
|
|
659
|
+
if (!r) {
|
|
660
|
+
n.style("display", "none");
|
|
661
|
+
return;
|
|
662
|
+
}
|
|
663
|
+
let i = t(r).select(".treemapLabel");
|
|
664
|
+
if (i.empty() || i.style("display") === "none") {
|
|
665
|
+
n.style("display", "none");
|
|
666
|
+
return;
|
|
667
|
+
}
|
|
668
|
+
let a = parseFloat(i.style("font-size")), o = Math.max(z, Math.min(L, Math.round(a * .6)));
|
|
669
|
+
n.style("font-size", `${o}px`);
|
|
670
|
+
let s = (e.y1 - e.y0) / 2 + a / 2 + U;
|
|
671
|
+
n.attr("y", s);
|
|
672
|
+
let c = e.x1 - e.x0, l = e.y1 - e.y0 - 4, u = c - 2 * V;
|
|
673
|
+
n.node().getComputedTextLength() > u || s + o > l || o < z ? n.style("display", "none") : n.style("display", null);
|
|
674
|
+
}), x(v, l.diagramPadding ?? 8, "flowchart", l?.useMaxWidth || !1);
|
|
675
|
+
}, "draw"),
|
|
676
|
+
getClasses: /* @__PURE__ */ a(function(e, t) {
|
|
677
|
+
return t.db.getClasses();
|
|
678
|
+
}, "getClasses")
|
|
679
|
+
}, ke = {
|
|
680
|
+
sectionStrokeColor: "black",
|
|
681
|
+
sectionStrokeWidth: "1",
|
|
682
|
+
sectionFillColor: "#efefef",
|
|
683
|
+
leafStrokeColor: "black",
|
|
684
|
+
leafStrokeWidth: "1",
|
|
685
|
+
leafFillColor: "#efefef",
|
|
686
|
+
labelFontSize: "12px",
|
|
687
|
+
valueFontSize: "10px",
|
|
688
|
+
titleFontSize: "14px"
|
|
689
|
+
}, Ae = {
|
|
690
|
+
parser: Z,
|
|
691
|
+
get db() {
|
|
692
|
+
return new Y();
|
|
693
|
+
},
|
|
694
|
+
renderer: Oe,
|
|
695
|
+
styles: /* @__PURE__ */ a(({ treemap: e } = {}) => {
|
|
696
|
+
let t = n(o(), u().themeVariables), r = n(ke, e), i = r.titleColor ?? t.titleColor, a = r.labelColor ?? t.textColor, s = r.valueColor ?? t.textColor;
|
|
697
|
+
return `
|
|
698
|
+
.treemapNode.section {
|
|
699
|
+
stroke: ${r.sectionStrokeColor};
|
|
700
|
+
stroke-width: ${r.sectionStrokeWidth};
|
|
701
|
+
fill: ${r.sectionFillColor};
|
|
702
|
+
}
|
|
703
|
+
.treemapNode.leaf {
|
|
704
|
+
stroke: ${r.leafStrokeColor};
|
|
705
|
+
stroke-width: ${r.leafStrokeWidth};
|
|
706
|
+
fill: ${r.leafFillColor};
|
|
707
|
+
}
|
|
708
|
+
.treemapLabel {
|
|
709
|
+
fill: ${a};
|
|
710
|
+
font-size: ${r.labelFontSize};
|
|
711
|
+
}
|
|
712
|
+
.treemapValue {
|
|
713
|
+
fill: ${s};
|
|
714
|
+
font-size: ${r.valueFontSize};
|
|
715
|
+
}
|
|
716
|
+
.treemapTitle {
|
|
717
|
+
fill: ${i};
|
|
718
|
+
font-size: ${r.titleFontSize};
|
|
719
|
+
}
|
|
720
|
+
`;
|
|
721
|
+
}, "getStyles")
|
|
722
|
+
};
|
|
723
|
+
//#endregion
|
|
724
|
+
export { Ae as diagram };
|