@darajs/ui-hierarchy-viewer 1.29.13 → 1.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/d3-license.md +358 -0
- package/dist/hierarchy-viewer/treemap.js +3414 -85
- package/dist/hierarchy-viewer/treemap.js.map +1 -1
- package/package.json +16 -13
|
@@ -1,29 +1,3336 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { useCallback as e, useEffect as t, useRef as n, useState as r } from "react";
|
|
2
|
+
import i, { useTheme as a } from "@darajs/styled-components";
|
|
3
|
+
import { useDeepCompare as o } from "@darajs/ui-utils";
|
|
4
|
+
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
5
|
+
//#region ../../node_modules/.pnpm/internmap@2.0.3/node_modules/internmap/src/index.js
|
|
6
|
+
var u = class extends Map {
|
|
7
|
+
constructor(e, t = m) {
|
|
8
|
+
if (super(), Object.defineProperties(this, {
|
|
9
|
+
_intern: { value: /* @__PURE__ */ new Map() },
|
|
10
|
+
_key: { value: t }
|
|
11
|
+
}), e != null) for (let [t, n] of e) this.set(t, n);
|
|
12
|
+
}
|
|
13
|
+
get(e) {
|
|
14
|
+
return super.get(d(this, e));
|
|
15
|
+
}
|
|
16
|
+
has(e) {
|
|
17
|
+
return super.has(d(this, e));
|
|
18
|
+
}
|
|
19
|
+
set(e, t) {
|
|
20
|
+
return super.set(f(this, e), t);
|
|
21
|
+
}
|
|
22
|
+
delete(e) {
|
|
23
|
+
return super.delete(p(this, e));
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
function d({ _intern: e, _key: t }, n) {
|
|
27
|
+
let r = t(n);
|
|
28
|
+
return e.has(r) ? e.get(r) : n;
|
|
29
|
+
}
|
|
30
|
+
function f({ _intern: e, _key: t }, n) {
|
|
31
|
+
let r = t(n);
|
|
32
|
+
return e.has(r) ? e.get(r) : (e.set(r, n), n);
|
|
33
|
+
}
|
|
34
|
+
function p({ _intern: e, _key: t }, n) {
|
|
35
|
+
let r = t(n);
|
|
36
|
+
return e.has(r) && (n = e.get(r), e.delete(r)), n;
|
|
37
|
+
}
|
|
38
|
+
function m(e) {
|
|
39
|
+
return typeof e == "object" && e ? e.valueOf() : e;
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region ../../node_modules/.pnpm/d3-dispatch@2.0.0/node_modules/d3-dispatch/src/dispatch.js
|
|
43
|
+
var h = { value: () => {} };
|
|
44
|
+
function g() {
|
|
45
|
+
for (var e = 0, t = arguments.length, n = {}, r; e < t; ++e) {
|
|
46
|
+
if (!(r = arguments[e] + "") || r in n || /[\s.]/.test(r)) throw Error("illegal type: " + r);
|
|
47
|
+
n[r] = [];
|
|
48
|
+
}
|
|
49
|
+
return new _(n);
|
|
50
|
+
}
|
|
51
|
+
function _(e) {
|
|
52
|
+
this._ = e;
|
|
53
|
+
}
|
|
54
|
+
function v(e, t) {
|
|
55
|
+
return e.trim().split(/^|\s+/).map(function(e) {
|
|
56
|
+
var n = "", r = e.indexOf(".");
|
|
57
|
+
if (r >= 0 && (n = e.slice(r + 1), e = e.slice(0, r)), e && !t.hasOwnProperty(e)) throw Error("unknown type: " + e);
|
|
58
|
+
return {
|
|
59
|
+
type: e,
|
|
60
|
+
name: n
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
_.prototype = g.prototype = {
|
|
65
|
+
constructor: _,
|
|
66
|
+
on: function(e, t) {
|
|
67
|
+
var n = this._, r = v(e + "", n), i, a = -1, o = r.length;
|
|
68
|
+
if (arguments.length < 2) {
|
|
69
|
+
for (; ++a < o;) if ((i = (e = r[a]).type) && (i = y(n[i], e.name))) return i;
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
if (t != null && typeof t != "function") throw Error("invalid callback: " + t);
|
|
73
|
+
for (; ++a < o;) if (i = (e = r[a]).type) n[i] = b(n[i], e.name, t);
|
|
74
|
+
else if (t == null) for (i in n) n[i] = b(n[i], e.name, null);
|
|
75
|
+
return this;
|
|
76
|
+
},
|
|
77
|
+
copy: function() {
|
|
78
|
+
var e = {}, t = this._;
|
|
79
|
+
for (var n in t) e[n] = t[n].slice();
|
|
80
|
+
return new _(e);
|
|
81
|
+
},
|
|
82
|
+
call: function(e, t) {
|
|
83
|
+
if ((i = arguments.length - 2) > 0) for (var n = Array(i), r = 0, i, a; r < i; ++r) n[r] = arguments[r + 2];
|
|
84
|
+
if (!this._.hasOwnProperty(e)) throw Error("unknown type: " + e);
|
|
85
|
+
for (a = this._[e], r = 0, i = a.length; r < i; ++r) a[r].value.apply(t, n);
|
|
86
|
+
},
|
|
87
|
+
apply: function(e, t, n) {
|
|
88
|
+
if (!this._.hasOwnProperty(e)) throw Error("unknown type: " + e);
|
|
89
|
+
for (var r = this._[e], i = 0, a = r.length; i < a; ++i) r[i].value.apply(t, n);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
function y(e, t) {
|
|
93
|
+
for (var n = 0, r = e.length, i; n < r; ++n) if ((i = e[n]).name === t) return i.value;
|
|
94
|
+
}
|
|
95
|
+
function b(e, t, n) {
|
|
96
|
+
for (var r = 0, i = e.length; r < i; ++r) if (e[r].name === t) {
|
|
97
|
+
e[r] = h, e = e.slice(0, r).concat(e.slice(r + 1));
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
return n != null && e.push({
|
|
101
|
+
name: t,
|
|
102
|
+
value: n
|
|
103
|
+
}), e;
|
|
104
|
+
}
|
|
105
|
+
var x = {
|
|
106
|
+
svg: "http://www.w3.org/2000/svg",
|
|
107
|
+
xhtml: "http://www.w3.org/1999/xhtml",
|
|
108
|
+
xlink: "http://www.w3.org/1999/xlink",
|
|
109
|
+
xml: "http://www.w3.org/XML/1998/namespace",
|
|
110
|
+
xmlns: "http://www.w3.org/2000/xmlns/"
|
|
111
|
+
};
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/namespace.js
|
|
114
|
+
function S(e) {
|
|
115
|
+
var t = e += "", n = t.indexOf(":");
|
|
116
|
+
return n >= 0 && (t = e.slice(0, n)) !== "xmlns" && (e = e.slice(n + 1)), x.hasOwnProperty(t) ? {
|
|
117
|
+
space: x[t],
|
|
118
|
+
local: e
|
|
119
|
+
} : e;
|
|
120
|
+
}
|
|
121
|
+
//#endregion
|
|
122
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/creator.js
|
|
123
|
+
function ee(e) {
|
|
124
|
+
return function() {
|
|
125
|
+
var t = this.ownerDocument, n = this.namespaceURI;
|
|
126
|
+
return n === "http://www.w3.org/1999/xhtml" && t.documentElement.namespaceURI === "http://www.w3.org/1999/xhtml" ? t.createElement(e) : t.createElementNS(n, e);
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
function te(e) {
|
|
130
|
+
return function() {
|
|
131
|
+
return this.ownerDocument.createElementNS(e.space, e.local);
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function ne(e) {
|
|
135
|
+
var t = S(e);
|
|
136
|
+
return (t.local ? te : ee)(t);
|
|
137
|
+
}
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selector.js
|
|
140
|
+
function re() {}
|
|
141
|
+
function ie(e) {
|
|
142
|
+
return e == null ? re : function() {
|
|
143
|
+
return this.querySelector(e);
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
//#endregion
|
|
147
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/select.js
|
|
148
|
+
function ae(e) {
|
|
149
|
+
typeof e != "function" && (e = ie(e));
|
|
150
|
+
for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = Array(o), c, l, u = 0; u < o; ++u) (c = a[u]) && (l = e.call(c, c.__data__, u, a)) && ("__data__" in c && (l.__data__ = c.__data__), s[u] = l);
|
|
151
|
+
return new w(r, this._parents);
|
|
152
|
+
}
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/array.js
|
|
155
|
+
function oe(e) {
|
|
156
|
+
return typeof e == "object" && "length" in e ? e : Array.from(e);
|
|
157
|
+
}
|
|
158
|
+
//#endregion
|
|
159
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selectorAll.js
|
|
160
|
+
function se() {
|
|
161
|
+
return [];
|
|
162
|
+
}
|
|
163
|
+
function ce(e) {
|
|
164
|
+
return e == null ? se : function() {
|
|
165
|
+
return this.querySelectorAll(e);
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
//#endregion
|
|
169
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/selectAll.js
|
|
170
|
+
function le(e) {
|
|
171
|
+
return function() {
|
|
172
|
+
var t = e.apply(this, arguments);
|
|
173
|
+
return t == null ? [] : oe(t);
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
function ue(e) {
|
|
177
|
+
e = typeof e == "function" ? le(e) : ce(e);
|
|
178
|
+
for (var t = this._groups, n = t.length, r = [], i = [], a = 0; a < n; ++a) for (var o = t[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) && (r.push(e.call(c, c.__data__, l, o)), i.push(c));
|
|
179
|
+
return new w(r, i);
|
|
180
|
+
}
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/matcher.js
|
|
183
|
+
function de(e) {
|
|
184
|
+
return function() {
|
|
185
|
+
return this.matches(e);
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
function fe(e) {
|
|
189
|
+
return function(t) {
|
|
190
|
+
return t.matches(e);
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
//#endregion
|
|
194
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/selectChild.js
|
|
195
|
+
var pe = Array.prototype.find;
|
|
196
|
+
function me(e) {
|
|
197
|
+
return function() {
|
|
198
|
+
return pe.call(this.children, e);
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
function he() {
|
|
202
|
+
return this.firstElementChild;
|
|
203
|
+
}
|
|
204
|
+
function ge(e) {
|
|
205
|
+
return this.select(e == null ? he : me(typeof e == "function" ? e : fe(e)));
|
|
206
|
+
}
|
|
207
|
+
//#endregion
|
|
208
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/selectChildren.js
|
|
209
|
+
var _e = Array.prototype.filter;
|
|
210
|
+
function ve() {
|
|
211
|
+
return this.children;
|
|
212
|
+
}
|
|
213
|
+
function ye(e) {
|
|
214
|
+
return function() {
|
|
215
|
+
return _e.call(this.children, e);
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
function be(e) {
|
|
219
|
+
return this.selectAll(e == null ? ve : ye(typeof e == "function" ? e : fe(e)));
|
|
220
|
+
}
|
|
221
|
+
//#endregion
|
|
222
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/filter.js
|
|
223
|
+
function xe(e) {
|
|
224
|
+
typeof e != "function" && (e = de(e));
|
|
225
|
+
for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = [], c, l = 0; l < o; ++l) (c = a[l]) && e.call(c, c.__data__, l, a) && s.push(c);
|
|
226
|
+
return new w(r, this._parents);
|
|
227
|
+
}
|
|
228
|
+
//#endregion
|
|
229
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/sparse.js
|
|
230
|
+
function Se(e) {
|
|
231
|
+
return Array(e.length);
|
|
232
|
+
}
|
|
233
|
+
//#endregion
|
|
234
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/enter.js
|
|
235
|
+
function Ce() {
|
|
236
|
+
return new w(this._enter || this._groups.map(Se), this._parents);
|
|
237
|
+
}
|
|
238
|
+
function we(e, t) {
|
|
239
|
+
this.ownerDocument = e.ownerDocument, this.namespaceURI = e.namespaceURI, this._next = null, this._parent = e, this.__data__ = t;
|
|
240
|
+
}
|
|
241
|
+
we.prototype = {
|
|
242
|
+
constructor: we,
|
|
243
|
+
appendChild: function(e) {
|
|
244
|
+
return this._parent.insertBefore(e, this._next);
|
|
245
|
+
},
|
|
246
|
+
insertBefore: function(e, t) {
|
|
247
|
+
return this._parent.insertBefore(e, t);
|
|
248
|
+
},
|
|
249
|
+
querySelector: function(e) {
|
|
250
|
+
return this._parent.querySelector(e);
|
|
251
|
+
},
|
|
252
|
+
querySelectorAll: function(e) {
|
|
253
|
+
return this._parent.querySelectorAll(e);
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
//#endregion
|
|
257
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/constant.js
|
|
258
|
+
function Te(e) {
|
|
259
|
+
return function() {
|
|
260
|
+
return e;
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
//#endregion
|
|
264
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/data.js
|
|
265
|
+
function Ee(e, t, n, r, i, a) {
|
|
266
|
+
for (var o = 0, s, c = t.length, l = a.length; o < l; ++o) (s = t[o]) ? (s.__data__ = a[o], r[o] = s) : n[o] = new we(e, a[o]);
|
|
267
|
+
for (; o < c; ++o) (s = t[o]) && (i[o] = s);
|
|
268
|
+
}
|
|
269
|
+
function De(e, t, n, r, i, a, o) {
|
|
270
|
+
var s, c, l = /* @__PURE__ */ new Map(), u = t.length, d = a.length, f = Array(u), p;
|
|
271
|
+
for (s = 0; s < u; ++s) (c = t[s]) && (f[s] = p = o.call(c, c.__data__, s, t) + "", l.has(p) ? i[s] = c : l.set(p, c));
|
|
272
|
+
for (s = 0; s < d; ++s) p = o.call(e, a[s], s, a) + "", (c = l.get(p)) ? (r[s] = c, c.__data__ = a[s], l.delete(p)) : n[s] = new we(e, a[s]);
|
|
273
|
+
for (s = 0; s < u; ++s) (c = t[s]) && l.get(f[s]) === c && (i[s] = c);
|
|
274
|
+
}
|
|
275
|
+
function Oe(e) {
|
|
276
|
+
return e.__data__;
|
|
277
|
+
}
|
|
278
|
+
function ke(e, t) {
|
|
279
|
+
if (!arguments.length) return Array.from(this, Oe);
|
|
280
|
+
var n = t ? De : Ee, r = this._parents, i = this._groups;
|
|
281
|
+
typeof e != "function" && (e = Te(e));
|
|
282
|
+
for (var a = i.length, o = Array(a), s = Array(a), c = Array(a), l = 0; l < a; ++l) {
|
|
283
|
+
var u = r[l], d = i[l], f = d.length, p = oe(e.call(u, u && u.__data__, l, r)), m = p.length, h = s[l] = Array(m), g = o[l] = Array(m);
|
|
284
|
+
n(u, d, h, g, c[l] = Array(f), p, t);
|
|
285
|
+
for (var _ = 0, v = 0, y, b; _ < m; ++_) if (y = h[_]) {
|
|
286
|
+
for (_ >= v && (v = _ + 1); !(b = g[v]) && ++v < m;);
|
|
287
|
+
y._next = b || null;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
return o = new w(o, r), o._enter = s, o._exit = c, o;
|
|
291
|
+
}
|
|
292
|
+
//#endregion
|
|
293
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/exit.js
|
|
294
|
+
function Ae() {
|
|
295
|
+
return new w(this._exit || this._groups.map(Se), this._parents);
|
|
296
|
+
}
|
|
297
|
+
//#endregion
|
|
298
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/join.js
|
|
299
|
+
function je(e, t, n) {
|
|
300
|
+
var r = this.enter(), i = this, a = this.exit();
|
|
301
|
+
return r = typeof e == "function" ? e(r) : r.append(e + ""), t != null && (i = t(i)), n == null ? a.remove() : n(a), r && i ? r.merge(i).order() : i;
|
|
302
|
+
}
|
|
303
|
+
//#endregion
|
|
304
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/merge.js
|
|
305
|
+
function Me(e) {
|
|
306
|
+
if (!(e instanceof w)) throw Error("invalid merge");
|
|
307
|
+
for (var t = this._groups, n = e._groups, r = t.length, i = n.length, a = Math.min(r, i), o = Array(r), s = 0; s < a; ++s) for (var c = t[s], l = n[s], u = c.length, d = o[s] = Array(u), f, p = 0; p < u; ++p) (f = c[p] || l[p]) && (d[p] = f);
|
|
308
|
+
for (; s < r; ++s) o[s] = t[s];
|
|
309
|
+
return new w(o, this._parents);
|
|
310
|
+
}
|
|
311
|
+
//#endregion
|
|
312
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/order.js
|
|
313
|
+
function Ne() {
|
|
314
|
+
for (var e = this._groups, t = -1, n = e.length; ++t < n;) for (var r = e[t], i = r.length - 1, a = r[i], o; --i >= 0;) (o = r[i]) && (a && o.compareDocumentPosition(a) ^ 4 && a.parentNode.insertBefore(o, a), a = o);
|
|
315
|
+
return this;
|
|
316
|
+
}
|
|
317
|
+
//#endregion
|
|
318
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/sort.js
|
|
319
|
+
function Pe(e) {
|
|
320
|
+
e || (e = Fe);
|
|
321
|
+
function t(t, n) {
|
|
322
|
+
return t && n ? e(t.__data__, n.__data__) : !t - !n;
|
|
323
|
+
}
|
|
324
|
+
for (var n = this._groups, r = n.length, i = Array(r), a = 0; a < r; ++a) {
|
|
325
|
+
for (var o = n[a], s = o.length, c = i[a] = Array(s), l, u = 0; u < s; ++u) (l = o[u]) && (c[u] = l);
|
|
326
|
+
c.sort(t);
|
|
327
|
+
}
|
|
328
|
+
return new w(i, this._parents).order();
|
|
329
|
+
}
|
|
330
|
+
function Fe(e, t) {
|
|
331
|
+
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
|
|
332
|
+
}
|
|
333
|
+
//#endregion
|
|
334
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/call.js
|
|
335
|
+
function Ie() {
|
|
336
|
+
var e = arguments[0];
|
|
337
|
+
return arguments[0] = this, e.apply(null, arguments), this;
|
|
338
|
+
}
|
|
339
|
+
//#endregion
|
|
340
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/nodes.js
|
|
341
|
+
function Le() {
|
|
342
|
+
return Array.from(this);
|
|
343
|
+
}
|
|
344
|
+
//#endregion
|
|
345
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/node.js
|
|
346
|
+
function Re() {
|
|
347
|
+
for (var e = this._groups, t = 0, n = e.length; t < n; ++t) for (var r = e[t], i = 0, a = r.length; i < a; ++i) {
|
|
348
|
+
var o = r[i];
|
|
349
|
+
if (o) return o;
|
|
350
|
+
}
|
|
351
|
+
return null;
|
|
352
|
+
}
|
|
353
|
+
//#endregion
|
|
354
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/size.js
|
|
355
|
+
function ze() {
|
|
356
|
+
let e = 0;
|
|
357
|
+
for (let t of this) ++e;
|
|
358
|
+
return e;
|
|
359
|
+
}
|
|
360
|
+
//#endregion
|
|
361
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/empty.js
|
|
362
|
+
function Be() {
|
|
363
|
+
return !this.node();
|
|
364
|
+
}
|
|
365
|
+
//#endregion
|
|
366
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/each.js
|
|
367
|
+
function Ve(e) {
|
|
368
|
+
for (var t = this._groups, n = 0, r = t.length; n < r; ++n) for (var i = t[n], a = 0, o = i.length, s; a < o; ++a) (s = i[a]) && e.call(s, s.__data__, a, i);
|
|
369
|
+
return this;
|
|
370
|
+
}
|
|
371
|
+
//#endregion
|
|
372
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/attr.js
|
|
373
|
+
function He(e) {
|
|
374
|
+
return function() {
|
|
375
|
+
this.removeAttribute(e);
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
function Ue(e) {
|
|
379
|
+
return function() {
|
|
380
|
+
this.removeAttributeNS(e.space, e.local);
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
function We(e, t) {
|
|
384
|
+
return function() {
|
|
385
|
+
this.setAttribute(e, t);
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
function Ge(e, t) {
|
|
389
|
+
return function() {
|
|
390
|
+
this.setAttributeNS(e.space, e.local, t);
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
function Ke(e, t) {
|
|
394
|
+
return function() {
|
|
395
|
+
var n = t.apply(this, arguments);
|
|
396
|
+
n == null ? this.removeAttribute(e) : this.setAttribute(e, n);
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
function qe(e, t) {
|
|
400
|
+
return function() {
|
|
401
|
+
var n = t.apply(this, arguments);
|
|
402
|
+
n == null ? this.removeAttributeNS(e.space, e.local) : this.setAttributeNS(e.space, e.local, n);
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
function Je(e, t) {
|
|
406
|
+
var n = S(e);
|
|
407
|
+
if (arguments.length < 2) {
|
|
408
|
+
var r = this.node();
|
|
409
|
+
return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n);
|
|
410
|
+
}
|
|
411
|
+
return this.each((t == null ? n.local ? Ue : He : typeof t == "function" ? n.local ? qe : Ke : n.local ? Ge : We)(n, t));
|
|
412
|
+
}
|
|
413
|
+
//#endregion
|
|
414
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/window.js
|
|
415
|
+
function Ye(e) {
|
|
416
|
+
return e.ownerDocument && e.ownerDocument.defaultView || e.document && e || e.defaultView;
|
|
417
|
+
}
|
|
418
|
+
//#endregion
|
|
419
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/style.js
|
|
420
|
+
function Xe(e) {
|
|
421
|
+
return function() {
|
|
422
|
+
this.style.removeProperty(e);
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
function Ze(e, t, n) {
|
|
426
|
+
return function() {
|
|
427
|
+
this.style.setProperty(e, t, n);
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
function Qe(e, t, n) {
|
|
431
|
+
return function() {
|
|
432
|
+
var r = t.apply(this, arguments);
|
|
433
|
+
r == null ? this.style.removeProperty(e) : this.style.setProperty(e, r, n);
|
|
434
|
+
};
|
|
435
|
+
}
|
|
436
|
+
function $e(e, t, n) {
|
|
437
|
+
return arguments.length > 1 ? this.each((t == null ? Xe : typeof t == "function" ? Qe : Ze)(e, t, n == null ? "" : n)) : C(this.node(), e);
|
|
438
|
+
}
|
|
439
|
+
function C(e, t) {
|
|
440
|
+
return e.style.getPropertyValue(t) || Ye(e).getComputedStyle(e, null).getPropertyValue(t);
|
|
441
|
+
}
|
|
442
|
+
//#endregion
|
|
443
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/property.js
|
|
444
|
+
function et(e) {
|
|
445
|
+
return function() {
|
|
446
|
+
delete this[e];
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
function tt(e, t) {
|
|
450
|
+
return function() {
|
|
451
|
+
this[e] = t;
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
function nt(e, t) {
|
|
455
|
+
return function() {
|
|
456
|
+
var n = t.apply(this, arguments);
|
|
457
|
+
n == null ? delete this[e] : this[e] = n;
|
|
458
|
+
};
|
|
459
|
+
}
|
|
460
|
+
function rt(e, t) {
|
|
461
|
+
return arguments.length > 1 ? this.each((t == null ? et : typeof t == "function" ? nt : tt)(e, t)) : this.node()[e];
|
|
462
|
+
}
|
|
463
|
+
//#endregion
|
|
464
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/classed.js
|
|
465
|
+
function it(e) {
|
|
466
|
+
return e.trim().split(/^|\s+/);
|
|
467
|
+
}
|
|
468
|
+
function at(e) {
|
|
469
|
+
return e.classList || new ot(e);
|
|
470
|
+
}
|
|
471
|
+
function ot(e) {
|
|
472
|
+
this._node = e, this._names = it(e.getAttribute("class") || "");
|
|
473
|
+
}
|
|
474
|
+
ot.prototype = {
|
|
475
|
+
add: function(e) {
|
|
476
|
+
this._names.indexOf(e) < 0 && (this._names.push(e), this._node.setAttribute("class", this._names.join(" ")));
|
|
477
|
+
},
|
|
478
|
+
remove: function(e) {
|
|
479
|
+
var t = this._names.indexOf(e);
|
|
480
|
+
t >= 0 && (this._names.splice(t, 1), this._node.setAttribute("class", this._names.join(" ")));
|
|
481
|
+
},
|
|
482
|
+
contains: function(e) {
|
|
483
|
+
return this._names.indexOf(e) >= 0;
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
function st(e, t) {
|
|
487
|
+
for (var n = at(e), r = -1, i = t.length; ++r < i;) n.add(t[r]);
|
|
488
|
+
}
|
|
489
|
+
function ct(e, t) {
|
|
490
|
+
for (var n = at(e), r = -1, i = t.length; ++r < i;) n.remove(t[r]);
|
|
491
|
+
}
|
|
492
|
+
function lt(e) {
|
|
493
|
+
return function() {
|
|
494
|
+
st(this, e);
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
function ut(e) {
|
|
498
|
+
return function() {
|
|
499
|
+
ct(this, e);
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
function dt(e, t) {
|
|
503
|
+
return function() {
|
|
504
|
+
(t.apply(this, arguments) ? st : ct)(this, e);
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
function ft(e, t) {
|
|
508
|
+
var n = it(e + "");
|
|
509
|
+
if (arguments.length < 2) {
|
|
510
|
+
for (var r = at(this.node()), i = -1, a = n.length; ++i < a;) if (!r.contains(n[i])) return !1;
|
|
511
|
+
return !0;
|
|
512
|
+
}
|
|
513
|
+
return this.each((typeof t == "function" ? dt : t ? lt : ut)(n, t));
|
|
514
|
+
}
|
|
515
|
+
//#endregion
|
|
516
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/text.js
|
|
517
|
+
function pt() {
|
|
518
|
+
this.textContent = "";
|
|
519
|
+
}
|
|
520
|
+
function mt(e) {
|
|
521
|
+
return function() {
|
|
522
|
+
this.textContent = e;
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
function ht(e) {
|
|
526
|
+
return function() {
|
|
527
|
+
var t = e.apply(this, arguments);
|
|
528
|
+
this.textContent = t == null ? "" : t;
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
function gt(e) {
|
|
532
|
+
return arguments.length ? this.each(e == null ? pt : (typeof e == "function" ? ht : mt)(e)) : this.node().textContent;
|
|
533
|
+
}
|
|
534
|
+
//#endregion
|
|
535
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/html.js
|
|
536
|
+
function _t() {
|
|
537
|
+
this.innerHTML = "";
|
|
538
|
+
}
|
|
539
|
+
function vt(e) {
|
|
540
|
+
return function() {
|
|
541
|
+
this.innerHTML = e;
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
function yt(e) {
|
|
545
|
+
return function() {
|
|
546
|
+
var t = e.apply(this, arguments);
|
|
547
|
+
this.innerHTML = t == null ? "" : t;
|
|
548
|
+
};
|
|
549
|
+
}
|
|
550
|
+
function bt(e) {
|
|
551
|
+
return arguments.length ? this.each(e == null ? _t : (typeof e == "function" ? yt : vt)(e)) : this.node().innerHTML;
|
|
552
|
+
}
|
|
553
|
+
//#endregion
|
|
554
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/raise.js
|
|
555
|
+
function xt() {
|
|
556
|
+
this.nextSibling && this.parentNode.appendChild(this);
|
|
557
|
+
}
|
|
558
|
+
function St() {
|
|
559
|
+
return this.each(xt);
|
|
560
|
+
}
|
|
561
|
+
//#endregion
|
|
562
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/lower.js
|
|
563
|
+
function Ct() {
|
|
564
|
+
this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
|
|
565
|
+
}
|
|
566
|
+
function wt() {
|
|
567
|
+
return this.each(Ct);
|
|
568
|
+
}
|
|
569
|
+
//#endregion
|
|
570
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/append.js
|
|
571
|
+
function Tt(e) {
|
|
572
|
+
var t = typeof e == "function" ? e : ne(e);
|
|
573
|
+
return this.select(function() {
|
|
574
|
+
return this.appendChild(t.apply(this, arguments));
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
//#endregion
|
|
578
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/insert.js
|
|
579
|
+
function Et() {
|
|
580
|
+
return null;
|
|
581
|
+
}
|
|
582
|
+
function Dt(e, t) {
|
|
583
|
+
var n = typeof e == "function" ? e : ne(e), r = t == null ? Et : typeof t == "function" ? t : ie(t);
|
|
584
|
+
return this.select(function() {
|
|
585
|
+
return this.insertBefore(n.apply(this, arguments), r.apply(this, arguments) || null);
|
|
586
|
+
});
|
|
587
|
+
}
|
|
588
|
+
//#endregion
|
|
589
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/remove.js
|
|
590
|
+
function Ot() {
|
|
591
|
+
var e = this.parentNode;
|
|
592
|
+
e && e.removeChild(this);
|
|
593
|
+
}
|
|
594
|
+
function kt() {
|
|
595
|
+
return this.each(Ot);
|
|
596
|
+
}
|
|
597
|
+
//#endregion
|
|
598
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/clone.js
|
|
599
|
+
function At() {
|
|
600
|
+
var e = this.cloneNode(!1), t = this.parentNode;
|
|
601
|
+
return t ? t.insertBefore(e, this.nextSibling) : e;
|
|
602
|
+
}
|
|
603
|
+
function jt() {
|
|
604
|
+
var e = this.cloneNode(!0), t = this.parentNode;
|
|
605
|
+
return t ? t.insertBefore(e, this.nextSibling) : e;
|
|
606
|
+
}
|
|
607
|
+
function Mt(e) {
|
|
608
|
+
return this.select(e ? jt : At);
|
|
609
|
+
}
|
|
610
|
+
//#endregion
|
|
611
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/datum.js
|
|
612
|
+
function Nt(e) {
|
|
613
|
+
return arguments.length ? this.property("__data__", e) : this.node().__data__;
|
|
614
|
+
}
|
|
615
|
+
//#endregion
|
|
616
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/on.js
|
|
617
|
+
function Pt(e) {
|
|
618
|
+
return function(t) {
|
|
619
|
+
e.call(this, t, this.__data__);
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
function Ft(e) {
|
|
623
|
+
return e.trim().split(/^|\s+/).map(function(e) {
|
|
624
|
+
var t = "", n = e.indexOf(".");
|
|
625
|
+
return n >= 0 && (t = e.slice(n + 1), e = e.slice(0, n)), {
|
|
626
|
+
type: e,
|
|
627
|
+
name: t
|
|
628
|
+
};
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
function It(e) {
|
|
632
|
+
return function() {
|
|
633
|
+
var t = this.__on;
|
|
634
|
+
if (t) {
|
|
635
|
+
for (var n = 0, r = -1, i = t.length, a; n < i; ++n) a = t[n], (!e.type || a.type === e.type) && a.name === e.name ? this.removeEventListener(a.type, a.listener, a.options) : t[++r] = a;
|
|
636
|
+
++r ? t.length = r : delete this.__on;
|
|
637
|
+
}
|
|
638
|
+
};
|
|
639
|
+
}
|
|
640
|
+
function Lt(e, t, n) {
|
|
641
|
+
return function() {
|
|
642
|
+
var r = this.__on, i, a = Pt(t);
|
|
643
|
+
if (r) {
|
|
644
|
+
for (var o = 0, s = r.length; o < s; ++o) if ((i = r[o]).type === e.type && i.name === e.name) {
|
|
645
|
+
this.removeEventListener(i.type, i.listener, i.options), this.addEventListener(i.type, i.listener = a, i.options = n), i.value = t;
|
|
646
|
+
return;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
this.addEventListener(e.type, a, n), i = {
|
|
650
|
+
type: e.type,
|
|
651
|
+
name: e.name,
|
|
652
|
+
value: t,
|
|
653
|
+
listener: a,
|
|
654
|
+
options: n
|
|
655
|
+
}, r ? r.push(i) : this.__on = [i];
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
function Rt(e, t, n) {
|
|
659
|
+
var r = Ft(e + ""), i, a = r.length, o;
|
|
660
|
+
if (arguments.length < 2) {
|
|
661
|
+
var s = this.node().__on;
|
|
662
|
+
if (s) {
|
|
663
|
+
for (var c = 0, l = s.length, u; c < l; ++c) for (i = 0, u = s[c]; i < a; ++i) if ((o = r[i]).type === u.type && o.name === u.name) return u.value;
|
|
664
|
+
}
|
|
665
|
+
return;
|
|
666
|
+
}
|
|
667
|
+
for (s = t ? Lt : It, i = 0; i < a; ++i) this.each(s(r[i], t, n));
|
|
668
|
+
return this;
|
|
669
|
+
}
|
|
670
|
+
//#endregion
|
|
671
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/dispatch.js
|
|
672
|
+
function zt(e, t, n) {
|
|
673
|
+
var r = Ye(e), i = r.CustomEvent;
|
|
674
|
+
typeof i == "function" ? i = new i(t, n) : (i = r.document.createEvent("Event"), n ? (i.initEvent(t, n.bubbles, n.cancelable), i.detail = n.detail) : i.initEvent(t, !1, !1)), e.dispatchEvent(i);
|
|
675
|
+
}
|
|
676
|
+
function Bt(e, t) {
|
|
677
|
+
return function() {
|
|
678
|
+
return zt(this, e, t);
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
function Vt(e, t) {
|
|
682
|
+
return function() {
|
|
683
|
+
return zt(this, e, t.apply(this, arguments));
|
|
684
|
+
};
|
|
685
|
+
}
|
|
686
|
+
function Ht(e, t) {
|
|
687
|
+
return this.each((typeof t == "function" ? Vt : Bt)(e, t));
|
|
688
|
+
}
|
|
689
|
+
//#endregion
|
|
690
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/iterator.js
|
|
691
|
+
function* Ut() {
|
|
692
|
+
for (var e = this._groups, t = 0, n = e.length; t < n; ++t) for (var r = e[t], i = 0, a = r.length, o; i < a; ++i) (o = r[i]) && (yield o);
|
|
693
|
+
}
|
|
694
|
+
//#endregion
|
|
695
|
+
//#region ../../node_modules/.pnpm/d3-selection@2.0.0/node_modules/d3-selection/src/selection/index.js
|
|
696
|
+
var Wt = [null];
|
|
697
|
+
function w(e, t) {
|
|
698
|
+
this._groups = e, this._parents = t;
|
|
699
|
+
}
|
|
700
|
+
function T() {
|
|
701
|
+
return new w([[document.documentElement]], Wt);
|
|
702
|
+
}
|
|
703
|
+
function Gt() {
|
|
704
|
+
return this;
|
|
705
|
+
}
|
|
706
|
+
w.prototype = T.prototype = {
|
|
707
|
+
constructor: w,
|
|
708
|
+
select: ae,
|
|
709
|
+
selectAll: ue,
|
|
710
|
+
selectChild: ge,
|
|
711
|
+
selectChildren: be,
|
|
712
|
+
filter: xe,
|
|
713
|
+
data: ke,
|
|
714
|
+
enter: Ce,
|
|
715
|
+
exit: Ae,
|
|
716
|
+
join: je,
|
|
717
|
+
merge: Me,
|
|
718
|
+
selection: Gt,
|
|
719
|
+
order: Ne,
|
|
720
|
+
sort: Pe,
|
|
721
|
+
call: Ie,
|
|
722
|
+
nodes: Le,
|
|
723
|
+
node: Re,
|
|
724
|
+
size: ze,
|
|
725
|
+
empty: Be,
|
|
726
|
+
each: Ve,
|
|
727
|
+
attr: Je,
|
|
728
|
+
style: $e,
|
|
729
|
+
property: rt,
|
|
730
|
+
classed: ft,
|
|
731
|
+
text: gt,
|
|
732
|
+
html: bt,
|
|
733
|
+
raise: St,
|
|
734
|
+
lower: wt,
|
|
735
|
+
append: Tt,
|
|
736
|
+
insert: Dt,
|
|
737
|
+
remove: kt,
|
|
738
|
+
clone: Mt,
|
|
739
|
+
datum: Nt,
|
|
740
|
+
on: Rt,
|
|
741
|
+
dispatch: Ht,
|
|
742
|
+
[Symbol.iterator]: Ut
|
|
743
|
+
};
|
|
744
|
+
//#endregion
|
|
745
|
+
//#region ../../node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/define.js
|
|
746
|
+
function Kt(e, t, n) {
|
|
747
|
+
e.prototype = t.prototype = n, n.constructor = e;
|
|
748
|
+
}
|
|
749
|
+
function qt(e, t) {
|
|
750
|
+
var n = Object.create(e.prototype);
|
|
751
|
+
for (var r in t) n[r] = t[r];
|
|
752
|
+
return n;
|
|
753
|
+
}
|
|
754
|
+
//#endregion
|
|
755
|
+
//#region ../../node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.js
|
|
756
|
+
function Jt() {}
|
|
757
|
+
var Yt = .7, Xt = 1 / Yt, E = "\\s*([+-]?\\d+)\\s*", D = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", O = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Zt = /^#([0-9a-f]{3,8})$/, Qt = RegExp(`^rgb\\(${E},${E},${E}\\)$`), $t = RegExp(`^rgb\\(${O},${O},${O}\\)$`), en = RegExp(`^rgba\\(${E},${E},${E},${D}\\)$`), tn = RegExp(`^rgba\\(${O},${O},${O},${D}\\)$`), nn = RegExp(`^hsl\\(${D},${O},${O}\\)$`), rn = RegExp(`^hsla\\(${D},${O},${O},${D}\\)$`), an = {
|
|
758
|
+
aliceblue: 15792383,
|
|
759
|
+
antiquewhite: 16444375,
|
|
760
|
+
aqua: 65535,
|
|
761
|
+
aquamarine: 8388564,
|
|
762
|
+
azure: 15794175,
|
|
763
|
+
beige: 16119260,
|
|
764
|
+
bisque: 16770244,
|
|
765
|
+
black: 0,
|
|
766
|
+
blanchedalmond: 16772045,
|
|
767
|
+
blue: 255,
|
|
768
|
+
blueviolet: 9055202,
|
|
769
|
+
brown: 10824234,
|
|
770
|
+
burlywood: 14596231,
|
|
771
|
+
cadetblue: 6266528,
|
|
772
|
+
chartreuse: 8388352,
|
|
773
|
+
chocolate: 13789470,
|
|
774
|
+
coral: 16744272,
|
|
775
|
+
cornflowerblue: 6591981,
|
|
776
|
+
cornsilk: 16775388,
|
|
777
|
+
crimson: 14423100,
|
|
778
|
+
cyan: 65535,
|
|
779
|
+
darkblue: 139,
|
|
780
|
+
darkcyan: 35723,
|
|
781
|
+
darkgoldenrod: 12092939,
|
|
782
|
+
darkgray: 11119017,
|
|
783
|
+
darkgreen: 25600,
|
|
784
|
+
darkgrey: 11119017,
|
|
785
|
+
darkkhaki: 12433259,
|
|
786
|
+
darkmagenta: 9109643,
|
|
787
|
+
darkolivegreen: 5597999,
|
|
788
|
+
darkorange: 16747520,
|
|
789
|
+
darkorchid: 10040012,
|
|
790
|
+
darkred: 9109504,
|
|
791
|
+
darksalmon: 15308410,
|
|
792
|
+
darkseagreen: 9419919,
|
|
793
|
+
darkslateblue: 4734347,
|
|
794
|
+
darkslategray: 3100495,
|
|
795
|
+
darkslategrey: 3100495,
|
|
796
|
+
darkturquoise: 52945,
|
|
797
|
+
darkviolet: 9699539,
|
|
798
|
+
deeppink: 16716947,
|
|
799
|
+
deepskyblue: 49151,
|
|
800
|
+
dimgray: 6908265,
|
|
801
|
+
dimgrey: 6908265,
|
|
802
|
+
dodgerblue: 2003199,
|
|
803
|
+
firebrick: 11674146,
|
|
804
|
+
floralwhite: 16775920,
|
|
805
|
+
forestgreen: 2263842,
|
|
806
|
+
fuchsia: 16711935,
|
|
807
|
+
gainsboro: 14474460,
|
|
808
|
+
ghostwhite: 16316671,
|
|
809
|
+
gold: 16766720,
|
|
810
|
+
goldenrod: 14329120,
|
|
811
|
+
gray: 8421504,
|
|
812
|
+
green: 32768,
|
|
813
|
+
greenyellow: 11403055,
|
|
814
|
+
grey: 8421504,
|
|
815
|
+
honeydew: 15794160,
|
|
816
|
+
hotpink: 16738740,
|
|
817
|
+
indianred: 13458524,
|
|
818
|
+
indigo: 4915330,
|
|
819
|
+
ivory: 16777200,
|
|
820
|
+
khaki: 15787660,
|
|
821
|
+
lavender: 15132410,
|
|
822
|
+
lavenderblush: 16773365,
|
|
823
|
+
lawngreen: 8190976,
|
|
824
|
+
lemonchiffon: 16775885,
|
|
825
|
+
lightblue: 11393254,
|
|
826
|
+
lightcoral: 15761536,
|
|
827
|
+
lightcyan: 14745599,
|
|
828
|
+
lightgoldenrodyellow: 16448210,
|
|
829
|
+
lightgray: 13882323,
|
|
830
|
+
lightgreen: 9498256,
|
|
831
|
+
lightgrey: 13882323,
|
|
832
|
+
lightpink: 16758465,
|
|
833
|
+
lightsalmon: 16752762,
|
|
834
|
+
lightseagreen: 2142890,
|
|
835
|
+
lightskyblue: 8900346,
|
|
836
|
+
lightslategray: 7833753,
|
|
837
|
+
lightslategrey: 7833753,
|
|
838
|
+
lightsteelblue: 11584734,
|
|
839
|
+
lightyellow: 16777184,
|
|
840
|
+
lime: 65280,
|
|
841
|
+
limegreen: 3329330,
|
|
842
|
+
linen: 16445670,
|
|
843
|
+
magenta: 16711935,
|
|
844
|
+
maroon: 8388608,
|
|
845
|
+
mediumaquamarine: 6737322,
|
|
846
|
+
mediumblue: 205,
|
|
847
|
+
mediumorchid: 12211667,
|
|
848
|
+
mediumpurple: 9662683,
|
|
849
|
+
mediumseagreen: 3978097,
|
|
850
|
+
mediumslateblue: 8087790,
|
|
851
|
+
mediumspringgreen: 64154,
|
|
852
|
+
mediumturquoise: 4772300,
|
|
853
|
+
mediumvioletred: 13047173,
|
|
854
|
+
midnightblue: 1644912,
|
|
855
|
+
mintcream: 16121850,
|
|
856
|
+
mistyrose: 16770273,
|
|
857
|
+
moccasin: 16770229,
|
|
858
|
+
navajowhite: 16768685,
|
|
859
|
+
navy: 128,
|
|
860
|
+
oldlace: 16643558,
|
|
861
|
+
olive: 8421376,
|
|
862
|
+
olivedrab: 7048739,
|
|
863
|
+
orange: 16753920,
|
|
864
|
+
orangered: 16729344,
|
|
865
|
+
orchid: 14315734,
|
|
866
|
+
palegoldenrod: 15657130,
|
|
867
|
+
palegreen: 10025880,
|
|
868
|
+
paleturquoise: 11529966,
|
|
869
|
+
palevioletred: 14381203,
|
|
870
|
+
papayawhip: 16773077,
|
|
871
|
+
peachpuff: 16767673,
|
|
872
|
+
peru: 13468991,
|
|
873
|
+
pink: 16761035,
|
|
874
|
+
plum: 14524637,
|
|
875
|
+
powderblue: 11591910,
|
|
876
|
+
purple: 8388736,
|
|
877
|
+
rebeccapurple: 6697881,
|
|
878
|
+
red: 16711680,
|
|
879
|
+
rosybrown: 12357519,
|
|
880
|
+
royalblue: 4286945,
|
|
881
|
+
saddlebrown: 9127187,
|
|
882
|
+
salmon: 16416882,
|
|
883
|
+
sandybrown: 16032864,
|
|
884
|
+
seagreen: 3050327,
|
|
885
|
+
seashell: 16774638,
|
|
886
|
+
sienna: 10506797,
|
|
887
|
+
silver: 12632256,
|
|
888
|
+
skyblue: 8900331,
|
|
889
|
+
slateblue: 6970061,
|
|
890
|
+
slategray: 7372944,
|
|
891
|
+
slategrey: 7372944,
|
|
892
|
+
snow: 16775930,
|
|
893
|
+
springgreen: 65407,
|
|
894
|
+
steelblue: 4620980,
|
|
895
|
+
tan: 13808780,
|
|
896
|
+
teal: 32896,
|
|
897
|
+
thistle: 14204888,
|
|
898
|
+
tomato: 16737095,
|
|
899
|
+
turquoise: 4251856,
|
|
900
|
+
violet: 15631086,
|
|
901
|
+
wheat: 16113331,
|
|
902
|
+
white: 16777215,
|
|
903
|
+
whitesmoke: 16119285,
|
|
904
|
+
yellow: 16776960,
|
|
905
|
+
yellowgreen: 10145074
|
|
906
|
+
};
|
|
907
|
+
Kt(Jt, k, {
|
|
908
|
+
copy(e) {
|
|
909
|
+
return Object.assign(new this.constructor(), this, e);
|
|
910
|
+
},
|
|
911
|
+
displayable() {
|
|
912
|
+
return this.rgb().displayable();
|
|
913
|
+
},
|
|
914
|
+
hex: on,
|
|
915
|
+
formatHex: on,
|
|
916
|
+
formatHex8: sn,
|
|
917
|
+
formatHsl: cn,
|
|
918
|
+
formatRgb: ln,
|
|
919
|
+
toString: ln
|
|
920
|
+
});
|
|
921
|
+
function on() {
|
|
922
|
+
return this.rgb().formatHex();
|
|
923
|
+
}
|
|
924
|
+
function sn() {
|
|
925
|
+
return this.rgb().formatHex8();
|
|
926
|
+
}
|
|
927
|
+
function cn() {
|
|
928
|
+
return yn(this).formatHsl();
|
|
929
|
+
}
|
|
930
|
+
function ln() {
|
|
931
|
+
return this.rgb().formatRgb();
|
|
932
|
+
}
|
|
933
|
+
function k(e) {
|
|
934
|
+
var t, n;
|
|
935
|
+
return e = (e + "").trim().toLowerCase(), (t = Zt.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? un(t) : n === 3 ? new A(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? dn(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? dn(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = Qt.exec(e)) ? new A(t[1], t[2], t[3], 1) : (t = $t.exec(e)) ? new A(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = en.exec(e)) ? dn(t[1], t[2], t[3], t[4]) : (t = tn.exec(e)) ? dn(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = nn.exec(e)) ? vn(t[1], t[2] / 100, t[3] / 100, 1) : (t = rn.exec(e)) ? vn(t[1], t[2] / 100, t[3] / 100, t[4]) : an.hasOwnProperty(e) ? un(an[e]) : e === "transparent" ? new A(NaN, NaN, NaN, 0) : null;
|
|
936
|
+
}
|
|
937
|
+
function un(e) {
|
|
938
|
+
return new A(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
|
|
939
|
+
}
|
|
940
|
+
function dn(e, t, n, r) {
|
|
941
|
+
return r <= 0 && (e = t = n = NaN), new A(e, t, n, r);
|
|
942
|
+
}
|
|
943
|
+
function fn(e) {
|
|
944
|
+
return e instanceof Jt || (e = k(e)), e ? (e = e.rgb(), new A(e.r, e.g, e.b, e.opacity)) : new A();
|
|
945
|
+
}
|
|
946
|
+
function pn(e, t, n, r) {
|
|
947
|
+
return arguments.length === 1 ? fn(e) : new A(e, t, n, r == null ? 1 : r);
|
|
948
|
+
}
|
|
949
|
+
function A(e, t, n, r) {
|
|
950
|
+
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
|
|
951
|
+
}
|
|
952
|
+
Kt(A, pn, qt(Jt, {
|
|
953
|
+
brighter(e) {
|
|
954
|
+
return e = e == null ? Xt : Math.pow(Xt, e), new A(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
955
|
+
},
|
|
956
|
+
darker(e) {
|
|
957
|
+
return e = e == null ? Yt : Math.pow(Yt, e), new A(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
958
|
+
},
|
|
959
|
+
rgb() {
|
|
960
|
+
return this;
|
|
961
|
+
},
|
|
962
|
+
clamp() {
|
|
963
|
+
return new A(j(this.r), j(this.g), j(this.b), _n(this.opacity));
|
|
964
|
+
},
|
|
965
|
+
displayable() {
|
|
966
|
+
return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
967
|
+
},
|
|
968
|
+
hex: mn,
|
|
969
|
+
formatHex: mn,
|
|
970
|
+
formatHex8: hn,
|
|
971
|
+
formatRgb: gn,
|
|
972
|
+
toString: gn
|
|
973
|
+
}));
|
|
974
|
+
function mn() {
|
|
975
|
+
return `#${M(this.r)}${M(this.g)}${M(this.b)}`;
|
|
976
|
+
}
|
|
977
|
+
function hn() {
|
|
978
|
+
return `#${M(this.r)}${M(this.g)}${M(this.b)}${M((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
979
|
+
}
|
|
980
|
+
function gn() {
|
|
981
|
+
let e = _n(this.opacity);
|
|
982
|
+
return `${e === 1 ? "rgb(" : "rgba("}${j(this.r)}, ${j(this.g)}, ${j(this.b)}${e === 1 ? ")" : `, ${e})`}`;
|
|
983
|
+
}
|
|
984
|
+
function _n(e) {
|
|
985
|
+
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
|
|
986
|
+
}
|
|
987
|
+
function j(e) {
|
|
988
|
+
return Math.max(0, Math.min(255, Math.round(e) || 0));
|
|
989
|
+
}
|
|
990
|
+
function M(e) {
|
|
991
|
+
return e = j(e), (e < 16 ? "0" : "") + e.toString(16);
|
|
992
|
+
}
|
|
993
|
+
function vn(e, t, n, r) {
|
|
994
|
+
return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new N(e, t, n, r);
|
|
995
|
+
}
|
|
996
|
+
function yn(e) {
|
|
997
|
+
if (e instanceof N) return new N(e.h, e.s, e.l, e.opacity);
|
|
998
|
+
if (e instanceof Jt || (e = k(e)), !e) return new N();
|
|
999
|
+
if (e instanceof N) return e;
|
|
1000
|
+
e = e.rgb();
|
|
1001
|
+
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
|
|
1002
|
+
return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new N(o, s, c, e.opacity);
|
|
1003
|
+
}
|
|
1004
|
+
function bn(e, t, n, r) {
|
|
1005
|
+
return arguments.length === 1 ? yn(e) : new N(e, t, n, r == null ? 1 : r);
|
|
1006
|
+
}
|
|
1007
|
+
function N(e, t, n, r) {
|
|
1008
|
+
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
|
|
1009
|
+
}
|
|
1010
|
+
Kt(N, bn, qt(Jt, {
|
|
1011
|
+
brighter(e) {
|
|
1012
|
+
return e = e == null ? Xt : Math.pow(Xt, e), new N(this.h, this.s, this.l * e, this.opacity);
|
|
1013
|
+
},
|
|
1014
|
+
darker(e) {
|
|
1015
|
+
return e = e == null ? Yt : Math.pow(Yt, e), new N(this.h, this.s, this.l * e, this.opacity);
|
|
1016
|
+
},
|
|
1017
|
+
rgb() {
|
|
1018
|
+
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
|
|
1019
|
+
return new A(Cn(e >= 240 ? e - 240 : e + 120, i, r), Cn(e, i, r), Cn(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
|
|
1020
|
+
},
|
|
1021
|
+
clamp() {
|
|
1022
|
+
return new N(xn(this.h), Sn(this.s), Sn(this.l), _n(this.opacity));
|
|
1023
|
+
},
|
|
1024
|
+
displayable() {
|
|
1025
|
+
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
1026
|
+
},
|
|
1027
|
+
formatHsl() {
|
|
1028
|
+
let e = _n(this.opacity);
|
|
1029
|
+
return `${e === 1 ? "hsl(" : "hsla("}${xn(this.h)}, ${Sn(this.s) * 100}%, ${Sn(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
|
|
1030
|
+
}
|
|
1031
|
+
}));
|
|
1032
|
+
function xn(e) {
|
|
1033
|
+
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
|
|
1034
|
+
}
|
|
1035
|
+
function Sn(e) {
|
|
1036
|
+
return Math.max(0, Math.min(1, e || 0));
|
|
1037
|
+
}
|
|
1038
|
+
function Cn(e, t, n) {
|
|
1039
|
+
return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
|
|
1040
|
+
}
|
|
1041
|
+
//#endregion
|
|
1042
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@2.0.1/node_modules/d3-interpolate/src/constant.js
|
|
1043
|
+
var wn = (e) => () => e;
|
|
1044
|
+
//#endregion
|
|
1045
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@2.0.1/node_modules/d3-interpolate/src/color.js
|
|
1046
|
+
function Tn(e, t) {
|
|
1047
|
+
return function(n) {
|
|
1048
|
+
return e + n * t;
|
|
1049
|
+
};
|
|
1050
|
+
}
|
|
1051
|
+
function En(e, t, n) {
|
|
1052
|
+
return e = Math.pow(e, n), t = Math.pow(t, n) - e, n = 1 / n, function(r) {
|
|
1053
|
+
return Math.pow(e + r * t, n);
|
|
1054
|
+
};
|
|
1055
|
+
}
|
|
1056
|
+
function Dn(e) {
|
|
1057
|
+
return (e = +e) == 1 ? On : function(t, n) {
|
|
1058
|
+
return n - t ? En(t, n, e) : wn(isNaN(t) ? n : t);
|
|
1059
|
+
};
|
|
1060
|
+
}
|
|
1061
|
+
function On(e, t) {
|
|
1062
|
+
var n = t - e;
|
|
1063
|
+
return n ? Tn(e, n) : wn(isNaN(e) ? t : e);
|
|
1064
|
+
}
|
|
1065
|
+
//#endregion
|
|
1066
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@2.0.1/node_modules/d3-interpolate/src/rgb.js
|
|
1067
|
+
var kn = (function e(t) {
|
|
1068
|
+
var n = Dn(t);
|
|
1069
|
+
function r(e, t) {
|
|
1070
|
+
var r = n((e = pn(e)).r, (t = pn(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = On(e.opacity, t.opacity);
|
|
1071
|
+
return function(t) {
|
|
1072
|
+
return e.r = r(t), e.g = i(t), e.b = a(t), e.opacity = o(t), e + "";
|
|
1073
|
+
};
|
|
1074
|
+
}
|
|
1075
|
+
return r.gamma = e, r;
|
|
1076
|
+
})(1);
|
|
1077
|
+
//#endregion
|
|
1078
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@2.0.1/node_modules/d3-interpolate/src/number.js
|
|
1079
|
+
function P(e, t) {
|
|
1080
|
+
return e = +e, t = +t, function(n) {
|
|
1081
|
+
return e * (1 - n) + t * n;
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
//#endregion
|
|
1085
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@2.0.1/node_modules/d3-interpolate/src/string.js
|
|
1086
|
+
var An = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, jn = new RegExp(An.source, "g");
|
|
1087
|
+
function Mn(e) {
|
|
1088
|
+
return function() {
|
|
1089
|
+
return e;
|
|
1090
|
+
};
|
|
1091
|
+
}
|
|
1092
|
+
function Nn(e) {
|
|
1093
|
+
return function(t) {
|
|
1094
|
+
return e(t) + "";
|
|
1095
|
+
};
|
|
1096
|
+
}
|
|
1097
|
+
function Pn(e, t) {
|
|
1098
|
+
var n = An.lastIndex = jn.lastIndex = 0, r, i, a, o = -1, s = [], c = [];
|
|
1099
|
+
for (e += "", t += ""; (r = An.exec(e)) && (i = jn.exec(t));) (a = i.index) > n && (a = t.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({
|
|
1100
|
+
i: o,
|
|
1101
|
+
x: P(r, i)
|
|
1102
|
+
})), n = jn.lastIndex;
|
|
1103
|
+
return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? Nn(c[0].x) : Mn(t) : (t = c.length, function(e) {
|
|
1104
|
+
for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);
|
|
1105
|
+
return s.join("");
|
|
1106
|
+
});
|
|
1107
|
+
}
|
|
1108
|
+
//#endregion
|
|
1109
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@2.0.1/node_modules/d3-interpolate/src/transform/decompose.js
|
|
1110
|
+
var Fn = 180 / Math.PI, In = {
|
|
1111
|
+
translateX: 0,
|
|
1112
|
+
translateY: 0,
|
|
1113
|
+
rotate: 0,
|
|
1114
|
+
skewX: 0,
|
|
1115
|
+
scaleX: 1,
|
|
1116
|
+
scaleY: 1
|
|
1117
|
+
};
|
|
1118
|
+
function Ln(e, t, n, r, i, a) {
|
|
1119
|
+
var o, s, c;
|
|
1120
|
+
return (o = Math.sqrt(e * e + t * t)) && (e /= o, t /= o), (c = e * n + t * r) && (n -= e * c, r -= t * c), (s = Math.sqrt(n * n + r * r)) && (n /= s, r /= s, c /= s), e * r < t * n && (e = -e, t = -t, c = -c, o = -o), {
|
|
1121
|
+
translateX: i,
|
|
1122
|
+
translateY: a,
|
|
1123
|
+
rotate: Math.atan2(t, e) * Fn,
|
|
1124
|
+
skewX: Math.atan(c) * Fn,
|
|
1125
|
+
scaleX: o,
|
|
1126
|
+
scaleY: s
|
|
1127
|
+
};
|
|
1128
|
+
}
|
|
1129
|
+
//#endregion
|
|
1130
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@2.0.1/node_modules/d3-interpolate/src/transform/parse.js
|
|
1131
|
+
var Rn;
|
|
1132
|
+
function zn(e) {
|
|
1133
|
+
let t = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(e + "");
|
|
1134
|
+
return t.isIdentity ? In : Ln(t.a, t.b, t.c, t.d, t.e, t.f);
|
|
1135
|
+
}
|
|
1136
|
+
function Bn(e) {
|
|
1137
|
+
return e == null || (Rn || (Rn = document.createElementNS("http://www.w3.org/2000/svg", "g")), Rn.setAttribute("transform", e), !(e = Rn.transform.baseVal.consolidate())) ? In : (e = e.matrix, Ln(e.a, e.b, e.c, e.d, e.e, e.f));
|
|
1138
|
+
}
|
|
1139
|
+
//#endregion
|
|
1140
|
+
//#region ../../node_modules/.pnpm/d3-interpolate@2.0.1/node_modules/d3-interpolate/src/transform/index.js
|
|
1141
|
+
function Vn(e, t, n, r) {
|
|
1142
|
+
function i(e) {
|
|
1143
|
+
return e.length ? e.pop() + " " : "";
|
|
1144
|
+
}
|
|
1145
|
+
function a(e, r, i, a, o, s) {
|
|
1146
|
+
if (e !== i || r !== a) {
|
|
1147
|
+
var c = o.push("translate(", null, t, null, n);
|
|
1148
|
+
s.push({
|
|
1149
|
+
i: c - 4,
|
|
1150
|
+
x: P(e, i)
|
|
1151
|
+
}, {
|
|
1152
|
+
i: c - 2,
|
|
1153
|
+
x: P(r, a)
|
|
1154
|
+
});
|
|
1155
|
+
} else (i || a) && o.push("translate(" + i + t + a + n);
|
|
1156
|
+
}
|
|
1157
|
+
function o(e, t, n, a) {
|
|
1158
|
+
e === t ? t && n.push(i(n) + "rotate(" + t + r) : (e - t > 180 ? t += 360 : t - e > 180 && (e += 360), a.push({
|
|
1159
|
+
i: n.push(i(n) + "rotate(", null, r) - 2,
|
|
1160
|
+
x: P(e, t)
|
|
1161
|
+
}));
|
|
1162
|
+
}
|
|
1163
|
+
function s(e, t, n, a) {
|
|
1164
|
+
e === t ? t && n.push(i(n) + "skewX(" + t + r) : a.push({
|
|
1165
|
+
i: n.push(i(n) + "skewX(", null, r) - 2,
|
|
1166
|
+
x: P(e, t)
|
|
1167
|
+
});
|
|
1168
|
+
}
|
|
1169
|
+
function c(e, t, n, r, a, o) {
|
|
1170
|
+
if (e !== n || t !== r) {
|
|
1171
|
+
var s = a.push(i(a) + "scale(", null, ",", null, ")");
|
|
1172
|
+
o.push({
|
|
1173
|
+
i: s - 4,
|
|
1174
|
+
x: P(e, n)
|
|
1175
|
+
}, {
|
|
1176
|
+
i: s - 2,
|
|
1177
|
+
x: P(t, r)
|
|
1178
|
+
});
|
|
1179
|
+
} else (n !== 1 || r !== 1) && a.push(i(a) + "scale(" + n + "," + r + ")");
|
|
1180
|
+
}
|
|
1181
|
+
return function(t, n) {
|
|
1182
|
+
var r = [], i = [];
|
|
1183
|
+
return t = e(t), n = e(n), a(t.translateX, t.translateY, n.translateX, n.translateY, r, i), o(t.rotate, n.rotate, r, i), s(t.skewX, n.skewX, r, i), c(t.scaleX, t.scaleY, n.scaleX, n.scaleY, r, i), t = n = null, function(e) {
|
|
1184
|
+
for (var t = -1, n = i.length, a; ++t < n;) r[(a = i[t]).i] = a.x(e);
|
|
1185
|
+
return r.join("");
|
|
1186
|
+
};
|
|
1187
|
+
};
|
|
1188
|
+
}
|
|
1189
|
+
var Hn = Vn(zn, "px, ", "px)", "deg)"), Un = Vn(Bn, ", ", ")", ")"), Wn = {
|
|
1190
|
+
svg: "http://www.w3.org/2000/svg",
|
|
1191
|
+
xhtml: "http://www.w3.org/1999/xhtml",
|
|
1192
|
+
xlink: "http://www.w3.org/1999/xlink",
|
|
1193
|
+
xml: "http://www.w3.org/XML/1998/namespace",
|
|
1194
|
+
xmlns: "http://www.w3.org/2000/xmlns/"
|
|
1195
|
+
};
|
|
1196
|
+
//#endregion
|
|
1197
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespace.js
|
|
1198
|
+
function Gn(e) {
|
|
1199
|
+
var t = e += "", n = t.indexOf(":");
|
|
1200
|
+
return n >= 0 && (t = e.slice(0, n)) !== "xmlns" && (e = e.slice(n + 1)), Wn.hasOwnProperty(t) ? {
|
|
1201
|
+
space: Wn[t],
|
|
1202
|
+
local: e
|
|
1203
|
+
} : e;
|
|
1204
|
+
}
|
|
1205
|
+
//#endregion
|
|
1206
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/creator.js
|
|
1207
|
+
function Kn(e) {
|
|
1208
|
+
return function() {
|
|
1209
|
+
var t = this.ownerDocument, n = this.namespaceURI;
|
|
1210
|
+
return n === "http://www.w3.org/1999/xhtml" && t.documentElement.namespaceURI === "http://www.w3.org/1999/xhtml" ? t.createElement(e) : t.createElementNS(n, e);
|
|
1211
|
+
};
|
|
1212
|
+
}
|
|
1213
|
+
function qn(e) {
|
|
1214
|
+
return function() {
|
|
1215
|
+
return this.ownerDocument.createElementNS(e.space, e.local);
|
|
1216
|
+
};
|
|
1217
|
+
}
|
|
1218
|
+
function Jn(e) {
|
|
1219
|
+
var t = Gn(e);
|
|
1220
|
+
return (t.local ? qn : Kn)(t);
|
|
1221
|
+
}
|
|
1222
|
+
//#endregion
|
|
1223
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selector.js
|
|
1224
|
+
function Yn() {}
|
|
1225
|
+
function Xn(e) {
|
|
1226
|
+
return e == null ? Yn : function() {
|
|
1227
|
+
return this.querySelector(e);
|
|
1228
|
+
};
|
|
1229
|
+
}
|
|
1230
|
+
//#endregion
|
|
1231
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/select.js
|
|
1232
|
+
function Zn(e) {
|
|
1233
|
+
typeof e != "function" && (e = Xn(e));
|
|
1234
|
+
for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = Array(o), c, l, u = 0; u < o; ++u) (c = a[u]) && (l = e.call(c, c.__data__, u, a)) && ("__data__" in c && (l.__data__ = c.__data__), s[u] = l);
|
|
1235
|
+
return new I(r, this._parents);
|
|
1236
|
+
}
|
|
1237
|
+
//#endregion
|
|
1238
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/array.js
|
|
1239
|
+
function Qn(e) {
|
|
1240
|
+
return e == null ? [] : Array.isArray(e) ? e : Array.from(e);
|
|
1241
|
+
}
|
|
1242
|
+
//#endregion
|
|
1243
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selectorAll.js
|
|
1244
|
+
function $n() {
|
|
1245
|
+
return [];
|
|
1246
|
+
}
|
|
1247
|
+
function er(e) {
|
|
1248
|
+
return e == null ? $n : function() {
|
|
1249
|
+
return this.querySelectorAll(e);
|
|
1250
|
+
};
|
|
1251
|
+
}
|
|
1252
|
+
//#endregion
|
|
1253
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectAll.js
|
|
1254
|
+
function tr(e) {
|
|
1255
|
+
return function() {
|
|
1256
|
+
return Qn(e.apply(this, arguments));
|
|
1257
|
+
};
|
|
1258
|
+
}
|
|
1259
|
+
function nr(e) {
|
|
1260
|
+
e = typeof e == "function" ? tr(e) : er(e);
|
|
1261
|
+
for (var t = this._groups, n = t.length, r = [], i = [], a = 0; a < n; ++a) for (var o = t[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) && (r.push(e.call(c, c.__data__, l, o)), i.push(c));
|
|
1262
|
+
return new I(r, i);
|
|
1263
|
+
}
|
|
1264
|
+
//#endregion
|
|
1265
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/matcher.js
|
|
1266
|
+
function rr(e) {
|
|
1267
|
+
return function() {
|
|
1268
|
+
return this.matches(e);
|
|
1269
|
+
};
|
|
1270
|
+
}
|
|
1271
|
+
function ir(e) {
|
|
1272
|
+
return function(t) {
|
|
1273
|
+
return t.matches(e);
|
|
1274
|
+
};
|
|
1275
|
+
}
|
|
1276
|
+
//#endregion
|
|
1277
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChild.js
|
|
1278
|
+
var ar = Array.prototype.find;
|
|
1279
|
+
function or(e) {
|
|
1280
|
+
return function() {
|
|
1281
|
+
return ar.call(this.children, e);
|
|
1282
|
+
};
|
|
1283
|
+
}
|
|
1284
|
+
function sr() {
|
|
1285
|
+
return this.firstElementChild;
|
|
1286
|
+
}
|
|
1287
|
+
function cr(e) {
|
|
1288
|
+
return this.select(e == null ? sr : or(typeof e == "function" ? e : ir(e)));
|
|
1289
|
+
}
|
|
1290
|
+
//#endregion
|
|
1291
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChildren.js
|
|
1292
|
+
var lr = Array.prototype.filter;
|
|
1293
|
+
function ur() {
|
|
1294
|
+
return Array.from(this.children);
|
|
1295
|
+
}
|
|
1296
|
+
function dr(e) {
|
|
1297
|
+
return function() {
|
|
1298
|
+
return lr.call(this.children, e);
|
|
1299
|
+
};
|
|
1300
|
+
}
|
|
1301
|
+
function fr(e) {
|
|
1302
|
+
return this.selectAll(e == null ? ur : dr(typeof e == "function" ? e : ir(e)));
|
|
1303
|
+
}
|
|
1304
|
+
//#endregion
|
|
1305
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/filter.js
|
|
1306
|
+
function pr(e) {
|
|
1307
|
+
typeof e != "function" && (e = rr(e));
|
|
1308
|
+
for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = [], c, l = 0; l < o; ++l) (c = a[l]) && e.call(c, c.__data__, l, a) && s.push(c);
|
|
1309
|
+
return new I(r, this._parents);
|
|
1310
|
+
}
|
|
1311
|
+
//#endregion
|
|
1312
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sparse.js
|
|
1313
|
+
function mr(e) {
|
|
1314
|
+
return Array(e.length);
|
|
1315
|
+
}
|
|
1316
|
+
//#endregion
|
|
1317
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/enter.js
|
|
1318
|
+
function hr() {
|
|
1319
|
+
return new I(this._enter || this._groups.map(mr), this._parents);
|
|
1320
|
+
}
|
|
1321
|
+
function gr(e, t) {
|
|
1322
|
+
this.ownerDocument = e.ownerDocument, this.namespaceURI = e.namespaceURI, this._next = null, this._parent = e, this.__data__ = t;
|
|
1323
|
+
}
|
|
1324
|
+
gr.prototype = {
|
|
1325
|
+
constructor: gr,
|
|
1326
|
+
appendChild: function(e) {
|
|
1327
|
+
return this._parent.insertBefore(e, this._next);
|
|
1328
|
+
},
|
|
1329
|
+
insertBefore: function(e, t) {
|
|
1330
|
+
return this._parent.insertBefore(e, t);
|
|
1331
|
+
},
|
|
1332
|
+
querySelector: function(e) {
|
|
1333
|
+
return this._parent.querySelector(e);
|
|
1334
|
+
},
|
|
1335
|
+
querySelectorAll: function(e) {
|
|
1336
|
+
return this._parent.querySelectorAll(e);
|
|
1337
|
+
}
|
|
1338
|
+
};
|
|
1339
|
+
//#endregion
|
|
1340
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/constant.js
|
|
1341
|
+
function _r(e) {
|
|
1342
|
+
return function() {
|
|
1343
|
+
return e;
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
//#endregion
|
|
1347
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/data.js
|
|
1348
|
+
function vr(e, t, n, r, i, a) {
|
|
1349
|
+
for (var o = 0, s, c = t.length, l = a.length; o < l; ++o) (s = t[o]) ? (s.__data__ = a[o], r[o] = s) : n[o] = new gr(e, a[o]);
|
|
1350
|
+
for (; o < c; ++o) (s = t[o]) && (i[o] = s);
|
|
1351
|
+
}
|
|
1352
|
+
function yr(e, t, n, r, i, a, o) {
|
|
1353
|
+
var s, c, l = /* @__PURE__ */ new Map(), u = t.length, d = a.length, f = Array(u), p;
|
|
1354
|
+
for (s = 0; s < u; ++s) (c = t[s]) && (f[s] = p = o.call(c, c.__data__, s, t) + "", l.has(p) ? i[s] = c : l.set(p, c));
|
|
1355
|
+
for (s = 0; s < d; ++s) p = o.call(e, a[s], s, a) + "", (c = l.get(p)) ? (r[s] = c, c.__data__ = a[s], l.delete(p)) : n[s] = new gr(e, a[s]);
|
|
1356
|
+
for (s = 0; s < u; ++s) (c = t[s]) && l.get(f[s]) === c && (i[s] = c);
|
|
1357
|
+
}
|
|
1358
|
+
function br(e) {
|
|
1359
|
+
return e.__data__;
|
|
1360
|
+
}
|
|
1361
|
+
function xr(e, t) {
|
|
1362
|
+
if (!arguments.length) return Array.from(this, br);
|
|
1363
|
+
var n = t ? yr : vr, r = this._parents, i = this._groups;
|
|
1364
|
+
typeof e != "function" && (e = _r(e));
|
|
1365
|
+
for (var a = i.length, o = Array(a), s = Array(a), c = Array(a), l = 0; l < a; ++l) {
|
|
1366
|
+
var u = r[l], d = i[l], f = d.length, p = Sr(e.call(u, u && u.__data__, l, r)), m = p.length, h = s[l] = Array(m), g = o[l] = Array(m);
|
|
1367
|
+
n(u, d, h, g, c[l] = Array(f), p, t);
|
|
1368
|
+
for (var _ = 0, v = 0, y, b; _ < m; ++_) if (y = h[_]) {
|
|
1369
|
+
for (_ >= v && (v = _ + 1); !(b = g[v]) && ++v < m;);
|
|
1370
|
+
y._next = b || null;
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
return o = new I(o, r), o._enter = s, o._exit = c, o;
|
|
1374
|
+
}
|
|
1375
|
+
function Sr(e) {
|
|
1376
|
+
return typeof e == "object" && "length" in e ? e : Array.from(e);
|
|
1377
|
+
}
|
|
1378
|
+
//#endregion
|
|
1379
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/exit.js
|
|
1380
|
+
function Cr() {
|
|
1381
|
+
return new I(this._exit || this._groups.map(mr), this._parents);
|
|
1382
|
+
}
|
|
1383
|
+
//#endregion
|
|
1384
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/join.js
|
|
1385
|
+
function wr(e, t, n) {
|
|
1386
|
+
var r = this.enter(), i = this, a = this.exit();
|
|
1387
|
+
return typeof e == "function" ? (r = e(r), r && (r = r.selection())) : r = r.append(e + ""), t != null && (i = t(i), i && (i = i.selection())), n == null ? a.remove() : n(a), r && i ? r.merge(i).order() : i;
|
|
1388
|
+
}
|
|
1389
|
+
//#endregion
|
|
1390
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/merge.js
|
|
1391
|
+
function Tr(e) {
|
|
1392
|
+
for (var t = e.selection ? e.selection() : e, n = this._groups, r = t._groups, i = n.length, a = r.length, o = Math.min(i, a), s = Array(i), c = 0; c < o; ++c) for (var l = n[c], u = r[c], d = l.length, f = s[c] = Array(d), p, m = 0; m < d; ++m) (p = l[m] || u[m]) && (f[m] = p);
|
|
1393
|
+
for (; c < i; ++c) s[c] = n[c];
|
|
1394
|
+
return new I(s, this._parents);
|
|
1395
|
+
}
|
|
1396
|
+
//#endregion
|
|
1397
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/order.js
|
|
1398
|
+
function Er() {
|
|
1399
|
+
for (var e = this._groups, t = -1, n = e.length; ++t < n;) for (var r = e[t], i = r.length - 1, a = r[i], o; --i >= 0;) (o = r[i]) && (a && o.compareDocumentPosition(a) ^ 4 && a.parentNode.insertBefore(o, a), a = o);
|
|
1400
|
+
return this;
|
|
1401
|
+
}
|
|
1402
|
+
//#endregion
|
|
1403
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sort.js
|
|
1404
|
+
function Dr(e) {
|
|
1405
|
+
e || (e = Or);
|
|
1406
|
+
function t(t, n) {
|
|
1407
|
+
return t && n ? e(t.__data__, n.__data__) : !t - !n;
|
|
1408
|
+
}
|
|
1409
|
+
for (var n = this._groups, r = n.length, i = Array(r), a = 0; a < r; ++a) {
|
|
1410
|
+
for (var o = n[a], s = o.length, c = i[a] = Array(s), l, u = 0; u < s; ++u) (l = o[u]) && (c[u] = l);
|
|
1411
|
+
c.sort(t);
|
|
1412
|
+
}
|
|
1413
|
+
return new I(i, this._parents).order();
|
|
1414
|
+
}
|
|
1415
|
+
function Or(e, t) {
|
|
1416
|
+
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
|
|
1417
|
+
}
|
|
1418
|
+
//#endregion
|
|
1419
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/call.js
|
|
1420
|
+
function kr() {
|
|
1421
|
+
var e = arguments[0];
|
|
1422
|
+
return arguments[0] = this, e.apply(null, arguments), this;
|
|
1423
|
+
}
|
|
1424
|
+
//#endregion
|
|
1425
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/nodes.js
|
|
1426
|
+
function Ar() {
|
|
1427
|
+
return Array.from(this);
|
|
1428
|
+
}
|
|
1429
|
+
//#endregion
|
|
1430
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/node.js
|
|
1431
|
+
function jr() {
|
|
1432
|
+
for (var e = this._groups, t = 0, n = e.length; t < n; ++t) for (var r = e[t], i = 0, a = r.length; i < a; ++i) {
|
|
1433
|
+
var o = r[i];
|
|
1434
|
+
if (o) return o;
|
|
1435
|
+
}
|
|
1436
|
+
return null;
|
|
1437
|
+
}
|
|
1438
|
+
//#endregion
|
|
1439
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/size.js
|
|
1440
|
+
function Mr() {
|
|
1441
|
+
let e = 0;
|
|
1442
|
+
for (let t of this) ++e;
|
|
1443
|
+
return e;
|
|
1444
|
+
}
|
|
1445
|
+
//#endregion
|
|
1446
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/empty.js
|
|
1447
|
+
function Nr() {
|
|
1448
|
+
return !this.node();
|
|
1449
|
+
}
|
|
1450
|
+
//#endregion
|
|
1451
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/each.js
|
|
1452
|
+
function Pr(e) {
|
|
1453
|
+
for (var t = this._groups, n = 0, r = t.length; n < r; ++n) for (var i = t[n], a = 0, o = i.length, s; a < o; ++a) (s = i[a]) && e.call(s, s.__data__, a, i);
|
|
1454
|
+
return this;
|
|
1455
|
+
}
|
|
1456
|
+
//#endregion
|
|
1457
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/attr.js
|
|
1458
|
+
function Fr(e) {
|
|
1459
|
+
return function() {
|
|
1460
|
+
this.removeAttribute(e);
|
|
1461
|
+
};
|
|
1462
|
+
}
|
|
1463
|
+
function Ir(e) {
|
|
1464
|
+
return function() {
|
|
1465
|
+
this.removeAttributeNS(e.space, e.local);
|
|
1466
|
+
};
|
|
1467
|
+
}
|
|
1468
|
+
function Lr(e, t) {
|
|
1469
|
+
return function() {
|
|
1470
|
+
this.setAttribute(e, t);
|
|
1471
|
+
};
|
|
1472
|
+
}
|
|
1473
|
+
function Rr(e, t) {
|
|
1474
|
+
return function() {
|
|
1475
|
+
this.setAttributeNS(e.space, e.local, t);
|
|
1476
|
+
};
|
|
1477
|
+
}
|
|
1478
|
+
function zr(e, t) {
|
|
1479
|
+
return function() {
|
|
1480
|
+
var n = t.apply(this, arguments);
|
|
1481
|
+
n == null ? this.removeAttribute(e) : this.setAttribute(e, n);
|
|
1482
|
+
};
|
|
1483
|
+
}
|
|
1484
|
+
function Br(e, t) {
|
|
1485
|
+
return function() {
|
|
1486
|
+
var n = t.apply(this, arguments);
|
|
1487
|
+
n == null ? this.removeAttributeNS(e.space, e.local) : this.setAttributeNS(e.space, e.local, n);
|
|
1488
|
+
};
|
|
1489
|
+
}
|
|
1490
|
+
function Vr(e, t) {
|
|
1491
|
+
var n = Gn(e);
|
|
1492
|
+
if (arguments.length < 2) {
|
|
1493
|
+
var r = this.node();
|
|
1494
|
+
return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n);
|
|
1495
|
+
}
|
|
1496
|
+
return this.each((t == null ? n.local ? Ir : Fr : typeof t == "function" ? n.local ? Br : zr : n.local ? Rr : Lr)(n, t));
|
|
1497
|
+
}
|
|
1498
|
+
//#endregion
|
|
1499
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/window.js
|
|
1500
|
+
function Hr(e) {
|
|
1501
|
+
return e.ownerDocument && e.ownerDocument.defaultView || e.document && e || e.defaultView;
|
|
1502
|
+
}
|
|
1503
|
+
//#endregion
|
|
1504
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/style.js
|
|
1505
|
+
function Ur(e) {
|
|
1506
|
+
return function() {
|
|
1507
|
+
this.style.removeProperty(e);
|
|
1508
|
+
};
|
|
1509
|
+
}
|
|
1510
|
+
function Wr(e, t, n) {
|
|
1511
|
+
return function() {
|
|
1512
|
+
this.style.setProperty(e, t, n);
|
|
1513
|
+
};
|
|
1514
|
+
}
|
|
1515
|
+
function Gr(e, t, n) {
|
|
1516
|
+
return function() {
|
|
1517
|
+
var r = t.apply(this, arguments);
|
|
1518
|
+
r == null ? this.style.removeProperty(e) : this.style.setProperty(e, r, n);
|
|
1519
|
+
};
|
|
1520
|
+
}
|
|
1521
|
+
function Kr(e, t, n) {
|
|
1522
|
+
return arguments.length > 1 ? this.each((t == null ? Ur : typeof t == "function" ? Gr : Wr)(e, t, n == null ? "" : n)) : F(this.node(), e);
|
|
1523
|
+
}
|
|
1524
|
+
function F(e, t) {
|
|
1525
|
+
return e.style.getPropertyValue(t) || Hr(e).getComputedStyle(e, null).getPropertyValue(t);
|
|
1526
|
+
}
|
|
1527
|
+
//#endregion
|
|
1528
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/property.js
|
|
1529
|
+
function qr(e) {
|
|
1530
|
+
return function() {
|
|
1531
|
+
delete this[e];
|
|
1532
|
+
};
|
|
1533
|
+
}
|
|
1534
|
+
function Jr(e, t) {
|
|
1535
|
+
return function() {
|
|
1536
|
+
this[e] = t;
|
|
1537
|
+
};
|
|
1538
|
+
}
|
|
1539
|
+
function Yr(e, t) {
|
|
1540
|
+
return function() {
|
|
1541
|
+
var n = t.apply(this, arguments);
|
|
1542
|
+
n == null ? delete this[e] : this[e] = n;
|
|
1543
|
+
};
|
|
1544
|
+
}
|
|
1545
|
+
function Xr(e, t) {
|
|
1546
|
+
return arguments.length > 1 ? this.each((t == null ? qr : typeof t == "function" ? Yr : Jr)(e, t)) : this.node()[e];
|
|
1547
|
+
}
|
|
1548
|
+
//#endregion
|
|
1549
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/classed.js
|
|
1550
|
+
function Zr(e) {
|
|
1551
|
+
return e.trim().split(/^|\s+/);
|
|
1552
|
+
}
|
|
1553
|
+
function Qr(e) {
|
|
1554
|
+
return e.classList || new $r(e);
|
|
1555
|
+
}
|
|
1556
|
+
function $r(e) {
|
|
1557
|
+
this._node = e, this._names = Zr(e.getAttribute("class") || "");
|
|
1558
|
+
}
|
|
1559
|
+
$r.prototype = {
|
|
1560
|
+
add: function(e) {
|
|
1561
|
+
this._names.indexOf(e) < 0 && (this._names.push(e), this._node.setAttribute("class", this._names.join(" ")));
|
|
1562
|
+
},
|
|
1563
|
+
remove: function(e) {
|
|
1564
|
+
var t = this._names.indexOf(e);
|
|
1565
|
+
t >= 0 && (this._names.splice(t, 1), this._node.setAttribute("class", this._names.join(" ")));
|
|
1566
|
+
},
|
|
1567
|
+
contains: function(e) {
|
|
1568
|
+
return this._names.indexOf(e) >= 0;
|
|
1569
|
+
}
|
|
1570
|
+
};
|
|
1571
|
+
function ei(e, t) {
|
|
1572
|
+
for (var n = Qr(e), r = -1, i = t.length; ++r < i;) n.add(t[r]);
|
|
1573
|
+
}
|
|
1574
|
+
function ti(e, t) {
|
|
1575
|
+
for (var n = Qr(e), r = -1, i = t.length; ++r < i;) n.remove(t[r]);
|
|
1576
|
+
}
|
|
1577
|
+
function ni(e) {
|
|
1578
|
+
return function() {
|
|
1579
|
+
ei(this, e);
|
|
1580
|
+
};
|
|
1581
|
+
}
|
|
1582
|
+
function ri(e) {
|
|
1583
|
+
return function() {
|
|
1584
|
+
ti(this, e);
|
|
1585
|
+
};
|
|
1586
|
+
}
|
|
1587
|
+
function ii(e, t) {
|
|
1588
|
+
return function() {
|
|
1589
|
+
(t.apply(this, arguments) ? ei : ti)(this, e);
|
|
1590
|
+
};
|
|
1591
|
+
}
|
|
1592
|
+
function ai(e, t) {
|
|
1593
|
+
var n = Zr(e + "");
|
|
1594
|
+
if (arguments.length < 2) {
|
|
1595
|
+
for (var r = Qr(this.node()), i = -1, a = n.length; ++i < a;) if (!r.contains(n[i])) return !1;
|
|
1596
|
+
return !0;
|
|
1597
|
+
}
|
|
1598
|
+
return this.each((typeof t == "function" ? ii : t ? ni : ri)(n, t));
|
|
1599
|
+
}
|
|
1600
|
+
//#endregion
|
|
1601
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/text.js
|
|
1602
|
+
function oi() {
|
|
1603
|
+
this.textContent = "";
|
|
1604
|
+
}
|
|
1605
|
+
function si(e) {
|
|
1606
|
+
return function() {
|
|
1607
|
+
this.textContent = e;
|
|
1608
|
+
};
|
|
1609
|
+
}
|
|
1610
|
+
function ci(e) {
|
|
1611
|
+
return function() {
|
|
1612
|
+
var t = e.apply(this, arguments);
|
|
1613
|
+
this.textContent = t == null ? "" : t;
|
|
1614
|
+
};
|
|
1615
|
+
}
|
|
1616
|
+
function li(e) {
|
|
1617
|
+
return arguments.length ? this.each(e == null ? oi : (typeof e == "function" ? ci : si)(e)) : this.node().textContent;
|
|
1618
|
+
}
|
|
1619
|
+
//#endregion
|
|
1620
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/html.js
|
|
1621
|
+
function ui() {
|
|
1622
|
+
this.innerHTML = "";
|
|
1623
|
+
}
|
|
1624
|
+
function di(e) {
|
|
1625
|
+
return function() {
|
|
1626
|
+
this.innerHTML = e;
|
|
1627
|
+
};
|
|
1628
|
+
}
|
|
1629
|
+
function fi(e) {
|
|
1630
|
+
return function() {
|
|
1631
|
+
var t = e.apply(this, arguments);
|
|
1632
|
+
this.innerHTML = t == null ? "" : t;
|
|
1633
|
+
};
|
|
1634
|
+
}
|
|
1635
|
+
function pi(e) {
|
|
1636
|
+
return arguments.length ? this.each(e == null ? ui : (typeof e == "function" ? fi : di)(e)) : this.node().innerHTML;
|
|
1637
|
+
}
|
|
1638
|
+
//#endregion
|
|
1639
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/raise.js
|
|
1640
|
+
function mi() {
|
|
1641
|
+
this.nextSibling && this.parentNode.appendChild(this);
|
|
1642
|
+
}
|
|
1643
|
+
function hi() {
|
|
1644
|
+
return this.each(mi);
|
|
1645
|
+
}
|
|
1646
|
+
//#endregion
|
|
1647
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/lower.js
|
|
1648
|
+
function gi() {
|
|
1649
|
+
this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
|
|
1650
|
+
}
|
|
1651
|
+
function _i() {
|
|
1652
|
+
return this.each(gi);
|
|
1653
|
+
}
|
|
1654
|
+
//#endregion
|
|
1655
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/append.js
|
|
1656
|
+
function vi(e) {
|
|
1657
|
+
var t = typeof e == "function" ? e : Jn(e);
|
|
1658
|
+
return this.select(function() {
|
|
1659
|
+
return this.appendChild(t.apply(this, arguments));
|
|
1660
|
+
});
|
|
1661
|
+
}
|
|
1662
|
+
//#endregion
|
|
1663
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/insert.js
|
|
1664
|
+
function yi() {
|
|
1665
|
+
return null;
|
|
1666
|
+
}
|
|
1667
|
+
function bi(e, t) {
|
|
1668
|
+
var n = typeof e == "function" ? e : Jn(e), r = t == null ? yi : typeof t == "function" ? t : Xn(t);
|
|
1669
|
+
return this.select(function() {
|
|
1670
|
+
return this.insertBefore(n.apply(this, arguments), r.apply(this, arguments) || null);
|
|
1671
|
+
});
|
|
1672
|
+
}
|
|
1673
|
+
//#endregion
|
|
1674
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/remove.js
|
|
1675
|
+
function xi() {
|
|
1676
|
+
var e = this.parentNode;
|
|
1677
|
+
e && e.removeChild(this);
|
|
1678
|
+
}
|
|
1679
|
+
function Si() {
|
|
1680
|
+
return this.each(xi);
|
|
1681
|
+
}
|
|
1682
|
+
//#endregion
|
|
1683
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/clone.js
|
|
1684
|
+
function Ci() {
|
|
1685
|
+
var e = this.cloneNode(!1), t = this.parentNode;
|
|
1686
|
+
return t ? t.insertBefore(e, this.nextSibling) : e;
|
|
1687
|
+
}
|
|
1688
|
+
function wi() {
|
|
1689
|
+
var e = this.cloneNode(!0), t = this.parentNode;
|
|
1690
|
+
return t ? t.insertBefore(e, this.nextSibling) : e;
|
|
1691
|
+
}
|
|
1692
|
+
function Ti(e) {
|
|
1693
|
+
return this.select(e ? wi : Ci);
|
|
1694
|
+
}
|
|
1695
|
+
//#endregion
|
|
1696
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/datum.js
|
|
1697
|
+
function Ei(e) {
|
|
1698
|
+
return arguments.length ? this.property("__data__", e) : this.node().__data__;
|
|
1699
|
+
}
|
|
1700
|
+
//#endregion
|
|
1701
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/on.js
|
|
1702
|
+
function Di(e) {
|
|
1703
|
+
return function(t) {
|
|
1704
|
+
e.call(this, t, this.__data__);
|
|
1705
|
+
};
|
|
1706
|
+
}
|
|
1707
|
+
function Oi(e) {
|
|
1708
|
+
return e.trim().split(/^|\s+/).map(function(e) {
|
|
1709
|
+
var t = "", n = e.indexOf(".");
|
|
1710
|
+
return n >= 0 && (t = e.slice(n + 1), e = e.slice(0, n)), {
|
|
1711
|
+
type: e,
|
|
1712
|
+
name: t
|
|
1713
|
+
};
|
|
1714
|
+
});
|
|
1715
|
+
}
|
|
1716
|
+
function ki(e) {
|
|
1717
|
+
return function() {
|
|
1718
|
+
var t = this.__on;
|
|
1719
|
+
if (t) {
|
|
1720
|
+
for (var n = 0, r = -1, i = t.length, a; n < i; ++n) a = t[n], (!e.type || a.type === e.type) && a.name === e.name ? this.removeEventListener(a.type, a.listener, a.options) : t[++r] = a;
|
|
1721
|
+
++r ? t.length = r : delete this.__on;
|
|
1722
|
+
}
|
|
1723
|
+
};
|
|
1724
|
+
}
|
|
1725
|
+
function Ai(e, t, n) {
|
|
1726
|
+
return function() {
|
|
1727
|
+
var r = this.__on, i, a = Di(t);
|
|
1728
|
+
if (r) {
|
|
1729
|
+
for (var o = 0, s = r.length; o < s; ++o) if ((i = r[o]).type === e.type && i.name === e.name) {
|
|
1730
|
+
this.removeEventListener(i.type, i.listener, i.options), this.addEventListener(i.type, i.listener = a, i.options = n), i.value = t;
|
|
1731
|
+
return;
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
this.addEventListener(e.type, a, n), i = {
|
|
1735
|
+
type: e.type,
|
|
1736
|
+
name: e.name,
|
|
1737
|
+
value: t,
|
|
1738
|
+
listener: a,
|
|
1739
|
+
options: n
|
|
1740
|
+
}, r ? r.push(i) : this.__on = [i];
|
|
1741
|
+
};
|
|
1742
|
+
}
|
|
1743
|
+
function ji(e, t, n) {
|
|
1744
|
+
var r = Oi(e + ""), i, a = r.length, o;
|
|
1745
|
+
if (arguments.length < 2) {
|
|
1746
|
+
var s = this.node().__on;
|
|
1747
|
+
if (s) {
|
|
1748
|
+
for (var c = 0, l = s.length, u; c < l; ++c) for (i = 0, u = s[c]; i < a; ++i) if ((o = r[i]).type === u.type && o.name === u.name) return u.value;
|
|
1749
|
+
}
|
|
1750
|
+
return;
|
|
1751
|
+
}
|
|
1752
|
+
for (s = t ? Ai : ki, i = 0; i < a; ++i) this.each(s(r[i], t, n));
|
|
1753
|
+
return this;
|
|
1754
|
+
}
|
|
1755
|
+
//#endregion
|
|
1756
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/dispatch.js
|
|
1757
|
+
function Mi(e, t, n) {
|
|
1758
|
+
var r = Hr(e), i = r.CustomEvent;
|
|
1759
|
+
typeof i == "function" ? i = new i(t, n) : (i = r.document.createEvent("Event"), n ? (i.initEvent(t, n.bubbles, n.cancelable), i.detail = n.detail) : i.initEvent(t, !1, !1)), e.dispatchEvent(i);
|
|
1760
|
+
}
|
|
1761
|
+
function Ni(e, t) {
|
|
1762
|
+
return function() {
|
|
1763
|
+
return Mi(this, e, t);
|
|
1764
|
+
};
|
|
1765
|
+
}
|
|
1766
|
+
function Pi(e, t) {
|
|
1767
|
+
return function() {
|
|
1768
|
+
return Mi(this, e, t.apply(this, arguments));
|
|
1769
|
+
};
|
|
1770
|
+
}
|
|
1771
|
+
function Fi(e, t) {
|
|
1772
|
+
return this.each((typeof t == "function" ? Pi : Ni)(e, t));
|
|
1773
|
+
}
|
|
1774
|
+
//#endregion
|
|
1775
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/iterator.js
|
|
1776
|
+
function* Ii() {
|
|
1777
|
+
for (var e = this._groups, t = 0, n = e.length; t < n; ++t) for (var r = e[t], i = 0, a = r.length, o; i < a; ++i) (o = r[i]) && (yield o);
|
|
1778
|
+
}
|
|
1779
|
+
//#endregion
|
|
1780
|
+
//#region ../../node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/index.js
|
|
1781
|
+
var Li = [null];
|
|
1782
|
+
function I(e, t) {
|
|
1783
|
+
this._groups = e, this._parents = t;
|
|
1784
|
+
}
|
|
1785
|
+
function L() {
|
|
1786
|
+
return new I([[document.documentElement]], Li);
|
|
1787
|
+
}
|
|
1788
|
+
function Ri() {
|
|
1789
|
+
return this;
|
|
1790
|
+
}
|
|
1791
|
+
I.prototype = L.prototype = {
|
|
1792
|
+
constructor: I,
|
|
1793
|
+
select: Zn,
|
|
1794
|
+
selectAll: nr,
|
|
1795
|
+
selectChild: cr,
|
|
1796
|
+
selectChildren: fr,
|
|
1797
|
+
filter: pr,
|
|
1798
|
+
data: xr,
|
|
1799
|
+
enter: hr,
|
|
1800
|
+
exit: Cr,
|
|
1801
|
+
join: wr,
|
|
1802
|
+
merge: Tr,
|
|
1803
|
+
selection: Ri,
|
|
1804
|
+
order: Er,
|
|
1805
|
+
sort: Dr,
|
|
1806
|
+
call: kr,
|
|
1807
|
+
nodes: Ar,
|
|
1808
|
+
node: jr,
|
|
1809
|
+
size: Mr,
|
|
1810
|
+
empty: Nr,
|
|
1811
|
+
each: Pr,
|
|
1812
|
+
attr: Vr,
|
|
1813
|
+
style: Kr,
|
|
1814
|
+
property: Xr,
|
|
1815
|
+
classed: ai,
|
|
1816
|
+
text: li,
|
|
1817
|
+
html: pi,
|
|
1818
|
+
raise: hi,
|
|
1819
|
+
lower: _i,
|
|
1820
|
+
append: vi,
|
|
1821
|
+
insert: bi,
|
|
1822
|
+
remove: Si,
|
|
1823
|
+
clone: Ti,
|
|
1824
|
+
datum: Ei,
|
|
1825
|
+
on: ji,
|
|
1826
|
+
dispatch: Fi,
|
|
1827
|
+
[Symbol.iterator]: Ii
|
|
1828
|
+
};
|
|
1829
|
+
//#endregion
|
|
1830
|
+
//#region ../../node_modules/.pnpm/d3-timer@2.0.0/node_modules/d3-timer/src/timer.js
|
|
1831
|
+
var R = 0, z = 0, B = 0, zi = 1e3, Bi, V, Vi = 0, H = 0, Hi = 0, U = typeof performance == "object" && performance.now ? performance : Date, Ui = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
|
|
1832
|
+
setTimeout(e, 17);
|
|
1833
|
+
};
|
|
1834
|
+
function Wi() {
|
|
1835
|
+
return H || (Ui(Gi), H = U.now() + Hi);
|
|
1836
|
+
}
|
|
1837
|
+
function Gi() {
|
|
1838
|
+
H = 0;
|
|
1839
|
+
}
|
|
1840
|
+
function Ki() {
|
|
1841
|
+
this._call = this._time = this._next = null;
|
|
1842
|
+
}
|
|
1843
|
+
Ki.prototype = qi.prototype = {
|
|
1844
|
+
constructor: Ki,
|
|
1845
|
+
restart: function(e, t, n) {
|
|
1846
|
+
if (typeof e != "function") throw TypeError("callback is not a function");
|
|
1847
|
+
n = (n == null ? Wi() : +n) + (t == null ? 0 : +t), !this._next && V !== this && (V ? V._next = this : Bi = this, V = this), this._call = e, this._time = n, Qi();
|
|
1848
|
+
},
|
|
1849
|
+
stop: function() {
|
|
1850
|
+
this._call && (this._call = null, this._time = Infinity, Qi());
|
|
1851
|
+
}
|
|
1852
|
+
};
|
|
1853
|
+
function qi(e, t, n) {
|
|
1854
|
+
var r = new Ki();
|
|
1855
|
+
return r.restart(e, t, n), r;
|
|
1856
|
+
}
|
|
1857
|
+
function Ji() {
|
|
1858
|
+
Wi(), ++R;
|
|
1859
|
+
for (var e = Bi, t; e;) (t = H - e._time) >= 0 && e._call.call(null, t), e = e._next;
|
|
1860
|
+
--R;
|
|
1861
|
+
}
|
|
1862
|
+
function Yi() {
|
|
1863
|
+
H = (Vi = U.now()) + Hi, R = z = 0;
|
|
1864
|
+
try {
|
|
1865
|
+
Ji();
|
|
1866
|
+
} finally {
|
|
1867
|
+
R = 0, Zi(), H = 0;
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
function Xi() {
|
|
1871
|
+
var e = U.now(), t = e - Vi;
|
|
1872
|
+
t > zi && (Hi -= t, Vi = e);
|
|
1873
|
+
}
|
|
1874
|
+
function Zi() {
|
|
1875
|
+
for (var e, t = Bi, n, r = Infinity; t;) t._call ? (r > t._time && (r = t._time), e = t, t = t._next) : (n = t._next, t._next = null, t = e ? e._next = n : Bi = n);
|
|
1876
|
+
V = e, Qi(r);
|
|
1877
|
+
}
|
|
1878
|
+
function Qi(e) {
|
|
1879
|
+
R || (z && (z = clearTimeout(z)), e - H > 24 ? (e < Infinity && (z = setTimeout(Yi, e - U.now() - Hi)), B && (B = clearInterval(B))) : (B || (Vi = U.now(), B = setInterval(Xi, zi)), R = 1, Ui(Yi)));
|
|
1880
|
+
}
|
|
1881
|
+
//#endregion
|
|
1882
|
+
//#region ../../node_modules/.pnpm/d3-timer@2.0.0/node_modules/d3-timer/src/timeout.js
|
|
1883
|
+
function $i(e, t, n) {
|
|
1884
|
+
var r = new Ki();
|
|
1885
|
+
return t = t == null ? 0 : +t, r.restart((n) => {
|
|
1886
|
+
r.stop(), e(n + t);
|
|
1887
|
+
}, t, n), r;
|
|
1888
|
+
}
|
|
1889
|
+
//#endregion
|
|
1890
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/schedule.js
|
|
1891
|
+
var ea = g("start", "end", "cancel", "interrupt"), ta = [];
|
|
1892
|
+
function na(e, t, n, r, i, a) {
|
|
1893
|
+
var o = e.__transition;
|
|
1894
|
+
if (!o) e.__transition = {};
|
|
1895
|
+
else if (n in o) return;
|
|
1896
|
+
ia(e, n, {
|
|
1897
|
+
name: t,
|
|
1898
|
+
index: r,
|
|
1899
|
+
group: i,
|
|
1900
|
+
on: ea,
|
|
1901
|
+
tween: ta,
|
|
1902
|
+
time: a.time,
|
|
1903
|
+
delay: a.delay,
|
|
1904
|
+
duration: a.duration,
|
|
1905
|
+
ease: a.ease,
|
|
1906
|
+
timer: null,
|
|
1907
|
+
state: 0
|
|
1908
|
+
});
|
|
1909
|
+
}
|
|
1910
|
+
function ra(e, t) {
|
|
1911
|
+
var n = G(e, t);
|
|
1912
|
+
if (n.state > 0) throw Error("too late; already scheduled");
|
|
1913
|
+
return n;
|
|
1914
|
+
}
|
|
1915
|
+
function W(e, t) {
|
|
1916
|
+
var n = G(e, t);
|
|
1917
|
+
if (n.state > 3) throw Error("too late; already running");
|
|
1918
|
+
return n;
|
|
1919
|
+
}
|
|
1920
|
+
function G(e, t) {
|
|
1921
|
+
var n = e.__transition;
|
|
1922
|
+
if (!n || !(n = n[t])) throw Error("transition not found");
|
|
1923
|
+
return n;
|
|
1924
|
+
}
|
|
1925
|
+
function ia(e, t, n) {
|
|
1926
|
+
var r = e.__transition, i;
|
|
1927
|
+
r[t] = n, n.timer = qi(a, 0, n.time);
|
|
1928
|
+
function a(e) {
|
|
1929
|
+
n.state = 1, n.timer.restart(o, n.delay, n.time), n.delay <= e && o(e - n.delay);
|
|
1930
|
+
}
|
|
1931
|
+
function o(a) {
|
|
1932
|
+
var l, u, d, f;
|
|
1933
|
+
if (n.state !== 1) return c();
|
|
1934
|
+
for (l in r) if (f = r[l], f.name === n.name) {
|
|
1935
|
+
if (f.state === 3) return $i(o);
|
|
1936
|
+
f.state === 4 ? (f.state = 6, f.timer.stop(), f.on.call("interrupt", e, e.__data__, f.index, f.group), delete r[l]) : +l < t && (f.state = 6, f.timer.stop(), f.on.call("cancel", e, e.__data__, f.index, f.group), delete r[l]);
|
|
1937
|
+
}
|
|
1938
|
+
if ($i(function() {
|
|
1939
|
+
n.state === 3 && (n.state = 4, n.timer.restart(s, n.delay, n.time), s(a));
|
|
1940
|
+
}), n.state = 2, n.on.call("start", e, e.__data__, n.index, n.group), n.state === 2) {
|
|
1941
|
+
for (n.state = 3, i = Array(d = n.tween.length), l = 0, u = -1; l < d; ++l) (f = n.tween[l].value.call(e, e.__data__, n.index, n.group)) && (i[++u] = f);
|
|
1942
|
+
i.length = u + 1;
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
function s(t) {
|
|
1946
|
+
for (var r = t < n.duration ? n.ease.call(null, t / n.duration) : (n.timer.restart(c), n.state = 5, 1), a = -1, o = i.length; ++a < o;) i[a].call(e, r);
|
|
1947
|
+
n.state === 5 && (n.on.call("end", e, e.__data__, n.index, n.group), c());
|
|
1948
|
+
}
|
|
1949
|
+
function c() {
|
|
1950
|
+
for (var i in n.state = 6, n.timer.stop(), delete r[t], r) return;
|
|
1951
|
+
delete e.__transition;
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
//#endregion
|
|
1955
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/interrupt.js
|
|
1956
|
+
function aa(e, t) {
|
|
1957
|
+
var n = e.__transition, r, i, a = !0, o;
|
|
1958
|
+
if (n) {
|
|
1959
|
+
for (o in t = t == null ? null : t + "", n) {
|
|
1960
|
+
if ((r = n[o]).name !== t) {
|
|
1961
|
+
a = !1;
|
|
1962
|
+
continue;
|
|
1963
|
+
}
|
|
1964
|
+
i = r.state > 2 && r.state < 5, r.state = 6, r.timer.stop(), r.on.call(i ? "interrupt" : "cancel", e, e.__data__, r.index, r.group), delete n[o];
|
|
1965
|
+
}
|
|
1966
|
+
a && delete e.__transition;
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
//#endregion
|
|
1970
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/interrupt.js
|
|
1971
|
+
function oa(e) {
|
|
1972
|
+
return this.each(function() {
|
|
1973
|
+
aa(this, e);
|
|
1974
|
+
});
|
|
1975
|
+
}
|
|
1976
|
+
//#endregion
|
|
1977
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/tween.js
|
|
1978
|
+
function sa(e, t) {
|
|
1979
|
+
var n, r;
|
|
1980
|
+
return function() {
|
|
1981
|
+
var i = W(this, e), a = i.tween;
|
|
1982
|
+
if (a !== n) {
|
|
1983
|
+
r = n = a;
|
|
1984
|
+
for (var o = 0, s = r.length; o < s; ++o) if (r[o].name === t) {
|
|
1985
|
+
r = r.slice(), r.splice(o, 1);
|
|
1986
|
+
break;
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
i.tween = r;
|
|
1990
|
+
};
|
|
1991
|
+
}
|
|
1992
|
+
function ca(e, t, n) {
|
|
1993
|
+
var r, i;
|
|
1994
|
+
if (typeof n != "function") throw Error();
|
|
1995
|
+
return function() {
|
|
1996
|
+
var a = W(this, e), o = a.tween;
|
|
1997
|
+
if (o !== r) {
|
|
1998
|
+
i = (r = o).slice();
|
|
1999
|
+
for (var s = {
|
|
2000
|
+
name: t,
|
|
2001
|
+
value: n
|
|
2002
|
+
}, c = 0, l = i.length; c < l; ++c) if (i[c].name === t) {
|
|
2003
|
+
i[c] = s;
|
|
2004
|
+
break;
|
|
2005
|
+
}
|
|
2006
|
+
c === l && i.push(s);
|
|
2007
|
+
}
|
|
2008
|
+
a.tween = i;
|
|
2009
|
+
};
|
|
2010
|
+
}
|
|
2011
|
+
function la(e, t) {
|
|
2012
|
+
var n = this._id;
|
|
2013
|
+
if (e += "", arguments.length < 2) {
|
|
2014
|
+
for (var r = G(this.node(), n).tween, i = 0, a = r.length, o; i < a; ++i) if ((o = r[i]).name === e) return o.value;
|
|
2015
|
+
return null;
|
|
2016
|
+
}
|
|
2017
|
+
return this.each((t == null ? sa : ca)(n, e, t));
|
|
2018
|
+
}
|
|
2019
|
+
function ua(e, t, n) {
|
|
2020
|
+
var r = e._id;
|
|
2021
|
+
return e.each(function() {
|
|
2022
|
+
var e = W(this, r);
|
|
2023
|
+
(e.value || (e.value = {}))[t] = n.apply(this, arguments);
|
|
2024
|
+
}), function(e) {
|
|
2025
|
+
return G(e, r).value[t];
|
|
2026
|
+
};
|
|
2027
|
+
}
|
|
2028
|
+
//#endregion
|
|
2029
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/interpolate.js
|
|
2030
|
+
function da(e, t) {
|
|
2031
|
+
var n;
|
|
2032
|
+
return (typeof t == "number" ? P : t instanceof k ? kn : (n = k(t)) ? (t = n, kn) : Pn)(e, t);
|
|
2033
|
+
}
|
|
2034
|
+
//#endregion
|
|
2035
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attr.js
|
|
2036
|
+
function fa(e) {
|
|
2037
|
+
return function() {
|
|
2038
|
+
this.removeAttribute(e);
|
|
2039
|
+
};
|
|
2040
|
+
}
|
|
2041
|
+
function pa(e) {
|
|
2042
|
+
return function() {
|
|
2043
|
+
this.removeAttributeNS(e.space, e.local);
|
|
2044
|
+
};
|
|
2045
|
+
}
|
|
2046
|
+
function ma(e, t, n) {
|
|
2047
|
+
var r, i = n + "", a;
|
|
2048
|
+
return function() {
|
|
2049
|
+
var o = this.getAttribute(e);
|
|
2050
|
+
return o === i ? null : o === r ? a : a = t(r = o, n);
|
|
2051
|
+
};
|
|
2052
|
+
}
|
|
2053
|
+
function ha(e, t, n) {
|
|
2054
|
+
var r, i = n + "", a;
|
|
2055
|
+
return function() {
|
|
2056
|
+
var o = this.getAttributeNS(e.space, e.local);
|
|
2057
|
+
return o === i ? null : o === r ? a : a = t(r = o, n);
|
|
2058
|
+
};
|
|
2059
|
+
}
|
|
2060
|
+
function ga(e, t, n) {
|
|
2061
|
+
var r, i, a;
|
|
2062
|
+
return function() {
|
|
2063
|
+
var o, s = n(this), c;
|
|
2064
|
+
return s == null ? void this.removeAttribute(e) : (o = this.getAttribute(e), c = s + "", o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s)));
|
|
2065
|
+
};
|
|
2066
|
+
}
|
|
2067
|
+
function _a(e, t, n) {
|
|
2068
|
+
var r, i, a;
|
|
2069
|
+
return function() {
|
|
2070
|
+
var o, s = n(this), c;
|
|
2071
|
+
return s == null ? void this.removeAttributeNS(e.space, e.local) : (o = this.getAttributeNS(e.space, e.local), c = s + "", o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s)));
|
|
2072
|
+
};
|
|
2073
|
+
}
|
|
2074
|
+
function va(e, t) {
|
|
2075
|
+
var n = Gn(e), r = n === "transform" ? Un : da;
|
|
2076
|
+
return this.attrTween(e, typeof t == "function" ? (n.local ? _a : ga)(n, r, ua(this, "attr." + e, t)) : t == null ? (n.local ? pa : fa)(n) : (n.local ? ha : ma)(n, r, t));
|
|
2077
|
+
}
|
|
2078
|
+
//#endregion
|
|
2079
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attrTween.js
|
|
2080
|
+
function ya(e, t) {
|
|
2081
|
+
return function(n) {
|
|
2082
|
+
this.setAttribute(e, t.call(this, n));
|
|
2083
|
+
};
|
|
2084
|
+
}
|
|
2085
|
+
function ba(e, t) {
|
|
2086
|
+
return function(n) {
|
|
2087
|
+
this.setAttributeNS(e.space, e.local, t.call(this, n));
|
|
2088
|
+
};
|
|
2089
|
+
}
|
|
2090
|
+
function xa(e, t) {
|
|
2091
|
+
var n, r;
|
|
2092
|
+
function i() {
|
|
2093
|
+
var i = t.apply(this, arguments);
|
|
2094
|
+
return i !== r && (n = (r = i) && ba(e, i)), n;
|
|
2095
|
+
}
|
|
2096
|
+
return i._value = t, i;
|
|
2097
|
+
}
|
|
2098
|
+
function Sa(e, t) {
|
|
2099
|
+
var n, r;
|
|
2100
|
+
function i() {
|
|
2101
|
+
var i = t.apply(this, arguments);
|
|
2102
|
+
return i !== r && (n = (r = i) && ya(e, i)), n;
|
|
2103
|
+
}
|
|
2104
|
+
return i._value = t, i;
|
|
2105
|
+
}
|
|
2106
|
+
function Ca(e, t) {
|
|
2107
|
+
var n = "attr." + e;
|
|
2108
|
+
if (arguments.length < 2) return (n = this.tween(n)) && n._value;
|
|
2109
|
+
if (t == null) return this.tween(n, null);
|
|
2110
|
+
if (typeof t != "function") throw Error();
|
|
2111
|
+
var r = Gn(e);
|
|
2112
|
+
return this.tween(n, (r.local ? xa : Sa)(r, t));
|
|
2113
|
+
}
|
|
2114
|
+
//#endregion
|
|
2115
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/delay.js
|
|
2116
|
+
function wa(e, t) {
|
|
2117
|
+
return function() {
|
|
2118
|
+
ra(this, e).delay = +t.apply(this, arguments);
|
|
2119
|
+
};
|
|
2120
|
+
}
|
|
2121
|
+
function Ta(e, t) {
|
|
2122
|
+
return t = +t, function() {
|
|
2123
|
+
ra(this, e).delay = t;
|
|
2124
|
+
};
|
|
2125
|
+
}
|
|
2126
|
+
function Ea(e) {
|
|
2127
|
+
var t = this._id;
|
|
2128
|
+
return arguments.length ? this.each((typeof e == "function" ? wa : Ta)(t, e)) : G(this.node(), t).delay;
|
|
2129
|
+
}
|
|
2130
|
+
//#endregion
|
|
2131
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/duration.js
|
|
2132
|
+
function Da(e, t) {
|
|
2133
|
+
return function() {
|
|
2134
|
+
W(this, e).duration = +t.apply(this, arguments);
|
|
2135
|
+
};
|
|
2136
|
+
}
|
|
2137
|
+
function Oa(e, t) {
|
|
2138
|
+
return t = +t, function() {
|
|
2139
|
+
W(this, e).duration = t;
|
|
2140
|
+
};
|
|
2141
|
+
}
|
|
2142
|
+
function ka(e) {
|
|
2143
|
+
var t = this._id;
|
|
2144
|
+
return arguments.length ? this.each((typeof e == "function" ? Da : Oa)(t, e)) : G(this.node(), t).duration;
|
|
2145
|
+
}
|
|
2146
|
+
//#endregion
|
|
2147
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/ease.js
|
|
2148
|
+
function Aa(e, t) {
|
|
2149
|
+
if (typeof t != "function") throw Error();
|
|
2150
|
+
return function() {
|
|
2151
|
+
W(this, e).ease = t;
|
|
2152
|
+
};
|
|
2153
|
+
}
|
|
2154
|
+
function ja(e) {
|
|
2155
|
+
var t = this._id;
|
|
2156
|
+
return arguments.length ? this.each(Aa(t, e)) : G(this.node(), t).ease;
|
|
2157
|
+
}
|
|
2158
|
+
//#endregion
|
|
2159
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/easeVarying.js
|
|
2160
|
+
function Ma(e, t) {
|
|
2161
|
+
return function() {
|
|
2162
|
+
var n = t.apply(this, arguments);
|
|
2163
|
+
if (typeof n != "function") throw Error();
|
|
2164
|
+
W(this, e).ease = n;
|
|
2165
|
+
};
|
|
2166
|
+
}
|
|
2167
|
+
function Na(e) {
|
|
2168
|
+
if (typeof e != "function") throw Error();
|
|
2169
|
+
return this.each(Ma(this._id, e));
|
|
2170
|
+
}
|
|
2171
|
+
//#endregion
|
|
2172
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/filter.js
|
|
2173
|
+
function Pa(e) {
|
|
2174
|
+
typeof e != "function" && (e = rr(e));
|
|
2175
|
+
for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = [], c, l = 0; l < o; ++l) (c = a[l]) && e.call(c, c.__data__, l, a) && s.push(c);
|
|
2176
|
+
return new K(r, this._parents, this._name, this._id);
|
|
2177
|
+
}
|
|
2178
|
+
//#endregion
|
|
2179
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/merge.js
|
|
2180
|
+
function Fa(e) {
|
|
2181
|
+
if (e._id !== this._id) throw Error();
|
|
2182
|
+
for (var t = this._groups, n = e._groups, r = t.length, i = n.length, a = Math.min(r, i), o = Array(r), s = 0; s < a; ++s) for (var c = t[s], l = n[s], u = c.length, d = o[s] = Array(u), f, p = 0; p < u; ++p) (f = c[p] || l[p]) && (d[p] = f);
|
|
2183
|
+
for (; s < r; ++s) o[s] = t[s];
|
|
2184
|
+
return new K(o, this._parents, this._name, this._id);
|
|
2185
|
+
}
|
|
2186
|
+
//#endregion
|
|
2187
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/on.js
|
|
2188
|
+
function Ia(e) {
|
|
2189
|
+
return (e + "").trim().split(/^|\s+/).every(function(e) {
|
|
2190
|
+
var t = e.indexOf(".");
|
|
2191
|
+
return t >= 0 && (e = e.slice(0, t)), !e || e === "start";
|
|
2192
|
+
});
|
|
2193
|
+
}
|
|
2194
|
+
function La(e, t, n) {
|
|
2195
|
+
var r, i, a = Ia(t) ? ra : W;
|
|
2196
|
+
return function() {
|
|
2197
|
+
var o = a(this, e), s = o.on;
|
|
2198
|
+
s !== r && (i = (r = s).copy()).on(t, n), o.on = i;
|
|
2199
|
+
};
|
|
2200
|
+
}
|
|
2201
|
+
function Ra(e, t) {
|
|
2202
|
+
var n = this._id;
|
|
2203
|
+
return arguments.length < 2 ? G(this.node(), n).on.on(e) : this.each(La(n, e, t));
|
|
2204
|
+
}
|
|
2205
|
+
//#endregion
|
|
2206
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/remove.js
|
|
2207
|
+
function za(e) {
|
|
2208
|
+
return function() {
|
|
2209
|
+
var t = this.parentNode;
|
|
2210
|
+
for (var n in this.__transition) if (+n !== e) return;
|
|
2211
|
+
t && t.removeChild(this);
|
|
2212
|
+
};
|
|
2213
|
+
}
|
|
2214
|
+
function Ba() {
|
|
2215
|
+
return this.on("end.remove", za(this._id));
|
|
2216
|
+
}
|
|
2217
|
+
//#endregion
|
|
2218
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/select.js
|
|
2219
|
+
function Va(e) {
|
|
2220
|
+
var t = this._name, n = this._id;
|
|
2221
|
+
typeof e != "function" && (e = Xn(e));
|
|
2222
|
+
for (var r = this._groups, i = r.length, a = Array(i), o = 0; o < i; ++o) for (var s = r[o], c = s.length, l = a[o] = Array(c), u, d, f = 0; f < c; ++f) (u = s[f]) && (d = e.call(u, u.__data__, f, s)) && ("__data__" in u && (d.__data__ = u.__data__), l[f] = d, na(l[f], t, n, f, l, G(u, n)));
|
|
2223
|
+
return new K(a, this._parents, t, n);
|
|
2224
|
+
}
|
|
2225
|
+
//#endregion
|
|
2226
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selectAll.js
|
|
2227
|
+
function Ha(e) {
|
|
2228
|
+
var t = this._name, n = this._id;
|
|
2229
|
+
typeof e != "function" && (e = er(e));
|
|
2230
|
+
for (var r = this._groups, i = r.length, a = [], o = [], s = 0; s < i; ++s) for (var c = r[s], l = c.length, u, d = 0; d < l; ++d) if (u = c[d]) {
|
|
2231
|
+
for (var f = e.call(u, u.__data__, d, c), p, m = G(u, n), h = 0, g = f.length; h < g; ++h) (p = f[h]) && na(p, t, n, h, f, m);
|
|
2232
|
+
a.push(f), o.push(u);
|
|
2233
|
+
}
|
|
2234
|
+
return new K(a, o, t, n);
|
|
2235
|
+
}
|
|
2236
|
+
//#endregion
|
|
2237
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selection.js
|
|
2238
|
+
var Ua = L.prototype.constructor;
|
|
2239
|
+
function Wa() {
|
|
2240
|
+
return new Ua(this._groups, this._parents);
|
|
2241
|
+
}
|
|
2242
|
+
//#endregion
|
|
2243
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/style.js
|
|
2244
|
+
function Ga(e, t) {
|
|
2245
|
+
var n, r, i;
|
|
2246
|
+
return function() {
|
|
2247
|
+
var a = F(this, e), o = (this.style.removeProperty(e), F(this, e));
|
|
2248
|
+
return a === o ? null : a === n && o === r ? i : i = t(n = a, r = o);
|
|
2249
|
+
};
|
|
2250
|
+
}
|
|
2251
|
+
function Ka(e) {
|
|
2252
|
+
return function() {
|
|
2253
|
+
this.style.removeProperty(e);
|
|
2254
|
+
};
|
|
2255
|
+
}
|
|
2256
|
+
function qa(e, t, n) {
|
|
2257
|
+
var r, i = n + "", a;
|
|
2258
|
+
return function() {
|
|
2259
|
+
var o = F(this, e);
|
|
2260
|
+
return o === i ? null : o === r ? a : a = t(r = o, n);
|
|
2261
|
+
};
|
|
2262
|
+
}
|
|
2263
|
+
function Ja(e, t, n) {
|
|
2264
|
+
var r, i, a;
|
|
2265
|
+
return function() {
|
|
2266
|
+
var o = F(this, e), s = n(this), c = s + "";
|
|
2267
|
+
return s == null && (c = s = (this.style.removeProperty(e), F(this, e))), o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s));
|
|
2268
|
+
};
|
|
2269
|
+
}
|
|
2270
|
+
function Ya(e, t) {
|
|
2271
|
+
var n, r, i, a = "style." + t, o = "end." + a, s;
|
|
2272
|
+
return function() {
|
|
2273
|
+
var c = W(this, e), l = c.on, u = c.value[a] == null ? s || (s = Ka(t)) : void 0;
|
|
2274
|
+
(l !== n || i !== u) && (r = (n = l).copy()).on(o, i = u), c.on = r;
|
|
2275
|
+
};
|
|
2276
|
+
}
|
|
2277
|
+
function Xa(e, t, n) {
|
|
2278
|
+
var r = (e += "") == "transform" ? Hn : da;
|
|
2279
|
+
return t == null ? this.styleTween(e, Ga(e, r)).on("end.style." + e, Ka(e)) : typeof t == "function" ? this.styleTween(e, Ja(e, r, ua(this, "style." + e, t))).each(Ya(this._id, e)) : this.styleTween(e, qa(e, r, t), n).on("end.style." + e, null);
|
|
2280
|
+
}
|
|
2281
|
+
//#endregion
|
|
2282
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/styleTween.js
|
|
2283
|
+
function Za(e, t, n) {
|
|
2284
|
+
return function(r) {
|
|
2285
|
+
this.style.setProperty(e, t.call(this, r), n);
|
|
2286
|
+
};
|
|
2287
|
+
}
|
|
2288
|
+
function Qa(e, t, n) {
|
|
2289
|
+
var r, i;
|
|
2290
|
+
function a() {
|
|
2291
|
+
var a = t.apply(this, arguments);
|
|
2292
|
+
return a !== i && (r = (i = a) && Za(e, a, n)), r;
|
|
2293
|
+
}
|
|
2294
|
+
return a._value = t, a;
|
|
2295
|
+
}
|
|
2296
|
+
function $a(e, t, n) {
|
|
2297
|
+
var r = "style." + (e += "");
|
|
2298
|
+
if (arguments.length < 2) return (r = this.tween(r)) && r._value;
|
|
2299
|
+
if (t == null) return this.tween(r, null);
|
|
2300
|
+
if (typeof t != "function") throw Error();
|
|
2301
|
+
return this.tween(r, Qa(e, t, n == null ? "" : n));
|
|
2302
|
+
}
|
|
2303
|
+
//#endregion
|
|
2304
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/text.js
|
|
2305
|
+
function eo(e) {
|
|
2306
|
+
return function() {
|
|
2307
|
+
this.textContent = e;
|
|
2308
|
+
};
|
|
2309
|
+
}
|
|
2310
|
+
function to(e) {
|
|
2311
|
+
return function() {
|
|
2312
|
+
var t = e(this);
|
|
2313
|
+
this.textContent = t == null ? "" : t;
|
|
2314
|
+
};
|
|
2315
|
+
}
|
|
2316
|
+
function no(e) {
|
|
2317
|
+
return this.tween("text", typeof e == "function" ? to(ua(this, "text", e)) : eo(e == null ? "" : e + ""));
|
|
2318
|
+
}
|
|
2319
|
+
//#endregion
|
|
2320
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/textTween.js
|
|
2321
|
+
function ro(e) {
|
|
2322
|
+
return function(t) {
|
|
2323
|
+
this.textContent = e.call(this, t);
|
|
2324
|
+
};
|
|
2325
|
+
}
|
|
2326
|
+
function io(e) {
|
|
2327
|
+
var t, n;
|
|
2328
|
+
function r() {
|
|
2329
|
+
var r = e.apply(this, arguments);
|
|
2330
|
+
return r !== n && (t = (n = r) && ro(r)), t;
|
|
2331
|
+
}
|
|
2332
|
+
return r._value = e, r;
|
|
2333
|
+
}
|
|
2334
|
+
function ao(e) {
|
|
2335
|
+
var t = "text";
|
|
2336
|
+
if (arguments.length < 1) return (t = this.tween(t)) && t._value;
|
|
2337
|
+
if (e == null) return this.tween(t, null);
|
|
2338
|
+
if (typeof e != "function") throw Error();
|
|
2339
|
+
return this.tween(t, io(e));
|
|
2340
|
+
}
|
|
2341
|
+
//#endregion
|
|
2342
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/transition.js
|
|
2343
|
+
function oo() {
|
|
2344
|
+
for (var e = this._name, t = this._id, n = uo(), r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) if (c = o[l]) {
|
|
2345
|
+
var u = G(c, t);
|
|
2346
|
+
na(c, e, n, l, o, {
|
|
2347
|
+
time: u.time + u.delay + u.duration,
|
|
2348
|
+
delay: 0,
|
|
2349
|
+
duration: u.duration,
|
|
2350
|
+
ease: u.ease
|
|
2351
|
+
});
|
|
2352
|
+
}
|
|
2353
|
+
return new K(r, this._parents, e, n);
|
|
2354
|
+
}
|
|
2355
|
+
//#endregion
|
|
2356
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/end.js
|
|
2357
|
+
function so() {
|
|
2358
|
+
var e, t, n = this, r = n._id, i = n.size();
|
|
2359
|
+
return new Promise(function(a, o) {
|
|
2360
|
+
var s = { value: o }, c = { value: function() {
|
|
2361
|
+
--i === 0 && a();
|
|
2362
|
+
} };
|
|
2363
|
+
n.each(function() {
|
|
2364
|
+
var n = W(this, r), i = n.on;
|
|
2365
|
+
i !== e && (t = (e = i).copy(), t._.cancel.push(s), t._.interrupt.push(s), t._.end.push(c)), n.on = t;
|
|
2366
|
+
}), i === 0 && a();
|
|
2367
|
+
});
|
|
2368
|
+
}
|
|
2369
|
+
//#endregion
|
|
2370
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/index.js
|
|
2371
|
+
var co = 0;
|
|
2372
|
+
function K(e, t, n, r) {
|
|
2373
|
+
this._groups = e, this._parents = t, this._name = n, this._id = r;
|
|
2374
|
+
}
|
|
2375
|
+
function lo(e) {
|
|
2376
|
+
return L().transition(e);
|
|
2377
|
+
}
|
|
2378
|
+
function uo() {
|
|
2379
|
+
return ++co;
|
|
2380
|
+
}
|
|
2381
|
+
var q = L.prototype;
|
|
2382
|
+
K.prototype = lo.prototype = {
|
|
2383
|
+
constructor: K,
|
|
2384
|
+
select: Va,
|
|
2385
|
+
selectAll: Ha,
|
|
2386
|
+
selectChild: q.selectChild,
|
|
2387
|
+
selectChildren: q.selectChildren,
|
|
2388
|
+
filter: Pa,
|
|
2389
|
+
merge: Fa,
|
|
2390
|
+
selection: Wa,
|
|
2391
|
+
transition: oo,
|
|
2392
|
+
call: q.call,
|
|
2393
|
+
nodes: q.nodes,
|
|
2394
|
+
node: q.node,
|
|
2395
|
+
size: q.size,
|
|
2396
|
+
empty: q.empty,
|
|
2397
|
+
each: q.each,
|
|
2398
|
+
on: Ra,
|
|
2399
|
+
attr: va,
|
|
2400
|
+
attrTween: Ca,
|
|
2401
|
+
style: Xa,
|
|
2402
|
+
styleTween: $a,
|
|
2403
|
+
text: no,
|
|
2404
|
+
textTween: ao,
|
|
2405
|
+
remove: Ba,
|
|
2406
|
+
tween: la,
|
|
2407
|
+
delay: Ea,
|
|
2408
|
+
duration: ka,
|
|
2409
|
+
ease: ja,
|
|
2410
|
+
easeVarying: Na,
|
|
2411
|
+
end: so,
|
|
2412
|
+
[Symbol.iterator]: q[Symbol.iterator]
|
|
2413
|
+
};
|
|
2414
|
+
//#endregion
|
|
2415
|
+
//#region ../../node_modules/.pnpm/d3-ease@2.0.0/node_modules/d3-ease/src/cubic.js
|
|
2416
|
+
function fo(e) {
|
|
2417
|
+
return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2;
|
|
2418
|
+
}
|
|
2419
|
+
//#endregion
|
|
2420
|
+
//#region ../../node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/transition.js
|
|
2421
|
+
var po = {
|
|
2422
|
+
time: null,
|
|
2423
|
+
delay: 0,
|
|
2424
|
+
duration: 250,
|
|
2425
|
+
ease: fo
|
|
2426
|
+
};
|
|
2427
|
+
function mo(e, t) {
|
|
2428
|
+
for (var n; !(n = e.__transition) || !(n = n[t]);) if (!(e = e.parentNode)) throw Error(`transition ${t} not found`);
|
|
2429
|
+
return n;
|
|
2430
|
+
}
|
|
2431
|
+
function ho(e) {
|
|
2432
|
+
var t, n;
|
|
2433
|
+
e instanceof K ? (t = e._id, e = e._name) : (t = uo(), (n = po).time = Wi(), e = e == null ? null : e + "");
|
|
2434
|
+
for (var r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) && na(c, e, t, l, o, n || mo(c, t));
|
|
2435
|
+
return new K(r, this._parents, e, t);
|
|
2436
|
+
}
|
|
2437
|
+
L.prototype.interrupt = oa, L.prototype.transition = ho;
|
|
2438
|
+
//#endregion
|
|
2439
|
+
//#region ../../node_modules/.pnpm/d3-brush@3.0.0/node_modules/d3-brush/src/brush.js
|
|
2440
|
+
var { abs: go, max: _o, min: vo } = Math;
|
|
2441
|
+
["w", "e"].map(yo), ["n", "s"].map(yo), [
|
|
2442
|
+
"n",
|
|
2443
|
+
"w",
|
|
2444
|
+
"e",
|
|
2445
|
+
"s",
|
|
2446
|
+
"nw",
|
|
2447
|
+
"ne",
|
|
2448
|
+
"sw",
|
|
2449
|
+
"se"
|
|
2450
|
+
].map(yo);
|
|
2451
|
+
function yo(e) {
|
|
2452
|
+
return { type: e };
|
|
2453
|
+
}
|
|
2454
|
+
//#endregion
|
|
2455
|
+
//#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/count.js
|
|
2456
|
+
function bo(e) {
|
|
2457
|
+
var t = 0, n = e.children, r = n && n.length;
|
|
2458
|
+
if (!r) t = 1;
|
|
2459
|
+
else for (; --r >= 0;) t += n[r].value;
|
|
2460
|
+
e.value = t;
|
|
2461
|
+
}
|
|
2462
|
+
function xo() {
|
|
2463
|
+
return this.eachAfter(bo);
|
|
2464
|
+
}
|
|
2465
|
+
//#endregion
|
|
2466
|
+
//#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/each.js
|
|
2467
|
+
function So(e, t) {
|
|
2468
|
+
let n = -1;
|
|
2469
|
+
for (let r of this) e.call(t, r, ++n, this);
|
|
2470
|
+
return this;
|
|
2471
|
+
}
|
|
2472
|
+
//#endregion
|
|
2473
|
+
//#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js
|
|
2474
|
+
function Co(e, t) {
|
|
2475
|
+
for (var n = this, r = [n], i, a, o = -1; n = r.pop();) if (e.call(t, n, ++o, this), i = n.children) for (a = i.length - 1; a >= 0; --a) r.push(i[a]);
|
|
2476
|
+
return this;
|
|
2477
|
+
}
|
|
2478
|
+
//#endregion
|
|
2479
|
+
//#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js
|
|
2480
|
+
function wo(e, t) {
|
|
2481
|
+
for (var n = this, r = [n], i = [], a, o, s, c = -1; n = r.pop();) if (i.push(n), a = n.children) for (o = 0, s = a.length; o < s; ++o) r.push(a[o]);
|
|
2482
|
+
for (; n = i.pop();) e.call(t, n, ++c, this);
|
|
2483
|
+
return this;
|
|
2484
|
+
}
|
|
2485
|
+
//#endregion
|
|
2486
|
+
//#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/find.js
|
|
2487
|
+
function To(e, t) {
|
|
2488
|
+
let n = -1;
|
|
2489
|
+
for (let r of this) if (e.call(t, r, ++n, this)) return r;
|
|
2490
|
+
}
|
|
2491
|
+
//#endregion
|
|
2492
|
+
//#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/sum.js
|
|
2493
|
+
function Eo(e) {
|
|
2494
|
+
return this.eachAfter(function(t) {
|
|
2495
|
+
for (var n = +e(t.data) || 0, r = t.children, i = r && r.length; --i >= 0;) n += r[i].value;
|
|
2496
|
+
t.value = n;
|
|
2497
|
+
});
|
|
2498
|
+
}
|
|
2499
|
+
//#endregion
|
|
2500
|
+
//#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/sort.js
|
|
2501
|
+
function Do(e) {
|
|
2502
|
+
return this.eachBefore(function(t) {
|
|
2503
|
+
t.children && t.children.sort(e);
|
|
2504
|
+
});
|
|
2505
|
+
}
|
|
2506
|
+
//#endregion
|
|
2507
|
+
//#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/path.js
|
|
2508
|
+
function Oo(e) {
|
|
2509
|
+
for (var t = this, n = ko(t, e), r = [t]; t !== n;) t = t.parent, r.push(t);
|
|
2510
|
+
for (var i = r.length; e !== n;) r.splice(i, 0, e), e = e.parent;
|
|
2511
|
+
return r;
|
|
2512
|
+
}
|
|
2513
|
+
function ko(e, t) {
|
|
2514
|
+
if (e === t) return e;
|
|
2515
|
+
var n = e.ancestors(), r = t.ancestors(), i = null;
|
|
2516
|
+
for (e = n.pop(), t = r.pop(); e === t;) i = e, e = n.pop(), t = r.pop();
|
|
2517
|
+
return i;
|
|
2518
|
+
}
|
|
2519
|
+
//#endregion
|
|
2520
|
+
//#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/ancestors.js
|
|
2521
|
+
function Ao() {
|
|
2522
|
+
for (var e = this, t = [e]; e = e.parent;) t.push(e);
|
|
2523
|
+
return t;
|
|
2524
|
+
}
|
|
2525
|
+
//#endregion
|
|
2526
|
+
//#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/descendants.js
|
|
2527
|
+
function jo() {
|
|
2528
|
+
return Array.from(this);
|
|
2529
|
+
}
|
|
2530
|
+
//#endregion
|
|
2531
|
+
//#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/leaves.js
|
|
2532
|
+
function Mo() {
|
|
2533
|
+
var e = [];
|
|
2534
|
+
return this.eachBefore(function(t) {
|
|
2535
|
+
t.children || e.push(t);
|
|
2536
|
+
}), e;
|
|
2537
|
+
}
|
|
2538
|
+
//#endregion
|
|
2539
|
+
//#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/links.js
|
|
2540
|
+
function No() {
|
|
2541
|
+
var e = this, t = [];
|
|
2542
|
+
return e.each(function(n) {
|
|
2543
|
+
n !== e && t.push({
|
|
2544
|
+
source: n.parent,
|
|
2545
|
+
target: n
|
|
2546
|
+
});
|
|
2547
|
+
}), t;
|
|
2548
|
+
}
|
|
2549
|
+
//#endregion
|
|
2550
|
+
//#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/iterator.js
|
|
2551
|
+
function* Po() {
|
|
2552
|
+
var e = this, t, n = [e], r, i, a;
|
|
2553
|
+
do
|
|
2554
|
+
for (t = n.reverse(), n = []; e = t.pop();) if (yield e, r = e.children) for (i = 0, a = r.length; i < a; ++i) n.push(r[i]);
|
|
2555
|
+
while (n.length);
|
|
2556
|
+
}
|
|
2557
|
+
//#endregion
|
|
2558
|
+
//#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/index.js
|
|
2559
|
+
function Fo(e, t) {
|
|
2560
|
+
e instanceof Map ? (e = [void 0, e], t === void 0 && (t = Ro)) : t === void 0 && (t = Lo);
|
|
2561
|
+
for (var n = new Vo(e), r, i = [n], a, o, s, c; r = i.pop();) if ((o = t(r.data)) && (c = (o = Array.from(o)).length)) for (r.children = o, s = c - 1; s >= 0; --s) i.push(a = o[s] = new Vo(o[s])), a.parent = r, a.depth = r.depth + 1;
|
|
2562
|
+
return n.eachBefore(Bo);
|
|
2563
|
+
}
|
|
2564
|
+
function Io() {
|
|
2565
|
+
return Fo(this).eachBefore(zo);
|
|
2566
|
+
}
|
|
2567
|
+
function Lo(e) {
|
|
2568
|
+
return e.children;
|
|
2569
|
+
}
|
|
2570
|
+
function Ro(e) {
|
|
2571
|
+
return Array.isArray(e) ? e[1] : null;
|
|
2572
|
+
}
|
|
2573
|
+
function zo(e) {
|
|
2574
|
+
e.data.value !== void 0 && (e.value = e.data.value), e.data = e.data.data;
|
|
2575
|
+
}
|
|
2576
|
+
function Bo(e) {
|
|
2577
|
+
var t = 0;
|
|
2578
|
+
do
|
|
2579
|
+
e.height = t;
|
|
2580
|
+
while ((e = e.parent) && e.height < ++t);
|
|
2581
|
+
}
|
|
2582
|
+
function Vo(e) {
|
|
2583
|
+
this.data = e, this.depth = this.height = 0, this.parent = null;
|
|
2584
|
+
}
|
|
2585
|
+
Vo.prototype = Fo.prototype = {
|
|
2586
|
+
constructor: Vo,
|
|
2587
|
+
count: xo,
|
|
2588
|
+
each: So,
|
|
2589
|
+
eachAfter: wo,
|
|
2590
|
+
eachBefore: Co,
|
|
2591
|
+
find: To,
|
|
2592
|
+
sum: Eo,
|
|
2593
|
+
sort: Do,
|
|
2594
|
+
path: Oo,
|
|
2595
|
+
ancestors: Ao,
|
|
2596
|
+
descendants: jo,
|
|
2597
|
+
leaves: Mo,
|
|
2598
|
+
links: No,
|
|
2599
|
+
copy: Io,
|
|
2600
|
+
[Symbol.iterator]: Po
|
|
2601
|
+
};
|
|
2602
|
+
//#endregion
|
|
2603
|
+
//#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/accessors.js
|
|
2604
|
+
function Ho(e) {
|
|
2605
|
+
if (typeof e != "function") throw Error();
|
|
2606
|
+
return e;
|
|
2607
|
+
}
|
|
2608
|
+
//#endregion
|
|
2609
|
+
//#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/constant.js
|
|
2610
|
+
function Uo() {
|
|
2611
|
+
return 0;
|
|
2612
|
+
}
|
|
2613
|
+
function J(e) {
|
|
2614
|
+
return function() {
|
|
2615
|
+
return e;
|
|
2616
|
+
};
|
|
2617
|
+
}
|
|
2618
|
+
//#endregion
|
|
2619
|
+
//#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/treemap/round.js
|
|
2620
|
+
function Wo(e) {
|
|
2621
|
+
e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
|
|
2622
|
+
}
|
|
2623
|
+
//#endregion
|
|
2624
|
+
//#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/treemap/dice.js
|
|
2625
|
+
function Go(e, t, n, r, i) {
|
|
2626
|
+
for (var a = e.children, o, s = -1, c = a.length, l = e.value && (r - t) / e.value; ++s < c;) o = a[s], o.y0 = n, o.y1 = i, o.x0 = t, o.x1 = t += o.value * l;
|
|
2627
|
+
}
|
|
2628
|
+
//#endregion
|
|
2629
|
+
//#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/treemap/slice.js
|
|
2630
|
+
function Ko(e, t, n, r, i) {
|
|
2631
|
+
for (var a = e.children, o, s = -1, c = a.length, l = e.value && (i - n) / e.value; ++s < c;) o = a[s], o.x0 = t, o.x1 = r, o.y0 = n, o.y1 = n += o.value * l;
|
|
2632
|
+
}
|
|
2633
|
+
//#endregion
|
|
2634
|
+
//#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/treemap/squarify.js
|
|
2635
|
+
var qo = (1 + Math.sqrt(5)) / 2;
|
|
2636
|
+
function Jo(e, t, n, r, i, a) {
|
|
2637
|
+
for (var o = [], s = t.children, c, l, u = 0, d = 0, f = s.length, p, m, h = t.value, g, _, v, y, b, x, S; u < f;) {
|
|
2638
|
+
p = i - n, m = a - r;
|
|
2639
|
+
do
|
|
2640
|
+
g = s[d++].value;
|
|
2641
|
+
while (!g && d < f);
|
|
2642
|
+
for (_ = v = g, x = Math.max(m / p, p / m) / (h * e), S = g * g * x, b = Math.max(v / S, S / _); d < f; ++d) {
|
|
2643
|
+
if (g += l = s[d].value, l < _ && (_ = l), l > v && (v = l), S = g * g * x, y = Math.max(v / S, S / _), y > b) {
|
|
2644
|
+
g -= l;
|
|
2645
|
+
break;
|
|
2646
|
+
}
|
|
2647
|
+
b = y;
|
|
2648
|
+
}
|
|
2649
|
+
o.push(c = {
|
|
2650
|
+
value: g,
|
|
2651
|
+
dice: p < m,
|
|
2652
|
+
children: s.slice(u, d)
|
|
2653
|
+
}), c.dice ? Go(c, n, r, i, h ? r += m * g / h : a) : Ko(c, n, r, h ? n += p * g / h : i, a), h -= g, u = d;
|
|
2654
|
+
}
|
|
2655
|
+
return o;
|
|
2656
|
+
}
|
|
2657
|
+
var Yo = (function e(t) {
|
|
2658
|
+
function n(e, n, r, i, a) {
|
|
2659
|
+
Jo(t, e, n, r, i, a);
|
|
2660
|
+
}
|
|
2661
|
+
return n.ratio = function(t) {
|
|
2662
|
+
return e((t = +t) > 1 ? t : 1);
|
|
2663
|
+
}, n;
|
|
2664
|
+
})(qo);
|
|
2665
|
+
//#endregion
|
|
2666
|
+
//#region ../../node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/treemap/index.js
|
|
2667
|
+
function Xo() {
|
|
2668
|
+
var e = Yo, t = !1, n = 1, r = 1, i = [0], a = Uo, o = Uo, s = Uo, c = Uo, l = Uo;
|
|
2669
|
+
function u(e) {
|
|
2670
|
+
return e.x0 = e.y0 = 0, e.x1 = n, e.y1 = r, e.eachBefore(d), i = [0], t && e.eachBefore(Wo), e;
|
|
2671
|
+
}
|
|
2672
|
+
function d(t) {
|
|
2673
|
+
var n = i[t.depth], r = t.x0 + n, u = t.y0 + n, d = t.x1 - n, f = t.y1 - n;
|
|
2674
|
+
d < r && (r = d = (r + d) / 2), f < u && (u = f = (u + f) / 2), t.x0 = r, t.y0 = u, t.x1 = d, t.y1 = f, t.children && (n = i[t.depth + 1] = a(t) / 2, r += l(t) - n, u += o(t) - n, d -= s(t) - n, f -= c(t) - n, d < r && (r = d = (r + d) / 2), f < u && (u = f = (u + f) / 2), e(t, r, u, d, f));
|
|
2675
|
+
}
|
|
2676
|
+
return u.round = function(e) {
|
|
2677
|
+
return arguments.length ? (t = !!e, u) : t;
|
|
2678
|
+
}, u.size = function(e) {
|
|
2679
|
+
return arguments.length ? (n = +e[0], r = +e[1], u) : [n, r];
|
|
2680
|
+
}, u.tile = function(t) {
|
|
2681
|
+
return arguments.length ? (e = Ho(t), u) : e;
|
|
2682
|
+
}, u.padding = function(e) {
|
|
2683
|
+
return arguments.length ? u.paddingInner(e).paddingOuter(e) : u.paddingInner();
|
|
2684
|
+
}, u.paddingInner = function(e) {
|
|
2685
|
+
return arguments.length ? (a = typeof e == "function" ? e : J(+e), u) : a;
|
|
2686
|
+
}, u.paddingOuter = function(e) {
|
|
2687
|
+
return arguments.length ? u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e) : u.paddingTop();
|
|
2688
|
+
}, u.paddingTop = function(e) {
|
|
2689
|
+
return arguments.length ? (o = typeof e == "function" ? e : J(+e), u) : o;
|
|
2690
|
+
}, u.paddingRight = function(e) {
|
|
2691
|
+
return arguments.length ? (s = typeof e == "function" ? e : J(+e), u) : s;
|
|
2692
|
+
}, u.paddingBottom = function(e) {
|
|
2693
|
+
return arguments.length ? (c = typeof e == "function" ? e : J(+e), u) : c;
|
|
2694
|
+
}, u.paddingLeft = function(e) {
|
|
2695
|
+
return arguments.length ? (l = typeof e == "function" ? e : J(+e), u) : l;
|
|
2696
|
+
}, u;
|
|
2697
|
+
}
|
|
2698
|
+
//#endregion
|
|
2699
|
+
//#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/init.js
|
|
2700
|
+
function Zo(e, t) {
|
|
2701
|
+
switch (arguments.length) {
|
|
2702
|
+
case 0: break;
|
|
2703
|
+
case 1:
|
|
2704
|
+
this.range(e);
|
|
2705
|
+
break;
|
|
2706
|
+
default:
|
|
2707
|
+
this.range(t).domain(e);
|
|
2708
|
+
break;
|
|
2709
|
+
}
|
|
2710
|
+
return this;
|
|
2711
|
+
}
|
|
2712
|
+
//#endregion
|
|
2713
|
+
//#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/ordinal.js
|
|
2714
|
+
var Qo = Symbol("implicit");
|
|
2715
|
+
function $o() {
|
|
2716
|
+
var e = new u(), t = [], n = [], r = Qo;
|
|
2717
|
+
function i(i) {
|
|
2718
|
+
let a = e.get(i);
|
|
2719
|
+
if (a === void 0) {
|
|
2720
|
+
if (r !== Qo) return r;
|
|
2721
|
+
e.set(i, a = t.push(i) - 1);
|
|
2722
|
+
}
|
|
2723
|
+
return n[a % n.length];
|
|
2724
|
+
}
|
|
2725
|
+
return i.domain = function(n) {
|
|
2726
|
+
if (!arguments.length) return t.slice();
|
|
2727
|
+
t = [], e = new u();
|
|
2728
|
+
for (let r of n) e.has(r) || e.set(r, t.push(r) - 1);
|
|
2729
|
+
return i;
|
|
2730
|
+
}, i.range = function(e) {
|
|
2731
|
+
return arguments.length ? (n = Array.from(e), i) : n.slice();
|
|
2732
|
+
}, i.unknown = function(e) {
|
|
2733
|
+
return arguments.length ? (r = e, i) : r;
|
|
2734
|
+
}, i.copy = function() {
|
|
2735
|
+
return $o(t, n).unknown(r);
|
|
2736
|
+
}, Zo.apply(i, arguments), i;
|
|
2737
|
+
}
|
|
2738
|
+
//#endregion
|
|
2739
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/schedule.js
|
|
2740
|
+
var es = g("start", "end", "cancel", "interrupt"), ts = [];
|
|
2741
|
+
function ns(e, t, n, r, i, a) {
|
|
2742
|
+
var o = e.__transition;
|
|
2743
|
+
if (!o) e.__transition = {};
|
|
2744
|
+
else if (n in o) return;
|
|
2745
|
+
is(e, n, {
|
|
2746
|
+
name: t,
|
|
2747
|
+
index: r,
|
|
2748
|
+
group: i,
|
|
2749
|
+
on: es,
|
|
2750
|
+
tween: ts,
|
|
2751
|
+
time: a.time,
|
|
2752
|
+
delay: a.delay,
|
|
2753
|
+
duration: a.duration,
|
|
2754
|
+
ease: a.ease,
|
|
2755
|
+
timer: null,
|
|
2756
|
+
state: 0
|
|
2757
|
+
});
|
|
2758
|
+
}
|
|
2759
|
+
function rs(e, t) {
|
|
2760
|
+
var n = X(e, t);
|
|
2761
|
+
if (n.state > 0) throw Error("too late; already scheduled");
|
|
2762
|
+
return n;
|
|
2763
|
+
}
|
|
2764
|
+
function Y(e, t) {
|
|
2765
|
+
var n = X(e, t);
|
|
2766
|
+
if (n.state > 3) throw Error("too late; already running");
|
|
2767
|
+
return n;
|
|
2768
|
+
}
|
|
2769
|
+
function X(e, t) {
|
|
2770
|
+
var n = e.__transition;
|
|
2771
|
+
if (!n || !(n = n[t])) throw Error("transition not found");
|
|
2772
|
+
return n;
|
|
2773
|
+
}
|
|
2774
|
+
function is(e, t, n) {
|
|
2775
|
+
var r = e.__transition, i;
|
|
2776
|
+
r[t] = n, n.timer = qi(a, 0, n.time);
|
|
2777
|
+
function a(e) {
|
|
2778
|
+
n.state = 1, n.timer.restart(o, n.delay, n.time), n.delay <= e && o(e - n.delay);
|
|
2779
|
+
}
|
|
2780
|
+
function o(a) {
|
|
2781
|
+
var l, u, d, f;
|
|
2782
|
+
if (n.state !== 1) return c();
|
|
2783
|
+
for (l in r) if (f = r[l], f.name === n.name) {
|
|
2784
|
+
if (f.state === 3) return $i(o);
|
|
2785
|
+
f.state === 4 ? (f.state = 6, f.timer.stop(), f.on.call("interrupt", e, e.__data__, f.index, f.group), delete r[l]) : +l < t && (f.state = 6, f.timer.stop(), f.on.call("cancel", e, e.__data__, f.index, f.group), delete r[l]);
|
|
2786
|
+
}
|
|
2787
|
+
if ($i(function() {
|
|
2788
|
+
n.state === 3 && (n.state = 4, n.timer.restart(s, n.delay, n.time), s(a));
|
|
2789
|
+
}), n.state = 2, n.on.call("start", e, e.__data__, n.index, n.group), n.state === 2) {
|
|
2790
|
+
for (n.state = 3, i = Array(d = n.tween.length), l = 0, u = -1; l < d; ++l) (f = n.tween[l].value.call(e, e.__data__, n.index, n.group)) && (i[++u] = f);
|
|
2791
|
+
i.length = u + 1;
|
|
2792
|
+
}
|
|
2793
|
+
}
|
|
2794
|
+
function s(t) {
|
|
2795
|
+
for (var r = t < n.duration ? n.ease.call(null, t / n.duration) : (n.timer.restart(c), n.state = 5, 1), a = -1, o = i.length; ++a < o;) i[a].call(e, r);
|
|
2796
|
+
n.state === 5 && (n.on.call("end", e, e.__data__, n.index, n.group), c());
|
|
2797
|
+
}
|
|
2798
|
+
function c() {
|
|
2799
|
+
for (var i in n.state = 6, n.timer.stop(), delete r[t], r) return;
|
|
2800
|
+
delete e.__transition;
|
|
2801
|
+
}
|
|
2802
|
+
}
|
|
2803
|
+
//#endregion
|
|
2804
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/interrupt.js
|
|
2805
|
+
function as(e, t) {
|
|
2806
|
+
var n = e.__transition, r, i, a = !0, o;
|
|
2807
|
+
if (n) {
|
|
2808
|
+
for (o in t = t == null ? null : t + "", n) {
|
|
2809
|
+
if ((r = n[o]).name !== t) {
|
|
2810
|
+
a = !1;
|
|
2811
|
+
continue;
|
|
2812
|
+
}
|
|
2813
|
+
i = r.state > 2 && r.state < 5, r.state = 6, r.timer.stop(), r.on.call(i ? "interrupt" : "cancel", e, e.__data__, r.index, r.group), delete n[o];
|
|
2814
|
+
}
|
|
2815
|
+
a && delete e.__transition;
|
|
2816
|
+
}
|
|
2817
|
+
}
|
|
2818
|
+
//#endregion
|
|
2819
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/selection/interrupt.js
|
|
2820
|
+
function os(e) {
|
|
2821
|
+
return this.each(function() {
|
|
2822
|
+
as(this, e);
|
|
2823
|
+
});
|
|
2824
|
+
}
|
|
2825
|
+
//#endregion
|
|
2826
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/tween.js
|
|
2827
|
+
function ss(e, t) {
|
|
2828
|
+
var n, r;
|
|
2829
|
+
return function() {
|
|
2830
|
+
var i = Y(this, e), a = i.tween;
|
|
2831
|
+
if (a !== n) {
|
|
2832
|
+
r = n = a;
|
|
2833
|
+
for (var o = 0, s = r.length; o < s; ++o) if (r[o].name === t) {
|
|
2834
|
+
r = r.slice(), r.splice(o, 1);
|
|
2835
|
+
break;
|
|
2836
|
+
}
|
|
2837
|
+
}
|
|
2838
|
+
i.tween = r;
|
|
2839
|
+
};
|
|
2840
|
+
}
|
|
2841
|
+
function cs(e, t, n) {
|
|
2842
|
+
var r, i;
|
|
2843
|
+
if (typeof n != "function") throw Error();
|
|
2844
|
+
return function() {
|
|
2845
|
+
var a = Y(this, e), o = a.tween;
|
|
2846
|
+
if (o !== r) {
|
|
2847
|
+
i = (r = o).slice();
|
|
2848
|
+
for (var s = {
|
|
2849
|
+
name: t,
|
|
2850
|
+
value: n
|
|
2851
|
+
}, c = 0, l = i.length; c < l; ++c) if (i[c].name === t) {
|
|
2852
|
+
i[c] = s;
|
|
2853
|
+
break;
|
|
2854
|
+
}
|
|
2855
|
+
c === l && i.push(s);
|
|
2856
|
+
}
|
|
2857
|
+
a.tween = i;
|
|
2858
|
+
};
|
|
2859
|
+
}
|
|
2860
|
+
function ls(e, t) {
|
|
2861
|
+
var n = this._id;
|
|
2862
|
+
if (e += "", arguments.length < 2) {
|
|
2863
|
+
for (var r = X(this.node(), n).tween, i = 0, a = r.length, o; i < a; ++i) if ((o = r[i]).name === e) return o.value;
|
|
2864
|
+
return null;
|
|
2865
|
+
}
|
|
2866
|
+
return this.each((t == null ? ss : cs)(n, e, t));
|
|
2867
|
+
}
|
|
2868
|
+
function us(e, t, n) {
|
|
2869
|
+
var r = e._id;
|
|
2870
|
+
return e.each(function() {
|
|
2871
|
+
var e = Y(this, r);
|
|
2872
|
+
(e.value || (e.value = {}))[t] = n.apply(this, arguments);
|
|
2873
|
+
}), function(e) {
|
|
2874
|
+
return X(e, r).value[t];
|
|
2875
|
+
};
|
|
2876
|
+
}
|
|
2877
|
+
//#endregion
|
|
2878
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/interpolate.js
|
|
2879
|
+
function ds(e, t) {
|
|
2880
|
+
var n;
|
|
2881
|
+
return (typeof t == "number" ? P : t instanceof k ? kn : (n = k(t)) ? (t = n, kn) : Pn)(e, t);
|
|
2882
|
+
}
|
|
2883
|
+
//#endregion
|
|
2884
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/attr.js
|
|
2885
|
+
function fs(e) {
|
|
2886
|
+
return function() {
|
|
2887
|
+
this.removeAttribute(e);
|
|
2888
|
+
};
|
|
2889
|
+
}
|
|
2890
|
+
function ps(e) {
|
|
2891
|
+
return function() {
|
|
2892
|
+
this.removeAttributeNS(e.space, e.local);
|
|
2893
|
+
};
|
|
2894
|
+
}
|
|
2895
|
+
function ms(e, t, n) {
|
|
2896
|
+
var r, i = n + "", a;
|
|
2897
|
+
return function() {
|
|
2898
|
+
var o = this.getAttribute(e);
|
|
2899
|
+
return o === i ? null : o === r ? a : a = t(r = o, n);
|
|
2900
|
+
};
|
|
2901
|
+
}
|
|
2902
|
+
function hs(e, t, n) {
|
|
2903
|
+
var r, i = n + "", a;
|
|
2904
|
+
return function() {
|
|
2905
|
+
var o = this.getAttributeNS(e.space, e.local);
|
|
2906
|
+
return o === i ? null : o === r ? a : a = t(r = o, n);
|
|
2907
|
+
};
|
|
2908
|
+
}
|
|
2909
|
+
function gs(e, t, n) {
|
|
2910
|
+
var r, i, a;
|
|
2911
|
+
return function() {
|
|
2912
|
+
var o, s = n(this), c;
|
|
2913
|
+
return s == null ? void this.removeAttribute(e) : (o = this.getAttribute(e), c = s + "", o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s)));
|
|
2914
|
+
};
|
|
2915
|
+
}
|
|
2916
|
+
function _s(e, t, n) {
|
|
2917
|
+
var r, i, a;
|
|
2918
|
+
return function() {
|
|
2919
|
+
var o, s = n(this), c;
|
|
2920
|
+
return s == null ? void this.removeAttributeNS(e.space, e.local) : (o = this.getAttributeNS(e.space, e.local), c = s + "", o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s)));
|
|
2921
|
+
};
|
|
2922
|
+
}
|
|
2923
|
+
function vs(e, t) {
|
|
2924
|
+
var n = S(e), r = n === "transform" ? Un : ds;
|
|
2925
|
+
return this.attrTween(e, typeof t == "function" ? (n.local ? _s : gs)(n, r, us(this, "attr." + e, t)) : t == null ? (n.local ? ps : fs)(n) : (n.local ? hs : ms)(n, r, t));
|
|
2926
|
+
}
|
|
2927
|
+
//#endregion
|
|
2928
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/attrTween.js
|
|
2929
|
+
function ys(e, t) {
|
|
2930
|
+
return function(n) {
|
|
2931
|
+
this.setAttribute(e, t.call(this, n));
|
|
2932
|
+
};
|
|
2933
|
+
}
|
|
2934
|
+
function bs(e, t) {
|
|
2935
|
+
return function(n) {
|
|
2936
|
+
this.setAttributeNS(e.space, e.local, t.call(this, n));
|
|
2937
|
+
};
|
|
2938
|
+
}
|
|
2939
|
+
function xs(e, t) {
|
|
2940
|
+
var n, r;
|
|
2941
|
+
function i() {
|
|
2942
|
+
var i = t.apply(this, arguments);
|
|
2943
|
+
return i !== r && (n = (r = i) && bs(e, i)), n;
|
|
2944
|
+
}
|
|
2945
|
+
return i._value = t, i;
|
|
2946
|
+
}
|
|
2947
|
+
function Ss(e, t) {
|
|
2948
|
+
var n, r;
|
|
2949
|
+
function i() {
|
|
2950
|
+
var i = t.apply(this, arguments);
|
|
2951
|
+
return i !== r && (n = (r = i) && ys(e, i)), n;
|
|
2952
|
+
}
|
|
2953
|
+
return i._value = t, i;
|
|
2954
|
+
}
|
|
2955
|
+
function Cs(e, t) {
|
|
2956
|
+
var n = "attr." + e;
|
|
2957
|
+
if (arguments.length < 2) return (n = this.tween(n)) && n._value;
|
|
2958
|
+
if (t == null) return this.tween(n, null);
|
|
2959
|
+
if (typeof t != "function") throw Error();
|
|
2960
|
+
var r = S(e);
|
|
2961
|
+
return this.tween(n, (r.local ? xs : Ss)(r, t));
|
|
2962
|
+
}
|
|
2963
|
+
//#endregion
|
|
2964
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/delay.js
|
|
2965
|
+
function ws(e, t) {
|
|
2966
|
+
return function() {
|
|
2967
|
+
rs(this, e).delay = +t.apply(this, arguments);
|
|
2968
|
+
};
|
|
2969
|
+
}
|
|
2970
|
+
function Ts(e, t) {
|
|
2971
|
+
return t = +t, function() {
|
|
2972
|
+
rs(this, e).delay = t;
|
|
2973
|
+
};
|
|
2974
|
+
}
|
|
2975
|
+
function Es(e) {
|
|
2976
|
+
var t = this._id;
|
|
2977
|
+
return arguments.length ? this.each((typeof e == "function" ? ws : Ts)(t, e)) : X(this.node(), t).delay;
|
|
2978
|
+
}
|
|
2979
|
+
//#endregion
|
|
2980
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/duration.js
|
|
2981
|
+
function Ds(e, t) {
|
|
2982
|
+
return function() {
|
|
2983
|
+
Y(this, e).duration = +t.apply(this, arguments);
|
|
2984
|
+
};
|
|
2985
|
+
}
|
|
2986
|
+
function Os(e, t) {
|
|
2987
|
+
return t = +t, function() {
|
|
2988
|
+
Y(this, e).duration = t;
|
|
2989
|
+
};
|
|
2990
|
+
}
|
|
2991
|
+
function ks(e) {
|
|
2992
|
+
var t = this._id;
|
|
2993
|
+
return arguments.length ? this.each((typeof e == "function" ? Ds : Os)(t, e)) : X(this.node(), t).duration;
|
|
2994
|
+
}
|
|
2995
|
+
//#endregion
|
|
2996
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/ease.js
|
|
2997
|
+
function As(e, t) {
|
|
2998
|
+
if (typeof t != "function") throw Error();
|
|
2999
|
+
return function() {
|
|
3000
|
+
Y(this, e).ease = t;
|
|
3001
|
+
};
|
|
3002
|
+
}
|
|
3003
|
+
function js(e) {
|
|
3004
|
+
var t = this._id;
|
|
3005
|
+
return arguments.length ? this.each(As(t, e)) : X(this.node(), t).ease;
|
|
3006
|
+
}
|
|
3007
|
+
//#endregion
|
|
3008
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/easeVarying.js
|
|
3009
|
+
function Ms(e, t) {
|
|
3010
|
+
return function() {
|
|
3011
|
+
var n = t.apply(this, arguments);
|
|
3012
|
+
if (typeof n != "function") throw Error();
|
|
3013
|
+
Y(this, e).ease = n;
|
|
3014
|
+
};
|
|
3015
|
+
}
|
|
3016
|
+
function Ns(e) {
|
|
3017
|
+
if (typeof e != "function") throw Error();
|
|
3018
|
+
return this.each(Ms(this._id, e));
|
|
3019
|
+
}
|
|
3020
|
+
//#endregion
|
|
3021
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/filter.js
|
|
3022
|
+
function Ps(e) {
|
|
3023
|
+
typeof e != "function" && (e = de(e));
|
|
3024
|
+
for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = [], c, l = 0; l < o; ++l) (c = a[l]) && e.call(c, c.__data__, l, a) && s.push(c);
|
|
3025
|
+
return new Z(r, this._parents, this._name, this._id);
|
|
3026
|
+
}
|
|
3027
|
+
//#endregion
|
|
3028
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/merge.js
|
|
3029
|
+
function Fs(e) {
|
|
3030
|
+
if (e._id !== this._id) throw Error();
|
|
3031
|
+
for (var t = this._groups, n = e._groups, r = t.length, i = n.length, a = Math.min(r, i), o = Array(r), s = 0; s < a; ++s) for (var c = t[s], l = n[s], u = c.length, d = o[s] = Array(u), f, p = 0; p < u; ++p) (f = c[p] || l[p]) && (d[p] = f);
|
|
3032
|
+
for (; s < r; ++s) o[s] = t[s];
|
|
3033
|
+
return new Z(o, this._parents, this._name, this._id);
|
|
3034
|
+
}
|
|
3035
|
+
//#endregion
|
|
3036
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/on.js
|
|
3037
|
+
function Is(e) {
|
|
3038
|
+
return (e + "").trim().split(/^|\s+/).every(function(e) {
|
|
3039
|
+
var t = e.indexOf(".");
|
|
3040
|
+
return t >= 0 && (e = e.slice(0, t)), !e || e === "start";
|
|
3041
|
+
});
|
|
3042
|
+
}
|
|
3043
|
+
function Ls(e, t, n) {
|
|
3044
|
+
var r, i, a = Is(t) ? rs : Y;
|
|
3045
|
+
return function() {
|
|
3046
|
+
var o = a(this, e), s = o.on;
|
|
3047
|
+
s !== r && (i = (r = s).copy()).on(t, n), o.on = i;
|
|
3048
|
+
};
|
|
3049
|
+
}
|
|
3050
|
+
function Rs(e, t) {
|
|
3051
|
+
var n = this._id;
|
|
3052
|
+
return arguments.length < 2 ? X(this.node(), n).on.on(e) : this.each(Ls(n, e, t));
|
|
3053
|
+
}
|
|
3054
|
+
//#endregion
|
|
3055
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/remove.js
|
|
3056
|
+
function zs(e) {
|
|
3057
|
+
return function() {
|
|
3058
|
+
var t = this.parentNode;
|
|
3059
|
+
for (var n in this.__transition) if (+n !== e) return;
|
|
3060
|
+
t && t.removeChild(this);
|
|
3061
|
+
};
|
|
3062
|
+
}
|
|
3063
|
+
function Bs() {
|
|
3064
|
+
return this.on("end.remove", zs(this._id));
|
|
3065
|
+
}
|
|
3066
|
+
//#endregion
|
|
3067
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/select.js
|
|
3068
|
+
function Vs(e) {
|
|
3069
|
+
var t = this._name, n = this._id;
|
|
3070
|
+
typeof e != "function" && (e = ie(e));
|
|
3071
|
+
for (var r = this._groups, i = r.length, a = Array(i), o = 0; o < i; ++o) for (var s = r[o], c = s.length, l = a[o] = Array(c), u, d, f = 0; f < c; ++f) (u = s[f]) && (d = e.call(u, u.__data__, f, s)) && ("__data__" in u && (d.__data__ = u.__data__), l[f] = d, ns(l[f], t, n, f, l, X(u, n)));
|
|
3072
|
+
return new Z(a, this._parents, t, n);
|
|
3073
|
+
}
|
|
3074
|
+
//#endregion
|
|
3075
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/selectAll.js
|
|
3076
|
+
function Hs(e) {
|
|
3077
|
+
var t = this._name, n = this._id;
|
|
3078
|
+
typeof e != "function" && (e = ce(e));
|
|
3079
|
+
for (var r = this._groups, i = r.length, a = [], o = [], s = 0; s < i; ++s) for (var c = r[s], l = c.length, u, d = 0; d < l; ++d) if (u = c[d]) {
|
|
3080
|
+
for (var f = e.call(u, u.__data__, d, c), p, m = X(u, n), h = 0, g = f.length; h < g; ++h) (p = f[h]) && ns(p, t, n, h, f, m);
|
|
3081
|
+
a.push(f), o.push(u);
|
|
3082
|
+
}
|
|
3083
|
+
return new Z(a, o, t, n);
|
|
3084
|
+
}
|
|
3085
|
+
//#endregion
|
|
3086
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/selection.js
|
|
3087
|
+
var Us = T.prototype.constructor;
|
|
3088
|
+
function Ws() {
|
|
3089
|
+
return new Us(this._groups, this._parents);
|
|
3090
|
+
}
|
|
3091
|
+
//#endregion
|
|
3092
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/style.js
|
|
3093
|
+
function Gs(e, t) {
|
|
3094
|
+
var n, r, i;
|
|
3095
|
+
return function() {
|
|
3096
|
+
var a = C(this, e), o = (this.style.removeProperty(e), C(this, e));
|
|
3097
|
+
return a === o ? null : a === n && o === r ? i : i = t(n = a, r = o);
|
|
3098
|
+
};
|
|
3099
|
+
}
|
|
3100
|
+
function Ks(e) {
|
|
3101
|
+
return function() {
|
|
3102
|
+
this.style.removeProperty(e);
|
|
3103
|
+
};
|
|
3104
|
+
}
|
|
3105
|
+
function qs(e, t, n) {
|
|
3106
|
+
var r, i = n + "", a;
|
|
3107
|
+
return function() {
|
|
3108
|
+
var o = C(this, e);
|
|
3109
|
+
return o === i ? null : o === r ? a : a = t(r = o, n);
|
|
3110
|
+
};
|
|
3111
|
+
}
|
|
3112
|
+
function Js(e, t, n) {
|
|
3113
|
+
var r, i, a;
|
|
3114
|
+
return function() {
|
|
3115
|
+
var o = C(this, e), s = n(this), c = s + "";
|
|
3116
|
+
return s == null && (c = s = (this.style.removeProperty(e), C(this, e))), o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s));
|
|
3117
|
+
};
|
|
3118
|
+
}
|
|
3119
|
+
function Ys(e, t) {
|
|
3120
|
+
var n, r, i, a = "style." + t, o = "end." + a, s;
|
|
3121
|
+
return function() {
|
|
3122
|
+
var c = Y(this, e), l = c.on, u = c.value[a] == null ? s || (s = Ks(t)) : void 0;
|
|
3123
|
+
(l !== n || i !== u) && (r = (n = l).copy()).on(o, i = u), c.on = r;
|
|
3124
|
+
};
|
|
3125
|
+
}
|
|
3126
|
+
function Xs(e, t, n) {
|
|
3127
|
+
var r = (e += "") == "transform" ? Hn : ds;
|
|
3128
|
+
return t == null ? this.styleTween(e, Gs(e, r)).on("end.style." + e, Ks(e)) : typeof t == "function" ? this.styleTween(e, Js(e, r, us(this, "style." + e, t))).each(Ys(this._id, e)) : this.styleTween(e, qs(e, r, t), n).on("end.style." + e, null);
|
|
3129
|
+
}
|
|
3130
|
+
//#endregion
|
|
3131
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/styleTween.js
|
|
3132
|
+
function Zs(e, t, n) {
|
|
3133
|
+
return function(r) {
|
|
3134
|
+
this.style.setProperty(e, t.call(this, r), n);
|
|
3135
|
+
};
|
|
3136
|
+
}
|
|
3137
|
+
function Qs(e, t, n) {
|
|
3138
|
+
var r, i;
|
|
3139
|
+
function a() {
|
|
3140
|
+
var a = t.apply(this, arguments);
|
|
3141
|
+
return a !== i && (r = (i = a) && Zs(e, a, n)), r;
|
|
3142
|
+
}
|
|
3143
|
+
return a._value = t, a;
|
|
3144
|
+
}
|
|
3145
|
+
function $s(e, t, n) {
|
|
3146
|
+
var r = "style." + (e += "");
|
|
3147
|
+
if (arguments.length < 2) return (r = this.tween(r)) && r._value;
|
|
3148
|
+
if (t == null) return this.tween(r, null);
|
|
3149
|
+
if (typeof t != "function") throw Error();
|
|
3150
|
+
return this.tween(r, Qs(e, t, n == null ? "" : n));
|
|
3151
|
+
}
|
|
3152
|
+
//#endregion
|
|
3153
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/text.js
|
|
3154
|
+
function ec(e) {
|
|
3155
|
+
return function() {
|
|
3156
|
+
this.textContent = e;
|
|
3157
|
+
};
|
|
3158
|
+
}
|
|
3159
|
+
function tc(e) {
|
|
3160
|
+
return function() {
|
|
3161
|
+
var t = e(this);
|
|
3162
|
+
this.textContent = t == null ? "" : t;
|
|
3163
|
+
};
|
|
3164
|
+
}
|
|
3165
|
+
function nc(e) {
|
|
3166
|
+
return this.tween("text", typeof e == "function" ? tc(us(this, "text", e)) : ec(e == null ? "" : e + ""));
|
|
3167
|
+
}
|
|
3168
|
+
//#endregion
|
|
3169
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/textTween.js
|
|
3170
|
+
function rc(e) {
|
|
3171
|
+
return function(t) {
|
|
3172
|
+
this.textContent = e.call(this, t);
|
|
3173
|
+
};
|
|
3174
|
+
}
|
|
3175
|
+
function ic(e) {
|
|
3176
|
+
var t, n;
|
|
3177
|
+
function r() {
|
|
3178
|
+
var r = e.apply(this, arguments);
|
|
3179
|
+
return r !== n && (t = (n = r) && rc(r)), t;
|
|
3180
|
+
}
|
|
3181
|
+
return r._value = e, r;
|
|
3182
|
+
}
|
|
3183
|
+
function ac(e) {
|
|
3184
|
+
var t = "text";
|
|
3185
|
+
if (arguments.length < 1) return (t = this.tween(t)) && t._value;
|
|
3186
|
+
if (e == null) return this.tween(t, null);
|
|
3187
|
+
if (typeof e != "function") throw Error();
|
|
3188
|
+
return this.tween(t, ic(e));
|
|
3189
|
+
}
|
|
3190
|
+
//#endregion
|
|
3191
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/transition.js
|
|
3192
|
+
function oc() {
|
|
3193
|
+
for (var e = this._name, t = this._id, n = uc(), r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) if (c = o[l]) {
|
|
3194
|
+
var u = X(c, t);
|
|
3195
|
+
ns(c, e, n, l, o, {
|
|
3196
|
+
time: u.time + u.delay + u.duration,
|
|
3197
|
+
delay: 0,
|
|
3198
|
+
duration: u.duration,
|
|
3199
|
+
ease: u.ease
|
|
3200
|
+
});
|
|
3201
|
+
}
|
|
3202
|
+
return new Z(r, this._parents, e, n);
|
|
3203
|
+
}
|
|
3204
|
+
//#endregion
|
|
3205
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/end.js
|
|
3206
|
+
function sc() {
|
|
3207
|
+
var e, t, n = this, r = n._id, i = n.size();
|
|
3208
|
+
return new Promise(function(a, o) {
|
|
3209
|
+
var s = { value: o }, c = { value: function() {
|
|
3210
|
+
--i === 0 && a();
|
|
3211
|
+
} };
|
|
3212
|
+
n.each(function() {
|
|
3213
|
+
var n = Y(this, r), i = n.on;
|
|
3214
|
+
i !== e && (t = (e = i).copy(), t._.cancel.push(s), t._.interrupt.push(s), t._.end.push(c)), n.on = t;
|
|
3215
|
+
}), i === 0 && a();
|
|
3216
|
+
});
|
|
3217
|
+
}
|
|
3218
|
+
//#endregion
|
|
3219
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/transition/index.js
|
|
3220
|
+
var cc = 0;
|
|
3221
|
+
function Z(e, t, n, r) {
|
|
3222
|
+
this._groups = e, this._parents = t, this._name = n, this._id = r;
|
|
3223
|
+
}
|
|
3224
|
+
function lc(e) {
|
|
3225
|
+
return T().transition(e);
|
|
3226
|
+
}
|
|
3227
|
+
function uc() {
|
|
3228
|
+
return ++cc;
|
|
3229
|
+
}
|
|
3230
|
+
var Q = T.prototype;
|
|
3231
|
+
Z.prototype = lc.prototype = {
|
|
3232
|
+
constructor: Z,
|
|
3233
|
+
select: Vs,
|
|
3234
|
+
selectAll: Hs,
|
|
3235
|
+
filter: Ps,
|
|
3236
|
+
merge: Fs,
|
|
3237
|
+
selection: Ws,
|
|
3238
|
+
transition: oc,
|
|
3239
|
+
call: Q.call,
|
|
3240
|
+
nodes: Q.nodes,
|
|
3241
|
+
node: Q.node,
|
|
3242
|
+
size: Q.size,
|
|
3243
|
+
empty: Q.empty,
|
|
3244
|
+
each: Q.each,
|
|
3245
|
+
on: Rs,
|
|
3246
|
+
attr: vs,
|
|
3247
|
+
attrTween: Cs,
|
|
3248
|
+
style: Xs,
|
|
3249
|
+
styleTween: $s,
|
|
3250
|
+
text: nc,
|
|
3251
|
+
textTween: ac,
|
|
3252
|
+
remove: Bs,
|
|
3253
|
+
tween: ls,
|
|
3254
|
+
delay: Es,
|
|
3255
|
+
duration: ks,
|
|
3256
|
+
ease: js,
|
|
3257
|
+
easeVarying: Ns,
|
|
3258
|
+
end: sc,
|
|
3259
|
+
[Symbol.iterator]: Q[Symbol.iterator]
|
|
3260
|
+
};
|
|
3261
|
+
//#endregion
|
|
3262
|
+
//#region ../../node_modules/.pnpm/d3-transition@2.0.0_d3-selection@2.0.0/node_modules/d3-transition/src/selection/transition.js
|
|
3263
|
+
var dc = {
|
|
3264
|
+
time: null,
|
|
3265
|
+
delay: 0,
|
|
3266
|
+
duration: 250,
|
|
3267
|
+
ease: fo
|
|
3268
|
+
};
|
|
3269
|
+
function fc(e, t) {
|
|
3270
|
+
for (var n; !(n = e.__transition) || !(n = n[t]);) if (!(e = e.parentNode)) throw Error(`transition ${t} not found`);
|
|
3271
|
+
return n;
|
|
3272
|
+
}
|
|
3273
|
+
function pc(e) {
|
|
3274
|
+
var t, n;
|
|
3275
|
+
e instanceof Z ? (t = e._id, e = e._name) : (t = uc(), (n = dc).time = Wi(), e = e == null ? null : e + "");
|
|
3276
|
+
for (var r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) && ns(c, e, t, l, o, n || fc(c, t));
|
|
3277
|
+
return new Z(r, this._parents, e, t);
|
|
3278
|
+
}
|
|
3279
|
+
T.prototype.interrupt = os, T.prototype.transition = pc;
|
|
3280
|
+
//#endregion
|
|
3281
|
+
//#region ../../node_modules/.pnpm/d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.js
|
|
3282
|
+
function $(e, t, n) {
|
|
3283
|
+
this.k = e, this.x = t, this.y = n;
|
|
3284
|
+
}
|
|
3285
|
+
$.prototype = {
|
|
3286
|
+
constructor: $,
|
|
3287
|
+
scale: function(e) {
|
|
3288
|
+
return e === 1 ? this : new $(this.k * e, this.x, this.y);
|
|
3289
|
+
},
|
|
3290
|
+
translate: function(e, t) {
|
|
3291
|
+
return e === 0 & t === 0 ? this : new $(this.k, this.x + this.k * e, this.y + this.k * t);
|
|
3292
|
+
},
|
|
3293
|
+
apply: function(e) {
|
|
3294
|
+
return [e[0] * this.k + this.x, e[1] * this.k + this.y];
|
|
3295
|
+
},
|
|
3296
|
+
applyX: function(e) {
|
|
3297
|
+
return e * this.k + this.x;
|
|
3298
|
+
},
|
|
3299
|
+
applyY: function(e) {
|
|
3300
|
+
return e * this.k + this.y;
|
|
3301
|
+
},
|
|
3302
|
+
invert: function(e) {
|
|
3303
|
+
return [(e[0] - this.x) / this.k, (e[1] - this.y) / this.k];
|
|
3304
|
+
},
|
|
3305
|
+
invertX: function(e) {
|
|
3306
|
+
return (e - this.x) / this.k;
|
|
3307
|
+
},
|
|
3308
|
+
invertY: function(e) {
|
|
3309
|
+
return (e - this.y) / this.k;
|
|
3310
|
+
},
|
|
3311
|
+
rescaleX: function(e) {
|
|
3312
|
+
return e.copy().domain(e.range().map(this.invertX, this).map(e.invert, e));
|
|
3313
|
+
},
|
|
3314
|
+
rescaleY: function(e) {
|
|
3315
|
+
return e.copy().domain(e.range().map(this.invertY, this).map(e.invert, e));
|
|
3316
|
+
},
|
|
3317
|
+
toString: function() {
|
|
3318
|
+
return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
|
|
3319
|
+
}
|
|
3320
|
+
};
|
|
3321
|
+
var mc = new $(1, 0, 0);
|
|
3322
|
+
hc.prototype = $.prototype;
|
|
3323
|
+
function hc(e) {
|
|
3324
|
+
for (; !e.__zoom;) if (!(e = e.parentNode)) return mc;
|
|
3325
|
+
return e.__zoom;
|
|
3326
|
+
}
|
|
3327
|
+
//#endregion
|
|
3328
|
+
//#region src/hierarchy-viewer/treemap.tsx
|
|
3329
|
+
var gc = i.div`
|
|
3330
|
+
cursor: ${(e) => e.isInteractive ? "pointer" : "normal"};
|
|
24
3331
|
|
|
25
3332
|
display: flex;
|
|
26
|
-
align-items: ${(
|
|
3333
|
+
align-items: ${(e) => e.hasChildren ? "flex-start" : "center"};
|
|
27
3334
|
justify-content: center;
|
|
28
3335
|
|
|
29
3336
|
width: 100%;
|
|
@@ -34,68 +3341,90 @@ const NodeLabel = styled.div `
|
|
|
34
3341
|
text-align: center;
|
|
35
3342
|
|
|
36
3343
|
:hover {
|
|
37
|
-
border: ${(
|
|
3344
|
+
border: ${(e) => e.isInteractive ? `2px solid ${e.theme.colors.primary}` : "2px solid transparent"};
|
|
38
3345
|
}
|
|
39
3346
|
`;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
*/
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
3347
|
+
function _c(t) {
|
|
3348
|
+
var n, r, i, a;
|
|
3349
|
+
let { node: o, onClick: u } = t, d = (t.maxDepth - t.node.depth % 5).toString(), f = t.color(d).toString(), p = Number.isNaN(o.x1 - o.x0) ? void 0 : o.x1 - o.x0, m = Number.isNaN(o.y1 - o.y0) ? void 0 : o.y1 - o.y0, h = !!((n = o.children) != null && n.length), g = h ? !!t.allowParentClick : !!t.allowLeafClick, _ = e(() => {
|
|
3350
|
+
u(o.data);
|
|
3351
|
+
}, [o, u]);
|
|
3352
|
+
return /* @__PURE__ */ l(s, { children: [
|
|
3353
|
+
/* @__PURE__ */ c("rect", {
|
|
3354
|
+
fill: f,
|
|
3355
|
+
height: m,
|
|
3356
|
+
width: p,
|
|
3357
|
+
x: o.x0,
|
|
3358
|
+
y: Number.isNaN(o.y0) ? void 0 : o.y0
|
|
3359
|
+
}),
|
|
3360
|
+
/* @__PURE__ */ c("foreignObject", {
|
|
3361
|
+
height: m,
|
|
3362
|
+
onClick: _,
|
|
3363
|
+
width: p,
|
|
3364
|
+
x: o.x0,
|
|
3365
|
+
y: Number.isNaN(o.y0) ? void 0 : o.y0,
|
|
3366
|
+
children: /* @__PURE__ */ c(gc, {
|
|
3367
|
+
hasChildren: h,
|
|
3368
|
+
isInteractive: g,
|
|
3369
|
+
title: `${(r = o.data) == null ? void 0 : r.label} (${(i = o.data) == null ? void 0 : i.weight})`,
|
|
3370
|
+
children: /* @__PURE__ */ c("span", { children: (a = o.data) == null ? void 0 : a.label })
|
|
3371
|
+
})
|
|
3372
|
+
}),
|
|
3373
|
+
o.children && o.children.map((e) => {
|
|
3374
|
+
var n;
|
|
3375
|
+
return /* @__PURE__ */ c(_c, {
|
|
3376
|
+
allowLeafClick: t.allowLeafClick,
|
|
3377
|
+
allowParentClick: t.allowParentClick,
|
|
3378
|
+
color: t.color,
|
|
3379
|
+
maxDepth: t.maxDepth,
|
|
3380
|
+
node: e,
|
|
3381
|
+
onClick: t.onClick
|
|
3382
|
+
}, (n = e.data) == null ? void 0 : n.id);
|
|
3383
|
+
})
|
|
3384
|
+
] });
|
|
3385
|
+
}
|
|
3386
|
+
function vc(e) {
|
|
3387
|
+
let i = a(), s = n(), [l, u] = r();
|
|
3388
|
+
t(() => {
|
|
3389
|
+
if (e.data) {
|
|
3390
|
+
let t = Fo(e.data).sum((e) => e.children && e.children.length > 0 ? 0 : e.weight);
|
|
3391
|
+
Xo().size([e.width, e.height]).paddingTop(28).paddingBottom(8).paddingRight(7).paddingLeft(7).paddingInner(3)(t), u(t);
|
|
3392
|
+
}
|
|
3393
|
+
}, o([
|
|
3394
|
+
e.data,
|
|
3395
|
+
e.height,
|
|
3396
|
+
e.width
|
|
3397
|
+
]));
|
|
3398
|
+
let d = $o().domain([
|
|
3399
|
+
"0",
|
|
3400
|
+
"1",
|
|
3401
|
+
"2",
|
|
3402
|
+
"3",
|
|
3403
|
+
"4"
|
|
3404
|
+
]).range([
|
|
3405
|
+
i.colors.grey2,
|
|
3406
|
+
i.colors.grey3,
|
|
3407
|
+
i.colors.grey4,
|
|
3408
|
+
i.colors.grey5,
|
|
3409
|
+
i.colors.grey6
|
|
3410
|
+
]);
|
|
3411
|
+
if (!l) return null;
|
|
3412
|
+
let f = l.leaves() ? l.leaves()[0].depth : 0;
|
|
3413
|
+
return /* @__PURE__ */ c("svg", {
|
|
3414
|
+
height: e.height,
|
|
3415
|
+
ref: s,
|
|
3416
|
+
width: e.width,
|
|
3417
|
+
children: /* @__PURE__ */ c(_c, {
|
|
3418
|
+
allowLeafClick: e.allowLeafClick,
|
|
3419
|
+
allowParentClick: e.allowParentClick,
|
|
3420
|
+
color: d,
|
|
3421
|
+
maxDepth: f,
|
|
3422
|
+
node: l,
|
|
3423
|
+
onClick: e.onClick
|
|
3424
|
+
})
|
|
3425
|
+
});
|
|
99
3426
|
}
|
|
100
|
-
|
|
3427
|
+
//#endregion
|
|
3428
|
+
export { vc as default };
|
|
3429
|
+
|
|
101
3430
|
//# sourceMappingURL=treemap.js.map
|