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

279 lines
7.4 KiB
JavaScript

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