drizzle-cube 0.2.14 → 0.2.16
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/dist/adapters/compiler-BU728aIU.cjs +22 -0
- package/dist/adapters/{compiler-DrkCCzf0.js → compiler-B_yO7zBu.js} +3648 -2916
- package/dist/adapters/express/index.cjs +1 -1
- package/dist/adapters/express/index.js +1 -1
- package/dist/adapters/fastify/index.cjs +1 -1
- package/dist/adapters/fastify/index.js +1 -1
- package/dist/adapters/hono/index.cjs +1 -1
- package/dist/adapters/hono/index.js +1 -1
- package/dist/adapters/nextjs/index.cjs +1 -1
- package/dist/adapters/nextjs/index.js +1 -1
- package/dist/client/charts.js +27 -36
- package/dist/client/charts.js.map +1 -1
- package/dist/client/chunks/charts-B8YMw1mi.js +7227 -0
- package/dist/client/chunks/charts-B8YMw1mi.js.map +1 -0
- package/dist/client/chunks/charts-amt7VOyw.js +277 -0
- package/dist/client/chunks/{charts-PgJ3XcwQ.js.map → charts-amt7VOyw.js.map} +1 -1
- package/dist/client/chunks/{components-Cd068oGo.js → components-K3xrnHN-.js} +10247 -10583
- package/dist/client/chunks/components-K3xrnHN-.js.map +1 -0
- package/dist/client/chunks/core-Dkym7d1O.js +6 -0
- package/dist/client/chunks/core-Dkym7d1O.js.map +1 -0
- package/dist/client/chunks/{index-Baq5aJv1.js → index-B7NSVb33.js} +2 -2
- package/dist/client/chunks/{index-Baq5aJv1.js.map → index-B7NSVb33.js.map} +1 -1
- package/dist/client/chunks/javascript-DII1YQGr.js +659 -0
- package/dist/client/chunks/javascript-DII1YQGr.js.map +1 -0
- package/dist/client/components/AnalysisBuilder/AnalysisFilterItem.d.ts +1 -3
- package/dist/client/components/AnalysisBuilder/FilterConfigModal.d.ts +16 -0
- package/dist/client/components/DashboardFilters/FilterEditModal.d.ts +1 -1
- package/dist/client/components/DashboardFilters/ReadOnlyFilterList.d.ts +1 -1
- package/dist/client/components/QueryBuilderShim.d.ts +3 -0
- package/dist/client/components/{QueryBuilder → shared}/CubeMetaExplorer.d.ts +1 -1
- package/dist/client/components/{QueryBuilder → shared}/DateRangeFilter.d.ts +1 -1
- package/dist/client/components/{QueryBuilder → shared}/FilterBuilder.d.ts +1 -1
- package/dist/client/components/{QueryBuilder → shared}/FilterGroup.d.ts +1 -1
- package/dist/client/components/{QueryBuilder → shared}/FilterItem.d.ts +1 -1
- package/dist/client/components/{QueryBuilder → shared}/FilterValueSelector.d.ts +1 -1
- package/dist/client/components/{QueryBuilder → shared}/utils.d.ts +1 -1
- package/dist/client/components.d.ts +1 -1
- package/dist/client/components.js +2 -2
- package/dist/client/hooks.js +3 -3
- package/dist/client/icons.js +5 -5
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +49 -52
- package/dist/client/index.js.map +1 -1
- package/dist/client/providers.js +5 -6
- package/dist/client/providers.js.map +1 -1
- package/dist/client/shared/components/CodeBlock.d.ts +10 -0
- package/dist/client/shared/index.d.ts +1 -0
- package/dist/client/styles.css +1 -1
- package/dist/client/utils/index.d.ts +1 -0
- package/dist/client/{components/QueryBuilder → utils}/shareUtils.d.ts +1 -1
- package/dist/client/utils/syntaxHighlighting.d.ts +31 -0
- package/dist/client-bundle-stats.html +1 -1
- package/dist/server/index.cjs +18 -18
- package/dist/server/index.d.ts +272 -3
- package/dist/server/index.js +2760 -2037
- package/package.json +5 -1
- package/dist/adapters/compiler-CMwSRhTS.cjs +0 -22
- package/dist/client/chunks/chart-activitygridchart-BSA93MaS.js +0 -2630
- package/dist/client/chunks/chart-activitygridchart-BSA93MaS.js.map +0 -1
- package/dist/client/chunks/chart-activitygridchart-config-AVBoHdRn.js +0 -244
- package/dist/client/chunks/chart-activitygridchart-config-AVBoHdRn.js.map +0 -1
- package/dist/client/chunks/chart-areachart-Cz-Bv8ZB.js +0 -238
- package/dist/client/chunks/chart-areachart-Cz-Bv8ZB.js.map +0 -1
- package/dist/client/chunks/chart-areachart-config-D9pPUKHZ.js +0 -78
- package/dist/client/chunks/chart-areachart-config-D9pPUKHZ.js.map +0 -1
- package/dist/client/chunks/chart-axisformatcontrols-BNfQgqND.js +0 -196
- package/dist/client/chunks/chart-axisformatcontrols-BNfQgqND.js.map +0 -1
- package/dist/client/chunks/chart-barchart-CI8LhTwO.js +0 -219
- package/dist/client/chunks/chart-barchart-CI8LhTwO.js.map +0 -1
- package/dist/client/chunks/chart-barchart-config-iniz62ni.js +0 -71
- package/dist/client/chunks/chart-barchart-config-iniz62ni.js.map +0 -1
- package/dist/client/chunks/chart-bubblechart-DaFSD3dc.js +0 -247
- package/dist/client/chunks/chart-bubblechart-DaFSD3dc.js.map +0 -1
- package/dist/client/chunks/chart-bubblechart-config-yLq2oyR3.js +0 -72
- package/dist/client/chunks/chart-bubblechart-config-yLq2oyR3.js.map +0 -1
- package/dist/client/chunks/chart-chartcontainer-CdwzIKP1.js +0 -103
- package/dist/client/chunks/chart-chartcontainer-CdwzIKP1.js.map +0 -1
- package/dist/client/chunks/chart-charttooltip-hLOOlEDZ.js +0 -26
- package/dist/client/chunks/chart-charttooltip-hLOOlEDZ.js.map +0 -1
- package/dist/client/chunks/chart-datatable-Dj_3LWKH.js +0 -350
- package/dist/client/chunks/chart-datatable-Dj_3LWKH.js.map +0 -1
- package/dist/client/chunks/chart-datatable-config-DmEA3A-7.js +0 -29
- package/dist/client/chunks/chart-datatable-config-DmEA3A-7.js.map +0 -1
- package/dist/client/chunks/chart-kpidelta-D45MO-i1.js +0 -435
- package/dist/client/chunks/chart-kpidelta-D45MO-i1.js.map +0 -1
- package/dist/client/chunks/chart-kpidelta-config-DtSDG4Kl.js +0 -98
- package/dist/client/chunks/chart-kpidelta-config-DtSDG4Kl.js.map +0 -1
- package/dist/client/chunks/chart-kpinumber-J3jJ1lz7.js +0 -400
- package/dist/client/chunks/chart-kpinumber-J3jJ1lz7.js.map +0 -1
- package/dist/client/chunks/chart-kpinumber-config-Da2LFeKM.js +0 -76
- package/dist/client/chunks/chart-kpinumber-config-Da2LFeKM.js.map +0 -1
- package/dist/client/chunks/chart-kpitext-Bo86g7Jn.js +0 -165
- package/dist/client/chunks/chart-kpitext-Bo86g7Jn.js.map +0 -1
- package/dist/client/chunks/chart-kpitext-config-DjvigyfE.js +0 -48
- package/dist/client/chunks/chart-kpitext-config-DjvigyfE.js.map +0 -1
- package/dist/client/chunks/chart-linechart-B7HFYqC7.js +0 -202
- package/dist/client/chunks/chart-linechart-B7HFYqC7.js.map +0 -1
- package/dist/client/chunks/chart-linechart-config-DLVS2Zxc.js +0 -66
- package/dist/client/chunks/chart-linechart-config-DLVS2Zxc.js.map +0 -1
- package/dist/client/chunks/chart-markdownchart-C-lDJMtY.js +0 -257
- package/dist/client/chunks/chart-markdownchart-C-lDJMtY.js.map +0 -1
- package/dist/client/chunks/chart-markdownchart-config-CgOA3YSw.js +0 -61
- package/dist/client/chunks/chart-markdownchart-config-CgOA3YSw.js.map +0 -1
- package/dist/client/chunks/chart-piechart-CJCJZXmm.js +0 -127
- package/dist/client/chunks/chart-piechart-CJCJZXmm.js.map +0 -1
- package/dist/client/chunks/chart-piechart-config-DgwOeKHr.js +0 -39
- package/dist/client/chunks/chart-piechart-config-DgwOeKHr.js.map +0 -1
- package/dist/client/chunks/chart-radarchart-CJ-8qPmX.js +0 -131
- package/dist/client/chunks/chart-radarchart-CJ-8qPmX.js.map +0 -1
- package/dist/client/chunks/chart-radarchart-config-BAV8D5PR.js +0 -45
- package/dist/client/chunks/chart-radarchart-config-BAV8D5PR.js.map +0 -1
- package/dist/client/chunks/chart-radialbarchart-C8PlVtXx.js +0 -120
- package/dist/client/chunks/chart-radialbarchart-C8PlVtXx.js.map +0 -1
- package/dist/client/chunks/chart-radialbarchart-config-CKozBBEC.js +0 -38
- package/dist/client/chunks/chart-radialbarchart-config-CKozBBEC.js.map +0 -1
- package/dist/client/chunks/chart-scatterchart-CXujAIug.js +0 -203
- package/dist/client/chunks/chart-scatterchart-CXujAIug.js.map +0 -1
- package/dist/client/chunks/chart-scatterchart-config-UdHmbZ3s.js +0 -54
- package/dist/client/chunks/chart-scatterchart-config-UdHmbZ3s.js.map +0 -1
- package/dist/client/chunks/chart-treemapchart-D9lYs_Y9.js +0 -265
- package/dist/client/chunks/chart-treemapchart-D9lYs_Y9.js.map +0 -1
- package/dist/client/chunks/chart-treemapchart-config-D17VOwTM.js +0 -47
- package/dist/client/chunks/chart-treemapchart-config-D17VOwTM.js.map +0 -1
- package/dist/client/chunks/charts-PgJ3XcwQ.js +0 -286
- package/dist/client/chunks/components-Cd068oGo.js.map +0 -1
- package/dist/client/components/QueryBuilder/QueryAnalysisPanel.d.ts +0 -7
- package/dist/client/components/QueryBuilder/QueryPanel.d.ts +0 -4
- package/dist/client/components/QueryBuilder/ResultsPanel.d.ts +0 -4
- package/dist/client/components/QueryBuilder/SetupPanel.d.ts +0 -11
- package/dist/client/components/QueryBuilder/ShareWarningModal.d.ts +0 -9
- package/dist/client/components/QueryBuilder/index.d.ts +0 -3
- /package/dist/client/components/{QueryBuilder → shared}/DateRangeSelector.d.ts +0 -0
|
@@ -1,2630 +0,0 @@
|
|
|
1
|
-
import { jsx as P, jsxs as yt } from "react/jsx-runtime";
|
|
2
|
-
import dn, { useContext as Gt, createContext as Re, useState as J, useMemo as lt, useCallback as vt, useRef as Ot, useEffect as Mt, useLayoutEffect as mn } from "react";
|
|
3
|
-
class gn {
|
|
4
|
-
apiUrl;
|
|
5
|
-
headers;
|
|
6
|
-
credentials;
|
|
7
|
-
constructor(e, n = {}) {
|
|
8
|
-
this.apiUrl = n.apiUrl || "/cubejs-api/v1", this.headers = {
|
|
9
|
-
"Content-Type": "application/json",
|
|
10
|
-
...n.headers
|
|
11
|
-
}, this.credentials = n.credentials ?? "include", e && (this.headers.Authorization = e);
|
|
12
|
-
}
|
|
13
|
-
async load(e) {
|
|
14
|
-
const n = JSON.stringify(e), r = encodeURIComponent(n), i = `${this.apiUrl}/load?query=${r}`, a = await fetch(i, {
|
|
15
|
-
method: "GET",
|
|
16
|
-
headers: {
|
|
17
|
-
// Remove Content-Type for GET request
|
|
18
|
-
...Object.fromEntries(
|
|
19
|
-
Object.entries(this.headers).filter(([s]) => s !== "Content-Type")
|
|
20
|
-
)
|
|
21
|
-
},
|
|
22
|
-
credentials: this.credentials
|
|
23
|
-
});
|
|
24
|
-
if (!a.ok) {
|
|
25
|
-
let s = `Cube query failed: ${a.status}`;
|
|
26
|
-
try {
|
|
27
|
-
const c = await a.text();
|
|
28
|
-
try {
|
|
29
|
-
const u = JSON.parse(c);
|
|
30
|
-
u.error ? s = u.error : s += ` ${c}`;
|
|
31
|
-
} catch {
|
|
32
|
-
s += ` ${c}`;
|
|
33
|
-
}
|
|
34
|
-
} catch {
|
|
35
|
-
}
|
|
36
|
-
throw new Error(s);
|
|
37
|
-
}
|
|
38
|
-
const o = await a.json();
|
|
39
|
-
return new Lt(o);
|
|
40
|
-
}
|
|
41
|
-
async meta() {
|
|
42
|
-
const e = `${this.apiUrl}/meta`, n = await fetch(e, {
|
|
43
|
-
method: "GET",
|
|
44
|
-
headers: this.headers,
|
|
45
|
-
credentials: this.credentials
|
|
46
|
-
});
|
|
47
|
-
if (!n.ok)
|
|
48
|
-
throw new Error(`Failed to fetch meta: ${n.status}`);
|
|
49
|
-
return n.json();
|
|
50
|
-
}
|
|
51
|
-
async sql(e) {
|
|
52
|
-
const n = encodeURIComponent(JSON.stringify(e)), r = `${this.apiUrl}/sql?query=${n}`, i = await fetch(r, {
|
|
53
|
-
method: "GET",
|
|
54
|
-
headers: {
|
|
55
|
-
// Remove Content-Type for GET request
|
|
56
|
-
...Object.fromEntries(
|
|
57
|
-
Object.entries(this.headers).filter(([a]) => a !== "Content-Type")
|
|
58
|
-
)
|
|
59
|
-
},
|
|
60
|
-
credentials: this.credentials
|
|
61
|
-
});
|
|
62
|
-
if (!i.ok)
|
|
63
|
-
throw new Error(`SQL generation failed: ${i.status}`);
|
|
64
|
-
return i.json();
|
|
65
|
-
}
|
|
66
|
-
async dryRun(e) {
|
|
67
|
-
const n = `${this.apiUrl}/dry-run`, r = await fetch(n, {
|
|
68
|
-
method: "POST",
|
|
69
|
-
headers: this.headers,
|
|
70
|
-
credentials: this.credentials,
|
|
71
|
-
body: JSON.stringify({ query: e })
|
|
72
|
-
});
|
|
73
|
-
if (!r.ok) {
|
|
74
|
-
let i = `Dry run failed: ${r.status}`;
|
|
75
|
-
try {
|
|
76
|
-
const a = await r.text();
|
|
77
|
-
try {
|
|
78
|
-
const o = JSON.parse(a);
|
|
79
|
-
o.error ? i = o.error : i += ` ${a}`;
|
|
80
|
-
} catch {
|
|
81
|
-
i += ` ${a}`;
|
|
82
|
-
}
|
|
83
|
-
} catch {
|
|
84
|
-
}
|
|
85
|
-
throw new Error(i);
|
|
86
|
-
}
|
|
87
|
-
return r.json();
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Execute multiple queries in a single batch request
|
|
91
|
-
* Used by BatchCoordinator to optimize network requests
|
|
92
|
-
*/
|
|
93
|
-
async batchLoad(e) {
|
|
94
|
-
const n = `${this.apiUrl}/batch`, r = await fetch(n, {
|
|
95
|
-
method: "POST",
|
|
96
|
-
headers: this.headers,
|
|
97
|
-
credentials: this.credentials,
|
|
98
|
-
body: JSON.stringify({ queries: e })
|
|
99
|
-
});
|
|
100
|
-
if (!r.ok) {
|
|
101
|
-
let a = `Batch query failed: ${r.status}`;
|
|
102
|
-
try {
|
|
103
|
-
const o = await r.text();
|
|
104
|
-
try {
|
|
105
|
-
const s = JSON.parse(o);
|
|
106
|
-
s.error ? a = s.error : a += ` ${o}`;
|
|
107
|
-
} catch {
|
|
108
|
-
a += ` ${o}`;
|
|
109
|
-
}
|
|
110
|
-
} catch {
|
|
111
|
-
}
|
|
112
|
-
throw new Error(a);
|
|
113
|
-
}
|
|
114
|
-
return (await r.json()).results.map((a) => !a.success && a.error ? {
|
|
115
|
-
...new Lt({ data: [], annotation: {} }),
|
|
116
|
-
error: a.error
|
|
117
|
-
} : new Lt(a));
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
class Lt {
|
|
121
|
-
loadResponse;
|
|
122
|
-
constructor(e) {
|
|
123
|
-
this.loadResponse = e;
|
|
124
|
-
}
|
|
125
|
-
rawData() {
|
|
126
|
-
return this.loadResponse.results && this.loadResponse.results[0] ? this.loadResponse.results[0].data || [] : this.loadResponse.data || [];
|
|
127
|
-
}
|
|
128
|
-
tablePivot() {
|
|
129
|
-
return this.rawData();
|
|
130
|
-
}
|
|
131
|
-
series() {
|
|
132
|
-
return this.rawData();
|
|
133
|
-
}
|
|
134
|
-
annotation() {
|
|
135
|
-
return this.loadResponse.results && this.loadResponse.results[0] ? this.loadResponse.results[0].annotation || {} : this.loadResponse.annotation || {};
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
function pn(t, e = {}) {
|
|
139
|
-
return new gn(t, e);
|
|
140
|
-
}
|
|
141
|
-
class yn {
|
|
142
|
-
queue = [];
|
|
143
|
-
flushScheduled = !1;
|
|
144
|
-
batchExecutor;
|
|
145
|
-
delayMs;
|
|
146
|
-
constructor(e, n = 100) {
|
|
147
|
-
this.batchExecutor = e, this.delayMs = n;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Register a query to be batched. Returns a promise that resolves
|
|
151
|
-
* when the batch is executed and this specific query's result is available.
|
|
152
|
-
*/
|
|
153
|
-
register(e) {
|
|
154
|
-
return new Promise((n, r) => {
|
|
155
|
-
this.queue.push({ query: e, resolve: n, reject: r }), this.flushScheduled || this.scheduleFlush();
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Schedule a flush after a short delay to collect multiple queries.
|
|
160
|
-
* The delay allows queries from lazy-loaded portlets that become visible
|
|
161
|
-
* during the same scroll action to be batched together.
|
|
162
|
-
*/
|
|
163
|
-
scheduleFlush() {
|
|
164
|
-
this.flushScheduled = !0, setTimeout(() => {
|
|
165
|
-
this.flush();
|
|
166
|
-
}, this.delayMs);
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Execute all queued queries as a batch and resolve individual promises
|
|
170
|
-
*/
|
|
171
|
-
async flush() {
|
|
172
|
-
this.flushScheduled = !1;
|
|
173
|
-
const e = this.queue.slice();
|
|
174
|
-
if (this.queue = [], e.length !== 0)
|
|
175
|
-
try {
|
|
176
|
-
const n = e.map((i) => i.query), r = await this.batchExecutor(n);
|
|
177
|
-
e.forEach((i, a) => {
|
|
178
|
-
const o = r[a];
|
|
179
|
-
o && "error" in o && o.error ? i.reject(new Error(o.error)) : i.resolve(o);
|
|
180
|
-
});
|
|
181
|
-
} catch (n) {
|
|
182
|
-
e.forEach((r) => {
|
|
183
|
-
r.reject(n instanceof Error ? n : new Error(String(n)));
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Get current queue size (useful for debugging)
|
|
189
|
-
*/
|
|
190
|
-
getQueueSize() {
|
|
191
|
-
return this.queue.length;
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Clear the queue (useful for testing/cleanup)
|
|
195
|
-
*/
|
|
196
|
-
clear() {
|
|
197
|
-
this.queue = [], this.flushScheduled = !1;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
const Te = Re(null);
|
|
201
|
-
function Ca({
|
|
202
|
-
apiOptions: t,
|
|
203
|
-
token: e,
|
|
204
|
-
options: n = {},
|
|
205
|
-
enableBatching: r = !0,
|
|
206
|
-
batchDelayMs: i = 100,
|
|
207
|
-
children: a
|
|
208
|
-
}) {
|
|
209
|
-
const [o, s] = J({ apiOptions: t, token: e }), c = lt(
|
|
210
|
-
() => pn(o.token, o.apiOptions),
|
|
211
|
-
[o.apiOptions, o.token]
|
|
212
|
-
), u = lt(() => r ? new yn((l) => c.batchLoad(l), i) : null, [r, c, i]), f = vt((l, h) => {
|
|
213
|
-
s({ apiOptions: l, token: h });
|
|
214
|
-
}, []), d = lt(() => ({
|
|
215
|
-
cubeApi: c,
|
|
216
|
-
options: n,
|
|
217
|
-
updateApiConfig: f,
|
|
218
|
-
batchCoordinator: u,
|
|
219
|
-
enableBatching: r
|
|
220
|
-
}), [c, n, f, u, r]);
|
|
221
|
-
return /* @__PURE__ */ P(Te.Provider, { value: d, children: a });
|
|
222
|
-
}
|
|
223
|
-
function xn() {
|
|
224
|
-
const t = Gt(Te);
|
|
225
|
-
if (!t)
|
|
226
|
-
throw new Error("useCubeApi must be used within CubeApiProvider");
|
|
227
|
-
return t;
|
|
228
|
-
}
|
|
229
|
-
const wn = 900 * 1e3;
|
|
230
|
-
let K = null;
|
|
231
|
-
function bn(t) {
|
|
232
|
-
const e = {};
|
|
233
|
-
return t.cubes.forEach((n) => {
|
|
234
|
-
n.measures.forEach((r) => {
|
|
235
|
-
e[r.name] = r.title || r.shortTitle || r.name;
|
|
236
|
-
}), n.dimensions.forEach((r) => {
|
|
237
|
-
e[r.name] = r.title || r.shortTitle || r.name;
|
|
238
|
-
}), n.segments.forEach((r) => {
|
|
239
|
-
e[r.name] = r.title || r.shortTitle || r.name;
|
|
240
|
-
});
|
|
241
|
-
}), e;
|
|
242
|
-
}
|
|
243
|
-
function vn() {
|
|
244
|
-
return K ? Date.now() - K.timestamp < wn : !1;
|
|
245
|
-
}
|
|
246
|
-
function Mn(t) {
|
|
247
|
-
const [e, n] = J(null), [r, i] = J(!0), [a, o] = J(null), s = Ot({}), [c] = J(() => ({})), u = vt(async () => {
|
|
248
|
-
if (vn() && K) {
|
|
249
|
-
n(K.data), s.current = K.labelMap, Object.keys(c).forEach((l) => delete c[l]), Object.assign(c, K.labelMap), i(!1), o(null);
|
|
250
|
-
return;
|
|
251
|
-
}
|
|
252
|
-
try {
|
|
253
|
-
i(!0), o(null);
|
|
254
|
-
const l = await t.meta(), h = bn(l);
|
|
255
|
-
K = {
|
|
256
|
-
data: l,
|
|
257
|
-
labelMap: h,
|
|
258
|
-
timestamp: Date.now()
|
|
259
|
-
}, s.current = h, Object.keys(c).forEach((v) => delete c[v]), Object.assign(c, h), n(l);
|
|
260
|
-
} catch (l) {
|
|
261
|
-
const h = l instanceof Error ? l.message : "Failed to fetch metadata";
|
|
262
|
-
o(h), console.error("Failed to fetch cube metadata:", l);
|
|
263
|
-
} finally {
|
|
264
|
-
i(!1);
|
|
265
|
-
}
|
|
266
|
-
}, [t, c]);
|
|
267
|
-
Mt(() => {
|
|
268
|
-
u();
|
|
269
|
-
}, [u]);
|
|
270
|
-
const f = vt((l) => s.current[l] || l, []), d = vt(() => {
|
|
271
|
-
K = null, u();
|
|
272
|
-
}, [u]);
|
|
273
|
-
return {
|
|
274
|
-
meta: e,
|
|
275
|
-
labelMap: c,
|
|
276
|
-
// Return stable reference
|
|
277
|
-
loading: r,
|
|
278
|
-
error: a,
|
|
279
|
-
refetch: d,
|
|
280
|
-
getFieldLabel: f
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
|
-
const Qt = Re(null);
|
|
284
|
-
function Ea({ children: t }) {
|
|
285
|
-
const { cubeApi: e } = xn(), {
|
|
286
|
-
meta: n,
|
|
287
|
-
labelMap: r,
|
|
288
|
-
loading: i,
|
|
289
|
-
error: a,
|
|
290
|
-
getFieldLabel: o,
|
|
291
|
-
refetch: s
|
|
292
|
-
} = Mn(e), c = lt(() => ({
|
|
293
|
-
meta: n,
|
|
294
|
-
labelMap: r,
|
|
295
|
-
metaLoading: i,
|
|
296
|
-
metaError: a,
|
|
297
|
-
getFieldLabel: o,
|
|
298
|
-
refetchMeta: s
|
|
299
|
-
}), [n, r, i, a, o, s]);
|
|
300
|
-
return /* @__PURE__ */ P(Qt.Provider, { value: c, children: t });
|
|
301
|
-
}
|
|
302
|
-
function Fa() {
|
|
303
|
-
const t = Gt(Qt);
|
|
304
|
-
if (!t)
|
|
305
|
-
throw new Error("useCubeMeta must be used within CubeMetaProvider");
|
|
306
|
-
return t;
|
|
307
|
-
}
|
|
308
|
-
function Ra(t) {
|
|
309
|
-
return t != null && !isNaN(Number(t));
|
|
310
|
-
}
|
|
311
|
-
function qt(t) {
|
|
312
|
-
if (t == null) return null;
|
|
313
|
-
const e = typeof t == "string" ? parseFloat(t) : Number(t);
|
|
314
|
-
return isNaN(e) ? null : e;
|
|
315
|
-
}
|
|
316
|
-
function _n(t) {
|
|
317
|
-
if (t == null) return "No data";
|
|
318
|
-
const e = typeof t == "number" ? t : parseFloat(t);
|
|
319
|
-
return isNaN(e) ? String(t) : Number.isInteger(e) ? e.toLocaleString() : parseFloat(e.toFixed(2)).toLocaleString();
|
|
320
|
-
}
|
|
321
|
-
function Ta(t, e, n) {
|
|
322
|
-
if (t == null)
|
|
323
|
-
return "No data";
|
|
324
|
-
const r = typeof t == "number" ? t : parseFloat(String(t));
|
|
325
|
-
if (isNaN(r))
|
|
326
|
-
return String(t);
|
|
327
|
-
if (!isFinite(r))
|
|
328
|
-
return r > 0 ? "∞" : "-∞";
|
|
329
|
-
const i = typeof navigator < "u" ? navigator.language : "en-US";
|
|
330
|
-
if (!e)
|
|
331
|
-
return _n(t);
|
|
332
|
-
const { unit: a, abbreviate: o = !0, decimals: s, customPrefix: c, customSuffix: u } = e;
|
|
333
|
-
let f = r, d = "";
|
|
334
|
-
if (o) {
|
|
335
|
-
const h = Math.abs(r);
|
|
336
|
-
h >= 1e9 ? (f = r / 1e9, d = "B") : h >= 1e6 ? (f = r / 1e6, d = "M") : h >= 1e3 && (f = r / 1e3, d = "K");
|
|
337
|
-
}
|
|
338
|
-
const l = s !== void 0 ? s : Number.isInteger(f) ? 0 : 2;
|
|
339
|
-
switch (a) {
|
|
340
|
-
case "currency": {
|
|
341
|
-
const h = Nn(i);
|
|
342
|
-
if (o && d) {
|
|
343
|
-
const v = new Intl.NumberFormat(i, {
|
|
344
|
-
style: "currency",
|
|
345
|
-
currency: h,
|
|
346
|
-
minimumFractionDigits: l,
|
|
347
|
-
maximumFractionDigits: l
|
|
348
|
-
}).format(f), E = new Intl.NumberFormat(i, {
|
|
349
|
-
style: "currency",
|
|
350
|
-
currency: h
|
|
351
|
-
}).formatToParts(f);
|
|
352
|
-
return E[E.length - 1]?.type === "currency" ? v.replace(/(\s*[^\d\s]+)$/, d + "$1") : v + d;
|
|
353
|
-
}
|
|
354
|
-
return new Intl.NumberFormat(i, {
|
|
355
|
-
style: "currency",
|
|
356
|
-
currency: h,
|
|
357
|
-
minimumFractionDigits: l,
|
|
358
|
-
maximumFractionDigits: l
|
|
359
|
-
}).format(f);
|
|
360
|
-
}
|
|
361
|
-
case "percent": {
|
|
362
|
-
const h = Math.abs(f) <= 1 && !o ? f * 100 : f;
|
|
363
|
-
return new Intl.NumberFormat(i, {
|
|
364
|
-
minimumFractionDigits: l,
|
|
365
|
-
maximumFractionDigits: l
|
|
366
|
-
}).format(h) + d + "%";
|
|
367
|
-
}
|
|
368
|
-
case "custom": {
|
|
369
|
-
const h = c || "", v = u || "", E = new Intl.NumberFormat(i, {
|
|
370
|
-
minimumFractionDigits: l,
|
|
371
|
-
maximumFractionDigits: l
|
|
372
|
-
}).format(f);
|
|
373
|
-
return h + E + d + v;
|
|
374
|
-
}
|
|
375
|
-
default:
|
|
376
|
-
return new Intl.NumberFormat(i, {
|
|
377
|
-
minimumFractionDigits: l,
|
|
378
|
-
maximumFractionDigits: l
|
|
379
|
-
}).format(f) + d;
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
function Nn(t) {
|
|
383
|
-
const n = t.split("-")[1]?.toUpperCase();
|
|
384
|
-
return {
|
|
385
|
-
US: "USD",
|
|
386
|
-
CA: "CAD",
|
|
387
|
-
GB: "GBP",
|
|
388
|
-
UK: "GBP",
|
|
389
|
-
AU: "AUD",
|
|
390
|
-
NZ: "NZD",
|
|
391
|
-
EU: "EUR",
|
|
392
|
-
DE: "EUR",
|
|
393
|
-
FR: "EUR",
|
|
394
|
-
IT: "EUR",
|
|
395
|
-
ES: "EUR",
|
|
396
|
-
NL: "EUR",
|
|
397
|
-
BE: "EUR",
|
|
398
|
-
AT: "EUR",
|
|
399
|
-
IE: "EUR",
|
|
400
|
-
PT: "EUR",
|
|
401
|
-
FI: "EUR",
|
|
402
|
-
JP: "JPY",
|
|
403
|
-
CN: "CNY",
|
|
404
|
-
KR: "KRW",
|
|
405
|
-
IN: "INR",
|
|
406
|
-
BR: "BRL",
|
|
407
|
-
MX: "MXN",
|
|
408
|
-
CH: "CHF",
|
|
409
|
-
SE: "SEK",
|
|
410
|
-
NO: "NOK",
|
|
411
|
-
DK: "DKK",
|
|
412
|
-
PL: "PLN",
|
|
413
|
-
RU: "RUB",
|
|
414
|
-
ZA: "ZAR",
|
|
415
|
-
SG: "SGD",
|
|
416
|
-
HK: "HKD",
|
|
417
|
-
TW: "TWD",
|
|
418
|
-
TH: "THB",
|
|
419
|
-
MY: "MYR",
|
|
420
|
-
PH: "PHP",
|
|
421
|
-
ID: "IDR",
|
|
422
|
-
VN: "VND",
|
|
423
|
-
AE: "AED",
|
|
424
|
-
SA: "SAR",
|
|
425
|
-
IL: "ILS",
|
|
426
|
-
TR: "TRY"
|
|
427
|
-
}[n] || "USD";
|
|
428
|
-
}
|
|
429
|
-
function Kt(t, e) {
|
|
430
|
-
if (!t) return String(t || "Unknown");
|
|
431
|
-
const n = String(t);
|
|
432
|
-
if (n.match(/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}:\d{2}/)) {
|
|
433
|
-
let r = n;
|
|
434
|
-
n.includes(" ") && (r = n.replace(" ", "T").replace("+00", "Z").replace(/\+\d{2}:\d{2}$/, "Z")), !r.endsWith("Z") && !r.includes("+") && (r = r + "Z");
|
|
435
|
-
const i = new Date(r);
|
|
436
|
-
if (isNaN(i.getTime()))
|
|
437
|
-
return n;
|
|
438
|
-
const a = i.getUTCFullYear(), o = String(i.getUTCMonth() + 1).padStart(2, "0"), s = String(i.getUTCDate()).padStart(2, "0"), c = i.getUTCHours(), u = i.getUTCMinutes();
|
|
439
|
-
if (e)
|
|
440
|
-
switch (e.toLowerCase()) {
|
|
441
|
-
case "year":
|
|
442
|
-
return `${a}`;
|
|
443
|
-
case "quarter": {
|
|
444
|
-
const l = Math.floor(i.getUTCMonth() / 3) + 1;
|
|
445
|
-
return `${a}-Q${l}`;
|
|
446
|
-
}
|
|
447
|
-
case "month":
|
|
448
|
-
return `${a}-${o}`;
|
|
449
|
-
case "week":
|
|
450
|
-
return `${a}-${o}-${s}`;
|
|
451
|
-
case "day":
|
|
452
|
-
return `${a}-${o}-${s}`;
|
|
453
|
-
case "hour":
|
|
454
|
-
return `${a}-${o}-${s} ${String(c).padStart(2, "0")}:00`;
|
|
455
|
-
case "minute":
|
|
456
|
-
return `${a}-${o}-${s} ${String(c).padStart(2, "0")}:${String(u).padStart(2, "0")}`;
|
|
457
|
-
}
|
|
458
|
-
const f = i.getUTCSeconds(), d = i.getUTCMilliseconds();
|
|
459
|
-
if (s === "01" && c === 0 && u === 0 && f === 0 && d === 0) {
|
|
460
|
-
if (o === "01" || o === "04" || o === "07" || o === "10") {
|
|
461
|
-
const l = Math.floor(i.getUTCMonth() / 3) + 1;
|
|
462
|
-
return `${a}-Q${l}`;
|
|
463
|
-
}
|
|
464
|
-
return `${a}-${o}`;
|
|
465
|
-
}
|
|
466
|
-
return c === 0 && u === 0 && f === 0 && d === 0 ? `${a}-${o}-${s}` : u === 0 && f === 0 && d === 0 ? `${a}-${o}-${s} ${String(c).padStart(2, "0")}:00` : `${a}-${o}-${s} ${String(c).padStart(2, "0")}:${String(u).padStart(2, "0")}`;
|
|
467
|
-
}
|
|
468
|
-
return n;
|
|
469
|
-
}
|
|
470
|
-
function De(t, e) {
|
|
471
|
-
try {
|
|
472
|
-
if (t?.timeDimensions) {
|
|
473
|
-
const r = t.timeDimensions.find((i) => e === i.dimension || e.startsWith(i.dimension.replace(".", "_")) || e === `${i.dimension}_${i.granularity}`);
|
|
474
|
-
if (r?.granularity)
|
|
475
|
-
return r.granularity;
|
|
476
|
-
}
|
|
477
|
-
const n = e.match(/_([a-z]+)$/);
|
|
478
|
-
if (n) {
|
|
479
|
-
const r = n[1];
|
|
480
|
-
if (["year", "quarter", "month", "week", "day", "hour", "minute", "second"].includes(r))
|
|
481
|
-
return r;
|
|
482
|
-
}
|
|
483
|
-
return;
|
|
484
|
-
} catch {
|
|
485
|
-
return;
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
function Sn(t, e, n, r, i = (a) => a) {
|
|
489
|
-
if (!t || t.length === 0) return [];
|
|
490
|
-
const a = De(r, e);
|
|
491
|
-
return t.map((o) => {
|
|
492
|
-
const s = {
|
|
493
|
-
name: Kt(o[e], a) || o[e] || "Unknown"
|
|
494
|
-
};
|
|
495
|
-
return n.forEach((c) => {
|
|
496
|
-
const u = i(c);
|
|
497
|
-
s[u] = qt(o[c]);
|
|
498
|
-
}), s;
|
|
499
|
-
});
|
|
500
|
-
}
|
|
501
|
-
function Da(t, e, n, r, i, a = (o) => o) {
|
|
502
|
-
if (!t || t.length === 0)
|
|
503
|
-
return { data: [], seriesKeys: [], hasDimensions: !1 };
|
|
504
|
-
const o = r || {}, s = [
|
|
505
|
-
...o.dimensions || [],
|
|
506
|
-
...o.timeDimensions?.map((h) => h.dimension) || []
|
|
507
|
-
], c = o.measures || [], u = n.filter((h) => c.includes(h)), f = (i || []).filter((h) => s.includes(h));
|
|
508
|
-
if (f.length > 0) {
|
|
509
|
-
const h = {};
|
|
510
|
-
t.forEach((N) => {
|
|
511
|
-
const C = De(r, e), M = Kt(N[e], C) || N[e] || "Unknown";
|
|
512
|
-
h[M] || (h[M] = { name: String(M) }), u.forEach((k) => {
|
|
513
|
-
const A = a(k), _ = qt(N[k]);
|
|
514
|
-
if (_ !== null) {
|
|
515
|
-
const R = h[M][A];
|
|
516
|
-
h[M][A] = R == null ? _ : R + _;
|
|
517
|
-
} else A in h[M] || (h[M][A] = null);
|
|
518
|
-
}), f.forEach((k) => {
|
|
519
|
-
const A = N[k];
|
|
520
|
-
if (A != null) {
|
|
521
|
-
const _ = String(A), R = u[0] || c.find(
|
|
522
|
-
($) => $.includes("totalCost") || $.includes("count") || $.includes("sum")
|
|
523
|
-
) || c[0];
|
|
524
|
-
if (R) {
|
|
525
|
-
const $ = qt(N[R]);
|
|
526
|
-
if ($ !== null) {
|
|
527
|
-
const z = h[M][_];
|
|
528
|
-
h[M][_] = z == null ? $ : z + $;
|
|
529
|
-
} else _ in h[M] || (h[M][_] = null);
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
});
|
|
533
|
-
});
|
|
534
|
-
const v = Object.values(h), E = Array.from(new Set(
|
|
535
|
-
t.flatMap(
|
|
536
|
-
(N) => f.map((C) => {
|
|
537
|
-
const M = N[C];
|
|
538
|
-
return M != null ? String(M) : null;
|
|
539
|
-
}).filter((C) => C !== null)
|
|
540
|
-
)
|
|
541
|
-
));
|
|
542
|
-
return {
|
|
543
|
-
data: v,
|
|
544
|
-
seriesKeys: E,
|
|
545
|
-
hasDimensions: !0
|
|
546
|
-
};
|
|
547
|
-
}
|
|
548
|
-
const d = Sn(t, e, n, r, a), l = n.map((h) => a(h));
|
|
549
|
-
return {
|
|
550
|
-
data: d,
|
|
551
|
-
seriesKeys: l,
|
|
552
|
-
hasDimensions: !1
|
|
553
|
-
};
|
|
554
|
-
}
|
|
555
|
-
function kn() {
|
|
556
|
-
const t = Gt(Qt);
|
|
557
|
-
if (!t)
|
|
558
|
-
throw new Error("useCubeFieldLabel must be used within CubeProvider");
|
|
559
|
-
return lt(() => t.getFieldLabel, [t.getFieldLabel]);
|
|
560
|
-
}
|
|
561
|
-
function La(t) {
|
|
562
|
-
return typeof window > "u" ? "" : getComputedStyle(document.documentElement).getPropertyValue(`--dc-${t}`).trim();
|
|
563
|
-
}
|
|
564
|
-
function $n(t, e) {
|
|
565
|
-
typeof window > "u" || document.documentElement.style.setProperty(`--dc-${t}`, e);
|
|
566
|
-
}
|
|
567
|
-
function Ha(t) {
|
|
568
|
-
typeof window > "u" || Object.entries(t.colors).forEach(([e, n]) => {
|
|
569
|
-
if (n) {
|
|
570
|
-
const r = e.replace(/[A-Z]/g, (i) => `-${i.toLowerCase()}`);
|
|
571
|
-
$n(r, n);
|
|
572
|
-
}
|
|
573
|
-
});
|
|
574
|
-
}
|
|
575
|
-
function Pa() {
|
|
576
|
-
if (typeof window > "u") return;
|
|
577
|
-
const t = document.documentElement.style;
|
|
578
|
-
Array.from(t).forEach((n) => {
|
|
579
|
-
n.startsWith("--dc-") && t.removeProperty(n);
|
|
580
|
-
});
|
|
581
|
-
}
|
|
582
|
-
function Nt() {
|
|
583
|
-
if (typeof window > "u") return "light";
|
|
584
|
-
const t = localStorage.getItem("theme");
|
|
585
|
-
if (t === "dark" || t === "neon" || t === "light")
|
|
586
|
-
return t;
|
|
587
|
-
const e = document.documentElement.getAttribute("data-theme");
|
|
588
|
-
return e === "dark" || e === "neon" ? e : document.documentElement.classList.contains("dark") || document.body.classList.contains("dark") ? "dark" : document.documentElement.classList.contains("neon") || document.body.classList.contains("neon") ? "neon" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
589
|
-
}
|
|
590
|
-
function Ia(t) {
|
|
591
|
-
typeof window > "u" || (document.documentElement.classList.remove("dark", "neon"), document.documentElement.setAttribute("data-theme", t), (t === "dark" || t === "neon") && document.documentElement.classList.add(t), localStorage.setItem("theme", t));
|
|
592
|
-
}
|
|
593
|
-
function Ua() {
|
|
594
|
-
const t = Nt();
|
|
595
|
-
return t === "dark" || t === "neon";
|
|
596
|
-
}
|
|
597
|
-
function An(t) {
|
|
598
|
-
if (typeof window > "u") return () => {
|
|
599
|
-
};
|
|
600
|
-
const e = new MutationObserver(() => {
|
|
601
|
-
t(Nt());
|
|
602
|
-
});
|
|
603
|
-
e.observe(document.documentElement, {
|
|
604
|
-
attributes: !0,
|
|
605
|
-
attributeFilter: ["class", "data-theme"]
|
|
606
|
-
});
|
|
607
|
-
const n = window.matchMedia("(prefers-color-scheme: dark)"), r = () => t(Nt());
|
|
608
|
-
return n.addEventListener("change", r), () => {
|
|
609
|
-
e.disconnect(), n.removeEventListener("change", r);
|
|
610
|
-
};
|
|
611
|
-
}
|
|
612
|
-
const Oa = {
|
|
613
|
-
light: {
|
|
614
|
-
name: "light",
|
|
615
|
-
colors: {
|
|
616
|
-
surface: "#ffffff",
|
|
617
|
-
surfaceSecondary: "#f9fafb",
|
|
618
|
-
text: "#111827",
|
|
619
|
-
textSecondary: "#374151",
|
|
620
|
-
textMuted: "#6b7280",
|
|
621
|
-
border: "#e5e7eb",
|
|
622
|
-
primary: "#3b82f6",
|
|
623
|
-
primaryHover: "#2563eb"
|
|
624
|
-
}
|
|
625
|
-
},
|
|
626
|
-
dark: {
|
|
627
|
-
name: "dark",
|
|
628
|
-
colors: {
|
|
629
|
-
surface: "#1e293b",
|
|
630
|
-
surfaceSecondary: "#334155",
|
|
631
|
-
text: "#f1f5f9",
|
|
632
|
-
textSecondary: "#e2e8f0",
|
|
633
|
-
textMuted: "#cbd5e1",
|
|
634
|
-
border: "#475569",
|
|
635
|
-
primary: "#60a5fa",
|
|
636
|
-
primaryHover: "#3b82f6"
|
|
637
|
-
}
|
|
638
|
-
},
|
|
639
|
-
neon: {
|
|
640
|
-
name: "neon",
|
|
641
|
-
colors: {
|
|
642
|
-
surface: "#0a0118",
|
|
643
|
-
surfaceSecondary: "#1a0f2e",
|
|
644
|
-
surfaceTertiary: "#2a1f3e",
|
|
645
|
-
text: "#ffffff",
|
|
646
|
-
textSecondary: "#e0e0ff",
|
|
647
|
-
textMuted: "#b0b0d0",
|
|
648
|
-
border: "#ff00ff",
|
|
649
|
-
borderSecondary: "#00ffff",
|
|
650
|
-
primary: "#00ffff",
|
|
651
|
-
primaryHover: "#00cccc",
|
|
652
|
-
primaryContent: "#000000",
|
|
653
|
-
success: "#00ff00",
|
|
654
|
-
warning: "#ffff00",
|
|
655
|
-
error: "#ff0066",
|
|
656
|
-
info: "#00ffff",
|
|
657
|
-
danger: "#ff1493"
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
}, qa = [
|
|
661
|
-
"#3b82f6",
|
|
662
|
-
// blue
|
|
663
|
-
"#10b981",
|
|
664
|
-
// green
|
|
665
|
-
"#f59e0b",
|
|
666
|
-
// yellow
|
|
667
|
-
"#ef4444",
|
|
668
|
-
// red
|
|
669
|
-
"#8b5cf6",
|
|
670
|
-
// purple
|
|
671
|
-
"#f97316",
|
|
672
|
-
// orange
|
|
673
|
-
"#06b6d4",
|
|
674
|
-
// cyan
|
|
675
|
-
"#84cc16"
|
|
676
|
-
// lime
|
|
677
|
-
], Cn = [
|
|
678
|
-
"#440154",
|
|
679
|
-
// dark purple
|
|
680
|
-
"#414487",
|
|
681
|
-
// purple-blue
|
|
682
|
-
"#2a788e",
|
|
683
|
-
// teal
|
|
684
|
-
"#22a884",
|
|
685
|
-
// green-teal
|
|
686
|
-
"#7ad151",
|
|
687
|
-
// green
|
|
688
|
-
"#fde725"
|
|
689
|
-
// yellow
|
|
690
|
-
], Va = "#10b981", za = "#ef4444", Wa = {
|
|
691
|
-
top: 5,
|
|
692
|
-
right: 30,
|
|
693
|
-
left: 20,
|
|
694
|
-
bottom: 5
|
|
695
|
-
};
|
|
696
|
-
function _t(t, e) {
|
|
697
|
-
return t == null || e == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
|
|
698
|
-
}
|
|
699
|
-
function En(t, e) {
|
|
700
|
-
return t == null || e == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
|
|
701
|
-
}
|
|
702
|
-
function Le(t) {
|
|
703
|
-
let e, n, r;
|
|
704
|
-
t.length !== 2 ? (e = _t, n = (s, c) => _t(t(s), c), r = (s, c) => t(s) - c) : (e = t === _t || t === En ? t : Fn, n = t, r = t);
|
|
705
|
-
function i(s, c, u = 0, f = s.length) {
|
|
706
|
-
if (u < f) {
|
|
707
|
-
if (e(c, c) !== 0) return f;
|
|
708
|
-
do {
|
|
709
|
-
const d = u + f >>> 1;
|
|
710
|
-
n(s[d], c) < 0 ? u = d + 1 : f = d;
|
|
711
|
-
} while (u < f);
|
|
712
|
-
}
|
|
713
|
-
return u;
|
|
714
|
-
}
|
|
715
|
-
function a(s, c, u = 0, f = s.length) {
|
|
716
|
-
if (u < f) {
|
|
717
|
-
if (e(c, c) !== 0) return f;
|
|
718
|
-
do {
|
|
719
|
-
const d = u + f >>> 1;
|
|
720
|
-
n(s[d], c) <= 0 ? u = d + 1 : f = d;
|
|
721
|
-
} while (u < f);
|
|
722
|
-
}
|
|
723
|
-
return u;
|
|
724
|
-
}
|
|
725
|
-
function o(s, c, u = 0, f = s.length) {
|
|
726
|
-
const d = i(s, c, u, f - 1);
|
|
727
|
-
return d > u && r(s[d - 1], c) > -r(s[d], c) ? d - 1 : d;
|
|
728
|
-
}
|
|
729
|
-
return { left: i, center: o, right: a };
|
|
730
|
-
}
|
|
731
|
-
function Fn() {
|
|
732
|
-
return 0;
|
|
733
|
-
}
|
|
734
|
-
function Rn(t) {
|
|
735
|
-
return t === null ? NaN : +t;
|
|
736
|
-
}
|
|
737
|
-
const Tn = Le(_t), He = Tn.right;
|
|
738
|
-
Le(Rn).center;
|
|
739
|
-
function Ya(t, e) {
|
|
740
|
-
let n, r;
|
|
741
|
-
if (e === void 0)
|
|
742
|
-
for (const i of t)
|
|
743
|
-
i != null && (n === void 0 ? i >= i && (n = r = i) : (n > i && (n = i), r < i && (r = i)));
|
|
744
|
-
else {
|
|
745
|
-
let i = -1;
|
|
746
|
-
for (let a of t)
|
|
747
|
-
(a = e(a, ++i, t)) != null && (n === void 0 ? a >= a && (n = r = a) : (n > a && (n = a), r < a && (r = a)));
|
|
748
|
-
}
|
|
749
|
-
return [n, r];
|
|
750
|
-
}
|
|
751
|
-
class ue extends Map {
|
|
752
|
-
constructor(e, n = Hn) {
|
|
753
|
-
if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: n } }), e != null) for (const [r, i] of e) this.set(r, i);
|
|
754
|
-
}
|
|
755
|
-
get(e) {
|
|
756
|
-
return super.get(le(this, e));
|
|
757
|
-
}
|
|
758
|
-
has(e) {
|
|
759
|
-
return super.has(le(this, e));
|
|
760
|
-
}
|
|
761
|
-
set(e, n) {
|
|
762
|
-
return super.set(Dn(this, e), n);
|
|
763
|
-
}
|
|
764
|
-
delete(e) {
|
|
765
|
-
return super.delete(Ln(this, e));
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
function le({ _intern: t, _key: e }, n) {
|
|
769
|
-
const r = e(n);
|
|
770
|
-
return t.has(r) ? t.get(r) : n;
|
|
771
|
-
}
|
|
772
|
-
function Dn({ _intern: t, _key: e }, n) {
|
|
773
|
-
const r = e(n);
|
|
774
|
-
return t.has(r) ? t.get(r) : (t.set(r, n), n);
|
|
775
|
-
}
|
|
776
|
-
function Ln({ _intern: t, _key: e }, n) {
|
|
777
|
-
const r = e(n);
|
|
778
|
-
return t.has(r) && (n = t.get(r), t.delete(r)), n;
|
|
779
|
-
}
|
|
780
|
-
function Hn(t) {
|
|
781
|
-
return t !== null && typeof t == "object" ? t.valueOf() : t;
|
|
782
|
-
}
|
|
783
|
-
const Pn = Math.sqrt(50), In = Math.sqrt(10), Un = Math.sqrt(2);
|
|
784
|
-
function St(t, e, n) {
|
|
785
|
-
const r = (e - t) / Math.max(0, n), i = Math.floor(Math.log10(r)), a = r / Math.pow(10, i), o = a >= Pn ? 10 : a >= In ? 5 : a >= Un ? 2 : 1;
|
|
786
|
-
let s, c, u;
|
|
787
|
-
return i < 0 ? (u = Math.pow(10, -i) / o, s = Math.round(t * u), c = Math.round(e * u), s / u < t && ++s, c / u > e && --c, u = -u) : (u = Math.pow(10, i) * o, s = Math.round(t / u), c = Math.round(e / u), s * u < t && ++s, c * u > e && --c), c < s && 0.5 <= n && n < 2 ? St(t, e, n * 2) : [s, c, u];
|
|
788
|
-
}
|
|
789
|
-
function On(t, e, n) {
|
|
790
|
-
if (e = +e, t = +t, n = +n, !(n > 0)) return [];
|
|
791
|
-
if (t === e) return [t];
|
|
792
|
-
const r = e < t, [i, a, o] = r ? St(e, t, n) : St(t, e, n);
|
|
793
|
-
if (!(a >= i)) return [];
|
|
794
|
-
const s = a - i + 1, c = new Array(s);
|
|
795
|
-
if (r)
|
|
796
|
-
if (o < 0) for (let u = 0; u < s; ++u) c[u] = (a - u) / -o;
|
|
797
|
-
else for (let u = 0; u < s; ++u) c[u] = (a - u) * o;
|
|
798
|
-
else if (o < 0) for (let u = 0; u < s; ++u) c[u] = (i + u) / -o;
|
|
799
|
-
else for (let u = 0; u < s; ++u) c[u] = (i + u) * o;
|
|
800
|
-
return c;
|
|
801
|
-
}
|
|
802
|
-
function Vt(t, e, n) {
|
|
803
|
-
return e = +e, t = +t, n = +n, St(t, e, n)[2];
|
|
804
|
-
}
|
|
805
|
-
function qn(t, e, n) {
|
|
806
|
-
e = +e, t = +t, n = +n;
|
|
807
|
-
const r = e < t, i = r ? Vt(e, t, n) : Vt(t, e, n);
|
|
808
|
-
return (r ? -1 : 1) * (i < 0 ? 1 / -i : i);
|
|
809
|
-
}
|
|
810
|
-
function fe(t, e) {
|
|
811
|
-
let n;
|
|
812
|
-
if (e === void 0)
|
|
813
|
-
for (const r of t)
|
|
814
|
-
r != null && (n < r || n === void 0 && r >= r) && (n = r);
|
|
815
|
-
else {
|
|
816
|
-
let r = -1;
|
|
817
|
-
for (let i of t)
|
|
818
|
-
(i = e(i, ++r, t)) != null && (n < i || n === void 0 && i >= i) && (n = i);
|
|
819
|
-
}
|
|
820
|
-
return n;
|
|
821
|
-
}
|
|
822
|
-
function he(t, e) {
|
|
823
|
-
let n;
|
|
824
|
-
if (e === void 0)
|
|
825
|
-
for (const r of t)
|
|
826
|
-
r != null && (n > r || n === void 0 && r >= r) && (n = r);
|
|
827
|
-
else {
|
|
828
|
-
let r = -1;
|
|
829
|
-
for (let i of t)
|
|
830
|
-
(i = e(i, ++r, t)) != null && (n > i || n === void 0 && i >= i) && (n = i);
|
|
831
|
-
}
|
|
832
|
-
return n;
|
|
833
|
-
}
|
|
834
|
-
function Vn(t) {
|
|
835
|
-
return t;
|
|
836
|
-
}
|
|
837
|
-
var Ht = 1, Pt = 2, zt = 3, ut = 4, de = 1e-6;
|
|
838
|
-
function zn(t) {
|
|
839
|
-
return "translate(" + t + ",0)";
|
|
840
|
-
}
|
|
841
|
-
function Wn(t) {
|
|
842
|
-
return "translate(0," + t + ")";
|
|
843
|
-
}
|
|
844
|
-
function Yn(t) {
|
|
845
|
-
return (e) => +t(e);
|
|
846
|
-
}
|
|
847
|
-
function Xn(t, e) {
|
|
848
|
-
return e = Math.max(0, t.bandwidth() - e * 2) / 2, t.round() && (e = Math.round(e)), (n) => +t(n) + e;
|
|
849
|
-
}
|
|
850
|
-
function Bn() {
|
|
851
|
-
return !this.__axis;
|
|
852
|
-
}
|
|
853
|
-
function Pe(t, e) {
|
|
854
|
-
var n = [], r = null, i = null, a = 6, o = 6, s = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, u = t === Ht || t === ut ? -1 : 1, f = t === ut || t === Pt ? "x" : "y", d = t === Ht || t === zt ? zn : Wn;
|
|
855
|
-
function l(h) {
|
|
856
|
-
var v = r ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), E = i ?? (e.tickFormat ? e.tickFormat.apply(e, n) : Vn), N = Math.max(a, 0) + s, C = e.range(), M = +C[0] + c, k = +C[C.length - 1] + c, A = (e.bandwidth ? Xn : Yn)(e.copy(), c), _ = h.selection ? h.selection() : h, R = _.selectAll(".domain").data([null]), $ = _.selectAll(".tick").data(v, e).order(), z = $.exit(), b = $.enter().append("g").attr("class", "tick"), m = $.select("line"), g = $.select("text");
|
|
857
|
-
R = R.merge(R.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), $ = $.merge(b), m = m.merge(b.append("line").attr("stroke", "currentColor").attr(f + "2", u * a)), g = g.merge(b.append("text").attr("fill", "currentColor").attr(f, u * N).attr("dy", t === Ht ? "0em" : t === zt ? "0.71em" : "0.32em")), h !== _ && (R = R.transition(h), $ = $.transition(h), m = m.transition(h), g = g.transition(h), z = z.transition(h).attr("opacity", de).attr("transform", function(x) {
|
|
858
|
-
return isFinite(x = A(x)) ? d(x + c) : this.getAttribute("transform");
|
|
859
|
-
}), b.attr("opacity", de).attr("transform", function(x) {
|
|
860
|
-
var w = this.parentNode.__axis;
|
|
861
|
-
return d((w && isFinite(w = w(x)) ? w : A(x)) + c);
|
|
862
|
-
})), z.remove(), R.attr("d", t === ut || t === Pt ? o ? "M" + u * o + "," + M + "H" + c + "V" + k + "H" + u * o : "M" + c + "," + M + "V" + k : o ? "M" + M + "," + u * o + "V" + c + "H" + k + "V" + u * o : "M" + M + "," + c + "H" + k), $.attr("opacity", 1).attr("transform", function(x) {
|
|
863
|
-
return d(A(x) + c);
|
|
864
|
-
}), m.attr(f + "2", u * a), g.attr(f, u * N).text(E), _.filter(Bn).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === Pt ? "start" : t === ut ? "end" : "middle"), _.each(function() {
|
|
865
|
-
this.__axis = A;
|
|
866
|
-
});
|
|
867
|
-
}
|
|
868
|
-
return l.scale = function(h) {
|
|
869
|
-
return arguments.length ? (e = h, l) : e;
|
|
870
|
-
}, l.ticks = function() {
|
|
871
|
-
return n = Array.from(arguments), l;
|
|
872
|
-
}, l.tickArguments = function(h) {
|
|
873
|
-
return arguments.length ? (n = h == null ? [] : Array.from(h), l) : n.slice();
|
|
874
|
-
}, l.tickValues = function(h) {
|
|
875
|
-
return arguments.length ? (r = h == null ? null : Array.from(h), l) : r && r.slice();
|
|
876
|
-
}, l.tickFormat = function(h) {
|
|
877
|
-
return arguments.length ? (i = h, l) : i;
|
|
878
|
-
}, l.tickSize = function(h) {
|
|
879
|
-
return arguments.length ? (a = o = +h, l) : a;
|
|
880
|
-
}, l.tickSizeInner = function(h) {
|
|
881
|
-
return arguments.length ? (a = +h, l) : a;
|
|
882
|
-
}, l.tickSizeOuter = function(h) {
|
|
883
|
-
return arguments.length ? (o = +h, l) : o;
|
|
884
|
-
}, l.tickPadding = function(h) {
|
|
885
|
-
return arguments.length ? (s = +h, l) : s;
|
|
886
|
-
}, l.offset = function(h) {
|
|
887
|
-
return arguments.length ? (c = +h, l) : c;
|
|
888
|
-
}, l;
|
|
889
|
-
}
|
|
890
|
-
function Xa(t) {
|
|
891
|
-
return Pe(zt, t);
|
|
892
|
-
}
|
|
893
|
-
function Ba(t) {
|
|
894
|
-
return Pe(ut, t);
|
|
895
|
-
}
|
|
896
|
-
var Wt = "http://www.w3.org/1999/xhtml";
|
|
897
|
-
const me = {
|
|
898
|
-
svg: "http://www.w3.org/2000/svg",
|
|
899
|
-
xhtml: Wt,
|
|
900
|
-
xlink: "http://www.w3.org/1999/xlink",
|
|
901
|
-
xml: "http://www.w3.org/XML/1998/namespace",
|
|
902
|
-
xmlns: "http://www.w3.org/2000/xmlns/"
|
|
903
|
-
};
|
|
904
|
-
function Ie(t) {
|
|
905
|
-
var e = t += "", n = e.indexOf(":");
|
|
906
|
-
return n >= 0 && (e = t.slice(0, n)) !== "xmlns" && (t = t.slice(n + 1)), me.hasOwnProperty(e) ? { space: me[e], local: t } : t;
|
|
907
|
-
}
|
|
908
|
-
function Gn(t) {
|
|
909
|
-
return function() {
|
|
910
|
-
var e = this.ownerDocument, n = this.namespaceURI;
|
|
911
|
-
return n === Wt && e.documentElement.namespaceURI === Wt ? e.createElement(t) : e.createElementNS(n, t);
|
|
912
|
-
};
|
|
913
|
-
}
|
|
914
|
-
function Qn(t) {
|
|
915
|
-
return function() {
|
|
916
|
-
return this.ownerDocument.createElementNS(t.space, t.local);
|
|
917
|
-
};
|
|
918
|
-
}
|
|
919
|
-
function Ue(t) {
|
|
920
|
-
var e = Ie(t);
|
|
921
|
-
return (e.local ? Qn : Gn)(e);
|
|
922
|
-
}
|
|
923
|
-
function Kn() {
|
|
924
|
-
}
|
|
925
|
-
function Oe(t) {
|
|
926
|
-
return t == null ? Kn : function() {
|
|
927
|
-
return this.querySelector(t);
|
|
928
|
-
};
|
|
929
|
-
}
|
|
930
|
-
function Jn(t) {
|
|
931
|
-
typeof t != "function" && (t = Oe(t));
|
|
932
|
-
for (var e = this._groups, n = e.length, r = new Array(n), i = 0; i < n; ++i)
|
|
933
|
-
for (var a = e[i], o = a.length, s = r[i] = new Array(o), c, u, f = 0; f < o; ++f)
|
|
934
|
-
(c = a[f]) && (u = t.call(c, c.__data__, f, a)) && ("__data__" in c && (u.__data__ = c.__data__), s[f] = u);
|
|
935
|
-
return new V(r, this._parents);
|
|
936
|
-
}
|
|
937
|
-
function Zn(t) {
|
|
938
|
-
return t == null ? [] : Array.isArray(t) ? t : Array.from(t);
|
|
939
|
-
}
|
|
940
|
-
function jn() {
|
|
941
|
-
return [];
|
|
942
|
-
}
|
|
943
|
-
function tr(t) {
|
|
944
|
-
return t == null ? jn : function() {
|
|
945
|
-
return this.querySelectorAll(t);
|
|
946
|
-
};
|
|
947
|
-
}
|
|
948
|
-
function er(t) {
|
|
949
|
-
return function() {
|
|
950
|
-
return Zn(t.apply(this, arguments));
|
|
951
|
-
};
|
|
952
|
-
}
|
|
953
|
-
function nr(t) {
|
|
954
|
-
typeof t == "function" ? t = er(t) : t = tr(t);
|
|
955
|
-
for (var e = this._groups, n = e.length, r = [], i = [], a = 0; a < n; ++a)
|
|
956
|
-
for (var o = e[a], s = o.length, c, u = 0; u < s; ++u)
|
|
957
|
-
(c = o[u]) && (r.push(t.call(c, c.__data__, u, o)), i.push(c));
|
|
958
|
-
return new V(r, i);
|
|
959
|
-
}
|
|
960
|
-
function rr(t) {
|
|
961
|
-
return function() {
|
|
962
|
-
return this.matches(t);
|
|
963
|
-
};
|
|
964
|
-
}
|
|
965
|
-
function qe(t) {
|
|
966
|
-
return function(e) {
|
|
967
|
-
return e.matches(t);
|
|
968
|
-
};
|
|
969
|
-
}
|
|
970
|
-
var ir = Array.prototype.find;
|
|
971
|
-
function ar(t) {
|
|
972
|
-
return function() {
|
|
973
|
-
return ir.call(this.children, t);
|
|
974
|
-
};
|
|
975
|
-
}
|
|
976
|
-
function or() {
|
|
977
|
-
return this.firstElementChild;
|
|
978
|
-
}
|
|
979
|
-
function sr(t) {
|
|
980
|
-
return this.select(t == null ? or : ar(typeof t == "function" ? t : qe(t)));
|
|
981
|
-
}
|
|
982
|
-
var cr = Array.prototype.filter;
|
|
983
|
-
function ur() {
|
|
984
|
-
return Array.from(this.children);
|
|
985
|
-
}
|
|
986
|
-
function lr(t) {
|
|
987
|
-
return function() {
|
|
988
|
-
return cr.call(this.children, t);
|
|
989
|
-
};
|
|
990
|
-
}
|
|
991
|
-
function fr(t) {
|
|
992
|
-
return this.selectAll(t == null ? ur : lr(typeof t == "function" ? t : qe(t)));
|
|
993
|
-
}
|
|
994
|
-
function hr(t) {
|
|
995
|
-
typeof t != "function" && (t = rr(t));
|
|
996
|
-
for (var e = this._groups, n = e.length, r = new Array(n), i = 0; i < n; ++i)
|
|
997
|
-
for (var a = e[i], o = a.length, s = r[i] = [], c, u = 0; u < o; ++u)
|
|
998
|
-
(c = a[u]) && t.call(c, c.__data__, u, a) && s.push(c);
|
|
999
|
-
return new V(r, this._parents);
|
|
1000
|
-
}
|
|
1001
|
-
function Ve(t) {
|
|
1002
|
-
return new Array(t.length);
|
|
1003
|
-
}
|
|
1004
|
-
function dr() {
|
|
1005
|
-
return new V(this._enter || this._groups.map(Ve), this._parents);
|
|
1006
|
-
}
|
|
1007
|
-
function kt(t, e) {
|
|
1008
|
-
this.ownerDocument = t.ownerDocument, this.namespaceURI = t.namespaceURI, this._next = null, this._parent = t, this.__data__ = e;
|
|
1009
|
-
}
|
|
1010
|
-
kt.prototype = {
|
|
1011
|
-
constructor: kt,
|
|
1012
|
-
appendChild: function(t) {
|
|
1013
|
-
return this._parent.insertBefore(t, this._next);
|
|
1014
|
-
},
|
|
1015
|
-
insertBefore: function(t, e) {
|
|
1016
|
-
return this._parent.insertBefore(t, e);
|
|
1017
|
-
},
|
|
1018
|
-
querySelector: function(t) {
|
|
1019
|
-
return this._parent.querySelector(t);
|
|
1020
|
-
},
|
|
1021
|
-
querySelectorAll: function(t) {
|
|
1022
|
-
return this._parent.querySelectorAll(t);
|
|
1023
|
-
}
|
|
1024
|
-
};
|
|
1025
|
-
function mr(t) {
|
|
1026
|
-
return function() {
|
|
1027
|
-
return t;
|
|
1028
|
-
};
|
|
1029
|
-
}
|
|
1030
|
-
function gr(t, e, n, r, i, a) {
|
|
1031
|
-
for (var o = 0, s, c = e.length, u = a.length; o < u; ++o)
|
|
1032
|
-
(s = e[o]) ? (s.__data__ = a[o], r[o] = s) : n[o] = new kt(t, a[o]);
|
|
1033
|
-
for (; o < c; ++o)
|
|
1034
|
-
(s = e[o]) && (i[o] = s);
|
|
1035
|
-
}
|
|
1036
|
-
function pr(t, e, n, r, i, a, o) {
|
|
1037
|
-
var s, c, u = /* @__PURE__ */ new Map(), f = e.length, d = a.length, l = new Array(f), h;
|
|
1038
|
-
for (s = 0; s < f; ++s)
|
|
1039
|
-
(c = e[s]) && (l[s] = h = o.call(c, c.__data__, s, e) + "", u.has(h) ? i[s] = c : u.set(h, c));
|
|
1040
|
-
for (s = 0; s < d; ++s)
|
|
1041
|
-
h = o.call(t, a[s], s, a) + "", (c = u.get(h)) ? (r[s] = c, c.__data__ = a[s], u.delete(h)) : n[s] = new kt(t, a[s]);
|
|
1042
|
-
for (s = 0; s < f; ++s)
|
|
1043
|
-
(c = e[s]) && u.get(l[s]) === c && (i[s] = c);
|
|
1044
|
-
}
|
|
1045
|
-
function yr(t) {
|
|
1046
|
-
return t.__data__;
|
|
1047
|
-
}
|
|
1048
|
-
function xr(t, e) {
|
|
1049
|
-
if (!arguments.length) return Array.from(this, yr);
|
|
1050
|
-
var n = e ? pr : gr, r = this._parents, i = this._groups;
|
|
1051
|
-
typeof t != "function" && (t = mr(t));
|
|
1052
|
-
for (var a = i.length, o = new Array(a), s = new Array(a), c = new Array(a), u = 0; u < a; ++u) {
|
|
1053
|
-
var f = r[u], d = i[u], l = d.length, h = wr(t.call(f, f && f.__data__, u, r)), v = h.length, E = s[u] = new Array(v), N = o[u] = new Array(v), C = c[u] = new Array(l);
|
|
1054
|
-
n(f, d, E, N, C, h, e);
|
|
1055
|
-
for (var M = 0, k = 0, A, _; M < v; ++M)
|
|
1056
|
-
if (A = E[M]) {
|
|
1057
|
-
for (M >= k && (k = M + 1); !(_ = N[k]) && ++k < v; ) ;
|
|
1058
|
-
A._next = _ || null;
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
return o = new V(o, r), o._enter = s, o._exit = c, o;
|
|
1062
|
-
}
|
|
1063
|
-
function wr(t) {
|
|
1064
|
-
return typeof t == "object" && "length" in t ? t : Array.from(t);
|
|
1065
|
-
}
|
|
1066
|
-
function br() {
|
|
1067
|
-
return new V(this._exit || this._groups.map(Ve), this._parents);
|
|
1068
|
-
}
|
|
1069
|
-
function vr(t, e, n) {
|
|
1070
|
-
var r = this.enter(), i = this, a = this.exit();
|
|
1071
|
-
return typeof t == "function" ? (r = t(r), r && (r = r.selection())) : r = r.append(t + ""), e != null && (i = e(i), i && (i = i.selection())), n == null ? a.remove() : n(a), r && i ? r.merge(i).order() : i;
|
|
1072
|
-
}
|
|
1073
|
-
function Mr(t) {
|
|
1074
|
-
for (var e = t.selection ? t.selection() : t, n = this._groups, r = e._groups, i = n.length, a = r.length, o = Math.min(i, a), s = new Array(i), c = 0; c < o; ++c)
|
|
1075
|
-
for (var u = n[c], f = r[c], d = u.length, l = s[c] = new Array(d), h, v = 0; v < d; ++v)
|
|
1076
|
-
(h = u[v] || f[v]) && (l[v] = h);
|
|
1077
|
-
for (; c < i; ++c)
|
|
1078
|
-
s[c] = n[c];
|
|
1079
|
-
return new V(s, this._parents);
|
|
1080
|
-
}
|
|
1081
|
-
function _r() {
|
|
1082
|
-
for (var t = this._groups, e = -1, n = t.length; ++e < n; )
|
|
1083
|
-
for (var r = t[e], i = r.length - 1, a = r[i], o; --i >= 0; )
|
|
1084
|
-
(o = r[i]) && (a && o.compareDocumentPosition(a) ^ 4 && a.parentNode.insertBefore(o, a), a = o);
|
|
1085
|
-
return this;
|
|
1086
|
-
}
|
|
1087
|
-
function Nr(t) {
|
|
1088
|
-
t || (t = Sr);
|
|
1089
|
-
function e(d, l) {
|
|
1090
|
-
return d && l ? t(d.__data__, l.__data__) : !d - !l;
|
|
1091
|
-
}
|
|
1092
|
-
for (var n = this._groups, r = n.length, i = new Array(r), a = 0; a < r; ++a) {
|
|
1093
|
-
for (var o = n[a], s = o.length, c = i[a] = new Array(s), u, f = 0; f < s; ++f)
|
|
1094
|
-
(u = o[f]) && (c[f] = u);
|
|
1095
|
-
c.sort(e);
|
|
1096
|
-
}
|
|
1097
|
-
return new V(i, this._parents).order();
|
|
1098
|
-
}
|
|
1099
|
-
function Sr(t, e) {
|
|
1100
|
-
return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
|
|
1101
|
-
}
|
|
1102
|
-
function kr() {
|
|
1103
|
-
var t = arguments[0];
|
|
1104
|
-
return arguments[0] = this, t.apply(null, arguments), this;
|
|
1105
|
-
}
|
|
1106
|
-
function $r() {
|
|
1107
|
-
return Array.from(this);
|
|
1108
|
-
}
|
|
1109
|
-
function Ar() {
|
|
1110
|
-
for (var t = this._groups, e = 0, n = t.length; e < n; ++e)
|
|
1111
|
-
for (var r = t[e], i = 0, a = r.length; i < a; ++i) {
|
|
1112
|
-
var o = r[i];
|
|
1113
|
-
if (o) return o;
|
|
1114
|
-
}
|
|
1115
|
-
return null;
|
|
1116
|
-
}
|
|
1117
|
-
function Cr() {
|
|
1118
|
-
let t = 0;
|
|
1119
|
-
for (const e of this) ++t;
|
|
1120
|
-
return t;
|
|
1121
|
-
}
|
|
1122
|
-
function Er() {
|
|
1123
|
-
return !this.node();
|
|
1124
|
-
}
|
|
1125
|
-
function Fr(t) {
|
|
1126
|
-
for (var e = this._groups, n = 0, r = e.length; n < r; ++n)
|
|
1127
|
-
for (var i = e[n], a = 0, o = i.length, s; a < o; ++a)
|
|
1128
|
-
(s = i[a]) && t.call(s, s.__data__, a, i);
|
|
1129
|
-
return this;
|
|
1130
|
-
}
|
|
1131
|
-
function Rr(t) {
|
|
1132
|
-
return function() {
|
|
1133
|
-
this.removeAttribute(t);
|
|
1134
|
-
};
|
|
1135
|
-
}
|
|
1136
|
-
function Tr(t) {
|
|
1137
|
-
return function() {
|
|
1138
|
-
this.removeAttributeNS(t.space, t.local);
|
|
1139
|
-
};
|
|
1140
|
-
}
|
|
1141
|
-
function Dr(t, e) {
|
|
1142
|
-
return function() {
|
|
1143
|
-
this.setAttribute(t, e);
|
|
1144
|
-
};
|
|
1145
|
-
}
|
|
1146
|
-
function Lr(t, e) {
|
|
1147
|
-
return function() {
|
|
1148
|
-
this.setAttributeNS(t.space, t.local, e);
|
|
1149
|
-
};
|
|
1150
|
-
}
|
|
1151
|
-
function Hr(t, e) {
|
|
1152
|
-
return function() {
|
|
1153
|
-
var n = e.apply(this, arguments);
|
|
1154
|
-
n == null ? this.removeAttribute(t) : this.setAttribute(t, n);
|
|
1155
|
-
};
|
|
1156
|
-
}
|
|
1157
|
-
function Pr(t, e) {
|
|
1158
|
-
return function() {
|
|
1159
|
-
var n = e.apply(this, arguments);
|
|
1160
|
-
n == null ? this.removeAttributeNS(t.space, t.local) : this.setAttributeNS(t.space, t.local, n);
|
|
1161
|
-
};
|
|
1162
|
-
}
|
|
1163
|
-
function Ir(t, e) {
|
|
1164
|
-
var n = Ie(t);
|
|
1165
|
-
if (arguments.length < 2) {
|
|
1166
|
-
var r = this.node();
|
|
1167
|
-
return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n);
|
|
1168
|
-
}
|
|
1169
|
-
return this.each((e == null ? n.local ? Tr : Rr : typeof e == "function" ? n.local ? Pr : Hr : n.local ? Lr : Dr)(n, e));
|
|
1170
|
-
}
|
|
1171
|
-
function ze(t) {
|
|
1172
|
-
return t.ownerDocument && t.ownerDocument.defaultView || t.document && t || t.defaultView;
|
|
1173
|
-
}
|
|
1174
|
-
function Ur(t) {
|
|
1175
|
-
return function() {
|
|
1176
|
-
this.style.removeProperty(t);
|
|
1177
|
-
};
|
|
1178
|
-
}
|
|
1179
|
-
function Or(t, e, n) {
|
|
1180
|
-
return function() {
|
|
1181
|
-
this.style.setProperty(t, e, n);
|
|
1182
|
-
};
|
|
1183
|
-
}
|
|
1184
|
-
function qr(t, e, n) {
|
|
1185
|
-
return function() {
|
|
1186
|
-
var r = e.apply(this, arguments);
|
|
1187
|
-
r == null ? this.style.removeProperty(t) : this.style.setProperty(t, r, n);
|
|
1188
|
-
};
|
|
1189
|
-
}
|
|
1190
|
-
function Vr(t, e, n) {
|
|
1191
|
-
return arguments.length > 1 ? this.each((e == null ? Ur : typeof e == "function" ? qr : Or)(t, e, n ?? "")) : zr(this.node(), t);
|
|
1192
|
-
}
|
|
1193
|
-
function zr(t, e) {
|
|
1194
|
-
return t.style.getPropertyValue(e) || ze(t).getComputedStyle(t, null).getPropertyValue(e);
|
|
1195
|
-
}
|
|
1196
|
-
function Wr(t) {
|
|
1197
|
-
return function() {
|
|
1198
|
-
delete this[t];
|
|
1199
|
-
};
|
|
1200
|
-
}
|
|
1201
|
-
function Yr(t, e) {
|
|
1202
|
-
return function() {
|
|
1203
|
-
this[t] = e;
|
|
1204
|
-
};
|
|
1205
|
-
}
|
|
1206
|
-
function Xr(t, e) {
|
|
1207
|
-
return function() {
|
|
1208
|
-
var n = e.apply(this, arguments);
|
|
1209
|
-
n == null ? delete this[t] : this[t] = n;
|
|
1210
|
-
};
|
|
1211
|
-
}
|
|
1212
|
-
function Br(t, e) {
|
|
1213
|
-
return arguments.length > 1 ? this.each((e == null ? Wr : typeof e == "function" ? Xr : Yr)(t, e)) : this.node()[t];
|
|
1214
|
-
}
|
|
1215
|
-
function We(t) {
|
|
1216
|
-
return t.trim().split(/^|\s+/);
|
|
1217
|
-
}
|
|
1218
|
-
function Jt(t) {
|
|
1219
|
-
return t.classList || new Ye(t);
|
|
1220
|
-
}
|
|
1221
|
-
function Ye(t) {
|
|
1222
|
-
this._node = t, this._names = We(t.getAttribute("class") || "");
|
|
1223
|
-
}
|
|
1224
|
-
Ye.prototype = {
|
|
1225
|
-
add: function(t) {
|
|
1226
|
-
var e = this._names.indexOf(t);
|
|
1227
|
-
e < 0 && (this._names.push(t), this._node.setAttribute("class", this._names.join(" ")));
|
|
1228
|
-
},
|
|
1229
|
-
remove: function(t) {
|
|
1230
|
-
var e = this._names.indexOf(t);
|
|
1231
|
-
e >= 0 && (this._names.splice(e, 1), this._node.setAttribute("class", this._names.join(" ")));
|
|
1232
|
-
},
|
|
1233
|
-
contains: function(t) {
|
|
1234
|
-
return this._names.indexOf(t) >= 0;
|
|
1235
|
-
}
|
|
1236
|
-
};
|
|
1237
|
-
function Xe(t, e) {
|
|
1238
|
-
for (var n = Jt(t), r = -1, i = e.length; ++r < i; ) n.add(e[r]);
|
|
1239
|
-
}
|
|
1240
|
-
function Be(t, e) {
|
|
1241
|
-
for (var n = Jt(t), r = -1, i = e.length; ++r < i; ) n.remove(e[r]);
|
|
1242
|
-
}
|
|
1243
|
-
function Gr(t) {
|
|
1244
|
-
return function() {
|
|
1245
|
-
Xe(this, t);
|
|
1246
|
-
};
|
|
1247
|
-
}
|
|
1248
|
-
function Qr(t) {
|
|
1249
|
-
return function() {
|
|
1250
|
-
Be(this, t);
|
|
1251
|
-
};
|
|
1252
|
-
}
|
|
1253
|
-
function Kr(t, e) {
|
|
1254
|
-
return function() {
|
|
1255
|
-
(e.apply(this, arguments) ? Xe : Be)(this, t);
|
|
1256
|
-
};
|
|
1257
|
-
}
|
|
1258
|
-
function Jr(t, e) {
|
|
1259
|
-
var n = We(t + "");
|
|
1260
|
-
if (arguments.length < 2) {
|
|
1261
|
-
for (var r = Jt(this.node()), i = -1, a = n.length; ++i < a; ) if (!r.contains(n[i])) return !1;
|
|
1262
|
-
return !0;
|
|
1263
|
-
}
|
|
1264
|
-
return this.each((typeof e == "function" ? Kr : e ? Gr : Qr)(n, e));
|
|
1265
|
-
}
|
|
1266
|
-
function Zr() {
|
|
1267
|
-
this.textContent = "";
|
|
1268
|
-
}
|
|
1269
|
-
function jr(t) {
|
|
1270
|
-
return function() {
|
|
1271
|
-
this.textContent = t;
|
|
1272
|
-
};
|
|
1273
|
-
}
|
|
1274
|
-
function ti(t) {
|
|
1275
|
-
return function() {
|
|
1276
|
-
var e = t.apply(this, arguments);
|
|
1277
|
-
this.textContent = e ?? "";
|
|
1278
|
-
};
|
|
1279
|
-
}
|
|
1280
|
-
function ei(t) {
|
|
1281
|
-
return arguments.length ? this.each(t == null ? Zr : (typeof t == "function" ? ti : jr)(t)) : this.node().textContent;
|
|
1282
|
-
}
|
|
1283
|
-
function ni() {
|
|
1284
|
-
this.innerHTML = "";
|
|
1285
|
-
}
|
|
1286
|
-
function ri(t) {
|
|
1287
|
-
return function() {
|
|
1288
|
-
this.innerHTML = t;
|
|
1289
|
-
};
|
|
1290
|
-
}
|
|
1291
|
-
function ii(t) {
|
|
1292
|
-
return function() {
|
|
1293
|
-
var e = t.apply(this, arguments);
|
|
1294
|
-
this.innerHTML = e ?? "";
|
|
1295
|
-
};
|
|
1296
|
-
}
|
|
1297
|
-
function ai(t) {
|
|
1298
|
-
return arguments.length ? this.each(t == null ? ni : (typeof t == "function" ? ii : ri)(t)) : this.node().innerHTML;
|
|
1299
|
-
}
|
|
1300
|
-
function oi() {
|
|
1301
|
-
this.nextSibling && this.parentNode.appendChild(this);
|
|
1302
|
-
}
|
|
1303
|
-
function si() {
|
|
1304
|
-
return this.each(oi);
|
|
1305
|
-
}
|
|
1306
|
-
function ci() {
|
|
1307
|
-
this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
|
|
1308
|
-
}
|
|
1309
|
-
function ui() {
|
|
1310
|
-
return this.each(ci);
|
|
1311
|
-
}
|
|
1312
|
-
function li(t) {
|
|
1313
|
-
var e = typeof t == "function" ? t : Ue(t);
|
|
1314
|
-
return this.select(function() {
|
|
1315
|
-
return this.appendChild(e.apply(this, arguments));
|
|
1316
|
-
});
|
|
1317
|
-
}
|
|
1318
|
-
function fi() {
|
|
1319
|
-
return null;
|
|
1320
|
-
}
|
|
1321
|
-
function hi(t, e) {
|
|
1322
|
-
var n = typeof t == "function" ? t : Ue(t), r = e == null ? fi : typeof e == "function" ? e : Oe(e);
|
|
1323
|
-
return this.select(function() {
|
|
1324
|
-
return this.insertBefore(n.apply(this, arguments), r.apply(this, arguments) || null);
|
|
1325
|
-
});
|
|
1326
|
-
}
|
|
1327
|
-
function di() {
|
|
1328
|
-
var t = this.parentNode;
|
|
1329
|
-
t && t.removeChild(this);
|
|
1330
|
-
}
|
|
1331
|
-
function mi() {
|
|
1332
|
-
return this.each(di);
|
|
1333
|
-
}
|
|
1334
|
-
function gi() {
|
|
1335
|
-
var t = this.cloneNode(!1), e = this.parentNode;
|
|
1336
|
-
return e ? e.insertBefore(t, this.nextSibling) : t;
|
|
1337
|
-
}
|
|
1338
|
-
function pi() {
|
|
1339
|
-
var t = this.cloneNode(!0), e = this.parentNode;
|
|
1340
|
-
return e ? e.insertBefore(t, this.nextSibling) : t;
|
|
1341
|
-
}
|
|
1342
|
-
function yi(t) {
|
|
1343
|
-
return this.select(t ? pi : gi);
|
|
1344
|
-
}
|
|
1345
|
-
function xi(t) {
|
|
1346
|
-
return arguments.length ? this.property("__data__", t) : this.node().__data__;
|
|
1347
|
-
}
|
|
1348
|
-
function wi(t) {
|
|
1349
|
-
return function(e) {
|
|
1350
|
-
t.call(this, e, this.__data__);
|
|
1351
|
-
};
|
|
1352
|
-
}
|
|
1353
|
-
function bi(t) {
|
|
1354
|
-
return t.trim().split(/^|\s+/).map(function(e) {
|
|
1355
|
-
var n = "", r = e.indexOf(".");
|
|
1356
|
-
return r >= 0 && (n = e.slice(r + 1), e = e.slice(0, r)), { type: e, name: n };
|
|
1357
|
-
});
|
|
1358
|
-
}
|
|
1359
|
-
function vi(t) {
|
|
1360
|
-
return function() {
|
|
1361
|
-
var e = this.__on;
|
|
1362
|
-
if (e) {
|
|
1363
|
-
for (var n = 0, r = -1, i = e.length, a; n < i; ++n)
|
|
1364
|
-
a = e[n], (!t.type || a.type === t.type) && a.name === t.name ? this.removeEventListener(a.type, a.listener, a.options) : e[++r] = a;
|
|
1365
|
-
++r ? e.length = r : delete this.__on;
|
|
1366
|
-
}
|
|
1367
|
-
};
|
|
1368
|
-
}
|
|
1369
|
-
function Mi(t, e, n) {
|
|
1370
|
-
return function() {
|
|
1371
|
-
var r = this.__on, i, a = wi(e);
|
|
1372
|
-
if (r) {
|
|
1373
|
-
for (var o = 0, s = r.length; o < s; ++o)
|
|
1374
|
-
if ((i = r[o]).type === t.type && i.name === t.name) {
|
|
1375
|
-
this.removeEventListener(i.type, i.listener, i.options), this.addEventListener(i.type, i.listener = a, i.options = n), i.value = e;
|
|
1376
|
-
return;
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1379
|
-
this.addEventListener(t.type, a, n), i = { type: t.type, name: t.name, value: e, listener: a, options: n }, r ? r.push(i) : this.__on = [i];
|
|
1380
|
-
};
|
|
1381
|
-
}
|
|
1382
|
-
function _i(t, e, n) {
|
|
1383
|
-
var r = bi(t + ""), i, a = r.length, o;
|
|
1384
|
-
if (arguments.length < 2) {
|
|
1385
|
-
var s = this.node().__on;
|
|
1386
|
-
if (s) {
|
|
1387
|
-
for (var c = 0, u = s.length, f; c < u; ++c)
|
|
1388
|
-
for (i = 0, f = s[c]; i < a; ++i)
|
|
1389
|
-
if ((o = r[i]).type === f.type && o.name === f.name)
|
|
1390
|
-
return f.value;
|
|
1391
|
-
}
|
|
1392
|
-
return;
|
|
1393
|
-
}
|
|
1394
|
-
for (s = e ? Mi : vi, i = 0; i < a; ++i) this.each(s(r[i], e, n));
|
|
1395
|
-
return this;
|
|
1396
|
-
}
|
|
1397
|
-
function Ge(t, e, n) {
|
|
1398
|
-
var r = ze(t), i = r.CustomEvent;
|
|
1399
|
-
typeof i == "function" ? i = new i(e, n) : (i = r.document.createEvent("Event"), n ? (i.initEvent(e, n.bubbles, n.cancelable), i.detail = n.detail) : i.initEvent(e, !1, !1)), t.dispatchEvent(i);
|
|
1400
|
-
}
|
|
1401
|
-
function Ni(t, e) {
|
|
1402
|
-
return function() {
|
|
1403
|
-
return Ge(this, t, e);
|
|
1404
|
-
};
|
|
1405
|
-
}
|
|
1406
|
-
function Si(t, e) {
|
|
1407
|
-
return function() {
|
|
1408
|
-
return Ge(this, t, e.apply(this, arguments));
|
|
1409
|
-
};
|
|
1410
|
-
}
|
|
1411
|
-
function ki(t, e) {
|
|
1412
|
-
return this.each((typeof e == "function" ? Si : Ni)(t, e));
|
|
1413
|
-
}
|
|
1414
|
-
function* $i() {
|
|
1415
|
-
for (var t = this._groups, e = 0, n = t.length; e < n; ++e)
|
|
1416
|
-
for (var r = t[e], i = 0, a = r.length, o; i < a; ++i)
|
|
1417
|
-
(o = r[i]) && (yield o);
|
|
1418
|
-
}
|
|
1419
|
-
var Ai = [null];
|
|
1420
|
-
function V(t, e) {
|
|
1421
|
-
this._groups = t, this._parents = e;
|
|
1422
|
-
}
|
|
1423
|
-
function Ci() {
|
|
1424
|
-
return this;
|
|
1425
|
-
}
|
|
1426
|
-
V.prototype = {
|
|
1427
|
-
constructor: V,
|
|
1428
|
-
select: Jn,
|
|
1429
|
-
selectAll: nr,
|
|
1430
|
-
selectChild: sr,
|
|
1431
|
-
selectChildren: fr,
|
|
1432
|
-
filter: hr,
|
|
1433
|
-
data: xr,
|
|
1434
|
-
enter: dr,
|
|
1435
|
-
exit: br,
|
|
1436
|
-
join: vr,
|
|
1437
|
-
merge: Mr,
|
|
1438
|
-
selection: Ci,
|
|
1439
|
-
order: _r,
|
|
1440
|
-
sort: Nr,
|
|
1441
|
-
call: kr,
|
|
1442
|
-
nodes: $r,
|
|
1443
|
-
node: Ar,
|
|
1444
|
-
size: Cr,
|
|
1445
|
-
empty: Er,
|
|
1446
|
-
each: Fr,
|
|
1447
|
-
attr: Ir,
|
|
1448
|
-
style: Vr,
|
|
1449
|
-
property: Br,
|
|
1450
|
-
classed: Jr,
|
|
1451
|
-
text: ei,
|
|
1452
|
-
html: ai,
|
|
1453
|
-
raise: si,
|
|
1454
|
-
lower: ui,
|
|
1455
|
-
append: li,
|
|
1456
|
-
insert: hi,
|
|
1457
|
-
remove: mi,
|
|
1458
|
-
clone: yi,
|
|
1459
|
-
datum: xi,
|
|
1460
|
-
on: _i,
|
|
1461
|
-
dispatch: ki,
|
|
1462
|
-
[Symbol.iterator]: $i
|
|
1463
|
-
};
|
|
1464
|
-
function ct(t) {
|
|
1465
|
-
return typeof t == "string" ? new V([[document.querySelector(t)]], [document.documentElement]) : new V([[t]], Ai);
|
|
1466
|
-
}
|
|
1467
|
-
function Zt(t, e, n) {
|
|
1468
|
-
t.prototype = e.prototype = n, n.constructor = t;
|
|
1469
|
-
}
|
|
1470
|
-
function Qe(t, e) {
|
|
1471
|
-
var n = Object.create(t.prototype);
|
|
1472
|
-
for (var r in e) n[r] = e[r];
|
|
1473
|
-
return n;
|
|
1474
|
-
}
|
|
1475
|
-
function mt() {
|
|
1476
|
-
}
|
|
1477
|
-
var ft = 0.7, $t = 1 / ft, it = "\\s*([+-]?\\d+)\\s*", ht = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", X = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Ei = /^#([0-9a-f]{3,8})$/, Fi = new RegExp(`^rgb\\(${it},${it},${it}\\)$`), Ri = new RegExp(`^rgb\\(${X},${X},${X}\\)$`), Ti = new RegExp(`^rgba\\(${it},${it},${it},${ht}\\)$`), Di = new RegExp(`^rgba\\(${X},${X},${X},${ht}\\)$`), Li = new RegExp(`^hsl\\(${ht},${X},${X}\\)$`), Hi = new RegExp(`^hsla\\(${ht},${X},${X},${ht}\\)$`), ge = {
|
|
1478
|
-
aliceblue: 15792383,
|
|
1479
|
-
antiquewhite: 16444375,
|
|
1480
|
-
aqua: 65535,
|
|
1481
|
-
aquamarine: 8388564,
|
|
1482
|
-
azure: 15794175,
|
|
1483
|
-
beige: 16119260,
|
|
1484
|
-
bisque: 16770244,
|
|
1485
|
-
black: 0,
|
|
1486
|
-
blanchedalmond: 16772045,
|
|
1487
|
-
blue: 255,
|
|
1488
|
-
blueviolet: 9055202,
|
|
1489
|
-
brown: 10824234,
|
|
1490
|
-
burlywood: 14596231,
|
|
1491
|
-
cadetblue: 6266528,
|
|
1492
|
-
chartreuse: 8388352,
|
|
1493
|
-
chocolate: 13789470,
|
|
1494
|
-
coral: 16744272,
|
|
1495
|
-
cornflowerblue: 6591981,
|
|
1496
|
-
cornsilk: 16775388,
|
|
1497
|
-
crimson: 14423100,
|
|
1498
|
-
cyan: 65535,
|
|
1499
|
-
darkblue: 139,
|
|
1500
|
-
darkcyan: 35723,
|
|
1501
|
-
darkgoldenrod: 12092939,
|
|
1502
|
-
darkgray: 11119017,
|
|
1503
|
-
darkgreen: 25600,
|
|
1504
|
-
darkgrey: 11119017,
|
|
1505
|
-
darkkhaki: 12433259,
|
|
1506
|
-
darkmagenta: 9109643,
|
|
1507
|
-
darkolivegreen: 5597999,
|
|
1508
|
-
darkorange: 16747520,
|
|
1509
|
-
darkorchid: 10040012,
|
|
1510
|
-
darkred: 9109504,
|
|
1511
|
-
darksalmon: 15308410,
|
|
1512
|
-
darkseagreen: 9419919,
|
|
1513
|
-
darkslateblue: 4734347,
|
|
1514
|
-
darkslategray: 3100495,
|
|
1515
|
-
darkslategrey: 3100495,
|
|
1516
|
-
darkturquoise: 52945,
|
|
1517
|
-
darkviolet: 9699539,
|
|
1518
|
-
deeppink: 16716947,
|
|
1519
|
-
deepskyblue: 49151,
|
|
1520
|
-
dimgray: 6908265,
|
|
1521
|
-
dimgrey: 6908265,
|
|
1522
|
-
dodgerblue: 2003199,
|
|
1523
|
-
firebrick: 11674146,
|
|
1524
|
-
floralwhite: 16775920,
|
|
1525
|
-
forestgreen: 2263842,
|
|
1526
|
-
fuchsia: 16711935,
|
|
1527
|
-
gainsboro: 14474460,
|
|
1528
|
-
ghostwhite: 16316671,
|
|
1529
|
-
gold: 16766720,
|
|
1530
|
-
goldenrod: 14329120,
|
|
1531
|
-
gray: 8421504,
|
|
1532
|
-
green: 32768,
|
|
1533
|
-
greenyellow: 11403055,
|
|
1534
|
-
grey: 8421504,
|
|
1535
|
-
honeydew: 15794160,
|
|
1536
|
-
hotpink: 16738740,
|
|
1537
|
-
indianred: 13458524,
|
|
1538
|
-
indigo: 4915330,
|
|
1539
|
-
ivory: 16777200,
|
|
1540
|
-
khaki: 15787660,
|
|
1541
|
-
lavender: 15132410,
|
|
1542
|
-
lavenderblush: 16773365,
|
|
1543
|
-
lawngreen: 8190976,
|
|
1544
|
-
lemonchiffon: 16775885,
|
|
1545
|
-
lightblue: 11393254,
|
|
1546
|
-
lightcoral: 15761536,
|
|
1547
|
-
lightcyan: 14745599,
|
|
1548
|
-
lightgoldenrodyellow: 16448210,
|
|
1549
|
-
lightgray: 13882323,
|
|
1550
|
-
lightgreen: 9498256,
|
|
1551
|
-
lightgrey: 13882323,
|
|
1552
|
-
lightpink: 16758465,
|
|
1553
|
-
lightsalmon: 16752762,
|
|
1554
|
-
lightseagreen: 2142890,
|
|
1555
|
-
lightskyblue: 8900346,
|
|
1556
|
-
lightslategray: 7833753,
|
|
1557
|
-
lightslategrey: 7833753,
|
|
1558
|
-
lightsteelblue: 11584734,
|
|
1559
|
-
lightyellow: 16777184,
|
|
1560
|
-
lime: 65280,
|
|
1561
|
-
limegreen: 3329330,
|
|
1562
|
-
linen: 16445670,
|
|
1563
|
-
magenta: 16711935,
|
|
1564
|
-
maroon: 8388608,
|
|
1565
|
-
mediumaquamarine: 6737322,
|
|
1566
|
-
mediumblue: 205,
|
|
1567
|
-
mediumorchid: 12211667,
|
|
1568
|
-
mediumpurple: 9662683,
|
|
1569
|
-
mediumseagreen: 3978097,
|
|
1570
|
-
mediumslateblue: 8087790,
|
|
1571
|
-
mediumspringgreen: 64154,
|
|
1572
|
-
mediumturquoise: 4772300,
|
|
1573
|
-
mediumvioletred: 13047173,
|
|
1574
|
-
midnightblue: 1644912,
|
|
1575
|
-
mintcream: 16121850,
|
|
1576
|
-
mistyrose: 16770273,
|
|
1577
|
-
moccasin: 16770229,
|
|
1578
|
-
navajowhite: 16768685,
|
|
1579
|
-
navy: 128,
|
|
1580
|
-
oldlace: 16643558,
|
|
1581
|
-
olive: 8421376,
|
|
1582
|
-
olivedrab: 7048739,
|
|
1583
|
-
orange: 16753920,
|
|
1584
|
-
orangered: 16729344,
|
|
1585
|
-
orchid: 14315734,
|
|
1586
|
-
palegoldenrod: 15657130,
|
|
1587
|
-
palegreen: 10025880,
|
|
1588
|
-
paleturquoise: 11529966,
|
|
1589
|
-
palevioletred: 14381203,
|
|
1590
|
-
papayawhip: 16773077,
|
|
1591
|
-
peachpuff: 16767673,
|
|
1592
|
-
peru: 13468991,
|
|
1593
|
-
pink: 16761035,
|
|
1594
|
-
plum: 14524637,
|
|
1595
|
-
powderblue: 11591910,
|
|
1596
|
-
purple: 8388736,
|
|
1597
|
-
rebeccapurple: 6697881,
|
|
1598
|
-
red: 16711680,
|
|
1599
|
-
rosybrown: 12357519,
|
|
1600
|
-
royalblue: 4286945,
|
|
1601
|
-
saddlebrown: 9127187,
|
|
1602
|
-
salmon: 16416882,
|
|
1603
|
-
sandybrown: 16032864,
|
|
1604
|
-
seagreen: 3050327,
|
|
1605
|
-
seashell: 16774638,
|
|
1606
|
-
sienna: 10506797,
|
|
1607
|
-
silver: 12632256,
|
|
1608
|
-
skyblue: 8900331,
|
|
1609
|
-
slateblue: 6970061,
|
|
1610
|
-
slategray: 7372944,
|
|
1611
|
-
slategrey: 7372944,
|
|
1612
|
-
snow: 16775930,
|
|
1613
|
-
springgreen: 65407,
|
|
1614
|
-
steelblue: 4620980,
|
|
1615
|
-
tan: 13808780,
|
|
1616
|
-
teal: 32896,
|
|
1617
|
-
thistle: 14204888,
|
|
1618
|
-
tomato: 16737095,
|
|
1619
|
-
turquoise: 4251856,
|
|
1620
|
-
violet: 15631086,
|
|
1621
|
-
wheat: 16113331,
|
|
1622
|
-
white: 16777215,
|
|
1623
|
-
whitesmoke: 16119285,
|
|
1624
|
-
yellow: 16776960,
|
|
1625
|
-
yellowgreen: 10145074
|
|
1626
|
-
};
|
|
1627
|
-
Zt(mt, dt, {
|
|
1628
|
-
copy(t) {
|
|
1629
|
-
return Object.assign(new this.constructor(), this, t);
|
|
1630
|
-
},
|
|
1631
|
-
displayable() {
|
|
1632
|
-
return this.rgb().displayable();
|
|
1633
|
-
},
|
|
1634
|
-
hex: pe,
|
|
1635
|
-
// Deprecated! Use color.formatHex.
|
|
1636
|
-
formatHex: pe,
|
|
1637
|
-
formatHex8: Pi,
|
|
1638
|
-
formatHsl: Ii,
|
|
1639
|
-
formatRgb: ye,
|
|
1640
|
-
toString: ye
|
|
1641
|
-
});
|
|
1642
|
-
function pe() {
|
|
1643
|
-
return this.rgb().formatHex();
|
|
1644
|
-
}
|
|
1645
|
-
function Pi() {
|
|
1646
|
-
return this.rgb().formatHex8();
|
|
1647
|
-
}
|
|
1648
|
-
function Ii() {
|
|
1649
|
-
return Ke(this).formatHsl();
|
|
1650
|
-
}
|
|
1651
|
-
function ye() {
|
|
1652
|
-
return this.rgb().formatRgb();
|
|
1653
|
-
}
|
|
1654
|
-
function dt(t) {
|
|
1655
|
-
var e, n;
|
|
1656
|
-
return t = (t + "").trim().toLowerCase(), (e = Ei.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ? xe(e) : n === 3 ? new U(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : n === 8 ? xt(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : n === 4 ? xt(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = Fi.exec(t)) ? new U(e[1], e[2], e[3], 1) : (e = Ri.exec(t)) ? new U(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = Ti.exec(t)) ? xt(e[1], e[2], e[3], e[4]) : (e = Di.exec(t)) ? xt(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = Li.exec(t)) ? ve(e[1], e[2] / 100, e[3] / 100, 1) : (e = Hi.exec(t)) ? ve(e[1], e[2] / 100, e[3] / 100, e[4]) : ge.hasOwnProperty(t) ? xe(ge[t]) : t === "transparent" ? new U(NaN, NaN, NaN, 0) : null;
|
|
1657
|
-
}
|
|
1658
|
-
function xe(t) {
|
|
1659
|
-
return new U(t >> 16 & 255, t >> 8 & 255, t & 255, 1);
|
|
1660
|
-
}
|
|
1661
|
-
function xt(t, e, n, r) {
|
|
1662
|
-
return r <= 0 && (t = e = n = NaN), new U(t, e, n, r);
|
|
1663
|
-
}
|
|
1664
|
-
function Ui(t) {
|
|
1665
|
-
return t instanceof mt || (t = dt(t)), t ? (t = t.rgb(), new U(t.r, t.g, t.b, t.opacity)) : new U();
|
|
1666
|
-
}
|
|
1667
|
-
function Yt(t, e, n, r) {
|
|
1668
|
-
return arguments.length === 1 ? Ui(t) : new U(t, e, n, r ?? 1);
|
|
1669
|
-
}
|
|
1670
|
-
function U(t, e, n, r) {
|
|
1671
|
-
this.r = +t, this.g = +e, this.b = +n, this.opacity = +r;
|
|
1672
|
-
}
|
|
1673
|
-
Zt(U, Yt, Qe(mt, {
|
|
1674
|
-
brighter(t) {
|
|
1675
|
-
return t = t == null ? $t : Math.pow($t, t), new U(this.r * t, this.g * t, this.b * t, this.opacity);
|
|
1676
|
-
},
|
|
1677
|
-
darker(t) {
|
|
1678
|
-
return t = t == null ? ft : Math.pow(ft, t), new U(this.r * t, this.g * t, this.b * t, this.opacity);
|
|
1679
|
-
},
|
|
1680
|
-
rgb() {
|
|
1681
|
-
return this;
|
|
1682
|
-
},
|
|
1683
|
-
clamp() {
|
|
1684
|
-
return new U(et(this.r), et(this.g), et(this.b), At(this.opacity));
|
|
1685
|
-
},
|
|
1686
|
-
displayable() {
|
|
1687
|
-
return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
1688
|
-
},
|
|
1689
|
-
hex: we,
|
|
1690
|
-
// Deprecated! Use color.formatHex.
|
|
1691
|
-
formatHex: we,
|
|
1692
|
-
formatHex8: Oi,
|
|
1693
|
-
formatRgb: be,
|
|
1694
|
-
toString: be
|
|
1695
|
-
}));
|
|
1696
|
-
function we() {
|
|
1697
|
-
return `#${tt(this.r)}${tt(this.g)}${tt(this.b)}`;
|
|
1698
|
-
}
|
|
1699
|
-
function Oi() {
|
|
1700
|
-
return `#${tt(this.r)}${tt(this.g)}${tt(this.b)}${tt((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
1701
|
-
}
|
|
1702
|
-
function be() {
|
|
1703
|
-
const t = At(this.opacity);
|
|
1704
|
-
return `${t === 1 ? "rgb(" : "rgba("}${et(this.r)}, ${et(this.g)}, ${et(this.b)}${t === 1 ? ")" : `, ${t})`}`;
|
|
1705
|
-
}
|
|
1706
|
-
function At(t) {
|
|
1707
|
-
return isNaN(t) ? 1 : Math.max(0, Math.min(1, t));
|
|
1708
|
-
}
|
|
1709
|
-
function et(t) {
|
|
1710
|
-
return Math.max(0, Math.min(255, Math.round(t) || 0));
|
|
1711
|
-
}
|
|
1712
|
-
function tt(t) {
|
|
1713
|
-
return t = et(t), (t < 16 ? "0" : "") + t.toString(16);
|
|
1714
|
-
}
|
|
1715
|
-
function ve(t, e, n, r) {
|
|
1716
|
-
return r <= 0 ? t = e = n = NaN : n <= 0 || n >= 1 ? t = e = NaN : e <= 0 && (t = NaN), new W(t, e, n, r);
|
|
1717
|
-
}
|
|
1718
|
-
function Ke(t) {
|
|
1719
|
-
if (t instanceof W) return new W(t.h, t.s, t.l, t.opacity);
|
|
1720
|
-
if (t instanceof mt || (t = dt(t)), !t) return new W();
|
|
1721
|
-
if (t instanceof W) return t;
|
|
1722
|
-
t = t.rgb();
|
|
1723
|
-
var e = t.r / 255, n = t.g / 255, r = t.b / 255, i = Math.min(e, n, r), a = Math.max(e, n, r), o = NaN, s = a - i, c = (a + i) / 2;
|
|
1724
|
-
return s ? (e === a ? o = (n - r) / s + (n < r) * 6 : n === a ? o = (r - e) / s + 2 : o = (e - n) / s + 4, s /= c < 0.5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new W(o, s, c, t.opacity);
|
|
1725
|
-
}
|
|
1726
|
-
function qi(t, e, n, r) {
|
|
1727
|
-
return arguments.length === 1 ? Ke(t) : new W(t, e, n, r ?? 1);
|
|
1728
|
-
}
|
|
1729
|
-
function W(t, e, n, r) {
|
|
1730
|
-
this.h = +t, this.s = +e, this.l = +n, this.opacity = +r;
|
|
1731
|
-
}
|
|
1732
|
-
Zt(W, qi, Qe(mt, {
|
|
1733
|
-
brighter(t) {
|
|
1734
|
-
return t = t == null ? $t : Math.pow($t, t), new W(this.h, this.s, this.l * t, this.opacity);
|
|
1735
|
-
},
|
|
1736
|
-
darker(t) {
|
|
1737
|
-
return t = t == null ? ft : Math.pow(ft, t), new W(this.h, this.s, this.l * t, this.opacity);
|
|
1738
|
-
},
|
|
1739
|
-
rgb() {
|
|
1740
|
-
var t = this.h % 360 + (this.h < 0) * 360, e = isNaN(t) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < 0.5 ? n : 1 - n) * e, i = 2 * n - r;
|
|
1741
|
-
return new U(
|
|
1742
|
-
It(t >= 240 ? t - 240 : t + 120, i, r),
|
|
1743
|
-
It(t, i, r),
|
|
1744
|
-
It(t < 120 ? t + 240 : t - 120, i, r),
|
|
1745
|
-
this.opacity
|
|
1746
|
-
);
|
|
1747
|
-
},
|
|
1748
|
-
clamp() {
|
|
1749
|
-
return new W(Me(this.h), wt(this.s), wt(this.l), At(this.opacity));
|
|
1750
|
-
},
|
|
1751
|
-
displayable() {
|
|
1752
|
-
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
1753
|
-
},
|
|
1754
|
-
formatHsl() {
|
|
1755
|
-
const t = At(this.opacity);
|
|
1756
|
-
return `${t === 1 ? "hsl(" : "hsla("}${Me(this.h)}, ${wt(this.s) * 100}%, ${wt(this.l) * 100}%${t === 1 ? ")" : `, ${t})`}`;
|
|
1757
|
-
}
|
|
1758
|
-
}));
|
|
1759
|
-
function Me(t) {
|
|
1760
|
-
return t = (t || 0) % 360, t < 0 ? t + 360 : t;
|
|
1761
|
-
}
|
|
1762
|
-
function wt(t) {
|
|
1763
|
-
return Math.max(0, Math.min(1, t || 0));
|
|
1764
|
-
}
|
|
1765
|
-
function It(t, e, n) {
|
|
1766
|
-
return (t < 60 ? e + (n - e) * t / 60 : t < 180 ? n : t < 240 ? e + (n - e) * (240 - t) / 60 : e) * 255;
|
|
1767
|
-
}
|
|
1768
|
-
const jt = (t) => () => t;
|
|
1769
|
-
function Vi(t, e) {
|
|
1770
|
-
return function(n) {
|
|
1771
|
-
return t + n * e;
|
|
1772
|
-
};
|
|
1773
|
-
}
|
|
1774
|
-
function zi(t, e, n) {
|
|
1775
|
-
return t = Math.pow(t, n), e = Math.pow(e, n) - t, n = 1 / n, function(r) {
|
|
1776
|
-
return Math.pow(t + r * e, n);
|
|
1777
|
-
};
|
|
1778
|
-
}
|
|
1779
|
-
function Wi(t) {
|
|
1780
|
-
return (t = +t) == 1 ? Je : function(e, n) {
|
|
1781
|
-
return n - e ? zi(e, n, t) : jt(isNaN(e) ? n : e);
|
|
1782
|
-
};
|
|
1783
|
-
}
|
|
1784
|
-
function Je(t, e) {
|
|
1785
|
-
var n = e - t;
|
|
1786
|
-
return n ? Vi(t, n) : jt(isNaN(t) ? e : t);
|
|
1787
|
-
}
|
|
1788
|
-
const _e = (function t(e) {
|
|
1789
|
-
var n = Wi(e);
|
|
1790
|
-
function r(i, a) {
|
|
1791
|
-
var o = n((i = Yt(i)).r, (a = Yt(a)).r), s = n(i.g, a.g), c = n(i.b, a.b), u = Je(i.opacity, a.opacity);
|
|
1792
|
-
return function(f) {
|
|
1793
|
-
return i.r = o(f), i.g = s(f), i.b = c(f), i.opacity = u(f), i + "";
|
|
1794
|
-
};
|
|
1795
|
-
}
|
|
1796
|
-
return r.gamma = t, r;
|
|
1797
|
-
})(1);
|
|
1798
|
-
function Yi(t, e) {
|
|
1799
|
-
e || (e = []);
|
|
1800
|
-
var n = t ? Math.min(e.length, t.length) : 0, r = e.slice(), i;
|
|
1801
|
-
return function(a) {
|
|
1802
|
-
for (i = 0; i < n; ++i) r[i] = t[i] * (1 - a) + e[i] * a;
|
|
1803
|
-
return r;
|
|
1804
|
-
};
|
|
1805
|
-
}
|
|
1806
|
-
function Xi(t) {
|
|
1807
|
-
return ArrayBuffer.isView(t) && !(t instanceof DataView);
|
|
1808
|
-
}
|
|
1809
|
-
function Bi(t, e) {
|
|
1810
|
-
var n = e ? e.length : 0, r = t ? Math.min(n, t.length) : 0, i = new Array(r), a = new Array(n), o;
|
|
1811
|
-
for (o = 0; o < r; ++o) i[o] = te(t[o], e[o]);
|
|
1812
|
-
for (; o < n; ++o) a[o] = e[o];
|
|
1813
|
-
return function(s) {
|
|
1814
|
-
for (o = 0; o < r; ++o) a[o] = i[o](s);
|
|
1815
|
-
return a;
|
|
1816
|
-
};
|
|
1817
|
-
}
|
|
1818
|
-
function Gi(t, e) {
|
|
1819
|
-
var n = /* @__PURE__ */ new Date();
|
|
1820
|
-
return t = +t, e = +e, function(r) {
|
|
1821
|
-
return n.setTime(t * (1 - r) + e * r), n;
|
|
1822
|
-
};
|
|
1823
|
-
}
|
|
1824
|
-
function Ct(t, e) {
|
|
1825
|
-
return t = +t, e = +e, function(n) {
|
|
1826
|
-
return t * (1 - n) + e * n;
|
|
1827
|
-
};
|
|
1828
|
-
}
|
|
1829
|
-
function Qi(t, e) {
|
|
1830
|
-
var n = {}, r = {}, i;
|
|
1831
|
-
(t === null || typeof t != "object") && (t = {}), (e === null || typeof e != "object") && (e = {});
|
|
1832
|
-
for (i in e)
|
|
1833
|
-
i in t ? n[i] = te(t[i], e[i]) : r[i] = e[i];
|
|
1834
|
-
return function(a) {
|
|
1835
|
-
for (i in n) r[i] = n[i](a);
|
|
1836
|
-
return r;
|
|
1837
|
-
};
|
|
1838
|
-
}
|
|
1839
|
-
var Xt = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, Ut = new RegExp(Xt.source, "g");
|
|
1840
|
-
function Ki(t) {
|
|
1841
|
-
return function() {
|
|
1842
|
-
return t;
|
|
1843
|
-
};
|
|
1844
|
-
}
|
|
1845
|
-
function Ji(t) {
|
|
1846
|
-
return function(e) {
|
|
1847
|
-
return t(e) + "";
|
|
1848
|
-
};
|
|
1849
|
-
}
|
|
1850
|
-
function Zi(t, e) {
|
|
1851
|
-
var n = Xt.lastIndex = Ut.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
|
|
1852
|
-
for (t = t + "", e = e + ""; (r = Xt.exec(t)) && (i = Ut.exec(e)); )
|
|
1853
|
-
(a = i.index) > n && (a = e.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({ i: o, x: Ct(r, i) })), n = Ut.lastIndex;
|
|
1854
|
-
return n < e.length && (a = e.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? Ji(c[0].x) : Ki(e) : (e = c.length, function(u) {
|
|
1855
|
-
for (var f = 0, d; f < e; ++f) s[(d = c[f]).i] = d.x(u);
|
|
1856
|
-
return s.join("");
|
|
1857
|
-
});
|
|
1858
|
-
}
|
|
1859
|
-
function te(t, e) {
|
|
1860
|
-
var n = typeof e, r;
|
|
1861
|
-
return e == null || n === "boolean" ? jt(e) : (n === "number" ? Ct : n === "string" ? (r = dt(e)) ? (e = r, _e) : Zi : e instanceof dt ? _e : e instanceof Date ? Gi : Xi(e) ? Yi : Array.isArray(e) ? Bi : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? Qi : Ct)(t, e);
|
|
1862
|
-
}
|
|
1863
|
-
function ji(t, e) {
|
|
1864
|
-
return t = +t, e = +e, function(n) {
|
|
1865
|
-
return Math.round(t * (1 - n) + e * n);
|
|
1866
|
-
};
|
|
1867
|
-
}
|
|
1868
|
-
function ta(t) {
|
|
1869
|
-
return Math.abs(t = Math.round(t)) >= 1e21 ? t.toLocaleString("en").replace(/,/g, "") : t.toString(10);
|
|
1870
|
-
}
|
|
1871
|
-
function Et(t, e) {
|
|
1872
|
-
if ((n = (t = e ? t.toExponential(e - 1) : t.toExponential()).indexOf("e")) < 0) return null;
|
|
1873
|
-
var n, r = t.slice(0, n);
|
|
1874
|
-
return [
|
|
1875
|
-
r.length > 1 ? r[0] + r.slice(2) : r,
|
|
1876
|
-
+t.slice(n + 1)
|
|
1877
|
-
];
|
|
1878
|
-
}
|
|
1879
|
-
function at(t) {
|
|
1880
|
-
return t = Et(Math.abs(t)), t ? t[1] : NaN;
|
|
1881
|
-
}
|
|
1882
|
-
function ea(t, e) {
|
|
1883
|
-
return function(n, r) {
|
|
1884
|
-
for (var i = n.length, a = [], o = 0, s = t[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)); )
|
|
1885
|
-
s = t[o = (o + 1) % t.length];
|
|
1886
|
-
return a.reverse().join(e);
|
|
1887
|
-
};
|
|
1888
|
-
}
|
|
1889
|
-
function na(t) {
|
|
1890
|
-
return function(e) {
|
|
1891
|
-
return e.replace(/[0-9]/g, function(n) {
|
|
1892
|
-
return t[+n];
|
|
1893
|
-
});
|
|
1894
|
-
};
|
|
1895
|
-
}
|
|
1896
|
-
var ra = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
1897
|
-
function Ft(t) {
|
|
1898
|
-
if (!(e = ra.exec(t))) throw new Error("invalid format: " + t);
|
|
1899
|
-
var e;
|
|
1900
|
-
return new ee({
|
|
1901
|
-
fill: e[1],
|
|
1902
|
-
align: e[2],
|
|
1903
|
-
sign: e[3],
|
|
1904
|
-
symbol: e[4],
|
|
1905
|
-
zero: e[5],
|
|
1906
|
-
width: e[6],
|
|
1907
|
-
comma: e[7],
|
|
1908
|
-
precision: e[8] && e[8].slice(1),
|
|
1909
|
-
trim: e[9],
|
|
1910
|
-
type: e[10]
|
|
1911
|
-
});
|
|
1912
|
-
}
|
|
1913
|
-
Ft.prototype = ee.prototype;
|
|
1914
|
-
function ee(t) {
|
|
1915
|
-
this.fill = t.fill === void 0 ? " " : t.fill + "", this.align = t.align === void 0 ? ">" : t.align + "", this.sign = t.sign === void 0 ? "-" : t.sign + "", this.symbol = t.symbol === void 0 ? "" : t.symbol + "", this.zero = !!t.zero, this.width = t.width === void 0 ? void 0 : +t.width, this.comma = !!t.comma, this.precision = t.precision === void 0 ? void 0 : +t.precision, this.trim = !!t.trim, this.type = t.type === void 0 ? "" : t.type + "";
|
|
1916
|
-
}
|
|
1917
|
-
ee.prototype.toString = function() {
|
|
1918
|
-
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;
|
|
1919
|
-
};
|
|
1920
|
-
function ia(t) {
|
|
1921
|
-
t: for (var e = t.length, n = 1, r = -1, i; n < e; ++n)
|
|
1922
|
-
switch (t[n]) {
|
|
1923
|
-
case ".":
|
|
1924
|
-
r = i = n;
|
|
1925
|
-
break;
|
|
1926
|
-
case "0":
|
|
1927
|
-
r === 0 && (r = n), i = n;
|
|
1928
|
-
break;
|
|
1929
|
-
default:
|
|
1930
|
-
if (!+t[n]) break t;
|
|
1931
|
-
r > 0 && (r = 0);
|
|
1932
|
-
break;
|
|
1933
|
-
}
|
|
1934
|
-
return r > 0 ? t.slice(0, r) + t.slice(i + 1) : t;
|
|
1935
|
-
}
|
|
1936
|
-
var Ze;
|
|
1937
|
-
function aa(t, e) {
|
|
1938
|
-
var n = Et(t, e);
|
|
1939
|
-
if (!n) return t + "";
|
|
1940
|
-
var r = n[0], i = n[1], a = i - (Ze = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
|
|
1941
|
-
return a === o ? r : a > o ? r + new Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + new Array(1 - a).join("0") + Et(t, Math.max(0, e + a - 1))[0];
|
|
1942
|
-
}
|
|
1943
|
-
function Ne(t, e) {
|
|
1944
|
-
var n = Et(t, e);
|
|
1945
|
-
if (!n) return t + "";
|
|
1946
|
-
var r = n[0], i = n[1];
|
|
1947
|
-
return i < 0 ? "0." + new Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + new Array(i - r.length + 2).join("0");
|
|
1948
|
-
}
|
|
1949
|
-
const Se = {
|
|
1950
|
-
"%": (t, e) => (t * 100).toFixed(e),
|
|
1951
|
-
b: (t) => Math.round(t).toString(2),
|
|
1952
|
-
c: (t) => t + "",
|
|
1953
|
-
d: ta,
|
|
1954
|
-
e: (t, e) => t.toExponential(e),
|
|
1955
|
-
f: (t, e) => t.toFixed(e),
|
|
1956
|
-
g: (t, e) => t.toPrecision(e),
|
|
1957
|
-
o: (t) => Math.round(t).toString(8),
|
|
1958
|
-
p: (t, e) => Ne(t * 100, e),
|
|
1959
|
-
r: Ne,
|
|
1960
|
-
s: aa,
|
|
1961
|
-
X: (t) => Math.round(t).toString(16).toUpperCase(),
|
|
1962
|
-
x: (t) => Math.round(t).toString(16)
|
|
1963
|
-
};
|
|
1964
|
-
function ke(t) {
|
|
1965
|
-
return t;
|
|
1966
|
-
}
|
|
1967
|
-
var $e = Array.prototype.map, Ae = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
|
|
1968
|
-
function oa(t) {
|
|
1969
|
-
var e = t.grouping === void 0 || t.thousands === void 0 ? ke : ea($e.call(t.grouping, Number), t.thousands + ""), n = t.currency === void 0 ? "" : t.currency[0] + "", r = t.currency === void 0 ? "" : t.currency[1] + "", i = t.decimal === void 0 ? "." : t.decimal + "", a = t.numerals === void 0 ? ke : na($e.call(t.numerals, String)), o = t.percent === void 0 ? "%" : t.percent + "", s = t.minus === void 0 ? "−" : t.minus + "", c = t.nan === void 0 ? "NaN" : t.nan + "";
|
|
1970
|
-
function u(d) {
|
|
1971
|
-
d = Ft(d);
|
|
1972
|
-
var l = d.fill, h = d.align, v = d.sign, E = d.symbol, N = d.zero, C = d.width, M = d.comma, k = d.precision, A = d.trim, _ = d.type;
|
|
1973
|
-
_ === "n" ? (M = !0, _ = "g") : Se[_] || (k === void 0 && (k = 12), A = !0, _ = "g"), (N || l === "0" && h === "=") && (N = !0, l = "0", h = "=");
|
|
1974
|
-
var R = E === "$" ? n : E === "#" && /[boxX]/.test(_) ? "0" + _.toLowerCase() : "", $ = E === "$" ? r : /[%p]/.test(_) ? o : "", z = Se[_], b = /[defgprs%]/.test(_);
|
|
1975
|
-
k = k === void 0 ? 6 : /[gprs]/.test(_) ? Math.max(1, Math.min(21, k)) : Math.max(0, Math.min(20, k));
|
|
1976
|
-
function m(g) {
|
|
1977
|
-
var x = R, w = $, T, O, I;
|
|
1978
|
-
if (_ === "c")
|
|
1979
|
-
w = z(g) + w, g = "";
|
|
1980
|
-
else {
|
|
1981
|
-
g = +g;
|
|
1982
|
-
var ot = g < 0 || 1 / g < 0;
|
|
1983
|
-
if (g = isNaN(g) ? c : z(Math.abs(g), k), A && (g = ia(g)), ot && +g == 0 && v !== "+" && (ot = !1), x = (ot ? v === "(" ? v : s : v === "-" || v === "(" ? "" : v) + x, w = (_ === "s" ? Ae[8 + Ze / 3] : "") + w + (ot && v === "(" ? ")" : ""), b) {
|
|
1984
|
-
for (T = -1, O = g.length; ++T < O; )
|
|
1985
|
-
if (I = g.charCodeAt(T), 48 > I || I > 57) {
|
|
1986
|
-
w = (I === 46 ? i + g.slice(T + 1) : g.slice(T)) + w, g = g.slice(0, T);
|
|
1987
|
-
break;
|
|
1988
|
-
}
|
|
1989
|
-
}
|
|
1990
|
-
}
|
|
1991
|
-
M && !N && (g = e(g, 1 / 0));
|
|
1992
|
-
var D = x.length + g.length + w.length, q = D < C ? new Array(C - D + 1).join(l) : "";
|
|
1993
|
-
switch (M && N && (g = e(q + g, q.length ? C - w.length : 1 / 0), q = ""), h) {
|
|
1994
|
-
case "<":
|
|
1995
|
-
g = x + g + w + q;
|
|
1996
|
-
break;
|
|
1997
|
-
case "=":
|
|
1998
|
-
g = x + q + g + w;
|
|
1999
|
-
break;
|
|
2000
|
-
case "^":
|
|
2001
|
-
g = q.slice(0, D = q.length >> 1) + x + g + w + q.slice(D);
|
|
2002
|
-
break;
|
|
2003
|
-
default:
|
|
2004
|
-
g = q + x + g + w;
|
|
2005
|
-
break;
|
|
2006
|
-
}
|
|
2007
|
-
return a(g);
|
|
2008
|
-
}
|
|
2009
|
-
return m.toString = function() {
|
|
2010
|
-
return d + "";
|
|
2011
|
-
}, m;
|
|
2012
|
-
}
|
|
2013
|
-
function f(d, l) {
|
|
2014
|
-
var h = u((d = Ft(d), d.type = "f", d)), v = Math.max(-8, Math.min(8, Math.floor(at(l) / 3))) * 3, E = Math.pow(10, -v), N = Ae[8 + v / 3];
|
|
2015
|
-
return function(C) {
|
|
2016
|
-
return h(E * C) + N;
|
|
2017
|
-
};
|
|
2018
|
-
}
|
|
2019
|
-
return {
|
|
2020
|
-
format: u,
|
|
2021
|
-
formatPrefix: f
|
|
2022
|
-
};
|
|
2023
|
-
}
|
|
2024
|
-
var bt, je, tn;
|
|
2025
|
-
sa({
|
|
2026
|
-
thousands: ",",
|
|
2027
|
-
grouping: [3],
|
|
2028
|
-
currency: ["$", ""]
|
|
2029
|
-
});
|
|
2030
|
-
function sa(t) {
|
|
2031
|
-
return bt = oa(t), je = bt.format, tn = bt.formatPrefix, bt;
|
|
2032
|
-
}
|
|
2033
|
-
function ca(t) {
|
|
2034
|
-
return Math.max(0, -at(Math.abs(t)));
|
|
2035
|
-
}
|
|
2036
|
-
function ua(t, e) {
|
|
2037
|
-
return Math.max(0, Math.max(-8, Math.min(8, Math.floor(at(e) / 3))) * 3 - at(Math.abs(t)));
|
|
2038
|
-
}
|
|
2039
|
-
function la(t, e) {
|
|
2040
|
-
return t = Math.abs(t), e = Math.abs(e) - t, Math.max(0, at(e) - at(t)) + 1;
|
|
2041
|
-
}
|
|
2042
|
-
function Rt(t, e) {
|
|
2043
|
-
switch (arguments.length) {
|
|
2044
|
-
case 0:
|
|
2045
|
-
break;
|
|
2046
|
-
case 1:
|
|
2047
|
-
this.range(t);
|
|
2048
|
-
break;
|
|
2049
|
-
default:
|
|
2050
|
-
this.range(e).domain(t);
|
|
2051
|
-
break;
|
|
2052
|
-
}
|
|
2053
|
-
return this;
|
|
2054
|
-
}
|
|
2055
|
-
const Ce = /* @__PURE__ */ Symbol("implicit");
|
|
2056
|
-
function fa() {
|
|
2057
|
-
var t = new ue(), e = [], n = [], r = Ce;
|
|
2058
|
-
function i(a) {
|
|
2059
|
-
let o = t.get(a);
|
|
2060
|
-
if (o === void 0) {
|
|
2061
|
-
if (r !== Ce) return r;
|
|
2062
|
-
t.set(a, o = e.push(a) - 1);
|
|
2063
|
-
}
|
|
2064
|
-
return n[o % n.length];
|
|
2065
|
-
}
|
|
2066
|
-
return i.domain = function(a) {
|
|
2067
|
-
if (!arguments.length) return e.slice();
|
|
2068
|
-
e = [], t = new ue();
|
|
2069
|
-
for (const o of a)
|
|
2070
|
-
t.has(o) || t.set(o, e.push(o) - 1);
|
|
2071
|
-
return i;
|
|
2072
|
-
}, i.range = function(a) {
|
|
2073
|
-
return arguments.length ? (n = Array.from(a), i) : n.slice();
|
|
2074
|
-
}, i.unknown = function(a) {
|
|
2075
|
-
return arguments.length ? (r = a, i) : r;
|
|
2076
|
-
}, i.copy = function() {
|
|
2077
|
-
return fa(e, n).unknown(r);
|
|
2078
|
-
}, Rt.apply(i, arguments), i;
|
|
2079
|
-
}
|
|
2080
|
-
function ha(t) {
|
|
2081
|
-
return function() {
|
|
2082
|
-
return t;
|
|
2083
|
-
};
|
|
2084
|
-
}
|
|
2085
|
-
function da(t) {
|
|
2086
|
-
return +t;
|
|
2087
|
-
}
|
|
2088
|
-
var Ee = [0, 1];
|
|
2089
|
-
function Y(t) {
|
|
2090
|
-
return t;
|
|
2091
|
-
}
|
|
2092
|
-
function Bt(t, e) {
|
|
2093
|
-
return (e -= t = +t) ? function(n) {
|
|
2094
|
-
return (n - t) / e;
|
|
2095
|
-
} : ha(isNaN(e) ? NaN : 0.5);
|
|
2096
|
-
}
|
|
2097
|
-
function ma(t, e) {
|
|
2098
|
-
var n;
|
|
2099
|
-
return t > e && (n = t, t = e, e = n), function(r) {
|
|
2100
|
-
return Math.max(t, Math.min(e, r));
|
|
2101
|
-
};
|
|
2102
|
-
}
|
|
2103
|
-
function ga(t, e, n) {
|
|
2104
|
-
var r = t[0], i = t[1], a = e[0], o = e[1];
|
|
2105
|
-
return i < r ? (r = Bt(i, r), a = n(o, a)) : (r = Bt(r, i), a = n(a, o)), function(s) {
|
|
2106
|
-
return a(r(s));
|
|
2107
|
-
};
|
|
2108
|
-
}
|
|
2109
|
-
function pa(t, e, n) {
|
|
2110
|
-
var r = Math.min(t.length, e.length) - 1, i = new Array(r), a = new Array(r), o = -1;
|
|
2111
|
-
for (t[r] < t[0] && (t = t.slice().reverse(), e = e.slice().reverse()); ++o < r; )
|
|
2112
|
-
i[o] = Bt(t[o], t[o + 1]), a[o] = n(e[o], e[o + 1]);
|
|
2113
|
-
return function(s) {
|
|
2114
|
-
var c = He(t, s, 1, r) - 1;
|
|
2115
|
-
return a[c](i[c](s));
|
|
2116
|
-
};
|
|
2117
|
-
}
|
|
2118
|
-
function en(t, e) {
|
|
2119
|
-
return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());
|
|
2120
|
-
}
|
|
2121
|
-
function nn() {
|
|
2122
|
-
var t = Ee, e = Ee, n = te, r, i, a, o = Y, s, c, u;
|
|
2123
|
-
function f() {
|
|
2124
|
-
var l = Math.min(t.length, e.length);
|
|
2125
|
-
return o !== Y && (o = ma(t[0], t[l - 1])), s = l > 2 ? pa : ga, c = u = null, d;
|
|
2126
|
-
}
|
|
2127
|
-
function d(l) {
|
|
2128
|
-
return l == null || isNaN(l = +l) ? a : (c || (c = s(t.map(r), e, n)))(r(o(l)));
|
|
2129
|
-
}
|
|
2130
|
-
return d.invert = function(l) {
|
|
2131
|
-
return o(i((u || (u = s(e, t.map(r), Ct)))(l)));
|
|
2132
|
-
}, d.domain = function(l) {
|
|
2133
|
-
return arguments.length ? (t = Array.from(l, da), f()) : t.slice();
|
|
2134
|
-
}, d.range = function(l) {
|
|
2135
|
-
return arguments.length ? (e = Array.from(l), f()) : e.slice();
|
|
2136
|
-
}, d.rangeRound = function(l) {
|
|
2137
|
-
return e = Array.from(l), n = ji, f();
|
|
2138
|
-
}, d.clamp = function(l) {
|
|
2139
|
-
return arguments.length ? (o = l ? !0 : Y, f()) : o !== Y;
|
|
2140
|
-
}, d.interpolate = function(l) {
|
|
2141
|
-
return arguments.length ? (n = l, f()) : n;
|
|
2142
|
-
}, d.unknown = function(l) {
|
|
2143
|
-
return arguments.length ? (a = l, d) : a;
|
|
2144
|
-
}, function(l, h) {
|
|
2145
|
-
return r = l, i = h, f();
|
|
2146
|
-
};
|
|
2147
|
-
}
|
|
2148
|
-
function ya() {
|
|
2149
|
-
return nn()(Y, Y);
|
|
2150
|
-
}
|
|
2151
|
-
function xa(t, e, n, r) {
|
|
2152
|
-
var i = qn(t, e, n), a;
|
|
2153
|
-
switch (r = Ft(r ?? ",f"), r.type) {
|
|
2154
|
-
case "s": {
|
|
2155
|
-
var o = Math.max(Math.abs(t), Math.abs(e));
|
|
2156
|
-
return r.precision == null && !isNaN(a = ua(i, o)) && (r.precision = a), tn(r, o);
|
|
2157
|
-
}
|
|
2158
|
-
case "":
|
|
2159
|
-
case "e":
|
|
2160
|
-
case "g":
|
|
2161
|
-
case "p":
|
|
2162
|
-
case "r": {
|
|
2163
|
-
r.precision == null && !isNaN(a = la(i, Math.max(Math.abs(t), Math.abs(e)))) && (r.precision = a - (r.type === "e"));
|
|
2164
|
-
break;
|
|
2165
|
-
}
|
|
2166
|
-
case "f":
|
|
2167
|
-
case "%": {
|
|
2168
|
-
r.precision == null && !isNaN(a = ca(i)) && (r.precision = a - (r.type === "%") * 2);
|
|
2169
|
-
break;
|
|
2170
|
-
}
|
|
2171
|
-
}
|
|
2172
|
-
return je(r);
|
|
2173
|
-
}
|
|
2174
|
-
function ne(t) {
|
|
2175
|
-
var e = t.domain;
|
|
2176
|
-
return t.ticks = function(n) {
|
|
2177
|
-
var r = e();
|
|
2178
|
-
return On(r[0], r[r.length - 1], n ?? 10);
|
|
2179
|
-
}, t.tickFormat = function(n, r) {
|
|
2180
|
-
var i = e();
|
|
2181
|
-
return xa(i[0], i[i.length - 1], n ?? 10, r);
|
|
2182
|
-
}, t.nice = function(n) {
|
|
2183
|
-
n == null && (n = 10);
|
|
2184
|
-
var r = e(), i = 0, a = r.length - 1, o = r[i], s = r[a], c, u, f = 10;
|
|
2185
|
-
for (s < o && (u = o, o = s, s = u, u = i, i = a, a = u); f-- > 0; ) {
|
|
2186
|
-
if (u = Vt(o, s, n), u === c)
|
|
2187
|
-
return r[i] = o, r[a] = s, e(r);
|
|
2188
|
-
if (u > 0)
|
|
2189
|
-
o = Math.floor(o / u) * u, s = Math.ceil(s / u) * u;
|
|
2190
|
-
else if (u < 0)
|
|
2191
|
-
o = Math.ceil(o * u) / u, s = Math.floor(s * u) / u;
|
|
2192
|
-
else
|
|
2193
|
-
break;
|
|
2194
|
-
c = u;
|
|
2195
|
-
}
|
|
2196
|
-
return t;
|
|
2197
|
-
}, t;
|
|
2198
|
-
}
|
|
2199
|
-
function wa() {
|
|
2200
|
-
var t = ya();
|
|
2201
|
-
return t.copy = function() {
|
|
2202
|
-
return en(t, wa());
|
|
2203
|
-
}, Rt.apply(t, arguments), ne(t);
|
|
2204
|
-
}
|
|
2205
|
-
function Fe(t) {
|
|
2206
|
-
return function(e) {
|
|
2207
|
-
return e < 0 ? -Math.pow(-e, t) : Math.pow(e, t);
|
|
2208
|
-
};
|
|
2209
|
-
}
|
|
2210
|
-
function ba(t) {
|
|
2211
|
-
return t < 0 ? -Math.sqrt(-t) : Math.sqrt(t);
|
|
2212
|
-
}
|
|
2213
|
-
function va(t) {
|
|
2214
|
-
return t < 0 ? -t * t : t * t;
|
|
2215
|
-
}
|
|
2216
|
-
function Ma(t) {
|
|
2217
|
-
var e = t(Y, Y), n = 1;
|
|
2218
|
-
function r() {
|
|
2219
|
-
return n === 1 ? t(Y, Y) : n === 0.5 ? t(ba, va) : t(Fe(n), Fe(1 / n));
|
|
2220
|
-
}
|
|
2221
|
-
return e.exponent = function(i) {
|
|
2222
|
-
return arguments.length ? (n = +i, r()) : n;
|
|
2223
|
-
}, ne(e);
|
|
2224
|
-
}
|
|
2225
|
-
function rn() {
|
|
2226
|
-
var t = Ma(nn());
|
|
2227
|
-
return t.copy = function() {
|
|
2228
|
-
return en(t, rn()).exponent(t.exponent());
|
|
2229
|
-
}, Rt.apply(t, arguments), t;
|
|
2230
|
-
}
|
|
2231
|
-
function Ga() {
|
|
2232
|
-
return rn.apply(null, arguments).exponent(0.5);
|
|
2233
|
-
}
|
|
2234
|
-
function an() {
|
|
2235
|
-
var t = 0, e = 1, n = 1, r = [0.5], i = [0, 1], a;
|
|
2236
|
-
function o(c) {
|
|
2237
|
-
return c != null && c <= c ? i[He(r, c, 0, n)] : a;
|
|
2238
|
-
}
|
|
2239
|
-
function s() {
|
|
2240
|
-
var c = -1;
|
|
2241
|
-
for (r = new Array(n); ++c < n; ) r[c] = ((c + 1) * e - (c - n) * t) / (n + 1);
|
|
2242
|
-
return o;
|
|
2243
|
-
}
|
|
2244
|
-
return o.domain = function(c) {
|
|
2245
|
-
return arguments.length ? ([t, e] = c, t = +t, e = +e, s()) : [t, e];
|
|
2246
|
-
}, o.range = function(c) {
|
|
2247
|
-
return arguments.length ? (n = (i = Array.from(c)).length - 1, s()) : i.slice();
|
|
2248
|
-
}, o.invertExtent = function(c) {
|
|
2249
|
-
var u = i.indexOf(c);
|
|
2250
|
-
return u < 0 ? [NaN, NaN] : u < 1 ? [t, r[0]] : u >= n ? [r[n - 1], e] : [r[u - 1], r[u]];
|
|
2251
|
-
}, o.unknown = function(c) {
|
|
2252
|
-
return arguments.length && (a = c), o;
|
|
2253
|
-
}, o.thresholds = function() {
|
|
2254
|
-
return r.slice();
|
|
2255
|
-
}, o.copy = function() {
|
|
2256
|
-
return an().domain([t, e]).range(i).unknown(a);
|
|
2257
|
-
}, Rt.apply(ne(o), arguments);
|
|
2258
|
-
}
|
|
2259
|
-
const _a = dn.memo(function({
|
|
2260
|
-
data: e,
|
|
2261
|
-
chartConfig: n,
|
|
2262
|
-
displayConfig: r = {},
|
|
2263
|
-
queryObject: i,
|
|
2264
|
-
height: a = "100%",
|
|
2265
|
-
colorPalette: o
|
|
2266
|
-
}) {
|
|
2267
|
-
const s = Ot(null), c = Ot(null), [u, f] = J({ width: 0, height: 0 }), [d, l] = J(!1), [h, v] = J("light"), E = kn();
|
|
2268
|
-
Mt(() => (v(Nt()), An((m) => {
|
|
2269
|
-
v(m);
|
|
2270
|
-
})), []);
|
|
2271
|
-
const N = {
|
|
2272
|
-
showTooltip: r?.showTooltip ?? !0,
|
|
2273
|
-
showLabels: r?.showLabels ?? !0,
|
|
2274
|
-
fitToWidth: r?.fitToWidth ?? !1
|
|
2275
|
-
};
|
|
2276
|
-
mn(() => {
|
|
2277
|
-
let b = 0;
|
|
2278
|
-
const m = 10;
|
|
2279
|
-
let g, x;
|
|
2280
|
-
const w = () => {
|
|
2281
|
-
if (c.current) {
|
|
2282
|
-
const { width: O, height: I } = c.current.getBoundingClientRect();
|
|
2283
|
-
if (O > 0 && I > 0)
|
|
2284
|
-
return f({ width: O, height: I }), l(!0), !0;
|
|
2285
|
-
}
|
|
2286
|
-
return !1;
|
|
2287
|
-
};
|
|
2288
|
-
if (!w() && b < m) {
|
|
2289
|
-
const O = () => {
|
|
2290
|
-
!w() && b < m && (b++, x = setTimeout(() => {
|
|
2291
|
-
g = requestAnimationFrame(O);
|
|
2292
|
-
}, 50 * b));
|
|
2293
|
-
};
|
|
2294
|
-
g = requestAnimationFrame(O);
|
|
2295
|
-
}
|
|
2296
|
-
return () => {
|
|
2297
|
-
g && cancelAnimationFrame(g), x && clearTimeout(x);
|
|
2298
|
-
};
|
|
2299
|
-
}, []), Mt(() => {
|
|
2300
|
-
let b = null;
|
|
2301
|
-
const m = () => {
|
|
2302
|
-
if (c.current) {
|
|
2303
|
-
const { width: g, height: x } = c.current.getBoundingClientRect();
|
|
2304
|
-
g > 0 && x > 0 && (f({ width: g, height: x }), d || l(!0));
|
|
2305
|
-
}
|
|
2306
|
-
};
|
|
2307
|
-
return c.current && (b = new ResizeObserver(() => m()), b.observe(c.current), m()), window.addEventListener("resize", m), () => {
|
|
2308
|
-
b && b.disconnect(), window.removeEventListener("resize", m);
|
|
2309
|
-
};
|
|
2310
|
-
}, [d]);
|
|
2311
|
-
const C = (b) => Math.floor(b.getMonth() / 3) + 1, M = (b) => b.getMonth() % 3 + 1, k = (b) => {
|
|
2312
|
-
const m = b.getDate();
|
|
2313
|
-
return Math.floor((m - 1) / 7) + 1;
|
|
2314
|
-
}, A = (b) => {
|
|
2315
|
-
switch (b?.toLowerCase()) {
|
|
2316
|
-
case "year":
|
|
2317
|
-
return null;
|
|
2318
|
-
case "quarter":
|
|
2319
|
-
return {
|
|
2320
|
-
extractX: (m) => m.getFullYear(),
|
|
2321
|
-
extractY: (m) => C(m) - 1,
|
|
2322
|
-
// 0-3 for indexing
|
|
2323
|
-
xLabels: [],
|
|
2324
|
-
// Will be determined from data
|
|
2325
|
-
yLabels: ["Q1", "Q2", "Q3", "Q4"],
|
|
2326
|
-
xFormat: (m) => `'${m.toString().slice(-2)}`,
|
|
2327
|
-
// '24 instead of 2024
|
|
2328
|
-
yFormat: (m) => ["Q1", "Q2", "Q3", "Q4"][m] || "",
|
|
2329
|
-
cellWidth: 16,
|
|
2330
|
-
cellHeight: 16
|
|
2331
|
-
};
|
|
2332
|
-
case "month":
|
|
2333
|
-
return {
|
|
2334
|
-
extractX: (m) => {
|
|
2335
|
-
const g = m.getFullYear(), x = C(m);
|
|
2336
|
-
return g * 10 + x;
|
|
2337
|
-
},
|
|
2338
|
-
extractY: (m) => M(m) - 1,
|
|
2339
|
-
// 0-2 for indexing
|
|
2340
|
-
xLabels: [],
|
|
2341
|
-
// Will be determined from data
|
|
2342
|
-
yLabels: ["Month 1", "Month 2", "Month 3"],
|
|
2343
|
-
xFormat: (m) => `Q${m % 10}`,
|
|
2344
|
-
yFormat: (m) => ["Month 1", "Month 2", "Month 3"][m] || "",
|
|
2345
|
-
cellWidth: 16,
|
|
2346
|
-
cellHeight: 16,
|
|
2347
|
-
hasHierarchicalLabels: !0,
|
|
2348
|
-
// Flag to indicate we need special handling
|
|
2349
|
-
getYearFromX: (m) => Math.floor(m / 10)
|
|
2350
|
-
// Helper to get year for grouping
|
|
2351
|
-
};
|
|
2352
|
-
case "week":
|
|
2353
|
-
return {
|
|
2354
|
-
extractX: (m) => {
|
|
2355
|
-
const g = m.getFullYear(), x = m.getMonth() + 1;
|
|
2356
|
-
return g * 100 + x;
|
|
2357
|
-
},
|
|
2358
|
-
extractY: (m) => k(m) - 1,
|
|
2359
|
-
// 0-5 for indexing
|
|
2360
|
-
xLabels: [],
|
|
2361
|
-
// Will be determined from data
|
|
2362
|
-
yLabels: ["Week 1", "Week 2", "Week 3", "Week 4", "Week 5"],
|
|
2363
|
-
xFormat: (m) => {
|
|
2364
|
-
const g = m % 100;
|
|
2365
|
-
return ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"][g - 1] || "";
|
|
2366
|
-
},
|
|
2367
|
-
yFormat: (m) => ["Week 1", "Week 2", "Week 3", "Week 4", "Week 5"][m] || "",
|
|
2368
|
-
cellWidth: 16,
|
|
2369
|
-
cellHeight: 16,
|
|
2370
|
-
hasHierarchicalLabels: !0,
|
|
2371
|
-
// Add hierarchical labels like month view
|
|
2372
|
-
getYearFromX: (m) => Math.floor(m / 100)
|
|
2373
|
-
// Helper to get year for grouping
|
|
2374
|
-
};
|
|
2375
|
-
case "day":
|
|
2376
|
-
return {
|
|
2377
|
-
extractX: (m) => {
|
|
2378
|
-
const { year: g, week: x } = _(m);
|
|
2379
|
-
return g * 100 + x;
|
|
2380
|
-
},
|
|
2381
|
-
extractY: (m) => m.getDay(),
|
|
2382
|
-
// 0-6 (Sun-Sat)
|
|
2383
|
-
xLabels: [],
|
|
2384
|
-
// Will be determined from data
|
|
2385
|
-
yLabels: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
2386
|
-
xFormat: (m) => `${m % 100}`,
|
|
2387
|
-
yFormat: (m) => ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"][m] || "",
|
|
2388
|
-
cellWidth: 16,
|
|
2389
|
-
cellHeight: 16,
|
|
2390
|
-
hasHierarchicalLabels: !0,
|
|
2391
|
-
// Add hierarchical labels
|
|
2392
|
-
getYearFromX: (m) => Math.floor(m / 100)
|
|
2393
|
-
// Helper to get year for grouping
|
|
2394
|
-
};
|
|
2395
|
-
case "hour":
|
|
2396
|
-
return {
|
|
2397
|
-
extractX: (m) => {
|
|
2398
|
-
const g = m.getFullYear(), x = m.getMonth() + 1, w = m.getDate();
|
|
2399
|
-
return g * 1e4 + x * 100 + w;
|
|
2400
|
-
},
|
|
2401
|
-
extractY: (m) => Math.floor(m.getHours() / 3),
|
|
2402
|
-
// 0-7 for 8 three-hour blocks
|
|
2403
|
-
xLabels: [],
|
|
2404
|
-
// Will be determined from data
|
|
2405
|
-
yLabels: ["00-03", "03-06", "06-09", "09-12", "12-15", "15-18", "18-21", "21-00"],
|
|
2406
|
-
xFormat: (m) => `${m % 100}`,
|
|
2407
|
-
yFormat: (m) => ["00-03", "03-06", "06-09", "09-12", "12-15", "15-18", "18-21", "21-00"][m] || "",
|
|
2408
|
-
cellWidth: 16,
|
|
2409
|
-
cellHeight: 16,
|
|
2410
|
-
hasHierarchicalLabels: !0,
|
|
2411
|
-
// Show year/month grouping above
|
|
2412
|
-
getYearFromX: (m) => Math.floor(m / 100)
|
|
2413
|
-
// Extract YYYYMM for month grouping
|
|
2414
|
-
};
|
|
2415
|
-
default:
|
|
2416
|
-
return null;
|
|
2417
|
-
}
|
|
2418
|
-
}, _ = (b) => {
|
|
2419
|
-
const m = new Date(Date.UTC(b.getFullYear(), b.getMonth(), b.getDate())), g = m.getUTCDay() || 7;
|
|
2420
|
-
m.setUTCDate(m.getUTCDate() + 4 - g);
|
|
2421
|
-
const x = m.getUTCFullYear(), w = new Date(Date.UTC(x, 0, 1)), T = Math.ceil(((m.getTime() - w.getTime()) / 864e5 + 1) / 7);
|
|
2422
|
-
return { year: x, week: T };
|
|
2423
|
-
};
|
|
2424
|
-
if (Mt(() => {
|
|
2425
|
-
if (!e || e.length === 0 || !s.current || !d || u.width === 0 || (ct(s.current).selectAll("*").remove(), !n?.dateField || !n?.valueField))
|
|
2426
|
-
return;
|
|
2427
|
-
const b = Array.isArray(n.dateField) ? n.dateField[0] : n.dateField, m = Array.isArray(n.valueField) ? n.valueField[0] : n.valueField;
|
|
2428
|
-
if (!b || !m)
|
|
2429
|
-
return;
|
|
2430
|
-
const x = (() => {
|
|
2431
|
-
if (!i?.timeDimensions || i.timeDimensions.length === 0)
|
|
2432
|
-
return "day";
|
|
2433
|
-
const p = i.timeDimensions.find(
|
|
2434
|
-
(S) => S.dimension === b || S.dimension.includes(b)
|
|
2435
|
-
);
|
|
2436
|
-
if (p && p.granularity)
|
|
2437
|
-
return p.granularity;
|
|
2438
|
-
const y = i.timeDimensions[0];
|
|
2439
|
-
return y && y.granularity ? y.granularity : "day";
|
|
2440
|
-
})(), w = A(x);
|
|
2441
|
-
if (!w)
|
|
2442
|
-
return;
|
|
2443
|
-
const T = e.map((p) => {
|
|
2444
|
-
const y = p[b], S = typeof p[m] == "string" ? parseFloat(p[m]) : p[m] || 0;
|
|
2445
|
-
let F;
|
|
2446
|
-
if (typeof y == "string") {
|
|
2447
|
-
let H = y;
|
|
2448
|
-
y.includes(" ") && (H = y.replace(" ", "T").replace("+00", "Z").replace(/\+\d{2}:\d{2}$/, "Z")), !H.endsWith("Z") && !H.includes("+") && (H = H + "Z"), F = new Date(H);
|
|
2449
|
-
} else
|
|
2450
|
-
F = new Date(y);
|
|
2451
|
-
if (isNaN(F.getTime()))
|
|
2452
|
-
return null;
|
|
2453
|
-
const G = w.extractX(F), Q = w.extractY(F);
|
|
2454
|
-
return {
|
|
2455
|
-
x: G,
|
|
2456
|
-
y: Q,
|
|
2457
|
-
value: S,
|
|
2458
|
-
date: F,
|
|
2459
|
-
label: Kt(y, x)
|
|
2460
|
-
};
|
|
2461
|
-
}).filter((p) => p !== null);
|
|
2462
|
-
if (T.length === 0) return;
|
|
2463
|
-
const O = fe(T, (p) => p.y) || 0, I = he(T, (p) => p.y) || 0, D = (() => {
|
|
2464
|
-
const p = [...new Set(T.map((y) => y.x))].sort();
|
|
2465
|
-
return p;
|
|
2466
|
-
})(), q = D.length * w.cellWidth + (D.length - 1) * 4, re = (O - I + 1) * w.cellHeight + (O - I) * 4, B = {
|
|
2467
|
-
left: 60,
|
|
2468
|
-
// Space for Y-axis labels
|
|
2469
|
-
bottom: 10,
|
|
2470
|
-
// Reduced since labels are at top
|
|
2471
|
-
top: w.hasHierarchicalLabels ? 40 : 25,
|
|
2472
|
-
// Extra space for hierarchical labels
|
|
2473
|
-
right: 10
|
|
2474
|
-
}, Tt = u.width - B.left - B.right, ie = u.height - B.top - B.bottom;
|
|
2475
|
-
let L, nt;
|
|
2476
|
-
if (N.fitToWidth) {
|
|
2477
|
-
const p = Tt / q, y = ie / re, S = Math.min(p, y);
|
|
2478
|
-
L = w.cellWidth * S, nt = w.cellHeight * S;
|
|
2479
|
-
} else {
|
|
2480
|
-
const y = { width: 16, height: 16 }, S = 24, F = Tt / q, G = ie / re, Q = Math.min(F, G);
|
|
2481
|
-
L = Math.max(y.width, Math.min(S, w.cellWidth * Q)), nt = Math.max(y.height, Math.min(S, w.cellHeight * Q)), x === "week" && L < y.width && (L = y.width);
|
|
2482
|
-
}
|
|
2483
|
-
const ae = D.length * L + (D.length - 1) * 4, on = ae > Tt ? ae + B.left + B.right : u.width, rt = ct(s.current).attr("width", on).attr("height", u.height).append("g").attr("transform", `translate(${B.left},${B.top})`), oe = T.map((p) => p.value), sn = he(oe) || 0, cn = fe(oe) || 1, un = an().domain([sn, cn]).range(o?.gradient || Cn), se = /* @__PURE__ */ new Map();
|
|
2484
|
-
T.forEach((p) => {
|
|
2485
|
-
const y = `${p.x}-${p.y}`;
|
|
2486
|
-
se.set(y, p);
|
|
2487
|
-
});
|
|
2488
|
-
const Z = (p, y) => getComputedStyle(document.documentElement).getPropertyValue(p).trim() || y, Dt = h !== "light", gt = Dt ? Z("--dc-text-muted", "#cbd5e1") : Z("--dc-text-secondary", "#374151"), ln = Z("--dc-border", "#e5e7eb"), fn = Dt ? Z("--dc-bg-secondary", "#1e293b") : Z("--dc-bg-secondary", "#f3f4f6"), ce = Dt ? Z("--dc-border", "#334155") : Z("--dc-bg", "#ffffff"), pt = ct("body").append("div").attr("class", "activity-grid-tooltip").style("position", "absolute").style("padding", "8px").style("background", "rgba(0, 0, 0, 0.8)").style("color", "white").style("border-radius", "4px").style("font-size", "12px").style("pointer-events", "none").style("opacity", 0).style("z-index", 1e3), st = /* @__PURE__ */ new Map();
|
|
2489
|
-
D.forEach((p, y) => {
|
|
2490
|
-
st.set(p, y);
|
|
2491
|
-
});
|
|
2492
|
-
for (const p of D)
|
|
2493
|
-
for (let y = I; y <= O; y++) {
|
|
2494
|
-
const S = `${p}-${y}`, F = se.get(S), G = st.get(p) || 0, Q = rt.append("rect").attr("x", G * (L + 4)).attr("y", (y - I) * (nt + 4)).attr("width", L).attr("height", nt).attr("rx", 2).attr("ry", 2).style("fill", F ? un(F.value) : fn).style("stroke", ce).style("stroke-width", 1);
|
|
2495
|
-
N.showTooltip && Q.style("cursor", "pointer").on("mouseover", function(H) {
|
|
2496
|
-
if (ct(this).style("stroke", "#000").style("stroke-width", 2), F) {
|
|
2497
|
-
const j = [
|
|
2498
|
-
`<strong>${F.label}</strong>`,
|
|
2499
|
-
`${E(m)}: ${F.value}`
|
|
2500
|
-
].join("<br>");
|
|
2501
|
-
pt.html(j).style("left", H.pageX + 10 + "px").style("top", H.pageY - 10 + "px").transition().duration(200).style("opacity", 1);
|
|
2502
|
-
}
|
|
2503
|
-
}).on("mousemove", function(H) {
|
|
2504
|
-
pt.style("left", H.pageX + 10 + "px").style("top", H.pageY - 10 + "px");
|
|
2505
|
-
}).on("mouseout", function() {
|
|
2506
|
-
ct(this).style("stroke", ce).style("stroke-width", 1), pt.transition().duration(200).style("opacity", 0);
|
|
2507
|
-
});
|
|
2508
|
-
}
|
|
2509
|
-
if (N.showLabels) {
|
|
2510
|
-
if (w.hasHierarchicalLabels && w.getYearFromX) {
|
|
2511
|
-
const p = /* @__PURE__ */ new Map();
|
|
2512
|
-
for (const y of D) {
|
|
2513
|
-
const S = w.getYearFromX(y);
|
|
2514
|
-
p.has(S) || p.set(S, []), p.get(S).push(y);
|
|
2515
|
-
}
|
|
2516
|
-
for (const y of D) {
|
|
2517
|
-
const S = st.get(y) || 0;
|
|
2518
|
-
rt.append("text").attr("x", S * (L + 4) + L / 2).attr("y", -8).attr("text-anchor", "middle").style("font-size", "10px").style("fill", gt).text(w.xFormat(y));
|
|
2519
|
-
}
|
|
2520
|
-
for (const [y, S] of p)
|
|
2521
|
-
if (S.length > 0) {
|
|
2522
|
-
const F = Math.min(...S.map((j) => st.get(j) || 0)), G = Math.max(...S.map((j) => st.get(j) || 0)), Q = (F + G) / 2;
|
|
2523
|
-
let H = "";
|
|
2524
|
-
if (y > 9999) {
|
|
2525
|
-
const j = Math.floor(y / 100), hn = y % 100;
|
|
2526
|
-
H = `${["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"][hn - 1]} '${j.toString().slice(-2)}`;
|
|
2527
|
-
} else
|
|
2528
|
-
H = `'${y.toString().slice(-2)}`;
|
|
2529
|
-
rt.append("text").attr("x", Q * (L + 4) + L / 2).attr("y", -25).attr("text-anchor", "middle").style("font-size", "12px").style("font-weight", "bold").style("fill", gt).text(H), S.length > 1 && rt.append("line").attr("x1", F * (L + 4)).attr("x2", G * (L + 4) + L).attr("y1", -20).attr("y2", -20).style("stroke", ln).style("stroke-width", 1).style("opacity", 0.3);
|
|
2530
|
-
}
|
|
2531
|
-
} else {
|
|
2532
|
-
const p = Math.max(1, Math.floor(D.length / 10));
|
|
2533
|
-
for (let y = 0; y < D.length; y += p) {
|
|
2534
|
-
const S = D[y];
|
|
2535
|
-
rt.append("text").attr("x", y * (L + 4) + L / 2).attr("y", -8).attr("text-anchor", "middle").style("font-size", "10px").style("fill", gt).text(w.xFormat(S));
|
|
2536
|
-
}
|
|
2537
|
-
}
|
|
2538
|
-
for (let p = I; p <= O; p++)
|
|
2539
|
-
rt.append("text").attr("x", -8).attr("y", (p - I) * (nt + 4) + nt / 2).attr("text-anchor", "end").attr("dy", ".35em").style("font-size", "10px").style("fill", gt).text(w.yFormat(p));
|
|
2540
|
-
}
|
|
2541
|
-
return () => {
|
|
2542
|
-
pt.remove();
|
|
2543
|
-
};
|
|
2544
|
-
}, [e, n, r, i, u, d, N.showTooltip, N.showLabels, o, h]), !e || e.length === 0)
|
|
2545
|
-
return /* @__PURE__ */ P(
|
|
2546
|
-
"div",
|
|
2547
|
-
{
|
|
2548
|
-
className: "flex items-center justify-center w-full",
|
|
2549
|
-
style: { height: a },
|
|
2550
|
-
children: /* @__PURE__ */ yt("div", { className: "text-center text-dc-text-muted", children: [
|
|
2551
|
-
/* @__PURE__ */ P("div", { className: "text-sm font-semibold mb-1", children: "No data available" }),
|
|
2552
|
-
/* @__PURE__ */ P("div", { className: "text-xs text-dc-text-secondary", children: "No data points to display in activity grid" })
|
|
2553
|
-
] })
|
|
2554
|
-
}
|
|
2555
|
-
);
|
|
2556
|
-
if (!(n?.dateField && n?.valueField))
|
|
2557
|
-
return /* @__PURE__ */ P(
|
|
2558
|
-
"div",
|
|
2559
|
-
{
|
|
2560
|
-
className: "flex items-center justify-center w-full",
|
|
2561
|
-
style: { height: a },
|
|
2562
|
-
children: /* @__PURE__ */ yt("div", { className: "text-center text-dc-text-muted", children: [
|
|
2563
|
-
/* @__PURE__ */ P("div", { className: "text-sm font-semibold mb-1", children: "Configuration Required" }),
|
|
2564
|
-
/* @__PURE__ */ P("div", { className: "text-xs text-dc-text-secondary", children: "Activity grid requires a time dimension and a measure" })
|
|
2565
|
-
] })
|
|
2566
|
-
}
|
|
2567
|
-
);
|
|
2568
|
-
const $ = Array.isArray(n.dateField) ? n.dateField[0] : n.dateField;
|
|
2569
|
-
return (i?.timeDimensions?.find(
|
|
2570
|
-
(b) => b.dimension === $ || b.dimension.includes($)
|
|
2571
|
-
)?.granularity || "day")?.toLowerCase() === "year" ? /* @__PURE__ */ P(
|
|
2572
|
-
"div",
|
|
2573
|
-
{
|
|
2574
|
-
className: "flex items-center justify-center w-full",
|
|
2575
|
-
style: { height: a },
|
|
2576
|
-
children: /* @__PURE__ */ yt("div", { className: "text-center text-dc-text-muted", children: [
|
|
2577
|
-
/* @__PURE__ */ P("div", { className: "text-sm font-semibold mb-1", children: "Granularity Too High" }),
|
|
2578
|
-
/* @__PURE__ */ P("div", { className: "text-xs text-dc-text-secondary", children: "Activity grids work best with hour, day, week, month, or quarter granularity" }),
|
|
2579
|
-
/* @__PURE__ */ P("div", { className: "text-xs text-dc-text-secondary mt-1", children: "Please choose a lower granularity for your time dimension" })
|
|
2580
|
-
] })
|
|
2581
|
-
}
|
|
2582
|
-
) : /* @__PURE__ */ P("div", { className: "w-full flex flex-col relative", style: { height: a, minHeight: "250px", overflow: "hidden", width: "100%" }, children: /* @__PURE__ */ yt("div", { ref: c, className: "w-full h-full relative overflow-x-auto", style: { width: "100%" }, children: [
|
|
2583
|
-
/* @__PURE__ */ P("svg", { ref: s, className: "h-full" }),
|
|
2584
|
-
!d && /* @__PURE__ */ P("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ P("div", { className: "text-dc-text-muted text-sm", children: "Measuring chart dimensions..." }) })
|
|
2585
|
-
] }) });
|
|
2586
|
-
}), Qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2587
|
-
__proto__: null,
|
|
2588
|
-
default: _a
|
|
2589
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
2590
|
-
export {
|
|
2591
|
-
pn as A,
|
|
2592
|
-
La as B,
|
|
2593
|
-
Wa as C,
|
|
2594
|
-
$n as D,
|
|
2595
|
-
Ha as E,
|
|
2596
|
-
Pa as F,
|
|
2597
|
-
Ua as G,
|
|
2598
|
-
Mn as H,
|
|
2599
|
-
Qa as I,
|
|
2600
|
-
za as N,
|
|
2601
|
-
Va as P,
|
|
2602
|
-
Oa as T,
|
|
2603
|
-
qa as a,
|
|
2604
|
-
ct as b,
|
|
2605
|
-
De as c,
|
|
2606
|
-
Kt as d,
|
|
2607
|
-
Ya as e,
|
|
2608
|
-
Ta as f,
|
|
2609
|
-
Nt as g,
|
|
2610
|
-
Ga as h,
|
|
2611
|
-
Ra as i,
|
|
2612
|
-
Cn as j,
|
|
2613
|
-
Xa as k,
|
|
2614
|
-
wa as l,
|
|
2615
|
-
fe as m,
|
|
2616
|
-
Ba as n,
|
|
2617
|
-
fa as o,
|
|
2618
|
-
qt as p,
|
|
2619
|
-
an as q,
|
|
2620
|
-
_n as r,
|
|
2621
|
-
Ia as s,
|
|
2622
|
-
Da as t,
|
|
2623
|
-
kn as u,
|
|
2624
|
-
xn as v,
|
|
2625
|
-
An as w,
|
|
2626
|
-
Fa as x,
|
|
2627
|
-
Ca as y,
|
|
2628
|
-
Ea as z
|
|
2629
|
-
};
|
|
2630
|
-
//# sourceMappingURL=chart-activitygridchart-BSA93MaS.js.map
|