Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

3525 lines
103 KiB
JavaScript

(globalThis.TURBOPACK || (globalThis.TURBOPACK = [])).push([
"object" == typeof document ? document.currentScript : void 0,
8164,
483560,
657531,
82258,
793560,
107949,
247699,
692423,
(t) => {
"use strict";
var e = { value: () => {} };
function n() {
for (var t, e = 0, n = arguments.length, i = {}; e < n; ++e) {
if (!(t = arguments[e] + "") || t in i || /[\s.]/.test(t))
throw Error("illegal type: " + t);
i[t] = [];
}
return new r(i);
}
function r(t) {
this._ = t;
}
function i(t, n, r) {
for (var i = 0, o = t.length; i < o; ++i)
if (t[i].name === n) {
(t[i] = e), (t = t.slice(0, i).concat(t.slice(i + 1)));
break;
}
return null != r && t.push({ name: n, value: r }), t;
}
function o() {}
function a(t) {
return null == t
? o
: function () {
return this.querySelector(t);
};
}
function u() {
return [];
}
function s(t) {
return null == t
? u
: function () {
return this.querySelectorAll(t);
};
}
function l(t) {
return function () {
return this.matches(t);
};
}
function c(t) {
return function (e) {
return e.matches(t);
};
}
(r.prototype = n.prototype =
{
constructor: r,
on: function (t, e) {
var n,
r = this._,
o = (t + "")
.trim()
.split(/^|\s+/)
.map(function (t) {
var e = "",
n = t.indexOf(".");
if (
(n >= 0 && ((e = t.slice(n + 1)), (t = t.slice(0, n))),
t && !r.hasOwnProperty(t))
)
throw Error("unknown type: " + t);
return { type: t, name: e };
}),
a = -1,
u = o.length;
if (arguments.length < 2) {
for (; ++a < u; )
if (
(n = (t = o[a]).type) &&
(n = (function (t, e) {
for (var n, r = 0, i = t.length; r < i; ++r)
if ((n = t[r]).name === e) return n.value;
})(r[n], t.name))
)
return n;
return;
}
if (null != e && "function" != typeof e)
throw Error("invalid callback: " + e);
for (; ++a < u; )
if ((n = (t = o[a]).type)) r[n] = i(r[n], t.name, e);
else if (null == e) for (n in r) r[n] = i(r[n], t.name, null);
return this;
},
copy: function () {
var t = {},
e = this._;
for (var n in e) t[n] = e[n].slice();
return new r(t);
},
call: function (t, e) {
if ((n = arguments.length - 2) > 0)
for (var n, r, i = Array(n), o = 0; o < n; ++o)
i[o] = arguments[o + 2];
if (!this._.hasOwnProperty(t)) throw Error("unknown type: " + t);
for (r = this._[t], o = 0, n = r.length; o < n; ++o)
r[o].value.apply(e, i);
},
apply: function (t, e, n) {
if (!this._.hasOwnProperty(t)) throw Error("unknown type: " + t);
for (var r = this._[t], i = 0, o = r.length; i < o; ++i)
r[i].value.apply(e, n);
},
}),
t.s(["dispatch", 0, n], 8164),
t.s(["Selection", () => L, "default", () => G, "root", () => H], 247699),
t.s(["default", 0, a], 483560),
t.s(["default", 0, s], 657531),
t.s(["childMatcher", () => c, "default", 0, l], 82258);
var f = Array.prototype.find;
function h() {
return this.firstElementChild;
}
var p = Array.prototype.filter;
function d() {
return Array.from(this.children);
}
function v(t) {
return Array(t.length);
}
function m(t, e) {
(this.ownerDocument = t.ownerDocument),
(this.namespaceURI = t.namespaceURI),
(this._next = null),
(this._parent = t),
(this.__data__ = e);
}
function y(t, e, n, r, i, o) {
for (var a, u = 0, s = e.length, l = o.length; u < l; ++u)
(a = e[u])
? ((a.__data__ = o[u]), (r[u] = a))
: (n[u] = new m(t, o[u]));
for (; u < s; ++u) (a = e[u]) && (i[u] = a);
}
function g(t, e, n, r, i, o, a) {
var u,
s,
l,
c = new Map(),
f = e.length,
h = o.length,
p = Array(f);
for (u = 0; u < f; ++u)
(s = e[u]) &&
((p[u] = l = a.call(s, s.__data__, u, e) + ""),
c.has(l) ? (i[u] = s) : c.set(l, s));
for (u = 0; u < h; ++u)
(l = a.call(t, o[u], u, o) + ""),
(s = c.get(l))
? ((r[u] = s), (s.__data__ = o[u]), c.delete(l))
: (n[u] = new m(t, o[u]));
for (u = 0; u < f; ++u) (s = e[u]) && c.get(p[u]) === s && (i[u] = s);
}
function _(t) {
return t.__data__;
}
function w(t, e) {
return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
}
m.prototype = {
constructor: m,
appendChild: function (t) {
return this._parent.insertBefore(t, this._next);
},
insertBefore: function (t, e) {
return this._parent.insertBefore(t, e);
},
querySelector: function (t) {
return this._parent.querySelector(t);
},
querySelectorAll: function (t) {
return this._parent.querySelectorAll(t);
},
};
var x = "http://www.w3.org/1999/xhtml";
let b = {
svg: "http://www.w3.org/2000/svg",
xhtml: x,
xlink: "http://www.w3.org/1999/xlink",
xml: "http://www.w3.org/XML/1998/namespace",
xmlns: "http://www.w3.org/2000/xmlns/",
};
function k(t) {
var e = (t += ""),
n = e.indexOf(":");
return (
n >= 0 && "xmlns" !== (e = t.slice(0, n)) && (t = t.slice(n + 1)),
b.hasOwnProperty(e) ? { space: b[e], local: t } : t
);
}
function A(t) {
return (
(t.ownerDocument && t.ownerDocument.defaultView) ||
(t.document && t) ||
t.defaultView
);
}
function M(t, e, n) {
return arguments.length > 1
? this.each(
(null == e
? function (t) {
return function () {
this.style.removeProperty(t);
};
}
: "function" == typeof e
? function (t, e, n) {
return function () {
var r = e.apply(this, arguments);
null == r
? this.style.removeProperty(t)
: this.style.setProperty(t, r, n);
};
}
: function (t, e, n) {
return function () {
this.style.setProperty(t, e, n);
};
})(t, e, null == n ? "" : n),
)
: N(this.node(), t);
}
function N(t, e) {
return (
t.style.getPropertyValue(e) ||
A(t).getComputedStyle(t, null).getPropertyValue(e)
);
}
function E(t) {
return t.trim().split(/^|\s+/);
}
function z(t) {
return t.classList || new S(t);
}
function S(t) {
(this._node = t), (this._names = E(t.getAttribute("class") || ""));
}
function T(t, e) {
for (var n = z(t), r = -1, i = e.length; ++r < i; ) n.add(e[r]);
}
function $(t, e) {
for (var n = z(t), r = -1, i = e.length; ++r < i; ) n.remove(e[r]);
}
function C() {
this.textContent = "";
}
function P() {
this.innerHTML = "";
}
function V() {
this.nextSibling && this.parentNode.appendChild(this);
}
function X() {
this.previousSibling &&
this.parentNode.insertBefore(this, this.parentNode.firstChild);
}
function q(t) {
var e = k(t);
return (
e.local
? function (t) {
return function () {
return this.ownerDocument.createElementNS(t.space, t.local);
};
}
: function (t) {
return function () {
var e = this.ownerDocument,
n = this.namespaceURI;
return n === x && e.documentElement.namespaceURI === x
? e.createElement(t)
: e.createElementNS(n, t);
};
}
)(e);
}
function R() {
return null;
}
function D() {
var t = this.parentNode;
t && t.removeChild(this);
}
function O() {
var t = this.cloneNode(!1),
e = this.parentNode;
return e ? e.insertBefore(t, this.nextSibling) : t;
}
function Y() {
var t = this.cloneNode(!0),
e = this.parentNode;
return e ? e.insertBefore(t, this.nextSibling) : t;
}
function I(t) {
return function () {
var e = this.__on;
if (e) {
for (var n, r = 0, i = -1, o = e.length; r < o; ++r)
((n = e[r]), (t.type && n.type !== t.type) || n.name !== t.name)
? (e[++i] = n)
: this.removeEventListener(n.type, n.listener, n.options);
++i ? (e.length = i) : delete this.__on;
}
};
}
function B(t, e, n) {
return function () {
var r,
i = this.__on,
o = function (t) {
e.call(this, t, this.__data__);
};
if (i) {
for (var a = 0, u = i.length; a < u; ++a)
if ((r = i[a]).type === t.type && r.name === t.name) {
this.removeEventListener(r.type, r.listener, r.options),
this.addEventListener(
r.type,
(r.listener = o),
(r.options = n),
),
(r.value = e);
return;
}
}
this.addEventListener(t.type, o, n),
(r = {
type: t.type,
name: t.name,
value: e,
listener: o,
options: n,
}),
i ? i.push(r) : (this.__on = [r]);
};
}
function j(t, e, n) {
var r = A(t),
i = r.CustomEvent;
"function" == typeof i
? (i = new i(e, n))
: ((i = r.document.createEvent("Event")),
n
? (i.initEvent(e, n.bubbles, n.cancelable), (i.detail = n.detail))
: i.initEvent(e, !1, !1)),
t.dispatchEvent(i);
}
t.s(["default", 0, k], 793560),
t.s(["default", 0, M, "styleValue", () => N], 107949),
(S.prototype = {
add: function (t) {
0 > this._names.indexOf(t) &&
(this._names.push(t),
this._node.setAttribute("class", this._names.join(" ")));
},
remove: function (t) {
var e = this._names.indexOf(t);
e >= 0 &&
(this._names.splice(e, 1),
this._node.setAttribute("class", this._names.join(" ")));
},
contains: function (t) {
return this._names.indexOf(t) >= 0;
},
});
var H = [null];
function L(t, e) {
(this._groups = t), (this._parents = e);
}
function U() {
return new L([[document.documentElement]], H);
}
L.prototype = U.prototype = {
constructor: L,
select: function (t) {
"function" != typeof t && (t = a(t));
for (
var e = this._groups, n = e.length, r = Array(n), i = 0;
i < n;
++i
)
for (
var o, u, s = e[i], l = s.length, c = (r[i] = Array(l)), f = 0;
f < l;
++f
)
(o = s[f]) &&
(u = t.call(o, o.__data__, f, s)) &&
("__data__" in o && (u.__data__ = o.__data__), (c[f] = u));
return new L(r, this._parents);
},
selectAll: function (t) {
if ("function" == typeof t) {
var e;
(e = t),
(t = function () {
var t;
return (
(t = e.apply(this, arguments)),
null == t ? [] : Array.isArray(t) ? t : Array.from(t)
);
});
} else t = s(t);
for (
var n = this._groups, r = n.length, i = [], o = [], a = 0;
a < r;
++a
)
for (var u, l = n[a], c = l.length, f = 0; f < c; ++f)
(u = l[f]) && (i.push(t.call(u, u.__data__, f, l)), o.push(u));
return new L(i, o);
},
selectChild: function (t) {
var e;
return this.select(
null == t
? h
: ((e = "function" == typeof t ? t : c(t)),
function () {
return f.call(this.children, e);
}),
);
},
selectChildren: function (t) {
var e;
return this.selectAll(
null == t
? d
: ((e = "function" == typeof t ? t : c(t)),
function () {
return p.call(this.children, e);
}),
);
},
filter: function (t) {
"function" != typeof t && (t = l(t));
for (
var e = this._groups, n = e.length, r = Array(n), i = 0;
i < n;
++i
)
for (
var o, a = e[i], u = a.length, s = (r[i] = []), c = 0;
c < u;
++c
)
(o = a[c]) && t.call(o, o.__data__, c, a) && s.push(o);
return new L(r, this._parents);
},
data: function (t, e) {
if (!arguments.length) return Array.from(this, _);
var n = e ? g : y,
r = this._parents,
i = this._groups;
"function" != typeof t &&
((x = t),
(t = function () {
return x;
}));
for (
var o = i.length, a = Array(o), u = Array(o), s = Array(o), l = 0;
l < o;
++l
) {
var c = r[l],
f = i[l],
h = f.length,
p =
"object" == typeof (w = t.call(c, c && c.__data__, l, r)) &&
"length" in w
? w
: Array.from(w),
d = p.length,
v = (u[l] = Array(d)),
m = (a[l] = Array(d));
n(c, f, v, m, (s[l] = Array(h)), p, e);
for (var w, x, b, k, A = 0, M = 0; A < d; ++A)
if ((b = v[A])) {
for (A >= M && (M = A + 1); !(k = m[M]) && ++M < d; );
b._next = k || null;
}
}
return ((a = new L(a, r))._enter = u), (a._exit = s), a;
},
enter: function () {
return new L(this._enter || this._groups.map(v), this._parents);
},
exit: function () {
return new L(this._exit || this._groups.map(v), this._parents);
},
join: function (t, e, n) {
var r = this.enter(),
i = this,
o = this.exit();
return (
"function" == typeof t
? (r = t(r)) && (r = r.selection())
: (r = r.append(t + "")),
null != e && (i = e(i)) && (i = i.selection()),
null == n ? o.remove() : n(o),
r && i ? r.merge(i).order() : i
);
},
merge: function (t) {
for (
var e = t.selection ? t.selection() : t,
n = this._groups,
r = e._groups,
i = n.length,
o = r.length,
a = Math.min(i, o),
u = Array(i),
s = 0;
s < a;
++s
)
for (
var l,
c = n[s],
f = r[s],
h = c.length,
p = (u[s] = Array(h)),
d = 0;
d < h;
++d
)
(l = c[d] || f[d]) && (p[d] = l);
for (; s < i; ++s) u[s] = n[s];
return new L(u, this._parents);
},
selection: function () {
return this;
},
order: function () {
for (var t = this._groups, e = -1, n = t.length; ++e < n; )
for (var r, i = t[e], o = i.length - 1, a = i[o]; --o >= 0; )
(r = i[o]) &&
(a &&
4 ^ r.compareDocumentPosition(a) &&
a.parentNode.insertBefore(r, a),
(a = r));
return this;
},
sort: function (t) {
function e(e, n) {
return e && n ? t(e.__data__, n.__data__) : !e - !n;
}
t || (t = w);
for (
var n = this._groups, r = n.length, i = Array(r), o = 0;
o < r;
++o
) {
for (
var a, u = n[o], s = u.length, l = (i[o] = Array(s)), c = 0;
c < s;
++c
)
(a = u[c]) && (l[c] = a);
l.sort(e);
}
return new L(i, this._parents).order();
},
call: function () {
var t = arguments[0];
return (arguments[0] = this), t.apply(null, arguments), this;
},
nodes: function () {
return Array.from(this);
},
node: function () {
for (var t = this._groups, e = 0, n = t.length; e < n; ++e)
for (var r = t[e], i = 0, o = r.length; i < o; ++i) {
var a = r[i];
if (a) return a;
}
return null;
},
size: function () {
let t = 0;
for (let e of this) ++t;
return t;
},
empty: function () {
return !this.node();
},
each: function (t) {
for (var e = this._groups, n = 0, r = e.length; n < r; ++n)
for (var i, o = e[n], a = 0, u = o.length; a < u; ++a)
(i = o[a]) && t.call(i, i.__data__, a, o);
return this;
},
attr: function (t, e) {
var n = k(t);
if (arguments.length < 2) {
var r = this.node();
return n.local
? r.getAttributeNS(n.space, n.local)
: r.getAttribute(n);
}
return this.each(
(null == e
? n.local
? function (t) {
return function () {
this.removeAttributeNS(t.space, t.local);
};
}
: function (t) {
return function () {
this.removeAttribute(t);
};
}
: "function" == typeof e
? n.local
? function (t, e) {
return function () {
var n = e.apply(this, arguments);
null == n
? this.removeAttributeNS(t.space, t.local)
: this.setAttributeNS(t.space, t.local, n);
};
}
: function (t, e) {
return function () {
var n = e.apply(this, arguments);
null == n
? this.removeAttribute(t)
: this.setAttribute(t, n);
};
}
: n.local
? function (t, e) {
return function () {
this.setAttributeNS(t.space, t.local, e);
};
}
: function (t, e) {
return function () {
this.setAttribute(t, e);
};
})(n, e),
);
},
style: M,
property: function (t, e) {
return arguments.length > 1
? this.each(
(null == e
? function (t) {
return function () {
delete this[t];
};
}
: "function" == typeof e
? function (t, e) {
return function () {
var n = e.apply(this, arguments);
null == n ? delete this[t] : (this[t] = n);
};
}
: function (t, e) {
return function () {
this[t] = e;
};
})(t, e),
)
: this.node()[t];
},
classed: function (t, e) {
var n = E(t + "");
if (arguments.length < 2) {
for (var r = z(this.node()), i = -1, o = n.length; ++i < o; )
if (!r.contains(n[i])) return !1;
return !0;
}
return this.each(
("function" == typeof e
? function (t, e) {
return function () {
(e.apply(this, arguments) ? T : $)(this, t);
};
}
: e
? function (t) {
return function () {
T(this, t);
};
}
: function (t) {
return function () {
$(this, t);
};
})(n, e),
);
},
text: function (t) {
return arguments.length
? this.each(
null == t
? C
: ("function" == typeof t
? function (t) {
return function () {
var e = t.apply(this, arguments);
this.textContent = null == e ? "" : e;
};
}
: function (t) {
return function () {
this.textContent = t;
};
})(t),
)
: this.node().textContent;
},
html: function (t) {
return arguments.length
? this.each(
null == t
? P
: ("function" == typeof t
? function (t) {
return function () {
var e = t.apply(this, arguments);
this.innerHTML = null == e ? "" : e;
};
}
: function (t) {
return function () {
this.innerHTML = t;
};
})(t),
)
: this.node().innerHTML;
},
raise: function () {
return this.each(V);
},
lower: function () {
return this.each(X);
},
append: function (t) {
var e = "function" == typeof t ? t : q(t);
return this.select(function () {
return this.appendChild(e.apply(this, arguments));
});
},
insert: function (t, e) {
var n = "function" == typeof t ? t : q(t),
r = null == e ? R : "function" == typeof e ? e : a(e);
return this.select(function () {
return this.insertBefore(
n.apply(this, arguments),
r.apply(this, arguments) || null,
);
});
},
remove: function () {
return this.each(D);
},
clone: function (t) {
return this.select(t ? Y : O);
},
datum: function (t) {
return arguments.length
? this.property("__data__", t)
: this.node().__data__;
},
on: function (t, e, n) {
var r,
i,
o = (t + "")
.trim()
.split(/^|\s+/)
.map(function (t) {
var e = "",
n = t.indexOf(".");
return (
n >= 0 && ((e = t.slice(n + 1)), (t = t.slice(0, n))),
{ type: t, name: e }
);
}),
a = o.length;
if (arguments.length < 2) {
var u = this.node().__on;
if (u) {
for (var s, l = 0, c = u.length; l < c; ++l)
for (r = 0, s = u[l]; r < a; ++r)
if ((i = o[r]).type === s.type && i.name === s.name)
return s.value;
}
return;
}
for (r = 0, u = e ? B : I; r < a; ++r) this.each(u(o[r], e, n));
return this;
},
dispatch: function (t, e) {
return this.each(
("function" == typeof e
? function (t, e) {
return function () {
return j(this, t, e.apply(this, arguments));
};
}
: function (t, e) {
return function () {
return j(this, t, e);
};
})(t, e),
);
},
[Symbol.iterator]: function* () {
for (var t = this._groups, e = 0, n = t.length; e < n; ++e)
for (var r, i = t[e], o = 0, a = i.length; o < a; ++o)
(r = i[o]) && (yield r);
},
};
let G = U;
t.s(
[
"select",
0,
function (t) {
return "string" == typeof t
? new L([[document.querySelector(t)]], [document.documentElement])
: new L([[t]], H);
},
],
692423,
);
},
954542,
(t) => {
"use strict";
t.s(
[
"pointer",
0,
function (t, e) {
if (
((t = (function (t) {
let e;
for (; (e = t.sourceEvent); ) t = e;
return t;
})(t)),
void 0 === e && (e = t.currentTarget),
e)
) {
var n = e.ownerSVGElement || e;
if (n.createSVGPoint) {
var r = n.createSVGPoint();
return (
(r.x = t.clientX),
(r.y = t.clientY),
[(r = r.matrixTransform(e.getScreenCTM().inverse())).x, r.y]
);
}
if (e.getBoundingClientRect) {
var i = e.getBoundingClientRect();
return [
t.clientX - i.left - e.clientLeft,
t.clientY - i.top - e.clientTop,
];
}
}
return [t.pageX, t.pageY];
},
],
954542,
);
},
542550,
811975,
816947,
145850,
(t) => {
"use strict";
var e = t.i(692423);
let n = { capture: !0, passive: !1 };
function r(t) {
t.stopImmediatePropagation();
}
function i(t) {
t.preventDefault(), t.stopImmediatePropagation();
}
function o(t) {
var r = t.document.documentElement,
o = (0, e.select)(t).on("dragstart.drag", i, n);
"onselectstart" in r
? o.on("selectstart.drag", i, n)
: ((r.__noselect = r.style.MozUserSelect),
(r.style.MozUserSelect = "none"));
}
function a(t, r) {
var o = t.document.documentElement,
a = (0, e.select)(t).on("dragstart.drag", null);
r &&
(a.on("click.drag", i, n),
setTimeout(function () {
a.on("click.drag", null);
}, 0)),
"onselectstart" in o
? a.on("selectstart.drag", null)
: ((o.style.MozUserSelect = o.__noselect), delete o.__noselect);
}
t.s(
[
"default",
0,
i,
"nonpassive",
0,
{ passive: !1 },
"nonpassivecapture",
0,
n,
"nopropagation",
() => r,
],
811975,
),
t.s(["default", 0, o, "yesdrag", () => a], 816947),
t.s(["dragDisable", 0, o], 542550),
t.s(["dragEnable", () => a], 145850);
},
274017,
(t) => {
"use strict";
function e(t) {
return ((t = Math.exp(t)) + 1 / t) / 2;
}
let n = (function t(n, r, i) {
function o(t, o) {
var a,
u,
s = t[0],
l = t[1],
c = t[2],
f = o[0],
h = o[1],
p = o[2],
d = f - s,
v = h - l,
m = d * d + v * v;
if (m < 1e-12)
(u = Math.log(p / c) / n),
(a = function (t) {
return [s + t * d, l + t * v, c * Math.exp(n * t * u)];
});
else {
var y = Math.sqrt(m),
g = (p * p - c * c + i * m) / (2 * c * r * y),
_ = (p * p - c * c - i * m) / (2 * p * r * y),
w = Math.log(Math.sqrt(g * g + 1) - g);
(u = (Math.log(Math.sqrt(_ * _ + 1) - _) - w) / n),
(a = function (t) {
var i,
o,
a = t * u,
f = e(w),
h =
(c / (r * y)) *
(f * (((i = Math.exp(2 * (i = n * a + w))) - 1) / (i + 1)) -
((o = Math.exp((o = w))) - 1 / o) / 2);
return [s + h * d, l + h * v, (c * f) / e(n * a + w)];
});
}
return (a.duration = (1e3 * u * n) / Math.SQRT2), a;
}
return (
(o.rho = function (e) {
var n = Math.max(0.001, +e),
r = n * n;
return t(n, r, r * r);
}),
o
);
})(Math.SQRT2, 2, 4);
t.s(["interpolateZoom", 0, n], 274017);
},
76257,
11905,
533091,
14021,
682776,
(t) => {
"use strict";
var e = t.i(247699);
t.s(["selection", () => e.default], 76257);
var n,
r,
i = t.i(8164),
o = 0,
a = 0,
u = 0,
s = 0,
l = 0,
c = 0,
f =
"object" == typeof performance && performance.now ? performance : Date,
h =
"object" == typeof window && window.requestAnimationFrame
? window.requestAnimationFrame.bind(window)
: function (t) {
setTimeout(t, 17);
};
function p() {
return l || (h(d), (l = f.now() + c));
}
function d() {
l = 0;
}
function v() {
this._call = this._time = this._next = null;
}
function m(t, e, n) {
var r = new v();
return r.restart(t, e, n), r;
}
function y() {
(l = (s = f.now()) + c), (o = a = 0);
try {
p(), ++o;
for (var t, e = n; e; )
(t = l - e._time) >= 0 && e._call.call(void 0, t), (e = e._next);
--o;
} finally {
(o = 0),
(function () {
for (var t, e, i = n, o = 1 / 0; i; )
i._call
? (o > i._time && (o = i._time), (t = i), (i = i._next))
: ((e = i._next),
(i._next = null),
(i = t ? (t._next = e) : (n = e)));
(r = t), _(o);
})(),
(l = 0);
}
}
function g() {
var t = f.now(),
e = t - s;
e > 1e3 && ((c -= e), (s = t));
}
function _(t) {
!o &&
(a && (a = clearTimeout(a)),
t - l > 24
? (t < 1 / 0 && (a = setTimeout(y, t - f.now() - c)),
u && (u = clearInterval(u)))
: (u || ((s = f.now()), (u = setInterval(g, 1e3))), (o = 1), h(y)));
}
function w(t, e, n) {
var r = new v();
return (
(e = null == e ? 0 : +e),
r.restart(
(n) => {
r.stop(), t(n + e);
},
e,
n,
),
r
);
}
(v.prototype = m.prototype =
{
constructor: v,
restart: function (t, e, i) {
if ("function" != typeof t)
throw TypeError("callback is not a function");
(i = (null == i ? p() : +i) + (null == e ? 0 : +e)),
this._next ||
r === this ||
(r ? (r._next = this) : (n = this), (r = this)),
(this._call = t),
(this._time = i),
_();
},
stop: function () {
this._call && ((this._call = null), (this._time = 1 / 0), _());
},
}),
t.s(["Timer", () => v, "now", () => p, "timer", () => m], 11905);
var x = (0, i.dispatch)("start", "end", "cancel", "interrupt"),
b = [];
function k(t, e) {
var n = M(t, e);
if (n.state > 0) throw Error("too late; already scheduled");
return n;
}
function A(t, e) {
var n = M(t, e);
if (n.state > 3) throw Error("too late; already running");
return n;
}
function M(t, e) {
var n = t.__transition;
if (!n || !(n = n[e])) throw Error("transition not found");
return n;
}
function N(t, e) {
var n,
r,
i,
o = t.__transition,
a = !0;
if (o) {
for (i in ((e = null == e ? null : e + ""), o)) {
if ((n = o[i]).name !== e) {
a = !1;
continue;
}
(r = n.state > 2 && n.state < 5),
(n.state = 6),
n.timer.stop(),
n.on.call(
r ? "interrupt" : "cancel",
t,
t.__data__,
n.index,
n.group,
),
delete o[i];
}
a && delete t.__transition;
}
}
t.s(
[
"ENDED",
() => 6,
"ENDING",
() => 5,
"STARTING",
() => 2,
"default",
0,
function (t, e, n, r, i, o) {
var a = t.__transition;
if (a) {
if (n in a) return;
} else t.__transition = {};
!(function (t, e, n) {
var r,
i = t.__transition;
function o(s) {
var l, c, f, h;
if (1 !== n.state) return u();
for (l in i)
if ((h = i[l]).name === n.name) {
if (3 === h.state) return w(o);
4 === h.state
? ((h.state = 6),
h.timer.stop(),
h.on.call("interrupt", t, t.__data__, h.index, h.group),
delete i[l])
: +l < e &&
((h.state = 6),
h.timer.stop(),
h.on.call("cancel", t, t.__data__, h.index, h.group),
delete i[l]);
}
if (
(w(function () {
3 === n.state &&
((n.state = 4), n.timer.restart(a, n.delay, n.time), a(s));
}),
(n.state = 2),
n.on.call("start", t, t.__data__, n.index, n.group),
2 === n.state)
) {
for (
l = 0, n.state = 3, r = Array((f = n.tween.length)), c = -1;
l < f;
++l
)
(h = n.tween[l].value.call(
t,
t.__data__,
n.index,
n.group,
)) && (r[++c] = h);
r.length = c + 1;
}
}
function a(e) {
for (
var i =
e < n.duration
? n.ease.call(null, e / n.duration)
: (n.timer.restart(u), (n.state = 5), 1),
o = -1,
a = r.length;
++o < a;
)
r[o].call(t, i);
5 === n.state &&
(n.on.call("end", t, t.__data__, n.index, n.group), u());
}
function u() {
for (var r in ((n.state = 6), n.timer.stop(), delete i[e], i))
return;
delete t.__transition;
}
(i[e] = n),
(n.timer = m(
function (t) {
(n.state = 1),
n.timer.restart(o, n.delay, n.time),
n.delay <= t && o(t - n.delay);
},
0,
n.time,
));
})(t, n, {
name: e,
index: r,
group: i,
on: x,
tween: b,
time: o.time,
delay: o.delay,
duration: o.duration,
ease: o.ease,
timer: null,
state: 0,
});
},
"get",
() => M,
"init",
() => k,
"set",
() => A,
],
533091,
),
t.s(["default", 0, N], 14021),
t.s(
[
"default",
0,
function (t) {
return this.each(function () {
N(this, t);
});
},
],
682776,
);
},
842541,
(t) => {
"use strict";
t.s([
"default",
0,
function (t, e) {
return (
(t *= 1),
(e *= 1),
function (n) {
return t * (1 - n) + e * n;
}
);
},
]);
},
425105,
588044,
320252,
(t) => {
"use strict";
var e,
n = t.i(842541),
r = 180 / Math.PI,
i = {
translateX: 0,
translateY: 0,
rotate: 0,
skewX: 0,
scaleX: 1,
scaleY: 1,
};
function o(t, e, n, i, o, a) {
var u, s, l;
return (
(u = Math.sqrt(t * t + e * e)) && ((t /= u), (e /= u)),
(l = t * n + e * i) && ((n -= t * l), (i -= e * l)),
(s = Math.sqrt(n * n + i * i)) && ((n /= s), (i /= s), (l /= s)),
t * i < e * n && ((t = -t), (e = -e), (l = -l), (u = -u)),
{
translateX: o,
translateY: a,
rotate: Math.atan2(e, t) * r,
skewX: Math.atan(l) * r,
scaleX: u,
scaleY: s,
}
);
}
function a(t, e, r, i) {
function o(t) {
return t.length ? t.pop() + " " : "";
}
return function (a, u) {
var s,
l,
c,
f,
h = [],
p = [];
return (
(a = t(a)),
(u = t(u)),
!(function (t, i, o, a, u, s) {
if (t !== o || i !== a) {
var l = u.push("translate(", null, e, null, r);
s.push(
{ i: l - 4, x: (0, n.default)(t, o) },
{ i: l - 2, x: (0, n.default)(i, a) },
);
} else (o || a) && u.push("translate(" + o + e + a + r);
})(a.translateX, a.translateY, u.translateX, u.translateY, h, p),
(s = a.rotate),
(l = u.rotate),
s !== l
? (s - l > 180 ? (l += 360) : l - s > 180 && (s += 360),
p.push({
i: h.push(o(h) + "rotate(", null, i) - 2,
x: (0, n.default)(s, l),
}))
: l && h.push(o(h) + "rotate(" + l + i),
(c = a.skewX),
(f = u.skewX),
c !== f
? p.push({
i: h.push(o(h) + "skewX(", null, i) - 2,
x: (0, n.default)(c, f),
})
: f && h.push(o(h) + "skewX(" + f + i),
!(function (t, e, r, i, a, u) {
if (t !== r || e !== i) {
var s = a.push(o(a) + "scale(", null, ",", null, ")");
u.push(
{ i: s - 4, x: (0, n.default)(t, r) },
{ i: s - 2, x: (0, n.default)(e, i) },
);
} else
(1 !== r || 1 !== i) &&
a.push(o(a) + "scale(" + r + "," + i + ")");
})(a.scaleX, a.scaleY, u.scaleX, u.scaleY, h, p),
(a = u = null),
function (t) {
for (var e, n = -1, r = p.length; ++n < r; )
h[(e = p[n]).i] = e.x(t);
return h.join("");
}
);
};
}
var u = a(
function (t) {
let e = new (
"function" == typeof DOMMatrix ? DOMMatrix : WebKitCSSMatrix
)(t + "");
return e.isIdentity ? i : o(e.a, e.b, e.c, e.d, e.e, e.f);
},
"px, ",
"px)",
"deg)",
),
s = a(
function (t) {
return null == t
? i
: (e ||
(e = document.createElementNS(
"http://www.w3.org/2000/svg",
"g",
)),
e.setAttribute("transform", t),
(t = e.transform.baseVal.consolidate()))
? o((t = t.matrix).a, t.b, t.c, t.d, t.e, t.f)
: i;
},
", ",
")",
")",
);
t.s(
["interpolateTransformCss", () => u, "interpolateTransformSvg", () => s],
425105,
);
var l = t.i(793560);
t.s(["namespace", () => l.default], 588044);
var c = t.i(533091);
function f(t, e, n) {
var r = t._id;
return (
t.each(function () {
var t = (0, c.set)(this, r);
(t.value || (t.value = {}))[e] = n.apply(this, arguments);
}),
function (t) {
return (0, c.get)(t, r).value[e];
}
);
}
t.s(
[
"default",
0,
function (t, e) {
var n = this._id;
if (((t += ""), arguments.length < 2)) {
for (
var r, i = (0, c.get)(this.node(), n).tween, o = 0, a = i.length;
o < a;
++o
)
if ((r = i[o]).name === t) return r.value;
return null;
}
return this.each(
(null == e
? function (t, e) {
var n, r;
return function () {
var i = (0, c.set)(this, t),
o = i.tween;
if (o !== n) {
r = n = o;
for (var a = 0, u = r.length; a < u; ++a)
if (r[a].name === e) {
(r = r.slice()).splice(a, 1);
break;
}
}
i.tween = r;
};
}
: function (t, e, n) {
var r, i;
if ("function" != typeof n) throw Error();
return function () {
var o = (0, c.set)(this, t),
a = o.tween;
if (a !== r) {
i = (r = a).slice();
for (
var u = { name: e, value: n }, s = 0, l = i.length;
s < l;
++s
)
if (i[s].name === e) {
i[s] = u;
break;
}
s === l && i.push(u);
}
o.tween = i;
};
})(n, t, e),
);
},
"tweenValue",
() => f,
],
320252,
);
},
161610,
189517,
321137,
(t) => {
"use strict";
function e(t, e, n) {
(t.prototype = e.prototype = n), (n.constructor = t);
}
function n(t, e) {
var n = Object.create(t.prototype);
for (var r in e) n[r] = e[r];
return n;
}
function r() {}
t.s(["default", 0, e, "extend", () => n], 189517);
var i = "\\s*([+-]?\\d+)\\s*",
o = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",
a = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
u = /^#([0-9a-f]{3,8})$/,
s = RegExp(`^rgb\\(${i},${i},${i}\\)$`),
l = RegExp(`^rgb\\(${a},${a},${a}\\)$`),
c = RegExp(`^rgba\\(${i},${i},${i},${o}\\)$`),
f = RegExp(`^rgba\\(${a},${a},${a},${o}\\)$`),
h = RegExp(`^hsl\\(${o},${a},${a}\\)$`),
p = RegExp(`^hsla\\(${o},${a},${a},${o}\\)$`),
d = {
aliceblue: 0xf0f8ff,
antiquewhite: 0xfaebd7,
aqua: 65535,
aquamarine: 8388564,
azure: 0xf0ffff,
beige: 0xf5f5dc,
bisque: 0xffe4c4,
black: 0,
blanchedalmond: 0xffebcd,
blue: 255,
blueviolet: 9055202,
brown: 0xa52a2a,
burlywood: 0xdeb887,
cadetblue: 6266528,
chartreuse: 8388352,
chocolate: 0xd2691e,
coral: 0xff7f50,
cornflowerblue: 6591981,
cornsilk: 0xfff8dc,
crimson: 0xdc143c,
cyan: 65535,
darkblue: 139,
darkcyan: 35723,
darkgoldenrod: 0xb8860b,
darkgray: 0xa9a9a9,
darkgreen: 25600,
darkgrey: 0xa9a9a9,
darkkhaki: 0xbdb76b,
darkmagenta: 9109643,
darkolivegreen: 5597999,
darkorange: 0xff8c00,
darkorchid: 0x9932cc,
darkred: 9109504,
darksalmon: 0xe9967a,
darkseagreen: 9419919,
darkslateblue: 4734347,
darkslategray: 3100495,
darkslategrey: 3100495,
darkturquoise: 52945,
darkviolet: 9699539,
deeppink: 0xff1493,
deepskyblue: 49151,
dimgray: 6908265,
dimgrey: 6908265,
dodgerblue: 2003199,
firebrick: 0xb22222,
floralwhite: 0xfffaf0,
forestgreen: 2263842,
fuchsia: 0xff00ff,
gainsboro: 0xdcdcdc,
ghostwhite: 0xf8f8ff,
gold: 0xffd700,
goldenrod: 0xdaa520,
gray: 8421504,
green: 32768,
greenyellow: 0xadff2f,
grey: 8421504,
honeydew: 0xf0fff0,
hotpink: 0xff69b4,
indianred: 0xcd5c5c,
indigo: 4915330,
ivory: 0xfffff0,
khaki: 0xf0e68c,
lavender: 0xe6e6fa,
lavenderblush: 0xfff0f5,
lawngreen: 8190976,
lemonchiffon: 0xfffacd,
lightblue: 0xadd8e6,
lightcoral: 0xf08080,
lightcyan: 0xe0ffff,
lightgoldenrodyellow: 0xfafad2,
lightgray: 0xd3d3d3,
lightgreen: 9498256,
lightgrey: 0xd3d3d3,
lightpink: 0xffb6c1,
lightsalmon: 0xffa07a,
lightseagreen: 2142890,
lightskyblue: 8900346,
lightslategray: 7833753,
lightslategrey: 7833753,
lightsteelblue: 0xb0c4de,
lightyellow: 0xffffe0,
lime: 65280,
limegreen: 3329330,
linen: 0xfaf0e6,
magenta: 0xff00ff,
maroon: 8388608,
mediumaquamarine: 6737322,
mediumblue: 205,
mediumorchid: 0xba55d3,
mediumpurple: 9662683,
mediumseagreen: 3978097,
mediumslateblue: 8087790,
mediumspringgreen: 64154,
mediumturquoise: 4772300,
mediumvioletred: 0xc71585,
midnightblue: 1644912,
mintcream: 0xf5fffa,
mistyrose: 0xffe4e1,
moccasin: 0xffe4b5,
navajowhite: 0xffdead,
navy: 128,
oldlace: 0xfdf5e6,
olive: 8421376,
olivedrab: 7048739,
orange: 0xffa500,
orangered: 0xff4500,
orchid: 0xda70d6,
palegoldenrod: 0xeee8aa,
palegreen: 0x98fb98,
paleturquoise: 0xafeeee,
palevioletred: 0xdb7093,
papayawhip: 0xffefd5,
peachpuff: 0xffdab9,
peru: 0xcd853f,
pink: 0xffc0cb,
plum: 0xdda0dd,
powderblue: 0xb0e0e6,
purple: 8388736,
rebeccapurple: 6697881,
red: 0xff0000,
rosybrown: 0xbc8f8f,
royalblue: 4286945,
saddlebrown: 9127187,
salmon: 0xfa8072,
sandybrown: 0xf4a460,
seagreen: 3050327,
seashell: 0xfff5ee,
sienna: 0xa0522d,
silver: 0xc0c0c0,
skyblue: 8900331,
slateblue: 6970061,
slategray: 7372944,
slategrey: 7372944,
snow: 0xfffafa,
springgreen: 65407,
steelblue: 4620980,
tan: 0xd2b48c,
teal: 32896,
thistle: 0xd8bfd8,
tomato: 0xff6347,
turquoise: 4251856,
violet: 0xee82ee,
wheat: 0xf5deb3,
white: 0xffffff,
whitesmoke: 0xf5f5f5,
yellow: 0xffff00,
yellowgreen: 0x9acd32,
};
function v() {
return this.rgb().formatHex();
}
function m() {
return this.rgb().formatRgb();
}
function y(t) {
var e, n;
return (
(t = (t + "").trim().toLowerCase()),
(e = u.exec(t))
? ((n = e[1].length),
(e = parseInt(e[1], 16)),
6 === n
? g(e)
: 3 === n
? new b(
((e >> 8) & 15) | ((e >> 4) & 240),
((e >> 4) & 15) | (240 & e),
((15 & e) << 4) | (15 & e),
1,
)
: 8 === n
? _(
(e >> 24) & 255,
(e >> 16) & 255,
(e >> 8) & 255,
(255 & e) / 255,
)
: 4 === n
? _(
((e >> 12) & 15) | ((e >> 8) & 240),
((e >> 8) & 15) | ((e >> 4) & 240),
((e >> 4) & 15) | (240 & e),
(((15 & e) << 4) | (15 & e)) / 255,
)
: null)
: (e = s.exec(t))
? new b(e[1], e[2], e[3], 1)
: (e = l.exec(t))
? new b(
(255 * e[1]) / 100,
(255 * e[2]) / 100,
(255 * e[3]) / 100,
1,
)
: (e = c.exec(t))
? _(e[1], e[2], e[3], e[4])
: (e = f.exec(t))
? _(
(255 * e[1]) / 100,
(255 * e[2]) / 100,
(255 * e[3]) / 100,
e[4],
)
: (e = h.exec(t))
? z(e[1], e[2] / 100, e[3] / 100, 1)
: (e = p.exec(t))
? z(e[1], e[2] / 100, e[3] / 100, e[4])
: d.hasOwnProperty(t)
? g(d[t])
: "transparent" === t
? new b(NaN, NaN, NaN, 0)
: null
);
}
function g(t) {
return new b((t >> 16) & 255, (t >> 8) & 255, 255 & t, 1);
}
function _(t, e, n, r) {
return r <= 0 && (t = e = n = NaN), new b(t, e, n, r);
}
function w(t) {
return (t instanceof r || (t = y(t)), t)
? new b((t = t.rgb()).r, t.g, t.b, t.opacity)
: new b();
}
function x(t, e, n, r) {
return 1 == arguments.length ? w(t) : new b(t, e, n, null == r ? 1 : r);
}
function b(t, e, n, r) {
(this.r = +t), (this.g = +e), (this.b = +n), (this.opacity = +r);
}
function k() {
return `#${E(this.r)}${E(this.g)}${E(this.b)}`;
}
function A() {
let t = M(this.opacity);
return `${1 === t ? "rgb(" : "rgba("}${N(this.r)}, ${N(this.g)}, ${N(this.b)}${1 === t ? ")" : `, ${t})`}`;
}
function M(t) {
return isNaN(t) ? 1 : Math.max(0, Math.min(1, t));
}
function N(t) {
return Math.max(0, Math.min(255, Math.round(t) || 0));
}
function E(t) {
return ((t = N(t)) < 16 ? "0" : "") + t.toString(16);
}
function z(t, e, n, r) {
return (
r <= 0
? (t = e = n = NaN)
: n <= 0 || n >= 1
? (t = e = NaN)
: e <= 0 && (t = NaN),
new T(t, e, n, r)
);
}
function S(t) {
if (t instanceof T) return new T(t.h, t.s, t.l, t.opacity);
if ((t instanceof r || (t = y(t)), !t)) return new T();
if (t instanceof T) return t;
var e = (t = t.rgb()).r / 255,
n = t.g / 255,
i = t.b / 255,
o = Math.min(e, n, i),
a = Math.max(e, n, i),
u = NaN,
s = a - o,
l = (a + o) / 2;
return (
s
? ((u =
e === a
? (n - i) / s + (n < i) * 6
: n === a
? (i - e) / s + 2
: (e - n) / s + 4),
(s /= l < 0.5 ? a + o : 2 - a - o),
(u *= 60))
: (s = l > 0 && l < 1 ? 0 : u),
new T(u, s, l, t.opacity)
);
}
function T(t, e, n, r) {
(this.h = +t), (this.s = +e), (this.l = +n), (this.opacity = +r);
}
function $(t) {
return (t = (t || 0) % 360) < 0 ? t + 360 : t;
}
function C(t) {
return Math.max(0, Math.min(1, t || 0));
}
function P(t, e, n) {
return (
(t < 60
? e + ((n - e) * t) / 60
: t < 180
? n
: t < 240
? e + ((n - e) * (240 - t)) / 60
: e) * 255
);
}
e(r, y, {
copy(t) {
return Object.assign(new this.constructor(), this, t);
},
displayable() {
return this.rgb().displayable();
},
hex: v,
formatHex: v,
formatHex8: function () {
return this.rgb().formatHex8();
},
formatHsl: function () {
return S(this).formatHsl();
},
formatRgb: m,
toString: m,
}),
e(
b,
x,
n(r, {
brighter(t) {
return (
(t =
null == t
? 1.4285714285714286
: Math.pow(1.4285714285714286, t)),
new b(this.r * t, this.g * t, this.b * t, this.opacity)
);
},
darker(t) {
return (
(t = null == t ? 0.7 : Math.pow(0.7, t)),
new b(this.r * t, this.g * t, this.b * t, this.opacity)
);
},
rgb() {
return this;
},
clamp() {
return new b(N(this.r), N(this.g), N(this.b), M(this.opacity));
},
displayable() {
return (
-0.5 <= this.r &&
this.r < 255.5 &&
-0.5 <= this.g &&
this.g < 255.5 &&
-0.5 <= this.b &&
this.b < 255.5 &&
0 <= this.opacity &&
this.opacity <= 1
);
},
hex: k,
formatHex: k,
formatHex8: function () {
return `#${E(this.r)}${E(this.g)}${E(this.b)}${E((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
},
formatRgb: A,
toString: A,
}),
),
e(
T,
function (t, e, n, r) {
return 1 == arguments.length
? S(t)
: new T(t, e, n, null == r ? 1 : r);
},
n(r, {
brighter(t) {
return (
(t =
null == t
? 1.4285714285714286
: Math.pow(1.4285714285714286, t)),
new T(this.h, this.s, this.l * t, this.opacity)
);
},
darker(t) {
return (
(t = null == t ? 0.7 : Math.pow(0.7, t)),
new T(this.h, this.s, this.l * t, this.opacity)
);
},
rgb() {
var t = (this.h % 360) + (this.h < 0) * 360,
e = isNaN(t) || isNaN(this.s) ? 0 : this.s,
n = this.l,
r = n + (n < 0.5 ? n : 1 - n) * e,
i = 2 * n - r;
return new b(
P(t >= 240 ? t - 240 : t + 120, i, r),
P(t, i, r),
P(t < 120 ? t + 240 : t - 120, i, r),
this.opacity,
);
},
clamp() {
return new T($(this.h), C(this.s), C(this.l), M(this.opacity));
},
displayable() {
return (
((0 <= this.s && this.s <= 1) || isNaN(this.s)) &&
0 <= this.l &&
this.l <= 1 &&
0 <= this.opacity &&
this.opacity <= 1
);
},
formatHsl() {
let t = M(this.opacity);
return `${1 === t ? "hsl(" : "hsla("}${$(this.h)}, ${100 * C(this.s)}%, ${100 * C(this.l)}%${1 === t ? ")" : `, ${t})`}`;
},
}),
),
t.s(
[
"Color",
() => r,
"Rgb",
() => b,
"default",
() => y,
"rgb",
() => x,
"rgbConvert",
() => w,
],
321137,
),
t.s(["color", () => y], 161610);
},
77075,
(t) => {
"use strict";
var e = t.i(842541);
t.s(["interpolateNumber", () => e.default]);
},
145665,
181503,
425902,
(t) => {
"use strict";
var e = t.i(321137);
function n(t, e, n, r, i) {
var o = t * t,
a = o * t;
return (
((1 - 3 * t + 3 * o - a) * e +
(4 - 6 * o + 3 * a) * n +
(1 + 3 * t + 3 * o - 3 * a) * r +
a * i) /
6
);
}
let r = (t) => () => t;
function i(t, e) {
return function (n) {
return t + n * e;
};
}
function o(t, e) {
var n = e - t;
return n
? i(t, n > 180 || n < -180 ? n - 360 * Math.round(n / 360) : n)
: r(isNaN(t) ? e : t);
}
function a(t) {
return 1 == (t *= 1)
? u
: function (e, n) {
var i, o, a;
return n - e
? ((i = e),
(o = n),
(i = Math.pow(i, (a = t))),
(o = Math.pow(o, a) - i),
(a = 1 / a),
function (t) {
return Math.pow(i + t * o, a);
})
: r(isNaN(e) ? n : e);
};
}
function u(t, e) {
var n = e - t;
return n ? i(t, n) : r(isNaN(t) ? e : t);
}
t.s(["default", 0, r], 181503),
t.s(["default", () => u, "gamma", () => a, "hue", () => o], 425902);
let s = (function t(n) {
var r = a(n);
function i(t, n) {
var i = r((t = (0, e.rgb)(t)).r, (n = (0, e.rgb)(n)).r),
o = r(t.g, n.g),
a = r(t.b, n.b),
s = u(t.opacity, n.opacity);
return function (e) {
return (
(t.r = i(e)), (t.g = o(e)), (t.b = a(e)), (t.opacity = s(e)), t + ""
);
};
}
return (i.gamma = t), i;
})(1);
function l(t) {
return function (n) {
var r,
i,
o = n.length,
a = Array(o),
u = Array(o),
s = Array(o);
for (r = 0; r < o; ++r)
(i = (0, e.rgb)(n[r])),
(a[r] = i.r || 0),
(u[r] = i.g || 0),
(s[r] = i.b || 0);
return (
(a = t(a)),
(u = t(u)),
(s = t(s)),
(i.opacity = 1),
function (t) {
return (i.r = a(t)), (i.g = u(t)), (i.b = s(t)), i + "";
}
);
};
}
l(function (t) {
var e = t.length - 1;
return function (r) {
var i =
r <= 0 ? (r = 0) : r >= 1 ? ((r = 1), e - 1) : Math.floor(r * e),
o = t[i],
a = t[i + 1],
u = i > 0 ? t[i - 1] : 2 * o - a,
s = i < e - 1 ? t[i + 2] : 2 * a - o;
return n((r - i / e) * e, u, o, a, s);
};
}),
l(function (t) {
var e = t.length;
return function (r) {
var i = Math.floor(((r %= 1) < 0 ? ++r : r) * e),
o = t[(i + e - 1) % e],
a = t[i % e],
u = t[(i + 1) % e],
s = t[(i + 2) % e];
return n((r - i / e) * e, o, a, u, s);
};
}),
t.s(["default", 0, s], 145665);
},
891219,
(t) => {
"use strict";
var e = t.i(145665);
t.s(["interpolateRgb", () => e.default]);
},
647483,
(t) => {
"use strict";
var e = t.i(842541),
n = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,
r = RegExp(n.source, "g");
t.s([
"default",
0,
function (t, i) {
var o,
a,
u,
s,
l,
c = (n.lastIndex = r.lastIndex = 0),
f = -1,
h = [],
p = [];
for (t += "", i += ""; (u = n.exec(t)) && (s = r.exec(i)); )
(l = s.index) > c &&
((l = i.slice(c, l)), h[f] ? (h[f] += l) : (h[++f] = l)),
(u = u[0]) === (s = s[0])
? h[f]
? (h[f] += s)
: (h[++f] = s)
: ((h[++f] = null), p.push({ i: f, x: (0, e.default)(u, s) })),
(c = r.lastIndex);
return (
c < i.length && ((l = i.slice(c)), h[f] ? (h[f] += l) : (h[++f] = l)),
h.length < 2
? p[0]
? ((o = p[0].x),
function (t) {
return o(t) + "";
})
: ((a = i),
function () {
return a;
})
: ((i = p.length),
function (t) {
for (var e, n = 0; n < i; ++n) h[(e = p[n]).i] = e.x(t);
return h.join("");
})
);
},
]);
},
183502,
603760,
(t) => {
"use strict";
var e = t.i(76257),
n = t.i(682776),
r = t.i(425105),
i = t.i(588044),
o = t.i(320252),
a = t.i(161610),
u = t.i(77075),
s = t.i(891219),
l = t.i(647483),
l = l;
function c(t, e) {
var n;
return (
"number" == typeof e
? u.interpolateNumber
: e instanceof a.color
? s.interpolateRgb
: (n = (0, a.color)(e))
? ((e = n), s.interpolateRgb)
: l.default
)(t, e);
}
var f = t.i(533091),
h = t.i(82258),
h = h,
p = t.i(483560),
p = p,
d = t.i(657531),
d = d,
v = e.selection.prototype.constructor,
m = t.i(107949),
m = m;
function y(t) {
return function () {
this.style.removeProperty(t);
};
}
var g = 0;
function _(t, e, n, r) {
(this._groups = t), (this._parents = e), (this._name = n), (this._id = r);
}
var w = e.selection.prototype;
_.prototype = function (t) {
return (0, e.selection)().transition(t);
}.prototype = {
constructor: _,
select: function (t) {
var e = this._name,
n = this._id;
"function" != typeof t && (t = (0, p.default)(t));
for (
var r = this._groups, i = r.length, o = Array(i), a = 0;
a < i;
++a
)
for (
var u, s, l = r[a], c = l.length, h = (o[a] = Array(c)), d = 0;
d < c;
++d
)
(u = l[d]) &&
(s = t.call(u, u.__data__, d, l)) &&
("__data__" in u && (s.__data__ = u.__data__),
(h[d] = s),
(0, f.default)(h[d], e, n, d, h, (0, f.get)(u, n)));
return new _(o, this._parents, e, n);
},
selectAll: function (t) {
var e = this._name,
n = this._id;
"function" != typeof t && (t = (0, d.default)(t));
for (
var r = this._groups, i = r.length, o = [], a = [], u = 0;
u < i;
++u
)
for (var s, l = r[u], c = l.length, h = 0; h < c; ++h)
if ((s = l[h])) {
for (
var p,
v = t.call(s, s.__data__, h, l),
m = (0, f.get)(s, n),
y = 0,
g = v.length;
y < g;
++y
)
(p = v[y]) && (0, f.default)(p, e, n, y, v, m);
o.push(v), a.push(s);
}
return new _(o, a, e, n);
},
selectChild: w.selectChild,
selectChildren: w.selectChildren,
filter: function (t) {
"function" != typeof t && (t = (0, h.default)(t));
for (
var e = this._groups, n = e.length, r = Array(n), i = 0;
i < n;
++i
)
for (
var o, a = e[i], u = a.length, s = (r[i] = []), l = 0;
l < u;
++l
)
(o = a[l]) && t.call(o, o.__data__, l, a) && s.push(o);
return new _(r, this._parents, this._name, this._id);
},
merge: function (t) {
if (t._id !== this._id) throw Error();
for (
var e = this._groups,
n = t._groups,
r = e.length,
i = n.length,
o = Math.min(r, i),
a = Array(r),
u = 0;
u < o;
++u
)
for (
var s,
l = e[u],
c = n[u],
f = l.length,
h = (a[u] = Array(f)),
p = 0;
p < f;
++p
)
(s = l[p] || c[p]) && (h[p] = s);
for (; u < r; ++u) a[u] = e[u];
return new _(a, this._parents, this._name, this._id);
},
selection: function () {
return new v(this._groups, this._parents);
},
transition: function () {
for (
var t = this._name,
e = this._id,
n = ++g,
r = this._groups,
i = r.length,
o = 0;
o < i;
++o
)
for (var a, u = r[o], s = u.length, l = 0; l < s; ++l)
if ((a = u[l])) {
var c = (0, f.get)(a, e);
(0, f.default)(a, t, n, l, u, {
time: c.time + c.delay + c.duration,
delay: 0,
duration: c.duration,
ease: c.ease,
});
}
return new _(r, this._parents, t, n);
},
call: w.call,
nodes: w.nodes,
node: w.node,
size: w.size,
empty: w.empty,
each: w.each,
on: function (t, e) {
var n,
r,
i,
o,
a,
u,
s = this._id;
return arguments.length < 2
? (0, f.get)(this.node(), s).on.on(t)
: this.each(
((n = s),
(r = t),
(i = e),
(u = (r + "")
.trim()
.split(/^|\s+/)
.every(function (t) {
var e = t.indexOf(".");
return e >= 0 && (t = t.slice(0, e)), !t || "start" === t;
})
? f.init
: f.set),
function () {
var t = u(this, n),
e = t.on;
e !== o && (a = (o = e).copy()).on(r, i), (t.on = a);
}),
);
},
attr: function (t, e) {
var n = (0, i.namespace)(t),
a = "transform" === n ? r.interpolateTransformSvg : c;
return this.attrTween(
t,
"function" == typeof e
? (n.local
? function (t, e, n) {
var r, i, o;
return function () {
var a,
u,
s = n(this);
return null == s
? void this.removeAttributeNS(t.space, t.local)
: (a = this.getAttributeNS(t.space, t.local)) ===
(u = s + "")
? null
: a === r && u === i
? o
: ((i = u), (o = e((r = a), s)));
};
}
: function (t, e, n) {
var r, i, o;
return function () {
var a,
u,
s = n(this);
return null == s
? void this.removeAttribute(t)
: (a = this.getAttribute(t)) === (u = s + "")
? null
: a === r && u === i
? o
: ((i = u), (o = e((r = a), s)));
};
})(n, a, (0, o.tweenValue)(this, "attr." + t, e))
: null == e
? (n.local
? function (t) {
return function () {
this.removeAttributeNS(t.space, t.local);
};
}
: function (t) {
return function () {
this.removeAttribute(t);
};
})(n)
: (n.local
? function (t, e, n) {
var r,
i,
o = n + "";
return function () {
var a = this.getAttributeNS(t.space, t.local);
return a === o
? null
: a === r
? i
: (i = e((r = a), n));
};
}
: function (t, e, n) {
var r,
i,
o = n + "";
return function () {
var a = this.getAttribute(t);
return a === o
? null
: a === r
? i
: (i = e((r = a), n));
};
})(n, a, e),
);
},
attrTween: function (t, e) {
var n = "attr." + t;
if (arguments.length < 2) return (n = this.tween(n)) && n._value;
if (null == e) return this.tween(n, null);
if ("function" != typeof e) throw Error();
var r = (0, i.namespace)(t);
return this.tween(
n,
(r.local
? function (t, e) {
var n, r;
function i() {
var i = e.apply(this, arguments);
return (
i !== r &&
(n =
(r = i) &&
function (e) {
this.setAttributeNS(
t.space,
t.local,
i.call(this, e),
);
}),
n
);
}
return (i._value = e), i;
}
: function (t, e) {
var n, r;
function i() {
var i = e.apply(this, arguments);
return (
i !== r &&
(n =
(r = i) &&
function (e) {
this.setAttribute(t, i.call(this, e));
}),
n
);
}
return (i._value = e), i;
})(r, e),
);
},
style: function (t, e, n) {
var i,
a,
u,
s,
l,
h,
p,
d,
v,
g,
_,
w,
x,
b,
k,
A,
M,
N,
E,
z,
S,
T = "transform" == (t += "") ? r.interpolateTransformCss : c;
return null == e
? this.styleTween(
t,
((i = t),
function () {
var t = (0, m.styleValue)(this, i),
e =
(this.style.removeProperty(i), (0, m.styleValue)(this, i));
return t === e
? null
: t === a && e === u
? s
: (s = T((a = t), (u = e)));
}),
).on("end.style." + t, y(t))
: "function" == typeof e
? this.styleTween(
t,
((l = t),
(h = (0, o.tweenValue)(this, "style." + t, e)),
function () {
var t = (0, m.styleValue)(this, l),
e = h(this),
n = e + "";
return (
null == e &&
(this.style.removeProperty(l),
(n = e = (0, m.styleValue)(this, l))),
t === n
? null
: t === p && n === d
? v
: ((d = n), (v = T((p = t), e)))
);
}),
).each(
((g = this._id),
(M = "end." + (A = "style." + (_ = t))),
function () {
var t = (0, f.set)(this, g),
e = t.on,
n = null == t.value[A] ? k || (k = y(_)) : void 0;
(e !== w || b !== n) && (x = (w = e).copy()).on(M, (b = n)),
(t.on = x);
}),
)
: this.styleTween(
t,
((N = t),
(S = e + ""),
function () {
var t = (0, m.styleValue)(this, N);
return t === S ? null : t === E ? z : (z = T((E = t), e));
}),
n,
).on("end.style." + t, null);
},
styleTween: function (t, e, n) {
var r = "style." + (t += "");
if (arguments.length < 2) return (r = this.tween(r)) && r._value;
if (null == e) return this.tween(r, null);
if ("function" != typeof e) throw Error();
return this.tween(
r,
(function (t, e, n) {
var r, i;
function o() {
var o = e.apply(this, arguments);
return (
o !== i &&
(r =
(i = o) &&
function (e) {
this.style.setProperty(t, o.call(this, e), n);
}),
r
);
}
return (o._value = e), o;
})(t, e, null == n ? "" : n),
);
},
text: function (t) {
var e, n;
return this.tween(
"text",
"function" == typeof t
? ((e = (0, o.tweenValue)(this, "text", t)),
function () {
var t = e(this);
this.textContent = null == t ? "" : t;
})
: ((n = null == t ? "" : t + ""),
function () {
this.textContent = n;
}),
);
},
textTween: function (t) {
var e = "text";
if (arguments.length < 1) return (e = this.tween(e)) && e._value;
if (null == t) return this.tween(e, null);
if ("function" != typeof t) throw Error();
return this.tween(
e,
(function (t) {
var e, n;
function r() {
var r = t.apply(this, arguments);
return (
r !== n &&
(e =
(n = r) &&
function (t) {
this.textContent = r.call(this, t);
}),
e
);
}
return (r._value = t), r;
})(t),
);
},
remove: function () {
var t;
return this.on(
"end.remove",
((t = this._id),
function () {
var e = this.parentNode;
for (var n in this.__transition) if (+n !== t) return;
e && e.removeChild(this);
}),
);
},
tween: o.default,
delay: function (t) {
var e = this._id;
return arguments.length
? this.each(
("function" == typeof t
? function (t, e) {
return function () {
(0, f.init)(this, t).delay = +e.apply(this, arguments);
};
}
: function (t, e) {
return (
(e *= 1),
function () {
(0, f.init)(this, t).delay = e;
}
);
})(e, t),
)
: (0, f.get)(this.node(), e).delay;
},
duration: function (t) {
var e = this._id;
return arguments.length
? this.each(
("function" == typeof t
? function (t, e) {
return function () {
(0, f.set)(this, t).duration = +e.apply(this, arguments);
};
}
: function (t, e) {
return (
(e *= 1),
function () {
(0, f.set)(this, t).duration = e;
}
);
})(e, t),
)
: (0, f.get)(this.node(), e).duration;
},
ease: function (t) {
var e = this._id;
return arguments.length
? this.each(
(function (t, e) {
if ("function" != typeof e) throw Error();
return function () {
(0, f.set)(this, t).ease = e;
};
})(e, t),
)
: (0, f.get)(this.node(), e).ease;
},
easeVarying: function (t) {
var e;
if ("function" != typeof t) throw Error();
return this.each(
((e = this._id),
function () {
var n = t.apply(this, arguments);
if ("function" != typeof n) throw Error();
(0, f.set)(this, e).ease = n;
}),
);
},
end: function () {
var t,
e,
n = this,
r = n._id,
i = n.size();
return new Promise(function (o, a) {
var u = { value: a },
s = {
value: function () {
0 == --i && o();
},
};
n.each(function () {
var n = (0, f.set)(this, r),
i = n.on;
i !== t &&
((e = (t = i).copy())._.cancel.push(u),
e._.interrupt.push(u),
e._.end.push(s)),
(n.on = e);
}),
0 === i && o();
});
},
[Symbol.iterator]: w[Symbol.iterator],
};
var x = t.i(11905),
b = {
time: null,
delay: 0,
duration: 250,
ease: function (t) {
return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
},
};
(e.selection.prototype.interrupt = n.default),
(e.selection.prototype.transition = function (t) {
var e, n;
t instanceof _
? ((e = t._id), (t = t._name))
: ((e = ++g),
((n = b).time = (0, x.now)()),
(t = null == t ? null : t + ""));
for (var r = this._groups, i = r.length, o = 0; o < i; ++o)
for (var a, u = r[o], s = u.length, l = 0; l < s; ++l)
(a = u[l]) &&
(0, f.default)(
a,
t,
e,
l,
u,
n ||
(function (t, e) {
for (var n; !(n = t.__transition) || !(n = n[e]); )
if (!(t = t.parentNode))
throw Error(`transition ${e} not found`);
return n;
})(a, e),
);
return new _(r, this._parents, t, e);
}),
t.s([], 183502);
var k = t.i(14021);
t.s(["interrupt", () => k.default], 603760);
},
250149,
644200,
953752,
(t) => {
"use strict";
var e = t.i(8164),
n = t.i(542550),
r = t.i(145850),
i = t.i(274017),
o = t.i(692423),
a = t.i(954542);
t.i(183502);
var u = t.i(603760);
let s = (t) => () => t;
function l(t, { sourceEvent: e, target: n, transform: r, dispatch: i }) {
Object.defineProperties(this, {
type: { value: t, enumerable: !0, configurable: !0 },
sourceEvent: { value: e, enumerable: !0, configurable: !0 },
target: { value: n, enumerable: !0, configurable: !0 },
transform: { value: r, enumerable: !0, configurable: !0 },
_: { value: i },
});
}
function c(t, e, n) {
(this.k = t), (this.x = e), (this.y = n);
}
c.prototype = {
constructor: c,
scale: function (t) {
return 1 === t ? this : new c(this.k * t, this.x, this.y);
},
translate: function (t, e) {
return (0 === t) & (0 === e)
? this
: new c(this.k, this.x + this.k * t, this.y + this.k * e);
},
apply: function (t) {
return [t[0] * this.k + this.x, t[1] * this.k + this.y];
},
applyX: function (t) {
return t * this.k + this.x;
},
applyY: function (t) {
return t * this.k + this.y;
},
invert: function (t) {
return [(t[0] - this.x) / this.k, (t[1] - this.y) / this.k];
},
invertX: function (t) {
return (t - this.x) / this.k;
},
invertY: function (t) {
return (t - this.y) / this.k;
},
rescaleX: function (t) {
return t
.copy()
.domain(t.range().map(this.invertX, this).map(t.invert, t));
},
rescaleY: function (t) {
return t
.copy()
.domain(t.range().map(this.invertY, this).map(t.invert, t));
},
toString: function () {
return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
},
};
var f = new c(1, 0, 0);
function h(t) {
for (; !t.__zoom; ) if (!(t = t.parentNode)) return f;
return t.__zoom;
}
function p(t) {
t.stopImmediatePropagation();
}
function d(t) {
t.preventDefault(), t.stopImmediatePropagation();
}
function v(t) {
return (!t.ctrlKey || "wheel" === t.type) && !t.button;
}
function m() {
var t = this;
return t instanceof SVGElement
? (t = t.ownerSVGElement || t).hasAttribute("viewBox")
? [
[(t = t.viewBox.baseVal).x, t.y],
[t.x + t.width, t.y + t.height],
]
: [
[0, 0],
[t.width.baseVal.value, t.height.baseVal.value],
]
: [
[0, 0],
[t.clientWidth, t.clientHeight],
];
}
function y() {
return this.__zoom || f;
}
function g(t) {
return (
-t.deltaY *
(1 === t.deltaMode ? 0.05 : t.deltaMode ? 1 : 0.002) *
(t.ctrlKey ? 10 : 1)
);
}
function _() {
return navigator.maxTouchPoints || "ontouchstart" in this;
}
function w(t, e, n) {
var r = t.invertX(e[0][0]) - n[0][0],
i = t.invertX(e[1][0]) - n[1][0],
o = t.invertY(e[0][1]) - n[0][1],
a = t.invertY(e[1][1]) - n[1][1];
return t.translate(
i > r ? (r + i) / 2 : Math.min(0, r) || Math.max(0, i),
a > o ? (o + a) / 2 : Math.min(0, o) || Math.max(0, a),
);
}
(h.prototype = c.prototype),
t.s(
["Transform", () => c, "default", () => h, "identity", () => f],
644200,
),
t.s(
[
"default",
0,
function () {
var t,
h,
x,
b = v,
k = m,
A = w,
M = g,
N = _,
E = [0, 1 / 0],
z = [
[-1 / 0, -1 / 0],
[1 / 0, 1 / 0],
],
S = 250,
T = i.interpolateZoom,
$ = (0, e.dispatch)("start", "zoom", "end"),
C = 0,
P = 10;
function V(t) {
t.property("__zoom", y)
.on("wheel.zoom", I, { passive: !1 })
.on("mousedown.zoom", B)
.on("dblclick.zoom", j)
.filter(N)
.on("touchstart.zoom", H)
.on("touchmove.zoom", L)
.on("touchend.zoom touchcancel.zoom", U)
.style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
}
function X(t, e) {
return (e = Math.max(E[0], Math.min(E[1], e))) === t.k
? t
: new c(e, t.x, t.y);
}
function q(t, e, n) {
var r = e[0] - n[0] * t.k,
i = e[1] - n[1] * t.k;
return r === t.x && i === t.y ? t : new c(t.k, r, i);
}
function R(t) {
return [(+t[0][0] + +t[1][0]) / 2, (+t[0][1] + +t[1][1]) / 2];
}
function D(t, e, n, r) {
t.on("start.zoom", function () {
O(this, arguments).event(r).start();
})
.on("interrupt.zoom end.zoom", function () {
O(this, arguments).event(r).end();
})
.tween("zoom", function () {
var t = arguments,
i = O(this, t).event(r),
o = k.apply(this, t),
a =
null == n
? R(o)
: "function" == typeof n
? n.apply(this, t)
: n,
u = Math.max(o[1][0] - o[0][0], o[1][1] - o[0][1]),
s = this.__zoom,
l = "function" == typeof e ? e.apply(this, t) : e,
f = T(
s.invert(a).concat(u / s.k),
l.invert(a).concat(u / l.k),
);
return function (t) {
if (1 === t) t = l;
else {
var e = f(t),
n = u / e[2];
t = new c(n, a[0] - e[0] * n, a[1] - e[1] * n);
}
i.zoom(null, t);
};
});
}
function O(t, e, n) {
return (!n && t.__zooming) || new Y(t, e);
}
function Y(t, e) {
(this.that = t),
(this.args = e),
(this.active = 0),
(this.sourceEvent = null),
(this.extent = k.apply(t, e)),
(this.taps = 0);
}
function I(t, ...e) {
if (b.apply(this, arguments)) {
var n = O(this, e).event(t),
r = this.__zoom,
i = Math.max(
E[0],
Math.min(E[1], r.k * Math.pow(2, M.apply(this, arguments))),
),
o = (0, a.pointer)(t);
if (n.wheel)
(n.mouse[0][0] !== o[0] || n.mouse[0][1] !== o[1]) &&
(n.mouse[1] = r.invert((n.mouse[0] = o))),
clearTimeout(n.wheel);
else {
if (r.k === i) return;
(n.mouse = [o, r.invert(o)]),
(0, u.interrupt)(this),
n.start();
}
d(t),
(n.wheel = setTimeout(function () {
(n.wheel = null), n.end();
}, 150)),
n.zoom(
"mouse",
A(q(X(r, i), n.mouse[0], n.mouse[1]), n.extent, z),
);
}
}
function B(t, ...e) {
if (!x && b.apply(this, arguments)) {
var i = t.currentTarget,
s = O(this, e, !0).event(t),
l = (0, o.select)(t.view)
.on(
"mousemove.zoom",
function (t) {
if ((d(t), !s.moved)) {
var e = t.clientX - f,
n = t.clientY - h;
s.moved = e * e + n * n > C;
}
s.event(t).zoom(
"mouse",
A(
q(
s.that.__zoom,
(s.mouse[0] = (0, a.pointer)(t, i)),
s.mouse[1],
),
s.extent,
z,
),
);
},
!0,
)
.on(
"mouseup.zoom",
function (t) {
l.on("mousemove.zoom mouseup.zoom", null),
(0, r.dragEnable)(t.view, s.moved),
d(t),
s.event(t).end();
},
!0,
),
c = (0, a.pointer)(t, i),
f = t.clientX,
h = t.clientY;
(0, n.dragDisable)(t.view),
p(t),
(s.mouse = [c, this.__zoom.invert(c)]),
(0, u.interrupt)(this),
s.start();
}
}
function j(t, ...e) {
if (b.apply(this, arguments)) {
var n = this.__zoom,
r = (0, a.pointer)(
t.changedTouches ? t.changedTouches[0] : t,
this,
),
i = n.invert(r),
u = n.k * (t.shiftKey ? 0.5 : 2),
s = A(q(X(n, u), r, i), k.apply(this, e), z);
d(t),
S > 0
? (0, o.select)(this)
.transition()
.duration(S)
.call(D, s, r, t)
: (0, o.select)(this).call(V.transform, s, r, t);
}
}
function H(e, ...n) {
if (b.apply(this, arguments)) {
var r,
i,
o,
s,
l = e.touches,
c = l.length,
f = O(this, n, e.changedTouches.length === c).event(e);
for (p(e), i = 0; i < c; ++i)
(o = l[i]),
(s = [
(s = (0, a.pointer)(o, this)),
this.__zoom.invert(s),
o.identifier,
]),
f.touch0
? f.touch1 ||
f.touch0[2] === s[2] ||
((f.touch1 = s), (f.taps = 0))
: ((f.touch0 = s), (r = !0), (f.taps = 1 + !!t));
t && (t = clearTimeout(t)),
r &&
(f.taps < 2 &&
((h = s[0]),
(t = setTimeout(function () {
t = null;
}, 500))),
(0, u.interrupt)(this),
f.start());
}
}
function L(t, ...e) {
if (this.__zooming) {
var n,
r,
i,
o,
u = O(this, e).event(t),
s = t.changedTouches,
l = s.length;
for (d(t), n = 0; n < l; ++n)
(r = s[n]),
(i = (0, a.pointer)(r, this)),
u.touch0 && u.touch0[2] === r.identifier
? (u.touch0[0] = i)
: u.touch1 &&
u.touch1[2] === r.identifier &&
(u.touch1[0] = i);
if (((r = u.that.__zoom), u.touch1)) {
var c = u.touch0[0],
f = u.touch0[1],
h = u.touch1[0],
p = u.touch1[1],
v = (v = h[0] - c[0]) * v + (v = h[1] - c[1]) * v,
m = (m = p[0] - f[0]) * m + (m = p[1] - f[1]) * m;
(r = X(r, Math.sqrt(v / m))),
(i = [(c[0] + h[0]) / 2, (c[1] + h[1]) / 2]),
(o = [(f[0] + p[0]) / 2, (f[1] + p[1]) / 2]);
} else {
if (!u.touch0) return;
(i = u.touch0[0]), (o = u.touch0[1]);
}
u.zoom("touch", A(q(r, i, o), u.extent, z));
}
}
function U(t, ...e) {
if (this.__zooming) {
var n,
r,
i = O(this, e).event(t),
u = t.changedTouches,
s = u.length;
for (
p(t),
x && clearTimeout(x),
x = setTimeout(function () {
x = null;
}, 500),
n = 0;
n < s;
++n
)
(r = u[n]),
i.touch0 && i.touch0[2] === r.identifier
? delete i.touch0
: i.touch1 &&
i.touch1[2] === r.identifier &&
delete i.touch1;
if (
(i.touch1 &&
!i.touch0 &&
((i.touch0 = i.touch1), delete i.touch1),
i.touch0)
)
i.touch0[1] = this.__zoom.invert(i.touch0[0]);
else if (
(i.end(),
2 === i.taps &&
((r = (0, a.pointer)(r, this)),
Math.hypot(h[0] - r[0], h[1] - r[1]) < P))
) {
var l = (0, o.select)(this).on("dblclick.zoom");
l && l.apply(this, arguments);
}
}
}
return (
(V.transform = function (t, e, n, r) {
var i = t.selection ? t.selection() : t;
i.property("__zoom", y),
t !== i
? D(t, e, n, r)
: i.interrupt().each(function () {
O(this, arguments)
.event(r)
.start()
.zoom(
null,
"function" == typeof e
? e.apply(this, arguments)
: e,
)
.end();
});
}),
(V.scaleBy = function (t, e, n, r) {
V.scaleTo(
t,
function () {
var t = this.__zoom.k,
n = "function" == typeof e ? e.apply(this, arguments) : e;
return t * n;
},
n,
r,
);
}),
(V.scaleTo = function (t, e, n, r) {
V.transform(
t,
function () {
var t = k.apply(this, arguments),
r = this.__zoom,
i =
null == n
? R(t)
: "function" == typeof n
? n.apply(this, arguments)
: n,
o = r.invert(i),
a = "function" == typeof e ? e.apply(this, arguments) : e;
return A(q(X(r, a), i, o), t, z);
},
n,
r,
);
}),
(V.translateBy = function (t, e, n, r) {
V.transform(
t,
function () {
return A(
this.__zoom.translate(
"function" == typeof e ? e.apply(this, arguments) : e,
"function" == typeof n ? n.apply(this, arguments) : n,
),
k.apply(this, arguments),
z,
);
},
null,
r,
);
}),
(V.translateTo = function (t, e, n, r, i) {
V.transform(
t,
function () {
var t = k.apply(this, arguments),
i = this.__zoom,
o =
null == r
? R(t)
: "function" == typeof r
? r.apply(this, arguments)
: r;
return A(
f
.translate(o[0], o[1])
.scale(i.k)
.translate(
"function" == typeof e
? -e.apply(this, arguments)
: -e,
"function" == typeof n
? -n.apply(this, arguments)
: -n,
),
t,
z,
);
},
r,
i,
);
}),
(Y.prototype = {
event: function (t) {
return t && (this.sourceEvent = t), this;
},
start: function () {
return (
1 == ++this.active &&
((this.that.__zooming = this), this.emit("start")),
this
);
},
zoom: function (t, e) {
return (
this.mouse &&
"mouse" !== t &&
(this.mouse[1] = e.invert(this.mouse[0])),
this.touch0 &&
"touch" !== t &&
(this.touch0[1] = e.invert(this.touch0[0])),
this.touch1 &&
"touch" !== t &&
(this.touch1[1] = e.invert(this.touch1[0])),
(this.that.__zoom = e),
this.emit("zoom"),
this
);
},
end: function () {
return (
0 == --this.active &&
(delete this.that.__zooming, this.emit("end")),
this
);
},
emit: function (t) {
var e = (0, o.select)(this.that).datum();
$.call(
t,
this.that,
new l(t, {
sourceEvent: this.sourceEvent,
target: V,
type: t,
transform: this.that.__zoom,
dispatch: $,
}),
e,
);
},
}),
(V.wheelDelta = function (t) {
return arguments.length
? ((M = "function" == typeof t ? t : s(+t)), V)
: M;
}),
(V.filter = function (t) {
return arguments.length
? ((b = "function" == typeof t ? t : s(!!t)), V)
: b;
}),
(V.touchable = function (t) {
return arguments.length
? ((N = "function" == typeof t ? t : s(!!t)), V)
: N;
}),
(V.extent = function (t) {
return arguments.length
? ((k =
"function" == typeof t
? t
: s([
[+t[0][0], +t[0][1]],
[+t[1][0], +t[1][1]],
])),
V)
: k;
}),
(V.scaleExtent = function (t) {
return arguments.length
? ((E[0] = +t[0]), (E[1] = +t[1]), V)
: [E[0], E[1]];
}),
(V.translateExtent = function (t) {
return arguments.length
? ((z[0][0] = +t[0][0]),
(z[1][0] = +t[1][0]),
(z[0][1] = +t[0][1]),
(z[1][1] = +t[1][1]),
V)
: [
[z[0][0], z[0][1]],
[z[1][0], z[1][1]],
];
}),
(V.constrain = function (t) {
return arguments.length ? ((A = t), V) : A;
}),
(V.duration = function (t) {
return arguments.length ? ((S = +t), V) : S;
}),
(V.interpolate = function (t) {
return arguments.length ? ((T = t), V) : T;
}),
(V.on = function () {
var t = $.on.apply($, arguments);
return t === $ ? V : t;
}),
(V.clickDistance = function (t) {
return arguments.length
? ((C = (t *= 1) * t), V)
: Math.sqrt(C);
}),
(V.tapDistance = function (t) {
return arguments.length ? ((P = +t), V) : P;
}),
V
);
},
],
953752,
),
t.s([], 250149);
},
819505,
238816,
97376,
(t) => {
"use strict";
t.s(["genericArray", () => r], 819505);
var e = t.i(213570);
function n(t) {
return ArrayBuffer.isView(t) && !(t instanceof DataView);
}
function r(t, n) {
var r,
i = n ? n.length : 0,
o = t ? Math.min(i, t.length) : 0,
a = Array(o),
u = Array(i);
for (r = 0; r < o; ++r) a[r] = (0, e.default)(t[r], n[r]);
for (; r < i; ++r) u[r] = n[r];
return function (t) {
for (r = 0; r < o; ++r) u[r] = a[r](t);
return u;
};
}
t.s(
[
"default",
0,
function (t, e) {
e || (e = []);
var n,
r = t ? Math.min(e.length, t.length) : 0,
i = e.slice();
return function (o) {
for (n = 0; n < r; ++n) i[n] = t[n] * (1 - o) + e[n] * o;
return i;
};
},
"isNumberArray",
() => n,
],
238816,
),
t.s(
[
"default",
0,
function (t, e) {
var n = new Date();
return (
(t *= 1),
(e *= 1),
function (r) {
return n.setTime(t * (1 - r) + e * r), n;
}
);
},
],
97376,
);
},
905660,
(t) => {
"use strict";
t.s(["default", () => n]);
var e = t.i(213570);
function n(t, n) {
var r,
i = {},
o = {};
for (r in ((null === t || "object" != typeof t) && (t = {}),
(null === n || "object" != typeof n) && (n = {}),
n))
r in t ? (i[r] = (0, e.default)(t[r], n[r])) : (o[r] = n[r]);
return function (t) {
for (r in i) o[r] = i[r](t);
return o;
};
}
},
678152,
213570,
(t) => {
"use strict";
t.s(["default", () => c], 213570);
var e = t.i(161610),
n = t.i(145665),
r = t.i(819505),
i = t.i(97376),
o = t.i(842541),
a = t.i(905660),
u = t.i(647483),
s = t.i(181503),
l = t.i(238816);
function c(t, c) {
var f,
h = typeof c;
return null == c || "boolean" === h
? (0, s.default)(c)
: ("number" === h
? o.default
: "string" === h
? (f = (0, e.color)(c))
? ((c = f), n.default)
: u.default
: c instanceof e.color
? n.default
: c instanceof Date
? i.default
: (0, l.isNumberArray)(c)
? l.default
: Array.isArray(c)
? r.genericArray
: ("function" != typeof c.valueOf &&
"function" != typeof c.toString) ||
isNaN(c)
? a.default
: o.default)(t, c);
}
t.s(["interpolate", 0, c], 678152);
},
]);