628 lines
19 KiB
JavaScript
628 lines
19 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 080d73f6a8a7055f.15232f16bf.js
|
|
* Module id: 603760
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (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);
|
|
};
|
|
|
|
export default moduleFactory;
|