Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

fix(settings): 偏好设置弹层去掉分区顶部的「了解这些设置」折叠块

longmeidao9e3ba2d6e947
diff --git a/frontend/src/react/onboarding/guide-help.tsx b/frontend/src/react/onboarding/guide-help.tsx
index c35dc99ac..7a51abe5a 100644
--- a/frontend/src/react/onboarding/guide-help.tsx
+++ b/frontend/src/react/onboarding/guide-help.tsx
@@ -1,20 +1,3 @@
-import { Button } from '@/components/base/buttons/button';
-import { GUIDE_CHAPTERS } from '../../onboarding/guide-catalog';
-import { openGuide } from '../../onboarding/guide-state';
-import { Disclosure } from '../settings/section';
-
export function GuideFieldDetails({ details }: { details?: readonly [string, string][] }) {
return details?.length ? <dl className="flex flex-col gap-3">{details.map(([title, body]) => <div key={title} className="flex flex-col gap-1"><dt className="text-body-2-medium text-text-primary">{title}</dt><dd className="text-body-2-regular text-text-secondary">{body}</dd></div>)}</dl> : null;
}
-
-/** 偏好设置各页的章节入口:一句概要,再从这里开始这一章导览,不接管设置的保存行为。 */
-export function GuideHelp({ chapter }: { chapter?: string }) {
- const group = GUIDE_CHAPTERS.find(row => row.id === chapter);
- if (!group) return null;
- return <div className="text-body-2-regular text-text-secondary">
- <Disclosure summary="了解这些设置">
- <p>{group.summary}</p>
- <div><Button variant="secondary" size="small" onClick={() => openGuide({ chapter })}>逐步了解这个分区</Button></div>
- </Disclosure>
- </div>;
-}
diff --git a/frontend/src/react/settings-panel/settings-panel.tsx b/frontend/src/react/settings-panel/settings-panel.tsx
index e15a8db3d..34e2f1b55 100644
--- a/frontend/src/react/settings-panel/settings-panel.tsx
+++ b/frontend/src/react/settings-panel/settings-panel.tsx
@@ -35,7 +35,6 @@ import { fetchSettings, refreshPanelData, SETTINGS_KEY, useSaveSettings } from '
import { Note } from '../components/note';
import { SidebarOrder } from './sidebar-order';
import { SettingsDialogClose } from '../components/settings-dialog-close';
-import { GuideHelp } from '../onboarding/guide-help';
/* 左栏的分区,顺序即右边各组的顺序。字形按条目自己的名字取:整列取自 Remix,一家画的笔画
才一样粗。 */
@@ -252,7 +251,6 @@ function Group({ index, tab, children, cards = false }: { index: number; tab: nu
<section data-setting-group="" data-setting-layout={cards ? 'cards' : undefined}
id={groupId(index)} role="tabpanel" aria-labelledby={tabId(index)} hidden={index !== tab}>
<h3>{SECTIONS[index][0]}</h3>
- <GuideHelp chapter={['appearance', 'playback', 'jav-settings', 'search-settings', 'content'][index]} />
{children}
</section>
);
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index 58775e96e..6287250ec 100644
--- a/web/dist/peach-app.js
+++ b/web/dist/peach-app.js
@@ -2,7 +2,7 @@
(function() {
try {
var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "27c5cade-5d65-4e36-96f2-f36f4120d452", e._sentryDebugIdIdentifier = "sentry-dbid-27c5cade-5d65-4e36-96f2-f36f4120d452");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "5209a182-bcf7-4e76-90b8-20984e88c25a", e._sentryDebugIdIdentifier = "sentry-dbid-5209a182-bcf7-4e76-90b8-20984e88c25a");
} catch {}
})();
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, n) => {
@@ -18414,20 +18414,20 @@ var Lv = /* @__PURE__ */ new Set([
e.style[n] = H_(r.getCurrent(), Qg[n]);
};
return t.set(n, r, i, a);
-}, Xte = (e) => Av(e) || jv(e), Bv = (e, t) => {
+}, Bv = (e) => Av(e) || jv(e), Vv = (e, t) => {
if (f_.has(t)) return u_(e, t);
let n = getComputedStyle(e), r = T_(t) ? n.getPropertyValue(t) : n[t];
return typeof r == "string" && r.trim() || 0;
-}, Zte = /*@__PURE__*/ Iv(zv, {
- test: Xte,
- read: Bv
+}, Xte = /*@__PURE__*/ Iv(zv, {
+ test: Bv,
+ read: Vv
});
// node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
-function Vv(e) {
+function Hv(e) {
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
}
// node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
-function Hv(e, t, n) {
+function Uv(e, t, n) {
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
for (let e in t) {
let n = t[e];
@@ -18444,20 +18444,20 @@ function Hv(e, t, n) {
}
}
// node_modules/motion-dom/dist/es/render/svg/utils/path.mjs
-var Qte = {
+var Zte = {
offset: "stroke-dashoffset",
array: "stroke-dasharray"
-}, $te = {
+}, Qte = {
offset: "strokeDashoffset",
array: "strokeDasharray"
};
-function ene(e, t, n = 1, r = 0, i = !0) {
+function $te(e, t, n = 1, r = 0, i = !0) {
e.pathLength = 1;
- let a = i ? Qte : $te;
+ let a = i ? Zte : Qte;
e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
}
// node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
-var Uv = [
+var Wv = [
"transform",
"opacity",
"clipPath",
@@ -18467,25 +18467,25 @@ var Uv = [
"offsetRotate",
"offsetAnchor"
];
-function Wv(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
- if (Hv(e, s, l), c) {
+function Gv(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
+ if (Uv(e, s, l), c) {
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
return;
}
e.attrs = e.style, e.style = {};
let { attrs: d, style: f } = e;
- for (let e of Uv) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
- (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && ene(d, i, a, o, !1);
+ for (let e of Wv) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
+ (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && $te(d, i, a, o, !1);
}
// node_modules/motion-dom/dist/es/effects/attr/index.mjs
-function tne(e, t) {
+function ene(e, t) {
if (!(t in e)) return !1;
let n = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), t) || Object.getOwnPropertyDescriptor(e, t);
return n && typeof n.set == "function";
}
-var Gv = (e, t, n, r, i = n) => {
- let a = tne(e, i);
- !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Vv(i));
+var Kv = (e, t, n, r, i = n) => {
+ let a = ene(e, i);
+ !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Hv(i));
let o = Qg[n] || Qg[i], s = a ? () => {
e[i] = H_(r.get(), Qg[n]);
} : () => {
@@ -18495,7 +18495,7 @@ var Gv = (e, t, n, r, i = n) => {
return t.set(n, r, s);
};
// node_modules/motion-dom/dist/es/effects/svg/index.mjs
-function nne(e, t, n, r) {
+function tne(e, t, n, r) {
return pg.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {
let t = r.get();
e.setAttribute("stroke-dashoffset", `${-t}`);
@@ -18504,18 +18504,18 @@ function nne(e, t, n, r) {
e.setAttribute("stroke-dasharray", `${n} ${r ?? 1 - Number(n)}`);
}), t.set(n, r, void 0, t.get("stroke-dasharray")));
}
-var rne = /*@__PURE__*/ Iv((e, t, n, r) => n.startsWith("path") && !f_.has(n) ? nne(e, t, n, r) : n.startsWith("attr") ? Gv(e, t, n, r, Kv(n)) : n === "d" ? t.set(n, r, () => {
+var nne = /*@__PURE__*/ Iv((e, t, n, r) => n.startsWith("path") && !f_.has(n) ? tne(e, t, n, r) : n.startsWith("attr") ? Kv(e, t, n, r, qv(n)) : n === "d" ? t.set(n, r, () => {
let t = r.get()?.replace(/path\(|["')]/g, "");
t === void 0 ? e.removeAttribute(n) : e.setAttribute(n, t);
-}) : (f_.has(n) || Lv.has(n) || T_(n) || n in e.style ? zv : Gv)(e, t, n, r), {
+}) : (f_.has(n) || Lv.has(n) || T_(n) || n in e.style ? zv : Kv)(e, t, n, r), {
test: jv,
- read: (e, t) => f_.has(t) ? Qg[t]?.default || 0 : T_(t) || Uv.includes(t) ? Bv(e, t) || e.getAttribute(Vv(t)) || 0 : (t = Kv(t), e.getAttribute(Vv(t)) ?? e.getAttribute(t) ?? void 0)
+ read: (e, t) => f_.has(t) ? Qg[t]?.default || 0 : T_(t) || Wv.includes(t) ? Vv(e, t) || e.getAttribute(Hv(t)) || 0 : (t = qv(t), e.getAttribute(Hv(t)) ?? e.getAttribute(t) ?? void 0)
});
-function Kv(e) {
+function qv(e) {
return e.replace(/^attr([A-Z])/, (e, t) => t.toLowerCase());
}
// node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
-function qv({ top: e, left: t, right: n, bottom: r }) {
+function Jv({ top: e, left: t, right: n, bottom: r }) {
return {
x: {
min: t,
@@ -18527,7 +18527,7 @@ function qv({ top: e, left: t, right: n, bottom: r }) {
}
};
}
-function ine({ x: e, y: t }) {
+function rne({ x: e, y: t }) {
return {
top: t.min,
right: e.max,
@@ -18535,7 +18535,7 @@ function ine({ x: e, y: t }) {
left: e.min
};
}
-function ane(e, t) {
+function ine(e, t) {
if (!t) return e;
let n = t({
x: e.left,
@@ -18552,13 +18552,13 @@ function ane(e, t) {
};
}
// node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
-function Jv(e) {
+function Yv(e) {
return e === void 0 || e === 1;
}
-function Yv({ scale: e, scaleX: t, scaleY: n }) {
- return !Jv(e) || !Jv(t) || !Jv(n);
+function Xv({ scale: e, scaleX: t, scaleY: n }) {
+ return !Yv(e) || !Yv(t) || !Yv(n);
}
-var Xv = [
+var Zv = [
"rotate",
"rotateX",
"rotateY",
@@ -18566,65 +18566,65 @@ var Xv = [
"skewX",
"skewY"
];
-function Zv(e) {
- return Yv(e) || $v(e) || Qv(e);
-}
function Qv(e) {
- return e.z || e.rotate || e.rotateX || e.rotateY || e.rotateZ || e.skewX || e.skewY;
+ return Xv(e) || ey(e) || $v(e);
}
function $v(e) {
- return ey(e.x) || ey(e.y);
+ return e.z || e.rotate || e.rotateX || e.rotateY || e.rotateZ || e.skewX || e.skewY;
}
function ey(e) {
+ return ty(e.x) || ty(e.y);
+}
+function ty(e) {
return e && e !== "0%";
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
-function ty(e, t, n) {
+function ny(e, t, n) {
return n + t * (e - n);
}
-function ny(e, t, n, r, i) {
- return i !== void 0 && (e = ty(e, i, r)), ty(e, n, r) + t;
+function ry(e, t, n, r, i) {
+ return i !== void 0 && (e = ny(e, i, r)), ny(e, n, r) + t;
}
-function ry(e, t = 0, n = 1, r, i) {
- e.min = ny(e.min, t, n, r, i), e.max = ny(e.max, t, n, r, i);
+function iy(e, t = 0, n = 1, r, i) {
+ e.min = ry(e.min, t, n, r, i), e.max = ry(e.max, t, n, r, i);
}
-function iy(e, { x: t, y: n }) {
- ry(e.x, t.translate, t.scale, t.originPoint), ry(e.y, n.translate, n.scale, n.originPoint);
+function ay(e, { x: t, y: n }) {
+ iy(e.x, t.translate, t.scale, t.originPoint), iy(e.y, n.translate, n.scale, n.originPoint);
}
-var ay = .999999999999, oy = 1.0000000000001;
-function one(e, t, n, r = !1) {
+var oy = .999999999999, sy = 1.0000000000001;
+function ane(e, t, n, r = !1) {
let i = n.length;
if (!i) return;
t.x = t.y = 1;
let a, o;
- for (let s = 0; s < i; s++) a = n[s], o = a.projectionDelta, a.options.visualElement?.props.style?.display !== "contents" && (r === !0 && a.options.layoutScroll && a.scroll && a !== a.root && (sy(e.x, -a.scroll.offset.x), sy(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, iy(e, o)), r && (r.path?.[s] || r) !== a && Zv(a.latestValues) && uy(e, a.latestValues, a.layout?.layoutBox));
- t.x < oy && t.x > ay && (t.x = 1), t.y < oy && t.y > ay && (t.y = 1);
+ for (let s = 0; s < i; s++) a = n[s], o = a.projectionDelta, a.options.visualElement?.props.style?.display !== "contents" && (r === !0 && a.options.layoutScroll && a.scroll && a !== a.root && (cy(e.x, -a.scroll.offset.x), cy(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, ay(e, o)), r && (r.path?.[s] || r) !== a && Qv(a.latestValues) && dy(e, a.latestValues, a.layout?.layoutBox));
+ t.x < sy && t.x > oy && (t.x = 1), t.y < sy && t.y > oy && (t.y = 1);
}
-function sy(e, t) {
+function cy(e, t) {
e.min += t, e.max += t;
}
-function cy(e, t, n, r, i = .5) {
- ry(e, t, n, ng(e.min, e.max, i), r);
+function ly(e, t, n, r, i = .5) {
+ iy(e, t, n, ng(e.min, e.max, i), r);
}
-function ly(e, t) {
+function uy(e, t) {
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
}
-function uy(e, t, n) {
+function dy(e, t, n) {
let r = n ?? e;
- cy(e.x, ly(t.x, r.x), t.scaleX, t.scale, t.originX), cy(e.y, ly(t.y, r.y), t.scaleY, t.scale, t.originY);
+ ly(e.x, uy(t.x, r.x), t.scaleX, t.scale, t.originX), ly(e.y, uy(t.y, r.y), t.scaleY, t.scale, t.originY);
}
// node_modules/motion-dom/dist/es/projection/utils/measure.mjs
-function dy(e, t) {
- return qv(ane(e.getBoundingClientRect(), t));
+function fy(e, t) {
+ return Jv(ine(e.getBoundingClientRect(), t));
}
-function sne(e, t, n) {
- let r = dy(e, n), { scroll: i } = t;
- return i && (sy(r.x, i.offset.x), sy(r.y, i.offset.y)), r;
+function one(e, t, n) {
+ let r = fy(e, n), { scroll: i } = t;
+ return i && (cy(r.x, i.offset.x), cy(r.y, i.offset.y)), r;
}
-var cne = () => ({
+var sne = () => ({
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
-}), lne = {}, une = (e) => jv(e) ? rne : Zte, dne = class {
+}), cne = {}, lne = (e) => jv(e) ? nne : Xte, une = class {
constructor(e, t) {
this.effect = e, this.current = t, this.KeyframeResolver = wv;
}
@@ -18638,19 +18638,19 @@ var cne = () => ({
this.effect.flush(this.current);
}
measureViewportBox() {
- return dy(this.current);
+ return fy(this.current);
}
getProps() {
- return lne;
+ return cne;
}
};
-function fne(e, t, n, r) {
+function dne(e, t, n, r) {
if (Mv.current?.track(e), r) return Ov((e) => r.getValue(e, null), t, n, r);
- let i = une(e);
- return kv(i, e, t, n, new dne(i, e));
+ let i = lne(e);
+ return kv(i, e, t, n, new une(i, e));
}
// node_modules/motion-dom/dist/es/effects/prop/index.mjs
-var pne = /*@__PURE__*/ Iv((e, t, n, r) => t.set(n, r, () => {
+var fne = /*@__PURE__*/ Iv((e, t, n, r) => t.set(n, r, () => {
e[n] = r.get();
}), {
test: (e) => Cm(e),
@@ -18658,20 +18658,20 @@ var pne = /*@__PURE__*/ Iv((e, t, n, r) => t.set(n, r, () => {
let n = e[t];
return typeof n == "string" || typeof n == "number" ? n : void 0;
}
-}), { schedule: fy, cancel: mne } = /* @__PURE__ */ fg(queueMicrotask, !1);
+}), { schedule: py, cancel: pne } = /* @__PURE__ */ fg(queueMicrotask, !1);
// node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
-function py(e, t, n) {
+function my(e, t, n) {
let r = _v(e) ? e : cv(e);
return r.start(dv("", r, t, n)), r.animation;
}
// node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs
-var my = {}, hy = {
+var hy = {}, gy = {
value: null,
addProjectionMetrics: null,
countProjection: void 0
};
// node_modules/motion-dom/dist/es/utils/delay.mjs
-function hne(e, t) {
+function mne(e, t) {
let n = rh.now();
e = Pv(e);
let r = ({ timestamp: i }) => {
@@ -18681,149 +18681,149 @@ function hne(e, t) {
return pg.setup(r, !0), Nv(() => mg(r));
}
// node_modules/motion-dom/dist/es/utils/is-ref-object.mjs
-function gne(e) {
+function hne(e) {
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
}
// node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
-function _ne(e) {
+function gne(e) {
return jv(e) && e.tagName === "svg";
}
// node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
-function gy(e) {
+function _y(e) {
return _v(e) ? e.get() : e;
}
// node_modules/motion-dom/dist/es/value/utils/as-number.mjs
-var _y = (e) => typeof e == "number" ? e : parseFloat(e), vne = Tv.length, vy = (e) => typeof e == "number" || Oh.test(e);
-function yne(e, t, n, r, i, a) {
- i ? (e.opacity = ng(0, n.opacity ?? 1, bne(r)), e.opacityExit = ng(t.opacity ?? 1, 0, xne(r))) : a && (e.opacity = ng(t.opacity ?? 1, n.opacity ?? 1, r));
- for (let i = 0; i < vne; i++) {
- let a = Tv[i], o = yy(t, a), s = yy(n, a);
- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || vy(o) === vy(s) ? (e[a] = Math.max(ng(_y(o), _y(s), r), 0), (Dh.test(s) || Dh.test(o)) && (e[a] += "%")) : e[a] = s);
- }
- for (let i = 0; i < Xv.length; i++) {
- let a = Xv[i];
+var vy = (e) => typeof e == "number" ? e : parseFloat(e), _ne = Tv.length, yy = (e) => typeof e == "number" || Oh.test(e);
+function vne(e, t, n, r, i, a) {
+ i ? (e.opacity = ng(0, n.opacity ?? 1, yne(r)), e.opacityExit = ng(t.opacity ?? 1, 0, bne(r))) : a && (e.opacity = ng(t.opacity ?? 1, n.opacity ?? 1, r));
+ for (let i = 0; i < _ne; i++) {
+ let a = Tv[i], o = by(t, a), s = by(n, a);
+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || yy(o) === yy(s) ? (e[a] = Math.max(ng(vy(o), vy(s), r), 0), (Dh.test(s) || Dh.test(o)) && (e[a] += "%")) : e[a] = s);
+ }
+ for (let i = 0; i < Zv.length; i++) {
+ let a = Zv[i];
(t[a] || n[a]) && (e[a] = ng(t[a] || 0, n[a] || 0, r));
}
}
-function yy(e, t) {
+function by(e, t) {
return e[t] === void 0 ? e.borderRadius : e[t];
}
-var bne = /*@__PURE__*/ by(0, .5, Um), xne = /*@__PURE__*/ by(.5, .95, Em);
-function by(e, t, n) {
+var yne = /*@__PURE__*/ xy(0, .5, Um), bne = /*@__PURE__*/ xy(.5, .95, Em);
+function xy(e, t, n) {
return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ Om(e, t, r));
}
// node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
-function xy(e, t) {
- e.min = t.min, e.max = t.max;
-}
function Sy(e, t) {
- xy(e.x, t.x), xy(e.y, t.y);
+ e.min = t.min, e.max = t.max;
}
function Cy(e, t) {
+ Sy(e.x, t.x), Sy(e.y, t.y);
+}
+function wy(e, t) {
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
-var Sne = .9999, Cne = 1.0001, wne = -.01, Tne = .01;
-function wy(e) {
+var xne = .9999, Sne = 1.0001, Cne = -.01, wne = .01;
+function Ty(e) {
return e.max - e.min;
}
-function Ene(e, t, n) {
+function Tne(e, t, n) {
return Math.abs(e - t) <= n;
}
-function Ty(e, t, n, r = .5) {
- e.origin = r, e.originPoint = ng(t.min, t.max, e.origin), e.scale = wy(n) / wy(t), e.translate = ng(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Sne && e.scale <= Cne || isNaN(e.scale)) && (e.scale = 1), (e.translate >= wne && e.translate <= Tne || isNaN(e.translate)) && (e.translate = 0);
+function Ey(e, t, n, r = .5) {
+ e.origin = r, e.originPoint = ng(t.min, t.max, e.origin), e.scale = Ty(n) / Ty(t), e.translate = ng(n.min, n.max, e.origin) - e.originPoint, (e.scale >= xne && e.scale <= Sne || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Cne && e.translate <= wne || isNaN(e.translate)) && (e.translate = 0);
}
-function Ey(e, t, n, r) {
- Ty(e.x, t.x, n.x, r?.originX), Ty(e.y, t.y, n.y, r?.originY);
+function Dy(e, t, n, r) {
+ Ey(e.x, t.x, n.x, r?.originX), Ey(e.y, t.y, n.y, r?.originY);
}
-function Dy(e, t, n, r = 0) {
- e.min = (r ? ng(n.min, n.max, r) : n.min) + t.min, e.max = e.min + wy(t);
+function Oy(e, t, n, r = 0) {
+ e.min = (r ? ng(n.min, n.max, r) : n.min) + t.min, e.max = e.min + Ty(t);
}
-function Dne(e, t, n, r) {
- Dy(e.x, t.x, n.x, r?.x), Dy(e.y, t.y, n.y, r?.y);
+function Ene(e, t, n, r) {
+ Oy(e.x, t.x, n.x, r?.x), Oy(e.y, t.y, n.y, r?.y);
}
-function Oy(e, t, n, r = 0) {
+function ky(e, t, n, r = 0) {
let i = r ? ng(n.min, n.max, r) : n.min;
- e.min = t.min - i, e.max = e.min + wy(t);
+ e.min = t.min - i, e.max = e.min + Ty(t);
}
-function ky(e, t, n, r) {
- Oy(e.x, t.x, n.x, r?.x), Oy(e.y, t.y, n.y, r?.y);
+function Ay(e, t, n, r) {
+ ky(e.x, t.x, n.x, r?.x), ky(e.y, t.y, n.y, r?.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
-function Ay(e, t, n, r, i) {
- return e -= t, e = ty(e, 1 / n, r), i !== void 0 && (e = ty(e, 1 / i, r)), e;
+function jy(e, t, n, r, i) {
+ return e -= t, e = ny(e, 1 / n, r), i !== void 0 && (e = ny(e, 1 / i, r)), e;
}
-function One(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
+function Dne(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
if (Dh.test(t) && (t = parseFloat(t), t = ng(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
let s = ng(a.min, a.max, r);
- e === a && (s -= t), e.min = Ay(e.min, t, n, s, i), e.max = Ay(e.max, t, n, s, i);
+ e === a && (s -= t), e.min = jy(e.min, t, n, s, i), e.max = jy(e.max, t, n, s, i);
}
-function jy(e, t, [n, r, i], a, o) {
- One(e, t[n], t[r], t[i], t.scale, a, o);
+function My(e, t, [n, r, i], a, o) {
+ Dne(e, t[n], t[r], t[i], t.scale, a, o);
}
-var kne = [
+var Ny = [
"x",
"scaleX",
"originX"
-], Ane = [
+], One = [
"y",
"scaleY",
"originY"
];
-function My(e, t, n, r) {
- jy(e.x, t, kne, n?.x, r?.x), jy(e.y, t, Ane, n?.y, r?.y);
+function Py(e, t, n, r) {
+ My(e.x, t, Ny, n?.x, r?.x), My(e.y, t, One, n?.y, r?.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/round.mjs
-var Ny = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Py = Ny("applewebkit/") && !Ny("chrome/") ? Math.round : Em;
-function Fy(e) {
- e.min = Py(e.min), e.max = Py(e.max);
+var Fy = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Iy = Fy("applewebkit/") && !Fy("chrome/") ? Math.round : Em;
+function Ly(e) {
+ e.min = Iy(e.min), e.max = Iy(e.max);
}
-function jne(e) {
- Fy(e.x), Fy(e.y);
+function kne(e) {
+ Ly(e.x), Ly(e.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/models.mjs
-var Iy = () => ({
+var Ry = () => ({
translate: 0,
scale: 1,
origin: 0,
originPoint: 0
-}), Ly = () => ({
- x: Iy(),
- y: Iy()
-}), Ry = () => ({
- min: 0,
- max: 0
}), zy = () => ({
x: Ry(),
y: Ry()
+}), By = () => ({
+ min: 0,
+ max: 0
+}), Vy = () => ({
+ x: By(),
+ y: By()
});
// node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
-function By(e) {
+function Hy(e) {
return e.translate === 0 && e.scale === 1;
}
-function Vy(e) {
- return By(e.x) && By(e.y);
+function Uy(e) {
+ return Hy(e.x) && Hy(e.y);
}
-function Hy(e, t) {
+function Wy(e, t) {
return e.min === t.min && e.max === t.max;
}
-function Mne(e, t) {
- return Hy(e.x, t.x) && Hy(e.y, t.y);
+function Ane(e, t) {
+ return Wy(e.x, t.x) && Wy(e.y, t.y);
}
-function Uy(e, t) {
+function Gy(e, t) {
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
}
-function Wy(e, t) {
- return Uy(e.x, t.x) && Uy(e.y, t.y);
+function Ky(e, t) {
+ return Gy(e.x, t.x) && Gy(e.y, t.y);
}
-function Gy(e) {
- return wy(e.x) / wy(e.y);
+function qy(e) {
+ return Ty(e.x) / Ty(e.y);
}
-function Ky(e, t) {
+function Jy(e, t) {
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
}
// node_modules/motion-dom/dist/es/projection/shared/stack.mjs
-var Nne = class {
+var jne = class {
constructor() {
this.members = [];
}
@@ -18871,22 +18871,22 @@ var Nne = class {
}
};
// node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
-function qy(e, t) {
+function Yy(e, t) {
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
}
-var Jy = { correct: (e, t) => {
+var Xy = { correct: (e, t) => {
if (!t.target) return e;
if (typeof e == "string") {
if (Oh.test(e)) e = parseFloat(e);
else return e;
}
- return `${qy(e, t.target.x)}% ${qy(e, t.target.y)}%`;
-} }, Pne = {
- borderRadius: /* @__PURE__ */ Object.assign({}, Jy, { applyTo: /* @__PURE__ */ Tv.slice() }),
- borderTopLeftRadius: Jy,
- borderTopRightRadius: Jy,
- borderBottomLeftRadius: Jy,
- borderBottomRightRadius: Jy,
+ return `${Yy(e, t.target.x)}% ${Yy(e, t.target.y)}%`;
+} }, Mne = {
+ borderRadius: /* @__PURE__ */ Object.assign({}, Xy, { applyTo: /* @__PURE__ */ Tv.slice() }),
+ borderTopLeftRadius: Xy,
+ borderTopRightRadius: Xy,
+ borderBottomLeftRadius: Xy,
+ borderBottomRightRadius: Xy,
boxShadow: { correct: (e, { treeScale: t, projectionDelta: n }) => {
let r = e, i = Qh.parse(e);
if (i.length > 5) return r;
@@ -18897,13 +18897,13 @@ var Jy = { correct: (e, t) => {
} }
};
// node_modules/motion-dom/dist/es/projection/styles/transform.mjs
-function Fne(e, t, n) {
+function Nne(e, t, n) {
let r = "", i = e.x.translate / t.x, a = e.y.translate / t.y, o = n?.z || 0;
if ((i || a || o) && (r = `translate3d(${i}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
let { transformPerspective: e } = n;
e && (r = `perspective(${e}px) ${r}`);
- for (let e = 0; e < Xv.length; e++) {
- let t = Xv[e], i = n[t];
+ for (let e = 0; e < Zv.length; e++) {
+ let t = Zv[e], i = n[t];
i && (r += `${t}(${i}deg) `), !e && n.pathRotation && (r += `rotate(${n.pathRotation}deg) `);
}
}
@@ -18911,11 +18911,11 @@ function Fne(e, t, n) {
return (s !== 1 || c !== 1) && (r += `scale(${s}, ${c})`), r || "none";
}
// node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs
-function Yy(e) {
+function Zy(e) {
return [e("x"), e("y")];
}
// node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
-var Ine = (e, t) => e.depth - t.depth, Lne = class {
+var Pne = (e, t) => e.depth - t.depth, Fne = class {
constructor() {
this.children = [], this.isDirty = !1;
}
@@ -18926,22 +18926,22 @@ var Ine = (e, t) => e.depth - t.depth, Lne = class {
ym(this.children, e), this.isDirty = !0;
}
forEach(e) {
- this.isDirty && this.children.sort(Ine), this.isDirty = !1, this.children.forEach(e);
+ this.isDirty && this.children.sort(Pne), this.isDirty = !1, this.children.forEach(e);
}
-}, Xy = {
+}, Qy = {
hasAnimatedSinceResize: !0,
hasEverUpdated: !1
-}, Zy = [
+}, $y = [
"z",
"skew",
"skewZ"
-], Rne = 1e3, zne = 0;
-function Qy(e, t, n, r) {
+], Ine = 1e3, Lne = 0;
+function eb(e, t, n, r) {
let { latestValues: i } = t;
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
}
-var $y = (e) => e.instance && K_.get(e.instance)?.demote() && e.resetSkewAndRotation();
-function eb(e) {
+var tb = (e) => e.instance && K_.get(e.instance)?.demote() && e.resetSkewAndRotation();
+function nb(e) {
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
let { visualElement: t } = e.options;
if (!t) return;
@@ -18951,22 +18951,22 @@ function eb(e) {
window.MotionCancelOptimisedAnimation(n, "transform", pg, !(t || r));
}
let { parent: r } = e;
- r && !r.hasCheckedOptimisedAppear && eb(r);
+ r && !r.hasCheckedOptimisedAppear && nb(r);
}
-function tb(e) {
- if (e) return e.options.allowProjection === !1 ? tb(e.parent) : e.projection;
+function rb(e) {
+ if (e) return e.options.allowProjection === !1 ? rb(e.parent) : e.projection;
}
-function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
- return Object.assign(my, {
- ...Pne,
- ...my
+function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
+ return Object.assign(hy, {
+ ...Mne,
+ ...hy
}), class {
static create(e, t, n) {
- let { layoutId: r, layout: i, drag: a, dragConstraints: o, layoutScroll: s, layoutRoot: c, layoutAnchor: l, layoutCrossfade: u } = t, d = e.projection = new this(e.latestValues, t["data-framer-portal-id"] ? void 0 : tb(e.parent));
+ let { layoutId: r, layout: i, drag: a, dragConstraints: o, layoutScroll: s, layoutRoot: c, layoutAnchor: l, layoutCrossfade: u } = t, d = e.projection = new this(e.latestValues, t["data-framer-portal-id"] ? void 0 : rb(e.parent));
d.setOptions({
layoutId: r,
layout: i,
- alwaysMeasureLayout: !!a || o && gne(o),
+ alwaysMeasureLayout: !!a || o && hne(o),
visualElement: e,
animationType: typeof i == "string" ? i : "both",
initialPromotionConfig: n,
@@ -18979,16 +18979,16 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
f && !d.root.isUpdateBlocked() && (f.willUpdate(), f.scheduleCheckAfterUnmount());
}
constructor(e = {}, n = t?.()) {
- this.id = zne++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
+ this.id = Lne++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
x: 1,
y: 1
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
}, this.updateProjection = () => {
- this.projectionUpdateScheduled = !1, this.nodes.forEach(Hne), this.nodes.forEach(Xne), this.nodes.forEach(Zne), this.nodes.forEach(Une), hy.countProjection?.();
+ this.projectionUpdateScheduled = !1, this.nodes.forEach(Bne), this.nodes.forEach(Jne), this.nodes.forEach(Yne), this.nodes.forEach(Vne), gy.countProjection?.();
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = n ? n.root || n : this, this.path = n ? [...n.path, n] : [], this.parent = n, this.depth = n ? n.depth + 1 : 0;
for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
- this.root === this && (this.nodes = new Lne());
+ this.root === this && (this.nodes = new Fne());
}
addEventListener(e, t) {
return this.eventHandlers.has(e) || this.eventHandlers.set(e, new km()), this.eventHandlers.get(e).add(t);
@@ -19001,7 +19001,7 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
mount(t) {
if (this.instance) return;
- this.isSVG = jv(t) && !_ne(t), this.instance = t;
+ this.isSVG = jv(t) && !gne(t), this.instance = t;
let { layoutId: n, layout: r, visualElement: i } = this.options;
if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent?.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
@@ -19009,7 +19009,7 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
- e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = hne(i, 250), Xy.hasAnimatedSinceResize && (Xy.hasAnimatedSinceResize = !1, this.nodes.forEach(ab)));
+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = mne(i, 250), Qy.hasAnimatedSinceResize && (Qy.hasAnimatedSinceResize = !1, this.nodes.forEach(sb)));
});
}
n && this.root.registerSharedNode(n, this), this.addLayoutListener();
@@ -19021,7 +19021,7 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.target = void 0, this.relativeTarget = void 0;
return;
}
- let a = this.options.transition || n.getDefaultTransition() || tre, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !Wy(this.targetLayout, i), l = !t && r;
+ let a = this.options.transition || n.getDefaultTransition() || $ne, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !Ky(this.targetLayout, i), l = !t && r;
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
let t = {
@@ -19030,7 +19030,7 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
onComplete: s
};
(n.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
- } else t || ab(this), this.isLead() && this.options.onExitComplete?.();
+ } else t || sb(this), this.isLead() && this.options.onExitComplete?.();
this.targetLayout = i;
}));
}
@@ -19047,7 +19047,7 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
return this.updateManuallyBlocked || this.updateBlockedByResize;
}
startUpdate() {
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(Qne), this.animationId++);
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(Xne), this.animationId++);
}
getTransformTemplate() {
let { visualElement: e } = this.options;
@@ -19058,11 +19058,11 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.onExitComplete?.();
return;
}
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && eb(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
- $y(this), this.isLayoutDirty = !0;
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && nb(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
+ tb(this), this.isLayoutDirty = !0;
for (let e = 0; e < this.path.length; e++) {
let t = this.path[e];
- t.shouldResetTransform = !0, $y(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);
+ t.shouldResetTransform = !0, tb(t), (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1), t.isAnimationBlocked && (t.dragSnapshot ||= t.measure(), this.dragAncestor = t);
}
let { layoutId: t, layout: n } = this.options;
if (t === void 0 && !n) return;
@@ -19072,22 +19072,22 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
update() {
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
let e = this.updateBlockedByResize;
- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Gne), this.nodes.forEach(rb);
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Une), this.nodes.forEach(ab);
return;
}
if (this.animationId <= this.animationCommitId) {
- this.nodes.forEach(ib);
+ this.nodes.forEach(ob);
return;
}
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(qne), this.nodes.forEach(Jne), this.nodes.forEach(Yne), this.nodes.forEach(Bne), this.nodes.forEach(Vne)) : this.nodes.forEach(ib), this.clearAllSnapshots();
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Gne), this.nodes.forEach(Kne), this.nodes.forEach(qne), this.nodes.forEach(Rne), this.nodes.forEach(zne)) : this.nodes.forEach(ob), this.clearAllSnapshots();
let e = rh.now();
eh.delta = bm(0, 1e3 / 60, e - eh.timestamp), eh.timestamp = e, eh.isProcessing = !0, hg.update.process(eh), hg.preRender.process(eh), hg.render.process(eh), eh.isProcessing = !1;
}
didUpdate() {
- this.updateScheduled || (this.updateScheduled = !0, fy.read(this.scheduleUpdate));
+ this.updateScheduled || (this.updateScheduled = !0, py.read(this.scheduleUpdate));
}
clearAllSnapshots() {
- this.nodes.forEach(Wne), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));
+ this.nodes.forEach(Hne), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));
}
scheduleUpdateProjection() {
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, pg.preRender(this.updateProjection, !1, !0));
@@ -19098,13 +19098,13 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
});
}
updateSnapshot() {
- !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !wy(this.snapshot.measuredBox.x) && !wy(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
+ !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !Ty(this.snapshot.measuredBox.x) && !Ty(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
}
updateLayout() {
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
if (this.resumeFrom && !this.resumeFrom.instance) for (let e = 0; e < this.path.length; e++) this.path[e].updateScroll();
let e = this.layout;
- this.layout = this.measure(!1), this.layoutCorrected ||= zy(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
+ this.layout = this.measure(!1), this.layoutCorrected ||= Vy(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
let { visualElement: t } = this.options;
t?.notify("LayoutMeasure", this.layout.layoutBox, e?.layoutBox);
}
@@ -19124,13 +19124,13 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
resetTransform() {
if (!i) return;
let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout;
- e && $y(this);
- let t = this.projectionDelta && !Vy(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
- e && this.instance && (t || Zv(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
+ e && tb(this);
+ let t = this.projectionDelta && !Uy(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
+ e && this.instance && (t || Qv(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
}
measure(e = !0) {
let t = this.measurePageBox(), n = this.removeElementScroll(t);
- return e && (n = this.removeTransform(n)), jne(n), {
+ return e && (n = this.removeTransform(n)), kne(n), {
animationId: this.root.animationId,
measuredBox: t,
layoutBox: n,
@@ -19140,42 +19140,42 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
measurePageBox() {
let { visualElement: e } = this.options;
- if (!e) return zy();
+ if (!e) return Vy();
let t = e.measureViewportBox();
- if (!(this.scroll?.wasRoot || this.path.some(nre))) {
+ if (!(this.scroll?.wasRoot || this.path.some(ere))) {
let { scroll: e } = this.root;
- e && (sy(t.x, e.offset.x), sy(t.y, e.offset.y));
+ e && (cy(t.x, e.offset.x), cy(t.y, e.offset.y));
}
return t;
}
removeElementScroll(e) {
- let t = zy();
- if (Sy(t, e), this.scroll?.wasRoot) return t;
+ let t = Vy();
+ if (Cy(t, e), this.scroll?.wasRoot) return t;
for (let n = 0; n < this.path.length; n++) {
let r = this.path[n], { scroll: i, options: a } = r;
- r !== this.root && i && a.layoutScroll && (i.wasRoot && Sy(t, e), sy(t.x, i.offset.x), sy(t.y, i.offset.y));
+ r !== this.root && i && a.layoutScroll && (i.wasRoot && Cy(t, e), cy(t.x, i.offset.x), cy(t.y, i.offset.y));
}
return t;
}
applyTransform(e, t = !1, n, r, i = 0) {
- let a = n || zy();
- Sy(a, e);
+ let a = n || Vy();
+ Cy(a, e);
for (let e = i; e < this.path.length; e++) {
let n = this.path[e];
- !t && n.options.layoutScroll && n.scroll && n !== n.root && (sy(a.x, -n.scroll.offset.x), sy(a.y, -n.scroll.offset.y)), Zv(n.latestValues) && uy(a, n.latestValues, n.layout?.layoutBox);
+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (cy(a.x, -n.scroll.offset.x), cy(a.y, -n.scroll.offset.y)), Qv(n.latestValues) && dy(a, n.latestValues, n.layout?.layoutBox);
}
- return !r && Zv(this.latestValues) && uy(a, this.latestValues, this.layout?.layoutBox), a;
+ return !r && Qv(this.latestValues) && dy(a, this.latestValues, this.layout?.layoutBox), a;
}
removeTransform(e) {
- let t = zy();
- Sy(t, e);
+ let t = Vy();
+ Cy(t, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- if (!Zv(n.latestValues)) continue;
+ if (!Qv(n.latestValues)) continue;
let r;
- n.instance && (Yv(n.latestValues) && n.updateSnapshot(), r = zy(), Sy(r, n.measurePageBox())), My(t, n.latestValues, n.snapshot?.layoutBox, r);
+ n.instance && (Xv(n.latestValues) && n.updateSnapshot(), r = Vy(), Cy(r, n.measurePageBox())), Py(t, n.latestValues, n.snapshot?.layoutBox, r);
}
- return Zv(this.latestValues) && My(t, this.latestValues), t;
+ return Qv(this.latestValues) && Py(t, this.latestValues), t;
}
setTargetDelta(e) {
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -19202,16 +19202,16 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if (!this.layout || !(r || i)) return;
this.resolvedRelativeTargetAt = eh.timestamp;
let a = this.getClosestProjectingParent();
- !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = zy(), this.targetWithTransforms = zy()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Dne(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target, !0) : Sy(this.target, this.layout.layoutBox), iy(this.target, this.targetDelta)) : Sy(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && (!a.resumingFrom == !this.resumingFrom || a.options.layoutRoot && !a.resumingFrom) && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), hy.countProjection?.(1));
+ !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), (this.relativeTarget || this.targetDelta) && (this.target || (this.target = Vy(), this.targetWithTransforms = Vy()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Ene(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target, !0) : Cy(this.target, this.layout.layoutBox), ay(this.target, this.targetDelta)) : Cy(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && (!a.resumingFrom == !this.resumingFrom || a.options.layoutRoot && !a.resumingFrom) && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), gy.countProjection?.(1));
}
getClosestProjectingParent() {
- if (!(!this.parent || Yv(this.parent.latestValues) || $v(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
+ if (!(!this.parent || Xv(this.parent.latestValues) || ey(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
}
isProjecting() {
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
}
createRelativeTarget(e, t, n) {
- this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = zy(), this.relativeTargetOrigin = zy(), ky(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), Sy(this.relativeTarget, this.relativeTargetOrigin);
+ this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Vy(), this.relativeTargetOrigin = Vy(), Ay(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), Cy(this.relativeTarget, this.relativeTargetOrigin);
}
removeRelativeTarget() {
this.relativeParent = this.relativeTarget = void 0;
@@ -19221,11 +19221,11 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === eh.timestamp && (n = !1), n) return;
let { layout: r, layoutId: i } = this.options;
if (this.isTreeAnimating = !!(this.parent?.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
- Sy(this.layoutCorrected, this.layout.layoutBox);
+ Cy(this.layoutCorrected, this.layout.layoutBox);
let a = this.treeScale.x, o = this.treeScale.y;
- one(this.layoutCorrected, this.treeScale, this.path, t && (e.relativeTarget && !e.relativeParent.resumingFrom ? e.relativeParent : !0)), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = zy());
+ ane(this.layoutCorrected, this.treeScale, this.path, t && (e.relativeTarget && !e.relativeParent.resumingFrom ? e.relativeParent : !0)), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = Vy());
let { target: s } = e;
- s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Cy(this.prevProjectionDelta.x, this.projectionDelta.x), Cy(this.prevProjectionDelta.y, this.projectionDelta.y)), Ey(this.projectionDelta, this.layoutCorrected, s, this.latestValues), this.treeScale.x === a && this.treeScale.y === o && Ky(this.projectionDelta.x, this.prevProjectionDelta.x) && Ky(this.projectionDelta.y, this.prevProjectionDelta.y) || (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), hy.countProjection?.(2)) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
+ s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (wy(this.prevProjectionDelta.x, this.projectionDelta.x), wy(this.prevProjectionDelta.y, this.projectionDelta.y)), Dy(this.projectionDelta, this.layoutCorrected, s, this.latestValues), this.treeScale.x === a && this.treeScale.y === o && Jy(this.projectionDelta.x, this.prevProjectionDelta.x) && Jy(this.projectionDelta.y, this.prevProjectionDelta.y) || (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), gy.countProjection?.(2)) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
}
hide() {
this.isVisible = !1;
@@ -19237,22 +19237,22 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.visualElement?.scheduleRender(), e && this.getStack()?.scheduleRender(), this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
}
createProjectionDeltas() {
- this.prevProjectionDelta = Ly(), this.projectionDelta = Ly(), this.projectionDeltaWithTransform = Ly();
+ this.prevProjectionDelta = zy(), this.projectionDelta = zy(), this.projectionDeltaWithTransform = zy();
}
setAnimationOrigin(e, t = !1, n) {
- let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = Ly();
+ let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = zy();
this.relativeParent && this.relativeParent.options.layoutRoot || (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
- let s = zy(), c = r?.source !== this.layout?.source, l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(ere));
+ let s = Vy(), c = r?.source !== this.layout?.source, l = this.getStack(), u = !l || l.members.length <= 1, d = !(!c || u || this.options.crossfade !== !0 || this.path.some(Qne));
this.animationProgress = 0;
let f, p = n?.interpolateProjection(e);
this.mixTargetDelta = (t) => {
let n = t / 1e3, r = p?.(n);
- ob(o.x, e.x, n), ob(o.y, e.y, n), r && (o.x.translate = r.x, o.y.translate = r.y), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ky(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), $ne(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Mne(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= zy(), Sy(f, this.relativeTarget)), c && (this.animationValues = a, yne(a, i, this.latestValues, n, d, u)), r?.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
+ cb(o.x, e.x, n), cb(o.y, e.y, n), r && (o.x.translate = r.x, o.y.translate = r.y), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Ay(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Zne(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Ane(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= Vy(), Cy(f, this.relativeTarget)), c && (this.animationValues = a, vne(a, i, this.latestValues, n, d, u)), r?.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
}
startAnimation(e) {
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (mg(this.pendingAnimation), void 0), this.pendingAnimation = pg.update(() => {
- Xy.hasAnimatedSinceResize = !0, this.motionValue ||= cv(0), this.motionValue.jump(0, !1), this.currentAnimation = py(this.motionValue, [0, 1e3], {
+ Qy.hasAnimatedSinceResize = !0, this.motionValue ||= cv(0), this.motionValue.jump(0, !1), this.currentAnimation = my(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
isSync: !0,
@@ -19271,20 +19271,20 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
e && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
}
finishAnimation() {
- this.currentAnimation && (this.mixTargetDelta?.(Rne), this.currentAnimation.stop()), this.completeAnimation();
+ this.currentAnimation && (this.mixTargetDelta?.(Ine), this.currentAnimation.stop()), this.completeAnimation();
}
applyTransformsToTarget() {
let e = this.getLead(), { targetWithTransforms: t, layout: n, latestValues: r } = e, { target: i } = e;
if (t && i && n) {
- if (this !== e && this.layout && n && lb(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
+ if (this !== e && this.layout && n && db(this.options.animationType, this.layout.layoutBox, n.layoutBox)) {
let { layoutBox: e } = this.layout, t = i;
- i = this.target || zy(), cb(i.x, t.x, e.x), cb(i.y, t.y, e.y);
+ i = this.target || Vy(), ub(i.x, t.x, e.x), ub(i.y, t.y, e.y);
}
- Sy(t, i), uy(t, r), Ey(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
+ Cy(t, i), dy(t, r), Dy(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
}
}
registerSharedNode(e, t) {
- this.sharedNodes.has(e) || this.sharedNodes.set(e, new Nne()), this.sharedNodes.get(e).add(t);
+ this.sharedNodes.has(e) || this.sharedNodes.set(e, new jne()), this.sharedNodes.get(e).add(t);
let n = t.options.initialPromotionConfig;
t.promote({
transition: n?.transition,
@@ -19317,10 +19317,10 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let { visualElement: e } = this.options;
if (!e) return;
let { latestValues: t } = e;
- if (!Qv(t)) return;
+ if (!$v(t)) return;
let n = {};
- for (let t = 0; t < Zy.length; t++) Qy(Zy[t], e, n, this.animationValues);
- for (let t = 0; t < Xv.length; t++) Qy(Xv[t], e, n, this.animationValues);
+ for (let t = 0; t < $y.length; t++) eb($y[t], e, n, this.animationValues);
+ for (let t = 0; t < Zv.length; t++) eb(Zv[t], e, n, this.animationValues);
e.render();
for (let t in n) e.setStaticValue(t, n[t]), this.animationValues && (this.animationValues[t] = n[t]);
e.scheduleRender();
@@ -19334,70 +19334,70 @@ function nb({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
let r = this.getTransformTemplate();
if (this.needsReset) {
- this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = gy(t?.pointerEvents) || "", e.transform = r ? r(this.latestValues, "") : "none";
+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = _y(t?.pointerEvents) || "", e.transform = r ? r(this.latestValues, "") : "none";
return;
}
if (!this.projectionDelta || !this.layout || !n.target) {
- (this.options.layoutId || this.needsShow) && (this.needsShow = !1, e.visibility = "", e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = gy(t?.pointerEvents) || ""), this.hasProjected && !Zv(this.latestValues) && (e.transform = r ? r({}, "") : "none", this.hasProjected = !1);
+ (this.options.layoutId || this.needsShow) && (this.needsShow = !1, e.visibility = "", e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = _y(t?.pointerEvents) || ""), this.hasProjected && !Qv(this.latestValues) && (e.transform = r ? r({}, "") : "none", this.hasProjected = !1);
return;
}
e.visibility = "";
let i = n.animationValues || n.latestValues;
this.applyTransformsToTarget();
- let a = Fne(this.projectionDeltaWithTransform, this.treeScale, i);
+ let a = Nne(this.projectionDeltaWithTransform, this.treeScale, i);
r && (a = r(i, a)), e.transform = a;
let { x: o, y: s } = this.projectionDelta;
e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, e.opacity = n.animationValues ? n === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : n === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;
- for (let t in my) {
+ for (let t in hy) {
if (i[t] === void 0) continue;
- let { correct: r, applyTo: o, isCSSVariable: s } = my[t], c = a === "none" ? i[t] : r(i[t], n);
+ let { correct: r, applyTo: o, isCSSVariable: s } = hy[t], c = a === "none" ? i[t] : r(i[t], n);
if (o) {
let t = o.length;
for (let n = 0; n < t; n++) e[o[n]] = c;
} else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;
}
- this.options.layoutId && (e.pointerEvents = n === this ? gy(t?.pointerEvents) || "" : "none");
+ this.options.layoutId && (e.pointerEvents = n === this ? _y(t?.pointerEvents) || "" : "none");
}
clearSnapshot() {
this.resumeFrom = this.snapshot = this.dragSnapshot = this.dragAncestor = void 0;
}
resetTree() {
- this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(rb), this.root.sharedNodes.clear();
+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(ab), this.root.sharedNodes.clear();
}
};
}
-function Bne(e) {
- e.updateLayout(), Kne(e);
+function Rne(e) {
+ e.updateLayout(), Wne(e);
}
-function Vne(e) {
+function zne(e) {
let t = e.resumeFrom?.snapshot || e.snapshot;
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source, o = (r, a) => {
- if (i === "size") Yy((e) => {
- let t = wy(r[e]);
+ if (i === "size") Zy((e) => {
+ let t = Ty(r[e]);
r[e].min = a[e].min, r[e].max = r[e].min + t;
});
else if (i === "x" || i === "y") {
let e = i === "x" ? "y" : "x";
- xy(r[e], a[e]);
- } else lb(i, t.layoutBox, n) && Yy((t) => {
- let n = wy(a[t]);
+ Sy(r[e], a[e]);
+ } else db(i, t.layoutBox, n) && Zy((t) => {
+ let n = Ty(a[t]);
r[t].max = r[t].min + n, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[t].max = e.relativeTarget[t].min + n);
});
}, s = a ? t.measuredBox : t.layoutBox;
o(s, n);
- let c = Ly();
- Ey(c, n, t.layoutBox);
- let l = Ly();
- Ey(l, a ? e.applyTransform(r, !0) : n, s);
- let u = !Vy(c), d = !1, f = e.getClosestProjectingParent();
+ let c = zy();
+ Dy(c, n, t.layoutBox);
+ let l = zy();
+ Dy(l, a ? e.applyTransform(r, !0) : n, s);
+ let u = !Uy(c), d = !1, f = e.getClosestProjectingParent();
if ((!e.resumeFrom || f?.options.layoutRoot && e.resumeFrom.path.includes(f)) && f && !f.resumeFrom) {
let { snapshot: r, layout: i } = f;
if (r && i) {
- let s = e.options.layoutAnchor || void 0, c = zy();
- ky(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);
- let l = zy();
- ky(l, n, i.layoutBox, s), a && o(c, l), Wy(c, l) || (d = !0), f.options.layoutRoot && (e.relativeTarget = l, e.relativeTargetOrigin = c, e.relativeParent = f);
+ let s = e.options.layoutAnchor || void 0, c = Vy();
+ Ay(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);
+ let l = Vy();
+ Ay(l, n, i.layoutBox, s), a && o(c, l), Ky(c, l) || (d = !0), f.options.layoutRoot && (e.relativeTarget = l, e.relativeTargetOrigin = c, e.relativeParent = f);
}
}
e.notifyListeners("didUpdate", {
@@ -19411,65 +19411,65 @@ function Vne(e) {
} else e.isLead() && e.options.onExitComplete?.();
e.options.transition = void 0;
}
-function Hne(e) {
- hy.countProjection?.(0), e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
+function Bne(e) {
+ gy.countProjection?.(0), e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
}
-function Une(e) {
+function Vne(e) {
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
}
-function Wne(e) {
+function Hne(e) {
e.clearSnapshot();
}
-function rb(e) {
+function ab(e) {
e.clearMeasurements();
}
-function Gne(e) {
+function Une(e) {
e.isLayoutDirty = !0, e.updateLayout();
}
-function ib(e) {
+function ob(e) {
e.isLayoutDirty = !1;
}
-function Kne(e) {
+function Wne(e) {
let { snapshot: t, dragAncestor: n } = e, r = n?.isAnimationBlocked && n.layout;
if (!t || !r || e.resumeFrom || e.isAnimationBlocked) return;
let i = n.dragSnapshot;
- Yy((e) => sy(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
+ Zy((e) => cy(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
}
-function qne(e) {
+function Gne(e) {
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.dragSnapshot || e.layout, e.isLayoutDirty = !0);
}
-function Jne(e) {
+function Kne(e) {
e.relativeTarget && e.relativeParent?.isLayoutDirty && (e.currentAnimation ? e.isLayoutDirty = !0 : (e.targetDelta = void 0, e.removeRelativeTarget()));
}
-function Yne(e) {
+function qne(e) {
let { visualElement: t } = e.options;
t?.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
}
-function ab(e) {
+function sb(e) {
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
}
-function Xne(e) {
+function Jne(e) {
e.resolveTargetDelta();
}
-function Zne(e) {
+function Yne(e) {
e.calcProjection();
}
-function Qne(e) {
+function Xne(e) {
e.resetSkewAndRotation();
}
-function ob(e, t, n) {
+function cb(e, t, n) {
e.translate = ng(t.translate, 0, n), e.scale = ng(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
}
-function sb(e, t, n, r) {
+function lb(e, t, n, r) {
e.min = ng(t.min, n.min, r), e.max = ng(t.max, n.max, r);
}
-function $ne(e, t, n, r) {
- sb(e.x, t.x, n.x, r), sb(e.y, t.y, n.y, r);
+function Zne(e, t, n, r) {
+ lb(e.x, t.x, n.x, r), lb(e.y, t.y, n.y, r);
}
-function ere(e) {
+function Qne(e) {
return e.animationValues?.opacityExit !== void 0;
}
-var tre = {
+var $ne = {
duration: .45,
ease: [
.4,
@@ -19478,51 +19478,51 @@ var tre = {
1
]
};
-function cb(e, t, n) {
- e.max = wy(n) + (e.min = t.min);
+function ub(e, t, n) {
+ e.max = Ty(n) + (e.min = t.min);
}
-function lb(e, t, n) {
- return e === "position" || e === "preserve-aspect" && !Ene(Gy(t), Gy(n), .2);
+function db(e, t, n) {
+ return e === "position" || e === "preserve-aspect" && !Tne(qy(t), qy(n), .2);
}
-function nre(e) {
+function ere(e) {
return e !== e.root && e.scroll?.wasRoot;
}
// node_modules/motion-dom/dist/es/events/add-dom-event.mjs
-function ub(e, t, n, r = { passive: !0 }) {
+function fb(e, t, n, r = { passive: !0 }) {
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
}
// node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
-var rre = /* @__PURE__ */ nb({
- attachResizeListener: (e, t) => ub(e, "resize", t),
- measureScroll: cne,
+var tre = /* @__PURE__ */ ib({
+ attachResizeListener: (e, t) => fb(e, "resize", t),
+ measureScroll: sne,
checkIsScrollRoot: () => !0
-}), db = { current: void 0 }, fb = /* @__PURE__ */ nb({
+}), pb = { current: void 0 }, mb = /* @__PURE__ */ ib({
measureScroll: (e) => ({
x: e.scrollLeft,
y: e.scrollTop
}),
defaultParent: () => {
- if (!db.current) {
- let e = new rre({});
- e.mount(window), e.setOptions({ layoutScroll: !0 }), db.current = e;
+ if (!pb.current) {
+ let e = new tre({});
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), pb.current = e;
}
- return db.current;
+ return pb.current;
},
resetTransform: (e, t) => {
e.style.transform = t === void 0 ? "none" : t;
},
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
-}), pb = /* @__PURE__ */ new WeakMap();
+}), hb = /* @__PURE__ */ new WeakMap();
// node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
-function mb(e) {
+function gb(e) {
return typeof e == "object" && !!e && typeof e.start == "function";
}
// node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
-function hb(e) {
+function _b(e) {
return typeof e == "string" || Array.isArray(e);
}
// node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
-var gb = [
+var vb = [
"animate",
"whileInView",
"whileFocus",
@@ -19530,18 +19530,18 @@ var gb = [
"whileTap",
"whileDrag",
"exit"
-], _b = /* @__PURE__ */ ["initial"].concat(gb);
+], yb = /* @__PURE__ */ ["initial"].concat(vb);
// node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
-function vb(e) {
- if (mb(e.animate)) return !0;
- for (let t = 0; t < _b.length; t++) if (hb(e[_b[t]])) return !0;
+function bb(e) {
+ if (gb(e.animate)) return !0;
+ for (let t = 0; t < yb.length; t++) if (_b(e[yb[t]])) return !0;
return !1;
}
-function yb(e) {
- return !!(vb(e) || e.variants);
+function xb(e) {
+ return !!(bb(e) || e.variants);
}
// node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
-function ire(e, t, n) {
+function nre(e, t, n) {
for (let r in t) {
let i = t[r], a = n[r];
if (_v(i)) e.addValue(r, i);
@@ -19560,17 +19560,17 @@ function ire(e, t, n) {
return t;
}
// node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
-var bb = { current: null }, xb = { current: !1 }, are = typeof window < "u";
-function Sb() {
- if (xb.current = !0, are) {
+var Sb = { current: null }, Cb = { current: !1 }, rre = typeof window < "u";
+function wb() {
+ if (Cb.current = !0, rre) {
if (window.matchMedia) {
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => bb.current = e.matches;
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => Sb.current = e.matches;
e.addEventListener("change", t), t();
- } else bb.current = !1;
+ } else Sb.current = !1;
}
}
// node_modules/motion-dom/dist/es/render/VisualElement.mjs
-var Cb = [
+var Tb = [
"AnimationStart",
"AnimationComplete",
"Update",
@@ -19578,14 +19578,14 @@ var Cb = [
"LayoutMeasure",
"LayoutAnimationStart",
"LayoutAnimationComplete"
-], wb = {};
-function Tb(e) {
- wb = e;
+], Eb = {};
+function Db(e) {
+ Eb = e;
}
-function ore() {
- return wb;
+function ire() {
+ return Eb;
}
-var sre = class {
+var are = class {
scrapeMotionValuesFromProps(e, t, n) {
return {};
}
@@ -19597,7 +19597,7 @@ var sre = class {
this.renderScheduledAt < e && (this.renderScheduledAt = e, pg.render(this.render, !1, !0));
};
let { latestValues: c, renderState: l } = o;
- this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = vb(t), this.isVariantNode = yb(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
+ this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = bb(t), this.isVariantNode = xb(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
for (let e in d) {
let t = d[e];
@@ -19606,7 +19606,7 @@ var sre = class {
}
mount(e) {
if (this.hasBeenMounted && !this.presenceContext?.keepValuesOnRemount) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
- if (this.current = e, pb.set(e, this), this.projection?.instance || this.projection?.mount(e), this.isVariantNode && !this.isControllingVariants) {
+ if (this.current = e, hb.set(e, this), this.projection?.instance || this.projection?.mount(e), this.isVariantNode && !this.isControllingVariants) {
let e = this;
do
e = e.props.inherit !== !1 && e.parent;
@@ -19616,7 +19616,7 @@ var sre = class {
t.add(this), this.removeFromVariantTree = () => t.delete(this);
}
}
- this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (xb.current || Sb(), this.shouldReduceMotion = bb.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
+ this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (Cb.current || wb(), this.shouldReduceMotion = Sb.current), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
}
unmount() {
this.projection?.unmount(), mg(this.notifyUpdate), mg(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree?.(), this.parent?.removeChild(this);
@@ -19662,8 +19662,8 @@ var sre = class {
}
updateFeatures() {
let e = "animation";
- for (e in wb) {
- let t = wb[e];
+ for (e in Eb) {
+ let t = Eb[e];
if (!t) continue;
let { isEnabled: n, Feature: r } = t;
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
@@ -19676,7 +19676,7 @@ var sre = class {
this.build(this.renderState, this.latestValues, this.props);
}
measureViewportBox() {
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : zy();
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Vy();
}
getStaticValue(e) {
return this.latestValues[e];
@@ -19687,13 +19687,13 @@ var sre = class {
update(e, t) {
let { transformTemplate: n, onUpdate: r } = this.props;
(e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && K_.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
- for (let t = 0; t < Cb.length; t++) {
- let n = Cb[t];
+ for (let t = 0; t < Tb.length; t++) {
+ let n = Tb[t];
this.propEventSubscriptions[n]?.(), delete this.propEventSubscriptions[n];
let r = e["on" + n];
r && (this.propEventSubscriptions[n] = this.on(n, r));
}
- this.prevMotionValues = ire(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();
+ this.prevMotionValues = nre(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();
}
getProps() {
return this.props;
@@ -19739,9 +19739,9 @@ var sre = class {
this.events[e]?.notify(...t);
}
scheduleRenderMicrotask() {
- fy.render(this.render);
+ py.render(this.render);
}
-}, Eb = class extends sre {
+}, Ob = class extends are {
constructor() {
super(...arguments), this.KeyframeResolver = wv;
}
@@ -19764,29 +19764,29 @@ var sre = class {
}
};
// node_modules/motion-dom/dist/es/render/html/utils/render.mjs
-function Db(e, { style: t, vars: n }, r, i) {
+function kb(e, { style: t, vars: n }, r, i) {
let a = e.style, o;
for (o in t) a[o] = t[o];
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
}
// node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
-function Ob(e, { layout: t, layoutId: n }) {
- return f_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!my[e] || e === "opacity");
+function Ab(e, { layout: t, layoutId: n }) {
+ return f_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!hy[e] || e === "opacity");
}
// node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
-function kb(e, t, n) {
+function jb(e, t, n) {
let r = e.style, i = t?.style, a = {};
if (!r) return a;
- for (let t in r) (_v(r[t]) || i && _v(i[t]) || Ob(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
+ for (let t in r) (_v(r[t]) || i && _v(i[t]) || Ab(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
return a;
}
// node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
-function cre(e) {
+function ore(e) {
return window.getComputedStyle(e);
}
-var lre = class extends Eb {
+var sre = class extends Ob {
constructor() {
- super(...arguments), this.type = "html", this.renderInstance = Db;
+ super(...arguments), this.type = "html", this.renderInstance = kb;
}
mount(e) {
super.mount(e);
@@ -19794,69 +19794,69 @@ var lre = class extends Eb {
readValueFromInstance(e, t) {
if (f_.has(t)) return this.projection?.isProjecting ? c_(t) : u_(e, t);
{
- let n = cre(e), r = (oh(t) ? n.getPropertyValue(t) : n[t]) || 0;
+ let n = ore(e), r = (oh(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
measureInstanceViewportBox(e, { transformPagePoint: t }) {
- return dy(e, t);
+ return fy(e, t);
}
build(e, t, n) {
- Hv(e, t, n.transformTemplate);
+ Uv(e, t, n.transformTemplate);
}
scrapeMotionValuesFromProps(e, t, n) {
- return kb(e, t, n);
+ return jb(e, t, n);
}
-}, Ab = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
+}, Mb = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
// node_modules/motion-dom/dist/es/events/event-info.mjs
-function jb(e) {
+function Nb(e) {
return { point: {
x: e.pageX,
y: e.pageY
} };
}
-var ure = (e) => (t) => Ab(t) && e(t, jb(t));
+var cre = (e) => (t) => Mb(t) && e(t, Nb(t));
// node_modules/motion-dom/dist/es/events/add-pointer-event.mjs
-function Mb(e, t, n, r) {
- return ub(e, t, ure(n), r);
+function Pb(e, t, n, r) {
+ return fb(e, t, cre(n), r);
}
// node_modules/motion-dom/dist/es/resize/handle-element.mjs
-var Nb = /* @__PURE__ */ new WeakMap(), Pb, Fb = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : jv(r) && "getBBox" in r ? r.getBBox()[t] : r[n], dre = /*@__PURE__*/ Fb("inline", "width", "offsetWidth"), fre = /*@__PURE__*/ Fb("block", "height", "offsetHeight");
-function pre({ target: e, borderBoxSize: t }) {
- Nb.get(e)?.forEach((n) => {
+var Fb = /* @__PURE__ */ new WeakMap(), Ib, Lb = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : jv(r) && "getBBox" in r ? r.getBBox()[t] : r[n], lre = /*@__PURE__*/ Lb("inline", "width", "offsetWidth"), ure = /*@__PURE__*/ Lb("block", "height", "offsetHeight");
+function dre({ target: e, borderBoxSize: t }) {
+ Fb.get(e)?.forEach((n) => {
n(e, {
get width() {
- return dre(e, t);
+ return lre(e, t);
},
get height() {
- return fre(e, t);
+ return ure(e, t);
}
});
});
}
-function mre(e) {
- e.forEach(pre);
+function fre(e) {
+ e.forEach(dre);
}
-function hre() {
- typeof ResizeObserver < "u" && (Pb = new ResizeObserver(mre));
+function pre() {
+ typeof ResizeObserver < "u" && (Ib = new ResizeObserver(fre));
}
-function gre(e, t) {
- Pb || hre();
+function mre(e, t) {
+ Ib || pre();
let n = Fv(e);
return n.forEach((e) => {
- let n = Nb.get(e);
- n || (n = /* @__PURE__ */ new Set(), Nb.set(e, n)), n.add(t), Pb?.observe(e);
+ let n = Fb.get(e);
+ n || (n = /* @__PURE__ */ new Set(), Fb.set(e, n)), n.add(t), Ib?.observe(e);
}), () => {
n.forEach((e) => {
- let n = Nb.get(e);
- n?.delete(t), n?.size || Pb?.unobserve(e);
+ let n = Fb.get(e);
+ n?.delete(t), n?.size || Ib?.unobserve(e);
});
};
}
// node_modules/motion-dom/dist/es/resize/handle-window.mjs
-var Ib = /* @__PURE__ */ new Set(), Lb;
-function _re() {
- Lb = () => {
+var Rb = /* @__PURE__ */ new Set(), zb;
+function hre() {
+ zb = () => {
let e = {
get width() {
return window.innerWidth;
@@ -19865,26 +19865,26 @@ function _re() {
return window.innerHeight;
}
};
- Ib.forEach((t) => t(e));
- }, window.addEventListener("resize", Lb);
+ Rb.forEach((t) => t(e));
+ }, window.addEventListener("resize", zb);
}
-function vre(e) {
- return Ib.add(e), Lb || _re(), () => {
- Ib.delete(e), !Ib.size && typeof Lb == "function" && (window.removeEventListener("resize", Lb), Lb = void 0);
+function gre(e) {
+ return Rb.add(e), zb || hre(), () => {
+ Rb.delete(e), !Rb.size && typeof zb == "function" && (window.removeEventListener("resize", zb), zb = void 0);
};
}
// node_modules/motion-dom/dist/es/resize/index.mjs
-function Rb(e, t) {
- return Nv(typeof e == "function" ? vre(e) : gre(e, t));
+function Bb(e, t) {
+ return Nv(typeof e == "function" ? gre(e) : mre(e, t));
}
// node_modules/motion-dom/dist/es/utils/distance.mjs
-var zb = (e, t) => Math.abs(e - t);
-function yre(e, t) {
- let n = zb(e.x, t.x), r = zb(e.y, t.y);
+var Vb = (e, t) => Math.abs(e - t);
+function _re(e, t) {
+ let n = Vb(e.x, t.x), r = Vb(e.y, t.y);
return Math.sqrt(n ** 2 + r ** 2);
}
// node_modules/motion-dom/dist/es/gestures/pan/PanSession.mjs
-var Bb = /*#__PURE__*/ new Set(["auto", "scroll"]), Vb = class {
+var Hb = /*#__PURE__*/ new Set(["auto", "scroll"]), Ub = class {
constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: a = 3, element: o } = {}) {
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.onElementScroll = (e) => {
this.handleScroll(e.target);
@@ -19892,8 +19892,8 @@ var Bb = /*#__PURE__*/ new Set(["auto", "scroll"]), Vb = class {
this.handleScroll(window);
}, this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Ub(this.lastRawMoveEventInfo, this.transformPagePoint));
- let e = Gb(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = yre(e.offset, {
+ this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Gb(this.lastRawMoveEventInfo, this.transformPagePoint));
+ let e = qb(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = _re(e.offset, {
x: 0,
y: 0
}) >= this.distanceThreshold;
@@ -19906,40 +19906,40 @@ var Bb = /*#__PURE__*/ new Set(["auto", "scroll"]), Vb = class {
let { onStart: i, onMove: a } = this.handlers;
t || (i?.(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), a?.(this.lastMoveEvent, e);
}, this.handlePointerMove = (e, t) => {
- this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Ub(t, this.transformPagePoint), this.hasPendingMove = !0, pg.update(this.updatePoint, !0);
+ this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Gb(t, this.transformPagePoint), this.hasPendingMove = !0, pg.update(this.updatePoint, !0);
}, this.handlePointerUp = (e, t) => {
this.hasPendingMove && this.updatePoint(), this.end();
let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
if ((this.dragSnapToOrigin || !this.startEvent) && i?.(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- let a = Gb(e.type === "pointercancel" ? this.lastMoveEventInfo : Ub(t, this.transformPagePoint), this.history);
+ let a = qb(e.type === "pointercancel" ? this.lastMoveEventInfo : Gb(t, this.transformPagePoint), this.history);
this.startEvent && n?.(e, a), r?.(e, a);
- }, !Ab(e)) return;
+ }, !Mb(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = Ub(jb(e), this.transformPagePoint), { point: c } = s;
+ let s = Gb(Nb(e), this.transformPagePoint), { point: c } = s;
this.history = [{
...c,
timestamp: rh.now()
}];
let { onSessionStart: l } = t;
- l && l(e, Gb(s, this.history));
+ l && l(e, qb(s, this.history));
let u = {
passive: !0,
capture: !0
};
- this.removeListeners = Dm(Mb(this.contextWindow, "pointermove", this.handlePointerMove, u), Mb(this.contextWindow, "pointerup", this.handlePointerUp, u), Mb(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);
+ this.removeListeners = Dm(Pb(this.contextWindow, "pointermove", this.handlePointerMove, u), Pb(this.contextWindow, "pointerup", this.handlePointerUp, u), Pb(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);
}
startScrollTracking(e) {
let t = e.parentElement;
for (; t;) {
let e = getComputedStyle(t);
- (Bb.has(e.overflowX) || Bb.has(e.overflowY)) && this.scrollPositions.set(t, Hb(t)), t = t.parentElement;
+ (Hb.has(e.overflowX) || Hb.has(e.overflowY)) && this.scrollPositions.set(t, Wb(t)), t = t.parentElement;
}
- this.scrollPositions.set(window, Hb(window)), this.removeScrollListeners = Dm(ub(window, "scroll", this.onElementScroll, { capture: !0 }), ub(window, "scroll", this.onWindowScroll, {}));
+ this.scrollPositions.set(window, Wb(window)), this.removeScrollListeners = Dm(fb(window, "scroll", this.onElementScroll, { capture: !0 }), fb(window, "scroll", this.onWindowScroll, {}));
}
handleScroll(e) {
let t = this.scrollPositions.get(e);
if (!t) return;
- let n = e === window, r = Hb(e), i = {
+ let n = e === window, r = Wb(e), i = {
x: r.x - t.x,
y: r.y - t.y
};
@@ -19951,42 +19951,42 @@ var Bb = /*#__PURE__*/ new Set(["auto", "scroll"]), Vb = class {
end() {
this.removeListeners?.(), this.removeScrollListeners?.(), this.scrollPositions.clear(), mg(this.updatePoint);
}
-}, Hb = (e) => e === window ? {
+}, Wb = (e) => e === window ? {
x: window.scrollX,
y: window.scrollY
} : {
x: e.scrollLeft,
y: e.scrollTop
};
-function Ub(e, t) {
+function Gb(e, t) {
return t ? { point: t(e.point) } : e;
}
-function Wb(e, t) {
+function Kb(e, t) {
return {
x: e.x - t.x,
y: e.y - t.y
};
}
-function Gb({ point: e }, t) {
+function qb({ point: e }, t) {
return {
point: e,
- delta: Wb(e, Kb(t)),
- offset: Wb(e, bre(t)),
- velocity: xre(t, .1)
+ delta: Kb(e, Jb(t)),
+ offset: Kb(e, vre(t)),
+ velocity: yre(t, .1)
};
}
-function bre(e) {
+function vre(e) {
return e[0];
}
-function Kb(e) {
+function Jb(e) {
return e[e.length - 1];
}
-function xre(e, t) {
+function yre(e, t) {
if (e.length < 2) return {
x: 0,
y: 0
};
- let n = e.length - 1, r = null, i = Kb(e);
+ let n = e.length - 1, r = null, i = Jb(e);
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ Am(t)));) n--;
if (!r) return {
x: 0,
@@ -20005,95 +20005,95 @@ function xre(e, t) {
return o.x === Infinity && (o.x = 0), o.y === Infinity && (o.y = 0), o;
}
// node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs
-var Sre = /* @__PURE__ */ new Set([
+var bre = /* @__PURE__ */ new Set([
"BUTTON",
"INPUT",
"SELECT",
"TEXTAREA",
"A"
]);
-function Cre(e) {
- return Sre.has(e.tagName) || e.isContentEditable === !0;
+function xre(e) {
+ return bre.has(e.tagName) || e.isContentEditable === !0;
}
-var wre = /* @__PURE__ */ new Set([
+var Sre = /* @__PURE__ */ new Set([
"INPUT",
"SELECT",
"TEXTAREA"
]);
-function Tre(e) {
- return wre.has(e.tagName) || e.isContentEditable === !0;
+function Cre(e) {
+ return Sre.has(e.tagName) || e.isContentEditable === !0;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs
-var qb = {
+var Yb = {
x: !1,
y: !1
};
-function Jb() {
- return qb.x || qb.y;
+function Xb() {
+ return Yb.x || Yb.y;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
-function Ere(e) {
- return e === "x" || e === "y" ? qb[e] ? null : (qb[e] = !0, () => {
- qb[e] = !1;
- }) : qb.x || qb.y ? null : (qb.x = qb.y = !0, () => {
- qb.x = qb.y = !1;
+function wre(e) {
+ return e === "x" || e === "y" ? Yb[e] ? null : (Yb[e] = !0, () => {
+ Yb[e] = !1;
+ }) : Yb.x || Yb.y ? null : (Yb.x = Yb.y = !0, () => {
+ Yb.x = Yb.y = !1;
});
}
// node_modules/motion-dom/dist/es/gestures/drag/utils/constraints.mjs
-function Dre(e, { min: t, max: n }, r) {
+function Tre(e, { min: t, max: n }, r) {
return t !== void 0 && e < t ? e = r ? ng(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? ng(n, e, r.max) : Math.min(e, n)), e;
}
-function Yb(e, t, n) {
+function Zb(e, t, n) {
return {
min: t === void 0 ? void 0 : e.min + t,
max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
};
}
-function Ore(e, { top: t, left: n, bottom: r, right: i }) {
+function Ere(e, { top: t, left: n, bottom: r, right: i }) {
return {
- x: Yb(e.x, n, i),
- y: Yb(e.y, t, r)
+ x: Zb(e.x, n, i),
+ y: Zb(e.y, t, r)
};
}
-function Xb(e, t) {
+function Qb(e, t) {
let n = t.min - e.min, r = t.max - e.max;
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
min: n,
max: r
};
}
-function kre(e, t) {
+function Dre(e, t) {
return {
- x: Xb(e.x, t.x),
- y: Xb(e.y, t.y)
+ x: Qb(e.x, t.x),
+ y: Qb(e.y, t.y)
};
}
-function Are(e, t) {
- let n = .5, r = wy(e), i = wy(t);
+function Ore(e, t) {
+ let n = .5, r = Ty(e), i = Ty(t);
return i > r ? n = /* @__PURE__ */ Om(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ Om(e.min, e.max - i, t.min)), bm(0, 1, n);
}
-function jre(e, t) {
+function kre(e, t) {
let n = {};
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
}
-var Zb = .35;
-function Mre(e = Zb) {
- return e === !1 ? e = 0 : e === !0 && (e = Zb), {
- x: Qb(e, "left", "right"),
- y: Qb(e, "top", "bottom")
+var $b = .35;
+function Are(e = $b) {
+ return e === !1 ? e = 0 : e === !0 && (e = $b), {
+ x: ex(e, "left", "right"),
+ y: ex(e, "top", "bottom")
};
}
-function Qb(e, t, n) {
+function ex(e, t, n) {
return {
- min: $b(e, t),
- max: $b(e, n)
+ min: tx(e, t),
+ max: tx(e, n)
};
}
-function $b(e, t) {
+function tx(e, t) {
return typeof e == "number" ? e : e[t] || 0;
}
// node_modules/motion-dom/dist/es/gestures/drag/VisualElementDragControls.mjs
-function ex(e) {
+function nx(e) {
let t = "";
for (let n of e.path) {
n.scroll = void 0, n.updateScroll();
@@ -20102,12 +20102,12 @@ function ex(e) {
}
return t;
}
-var Nre = /* @__PURE__ */ new WeakMap(), Pre = class {
+var jre = /* @__PURE__ */ new WeakMap(), Mre = class {
constructor(e, t = () => e.getProps()) {
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
x: 0,
y: 0
- }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = zy(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e, this.readProps = t;
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = Vy(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e, this.readProps = t;
}
start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {
if (this.visualElement.presenceContext?.isPresent === !1) return;
@@ -20115,15 +20115,15 @@ var Nre = /* @__PURE__ */ new WeakMap(), Pre = class {
t && this.snapToCursor(e), this.stopAnimation();
}, i = (e, t) => {
let { drag: n, dragConstraints: r, dragPropagation: i, onDragStart: a } = this.getProps();
- if (n && !i && (this.openDragLock?.(), this.openDragLock = Ere(n), !this.openDragLock)) return;
+ if (n && !i && (this.openDragLock?.(), this.openDragLock = wre(n), !this.openDragLock)) return;
this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints();
let { projection: o } = this.visualElement;
- o && (o.isAnimationBlocked = !0, o.target = void 0), Yy((e) => {
+ o && (o.isAnimationBlocked = !0, o.target = void 0), Zy((e) => {
let t = this.getAxisMotionValue(e).get() || 0;
if (ch(t) && (t = fv(t, this.visualElement.current) || 0), Oh.test(t)) t = parseFloat(t);
else if (Dh.test(t)) {
let n = o?.layout?.layoutBox[e];
- n && (t = wy(n) * (parseFloat(t) / 100));
+ n && (t = Ty(n) * (parseFloat(t) / 100));
}
this.originPoint[e] = t;
}), this.point = typeof r == "function" && r(this), a && pg.update(() => a(e, t), !1, !0), vv(this.visualElement, "transform"), this.visualElement.animationState?.setActive("whileDrag", !0);
@@ -20133,7 +20133,7 @@ var Nre = /* @__PURE__ */ new WeakMap(), Pre = class {
if (!n && !this.openDragLock) return;
let { offset: o } = t;
if (r && this.currentDirection === null) {
- if (this.currentDirection = Ire(o), this.currentDirection === null) return;
+ if (this.currentDirection = Pre(o), this.currentDirection === null) return;
i && i(this.currentDirection);
}
this.updateAxis("x", o), this.updateAxis("y", o), this.point && this.point.move(), this.visualElement.render(), a && pg.update(() => a(e, t), !1, !0);
@@ -20146,7 +20146,7 @@ var Nre = /* @__PURE__ */ new WeakMap(), Pre = class {
y: 0
});
}, { dragSnapToOrigin: c } = this.getProps();
- this.panSession = new Vb(e, {
+ this.panSession = new Ub(e, {
onSessionStart: r,
onStart: i,
onMove: a,
@@ -20178,26 +20178,26 @@ var Nre = /* @__PURE__ */ new WeakMap(), Pre = class {
}
updateAxis(e, t) {
let { drag: n } = this.readProps();
- if (!t || !ix(e, n, this.currentDirection)) return;
+ if (!t || !ox(e, n, this.currentDirection)) return;
let r = this.getAxisMotionValue(e), i = this.originPoint[e] + t[e], a = this.constraints && this.constraints[e];
- a && (i = Dre(i, a, this.elastic[e])), this.point ? this.point[e] = i : r.set(i);
+ a && (i = Tre(i, a, this.elastic[e])), this.point ? this.point[e] = i : r.set(i);
}
resolveConstraints() {
let { dragConstraints: e, dragElastic: t } = this.getProps(), { projection: n } = this.visualElement, r = n && (n.layout || n.measure(!1)), i = this.constraints;
- tx(e) ? this.constraints && this.scroll === ex(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r && typeof e == "object" ? Ore(r.layoutBox, e) : !1, this.elastic = Mre(t), i !== this.constraints && !tx(e) && r && this.constraints && !this.hasMutatedConstraints && Yy((e) => {
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = jre(r.layoutBox[e], this.constraints[e]));
+ rx(e) ? this.constraints && this.scroll === nx(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r && typeof e == "object" ? Ere(r.layoutBox, e) : !1, this.elastic = Are(t), i !== this.constraints && !rx(e) && r && this.constraints && !this.hasMutatedConstraints && Zy((e) => {
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = kre(r.layoutBox[e], this.constraints[e]));
});
}
resolveRefConstraints() {
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
- if (!tx(e)) return !1;
- let n = nx(e), { projection: r } = this.visualElement;
+ if (!rx(e)) return !1;
+ let n = ix(e), { projection: r } = this.visualElement;
if (!r || !r.layout) return !1;
- this.scroll = ex(r);
- let i = sne(n, r.root, this.visualElement.getTransformPagePoint()), a = kre(r.layout.layoutBox, r.removeElementScroll(i));
+ this.scroll = nx(r);
+ let i = one(n, r.root, this.visualElement.getTransformPagePoint()), a = Dre(r.layout.layoutBox, r.removeElementScroll(i));
if (t) {
- let e = t(ine(a));
- this.hasMutatedConstraints = !!e, e && (a = qv(e));
+ let e = t(rne(a));
+ this.hasMutatedConstraints = !!e, e && (a = Jv(e));
}
return a;
}
@@ -20209,13 +20209,13 @@ var Nre = /* @__PURE__ */ new WeakMap(), Pre = class {
restDelta: 1,
restSpeed: 10,
...a
- }, l = (i) => r && !(this.point && o) && ix(i, t || n, this.currentDirection) ? e[i] : 0;
+ }, l = (i) => r && !(this.point && o) && ox(i, t || n, this.currentDirection) ? e[i] : 0;
if (this.point && !o) return this.point.release({
x: l("x"),
y: l("y")
}, c).then(s);
- let u = this.constraints || {}, d = Yy((e) => {
- if (!ix(e, t || n, this.currentDirection)) return;
+ let u = this.constraints || {}, d = Zy((e) => {
+ if (!ox(e, t || n, this.currentDirection)) return;
let r = u[e] || {};
(o === !0 || o === e) && (r = {
min: 0,
@@ -20236,7 +20236,7 @@ var Nre = /* @__PURE__ */ new WeakMap(), Pre = class {
return vv(this.visualElement, e), n.start(dv(e, n, 0, t, this.visualElement, !1));
}
stopAnimation() {
- Yy((e) => this.getAxisMotionValue(e).stop());
+ Zy((e) => this.getAxisMotionValue(e).stop());
}
getAxisMotionValue(e) {
let t = `_drag${e.toUpperCase()}`;
@@ -20247,8 +20247,8 @@ var Nre = /* @__PURE__ */ new WeakMap(), Pre = class {
x: e,
y: t
}, i = this.visualElement.getTransformPagePoint()?.(r) || r, a = this.visualElement.measureViewportBox();
- Yy((e) => {
- if (!ix(e, n, this.currentDirection)) return;
+ Zy((e) => {
+ if (!ox(e, n, this.currentDirection)) return;
let t = this.getAxisMotionValue(e), { min: r, max: o } = a[e];
t.set((t.get() || 0) + i[e] - ng(r, o, .5));
});
@@ -20256,41 +20256,41 @@ var Nre = /* @__PURE__ */ new WeakMap(), Pre = class {
scalePositionWithinConstraints() {
if (!this.visualElement.current) return;
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
- if (!tx(t) || !n || !this.constraints) return;
+ if (!rx(t) || !n || !this.constraints) return;
this.stopAnimation();
let r = this.constraints, i = {
x: 0,
y: 0
};
- Yy((e) => {
+ Zy((e) => {
let t = this.getAxisMotionValue(e).get();
- i[e] = Are({
+ i[e] = Ore({
min: t,
max: t
}, r[e]);
});
let { transformTemplate: a } = this.visualElement.getProps();
- this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root?.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), Yy((t) => {
+ this.visualElement.current.style.transform = a ? a({}, "") : "none", n.root?.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), Zy((t) => {
let n = this.getAxisMotionValue(t);
- if (!ix(t, e, null) || !n.get()) return;
+ if (!ox(t, e, null) || !n.get()) return;
let { min: r, max: a } = this.constraints[t];
n.set(ng(r, a, i[t]));
}), this.visualElement.render();
}
addListeners() {
if (!this.visualElement.current) return;
- Nre.set(this.visualElement, this);
- let e = this.visualElement.current, t = Mb(e, "pointerdown", (t) => {
- let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Tre(i);
+ jre.set(this.visualElement, this);
+ let e = this.visualElement.current, t = Pb(e, "pointerdown", (t) => {
+ let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Cre(i);
n && r && !a && this.start(t);
}), n, r = () => {
- let { dragConstraints: t } = this.getProps(), r = tx(t) && nx(t);
- r && (this.constraints = this.resolveRefConstraints(), n ||= Fre(e, r, () => this.scalePositionWithinConstraints()));
+ let { dragConstraints: t } = this.getProps(), r = rx(t) && ix(t);
+ r && (this.constraints = this.resolveRefConstraints(), n ||= Nre(e, r, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
i.layout || (i.root?.updateScroll(), i.updateLayout()), pg.read(r);
- let o = ub(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
- this.isDragging && t && (Yy((t) => {
- if (!ix(t, this.getProps().drag, this.currentDirection)) return;
+ let o = fb(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
+ this.isDragging && t && (Zy((t) => {
+ if (!ox(t, this.getProps().drag, this.currentDirection)) return;
let n = this.getAxisMotionValue(t);
this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate);
}), this.visualElement.render());
@@ -20300,7 +20300,7 @@ var Nre = /* @__PURE__ */ new WeakMap(), Pre = class {
};
}
getProps() {
- let e = this.readProps(), { dragElastic: t = Zb, dragMomentum: n = !0 } = e;
+ let e = this.readProps(), { dragElastic: t = $b, dragMomentum: n = !0 } = e;
return {
...e,
dragElastic: t,
@@ -20308,31 +20308,31 @@ var Nre = /* @__PURE__ */ new WeakMap(), Pre = class {
};
}
};
-function tx(e) {
+function rx(e) {
return !!e && typeof e == "object" && ("current" in e || "nodeType" in e);
}
-var nx = (e) => "current" in e ? e.current : e;
-function rx(e) {
+var ix = (e) => "current" in e ? e.current : e;
+function ax(e) {
let t = !0;
return () => {
t ? t = !1 : e();
};
}
-function Fre(e, t, n) {
- let r = Rb(e, rx(n)), i = Rb(t, rx(n));
+function Nre(e, t, n) {
+ let r = Bb(e, ax(n)), i = Bb(t, ax(n));
return () => {
r(), i();
};
}
-function ix(e, t, n) {
+function ox(e, t, n) {
return (t === !0 || t === e) && (n === null || n === e);
}
-function Ire(e, t = 10) {
+function Pre(e, t = 10) {
let n = null;
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
}
// node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
-function ax(e, t) {
+function sx(e, t) {
let n = Fv(e), r = new AbortController();
return [
n,
@@ -20345,12 +20345,12 @@ function ax(e, t) {
];
}
// node_modules/motion-dom/dist/es/gestures/hover.mjs
-function Lre(e) {
- return !(e.pointerType === "touch" || Jb());
+function Fre(e) {
+ return !(e.pointerType === "touch" || Xb());
}
-function Rre(e, t, n = {}) {
+function Ire(e, t, n = {}) {
t = Pv(t);
- let [r, i, a] = ax(e, n);
+ let [r, i, a] = sx(e, n);
return r.forEach((e) => {
let n = !1, r = !1, a, o = () => {
e.removeEventListener("pointerleave", u);
@@ -20364,7 +20364,7 @@ function Rre(e, t, n = {}) {
e.pointerType !== "touch" && (n ? r = !0 : s(e));
};
e.addEventListener("pointerenter", (n) => {
- if (!Lre(n)) return;
+ if (!Fre(n)) return;
r = !1;
let o = t(e, n);
typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
@@ -20372,71 +20372,71 @@ function Rre(e, t, n = {}) {
}), a;
}
// node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
-var ox = (e, t) => t ? e === t || ox(e, t.parentElement) : !1, sx = /* @__PURE__ */ new WeakSet();
+var cx = (e, t) => t ? e === t || cx(e, t.parentElement) : !1, lx = /* @__PURE__ */ new WeakSet();
// node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
-function cx(e) {
+function ux(e) {
return (t) => {
t.key === "Enter" && e(t);
};
}
-function lx(e, t) {
+function dx(e, t) {
e.dispatchEvent(new PointerEvent("pointer" + t, {
isPrimary: !0,
bubbles: !0
}));
}
-var zre = (e, t) => {
- let n = !1, r = cx(() => {
- sx.has(e) || (n = !0, lx(e, "down"));
- }), i = cx(() => {
- n && (n = !1, lx(e, "up"));
+var Lre = (e, t) => {
+ let n = !1, r = ux(() => {
+ lx.has(e) || (n = !0, dx(e, "down"));
+ }), i = ux(() => {
+ n && (n = !1, dx(e, "up"));
});
e.addEventListener("keydown", r, t), e.addEventListener("keyup", i, t), e.addEventListener("blur", () => {
- e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && lx(e, "cancel");
+ e.removeEventListener("keydown", r), e.removeEventListener("keyup", i), n && dx(e, "cancel");
}, {
...t,
once: !0
});
};
// node_modules/motion-dom/dist/es/gestures/press/index.mjs
-function ux(e) {
- return Ab(e) && !Jb();
+function fx(e) {
+ return Mb(e) && !Xb();
}
-var dx = /* @__PURE__ */ new WeakSet();
-function Bre(e, t, n = {}) {
+var px = /* @__PURE__ */ new WeakSet();
+function Rre(e, t, n = {}) {
t = Pv(t);
- let [r, i, a] = ax(e, n), o = (e) => {
+ let [r, i, a] = sx(e, n), o = (e) => {
let r = e.currentTarget;
- if (!ux(e) || dx.has(e)) return;
- sx.add(r), n.stopPropagation && dx.add(e);
+ if (!fx(e) || px.has(e)) return;
+ lx.add(r), n.stopPropagation && px.add(e);
let a = t(r, e), o = {
...i,
capture: !0
}, s = (e, t) => {
- window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), sx.has(r) && sx.delete(r), ux(e) && typeof a == "function" && a(e, { success: t });
+ window.removeEventListener("pointerup", c, o), window.removeEventListener("pointercancel", l, o), lx.has(r) && lx.delete(r), fx(e) && typeof a == "function" && a(e, { success: t });
}, c = (e) => {
- s(e, r === window || r === document || n.useGlobalTarget || ox(r, e.target));
+ s(e, r === window || r === document || n.useGlobalTarget || cx(r, e.target));
}, l = (e) => {
s(e, !1);
};
window.addEventListener("pointerup", c, o), window.addEventListener("pointercancel", l, o);
};
return r.forEach((e) => {
- (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Av(e) && (e.addEventListener("focus", () => zre(e, i), i), !Cre(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Av(e) && (e.addEventListener("focus", () => Lre(e, i), i), !xre(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
}), a;
}
// node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
-function fx(e, t) {
+function mx(e, t) {
let n = window.getComputedStyle(e);
return T_(t) ? n.getPropertyValue(t) : n[t];
}
// node_modules/motion-dom/dist/es/render/Feature.mjs
-var px = class {
+var hx = class {
constructor(e) {
this.isMounted = !1, this.node = e;
}
update() {}
-}, mx = /* @__PURE__ */ new Set([
+}, gx = /* @__PURE__ */ new Set([
"baseFrequency",
"diffuseConstant",
"kernelMatrix",
@@ -20460,15 +20460,15 @@ var px = class {
"startOffset",
"textLength",
"lengthAdjust"
-]), hx = (e) => typeof e == "string" && e.toLowerCase() === "svg";
+]), _x = (e) => typeof e == "string" && e.toLowerCase() === "svg";
// node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
-function Vre(e, t, n, r) {
- Db(e, t, void 0, r);
- for (let n in t.attrs) e.setAttribute(mx.has(n) ? n : Vv(n), t.attrs[n]);
+function zre(e, t, n, r) {
+ kb(e, t, void 0, r);
+ for (let n in t.attrs) e.setAttribute(gx.has(n) ? n : Hv(n), t.attrs[n]);
}
// node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
-function gx(e, t, n) {
- let r = kb(e, t, n);
+function vx(e, t, n) {
+ let r = jb(e, t, n);
for (let n in e) if (n !== "children" && (_v(e[n]) || _v(t[n]))) {
let t = d_.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
r[t] = e[n];
@@ -20476,9 +20476,9 @@ function gx(e, t, n) {
return r;
}
// node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
-var Hre = class extends Eb {
+var Bre = class extends Ob {
constructor() {
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = zy;
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Vy;
}
getBaseTargetFromProps(e, t) {
return f_.has(t) ? super.getBaseTargetFromProps(e, t) ?? c_(t) : e[t];
@@ -20491,27 +20491,27 @@ var Hre = class extends Eb {
let e = $g(t);
return e && e.default || 0;
}
- if (Uv.includes(t)) {
+ if (Wv.includes(t)) {
let n = getComputedStyle(e)[t];
if (typeof n == "string" && n) return n.trim();
}
- return t = mx.has(t) ? t : Vv(t), e.getAttribute(t);
+ return t = gx.has(t) ? t : Hv(t), e.getAttribute(t);
}
scrapeMotionValuesFromProps(e, t, n) {
- return gx(e, t, n);
+ return vx(e, t, n);
}
build(e, t, n) {
- Wv(e, t, this.isSVGTag, n.transformTemplate, n.style);
+ Gv(e, t, this.isSVGTag, n.transformTemplate, n.style);
}
renderInstance(e, t, n, r) {
- Vre(e, t, n, r);
+ zre(e, t, n, r);
}
mount(e) {
- this.isSVGTag = hx(e.tagName), super.mount(e);
+ this.isSVGTag = _x(e.tagName), super.mount(e);
}
};
// node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
-function _x(e, t) {
+function yx(e, t) {
if (!Array.isArray(t)) return !1;
let n = t.length;
if (n !== e.length) return !1;
@@ -20519,18 +20519,18 @@ function _x(e, t) {
return !0;
}
// node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
-var Ure = [...gb].reverse(), vx = (e) => e?.out === !0 ? e : e?.out;
-function Wre(e) {
- let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Ite(e, t, n))), n = yx(), r = !0, i = !1;
+var Vre = [...vb].reverse(), bx = (e) => e?.out === !0 ? e : e?.out;
+function Hre(e) {
+ let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Ite(e, t, n))), n = xx(), r = !0, i = !1;
function a(a) {
let { props: o, parent: s, manuallyAnimateOnMount: c } = e, { initial: l } = o, u = r || i, d = [], f = (t = l) => typeof t != "boolean" && mv(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom) || void 0, p = /* @__PURE__ */ new Map(), m = {}, h = Infinity, g = e;
do
g = g.props.inherit !== !1 && g.parent;
while (g && !g.isControllingVariants);
- let _ = u && vx(f(l ?? (g && g.props.initial))?.transition);
- if (Ure.forEach((t, r) => {
- let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? hb(f) || f === !1 ? f : void 0 : l, y = hb(v), b = t === a ? i.isActive : null, x = y && l === void 0 && !(u && c);
- if (i.protectedKeys = { ...m }, !i.isActive && b === null || !v && !i.prevProp || mb(v) || typeof v == "boolean") return;
+ let _ = u && bx(f(l ?? (g && g.props.initial))?.transition);
+ if (Vre.forEach((t, r) => {
+ let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? _b(f) || f === !1 ? f : void 0 : l, y = _b(v), b = t === a ? i.isActive : null, x = y && l === void 0 && !(u && c);
+ if (i.protectedKeys = { ...m }, !i.isActive && b === null || !v && !i.prevProp || gb(v) || typeof v == "boolean") return;
if (b === !1 && (h = r), t === "exit" && i.isActive && b !== !0) {
m = {
...m,
@@ -20538,14 +20538,14 @@ function Wre(e) {
};
return;
}
- let S = Gre(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;
+ let S = Ure(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;
if (b !== !1) for (let n of T) {
let { transition: r, transitionEnd: i, ...a } = mv(e, n, hv(e, t)) || {};
E = {
...E,
...a,
...i
- }, D = vx(r) || D;
+ }, D = bx(r) || D;
}
let { prevResolvedValues: O } = i;
for (let t in {
@@ -20553,7 +20553,7 @@ function Wre(e) {
...E
}) {
if (t in m) continue;
- let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !_x(n, r) || S : n !== r, o;
+ let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !yx(n, r) || S : n !== r, o;
if (a && n == null) p.has(t) || p.set(t, i.prevOut);
else if (a || n !== void 0 && p.has(t)) {
C = !0, o = p.get(t) || _, p.delete(t) && (w = !0), i.needsAnimating[t] = !0;
@@ -20607,16 +20607,16 @@ function Wre(e) {
},
getState: () => n,
reset: () => {
- n = yx(), i = !0;
+ n = xx(), i = !0;
}
};
}
-function Gre(e, t) {
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !_x(t, e) : !1;
+function Ure(e, t) {
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !yx(t, e) : !1;
}
-function yx() {
+function xx() {
let e = {};
- for (let t of gb) e[t] = {
+ for (let t of vb) e[t] = {
isActive: t === "animate",
protectedKeys: {},
needsAnimating: {},
@@ -20626,55 +20626,55 @@ function yx() {
return e;
}
// node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
-var bx = /* @__PURE__ */ (0, F.createContext)({
+var Sx = /* @__PURE__ */ (0, F.createContext)({
transformPagePoint: (e) => e,
isStatic: !1,
reducedMotion: "never"
});
// node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
-function xx(e, t) {
+function Cx(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
-function Kre(...e) {
+function Wre(...e) {
return (t) => {
let n = !1, r = e.map((e) => {
- let r = xx(e, t);
+ let r = Cx(e, t);
return !n && typeof r == "function" && (n = !0), r;
});
if (n) return () => {
for (let t = 0; t < r.length; t++) {
let n = r[t];
- typeof n == "function" ? n() : xx(e[t], null);
+ typeof n == "function" ? n() : Cx(e[t], null);
}
};
};
}
-function qre(...e) {
- return F.useCallback(Kre(...e), e);
+function Gre(...e) {
+ return F.useCallback(Wre(...e), e);
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
-var Sx = (e) => {
+var wx = (e) => {
let { width: t, height: n } = e?.getBoundingClientRect() || {};
return [t / e?.offsetWidth || 1, n / e?.offsetHeight || 1];
-}, Cx = (e) => {
+}, Tx = (e) => {
let { left: t, top: n } = e.getBoundingClientRect(), r = e;
for (; r = r.parentElement || r.parentNode?.host;) {
let { scrollLeft: e, scrollTop: i } = r;
if (e || i) {
- let [a, o] = Sx(r);
+ let [a, o] = wx(r);
t += e * a, n += i * o;
}
if (getComputedStyle(r).position === "fixed") break;
}
- let [i, a] = Sx(e.offsetParent);
+ let [i, a] = wx(e.offsetParent);
return [t / i, n / a];
-}, Jre = class extends F.Component {
+}, Kre = class extends F.Component {
getSnapshotBeforeUpdate(e) {
let t = this.props.getElement();
if (Av(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
let e = t.offsetParent, n = Av(e) && e.offsetWidth || 0, r = Av(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
- a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction, a.point = Cx(t);
+ a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction, a.point = Tx(t);
}
return null;
}
@@ -20683,7 +20683,7 @@ var Sx = (e) => {
return this.props.children;
}
};
-function Yre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a, popNode: o }) {
+function qre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a, popNode: o }) {
let s = (0, F.useId)(), c = (0, F.useRef)(null), l = (0, F.useRef)({
width: 0,
height: 0,
@@ -20692,7 +20692,7 @@ function Yre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
right: 0,
bottom: 0,
direction: "ltr"
- }), { nonce: u } = (0, F.useContext)(bx), d = qre(c, a === !1 ? void 0 : e.props?.ref ?? e?.ref), f = () => c.current || o?.current?.current, p = (e) => {
+ }), { nonce: u } = (0, F.useContext)(Sx), d = Gre(c, a === !1 ? void 0 : e.props?.ref ?? e?.ref), f = () => c.current || o?.current?.current, p = (e) => {
let { width: t, height: i, top: a, left: o, right: c, bottom: u, direction: d } = l.current, f = d === "rtl", p = n === "left" ? f ? `right:${c}` : `left:${o}` : f ? `left:${o}` : `right:${c}`, m = r === "bottom" ? `bottom:${u}` : `top:${a}`;
e?.insertRule(`[data-motion-pop-id="${s}"]{position:absolute!important;width:${t}px!important;height:${i}px!important;${p}px!important;${m}px!important}`);
};
@@ -20705,10 +20705,10 @@ function Yre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
let d = i ?? o.head;
d.appendChild(c), p(c.sheet);
let m = 0, h = 0;
- return fy.setup(() => {
- let [e, t] = Cx(r);
+ return py.setup(() => {
+ let [e, t] = Tx(r);
m = l.current.point[0] - e, h = l.current.point[1] - t;
- }), fy.read(() => {
+ }), py.read(() => {
let { sheet: e } = c;
if (!e || !m && !h) return;
let t = l.current;
@@ -20716,7 +20716,7 @@ function Yre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
}), () => {
r.removeAttribute("data-motion-pop-id"), d.contains(c) && d.removeChild(c);
};
- }, [t]), (0, I.jsx)(Jre, {
+ }, [t]), (0, I.jsx)(Kre, {
isPresent: t,
getElement: f,
sizeRef: l,
@@ -20725,8 +20725,8 @@ function Yre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
});
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
-var Xre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
- let u = hm(Zre), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);
+var Jre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
+ let u = hm(Yre), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);
gm(() => {
p.current = n, m.current = r;
});
@@ -20752,7 +20752,7 @@ var Xre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
u.forEach((e, t) => u.set(t, !1));
}, [n]), F.useEffect(() => {
!n && !u.size && r && r();
- }, [n]), e = (0, I.jsx)(Yre, {
+ }, [n]), e = (0, I.jsx)(qre, {
pop: o === "popLayout",
isPresent: n,
anchorX: s,
@@ -20765,11 +20765,11 @@ var Xre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
children: e
});
};
-function Zre() {
+function Yre() {
return /* @__PURE__ */ new Map();
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
-function wx(e = !0) {
+function Ex(e = !0) {
let t = (0, F.useContext)(_m);
if (t === null) return [!0, null];
let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, F.useId)();
@@ -20783,23 +20783,23 @@ function wx(e = !0) {
]);
return !n && r ? [!1, o] : [!0];
}
-function Tx() {
- return Qre((0, F.useContext)(_m));
+function Dx() {
+ return Xre((0, F.useContext)(_m));
}
-function Qre(e) {
+function Xre(e) {
return e === null || e.isPresent;
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
-var Ex = (e) => e.key || "";
-function Dx(e) {
+var Ox = (e) => e.key || "";
+function kx(e) {
let t = [];
return F.Children.forEach(e, (e) => {
(0, F.isValidElement)(e) && t.push(e);
}), t;
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
-var Ox = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
- let [u, d] = wx(o), f = (0, F.useMemo)(() => Dx(e), [e]), p = o && !u ? [] : f.map(Ex), m = (0, F.useRef)(!0), h = hm(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);
+var Ax = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: o = !1, anchorX: s = "left", anchorY: c = "top", root: l }) => {
+ let [u, d] = Ex(o), f = (0, F.useMemo)(() => kx(e), [e]), p = o && !u ? [] : f.map(Ox), m = (0, F.useRef)(!0), h = hm(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);
gm(() => {
o && !u && !y.length && d?.();
}, [
@@ -20815,7 +20815,7 @@ var Ox = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
}, [y]), gm(() => {
m.current = !1;
for (let e = 0; e < y.length; e++) {
- let t = Ex(y[e]);
+ let t = Ox(y[e]);
p.includes(t) ? (h.delete(t), g.current.delete(t)) : h.get(t) !== !0 && h.set(t, !1);
}
}, [
@@ -20827,15 +20827,15 @@ var Ox = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
if (f !== _) {
let e = [...f], t = 0;
for (let n of y) {
- let r = p.indexOf(Ex(n));
+ let r = p.indexOf(Ox(n));
r === -1 ? (e.splice(t++, 0, n), S.push(n)) : t = r + S.length + 1;
}
- return S.every((e) => h.get(Ex(e))) ? e = f : a === "wait" && (e = S), b(Dx(e)), v(f), null;
+ return S.every((e) => h.get(Ox(e))) ? e = f : a === "wait" && (e = S), b(kx(e)), v(f), null;
}
let { forceRender: C } = (0, F.useContext)(mm);
return (0, I.jsx)(I.Fragment, { children: y.map((e) => {
- let _ = Ex(e), b = o && !u ? !1 : f === y || p.includes(_);
- return (0, I.jsx)(Xre, {
+ let _ = Ox(e), b = o && !u ? !1 : f === y || p.includes(_);
+ return (0, I.jsx)(Jre, {
isPresent: b,
initial: !m.current || n ? void 0 : !1,
custom: t,
@@ -20856,8 +20856,8 @@ var Ox = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
children: e
}, _);
}) });
-}, kx = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), Ax = {
- animation: ["variants", ...gb],
+}, jx = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), Mx = {
+ animation: ["variants", ...vb],
exit: ["exit"],
drag: ["drag", "dragControls"],
focus: ["whileFocus"],
@@ -20884,28 +20884,28 @@ var Ox = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
"onViewportLeave"
],
layout: ["layout", "layoutId"]
-}, jx = !1;
-function $re() {
- if (jx) return;
+}, Nx = !1;
+function Zre() {
+ if (Nx) return;
let e = {};
- for (let t in Ax) e[t] = { isEnabled: (e) => Ax[t].some((t) => !!e[t]) };
- Tb(e), jx = !0;
+ for (let t in Mx) e[t] = { isEnabled: (e) => Mx[t].some((t) => !!e[t]) };
+ Db(e), Nx = !0;
}
-function Mx() {
- return $re(), ore();
+function Px() {
+ return Zre(), ire();
}
// node_modules/framer-motion/dist/es/motion/features/load-features.mjs
-function eie(e) {
- let t = Mx();
+function Qre(e) {
+ let t = Px();
for (let n in e) t[n] = {
...t[n],
...e[n]
};
- Tb(t);
+ Db(t);
}
// node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
-function tie({ children: e, ...t }) {
- let n = (0, F.useContext)(bx);
+function $re({ children: e, ...t }) {
+ let n = (0, F.useContext)(Sx);
t = {
...n,
...t
@@ -20917,77 +20917,77 @@ function tie({ children: e, ...t }) {
t.skipAnimations,
t.isValidProp
]);
- return (0, I.jsx)(bx.Provider, {
+ return (0, I.jsx)(Sx.Provider, {
value: r,
children: e
});
}
// node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
-var Nx = /* @__PURE__ */ (0, F.createContext)({});
+var Fx = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
-function nie(e, t) {
- if (vb(e)) {
+function eie(e, t) {
+ if (bb(e)) {
let { initial: t, animate: n } = e;
return {
- initial: t === !1 || hb(t) ? t : void 0,
- animate: hb(n) ? n : void 0
+ initial: t === !1 || _b(t) ? t : void 0,
+ animate: _b(n) ? n : void 0
};
}
return e.inherit === !1 ? {} : t;
}
// node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
-function rie(e) {
- let { initial: t, animate: n } = nie(e, (0, F.useContext)(Nx));
+function tie(e) {
+ let { initial: t, animate: n } = eie(e, (0, F.useContext)(Fx));
return (0, F.useMemo)(() => ({
initial: t,
animate: n
- }), [Px(t), Px(n)]);
+ }), [Ix(t), Ix(n)]);
}
-function Px(e) {
+function Ix(e) {
return Array.isArray(e) ? e.join(" ") : e;
}
// node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
-var Fx = () => ({
+var Lx = () => ({
style: {},
transform: {},
transformOrigin: {},
vars: {}
});
// node_modules/framer-motion/dist/es/render/html/use-props.mjs
-function Ix(e, t, n) {
- for (let r in t) !_v(t[r]) && !Ob(r, n) && (e[r] = t[r]);
+function Rx(e, t, n) {
+ for (let r in t) !_v(t[r]) && !Ab(r, n) && (e[r] = t[r]);
}
-function iie({ transformTemplate: e }, t) {
+function nie({ transformTemplate: e }, t) {
return (0, F.useMemo)(() => {
- let n = Fx();
- return Hv(n, t, e), Object.assign({}, n.vars, n.style);
+ let n = Lx();
+ return Uv(n, t, e), Object.assign({}, n.vars, n.style);
}, [t]);
}
-function aie(e, t) {
+function rie(e, t) {
let n = e.style || {}, r = {};
- return Ix(r, n, e), Object.assign(r, iie(e, t)), r;
+ return Rx(r, n, e), Object.assign(r, nie(e, t)), r;
}
-function oie(e, t) {
- let n = {}, r = aie(e, t);
+function iie(e, t) {
+ let n = {}, r = rie(e, t);
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
}
// node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
-var Lx = () => ({
- ...Fx(),
+var zx = () => ({
+ ...Lx(),
attrs: {}
});
// node_modules/framer-motion/dist/es/render/svg/use-props.mjs
-function sie(e, t, n, r) {
+function aie(e, t, n, r) {
let i = (0, F.useMemo)(() => {
- let n = Lx();
- return Wv(n, t, hx(r), e.transformTemplate, e.style), {
+ let n = zx();
+ return Gv(n, t, _x(r), e.transformTemplate, e.style), {
...n.attrs,
style: { ...n.style }
};
}, [t]);
if (e.style) {
let t = {};
- return Ix(t, e.style, e), {
+ return Rx(t, e.style, e), {
...i,
style: {
...t,
@@ -20998,21 +20998,21 @@ function sie(e, t, n, r) {
return i;
}
// node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
-var cie = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
-function Rx(e) {
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || cie.has(e);
+var oie = /* @__PURE__ */ new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
+function Bx(e) {
+ return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || oie.has(e);
}
// node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs
-function lie(e, t) {
- return e.startsWith("on") ? !Rx(e) : t?.(e) ?? !Rx(e);
+function sie(e, t) {
+ return e.startsWith("on") ? !Bx(e) : t?.(e) ?? !Bx(e);
}
-function uie(e, t, n, r) {
+function cie(e, t, n, r) {
let i = {};
- for (let a in e) a === "values" && typeof e.values == "object" || _v(e[a]) || (lie(a, r) || n === !0 && Rx(a) || !t && !Rx(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);
+ for (let a in e) a === "values" && typeof e.values == "object" || _v(e[a]) || (sie(a, r) || n === !0 && Bx(a) || !t && !Bx(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);
return i;
}
// node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
-var die = [
+var lie = [
"animate",
"circle",
"defs",
@@ -21040,12 +21040,12 @@ var die = [
"view"
];
// node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
-function zx(e) {
- return typeof e != "string" || e.includes("-") ? !1 : !!(die.indexOf(e) > -1 || /[A-Z]/u.test(e));
+function Vx(e) {
+ return typeof e != "string" || e.includes("-") ? !1 : !!(lie.indexOf(e) > -1 || /[A-Z]/u.test(e));
}
// node_modules/framer-motion/dist/es/render/dom/use-render.mjs
-function fie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
- let c = (o ?? zx(e) ? sie : oie)(t, r, i, e), l = uie(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {
+function uie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
+ let c = (o ?? Vx(e) ? aie : iie)(t, r, i, e), l = cie(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {
...l,
...c,
ref: n
@@ -21056,21 +21056,21 @@ function fie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
});
}
// node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
-function pie({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
+function die({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
return {
- latestValues: mie(n, r, i, e),
+ latestValues: fie(n, r, i, e),
renderState: t()
};
}
-function mie(e, t, n, r) {
+function fie(e, t, n, r) {
let i = {}, a = r(e, {});
- for (let e in a) i[e] = gy(a[e]);
- let { initial: o, animate: s } = e, c = vb(e), l = yb(e);
+ for (let e in a) i[e] = _y(a[e]);
+ let { initial: o, animate: s } = e, c = bb(e), l = xb(e);
t && l && !c && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
let u = n ? n.initial === !1 : !1;
u ||= o === !1;
let d = u ? s : o;
- if (d && typeof d != "boolean" && !mb(d)) {
+ if (d && typeof d != "boolean" && !gb(d)) {
let t = Array.isArray(d) ? d : [d];
for (let n = 0; n < t.length; n++) {
let r = pv(e, t[n]);
@@ -21090,18 +21090,18 @@ function mie(e, t, n, r) {
}
return i;
}
-var Bx = (e) => (t, n) => {
- let r = (0, F.useContext)(Nx), i = (0, F.useContext)(_m), a = () => pie(e, t, r, i);
+var Hx = (e) => (t, n) => {
+ let r = (0, F.useContext)(Fx), i = (0, F.useContext)(_m), a = () => die(e, t, r, i);
return n ? a() : hm(a);
-}, hie = /*@__PURE__*/ Bx({
- scrapeMotionValuesFromProps: kb,
- createRenderState: Fx
-}), gie = /*@__PURE__*/ Bx({
- scrapeMotionValuesFromProps: gx,
+}, pie = /*@__PURE__*/ Hx({
+ scrapeMotionValuesFromProps: jb,
createRenderState: Lx
-}), _ie = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
+}), mie = /*@__PURE__*/ Hx({
+ scrapeMotionValuesFromProps: vx,
+ createRenderState: zx
+}), hie = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
// node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
-function vie(e, t, n) {
+function gie(e, t, n) {
let r = (0, F.useRef)(n);
(0, F.useInsertionEffect)(() => {
r.current = n;
@@ -21119,10 +21119,10 @@ function vie(e, t, n) {
}, [t]);
}
// node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
-var Vx = /* @__PURE__ */ (0, F.createContext)({});
+var Ux = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
-function yie(e, t, n, r, i, a) {
- let { visualElement: o } = (0, F.useContext)(Nx), s = (0, F.useContext)(kx), c = (0, F.useContext)(_m), l = (0, F.useContext)(bx), u = l.reducedMotion, d = l.skipAnimations, f = (0, F.useRef)(null), p = (0, F.useRef)(!1);
+function _ie(e, t, n, r, i, a) {
+ let { visualElement: o } = (0, F.useContext)(Fx), s = (0, F.useContext)(jx), c = (0, F.useContext)(_m), l = (0, F.useContext)(Sx), u = l.reducedMotion, d = l.skipAnimations, f = (0, F.useRef)(null), p = (0, F.useRef)(!1);
r ||= s.renderer, !f.current && r && (f.current = r(e, {
visualState: t,
parent: o,
@@ -21133,7 +21133,7 @@ function yie(e, t, n, r, i, a) {
skipAnimations: d,
isSVG: a
}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
- let m = f.current, h = (0, F.useContext)(Vx);
+ let m = f.current, h = (0, F.useContext)(Ux);
m && !m.projection && i && (m.type === "html" || m.type === "svg") && i.create(m, n, h), (0, F.useInsertionEffect)(() => {
m && m.props !== n && m.update(n, c);
});
@@ -21149,46 +21149,46 @@ function yie(e, t, n, r, i, a) {
}), m;
}
// node_modules/framer-motion/dist/es/motion/index.mjs
-function Hx(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
- r && eie(r);
- let a = n ? n === "svg" : zx(e), o = a ? gie : hie;
+function Wx(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
+ r && Qre(r);
+ let a = n ? n === "svg" : Vx(e), o = a ? mie : pie;
function s(n, s) {
- let c, l = bie(n);
- hm(() => !!db.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
+ let c, l = vie(n);
+ hm(() => !!pb.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
...n,
initial: !1
});
let u = {
- ...(0, F.useContext)(bx),
+ ...(0, F.useContext)(Sx),
...n,
layoutId: l
- }, { isStatic: d, isValidProp: f } = u, p = rie(n), m = o(n, d);
+ }, { isStatic: d, isValidProp: f } = u, p = tie(n), m = o(n, d);
if (!d && typeof window < "u") {
- xie(u, r);
- let t = Sie(u);
- p.visualElement = yie(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
+ yie(u, r);
+ let t = bie(u);
+ p.visualElement = _ie(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
}
- return (0, I.jsxs)(Nx.Provider, {
+ return (0, I.jsxs)(Fx.Provider, {
value: p,
children: [c && p.visualElement ? (0, I.jsx)(c, {
visualElement: p.visualElement,
...u
- }) : null, fie(e, n, vie(m, p.visualElement, s), m, d, t, a, f)]
+ }) : null, uie(e, n, gie(m, p.visualElement, s), m, d, t, a, f)]
});
}
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
let c = (0, F.forwardRef)(s);
- return c[_ie] = e, c;
+ return c[hie] = e, c;
}
-function bie({ layoutId: e }) {
+function vie({ layoutId: e }) {
let t = (0, F.useContext)(mm).id;
return t && e !== void 0 ? t + "-" + e : e;
}
-function xie(e, t) {
- (0, F.useContext)(kx).strict;
+function yie(e, t) {
+ (0, F.useContext)(jx).strict;
}
-function Sie(e) {
- let { drag: t, layout: n } = Mx();
+function bie(e) {
+ let { drag: t, layout: n } = Px();
if (!t && !n) return {};
let r = {
...t,
@@ -21201,19 +21201,19 @@ function Sie(e) {
};
}
// node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
-function Cie(e, t) {
- if (typeof Proxy > "u") return Hx;
- let n = /* @__PURE__ */ new Map(), r = (n, r) => Hx(n, r, e, t);
- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Hx(a, void 0, e, t)), n.get(a)) });
+function xie(e, t) {
+ if (typeof Proxy > "u") return Wx;
+ let n = /* @__PURE__ */ new Map(), r = (n, r) => Wx(n, r, e, t);
+ return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Wx(a, void 0, e, t)), n.get(a)) });
}
// node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
-var wie = (e, t) => t.isSVG ?? zx(e) ? new Hre(t) : new lre(t, { allowProjection: e !== F.Fragment }), Tie = class extends px {
+var Sie = (e, t) => t.isSVG ?? Vx(e) ? new Bre(t) : new sre(t, { allowProjection: e !== F.Fragment }), Cie = class extends hx {
constructor(e) {
- super(e), e.animationState ||= Wre(e);
+ super(e), e.animationState ||= Hre(e);
}
updateAnimationControlsSubscription() {
let { animate: e } = this.node.getProps();
- mb(e) && (this.unmountControls = e.subscribe(this.node));
+ gb(e) && (this.unmountControls = e.subscribe(this.node));
}
mount() {
this.updateAnimationControlsSubscription();
@@ -21224,11 +21224,11 @@ var wie = (e, t) => t.isSVG ?? zx(e) ? new Hre(t) : new lre(t, { allowProjection
unmount() {
this.node.animationState.reset(), this.unmountControls?.();
}
-}, Eie = 0, Die = {
- animation: { Feature: Tie },
- exit: { Feature: class extends px {
+}, wie = 0, Tie = {
+ animation: { Feature: Cie },
+ exit: { Feature: class extends hx {
constructor() {
- super(...arguments), this.id = Eie++;
+ super(...arguments), this.id = wie++;
}
update() {
let { presenceContext: e, prevPresenceContext: t, animationState: n } = this.node;
@@ -21258,9 +21258,9 @@ var wie = (e, t) => t.isSVG ?? zx(e) ? new Hre(t) : new lre(t, { allowProjection
}
unmount() {}
} }
-}, Oie = class extends px {
+}, Eie = class extends hx {
constructor(e) {
- super(e), this.removeGroupControls = Em, this.removeListeners = Em, this.controls = new Pre(e);
+ super(e), this.removeGroupControls = Em, this.removeListeners = Em, this.controls = new Mre(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
@@ -21273,14 +21273,14 @@ var wie = (e, t) => t.isSVG ?? zx(e) ? new Hre(t) : new lre(t, { allowProjection
unmount() {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
-}, Ux = (e) => (t, n) => {
+}, Gx = (e) => (t, n) => {
e && pg.update(() => e(t, n), !1, !0);
-}, kie = class extends px {
+}, Die = class extends hx {
constructor() {
super(...arguments), this.removePointerDownListener = Em;
}
onPointerDown(e) {
- this.session = new Vb(e, this.createPanHandlers(), {
+ this.session = new Ub(e, this.createPanHandlers(), {
transformPagePoint: this.node.getTransformPagePoint(),
contextWindow: this.node.current?.ownerDocument.defaultView
});
@@ -21288,16 +21288,16 @@ var wie = (e, t) => t.isSVG ?? zx(e) ? new Hre(t) : new lre(t, { allowProjection
createPanHandlers() {
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
return {
- onSessionStart: Ux(e),
- onStart: Ux(t),
- onMove: Ux(n),
+ onSessionStart: Gx(e),
+ onStart: Gx(t),
+ onMove: Gx(n),
onEnd: (e, t) => {
delete this.session, r && pg.postRender(() => r(e, t));
}
};
}
mount() {
- this.removePointerDownListener = Mb(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
+ this.removePointerDownListener = Pb(this.node.current, "pointerdown", (e) => this.onPointerDown(e));
}
update() {
this.session?.updateHandlers(this.createPanHandlers());
@@ -21305,12 +21305,12 @@ var wie = (e, t) => t.isSVG ?? zx(e) ? new Hre(t) : new lre(t, { allowProjection
unmount() {
this.removePointerDownListener(), this.session?.end();
}
-}, Wx = !1, Gx = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({
+}, Kx = !1, qx = ({ layout: e, layoutDependency: t, layoutAnchor: n }) => ({
layout: e,
layoutDependency: t,
layoutAnchor: n,
animationType: typeof e == "string" ? e : "both"
-}), Kx = (e, t) => {
+}), Jx = (e, t) => {
let { snapshot: n } = e, r = e.getStack();
r?.remove(e);
let i = r?.lead;
@@ -21319,33 +21319,33 @@ var wie = (e, t) => t.isSVG ?? zx(e) ? new Hre(t) : new lre(t, { allowProjection
let { resumeFrom: t } = e;
t?.isPresent !== !1 && e.getStack().members.includes(t) && (t.hide(), e.resumeFrom = void 0, e.snapshot = n);
};
-}, Aie = class extends F.Component {
+}, Oie = class extends F.Component {
componentDidMount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
- i && (t.group?.add(i), r && n?.register?.(i), Wx && i.root.didUpdate(), i.options.layoutId !== r && Kx(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({
+ i && (t.group?.add(i), r && n?.register?.(i), Kx && i.root.didUpdate(), i.options.layoutId !== r && Jx(i, r)?.(), i.addEventListener("animationComplete", () => this.safeToRemove()), i.setOptions({
...i.options,
- ...Gx(this.props),
+ ...qx(this.props),
onExitComplete: () => this.safeToRemove()
- })), Xy.hasEverUpdated = !0;
+ })), Qy.hasEverUpdated = !0;
}
getSnapshotBeforeUpdate(e) {
let { layoutDependency: t, layoutId: n, visualElement: r, drag: i, isPresent: a } = this.props, { projection: o } = r;
- return o && (o.isPresent = a, this.takeOver = e.layoutId === n ? void 0 : (o.willUpdate(), Kx(o, n)), o.setOptions({
+ return o && (o.isPresent = a, this.takeOver = e.layoutId === n ? void 0 : (o.willUpdate(), Jx(o, n)), o.setOptions({
...o.options,
- ...Gx(this.props)
- }), Wx = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || pg.postRender(() => {
+ ...qx(this.props)
+ }), Kx = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || pg.postRender(() => {
o.getStack()?.members.length || this.safeToRemove();
}))), null;
}
componentDidUpdate() {
let { projection: e } = this.props.visualElement;
- e && (this.takeOver?.(), e.root.didUpdate(), fy.postRender(() => {
+ e && (this.takeOver?.(), e.root.didUpdate(), py.postRender(() => {
!e.currentAnimation && e.isLead() && this.safeToRemove();
}));
}
componentWillUnmount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
- Wx = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));
+ Kx = !0, r && (r.scheduleCheckAfterUnmount(), t.group?.remove(r), n?.deregister?.(r));
}
safeToRemove() {
this.props.safeToRemove?.();
@@ -21354,39 +21354,39 @@ var wie = (e, t) => t.isSVG ?? zx(e) ? new Hre(t) : new lre(t, { allowProjection
return null;
}
};
-function qx(e) {
- let [t, n] = wx(), r = (0, F.useContext)(mm);
- return (0, I.jsx)(Aie, {
+function Yx(e) {
+ let [t, n] = Ex(), r = (0, F.useContext)(mm);
+ return (0, I.jsx)(Oie, {
...e,
layoutGroup: r,
- switchLayoutGroup: (0, F.useContext)(Vx),
+ switchLayoutGroup: (0, F.useContext)(Ux),
isPresent: t,
safeToRemove: n
});
}
// node_modules/framer-motion/dist/es/motion/features/drag.mjs
-var jie = {
- pan: { Feature: kie },
+var kie = {
+ pan: { Feature: Die },
drag: {
- Feature: Oie,
- ProjectionNode: fb,
- MeasureLayout: qx
+ Feature: Eie,
+ ProjectionNode: mb,
+ MeasureLayout: Yx
}
};
// node_modules/framer-motion/dist/es/gestures/hover.mjs
-function Jx(e, t, n, r) {
+function Xx(e, t, n, r) {
let { props: i } = e, a = "while" + n;
e.animationState && i[a] && e.animationState.setActive(a, r === "Start");
let o = i["on" + n + r];
- o && pg.postRender(() => o(t, jb(t)));
+ o && pg.postRender(() => o(t, Nb(t)));
}
-var Mie = class extends px {
+var Aie = class extends hx {
mount() {
let { current: e } = this.node;
- e && (this.unmount = Rre(e, (e, t) => (Jx(this.node, t, "Hover", "Start"), (e) => Jx(this.node, e, "Hover", "End"))));
+ e && (this.unmount = Ire(e, (e, t) => (Xx(this.node, t, "Hover", "Start"), (e) => Xx(this.node, e, "Hover", "End"))));
}
unmount() {}
-}, Nie = class extends px {
+}, jie = class extends hx {
constructor() {
super(...arguments), this.isActive = !1;
}
@@ -21403,51 +21403,51 @@ var Mie = class extends px {
this.isActive && this.node.animationState && (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = Dm(ub(this.node.current, "focus", () => this.onFocus()), ub(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = Dm(fb(this.node.current, "focus", () => this.onFocus()), fb(this.node.current, "blur", () => this.onBlur()));
}
unmount() {}
};
// node_modules/framer-motion/dist/es/gestures/press.mjs
-function Yx(e, t, n) {
- e.current instanceof HTMLButtonElement && e.current.disabled || Jx(e, t, "Tap", n);
+function Zx(e, t, n) {
+ e.current instanceof HTMLButtonElement && e.current.disabled || Xx(e, t, "Tap", n);
}
-var Pie = class extends px {
+var Mie = class extends hx {
mount() {
let { current: e } = this.node;
if (!e) return;
let { globalTapTarget: t, propagate: n } = this.node.props;
- this.unmount = Bre(e, (e, t) => (Yx(this.node, t, "Start"), (e, { success: t }) => Yx(this.node, e, t ? "" : "Cancel")), {
+ this.unmount = Rre(e, (e, t) => (Zx(this.node, t, "Start"), (e, { success: t }) => Zx(this.node, e, t ? "" : "Cancel")), {
useGlobalTarget: t,
stopPropagation: n?.tap === !1
});
}
unmount() {}
-}, Xx = /* @__PURE__ */ new WeakMap(), Zx = /* @__PURE__ */ new WeakMap(), Fie = (e) => {
- let t = Xx.get(e.target);
+}, Qx = /* @__PURE__ */ new WeakMap(), $x = /* @__PURE__ */ new WeakMap(), Nie = (e) => {
+ let t = Qx.get(e.target);
t && t(e);
-}, Iie = (e) => {
- e.forEach(Fie);
+}, Pie = (e) => {
+ e.forEach(Nie);
};
-function Lie({ root: e, ...t }) {
+function Fie({ root: e, ...t }) {
let n = e || document;
- Zx.has(n) || Zx.set(n, {});
- let r = Zx.get(n), i = JSON.stringify(t);
- return r[i] || (r[i] = new IntersectionObserver(Iie, {
+ $x.has(n) || $x.set(n, {});
+ let r = $x.get(n), i = JSON.stringify(t);
+ return r[i] || (r[i] = new IntersectionObserver(Pie, {
root: e,
...t
})), r[i];
}
-function Rie(e, t, n) {
- let r = Lie(t);
- return Xx.set(e, n), r.observe(e), () => {
- Xx.delete(e), r.unobserve(e);
+function Iie(e, t, n) {
+ let r = Fie(t);
+ return Qx.set(e, n), r.observe(e), () => {
+ Qx.delete(e), r.unobserve(e);
};
}
// node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
-var zie = {
+var Lie = {
some: 0,
all: 1
-}, Bie = class extends px {
+}, Rie = class extends hx {
constructor() {
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
}
@@ -21456,7 +21456,7 @@ var zie = {
let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
root: t ? t.current : void 0,
rootMargin: n,
- threshold: typeof r == "number" ? r : zie[r]
+ threshold: typeof r == "number" ? r : Lie[r]
}, o = (e) => {
let { isIntersecting: t } = e;
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
@@ -21464,7 +21464,7 @@ var zie = {
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
a && a(e);
};
- this.stopObserver = Rie(this.node.current, a, o);
+ this.stopObserver = Iie(this.node.current, a, o);
}
mount() {
this.startObserver();
@@ -21476,61 +21476,61 @@ var zie = {
"amount",
"margin",
"root"
- ].some(Vie(e, t)) && this.startObserver();
+ ].some(zie(e, t)) && this.startObserver();
}
unmount() {
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
}
};
-function Vie({ viewport: e = {} }, { viewport: t = {} } = {}) {
+function zie({ viewport: e = {} }, { viewport: t = {} } = {}) {
return (n) => e[n] !== t[n];
}
// node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs
-var Hie = /*@__PURE__*/ Cie(/* @__PURE__ */ Object.assign({}, Die, {
- inView: { Feature: Bie },
- tap: { Feature: Pie },
- focus: { Feature: Nie },
- hover: { Feature: Mie }
-}, jie, { layout: {
- ProjectionNode: fb,
- MeasureLayout: qx
-} }), wie);
+var Bie = /*@__PURE__*/ xie(/* @__PURE__ */ Object.assign({}, Tie, {
+ inView: { Feature: Rie },
+ tap: { Feature: Mie },
+ focus: { Feature: jie },
+ hover: { Feature: Aie }
+}, kie, { layout: {
+ ProjectionNode: mb,
+ MeasureLayout: Yx
+} }), Sie);
// node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-function Qx() {
- !xb.current && Sb();
- let [e] = (0, F.useState)(bb.current);
+function eS() {
+ !Cb.current && wb();
+ let [e] = (0, F.useState)(Sb.current);
return e;
}
// node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs
-function $x(e) {
+function tS(e) {
return typeof e == "object" && !Array.isArray(e);
}
// node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs
-function eS(e, t, n, r) {
- return e == null ? [] : typeof e == "string" && $x(t) ? Fv(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
+function nS(e, t, n, r) {
+ return e == null ? [] : typeof e == "string" && tS(t) ? Fv(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs
-function Uie(e, t, n) {
+function Vie(e, t, n) {
return e * (t + 1) + n * t;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs
-function tS(e, t) {
+function rS(e, t) {
if (t.has(e)) return t.get(e);
let [, n, r] = e.match(/^(.+?)([+-][\d.]+)$/) || [];
return t.has(n) ? Math.max(0, t.get(n) + parseFloat(r)) : void 0;
}
-function Wie(e, t, n, r) {
- return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : tS(t, r) ?? e;
+function Hie(e, t, n, r) {
+ return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : rS(t, r) ?? e;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/edit.mjs
-function Gie(e, t, n) {
+function Uie(e, t, n) {
for (let r = 0; r < e.length; r++) {
let i = e[r];
i.at > t && i.at < n && (ym(e, i), r--);
}
}
-function Kie(e, t, n, r, i, a) {
- Gie(e, i, a);
+function Wie(e, t, n, r, i, a) {
+ Uie(e, i, a);
for (let o = 0; o < t.length; o++) e.push({
value: t[o],
at: ng(i, a, r[o]),
@@ -21538,19 +21538,19 @@ function Kie(e, t, n, r, i, a) {
});
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs
-function qie(e, t, n = 0) {
+function Gie(e, t, n = 0) {
let r = t + 1 + t * n;
for (let t = 0; t < e.length; t++) e[t] = e[t] / r;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/sort.mjs
-function Jie(e, t) {
+function Kie(e, t) {
return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
}
// node_modules/framer-motion/dist/es/animation/sequence/create.mjs
-var Yie = "easeInOut", Xie = 20;
-function Zie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
+var qie = "easeInOut", Jie = 20;
+function Yie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let o = t.duration || .3, s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = {}, u = /* @__PURE__ */ new Map(), d = 0, f = 0, p = 0, m = (e, n) => {
- let a = n, s = (e) => typeof e == "number" ? n + e : Wie(f, e, d, u);
+ let a = n, s = (e) => typeof e == "number" ? n + e : Hie(f, e, d, u);
for (let n = 0; n < e.length; n++) {
let h = e[n];
if (typeof h == "string") {
@@ -21565,12 +21565,12 @@ function Zie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let [g, _, v = {}] = h;
v.at !== void 0 && (f = s(v.at));
let y = 0, b = (e, n, r, a = 0, s = 0) => {
- let c = Qie(e), { delay: l = 0, times: u = Lg(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n;
+ let c = Xie(e), { delay: l = 0, times: u = Lg(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n;
r.mixer ||= n.mixer;
let x = typeof l == "function" ? l(a, s) : l, S = c.length, C = M_(d) ? d : i?.[d || "keyframes"];
if (S <= 2 && C) {
let e = 100;
- if (S === 2 && tae(c)) {
+ if (S === 2 && $ie(c)) {
let t = c[1] - c[0];
e = Math.abs(t);
}
@@ -21586,9 +21586,9 @@ function Zie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
let w = f + x;
u.length === 1 && u[0] === 0 && (u[1] = 1);
let T = u.length - c.length;
- if (T > 0 && Ig(u, T), c.length === 1 && c.unshift(null), m && m < Xie) {
+ if (T > 0 && Ig(u, T), c.length === 1 && c.unshift(null), m && m < Jie) {
let e = b > 0 ? g / b : 0;
- b = Uie(b, m, g);
+ b = Vie(b, m, g);
let t = [...c], n = [...u];
v = Array.isArray(v) ? [...v] : [v];
let r = [...v], i = h === "reverse" || h === "mirror", a = t, o = r;
@@ -21598,20 +21598,20 @@ function Zie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
e > 0 && (c.push(c[c.length - 1]), u.push(p), v.push("linear")), c.push(...d);
for (let e = 0; e < d.length; e++) u.push(n[e] + p), v.push(e === 0 ? "linear" : /* @__PURE__ */ Ym(f, e - 1));
}
- qie(u, m, e);
+ Gie(u, m, e);
}
let E = w + b;
- Kie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
+ Wie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
};
if (_v(g)) {
- let e = nS(g, c);
- b(_, v, rS("default", e));
+ let e = iS(g, c);
+ b(_, v, aS("default", e));
} else {
- let e = eS(g, _, r, l), t = e.length;
+ let e = nS(g, _, r, l), t = e.length;
for (let n = 0; n < t; n++) {
_ = _, v = v;
- let r = e[n], i = nS(r, c);
- for (let e in _) b(_[e], $ie(v, e), rS(e, i), n, t);
+ let r = e[n], i = iS(r, c);
+ for (let e in _) b(_[e], Zie(v, e), aS(e, i), n, t);
}
}
d = f, f += y, a = Math.max(a, f);
@@ -21621,13 +21621,13 @@ function Zie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
return m(e, 0), a && (a.duration = p, a.labels = u), c.forEach((e, r) => {
for (let i in e) {
let a = e[i];
- a.sort(Jie);
+ a.sort(Kie);
let o = [], c = [], l = [];
for (let e = 0; e < a.length; e++) {
let { at: t, value: n, easing: r } = a[e];
o.push(n), c.push(/* @__PURE__ */ Om(0, p, t)), l.push(r || "easeOut");
}
- c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift(Yie)), c[c.length - 1] !== 1 && (c.push(1), o.push(null)), s.has(r) || s.set(r, {
+ c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift(qie)), c[c.length - 1] !== 1 && (c.push(1), o.push(null)), s.has(r) || s.set(r, {
keyframes: {},
transition: {}
});
@@ -21645,43 +21645,43 @@ function Zie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
}
}), s;
}
-function nS(e, t) {
+function iS(e, t) {
return !t.has(e) && t.set(e, {}), t.get(e);
}
-function rS(e, t) {
+function aS(e, t) {
return t[e] || (t[e] = []), t[e];
}
-function Qie(e) {
+function Xie(e) {
return Array.isArray(e) ? e : [e];
}
-function $ie(e, t) {
+function Zie(e, t) {
return e && e[t] ? {
...e,
...e[t]
} : { ...e };
}
-var eae = (e) => typeof e == "number", tae = (e) => e.every(eae);
+var Qie = (e) => typeof e == "number", $ie = (e) => e.every(Qie);
// node_modules/framer-motion/dist/es/animation/animate/subject.mjs
-function nae(e, t) {
- return _v(e) || typeof e == "number" || typeof e == "string" && !$x(t);
+function eae(e, t) {
+ return _v(e) || typeof e == "number" || typeof e == "string" && !tS(t);
}
-function iS(e, t, n, r) {
+function oS(e, t, n, r) {
let i = [];
- if (nae(e, t)) i.push(py(e, $x(t) && t.default || t, n && (n.default || n)));
+ if (eae(e, t)) i.push(my(e, tS(t) && t.default || t, n && (n.default || n)));
else {
if (e == null) return i;
- let a = eS(e, t, r), o = a.length;
+ let a = nS(e, t, r), o = a.length;
for (let e = 0; e < o; e++) {
let r = a[e], s = { ...n };
- "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...fne(r, t, s, pb.get(r))) : i.push(...kv(Kte(r) ?? pne, r, t, s));
+ "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...dne(r, t, s, hb.get(r))) : i.push(...kv(Kte(r) ?? fne, r, t, s));
}
}
return i;
}
// node_modules/framer-motion/dist/es/animation/animate/sequence.mjs
-function rae(e, t, n, r) {
+function tae(e, t, n, r) {
let i = [];
- return Zie(e.map((e) => {
+ return Yie(e.map((e) => {
if (Array.isArray(e) && typeof e[0] == "function") {
let t = e[0], n = cv(0);
return n.on("change", t), e.length === 1 ? [n, [0, 1]] : e.length === 2 ? [
@@ -21696,26 +21696,26 @@ function rae(e, t, n, r) {
}
return e;
}), t, n, { spring: Ng }, r).forEach(({ keyframes: e, transition: t }, n) => {
- i.push(...iS(n, e, t));
+ i.push(...oS(n, e, t));
}), i;
}
// node_modules/framer-motion/dist/es/animation/timeline/index.mjs
-var aS = 0;
-function iae(e, t) {
+var sS = 0;
+function nae(e, t) {
let n = [...e], r = typeof n[0] == "function" ? Math.max(1, n.length - 1) : 2;
return n[r] = {
...n[r],
at: t
}, n;
}
-var oS = (e, t) => t === void 0 ? e : {
+var cS = (e, t) => t === void 0 ? e : {
name: e,
at: t
};
-function sS(e) {
+function lS(e) {
e.pause(), e.time = 0, e.stop();
}
-var cS = class e {
+var uS = class e {
constructor(e = [], t = {}, n) {
this.options = t, this.entries = [], this.repeatIndex = 0, this.prevTime = 0, this.markers = [], this.labels = /* @__PURE__ */ new Map(), this.totalDuration = 0, this.isDirty = !1, this.isDone = !1, this.isRebuilding = !1, this.playbackSpeed = 1, this.motionScope = Mv.current, this.isKilled = !1, this.isWrapped = !1, this.stop = () => {
this.flush(), this.group?.stop();
@@ -21734,7 +21734,7 @@ var cS = class e {
item: e,
at: t,
marker: {
- name: "_m" + aS++,
+ name: "_m" + sS++,
time: 0,
callback: e
}
@@ -21745,7 +21745,7 @@ var cS = class e {
item: t || {},
at: e,
marker: {
- name: "_m" + aS++,
+ name: "_m" + sS++,
time: 0,
callback: t,
pause: !0
@@ -21839,19 +21839,19 @@ var cS = class e {
this.isDirty && !this.parent && !this.isKilled && this.build();
}
adopt(e) {
- this.group &&= (sS(this.group), void 0), this.isDirty = !1, this.parent = e;
+ this.group &&= (lS(this.group), void 0), this.isDirty = !1, this.parent = e;
}
build() {
this.isDirty = !1, this.isWrapped = !1;
let e = this.group, t = 0;
- e && (this.isRebuilding = !0, this.scrollTimeline ? (this.detachScroll?.(), e.cancel()) : (t = e.animations.length ? e.time : 0, sS(e)), this.isRebuilding = !1);
+ e && (this.isRebuilding = !0, this.scrollTimeline ? (this.detachScroll?.(), e.cancel()) : (t = e.animations.length ? e.time : 0, lS(e)), this.isRebuilding = !1);
let { defaultTransition: n, onComplete: r, onUpdate: i, onRepeat: a, onReverseComplete: o, autoplay: s, scope: c, ...l } = this.options, u = {};
c?.reduceMotion !== void 0 && (u.reduceMotion = c.reduceMotion), c?.skipAnimations !== void 0 && (u.skipAnimations = c.skipAnimations), Object.assign(u, l);
let d = /* @__PURE__ */ new Map(), f = {}, p = Mv.current;
Mv.current = this.motionScope;
let m;
try {
- m = rae(this.toSequence(d), {
+ m = tae(this.toSequence(d), {
defaultTransition: n,
...u
}, c, f);
@@ -21863,7 +21863,7 @@ var cS = class e {
e.time = h.get(t), h.delete(t), g = Math.max(g, e.time), this.markers.push(e);
}), this.markers.sort((e, t) => e.time - t.time), this.labels = h, this.totalDuration = g, this.clock = this.clockAnimation = void 0, this.markers.length || this.stopAt !== void 0 || i || a) {
let e = this.clock = cv(0);
- e.on("change", (t) => e === this.clock && this.onClock(t)), m.unshift(this.clockAnimation = py(e, [0, g], {
+ e.on("change", (t) => e === this.clock && this.onClock(t)), m.unshift(this.clockAnimation = my(e, [0, g], {
...u,
duration: g,
ease: "linear"
@@ -21873,16 +21873,16 @@ var cS = class e {
t = Math.min(t, g), this.isDone && t < g && this.newFinished(), this.scrollTimeline ? this.detachScroll = v.attachTimeline(this.scrollTimeline) : (v.speed = this.playbackSpeed, this.isPaused && v.pause(), t && (v.time = t)), this.repeatIndex = this.currentRepeat(), this.prevTime = t || -1, this.watch();
}
toSequence(t) {
- return this.entries.map(({ item: n, at: r, marker: i }) => i ? (t.set(i.name, i), oS(i.name, r)) : n instanceof e ? {
+ return this.entries.map(({ item: n, at: r, marker: i }) => i ? (t.set(i.name, i), cS(i.name, r)) : n instanceof e ? {
sequence: n.toSequence(t),
at: r
- } : typeof n == "string" ? oS(n, r) : r === void 0 ? n : Array.isArray(n) ? iae(n, r) : {
+ } : typeof n == "string" ? cS(n, r) : r === void 0 ? n : Array.isArray(n) ? nae(n, r) : {
...n,
at: r
});
}
resolve(e) {
- return this.flush(), typeof e == "number" ? e : tS(e, this.labels) ?? this.time;
+ return this.flush(), typeof e == "number" ? e : rS(e, this.labels) ?? this.time;
}
currentRepeat() {
let { repeat: e = 0, repeatDelay: t = 0, delay: n = 0 } = this.options, r = this.totalDuration + t, i = (this.clockAnimation?.time ?? 0) - n;
@@ -21930,16 +21930,16 @@ var cS = class e {
}
};
// node_modules/framer-motion/dist/es/animation/animate/index.mjs
-function aae(e) {
+function rae(e) {
return Array.isArray(e) && e.some(Array.isArray);
}
-function oae(e = {}) {
+function iae(e = {}) {
let { scope: t, reduceMotion: n, skipAnimations: r } = e;
function i(e, i, a) {
let o = Mv.current?.transition, s = {};
n !== void 0 && (s.reduceMotion = n), r !== void 0 && (s.skipAnimations = r);
let c;
- if (aae(e)) {
+ if (rae(e)) {
let n = {
...s,
...i,
@@ -21948,14 +21948,14 @@ function oae(e = {}) {
o && (n.defaultTransition = {
...o,
...n.defaultTransition
- }), c = new cS(e, n);
+ }), c = new uS(e, n);
} else {
let { onComplete: n, ...r } = a || {}, l = {
...s,
...o,
...r
}, { onUpdate: u } = r;
- c = new cS([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [
+ c = new uS([typeof e == "number" || typeof e == "string" && (typeof i == "string" || Array.isArray(i)) ? [
u || (() => {}),
Array.isArray(i) ? i : [e, i],
{
@@ -21970,18 +21970,18 @@ function oae(e = {}) {
...s,
onComplete: n,
scope: t
- }, iS(e, i, l, t));
+ }, oS(e, i, l, t));
}
return c;
}
return i;
}
-var lS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ oae(), {
+var dS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ iae(), {
addEffect: Gte,
removeEffect: Dv
});
// node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
-function sae(e, t, n, r) {
+function aae(e, t, n, r) {
if (e == null) return [];
let i = Fv(e, r), a = i.length, o = [];
for (let e = 0; e < a; e++) {
@@ -22008,7 +22008,7 @@ function sae(e, t, n, r) {
}
for (let e = 0; e < o.length; e++) {
let { unresolvedKeyframes: t, options: n } = o[e], { element: r, name: i, pseudoElement: a } = n;
- !a && t[0] === null && (t[0] = fx(r, i)), t_(t), Wte(t, i), !a && t.length < 2 && t.unshift(fx(r, i)), n.keyframes = t;
+ !a && t[0] === null && (t[0] = mx(r, i)), t_(t), Wte(t, i), !a && t.length < 2 && t.unshift(mx(r, i)), n.keyframes = t;
}
let s = [];
for (let e = 0; e < o.length; e++) {
@@ -22017,12 +22017,12 @@ function sae(e, t, n, r) {
}
return s;
}
-var cae = /*@__PURE__*/ ((e) => {
+var oae = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new nv(sae(t, n, r, e));
+ return new nv(aae(t, n, r, e));
}
return t;
-})(), uS = Hie, dS = class {
+})(), fS = Bie, pS = class {
constructor(e) {
this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = this.constructor.type, this.key = e;
}
@@ -22037,22 +22037,22 @@ var cae = /*@__PURE__*/ ((e) => {
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, fS = class extends dS {
+}, mS = class extends pS {
filter(e, t, n) {
- let [r, i] = gS(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = vS(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends dS {
+(class extends pS {
static {
this.type = "header";
}
});
-var pS = class extends dS {
+var hS = class extends pS {
static {
this.type = "loader";
}
-}, mS = class extends fS {
+}, gS = class extends mS {
static {
this.type = "item";
}
@@ -22063,7 +22063,7 @@ var pS = class extends dS {
}
return null;
}
-}, lae = class extends fS {
+}, sae = class extends mS {
static {
this.type = "section";
}
@@ -22075,7 +22075,7 @@ var pS = class extends dS {
}
return null;
}
-}, hS = class {
+}, _S = class {
get size() {
return this.itemCount;
}
@@ -22150,14 +22150,14 @@ var pS = class extends dS {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = gS(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = vS(this, t, this.firstKey, e);
return t?.commit(n, r), t;
}
constructor() {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;
}
};
-function gS(e, t, n, r) {
+function vS(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -22171,7 +22171,7 @@ function gS(e, t, n, r) {
return [i?.key ?? null, a?.key ?? null];
}
// node_modules/react-aria/dist/private/collections/Document.mjs
-var _S = class {
+var yS = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -22252,7 +22252,7 @@ var _S = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, vS = class e extends _S {
+}, bS = class e extends yS {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -22303,7 +22303,7 @@ var _S = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, uae = class extends _S {
+}, cae = class extends yS {
constructor(e) {
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.keyOwners = /* @__PURE__ */ new Map(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
}
@@ -22311,7 +22311,7 @@ var _S = class {
return !0;
}
createElement(e) {
- return new vS(e, this);
+ return new bS(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -22333,8 +22333,8 @@ var _S = class {
return this.inSubscription || (this.queuedRender = !1, this.updateCollection()), this.collection;
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof vS && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof vS ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
+ for (let e of this.dirtyNodes) e instanceof bS && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof bS ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
this.nextCollection && (this.nextCollection.commit(this.firstVisibleChild?.node?.key ?? null, this.lastVisibleChild?.node?.key ?? null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null));
}
queueUpdate() {
@@ -22352,13 +22352,13 @@ var _S = class {
}
};
// node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function yS(e) {
+function xS(e) {
let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, F.useMemo)(() => void 0, [t]), s = (0, F.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
return (0, F.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = dae(a) ? a : null, o = n ? s.get(n) : null;
+ let n = lae(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
@@ -22383,7 +22383,7 @@ function yS(e) {
i
]);
}
-function dae(e) {
+function lae(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -22392,24 +22392,24 @@ function dae(e) {
}
}
// node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function bS(e) {
+function SS(e) {
e.focus({ preventScroll: !0 });
}
// node_modules/react-aria/dist/private/utils/domHelpers.mjs
-var xS = (e) => fae(e) ? e.document : pae(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), SS = (e) => xS(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function CS(e) {
+var CS = (e) => uae(e) ? e.document : dae(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), wS = (e) => CS(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function TS(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function fae(e) {
+function uae(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function pae(e) {
- return CS(e) && e.nodeType === 9;
+function dae(e) {
+ return TS(e) && e.nodeType === 9;
}
-function wS(e) {
- return CS(e) && e.nodeType === 11 && "host" in e;
+function ES(e) {
+ return TS(e) && e.nodeType === 11 && "host" in e;
}
-function TS(e, t, n, r) {
+function DS(e, t, n, r) {
if (n == null || e == null) return () => {};
let i = Array.isArray(e) ? e : [e];
for (let e of i) e.addEventListener(t, n, r);
@@ -22417,7 +22417,7 @@ function TS(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function ES(e, t, n, r) {
+function OS(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -22431,70 +22431,70 @@ function ES(e, t, n, r) {
};
}
// node_modules/react-stately/dist/private/flags/flags.mjs
-var mae = !1;
-function DS() {
- return mae;
+var fae = !1;
+function kS() {
+ return fae;
}
// node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function OS(e, t) {
- if (!DS()) return t && e ? e.contains(t) : !1;
+function AS(e, t) {
+ if (!kS()) return t && e ? e.contains(t) : !1;
if (!e || !t) return !1;
let n = t;
for (; n != null;) {
if (n === e) return !0;
- n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : wS(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : ES(n) ? n.host : n.parentNode;
}
return !1;
}
-var kS = (e = document) => {
- if (!DS()) return e.activeElement;
+var jS = (e = document) => {
+ if (!kS()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
function G(e) {
- if (DS() && e.target instanceof Element && e.target.shadowRoot) {
+ if (kS() && e.target instanceof Element && e.target.shadowRoot) {
if ("composedPath" in e) return e.composedPath()[0] ?? null;
if ("composedPath" in e.nativeEvent) return e.nativeEvent.composedPath()[0] ?? null;
}
return e.target;
}
-function AS(e, t) {
+function MS(e, t) {
if (t === null) return [];
- t ??= SS(e);
+ t ??= wS(e);
let n = [t];
- if (!DS() || !e || e === t) return n;
+ if (!kS() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; wS(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; ES(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function jS(e) {
+function NS(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = SS(e);
+ let t = e.getRootNode(), n = wS(e);
if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;
let r = t.activeElement;
return r != null && e.contains(r);
}
// node_modules/react-aria/dist/private/utils/isElementVisible.mjs
-var hae = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function gae(e) {
- let t = SS(e);
+var pae = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function mae(e) {
+ let t = wS(e);
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";
if (i) {
- let { getComputedStyle: t } = SS(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = wS(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function _ae(e, t) {
+function hae(e, t) {
return !e.hasAttribute("hidden") && !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
}
-function MS(e, t) {
- return hae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && gae(e) && _ae(e, t) && (!e.parentElement || MS(e.parentElement, e));
+function PS(e, t) {
+ return pae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && mae(e) && hae(e, t) && (!e.parentElement || PS(e.parentElement, e));
}
// node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var NS = [
+var FS = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -22509,39 +22509,39 @@ var NS = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], vae = NS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-NS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var yae = NS.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function PS(e, t) {
- return e.matches(vae) && !IS(e) && (t?.skipVisibilityCheck || MS(e));
+], gae = FS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+FS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var _ae = FS.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function IS(e, t) {
+ return e.matches(gae) && !RS(e) && (t?.skipVisibilityCheck || PS(e));
}
-function FS(e) {
- return e.matches(yae) && MS(e) && !IS(e);
+function LS(e) {
+ return e.matches(_ae) && PS(e) && !RS(e);
}
-function IS(e) {
+function RS(e) {
let t = e;
for (; t != null;) {
- if (t instanceof SS(t).HTMLElement && t.inert) return !0;
+ if (t instanceof wS(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
// node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var LS = typeof document < "u" ? F.useLayoutEffect : () => {};
+var zS = typeof document < "u" ? F.useLayoutEffect : () => {};
// node_modules/react-aria/dist/private/interactions/utils.mjs
-function RS(e) {
+function BS(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function zS(e, t) {
+function VS(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function BS(e) {
+function HS(e) {
let t = (0, F.useRef)({
isFocused: !1,
observer: null
});
- return LS(() => {
+ return zS(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
@@ -22553,14 +22553,14 @@ function BS(e) {
let n = r;
n.addEventListener("focusout", (r) => {
if (t.current.isFocused = !1, n.disabled) {
- let t = RS(r);
+ let t = BS(r);
e?.(t);
}
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
}, { once: !0 }), t.current.observer = new MutationObserver(() => {
if (t.current.isFocused && n.disabled) {
t.current.observer?.disconnect();
- let e = n === kS() ? null : kS();
+ let e = n === jS() ? null : jS();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -22573,80 +22573,80 @@ function BS(e) {
}
}, [e]);
}
-var VS = !1;
-function bae(e) {
- for (; e && !PS(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = kS(SS(e).document);
+var US = !1;
+function vae(e) {
+ for (; e && !IS(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = jS(wS(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && wS(n) ? n : SS(e), i = (t) => t === e || CS(t) && OS(e, t), a = (e) => e === t || t != null && CS(e) && OS(t, e);
- VS = !0;
+ let n = e?.getRootNode(), r = n != null && ES(n) ? n : wS(e), i = (t) => t === e || TS(t) && AS(e, t), a = (e) => e === t || t != null && TS(e) && AS(t, e);
+ US = !0;
let o = !1, s = (e) => {
(a(G(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, bS(t), d()));
+ (a(G(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, SS(t), d()));
}, l = (e) => {
(i(G(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, bS(t), d()));
+ (i(G(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, SS(t), d()));
};
r.addEventListener("blur", s, !0), r.addEventListener("focusout", c, !0), r.addEventListener("focusin", u, !0), r.addEventListener("focus", l, !0);
let d = () => {
- cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), VS = !1, o = !1;
+ cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), US = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
// node_modules/react-aria/dist/private/utils/platform.mjs
-function HS(e) {
+function WS(e) {
if (typeof window > "u" || window.navigator == null) return !1;
let t = window.navigator.userAgentData?.brands;
return Array.isArray(t) && t.some((t) => e.test(t.brand)) || e.test(window.navigator.userAgent);
}
-function US(e) {
+function GS(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function WS(e) {
+function KS(e) {
let t = null;
return () => (t ??= e(), t);
}
-var GS = WS(function() {
- return US(/^Mac/i);
-}), xae = WS(function() {
- return US(/^iPhone/i);
-}), KS = WS(function() {
- return US(/^iPad/i) || GS() && navigator.maxTouchPoints > 1;
-}), qS = WS(function() {
- return xae() || KS();
-}), Sae = WS(function() {
- return GS() || qS();
-}), JS = WS(function() {
- return HS(/AppleWebKit/i) && (qS() || !YS());
-}), YS = WS(function() {
- return HS(/Chrome|CriOS|CrMo/i);
-}), XS = WS(function() {
- return HS(/Android/i);
+var qS = KS(function() {
+ return GS(/^Mac/i);
+}), yae = KS(function() {
+ return GS(/^iPhone/i);
+}), JS = KS(function() {
+ return GS(/^iPad/i) || qS() && navigator.maxTouchPoints > 1;
+}), YS = KS(function() {
+ return yae() || JS();
+}), bae = KS(function() {
+ return qS() || YS();
+}), XS = KS(function() {
+ return WS(/AppleWebKit/i) && (YS() || !ZS());
+}), ZS = KS(function() {
+ return WS(/Chrome|CriOS|CrMo/i);
+}), QS = KS(function() {
+ return WS(/Android/i);
});
// node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function ZS(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : XS() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+function $S(e) {
+ return e.pointerType === "" && e.isTrusted ? !0 : QS() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function Cae(e) {
- return !XS() && e.width === 0 && e.height === 0 || XS() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function xae(e) {
+ return !QS() && e.width === 0 && e.height === 0 || QS() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
}
// node_modules/react-aria/dist/private/utils/openLink.mjs
-var wae = /*#__PURE__*/ (0, F.createContext)({
+var Sae = /*#__PURE__*/ (0, F.createContext)({
isNative: !0,
- open: Dae,
+ open: Tae,
useHref: (e) => e
});
-function QS() {
- return (0, F.useContext)(wae);
+function eC() {
+ return (0, F.useContext)(Sae);
}
-function Tae(e, t) {
+function Cae(e, t) {
let n = e.getAttribute("target");
return (!n || n === "_self") && e.origin === location.origin && !e.hasAttribute("download") && !t.metaKey && !t.ctrlKey && !t.altKey && !t.shiftKey;
}
-function $S(e, t, n = !0) {
- let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = JS() && GS() && !KS() ? new KeyboardEvent("keydown", {
+function tC(e, t, n = !0) {
+ let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = XS() && qS() && !JS() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -22661,21 +22661,21 @@ function $S(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- $S.isOpening = n, bS(e), e.dispatchEvent(s), $S.isOpening = !1;
+ tC.isOpening = n, SS(e), e.dispatchEvent(s), tC.isOpening = !1;
}
-$S.isOpening = !1;
-function Eae(e, t) {
+tC.isOpening = !1;
+function wae(e, t) {
if (e instanceof HTMLAnchorElement) t(e);
else if (e.hasAttribute("data-href")) {
let n = document.createElement("a");
n.href = e.getAttribute("data-href"), e.hasAttribute("data-target") && (n.target = e.getAttribute("data-target")), e.hasAttribute("data-rel") && (n.rel = e.getAttribute("data-rel")), e.hasAttribute("data-download") && (n.download = e.getAttribute("data-download")), e.hasAttribute("data-ping") && (n.ping = e.getAttribute("data-ping")), e.hasAttribute("data-referrer-policy") && (n.referrerPolicy = e.getAttribute("data-referrer-policy")), e.appendChild(n), t(n), e.removeChild(n);
}
}
-function Dae(e, t) {
- Eae(e, (e) => $S(e, t));
+function Tae(e, t) {
+ wae(e, (e) => tC(e, t));
}
-function eC(e) {
- let t = QS().useHref(e.href ?? "");
+function nC(e) {
+ let t = eC().useHref(e.href ?? "");
return {
"data-href": e.href ? t : void 0,
"data-target": e.target,
@@ -22685,8 +22685,8 @@ function eC(e) {
"data-referrer-policy": e.referrerPolicy
};
}
-function tC(e) {
- let t = QS().useHref(e?.href ?? ""), n = {};
+function rC(e) {
+ let t = eC().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -22697,138 +22697,138 @@ function tC(e) {
]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);
return n;
}
-function Oae(e, t, n, r) {
- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Tae(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
+function Eae(e, t, n, r) {
+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Cae(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
}
// node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var nC = {
+var iC = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, rC = /*#__PURE__*/ F.createContext(nC), kae = /*#__PURE__*/ F.createContext(!1);
+}, aC = /*#__PURE__*/ F.createContext(iC), Dae = /*#__PURE__*/ F.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var iC = /* @__PURE__ */ new WeakMap();
-function Aae(e = !1) {
- let t = (0, F.useContext)(rC), n = (0, F.useRef)(null);
+var oC = /* @__PURE__ */ new WeakMap();
+function Oae(e = !1) {
+ let t = (0, F.useContext)(aC), n = (0, F.useRef)(null);
if (n.current === null && !e) {
let e = F.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = iC.get(e);
- n == null ? iC.set(e, {
+ let n = oC.get(e);
+ n == null ? oC.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, iC.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, oC.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function jae(e) {
- let t = (0, F.useContext)(rC), n = Aae(!!e), r = `react-aria${t.prefix}`;
+function kae(e) {
+ let t = (0, F.useContext)(aC), n = Oae(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function Mae(e) {
- let t = F.useId(), [n] = (0, F.useState)(oC()), r = n ? "react-aria" : `react-aria${nC.prefix}`;
+function Aae(e) {
+ let t = F.useId(), [n] = (0, F.useState)(sC()), r = n ? "react-aria" : `react-aria${iC.prefix}`;
return e || `${r}-${t}`;
}
-var Nae = typeof F.useId == "function" ? Mae : jae;
-function Pae() {
+var jae = typeof F.useId == "function" ? Aae : kae;
+function Mae() {
return !1;
}
-function Fae() {
+function Nae() {
return !0;
}
-function aC(e) {
+function Pae(e) {
return () => {};
}
-function oC() {
- return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(aC, Pae, Fae) : (0, F.useContext)(kae);
+function sC() {
+ return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(Pae, Mae, Nae) : (0, F.useContext)(Dae);
}
// node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var sC = null, cC = /* @__PURE__ */ new Set(), lC = /* @__PURE__ */ new Map(), uC = !1, dC = !1, Iae = {
+var cC = null, lC = /* @__PURE__ */ new Set(), uC = /* @__PURE__ */ new Map(), dC = !1, fC = !1, Fae = {
Tab: !0,
Escape: !0
};
-function fC(e, t) {
- for (let n of cC) n(e, t);
+function pC(e, t) {
+ for (let n of lC) n(e, t);
}
-function Lae(e) {
- return !(e.metaKey || !GS() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
-}
-function pC(e) {
- uC = !0, !$S.isOpening && Lae(e) && (sC = "keyboard", fC("keyboard", e));
+function Iae(e) {
+ return !(e.metaKey || !qS() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
function mC(e) {
- sC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (uC = !0, fC("pointer", e));
+ dC = !0, !tC.isOpening && Iae(e) && (cC = "keyboard", pC("keyboard", e));
}
function hC(e) {
- !$S.isOpening && ZS(e) && (uC = !0, sC = "virtual");
+ cC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (dC = !0, pC("pointer", e));
}
function gC(e) {
- if (VS) return;
- let t = G(e), n = SS(t), r = xS(t);
- t === n ? dC = !0 : t !== r && e.isTrusted && (!uC && !dC && (sC = "virtual", fC("virtual", e)), uC = !1, dC = !1);
+ !tC.isOpening && $S(e) && (dC = !0, cC = "virtual");
+}
+function _C(e) {
+ if (US) return;
+ let t = G(e), n = wS(t), r = CS(t);
+ t === n ? fC = !0 : t !== r && e.isTrusted && (!dC && !fC && (cC = "virtual", pC("virtual", e)), dC = !1, fC = !1);
}
-function _C() {
- VS || (uC = !1, dC = !0);
+function vC() {
+ US || (dC = !1, fC = !0);
}
-function vC(e) {
- let t = kS(xS(G(e)));
+function yC(e) {
+ let t = jS(CS(G(e)));
queueMicrotask(() => {
- kS(xS(G(e))) !== t && CC("keyboard");
+ jS(CS(G(e))) !== t && wC("keyboard");
});
}
-function yC(e) {
+function bC(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = SS(e), n = xS(e);
- if (lC.get(t)) return;
+ let t = wS(e), n = CS(e);
+ if (uC.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- uC = !0, r.apply(this, arguments);
+ dC = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", pC, !0), n.addEventListener("keyup", pC, !0), n.addEventListener("click", hC, !0), n.addEventListener("invalid", vC, !0), t.addEventListener("focus", gC, !0), t.addEventListener("blur", _C, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", mC, !0), n.addEventListener("pointermove", mC, !0), n.addEventListener("pointerup", mC, !0)), t.addEventListener("beforeunload", () => {
- bC(e);
- }, { once: !0 }), lC.set(t, { focus: r });
+ }), n.addEventListener("keydown", mC, !0), n.addEventListener("keyup", mC, !0), n.addEventListener("click", gC, !0), n.addEventListener("invalid", yC, !0), t.addEventListener("focus", _C, !0), t.addEventListener("blur", vC, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", hC, !0), n.addEventListener("pointermove", hC, !0), n.addEventListener("pointerup", hC, !0)), t.addEventListener("beforeunload", () => {
+ xC(e);
+ }, { once: !0 }), uC.set(t, { focus: r });
}
-var bC = (e, t) => {
- let n = SS(e), r = xS(e);
- t && r.removeEventListener("DOMContentLoaded", t), lC.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var xC = (e, t) => {
+ let n = wS(e), r = CS(e);
+ t && r.removeEventListener("DOMContentLoaded", t), uC.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: lC.get(n).focus
- }), r.removeEventListener("keydown", pC, !0), r.removeEventListener("keyup", pC, !0), r.removeEventListener("click", hC, !0), r.removeEventListener("invalid", vC, !0), n.removeEventListener("focus", gC, !0), n.removeEventListener("blur", _C, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", mC, !0), r.removeEventListener("pointermove", mC, !0), r.removeEventListener("pointerup", mC, !0)), lC.delete(n));
+ value: uC.get(n).focus
+ }), r.removeEventListener("keydown", mC, !0), r.removeEventListener("keyup", mC, !0), r.removeEventListener("click", gC, !0), r.removeEventListener("invalid", yC, !0), n.removeEventListener("focus", _C, !0), n.removeEventListener("blur", vC, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", hC, !0), r.removeEventListener("pointermove", hC, !0), r.removeEventListener("pointerup", hC, !0)), uC.delete(n));
};
-function Rae(e) {
- let t = xS(e), n;
+function Lae(e) {
+ let t = CS(e), n;
return t.readyState === "loading" ? (n = () => {
- yC(e);
- }, t.addEventListener("DOMContentLoaded", n)) : yC(e), () => bC(e, n);
-}
-typeof document < "u" && Rae();
-function xC() {
- return sC !== "pointer";
+ bC(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : bC(e), () => xC(e, n);
}
+typeof document < "u" && Lae();
function SC() {
- return sC;
+ return cC !== "pointer";
}
-function CC(e) {
- sC = e, fC(e, null);
+function CC() {
+ return cC;
}
-function wC() {
- yC();
- let [e, t] = (0, F.useState)(sC);
+function wC(e) {
+ cC = e, pC(e, null);
+}
+function TC() {
+ bC();
+ let [e, t] = (0, F.useState)(cC);
return (0, F.useEffect)(() => {
let e = () => {
- t(sC);
+ t(cC);
};
- return cC.add(e), () => {
- cC.delete(e);
+ return lC.add(e), () => {
+ lC.delete(e);
};
- }, []), oC() ? null : e;
+ }, []), sC() ? null : e;
}
-var zae = /* @__PURE__ */ new Set([
+var Rae = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -22839,107 +22839,107 @@ var zae = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Bae(e, t, n) {
- let r = n ? G(n) : void 0, i = xS(r), a = SS(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = kS(i);
- return e = e || u instanceof o && !zae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Iae[n.key]);
+function zae(e, t, n) {
+ let r = n ? G(n) : void 0, i = CS(r), a = wS(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = jS(i);
+ return e = e || u instanceof o && !Rae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Fae[n.key]);
}
-function TC(e = {}) {
- let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || xC());
- return EC((e) => {
+function EC(e = {}) {
+ let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || SC());
+ return DC((e) => {
i(e);
}, [t], { isTextInput: t }), { isFocusVisible: r };
}
-function EC(e, t, n) {
- yC(), (0, F.useEffect)(() => {
+function DC(e, t, n) {
+ bC(), (0, F.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- Bae(!!n?.isTextInput, t, r) && e(xC());
+ zae(!!n?.isTextInput, t, r) && e(SC());
};
- return cC.add(t), () => {
- cC.delete(t);
+ return lC.add(t), () => {
+ lC.delete(t);
};
}, t);
}
// node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var DC = /* @__PURE__ */ new Map(), OC = /* @__PURE__ */ new Set();
-function kC(e) {
+var OC = /* @__PURE__ */ new Map(), kC = /* @__PURE__ */ new Set();
+function AC(e) {
return "propertyName" in e;
}
-function Vae(e) {
+function Bae(e) {
let t = G(e);
- if (!kC(e) || !t) return;
- let n = DC.get(t);
- n || (n = /* @__PURE__ */ new Set(), DC.set(t, n), t.addEventListener("transitioncancel", AC, { once: !0 })), n.add(e.propertyName);
+ if (!AC(e) || !t) return;
+ let n = OC.get(t);
+ n || (n = /* @__PURE__ */ new Set(), OC.set(t, n), t.addEventListener("transitioncancel", jC, { once: !0 })), n.add(e.propertyName);
}
-function AC(e) {
+function jC(e) {
let t = G(e);
- if (!kC(e) || !t) return;
- let n = DC.get(t);
- if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", AC), DC.delete(t)), DC.size === 0)) for (let e of OC) e(!0), OC.delete(e);
+ if (!AC(e) || !t) return;
+ let n = OC.get(t);
+ if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", jC), OC.delete(t)), OC.size === 0)) for (let e of kC) e(!0), kC.delete(e);
}
-function jC() {
- TS(document, "transitionrun", Vae), TS(document, "transitionend", AC);
+function MC() {
+ DS(document, "transitionrun", Bae), DS(document, "transitionend", jC);
}
-function Hae() {
- for (let [e] of DC) "isConnected" in e && !e.isConnected && DC.delete(e);
+function Vae() {
+ for (let [e] of OC) "isConnected" in e && !e.isConnected && OC.delete(e);
}
-typeof document < "u" && (document.readyState === "loading" ? TS(document, "DOMContentLoaded", jC) : jC());
-function MC(e) {
+typeof document < "u" && (document.readyState === "loading" ? DS(document, "DOMContentLoaded", MC) : MC());
+function NC(e) {
let t = window.requestAnimationFrame(() => {
- if (Hae(), DC.size === 0) return e(!1);
- OC.add(e);
+ if (Vae(), OC.size === 0) return e(!1);
+ kC.add(e);
});
return () => {
- window.cancelAnimationFrame(t), OC.delete(e);
+ window.cancelAnimationFrame(t), kC.delete(e);
};
}
// node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function NC(e) {
+function PC(e) {
if (!e.isConnected) return;
- let t = xS(e);
- if (SC() === "virtual") {
- let n = kS(t);
- MC(() => {
- let r = kS(t);
- (r === n || r === t.body) && e.isConnected && bS(e);
+ let t = CS(e);
+ if (CC() === "virtual") {
+ let n = jS(t);
+ NC(() => {
+ let r = jS(t);
+ (r === n || r === t.body) && e.isConnected && SS(e);
});
- } else bS(e);
+ } else SS(e);
}
// node_modules/react-aria/dist/private/utils/chain.mjs
-function PC(...e) {
+function FC(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
}
// node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function Uae(e) {
+function Hae(e) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(t), i = (0, F.useRef)(null), a = (0, F.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
e.done ? i.current = null : r.current === e.value ? a.current() : n(e.value);
});
- return LS(() => {
+ return zS(() => {
r.current = t, i.current && a.current();
}), [t, (0, F.useCallback)((e) => {
i.current = e(r.current), a.current();
}, [a])];
}
// node_modules/react-aria/dist/private/utils/useId.mjs
-var Wae = !!(typeof window < "u" && window.document && window.document.createElement), FC = /* @__PURE__ */ new Map(), IC;
-typeof FinalizationRegistry < "u" && (IC = new FinalizationRegistry((e) => {
- FC.delete(e);
+var Uae = !!(typeof window < "u" && window.document && window.document.createElement), IC = /* @__PURE__ */ new Map(), LC;
+typeof FinalizationRegistry < "u" && (LC = new FinalizationRegistry((e) => {
+ IC.delete(e);
}));
-var LC = /* @__PURE__ */ new WeakMap();
-function RC(e) {
- let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = Nae(t), a = (0, F.useRef)(null), o = LC.get(a);
- if (IC && o !== i && (o != null && IC.unregister(a), IC.register(a, i, a), LC.set(a, i)), Wae) {
- let e = FC.get(i);
- e && !e.includes(r) ? e.push(r) : FC.set(i, [r]);
- }
- return LS(() => {
+var RC = /* @__PURE__ */ new WeakMap();
+function zC(e) {
+ let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = jae(t), a = (0, F.useRef)(null), o = RC.get(a);
+ if (LC && o !== i && (o != null && LC.unregister(a), LC.register(a, i, a), RC.set(a, i)), Uae) {
+ let e = IC.get(i);
+ e && !e.includes(r) ? e.push(r) : IC.set(i, [r]);
+ }
+ return zS(() => {
let e = i;
return () => {
- IC && (IC.unregister(a), LC.delete(a)), FC.delete(e);
+ LC && (LC.unregister(a), RC.delete(a)), IC.delete(e);
};
}, [i]), (0, F.useEffect)(() => {
let e = r.current;
@@ -22948,57 +22948,57 @@ function RC(e) {
};
}), i;
}
-function Gae(e, t) {
+function Wae(e, t) {
if (e === t) return e;
- let n = FC.get(e);
+ let n = IC.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = FC.get(t);
+ let r = IC.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function zC(e = []) {
- let t = RC(), [n, r] = Uae(t), i = (0, F.useCallback)(() => {
+function BC(e = []) {
+ let t = zC(), [n, r] = Hae(t), i = (0, F.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return LS(i, [
+ return zS(i, [
t,
i,
...e
]), n;
}
// node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function BC(...e) {
+function VC(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = VC(e, t);
+ let r = HC(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : VC(e[n], null);
+ typeof t == "function" ? t() : HC(e[n], null);
});
};
};
}
-function VC(e, t) {
+function HC(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
// node_modules/clsx/dist/clsx.mjs
-function HC(e) {
+function UC(e) {
var t, n, r = "";
if (typeof e == "string" || typeof e == "number") r += e;
else if (typeof e == "object") {
if (Array.isArray(e)) {
var i = e.length;
- for (t = 0; t < i; t++) e[t] && (n = HC(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = UC(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function UC() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = HC(e)) && (r && (r += " "), r += t);
+function WC() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = UC(e)) && (r && (r += " "), r += t);
return r;
}
// node_modules/react-aria/dist/private/utils/mergeProps.mjs
@@ -23008,17 +23008,17 @@ function K(...e) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = PC(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = UC(n, i) : e === "id" && n && i ? t.id = Gae(n, i) : e === "ref" && n && i ? t.ref = BC(n, i) : t[e] = i === void 0 ? n : i;
+ typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = FC(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = WC(n, i) : e === "id" && n && i ? t.id = Wae(n, i) : e === "ref" && n && i ? t.ref = VC(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
// node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function WC(e) {
+function GC(e) {
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, F.useCallback)((e) => {
if (G(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = BS(a), s = (0, F.useCallback)((e) => {
- let t = G(e), r = xS(t), a = r ? kS(r) : kS();
+ }, [r, i]), o = HS(a), s = (0, F.useCallback)((e) => {
+ let t = G(e), r = CS(t), a = r ? jS(r) : jS();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -23031,7 +23031,7 @@ function WC(e) {
} };
}
// node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function GC(e) {
+function KC(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -23055,33 +23055,33 @@ function GC(e) {
};
}
// node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var Kae = /* @__PURE__ */ new Set([
+var Gae = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), qae = [
+]), Kae = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function Jae(e) {
+function qae(e) {
let t = /* @__PURE__ */ new Set();
- return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(GS() ? "Meta" : "Control"), t;
+ return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(qS() ? "Meta" : "Control"), t;
}
-function Yae(e) {
+function Jae(e) {
let t = /* @__PURE__ */ new Set();
return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
}
-function KC(e) {
- return qae.filter((t) => e.has(t));
+function qC(e) {
+ return Kae.filter((t) => e.has(t));
}
-function Xae(e) {
+function Yae(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return Kae.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
+ return Gae.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
}, {
shift: !1,
alt: !1,
@@ -23093,10 +23093,10 @@ function Xae(e) {
if (t.key === "") throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);
return t;
}
-function qC(e) {
+function JC(e) {
return e.toLowerCase();
}
-var Zae = {
+var Xae = {
space: " ",
esc: "escape",
del: "delete",
@@ -23108,26 +23108,26 @@ var Zae = {
pageup: "pageup",
pagedown: "pagedown"
};
-function Qae(e) {
- let t = qC(e);
- return Zae[t] ?? t;
+function Zae(e) {
+ let t = JC(e);
+ return Xae[t] ?? t;
}
-function $ae(e) {
- let t = KC(Jae(e)), n = Qae(e.key);
+function Qae(e) {
+ let t = qC(qae(e)), n = Zae(e.key);
return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
-function eoe(e) {
- let t = KC(Yae(e)), n = qC(e.key);
+function $ae(e) {
+ let t = qC(Jae(e)), n = JC(e.key);
return (t.length > 0 ? `${t.join("+")}+` : "") + n;
}
-function toe(e) {
+function eoe(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = Xae(n);
- t.set($ae(e), r);
+ let e = Yae(n);
+ t.set(Qae(e), r);
}
return (e) => {
- let n = eoe(e), r = t.get(n), i = r?.(e);
+ let n = $ae(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -23138,23 +23138,23 @@ function toe(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function JC(e) {
+function YC(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = toe(t), s = GC((e) => {
- OS(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
- }), c = GC((e) => {
- OS(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
+ let o = eoe(t), s = KC((e) => {
+ AS(e.currentTarget, G(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
+ }), c = KC((e) => {
+ AS(e.currentTarget, G(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
});
- i = e.onKeyDown ? PC(e.onKeyDown, s) : s, a = e.onKeyUp ? PC(e.onKeyUp, c) : c;
- } else i = GC(e.onKeyDown), a = GC(e.onKeyUp);
+ i = e.onKeyDown ? FC(e.onKeyDown, s) : s, a = e.onKeyUp ? FC(e.onKeyUp, c) : c;
+ } else i = KC(e.onKeyDown), a = KC(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
} };
}
// node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function YC(e) {
+function XC(e) {
let t = (0, F.useRef)(null), n = (0, F.useRef)(void 0), r = (0, F.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
@@ -23176,25 +23176,25 @@ function YC(e) {
}), [r]);
}
// node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function XC(e, t) {
- LS(() => {
+function ZC(e, t) {
+ zS(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
};
});
}
// node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var ZC = /*#__PURE__*/ F.createContext(null);
-function noe(e) {
- let t = (0, F.useContext)(ZC) || {};
- XC(t, e);
+var QC = /*#__PURE__*/ F.createContext(null);
+function toe(e) {
+ let t = (0, F.useContext)(QC) || {};
+ ZC(t, e);
let { ref: n, ...r } = t;
return r;
}
-function QC(e, t) {
- let { focusProps: n } = WC(e), { keyboardProps: r } = JC(e), i = K(n, r), a = noe(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
+function $C(e, t) {
+ let { focusProps: n } = GC(e), { keyboardProps: r } = YC(e), i = K(n, r), a = toe(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
(0, F.useEffect)(() => {
- s.current && t.current && NC(t.current), s.current = !1;
+ s.current && t.current && PC(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
return e.isDisabled && (c = void 0), { focusableProps: K({
@@ -23228,21 +23228,21 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var $C = /*#__PURE__*/ (0, F.createContext)(!1);
-function roe(e) {
- if ((0, F.useContext)($C)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
- let t = /*#__PURE__*/ F.createElement($C.Provider, { value: !0 }, e.children);
+var ew = /*#__PURE__*/ (0, F.createContext)(!1);
+function noe(e) {
+ if ((0, F.useContext)(ew)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
+ let t = /*#__PURE__*/ F.createElement(ew.Provider, { value: !0 }, e.children);
return /*#__PURE__*/ F.createElement("template", null, t);
}
-function ew(e) {
- let t = (t, n) => (0, F.useContext)($C) ? null : e(t, n);
+function tw(e) {
+ let t = (t, n) => (0, F.useContext)(ew) ? null : e(t, n);
return t.displayName = e.displayName || e.name, (0, F.forwardRef)(t);
}
-function tw() {
- return (0, F.useContext)($C);
+function nw() {
+ return (0, F.useContext)(ew);
}
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var ioe = /* @__PURE__ */ o(((e) => {
+var roe = /* @__PURE__ */ o(((e) => {
var t = A();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -23280,47 +23280,47 @@ var ioe = /* @__PURE__ */ o(((e) => {
}
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
-})), nw = /* @__PURE__ */ o(((e, t) => {
- t.exports = ioe();
-})), aoe = nw(), rw = /*#__PURE__*/ (0, F.createContext)(!1), iw = /*#__PURE__*/ (0, F.createContext)(null);
-function aw(e) {
- if ((0, F.useContext)(iw)) return e.content;
- let { collection: t, document: n } = loe(e.createCollection);
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(roe, null, /*#__PURE__*/ F.createElement(iw.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement(ooe, {
+})), rw = /* @__PURE__ */ o(((e, t) => {
+ t.exports = roe();
+})), ioe = rw(), iw = /*#__PURE__*/ (0, F.createContext)(!1), aw = /*#__PURE__*/ (0, F.createContext)(null);
+function ow(e) {
+ if ((0, F.useContext)(aw)) return e.content;
+ let { collection: t, document: n } = coe(e.createCollection);
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(noe, null, /*#__PURE__*/ F.createElement(aw.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement(aoe, {
render: e.children,
collection: t
}));
}
-function ooe({ collection: e, render: t }) {
+function aoe({ collection: e, render: t }) {
return t(e);
}
-function soe(e, t, n) {
- let r = oC(), i = (0, F.useRef)(r);
+function ooe(e, t, n) {
+ let r = sC(), i = (0, F.useRef)(r);
i.current = r;
let a = (0, F.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, aoe.useSyncExternalStore)(e, a);
+ return (0, ioe.useSyncExternalStore)(e, a);
}
-var coe = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : soe;
-function loe(e) {
- let [t] = (0, F.useState)(() => new uae(e?.() || new hS()));
+var soe = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : ooe;
+function coe(e) {
+ let [t] = (0, F.useState)(() => new cae(e?.() || new _S()));
return {
- collection: coe((0, F.useCallback)((e) => t.subscribe(e), [t]), (0, F.useCallback)(() => {
+ collection: soe((0, F.useCallback)((e) => t.subscribe(e), [t]), (0, F.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
}, [t]), (0, F.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var ow = /*#__PURE__*/ (0, F.createContext)(null);
-function uoe(e) {
- return class extends dS {
+var sw = /*#__PURE__*/ (0, F.createContext)(null);
+function loe(e) {
+ return class extends pS {
static {
this.type = e;
}
};
}
-function sw(e, t, n, r, i, a) {
- typeof e == "string" && (e = uoe(e));
+function cw(e, t, n, r, i, a) {
+ typeof e == "string" && (e = loe(e));
let o = (0, F.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
@@ -23329,82 +23329,82 @@ function sw(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, F.useContext)(ow);
+ ]), s = (0, F.useContext)(sw);
if (s) {
let o = s.ownerDocument.nodesByProps.get(t);
- return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ F.createElement(ow.Provider, { value: o }, i) : null;
+ return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ F.createElement(sw.Provider, { value: o }, i) : null;
}
return /*#__PURE__*/ F.createElement(e.type, { ref: o }, i);
}
-function cw(e, t) {
+function lw(e, t) {
let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, F.forwardRef)((r, i) => {
- let a = (0, F.useContext)(ZC);
- if (!(0, F.useContext)(rw)) {
+ let a = (0, F.useContext)(QC);
+ if (!(0, F.useContext)(iw)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return sw(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement(ZC.Provider, { value: a }, /*#__PURE__*/ F.createElement(n, { node: e })));
+ return cw(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement(QC.Provider, { value: a }, /*#__PURE__*/ F.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function lw(e, t, n = uw) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => sw(e, t, i, null, n(t), (e) => /*#__PURE__*/ F.createElement(r, { node: e })) ?? /*#__PURE__*/ F.createElement(F.Fragment, null));
+function uw(e, t, n = dw) {
+ let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => cw(e, t, i, null, n(t), (e) => /*#__PURE__*/ F.createElement(r, { node: e })) ?? /*#__PURE__*/ F.createElement(F.Fragment, null));
return i.displayName = t.name, i;
}
-function uw(e) {
- return yS({
+function dw(e) {
+ return xS({
...e,
addIdAndValue: !0
});
}
-var dw = /*#__PURE__*/ (0, F.createContext)(null);
-function fw(e) {
- let t = (0, F.useContext)(dw), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = uw({
+var fw = /*#__PURE__*/ (0, F.createContext)(null);
+function pw(e) {
+ let t = (0, F.useContext)(fw), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = dw({
...e,
idScope: r,
dependencies: n
});
- return (0, F.useContext)(iw) && (i = /*#__PURE__*/ F.createElement(doe, null, i)), t = (0, F.useMemo)(() => ({
+ return (0, F.useContext)(aw) && (i = /*#__PURE__*/ F.createElement(uoe, null, i)), t = (0, F.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ F.createElement(dw.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ F.createElement(fw.Provider, { value: t }, i);
}
-function doe({ children: e }) {
- let t = (0, F.useContext)(iw), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(iw.Provider, { value: null }, /*#__PURE__*/ F.createElement(rw.Provider, { value: !0 }, e)), [e]);
- return oC() ? /*#__PURE__*/ F.createElement(ow.Provider, { value: t }, n) : /*#__PURE__*/ (0, Rt.createPortal)(n, t);
+function uoe({ children: e }) {
+ let t = (0, F.useContext)(aw), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(aw.Provider, { value: null }, /*#__PURE__*/ F.createElement(iw.Provider, { value: !0 }, e)), [e]);
+ return sC() ? /*#__PURE__*/ F.createElement(sw.Provider, { value: t }, n) : /*#__PURE__*/ (0, Rt.createPortal)(n, t);
}
// node_modules/react-aria/dist/private/utils/constants.mjs
-var foe = "react-aria-clear-focus", poe = "react-aria-focus";
+var doe = "react-aria-clear-focus", foe = "react-aria-focus";
// node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function pw(e) {
- let t = hoe(xS(e));
- t !== e && (t && moe(t, e), e && mw(e, t));
+function mw(e) {
+ let t = moe(CS(e));
+ t !== e && (t && poe(t, e), e && hw(e, t));
}
-function moe(e, t) {
+function poe(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function mw(e, t) {
+function hw(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function hoe(e) {
- let t = kS(e), n = t?.getAttribute("aria-activedescendant");
+function moe(e) {
+ let t = jS(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
// node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function hw(e, t) {
- let n = SS(t), r = xS(t);
+function gw(e, t) {
+ let n = wS(t), r = CS(t);
if (r == null || n == null) return;
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
return o && o instanceof n.HTMLMetaElement && (e === "csp-nonce" && o.nonce && (i ??= o.nonce || void 0), o.content && (i ??= o.content || void 0)), e === "csp-nonce" && (i ??= n.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0), i;
}
// node_modules/react-aria/dist/private/utils/keyboard.mjs
-var gw = 100, _w = 600, vw = {
+var _w = 100, vw = 600, yw = {
isOpen: !1,
screenWidth: 0,
screenHeight: 0,
@@ -23414,7 +23414,7 @@ var gw = 100, _w = 600, vw = {
endTimeStamp: 0,
resizeTimeStamp: 0,
resizeTimeout: 0
-}, goe = /* @__PURE__ */ new Set([
+}, hoe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -23425,7 +23425,7 @@ var gw = 100, _w = 600, vw = {
"submit",
"reset"
]);
-function yw() {
+function bw() {
let e = Number(window.visualViewport?.width ?? window.innerWidth), t = Number(window.visualViewport?.height ?? window.innerHeight), n = Number(window.visualViewport?.scale ?? 1);
return {
width: e * n,
@@ -23433,58 +23433,58 @@ function yw() {
angle: window.screen.orientation?.angle ?? 0
};
}
-function _oe(e) {
- vw.resizeTimeStamp <= e.timeStamp + 50 && (vw.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(vw.resizeTimeout), vw.resizeTimeout = window.setTimeout(bw, 150));
-}
-function bw() {
- let e = hw("viewport");
- if (XS() && e?.includes("overlays-content")) return;
- let t = performance.now(), n = yw(), r = t - vw.startTimeStamp, i = vw.screenHeight - n.height, a = vw.screenAngle - n.angle;
- Math.abs(a) % 180 && vw.screenWidth - n.height < gw && (vw.screenWidth = n.width, vw.screenHeight = n.height, vw.screenAngle = n.angle, i = 0), r > _w && (window.clearTimeout(vw.screenTimeout), vw.screenTimeout = window.setTimeout(() => {
- let e = Cw(document.hasFocus() ? kS() : null), t = yw();
- Math.abs(vw.screenAngle - t.angle) % 180 || vw.isOpen && e || (vw.screenWidth = t.width, vw.screenHeight = t.height, vw.screenAngle = t.angle, vw.isOpen = !1);
- }, _w)), r <= _w && i >= gw && (vw.endTimeStamp = t), vw.isOpen = i >= gw;
-}
-function voe() {
- let e = yw(), t = vw.screenAngle - e.angle;
- if (Math.abs(t) % 180 && !vw.isOpen) {
- let e = vw.screenWidth;
- vw.screenWidth = vw.screenHeight, vw.screenHeight = e;
- }
- vw.isOpen || (vw.screenAngle = e.angle);
-}
-function yoe(e) {
- let t = Cw(G(e)), n = performance.now(), r = yw(), i = vw.screenHeight - r.height;
- i < gw && t && (vw.screenWidth = r.width, vw.screenHeight = r.height, vw.screenAngle = r.angle, vw.startTimeStamp = n), t && window.clearTimeout(vw.screenTimeout), i >= gw && t && (vw.endTimeStamp = n);
+function goe(e) {
+ yw.resizeTimeStamp <= e.timeStamp + 50 && (yw.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(yw.resizeTimeout), yw.resizeTimeout = window.setTimeout(xw, 150));
}
function xw() {
- let e = yw();
- TS(window.visualViewport, "resize", JS() ? bw : _oe), TS(window.screen.orientation, "change", voe), TS(window, "focus", yoe, {
+ let e = gw("viewport");
+ if (QS() && e?.includes("overlays-content")) return;
+ let t = performance.now(), n = bw(), r = t - yw.startTimeStamp, i = yw.screenHeight - n.height, a = yw.screenAngle - n.angle;
+ Math.abs(a) % 180 && yw.screenWidth - n.height < _w && (yw.screenWidth = n.width, yw.screenHeight = n.height, yw.screenAngle = n.angle, i = 0), r > vw && (window.clearTimeout(yw.screenTimeout), yw.screenTimeout = window.setTimeout(() => {
+ let e = ww(document.hasFocus() ? jS() : null), t = bw();
+ Math.abs(yw.screenAngle - t.angle) % 180 || yw.isOpen && e || (yw.screenWidth = t.width, yw.screenHeight = t.height, yw.screenAngle = t.angle, yw.isOpen = !1);
+ }, vw)), r <= vw && i >= _w && (yw.endTimeStamp = t), yw.isOpen = i >= _w;
+}
+function _oe() {
+ let e = bw(), t = yw.screenAngle - e.angle;
+ if (Math.abs(t) % 180 && !yw.isOpen) {
+ let e = yw.screenWidth;
+ yw.screenWidth = yw.screenHeight, yw.screenHeight = e;
+ }
+ yw.isOpen || (yw.screenAngle = e.angle);
+}
+function voe(e) {
+ let t = ww(G(e)), n = performance.now(), r = bw(), i = yw.screenHeight - r.height;
+ i < _w && t && (yw.screenWidth = r.width, yw.screenHeight = r.height, yw.screenAngle = r.angle, yw.startTimeStamp = n), t && window.clearTimeout(yw.screenTimeout), i >= _w && t && (yw.endTimeStamp = n);
+}
+function Sw() {
+ let e = bw();
+ DS(window.visualViewport, "resize", XS() ? xw : goe), DS(window.screen.orientation, "change", _oe), DS(window, "focus", voe, {
capture: !0,
passive: !0
- }), vw.screenWidth = e.width, vw.screenHeight = e.height, vw.screenAngle = e.angle;
+ }), yw.screenWidth = e.width, yw.screenHeight = e.height, yw.screenAngle = e.angle;
}
-typeof document < "u" && (document.readyState === "loading" ? TS(document, "DOMContentLoaded", xw) : xw());
-function Sw() {
- let e = hw("viewport");
- return XS() && e?.includes("overlays-content") ? !1 : vw.isOpen ? !0 : vw.startTimeStamp ? vw.endTimeStamp >= vw.startTimeStamp ? !0 : performance.now() - vw.startTimeStamp <= _w ? vw.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
+typeof document < "u" && (document.readyState === "loading" ? DS(document, "DOMContentLoaded", Sw) : Sw());
+function Cw() {
+ let e = gw("viewport");
+ return QS() && e?.includes("overlays-content") ? !1 : yw.isOpen ? !0 : yw.startTimeStamp ? yw.endTimeStamp >= yw.startTimeStamp ? !0 : performance.now() - yw.startTimeStamp <= vw ? yw.endTimeStamp > 0 || window.navigator.maxTouchPoints > 0 : !1 : window.navigator.maxTouchPoints > 0;
}
-function Cw(e) {
- if (!(e instanceof Element) || !PS(e)) return !1;
- let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !goe.has(e.type);
+function ww(e) {
+ if (!(e instanceof Element) || !IS(e)) return !1;
+ let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !hoe.has(e.type);
return t || n || r;
}
-function ww(e) {
- return GS() ? e.metaKey : e.ctrlKey;
+function Tw(e) {
+ return qS() ? e.metaKey : e.ctrlKey;
}
-function Tw() {
- return vw.isOpen;
+function Ew() {
+ return yw.isOpen;
}
// node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var boe = F.useInsertionEffect ?? LS;
-function Ew(e) {
+var yoe = F.useInsertionEffect ?? zS;
+function Dw(e) {
let t = (0, F.useRef)(null);
- return boe(() => {
+ return yoe(() => {
t.current = e;
}, [e]), (0, F.useCallback)((...e) => {
let n = t.current;
@@ -23492,10 +23492,10 @@ function Ew(e) {
}, []);
}
// node_modules/react-aria/dist/private/utils/useEvent.mjs
-function Dw(e, t, n, r) {
- let i = Ew(n), a = n == null;
+function Ow(e, t, n, r) {
+ let i = Dw(n), a = n == null;
(0, F.useEffect)(() => {
- if (!(a || e.current == null)) return TS(e.current, t, i, r);
+ if (!(a || e.current == null)) return DS(e.current, t, i, r);
}, [
e,
t,
@@ -23504,16 +23504,16 @@ function Dw(e, t, n, r) {
]);
}
// node_modules/react-aria/dist/private/utils/useLabels.mjs
-function Ow(e, t) {
+function kw(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = RC(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
+ return n = zC(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
id: n,
"aria-label": r,
"aria-labelledby": i
};
}
// node_modules/react-aria/dist/private/i18n/utils.mjs
-var xoe = /* @__PURE__ */ new Set([
+var boe = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -23524,7 +23524,7 @@ var xoe = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), Soe = /* @__PURE__ */ new Set([
+]), xoe = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -23545,19 +23545,19 @@ var xoe = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function Coe(e) {
+function Soe(e) {
if (Intl.Locale) {
let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
if (n) return n.direction === "rtl";
- if (t.script) return xoe.has(t.script);
+ if (t.script) return boe.has(t.script);
}
let t = e.split("-")[0];
- return Soe.has(t);
+ return xoe.has(t);
}
// node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var kw = Symbol.for("react-aria.i18n.locale");
-function Aw() {
- let e = typeof window < "u" && window[kw] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var Aw = Symbol.for("react-aria.i18n.locale");
+function jw() {
+ let e = typeof window < "u" && window[Aw] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -23565,31 +23565,31 @@ function Aw() {
}
return {
locale: e,
- direction: Coe(e) ? "rtl" : "ltr"
+ direction: Soe(e) ? "rtl" : "ltr"
};
}
-var jw = Aw(), Mw = /* @__PURE__ */ new Set();
-function Nw() {
- jw = Aw();
- for (let e of Mw) e(jw);
+var Mw = jw(), Nw = /* @__PURE__ */ new Set();
+function Pw() {
+ Mw = jw();
+ for (let e of Nw) e(Mw);
}
-function woe() {
- let e = oC(), [t, n] = (0, F.useState)(jw);
- return (0, F.useEffect)(() => (Mw.size === 0 && window.addEventListener("languagechange", Nw), Mw.add(n), () => {
- Mw.delete(n), Mw.size === 0 && window.removeEventListener("languagechange", Nw);
+function Coe() {
+ let e = sC(), [t, n] = (0, F.useState)(Mw);
+ return (0, F.useEffect)(() => (Nw.size === 0 && window.addEventListener("languagechange", Pw), Nw.add(n), () => {
+ Nw.delete(n), Nw.size === 0 && window.removeEventListener("languagechange", Pw);
}), []), e ? {
- locale: typeof window < "u" && window[kw] || "en-US",
+ locale: typeof window < "u" && window[Aw] || "en-US",
direction: "ltr"
} : t;
}
// node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var Toe = /*#__PURE__*/ F.createContext(null);
-function Pw() {
- let e = woe();
- return (0, F.useContext)(Toe) || e;
+var woe = /*#__PURE__*/ F.createContext(null);
+function Fw() {
+ let e = Coe();
+ return (0, F.useContext)(woe) || e;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var Eoe = Symbol.for("react-aria.i18n.locale"), Doe = Symbol.for("react-aria.i18n.strings"), Fw = void 0, Iw = class e {
+var Toe = Symbol.for("react-aria.i18n.locale"), Eoe = Symbol.for("react-aria.i18n.strings"), Iw = void 0, Lw = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -23600,38 +23600,38 @@ var Eoe = Symbol.for("react-aria.i18n.locale"), Doe = Symbol.for("react-aria.i18
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = Ooe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = Doe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[Eoe];
- if (Fw === void 0) {
- let t = window[Doe];
+ let n = window[Toe];
+ if (Iw === void 0) {
+ let t = window[Eoe];
if (!t) return null;
- Fw = {};
- for (let r in t) Fw[r] = new e({ [n]: t[r] }, n);
+ Iw = {};
+ for (let r in t) Iw[r] = new e({ [n]: t[r] }, n);
}
- let r = Fw?.[t];
+ let r = Iw?.[t];
if (!r) throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
return r;
}
};
-function Ooe(e, t, n = "en-US") {
+function Doe(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = koe(e), i = Aoe(e);
+ let r = Ooe(e), i = koe(e);
if (i && t[`${r}-${i}`]) return t[`${r}-${i}`];
if (t[r]) return t[r];
for (let e in t) if (e.startsWith(r + "-")) return t[e];
return t[n];
}
-function koe(e) {
+function Ooe(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function Aoe(e) {
+function koe(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var Lw = /* @__PURE__ */ new Map(), Rw = /* @__PURE__ */ new Map(), joe = class {
+var Rw = /* @__PURE__ */ new Map(), zw = /* @__PURE__ */ new Map(), Aoe = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -23642,36 +23642,36 @@ var Lw = /* @__PURE__ */ new Map(), Rw = /* @__PURE__ */ new Map(), joe = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = Lw.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), Lw.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = Rw.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), Rw.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = Rw.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), Rw.set(this.locale, t)), t.format(e);
+ let t = zw.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), zw.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, zw = /* @__PURE__ */ new WeakMap();
-function Moe(e) {
- let t = zw.get(e);
- return t || (t = new Iw(e), zw.set(e, t)), t;
+}, Bw = /* @__PURE__ */ new WeakMap();
+function joe(e) {
+ let t = Bw.get(e);
+ return t || (t = new Lw(e), Bw.set(e, t)), t;
}
-function Noe(e, t) {
- return t && Iw.getGlobalDictionaryForPackage(t) || Moe(e);
+function Moe(e, t) {
+ return t && Lw.getGlobalDictionaryForPackage(t) || joe(e);
}
-function Bw(e, t) {
- let { locale: n } = Pw(), r = Noe(e, t);
- return (0, F.useMemo)(() => new joe(n, r), [n, r]);
+function Vw(e, t) {
+ let { locale: n } = Fw(), r = Moe(e, t);
+ return (0, F.useMemo)(() => new Aoe(n, r), [n, r]);
}
// node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var Poe = /* @__PURE__ */ new Set(["id"]), Foe = /* @__PURE__ */ new Set([
+var Noe = /* @__PURE__ */ new Set(["id"]), Poe = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), Ioe = /* @__PURE__ */ new Set([
+]), Foe = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -23679,60 +23679,60 @@ var Poe = /* @__PURE__ */ new Set(["id"]), Foe = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), Loe = /* @__PURE__ */ new Set([
+]), Ioe = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate",
"suppressHydrationWarning"
-]), Vw = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Roe = /^(data-.*)$/;
-function Hw(e, t = {}) {
+]), Hw = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Loe = /^(data-.*)$/;
+function Uw(e, t = {}) {
let { labelable: n, isLink: r, global: i, events: a = i, propNames: o } = t, s = {};
- for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (Poe.has(t) || n && Foe.has(t) || r && Ioe.has(t) || i && Loe.has(t) || a && (Vw.has(t) || t.endsWith("Capture") && Vw.has(t.slice(0, -7))) || o?.has(t) || Roe.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (Noe.has(t) || n && Poe.has(t) || r && Foe.has(t) || i && Ioe.has(t) || a && (Hw.has(t) || t.endsWith("Capture") && Hw.has(t.slice(0, -7))) || o?.has(t) || Loe.test(t)) && (s[t] = e[t]);
return s;
}
// node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var Uw = "default", Ww = "", Gw = /* @__PURE__ */ new WeakMap();
-function Kw(e) {
- if (qS() && JS()) {
- if (Uw === "default") {
- let t = xS(e);
- Ww = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- Uw = "disabled";
+var Ww = "default", Gw = "", Kw = /* @__PURE__ */ new WeakMap();
+function qw(e) {
+ if (YS() && XS()) {
+ if (Ww === "default") {
+ let t = CS(e);
+ Gw = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ }
+ Ww = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- Gw.set(e, e.style[t]), e.style[t] = "none";
+ Kw.set(e, e.style[t]), e.style[t] = "none";
}
}
-function qw(e) {
- if (qS() && JS()) {
- if (Uw !== "disabled") return;
- Uw = "restoring", setTimeout(() => {
- MC(() => {
- if (Uw === "restoring") {
- let t = xS(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Ww || ""), Ww = "", Uw = "default";
+function Jw(e) {
+ if (YS() && XS()) {
+ if (Ww !== "disabled") return;
+ Ww = "restoring", setTimeout(() => {
+ NC(() => {
+ if (Ww === "restoring") {
+ let t = CS(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Gw || ""), Gw = "", Ww = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Gw.has(e)) {
- let t = Gw.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Gw.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Kw.has(e)) {
+ let t = Kw.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Kw.delete(e);
}
}
// node_modules/react-aria/dist/private/utils/getNonce.mjs
-var Jw = /* @__PURE__ */ new WeakMap();
-function Yw(e) {
- let t = xS(e), n = Jw.get(t);
- return n ??= hw("csp-nonce", t), n !== void 0 && Jw.set(t, n), n;
+var Yw = /* @__PURE__ */ new WeakMap();
+function Xw(e) {
+ let t = CS(e), n = Yw.get(t);
+ return n ??= gw("csp-nonce", t), n !== void 0 && Yw.set(t, n), n;
}
// node_modules/react-aria/dist/private/interactions/context.mjs
-var Xw = F.createContext({ register: () => {} });
-Xw.displayName = "PressResponderContext";
+var Zw = F.createContext({ register: () => {} });
+Zw.displayName = "PressResponderContext";
// node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function Zw() {
+function Qw() {
let e = (0, F.useRef)(/* @__PURE__ */ new Map()), t = (0, F.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
@@ -23758,15 +23758,15 @@ function Zw() {
};
}
// node_modules/react-aria/dist/private/interactions/usePress.mjs
-function zoe(e) {
- let t = (0, F.useContext)(Xw);
+function Roe(e) {
+ let t = (0, F.useContext)(Zw);
if (t) {
let { register: n, ref: r, ...i } = t;
e = K(i, e), n();
}
- return XC(t, e.ref), e;
+ return ZC(t, e.ref), e;
}
-var Qw = class {
+var $w = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -23779,9 +23779,9 @@ var Qw = class {
get shouldStopPropagation() {
return this.#e;
}
-}, $w = Symbol("linkClicked"), eT = "react-aria-pressable-style", tT = "data-react-aria-pressable";
-function nT(e) {
- let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = zoe(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
+}, eT = Symbol("linkClicked"), tT = "react-aria-pressable-style", nT = "data-react-aria-pressable";
+function rT(e) {
+ let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = Roe(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -23791,12 +23791,12 @@ function nT(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = Zw(), y = (0, F.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = Qw(), y = (0, F.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new Qw("pressstart", t, e);
+ let n = new $w("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -23810,11 +23810,11 @@ function nT(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new Qw("pressend", r, e);
+ let t = new $w("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new Qw("press", r, e);
+ let n = new $w("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -23823,19 +23823,19 @@ function nT(e) {
i,
n,
t
- ]), x = Ew(b), S = Ew((0, F.useCallback)((e, t) => {
+ ]), x = Dw(b), S = Dw((0, F.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new Qw("pressup", t, e);
+ let r = new $w("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
}, [s, a])), C = (0, F.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(aT(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || qw(t.target);
+ t.didFirePressStart && t.pointerType != null && b(oT(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Jw(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -23843,7 +23843,7 @@ function nT(e) {
d,
v,
b
- ]), w = Ew(C);
+ ]), w = Dw(C);
(0, F.useEffect)(() => {
s && g.current.isPressed && w({
currentTarget: g.current.target,
@@ -23860,39 +23860,39 @@ function nT(e) {
}, [s, o]), D = (0, F.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- zS(n, t), o(RS(n));
+ VS(n, t), o(BS(n));
}
}, [s, o]), O = (0, F.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (iT(t.nativeEvent, t.currentTarget) && OS(t.currentTarget, G(t))) {
- oT(G(t), t.key) && t.preventDefault();
+ if (aT(t.nativeEvent, t.currentTarget) && AS(t.currentTarget, G(t))) {
+ sT(G(t), t.key) && t.preventDefault();
let r = !0;
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = y(t, "keyboard"));
let i = t.currentTarget;
- _(xS(t.currentTarget), "keyup", PC((t) => {
- iT(t, i) && !t.repeat && OS(i, G(t)) && e.target && S(aT(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && GS() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(CS(t.currentTarget), "keyup", FC((t) => {
+ aT(t, i) && !t.repeat && AS(i, G(t)) && e.target && S(oT(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && qS() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if ((!t || OS(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !$S.isOpening) {
+ if ((!t || AS(t.currentTarget, G(t))) && t && t.button === 0 && !e.isTriggeringEvent && !tC.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || ZS(t.nativeEvent))) {
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || $S(t.nativeEvent))) {
let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");
E(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(aT(t.currentTarget, t), r), a = x(aT(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(oT(t.currentTarget, t), r), a = x(oT(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, E(t), w(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && iT(t, e.target)) {
- oT(G(t), t.key) && t.preventDefault();
- let n = G(t), r = OS(e.target, n);
- x(aT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && rT(e.target) && OS(e.target, n) && !t[$w] && (t[$w] = !0, $S(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && aT(t, e.target)) {
+ sT(G(t), t.key) && t.preventDefault();
+ let n = G(t), r = AS(e.target, n);
+ x(oT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && iT(e.target) && AS(e.target, n) && !t[eT] && (t[eT] = !0, tC(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
} else if (t.key === "Meta" && e.metaKeyEvents?.size) {
let t = e.metaKeyEvents;
e.metaKeyEvents = void 0;
@@ -23901,39 +23901,39 @@ function nT(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !OS(t.currentTarget, G(t))) return;
- if (Cae(t.nativeEvent)) {
+ if (t.button !== 0 || !AS(t.currentTarget, G(t))) return;
+ if (xae(t.nativeEvent)) {
e.pointerType = "virtual";
return;
}
e.pointerType = t.pointerType;
let i = !0;
if (!e.isPressed) {
- e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Kw(e.target), i = y(t, e.pointerType);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || qw(e.target), i = y(t, e.pointerType);
let a = G(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(xS(t.currentTarget), "pointerup", n, !1), _(xS(t.currentTarget), "pointercancel", r, !1);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(CS(t.currentTarget), "pointerup", n, !1), _(CS(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (OS(t.currentTarget, G(t)) && t.button === 0) {
+ if (AS(t.currentTarget, G(t)) && t.button === 0) {
if (l) {
- let n = bae(t.target);
+ let n = vae(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- OS(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
+ AS(t.currentTarget, G(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(aT(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(oT(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(aT(e.target, t), e.pointerType, !1), T(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(oT(e.target, t), e.pointerType, !1), T(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (OS(e.target, G(t)) && e.pointerType != null) {
+ if (AS(e.target, G(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (bS(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (SS(e.target), e.target.click()));
}, 80);
_(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else w(t);
@@ -23943,7 +23943,7 @@ function nT(e) {
w(e);
};
t.onDragStart = (e) => {
- OS(e.currentTarget, G(e)) && w(e);
+ AS(e.currentTarget, G(e)) && w(e);
};
}
return t;
@@ -23960,14 +23960,14 @@ function nT(e) {
]);
return (0, F.useEffect)(() => {
if (!f) return;
- let e = xS(f.current);
- if (!e || !e.head || e.getElementById(eT)) return;
+ let e = CS(f.current);
+ if (!e || !e.head || e.getElementById(tT)) return;
let t = e.createElement("style");
- t.id = eT;
- let n = Yw(e);
+ t.id = tT;
+ let n = Xw(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${tT}] {
+ [${nT}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -23975,23 +23975,23 @@ function nT(e) {
}, [f]), (0, F.useEffect)(() => {
let e = g.current;
return () => {
- d || qw(e.target ?? void 0);
+ d || Jw(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: K(p, O, { [tT]: !0 })
+ pressProps: K(p, O, { [nT]: !0 })
};
}
-function rT(e) {
+function iT(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function iT(e, t) {
+function aT(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof SS(i).HTMLInputElement && !sT(i, n) || i instanceof SS(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && rT(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof wS(i).HTMLInputElement && !cT(i, n) || i instanceof wS(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && iT(i)) && n !== "Enter");
}
-function aT(e, t) {
+function oT(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -24004,13 +24004,13 @@ function aT(e, t) {
key: t.key
};
}
-function Boe(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !rT(e);
+function zoe(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !iT(e);
}
-function oT(e, t) {
- return GS() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !sT(e, t) : Boe(e);
+function sT(e, t) {
+ return qS() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !cT(e, t) : zoe(e);
}
-var Voe = /* @__PURE__ */ new Set([
+var Boe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -24021,11 +24021,11 @@ var Voe = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function sT(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : Voe.has(e.type);
+function cT(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : Boe.has(e.type);
}
// node_modules/react-aria/dist/private/button/useButton.mjs
-function Hoe(e, t) {
+function Voe(e, t) {
let { elementType: n = "button", isDisabled: r, onPress: i, onPressStart: a, onPressEnd: o, onPressUp: s, onPressChange: c, preventFocusOnPress: l, allowFocusWhenDisabled: u, onClick: d, href: f, target: p, rel: m, type: h = "button" } = e, g;
g = n === "button" ? {
type: h,
@@ -24047,7 +24047,7 @@ function Hoe(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = nT({
+ let { pressProps: _, isPressed: v } = rT({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -24057,9 +24057,9 @@ function Hoe(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = QC(e, t);
+ }), { focusableProps: y } = $C(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = K(y, _, Hw(e, { labelable: !0 }));
+ let b = K(y, _, Uw(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: K(g, b, {
@@ -24073,7 +24073,7 @@ function Hoe(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var Uoe = class {
+var Hoe = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -24098,7 +24098,7 @@ var Uoe = class {
return this._currentNode;
}
set currentNode(e) {
- if (!OS(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!AS(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
let t = [], n = e, r = e;
for (this._currentNode = e; n && n !== this.root;) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
let e = n, i = this._doc.createTreeWalker(e, this.whatToShow, { acceptNode: this._acceptNode });
@@ -24112,7 +24112,7 @@ var Uoe = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return OS(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return AS(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -24176,44 +24176,44 @@ var Uoe = class {
return null;
}
};
-function cT(e, t, n, r) {
- return DS() ? new Uoe(e, t, n, r) : e.createTreeWalker(t, n, r);
+function lT(e, t, n, r) {
+ return kS() ? new Hoe(e, t, n, r) : e.createTreeWalker(t, n, r);
}
// node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var lT = /*#__PURE__*/ F.createContext(null), uT = "react-aria-focus-scope-restore", dT = null;
-function fT(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)([]), { parentNode: c } = (0, F.useContext)(lT) || {}, l = (0, F.useMemo)(() => new TT({ scopeRef: s }), [s]);
- LS(() => {
- let e = c || ET.root;
- if (ET.getTreeNode(e.scopeRef) && dT && !vT(dT, e.scopeRef)) {
- let t = ET.getTreeNode(dT);
+var uT = /*#__PURE__*/ F.createContext(null), dT = "react-aria-focus-scope-restore", fT = null;
+function pT(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)([]), { parentNode: c } = (0, F.useContext)(uT) || {}, l = (0, F.useMemo)(() => new ET({ scopeRef: s }), [s]);
+ zS(() => {
+ let e = c || DT.root;
+ if (DT.getTreeNode(e.scopeRef) && fT && !yT(fT, e.scopeRef)) {
+ let t = DT.getTreeNode(fT);
t && (e = t);
}
- e.addChild(l), ET.addNode(l);
- }, [l, c]), LS(() => {
- let e = ET.getTreeNode(s);
+ e.addChild(l), DT.addNode(l);
+ }, [l, c]), zS(() => {
+ let e = DT.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), LS(() => {
+ }, [n]), zS(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(uT, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(dT, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(uT, n);
+ for (let e of t) e.removeEventListener(dT, n);
};
- }, [t]), Xoe(s, r, n), qoe(s, n), Zoe(s, r, n), Yoe(s, i), (0, F.useEffect)(() => {
- let e = kS(xS(s.current ? s.current[0] : void 0)), t = null;
- if (gT(e, s.current)) {
- for (let n of ET.traverse()) n.scopeRef && gT(e, n.scopeRef.current) && (t = n);
- t === ET.getTreeNode(s) && (dT = t.scopeRef);
- }
- }, [s]), LS(() => () => {
- let e = ET.getTreeNode(s)?.parent?.scopeRef ?? null;
- s !== dT && !vT(s, dT) || e && !ET.getTreeNode(e) || (dT = e), ET.removeTreeNode(s);
+ }, [t]), Yoe(s, r, n), Koe(s, n), Xoe(s, r, n), Joe(s, i), (0, F.useEffect)(() => {
+ let e = jS(CS(s.current ? s.current[0] : void 0)), t = null;
+ if (_T(e, s.current)) {
+ for (let n of DT.traverse()) n.scopeRef && _T(e, n.scopeRef.current) && (t = n);
+ t === DT.getTreeNode(s) && (fT = t.scopeRef);
+ }
+ }, [s]), zS(() => () => {
+ let e = DT.getTreeNode(s)?.parent?.scopeRef ?? null;
+ s !== fT && !yT(s, fT) || e && !DT.getTreeNode(e) || (fT = e), DT.removeTreeNode(s);
}, [s]);
- let u = (0, F.useMemo)(() => Woe(s), []), d = (0, F.useMemo)(() => ({
+ let u = (0, F.useMemo)(() => Uoe(s), []), d = (0, F.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ F.createElement(lT.Provider, { value: d }, /*#__PURE__*/ F.createElement("span", {
+ return /*#__PURE__*/ F.createElement(uT.Provider, { value: d }, /*#__PURE__*/ F.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -24223,154 +24223,154 @@ function fT(e) {
ref: o
}));
}
-function Woe(e) {
+function Uoe(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || kS(xS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = wT(pT(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || jS(CS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = TT(mT(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = gT(s, n) ? s : c;
+ l.currentNode = _T(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && yT(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && bT(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || kS(xS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = wT(pT(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || jS(CS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = TT(mT(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = gT(s, n) ? s : c;
+ l.currentNode = _T(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && yT(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && bT(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = wT(pT(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = TT(mT(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && yT(o, !0), o;
+ return o && bT(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = wT(pT(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = TT(mT(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && yT(o, !0), o;
+ return o && bT(o, !0), o;
}
};
}
-function pT(e) {
+function mT(e) {
return e[0].parentElement;
}
-function mT(e) {
- let t = ET.getTreeNode(dT);
+function hT(e) {
+ let t = DT.getTreeNode(fT);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function Goe(e) {
- if (!e.form) return Array.from(xS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = SS(e);
+function Woe(e) {
+ if (!e.form) return Array.from(CS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = wS(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function Koe(e) {
+function Goe(e) {
if (e.checked) return !0;
- let t = Goe(e);
+ let t = Woe(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function qoe(e, t) {
+function Koe(e, t) {
let n = (0, F.useRef)(void 0), r = (0, F.useRef)(void 0);
- LS(() => {
+ zS(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = xS(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !mT(e) || t.isComposing) return;
- let n = kS(a), r = e.current;
- if (!r || !gT(n, r)) return;
- let i = wT(pT(r), { tabbable: !0 }, r);
+ let a = CS(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !hT(e) || t.isComposing) return;
+ let n = jS(a), r = e.current;
+ if (!r || !_T(n, r)) return;
+ let i = TT(mT(r), { tabbable: !0 }, r);
if (!n) return;
i.currentNode = n;
let o = t.shiftKey ? i.previousNode() : i.nextNode();
- o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (yT(o, !0), o instanceof SS(o).HTMLInputElement && o.select());
+ o ||= (i.currentNode = t.shiftKey ? r[r.length - 1].nextElementSibling : r[0].previousElementSibling, t.shiftKey ? i.previousNode() : i.nextNode()), t.preventDefault(), o && (bT(o, !0), o instanceof wS(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!dT || vT(dT, e)) && gT(G(t), e.current) ? (dT = e, n.current = G(t)) : mT(e) && !_T(G(t), e) ? n.current ? yT(n.current) : dT && dT.current && xT(dT.current) : mT(e) && (n.current = G(t));
+ (!fT || yT(fT, e)) && _T(G(t), e.current) ? (fT = e, n.current = G(t)) : hT(e) && !vT(G(t), e) ? n.current ? bT(n.current) : fT && fT.current && ST(fT.current) : hT(e) && (n.current = G(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = SC(), i = (r === "virtual" || r === null) && XS() && YS(), o = kS(a);
- if (!i && o && mT(e) && !_T(o, e)) {
- dT = e;
+ let r = CC(), i = (r === "virtual" || r === null) && QS() && ZS(), o = jS(a);
+ if (!i && o && hT(e) && !vT(o, e)) {
+ fT = e;
let r = G(t);
- r && r.isConnected ? (n.current = r, yT(n.current)) : dT.current && xT(dT.current);
+ r && r.isConnected ? (n.current = r, bT(n.current)) : fT.current && ST(fT.current);
}
});
};
return a.addEventListener("keydown", o, !1), a.addEventListener("focusin", s, !1), i?.forEach((e) => e.addEventListener("focusin", s, !1)), i?.forEach((e) => e.addEventListener("focusout", c, !1)), () => {
a.removeEventListener("keydown", o, !1), a.removeEventListener("focusin", s, !1), i?.forEach((e) => e.removeEventListener("focusin", s, !1)), i?.forEach((e) => e.removeEventListener("focusout", c, !1));
};
- }, [e, t]), LS(() => () => {
+ }, [e, t]), zS(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function hT(e) {
- return _T(e);
+function gT(e) {
+ return vT(e);
}
-function gT(e, t) {
- return !e || !t ? !1 : t.some((t) => OS(t, e));
+function _T(e, t) {
+ return !e || !t ? !1 : t.some((t) => AS(t, e));
}
-function _T(e, t = null) {
+function vT(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of ET.traverse(ET.getTreeNode(t))) if (n && gT(e, n.current)) return !0;
+ for (let { scopeRef: n } of DT.traverse(DT.getTreeNode(t))) if (n && _T(e, n.current)) return !0;
return !1;
}
-function Joe(e) {
- return _T(e, dT);
+function qoe(e) {
+ return vT(e, fT);
}
-function vT(e, t) {
- let n = ET.getTreeNode(t)?.parent;
+function yT(e, t) {
+ let n = DT.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function yT(e, t = !1) {
+function bT(e, t = !1) {
if (e != null && !t) try {
- NC(e);
+ PC(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function bT(e, t = !0) {
- let n = e[0].previousElementSibling, r = pT(e), i = wT(r, { tabbable: t }, e);
+function xT(e, t = !0) {
+ let n = e[0].previousElementSibling, r = mT(e), i = TT(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = pT(e), i = wT(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = mT(e), i = TT(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function xT(e, t = !0) {
- yT(bT(e, t));
+function ST(e, t = !0) {
+ bT(xT(e, t));
}
-function Yoe(e, t) {
+function Joe(e, t) {
let n = F.useRef(t);
(0, F.useEffect)(() => {
- n.current && (dT = e, !gT(kS(xS(e.current ? e.current[0] : void 0)), dT.current) && e.current && xT(e.current)), n.current = !1;
+ n.current && (fT = e, !_T(jS(CS(e.current ? e.current[0] : void 0)), fT.current) && e.current && ST(e.current)), n.current = !1;
}, [e]);
}
-function Xoe(e, t, n) {
- LS(() => {
+function Yoe(e, t, n) {
+ zS(() => {
if (t || n) return;
- let r = e.current, i = xS(r ? r[0] : void 0), a = (t) => {
+ let r = e.current, i = CS(r ? r[0] : void 0), a = (t) => {
let n = G(t);
- gT(n, e.current) ? dT = e : hT(n) || (dT = null);
+ _T(n, e.current) ? fT = e : gT(n) || (fT = null);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
@@ -24381,43 +24381,43 @@ function Xoe(e, t, n) {
n
]);
}
-function ST(e) {
- let t = ET.getTreeNode(dT);
+function CT(e) {
+ let t = DT.getTreeNode(fT);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function Zoe(e, t, n) {
- let r = (0, F.useRef)(typeof document < "u" ? kS(xS(e.current ? e.current[0] : void 0)) : null);
- LS(() => {
- let r = e.current, i = xS(r ? r[0] : void 0);
+function Xoe(e, t, n) {
+ let r = (0, F.useRef)(typeof document < "u" ? jS(CS(e.current ? e.current[0] : void 0)) : null);
+ zS(() => {
+ let r = e.current, i = CS(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!dT || vT(dT, e)) && gT(kS(i), e.current) && (dT = e);
+ (!fT || yT(fT, e)) && _T(jS(i), e.current) && (fT = e);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
};
- }, [e, n]), LS(() => {
- let r = xS(e.current ? e.current[0] : void 0);
+ }, [e, n]), zS(() => {
+ let r = CS(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !mT(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !hT(e) || t.isComposing) return;
let n = r.activeElement;
- if (!_T(n, e) || !ST(e)) return;
- let i = ET.getTreeNode(e);
+ if (!vT(n, e) || !CT(e)) return;
+ let i = DT.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = wT(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = TT(r.body, { tabbable: !0 });
o.currentNode = n;
let s = t.shiftKey ? o.previousNode() : o.nextNode();
- if (a && a.isConnected && a !== r.body || (a = void 0, i.nodeToRestore = void 0), (!s || !_T(s, e)) && a) {
+ if (a && a.isConnected && a !== r.body || (a = void 0, i.nodeToRestore = void 0), (!s || !vT(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (_T(s, e));
- t.preventDefault(), t.stopPropagation(), s ? yT(s, !0) : hT(a) ? yT(a, !0) : n.blur();
+ while (vT(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? bT(s, !0) : gT(a) ? bT(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -24427,31 +24427,31 @@ function Zoe(e, t, n) {
e,
t,
n
- ]), LS(() => {
- let n = xS(e.current ? e.current[0] : void 0);
+ ]), zS(() => {
+ let n = CS(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = ET.getTreeNode(e);
+ let i = DT.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = ET.getTreeNode(e);
+ let r = DT.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = kS(n);
- if (t && i && (a && _T(a, e) || a === n.body && ST(e))) {
- let t = ET.clone();
+ let i = r.nodeToRestore, a = jS(n);
+ if (t && i && (a && vT(a, e) || a === n.body && CT(e))) {
+ let t = DT.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- CT(n.nodeToRestore);
+ wT(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && ET.getTreeNode(n.scopeRef)) {
- let e = bT(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && DT.getTreeNode(n.scopeRef)) {
+ let e = xT(n.scopeRef.current, !0);
if (e) {
- CT(e);
+ wT(e);
return;
}
}
@@ -24463,21 +24463,21 @@ function Zoe(e, t, n) {
};
}, [e, t]);
}
-function CT(e) {
- e.dispatchEvent(new CustomEvent(uT, {
+function wT(e) {
+ e.dispatchEvent(new CustomEvent(dT, {
bubbles: !0,
cancelable: !0
- })) && yT(e);
+ })) && bT(e);
}
-function wT(e, t, n) {
- let r = t?.tabbable ? FS : PS, i = xS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = cT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return OS(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Koe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || gT(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function TT(e, t, n) {
+ let r = t?.tabbable ? LS : IS, i = CS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = lT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return AS(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Goe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || _T(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var Qoe = class e {
+var Zoe = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new TT({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new ET({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -24488,7 +24488,7 @@ var Qoe = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new TT({ scopeRef: e });
+ let i = new ET({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -24499,7 +24499,7 @@ var Qoe = class e {
let t = this.fastMap.get(e);
if (!t) return;
let n = t.parent;
- for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && gT(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
+ for (let e of this.traverse()) e !== t && t.nodeToRestore && e.nodeToRestore && t.scopeRef && t.scopeRef.current && _T(e.nodeToRestore, t.scopeRef.current) && (e.nodeToRestore = t.nodeToRestore);
let r = t.children;
n && (n.removeChild(t), r.size > 0 && r.forEach((e) => n && n.addChild(e))), this.fastMap.delete(t.scopeRef);
}
@@ -24511,7 +24511,7 @@ var Qoe = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, TT = class {
+}, ET = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -24521,13 +24521,13 @@ var Qoe = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, ET = new Qoe(), DT = 7e3, OT = null;
-function kT(e, t = "assertive", n = DT) {
- OT ? OT.announce(e, t, n) : (OT = new $oe(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? OT.announce(e, t, n) : setTimeout(() => {
- OT?.isAttached() && OT?.announce(e, t, n);
+}, DT = new Zoe(), OT = 7e3, kT = null;
+function AT(e, t = "assertive", n = OT) {
+ kT ? kT.announce(e, t, n) : (kT = new Qoe(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? kT.announce(e, t, n) : setTimeout(() => {
+ kT?.isAttached() && kT?.announce(e, t, n);
}, 100));
}
-var $oe = class {
+var Qoe = class {
constructor() {
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
border: 0,
@@ -24552,7 +24552,7 @@ var $oe = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = DT) {
+ announce(e, t = "assertive", n = OT) {
if (!this.node) return;
let r = document.createElement("div");
typeof e == "object" ? (r.setAttribute("role", "img"), r.setAttribute("aria-labelledby", e["aria-labelledby"])) : r.textContent = e, t === "assertive" ? this.assertiveLog?.appendChild(r) : this.politeLog?.appendChild(r), e !== "" && setTimeout(() => {
@@ -24564,8 +24564,8 @@ var $oe = class {
}
};
// node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function AT(e, t) {
- let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = Ew(e);
+function jT(e, t) {
+ let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = Dw(e);
(0, F.useEffect)(() => (n.current = !0, () => {
n.current = !1;
}), []), (0, F.useEffect)(() => {
@@ -24574,30 +24574,30 @@ function AT(e, t) {
}, t);
}
// node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function jT(e, t) {
+function MT(e, t) {
if (!e) return !1;
let n = window.getComputedStyle(e), r = document.scrollingElement || document.documentElement, i = /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
return e === r && n.overflow !== "hidden" && (i = !0), i && t && (i = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), i;
}
// node_modules/react-aria/dist/private/utils/getScrollParent.mjs
-function MT(e, t) {
+function NT(e, t) {
let n = e;
- for (jT(n, t) && (n = n.parentElement); n && !jT(n, t);) n = n.parentElement;
+ for (MT(n, t) && (n = n.parentElement); n && !MT(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
// node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function NT(e, t) {
+function PT(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (jT(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (MT(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
// node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function PT(e, t, n = {}) {
- e !== t && ese(e, t, t.getBoundingClientRect(), n);
+function FT(e, t, n = {}) {
+ e !== t && $oe(e, t, t.getBoundingClientRect(), n);
}
-function ese(e, t, n, r = {}) {
+function $oe(e, t, n, r = {}) {
let { block: i = "nearest", inline: a = "nearest" } = r, o = e.scrollTop, s = e.scrollLeft, c = e.getBoundingClientRect(), l = window.getComputedStyle(t), u = window.getComputedStyle(e), d = document.scrollingElement || document.documentElement, f = e === d, p = e === d ? 0 : c.top, m = e === d ? e.clientHeight : c.bottom, h = e === d ? 0 : c.left, g = e === d ? e.clientWidth : c.right, _ = parseFloat(l.scrollMarginTop) || 0, v = parseFloat(l.scrollMarginBottom) || 0, y = parseFloat(l.scrollMarginLeft) || 0, b = parseFloat(l.scrollMarginRight) || 0, x = parseFloat(u.scrollPaddingTop) || 0, S = parseFloat(u.scrollPaddingBottom) || 0, C = parseFloat(u.scrollPaddingLeft) || 0, w = parseFloat(u.scrollPaddingRight) || 0, T = parseFloat(u.borderTopWidth) || 0, E = parseFloat(u.borderBottomWidth) || 0, D = parseFloat(u.borderLeftWidth) || 0, O = parseFloat(u.borderRightWidth) || 0, k = n.top - _, A = n.bottom + v, j = n.left - y, M = n.right + b, ee = e === d ? 0 : D + O, N = e === d ? 0 : T + E, te = e === d ? 0 : e.offsetWidth - e.clientWidth - ee, P = e === d ? 0 : e.offsetHeight - e.clientHeight - N, ne = p + (f ? 0 : T) + x, re = m - (f ? 0 : E) - S - P, F = h + (f ? 0 : D) + C, I = g - (f ? 0 : O) - w;
- qS() && JS() || u.direction === "ltr" ? I -= te : u.direction === "rtl" && (F += te);
+ YS() && XS() || u.direction === "ltr" ? I -= te : u.direction === "rtl" && (F += te);
let ie = k < ne || A > re, ae = j < F || M > I;
if (ie && i === "start") o += k - ne;
else if (ie && i === "center") o += (k + A) / 2 - (ne + re) / 2;
@@ -24618,7 +24618,7 @@ function ese(e, t, n, r = {}) {
top: o
});
}
-function FT(e, t = {}) {
+function IT(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -24631,45 +24631,45 @@ function FT(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = NT(e, !0);
- for (let t of i) PT(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = PT(e, !0);
+ for (let t of i) FT(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? NT(n, !0) : [];
- for (let e of i) PT(e, n, {
+ i = n ? PT(n, !0) : [];
+ for (let e of i) FT(e, n, {
block: "center",
inline: "center"
});
- for (let t of NT(e, !0)) PT(t, e);
+ for (let t of PT(e, !0)) FT(t, e);
}
}
}
}
// node_modules/react-aria/dist/private/utils/useDescription.mjs
-var tse = 0, IT = /* @__PURE__ */ new Map();
-function LT(e) {
+var ese = 0, LT = /* @__PURE__ */ new Map();
+function RT(e) {
let [t, n] = (0, F.useState)();
- return LS(() => {
+ return zS(() => {
if (!e) return;
- let t = IT.get(e);
+ let t = LT.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${tse++}`;
+ let r = `react-aria-description-${ese++}`;
n(r);
let i = document.createElement("div");
i.id = r, i.style.display = "none", i.textContent = e, document.body.appendChild(i), t = {
refCount: 0,
element: i
- }, IT.set(e, t);
+ }, LT.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), IT.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), LT.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
// node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function RT(e, t, n) {
- let r = Ew((e) => {
+function zT(e, t, n) {
+ let r = Dw((e) => {
n && !e.defaultPrevented && n(t);
});
(0, F.useEffect)(() => {
@@ -24680,21 +24680,21 @@ function RT(e, t, n) {
}, [e]);
}
// node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function zT(e, t, n) {
+function BT(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- LS(() => {
+ zS(() => {
if (r === "native" && n?.current && "setCustomValidity" in n.current && !n.current.disabled) {
let e = t.realtimeValidation.isInvalid ? t.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
- n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(rse(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(nse(n.current));
}
});
- let a = (0, F.useRef)(!1), o = Ew(() => {
+ let a = (0, F.useRef)(!1), o = Dw(() => {
a.current || t.resetValidation();
- }), s = Ew((e) => {
+ }), s = Dw((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && ise(r) === n.current && (i ? i() : n.current?.focus(), CC("keyboard")), e.preventDefault();
- }), c = Ew(() => {
+ !e.defaultPrevented && n && r && rse(r) === n.current && (i ? i() : n.current?.focus(), wC("keyboard")), e.preventDefault();
+ }), c = Dw(() => {
t.commitValidation();
});
(0, F.useEffect)(() => {
@@ -24708,7 +24708,7 @@ function zT(e, t, n) {
};
}, [n, r]);
}
-function nse(e) {
+function tse(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -24724,14 +24724,14 @@ function nse(e) {
valid: t.valid
};
}
-function rse(e) {
+function nse(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: nse(e),
+ validationDetails: tse(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function ise(e) {
+function rse(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -24739,23 +24739,23 @@ function ise(e) {
return null;
}
// node_modules/react-aria/dist/private/utils/useSlot.mjs
-function ase(e = !0) {
+function ise(e = !0) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return LS(() => {
+ return zS(() => {
r.current || n(!1);
}, []), [i, t];
}
-function BT(e = !0) {
- let t = RC(), [n, r] = ase(e);
+function VT(e = !0) {
+ let t = zC(), [n, r] = ise(e);
return {
id: r ? t : void 0,
ref: n
};
}
// node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var VT = {
+var HT = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -24767,18 +24767,18 @@ var VT = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, HT = {
- ...VT,
+}, UT = {
+ ...HT,
customError: !0,
valid: !1
-}, UT = {
+}, WT = {
isInvalid: !1,
- validationDetails: VT,
+ validationDetails: HT,
validationErrors: []
-}, ose = (0, F.createContext)({}), WT = "__reactAriaFormValidationState";
-function GT(e) {
+}, ase = (0, F.createContext)({}), GT = "__reactAriaFormValidationState";
+function KT(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[WT];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[GT];
return {
realtimeValidation: t,
displayValidation: n,
@@ -24787,70 +24787,70 @@ function GT(e) {
commitValidation: a
};
}
- return sse(e);
+ return ose(e);
}
-function sse(e) {
+function ose(e) {
let { isInvalid: t, validationState: n, name: r, value: i, builtinValidation: a, validate: o, validationBehavior: s = "aria" } = e;
n && (t ||= n === "invalid");
let c = t === void 0 ? null : {
isInvalid: t,
validationErrors: [],
- validationDetails: HT
- }, l = (0, F.useMemo)(() => !o || i == null ? null : qT(cse(o, i)), [o, i]);
+ validationDetails: UT
+ }, l = (0, F.useMemo)(() => !o || i == null ? null : JT(sse(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, F.useContext)(ose), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => KT(u[e])) : KT(u[r]) : [], [u, r]), [f, p] = (0, F.useState)(u), [m, h] = (0, F.useState)(!1);
+ let u = (0, F.useContext)(ase), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => qT(u[e])) : qT(u[r]) : [], [u, r]), [f, p] = (0, F.useState)(u), [m, h] = (0, F.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, F.useMemo)(() => qT(m ? [] : d), [m, d]), _ = (0, F.useRef)(UT), [v, y] = (0, F.useState)(UT), b = (0, F.useRef)(UT), x = () => {
+ let g = (0, F.useMemo)(() => JT(m ? [] : d), [m, d]), _ = (0, F.useRef)(WT), [v, y] = (0, F.useState)(WT), b = (0, F.useRef)(WT), x = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- JT(e, b.current) || (b.current = e, y(e));
+ YT(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, F.useState)(!1);
return (0, F.useEffect)(x), {
- realtimeValidation: c || g || l || a || UT,
+ realtimeValidation: c || g || l || a || WT,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !JT(v, e) ? y(e) : _.current = e;
+ s === "aria" && !YT(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = UT;
- JT(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = WT;
+ YT(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function KT(e) {
+function qT(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function cse(e, t) {
+function sse(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return KT(n);
+ if (n && typeof n != "boolean") return qT(n);
}
return [];
}
-function qT(e) {
+function JT(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: HT
+ validationDetails: UT
} : null;
}
-function JT(e, t) {
+function YT(e, t) {
return e === t || !!e && !!t && e.isInvalid === t.isInvalid && e.validationErrors.length === t.validationErrors.length && e.validationErrors.every((e, n) => e === t.validationErrors[n]) && Object.entries(e.validationDetails).every(([e, n]) => t.validationDetails[e] === n);
}
// node_modules/react-aria/dist/private/toggle/useToggle.mjs
-function YT(e, t, n) {
- let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = GT({
+function XT(e, t, n) {
+ let { isDisabled: r = !1, isReadOnly: i = !1, value: a, name: o, form: s, children: c, isRequired: l, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": f, "aria-describedby": p, onPressStart: m, onPressEnd: h, onPressChange: g, onPress: _, onPressUp: v, onClick: y } = e, b = KT({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- zT(e, b, n);
+ BT(e, b, n);
let w = (e) => {
e.stopPropagation(), t.setSelected(G(e).checked);
- }, { pressProps: T, isPressed: E } = nT({
+ }, { pressProps: T, isPressed: E } = rT({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -24858,7 +24858,7 @@ function YT(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [D, O] = (0, F.useState)(!1), { pressProps: k } = nT({
+ }), [D, O] = (0, F.useState)(!1), { pressProps: k } = rT({
onPressStart(e) {
e.pointerType === "keyboard" || e.pointerType === "virtual" ? e.continuePropagation() : (m?.(e), g?.(!0), O(!0));
},
@@ -24875,13 +24875,13 @@ function YT(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [WT]: i } = e, { commitValidation: a } = i || b;
+ let { [GT]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: A } = QC(e, n), j = K(T, A), M = Hw(e, { labelable: !0 });
- RT(n, t.defaultSelected, t.setSelected);
- let ee = BT(), N = BT();
+ }), { focusableProps: A } = $C(e, n), j = K(T, A), M = Uw(e, { labelable: !0 });
+ zT(n, t.defaultSelected, t.setSelected);
+ let ee = VT(), N = VT();
return {
labelProps: K(k, { onClick: (e) => e.preventDefault() }),
inputProps: K(M, {
@@ -24917,8 +24917,8 @@ function YT(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function XT(e, t, n) {
- let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = YT(e, t, n), { isIndeterminate: m } = e;
+function ZT(e, t, n) {
+ let { labelProps: r, inputProps: i, descriptionProps: a, errorMessageProps: o, isSelected: s, isPressed: c, isDisabled: l, isReadOnly: u, isInvalid: d, validationErrors: f, validationDetails: p } = XT(e, t, n), { isIndeterminate: m } = e;
return (0, F.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
@@ -24936,17 +24936,17 @@ function XT(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/utils.mjs
-var lse = /* @__PURE__ */ new WeakMap();
+var cse = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/label/useLabel.mjs
-function ZT(e) {
+function QT(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = RC(t);
- let o = RC(), s = {};
+ t = zC(t);
+ let o = zC(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = Ow({
+ let c = kw({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -24957,13 +24957,13 @@ function ZT(e) {
};
}
// node_modules/react-aria/dist/private/label/useField.mjs
-function QT(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = ZT(e), s = zC([
+function $T(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = QT(e), s = BC([
!!t,
!!n,
r,
i
- ]), c = zC([
+ ]), c = BC([
!!t,
!!n,
r,
@@ -24981,26 +24981,26 @@ function QT(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function $T(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Zw(), c = (0, F.useCallback)((e) => {
- OS(e.currentTarget, G(e)) && a.current.isFocusWithin && !OS(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function eE(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Qw(), c = (0, F.useCallback)((e) => {
+ AS(e.currentTarget, G(e)) && a.current.isFocusWithin && !AS(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = BS(c), u = (0, F.useCallback)((e) => {
- if (!OS(e.currentTarget, G(e))) return;
- let t = G(e), n = xS(t), s = kS(n);
+ ]), l = HS(c), u = (0, F.useCallback)((e) => {
+ if (!AS(e.currentTarget, G(e))) return;
+ let t = G(e), n = CS(t), s = jS(n);
if (!a.current.isFocusWithin && s === t) {
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
let t = e.currentTarget;
o(n, "focus", (e) => {
let r = G(e);
- if (a.current.isFocusWithin && !OS(t, r)) {
+ if (a.current.isFocusWithin && !AS(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- zS(e, t);
- let i = RS(e);
+ VS(e, t);
+ let i = BS(e);
c(i);
}
}, { capture: !0 });
@@ -25021,14 +25021,14 @@ function $T(e) {
} };
}
// node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var use = F.useInsertionEffect ?? F.useLayoutEffect;
-function eE(e, t, n) {
+var lse = F.useInsertionEffect ?? F.useLayoutEffect;
+function tE(e, t, n) {
let [r, i] = (0, F.useState)(e || t), a = (0, F.useRef)(r), o = (0, F.useRef)(e !== void 0), s = e !== void 0;
(0, F.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- use(() => {
+ lse(() => {
a.current = c;
});
let [, l] = (0, F.useReducer)(() => ({}), {});
@@ -25038,8 +25038,8 @@ function eE(e, t, n) {
}, [n])];
}
// node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function tE(e = {}) {
- let { isReadOnly: t } = e, [n, r] = eE(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, F.useState)(n);
+function nE(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = tE(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, F.useState)(n);
function a(e) {
t || r(e);
}
@@ -25054,26 +25054,26 @@ function tE(e = {}) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function dse(e, t, n) {
- let r = tE({
+function use(e, t, n) {
+ let r = nE({
isReadOnly: e.isReadOnly || t.isReadOnly,
isSelected: t.isSelected(e.value),
defaultSelected: t.defaultValue.includes(e.value),
onChange(n) {
n ? t.addValue(e.value) : t.removeValue(e.value), e.onChange && e.onChange(n);
}
- }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = lse.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = cse.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = GT({
+ let { realtimeValidation: l } = KT({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, F.useRef)(UT), d = () => {
+ }), u = (0, F.useRef)(WT), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
(0, F.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = XT({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = ZT({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -25081,7 +25081,7 @@ function dse(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [WT]: {
+ [GT]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -25104,10 +25104,10 @@ function dse(e, t, n) {
};
}
// node_modules/react-stately/dist/private/utils/number.mjs
-function nE(e, t = -Infinity, n = Infinity) {
+function rE(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
-function rE(e, t) {
+function iE(e, t) {
let n = e, r = 0, i = t.toString(), a = i.toLowerCase().indexOf("e-");
if (a > 0) r = Math.abs(Math.floor(Math.log10(Math.abs(t)))) + a;
else {
@@ -25120,23 +25120,23 @@ function rE(e, t) {
}
return n;
}
-function iE(e, t, n, r) {
+function aE(e, t, n, r) {
t = Number(t), n = Number(n);
- let i = (e - (isNaN(t) ? 0 : t)) % r, a = rE(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
- return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(rE(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(rE((n - t) / r, r)) * r), a = rE(a, r), a;
+ let i = (e - (isNaN(t) ? 0 : t)) % r, a = iE(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
+ return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(iE(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(iE((n - t) / r, r)) * r), a = iE(a, r), a;
}
// node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
-var aE = /* @__PURE__ */ new Map(), oE = !1;
+var oE = /* @__PURE__ */ new Map(), sE = !1;
try {
- oE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
+ sE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
} catch {}
-var fse = class {
+var dse = class {
constructor(e, t = {}) {
- this.numberFormatter = pse(e, t), this.options = t;
+ this.numberFormatter = fse(e, t), this.options = t;
}
format(e) {
let t = "";
- return t = !oE && this.options.signDisplay != null ? mse(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
+ return t = !sE && this.options.signDisplay != null ? pse(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
}
formatToParts(e) {
return this.numberFormatter.formatToParts(e);
@@ -25168,21 +25168,21 @@ var fse = class {
}
resolvedOptions() {
let e = this.numberFormatter.resolvedOptions();
- return !oE && this.options.signDisplay != null && (e = {
+ return !sE && this.options.signDisplay != null && (e = {
...e,
signDisplay: this.options.signDisplay
}), e;
}
};
-function pse(e, t = {}) {
+function fse(e, t = {}) {
let { numberingSystem: n } = t;
n && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${n}`);
let r = e + (t ? Object.entries(t).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (aE.has(r)) return aE.get(r);
+ if (oE.has(r)) return oE.get(r);
let i = new Intl.NumberFormat(e, t);
- return aE.set(r, i), i;
+ return oE.set(r, i), i;
}
-function mse(e, t, n) {
+function pse(e, t, n) {
if (t === "auto") return e.format(n);
if (t === "never") return e.format(Math.abs(n));
{
@@ -25195,12 +25195,12 @@ function mse(e, t, n) {
}
}
// node_modules/react-aria/dist/private/interactions/useMove.mjs
-function sE(e) {
+function cE(e) {
let { onMoveStart: t, onMove: n, onMoveEnd: r } = e, i = (0, F.useRef)({
didMove: !1,
lastPosition: null,
id: null
- }), { addGlobalListener: a, removeGlobalListener: o } = Zw(), s = Ew((0, F.useCallback)((e, r, a, o) => {
+ }), { addGlobalListener: a, removeGlobalListener: o } = Qw(), s = Dw((0, F.useCallback)((e, r, a, o) => {
(a !== 0 || o !== 0) && (i.current.didMove || (i.current.didMove = !0, t?.({
type: "movestart",
pointerType: r,
@@ -25222,8 +25222,8 @@ function sE(e) {
t,
n,
i
- ])), c = Ew((0, F.useCallback)((e, t) => {
- qw(), i.current.didMove && r?.({
+ ])), c = Dw((0, F.useCallback)((e, t) => {
+ Jw(), i.current.didMove && r?.({
type: "moveend",
pointerType: t,
shiftKey: e.shiftKey,
@@ -25234,7 +25234,7 @@ function sE(e) {
}, [r, i]));
return { moveProps: (0, F.useMemo)(() => {
let e = {}, t = () => {
- Kw(), i.current.didMove = !1;
+ qw(), i.current.didMove = !1;
};
{
let n = (e) => {
@@ -25249,7 +25249,7 @@ function sE(e) {
if (e.pointerId === i.current.id) {
let t = e.pointerType || "mouse";
c(e, t), i.current.id = null;
- let a = SS(G(e));
+ let a = wS(G(e));
o(a, "pointermove", n, !1), o(a, "pointerup", r, !1), o(a, "pointercancel", r, !1);
}
};
@@ -25259,7 +25259,7 @@ function sE(e) {
pageX: e.pageX,
pageY: e.pageY
}, i.current.id = e.pointerId;
- let o = SS(G(e));
+ let o = wS(G(e));
a(o, "pointermove", n, !1), a(o, "pointerup", r, !1), a(o, "pointercancel", r, !1);
}
};
@@ -25292,7 +25292,7 @@ function sE(e) {
]) };
}
// node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var cE = {
+var lE = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -25304,37 +25304,37 @@ var cE = {
width: "1px",
whiteSpace: "nowrap"
};
-function lE(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = $T({
+function uE(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = eE({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, F.useMemo)(() => r ? t : t ? {
- ...cE,
+ ...lE,
...t
- } : cE, [r]);
+ } : lE, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function uE(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = lE(e);
+function dE(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = uE(e);
return /*#__PURE__*/ F.createElement(n, K(a, o), t);
}
// node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function hse(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = eE(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = QC(e, t), d = GT({
+function mse(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = tE(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = $C(e, t), d = KT({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = QT({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = $T({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = Hw(e, { labelable: !0 }), b = {
+ }), y = Uw(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, F.useState)(c);
- return RT(t, e.defaultValue ?? x, l), zT(e, d, t), {
+ return zT(t, e.defaultValue ?? x, l), BT(e, d, t), {
labelProps: h,
inputProps: K(y, n === "input" ? b : void 0, {
disabled: r,
@@ -25380,26 +25380,26 @@ function hse(e, t) {
};
}
// node_modules/react-aria/dist/private/i18n/useNumberFormatter.mjs
-function gse(e = {}) {
- let { locale: t } = Pw();
- return (0, F.useMemo)(() => new fse(t, e), [t, e]);
+function hse(e = {}) {
+ let { locale: t } = Fw();
+ return (0, F.useMemo)(() => new dse(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/slider/utils.mjs
-var dE = /* @__PURE__ */ new WeakMap();
-function fE(e, t) {
- let n = dE.get(e);
+var fE = /* @__PURE__ */ new WeakMap();
+function pE(e, t) {
+ let n = fE.get(e);
if (!n) throw Error("Unknown slider state");
return `${n.id}-${t}`;
}
// node_modules/react-aria/dist/private/slider/useSlider.mjs
-function _se(e, t, n) {
- let { labelProps: r, fieldProps: i } = ZT(e), a = e.orientation === "vertical";
- dE.set(t, {
+function gse(e, t, n) {
+ let { labelProps: r, fieldProps: i } = QT(e), a = e.orientation === "vertical";
+ fE.set(t, {
id: r.id ?? i.id,
"aria-describedby": e["aria-describedby"],
"aria-details": e["aria-details"]
});
- let { direction: o } = Pw(), { addGlobalListener: s, removeGlobalListener: c } = Zw(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = sE({
+ let { direction: o } = Fw(), { addGlobalListener: s, removeGlobalListener: c } = Qw(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = cE({
onMoveStart() {
d.current = null;
},
@@ -25409,7 +25409,7 @@ function _se(e, t, n) {
d.current == null && l.current != null && (d.current = t.getThumbPercent(l.current) * s);
let c = a ? r : e;
if ((a || u) && (c = -c), d.current += c, l.current != null && n.current) {
- let e = nE(d.current / s, 0, 1);
+ let e = rE(d.current / s, 0, 1);
t.setThumbPercent(l.current, e);
}
},
@@ -25433,7 +25433,7 @@ function _se(e, t, n) {
(e.pointerId ?? e.changedTouches?.[0].identifier) === p.current && (l.current != null && (t.setThumbDragging(l.current, !1), l.current = null), c(window, "mouseup", h, !1), c(window, "touchend", h, !1), c(window, "pointerup", h, !1));
};
return "htmlFor" in r && r.htmlFor && (delete r.htmlFor, r.onClick = () => {
- document.getElementById(fE(t, 0))?.focus(), CC("keyboard");
+ document.getElementById(pE(t, 0))?.focus(), wC("keyboard");
}), {
labelProps: r,
groupProps: {
@@ -25456,26 +25456,26 @@ function _se(e, t, n) {
}
}, f),
outputProps: {
- htmlFor: t.values.map((e, n) => fE(t, n)).join(" "),
+ htmlFor: t.values.map((e, n) => pE(t, n)).join(" "),
"aria-live": "off"
}
};
}
// node_modules/react-aria/dist/private/slider/useSliderThumb.mjs
-function vse(e, t) {
- let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = Pw(), { addGlobalListener: m, removeGlobalListener: h } = Zw(), g = dE.get(t), { labelProps: _, fieldProps: v } = ZT({
+function _se(e, t) {
+ let { index: n = 0, isRequired: r, validationState: i, isInvalid: a, trackRef: o, inputRef: s, orientation: c = t.orientation, name: l, form: u } = e, d = e.isDisabled || t.isDisabled, f = c === "vertical", { direction: p } = Fw(), { addGlobalListener: m, removeGlobalListener: h } = Qw(), g = fE.get(t), { labelProps: _, fieldProps: v } = QT({
...e,
- id: fE(t, n),
+ id: pE(t, n),
"aria-labelledby": `${g.id} ${e["aria-labelledby"] ?? ""}`.trim()
}), y = t.values[n], b = (0, F.useCallback)(() => {
- s.current && bS(s.current);
+ s.current && SS(s.current);
}, [s]), x = t.focusedThumb === n;
(0, F.useEffect)(() => {
x && b();
}, [x, b]);
let S = p === "rtl", C = (0, F.useRef)(null), w = (e) => {
t.setThumbDragging(n, !0), e(), t.setThumbDragging(n, !1);
- }, { keyboardProps: T } = JC({
+ }, { keyboardProps: T } = YC({
shortcuts: {
PageUp: () => w(() => {
t.incrementThumb(n, t.pageSize);
@@ -25491,7 +25491,7 @@ function vse(e, t) {
})
},
allowRepeats: !0
- }), { moveProps: E } = sE({
+ }), { moveProps: E } = cE({
onMoveStart() {
C.current = null, t.setThumbDragging(n, !0);
},
@@ -25502,7 +25502,7 @@ function vse(e, t) {
if (C.current ??= s(n) * g, i === "keyboard") e > 0 && S || e < 0 && !S || r > 0 ? l(n, a ? p : d) : u(n, a ? p : d);
else {
let t = f ? r : e;
- (f || S) && (t = -t), C.current += t, c(n, nE(C.current / g, 0, 1));
+ (f || S) && (t = -t), C.current += t, c(n, rE(C.current / g, 0, 1));
}
},
onMoveEnd() {
@@ -25510,7 +25510,7 @@ function vse(e, t) {
}
});
t.setThumbEditable(n, !d);
- let { focusableProps: D } = QC(K(e, {
+ let { focusableProps: D } = $C(K(e, {
onFocus: () => t.setFocusedThumb(n),
onBlur: () => t.setFocusedThumb(void 0)
}), s), O = (0, F.useRef)(void 0), k = (e) => {
@@ -25530,7 +25530,7 @@ function vse(e, t) {
k(e.changedTouches[0].identifier);
}
});
- return RT(s, t.defaultValues[n], (e) => {
+ return zT(s, t.defaultValues[n], (e) => {
t.setThumbValue(n, e);
}), {
inputProps: K(D, v, {
@@ -25570,42 +25570,42 @@ function vse(e, t) {
};
}
// node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var yse = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function pE(e) {
+var vse = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function mE(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var mE = /* @__PURE__ */ new WeakMap(), hE = [];
-function gE(e, t) {
- let n = SS(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && yse, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
+var hE = /* @__PURE__ */ new WeakMap(), gE = [];
+function _E(e, t) {
+ let n = wS(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && vse, o = new Set(e), s = /* @__PURE__ */ new Set(), c = (e) => a && e instanceof n.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", l = (e, t) => {
a && e instanceof n.HTMLElement ? e.inert = t : t ? e.setAttribute("aria-hidden", "true") : (e.removeAttribute("aria-hidden"), e instanceof n.HTMLElement && (e.inert = !1));
}, u = /* @__PURE__ */ new Set();
- if (DS()) {
+ if (kS()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; wS(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; ES(e) && e !== t;) u.add(e), e = e.host.getRootNode();
}
}
let d = (e) => {
for (let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) o.add(t);
let t = (e) => {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
- for (let t of o) if (OS(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (AS(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = cT(xS(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = lT(CS(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
if (r === NodeFilter.FILTER_ACCEPT && f(e), r !== NodeFilter.FILTER_REJECT) {
let e = n.nextNode();
for (; e != null;) f(e), e = n.nextNode();
}
}, f = (e) => {
- let t = mE.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), mE.set(e, t + 1));
+ let t = hE.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), hE.set(e, t + 1));
};
- hE.length && hE[hE.length - 1].disconnect(), d(i);
+ gE.length && gE[gE.length - 1].disconnect(), d(i);
let p = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => OS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && pE(e) ? o.add(e) : e instanceof Element && d(e);
- if (DS()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => AS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && mE(e) ? o.add(e) : e instanceof Element && d(e);
+ if (kS()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -25618,11 +25618,11 @@ function gE(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (DS()) for (let e of u) {
+ if (kS()) for (let e of u) {
let t = new MutationObserver((e) => {
for (let t of e) if (t.type === "childList") {
- if (t.target.isConnected && ![...o, ...s].some((e) => OS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && pE(e) ? o.add(e) : e instanceof Element && d(e);
- if (DS()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => AS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && mE(e) ? o.add(e) : e instanceof Element && d(e);
+ if (kS()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -25648,56 +25648,56 @@ function gE(e, t) {
p.disconnect();
}
};
- return hE.push(h), () => {
- if (p.disconnect(), DS()) for (let e of m) e.disconnect();
+ return gE.push(h), () => {
+ if (p.disconnect(), kS()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = mE.get(e);
- t != null && (t === 1 ? (l(e, !1), mE.delete(e)) : mE.set(e, t - 1));
+ let t = hE.get(e);
+ t != null && (t === 1 ? (l(e, !1), hE.delete(e)) : hE.set(e, t - 1));
}
- h === hE[hE.length - 1] ? (hE.pop(), hE.length && hE[hE.length - 1].observe()) : hE.splice(hE.indexOf(h), 1);
+ h === gE[gE.length - 1] ? (gE.pop(), gE.length && gE[gE.length - 1].observe()) : gE.splice(gE.indexOf(h), 1);
};
}
-function _E(e) {
- let t = hE[hE.length - 1];
+function vE(e) {
+ let t = gE[gE.length - 1];
if (t && !t.visibleNodes.has(e)) return t.visibleNodes.add(e), () => {
t.visibleNodes.delete(e);
};
}
// node_modules/react-aria/dist/private/listbox/utils.mjs
-var vE = /* @__PURE__ */ new WeakMap();
-function bse(e) {
+var yE = /* @__PURE__ */ new WeakMap();
+function yse(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function xse(e, t) {
- let n = vE.get(e);
+function bse(e, t) {
+ let n = yE.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${bse(t)}`;
+ return `${n.id}-option-${yse(t)}`;
}
// node_modules/react-aria/dist/private/selection/utils.mjs
-function yE(e) {
- return Sae() ? e.altKey : e.ctrlKey;
+function bE(e) {
+ return bae() ? e.altKey : e.ctrlKey;
}
-function bE(e, t) {
+function xE(e, t) {
let n = `[data-key="${CSS.escape(String(t))}"]`, r = e.current?.dataset.collection;
return r && (n = `[data-collection="${CSS.escape(r)}"]${n}`), e.current?.querySelector(n);
}
-var xE = /* @__PURE__ */ new WeakMap();
-function Sse(e) {
- let t = RC();
- return xE.set(e, t), t;
+var SE = /* @__PURE__ */ new WeakMap();
+function xse(e) {
+ let t = zC();
+ return SE.set(e, t), t;
}
-function Cse(e) {
- return xE.get(e);
+function Sse(e) {
+ return SE.get(e);
}
// node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var SE = class {
+var CE = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : bE(this.ref, e);
+ let n = e == null ? null : xE(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -25723,12 +25723,12 @@ var SE = class {
height: e?.clientHeight ?? 0
};
}
-}, CE = class {
+}, wE = class {
constructor(...e) {
if (e.length === 1) {
let t = e[0];
- this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new SE(t.ref);
- } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new SE(this.ref);
+ this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new CE(t.ref);
+ } else this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new CE(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -25768,14 +25768,14 @@ var SE = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = bE(this.ref, e);
+ let t = this.getNextKey(e), n = xE(this.ref, e);
if (t != null) {
- let e = bE(this.ref, t);
+ let e = xE(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = bE(this.ref, r);
+ let e = xE(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -25809,7 +25809,7 @@ var SE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !jT(t)) return this.getFirstKey();
+ if (t && !MT(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -25824,7 +25824,7 @@ var SE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !jT(t)) return this.getLastKey();
+ if (t && !MT(t)) return this.getLastKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.min(this.layoutDelegate.getContentSize().width, n.x - n.width + this.layoutDelegate.getVisibleRect().width);
@@ -25847,149 +25847,149 @@ var SE = class {
}
return null;
}
-}, wE = {};
-wE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, TE = {};
+TE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
// node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var TE = {};
-TE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
-// node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
var EE = {};
-EE = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
-// node_modules/react-aria/dist/private/intl/menu/da-DK.mjs
+EE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+// node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
var DE = {};
-DE = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
-// node_modules/react-aria/dist/private/intl/menu/de-DE.mjs
+DE = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+// node_modules/react-aria/dist/private/intl/menu/da-DK.mjs
var OE = {};
-OE = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
-// node_modules/react-aria/dist/private/intl/menu/el-GR.mjs
+OE = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+// node_modules/react-aria/dist/private/intl/menu/de-DE.mjs
var kE = {};
-kE = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
-// node_modules/react-aria/dist/private/intl/menu/en-US.mjs
+kE = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+// node_modules/react-aria/dist/private/intl/menu/el-GR.mjs
var AE = {};
-AE = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
-// node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
+AE = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+// node_modules/react-aria/dist/private/intl/menu/en-US.mjs
var jE = {};
-jE = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
-// node_modules/react-aria/dist/private/intl/menu/et-EE.mjs
+jE = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+// node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
var ME = {};
-ME = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
-// node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
+ME = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+// node_modules/react-aria/dist/private/intl/menu/et-EE.mjs
var NE = {};
-NE = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
-// node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs
+NE = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+// node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
var PE = {};
-PE = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
-// node_modules/react-aria/dist/private/intl/menu/he-IL.mjs
+PE = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+// node_modules/react-aria/dist/private/intl/menu/fr-FR.mjs
var FE = {};
-FE = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
-// node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
+FE = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+// node_modules/react-aria/dist/private/intl/menu/he-IL.mjs
var IE = {};
-IE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
-// node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs
+IE = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+// node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
var LE = {};
-LE = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
-// node_modules/react-aria/dist/private/intl/menu/it-IT.mjs
+LE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+// node_modules/react-aria/dist/private/intl/menu/hu-HU.mjs
var RE = {};
-RE = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
-// node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs
+RE = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+// node_modules/react-aria/dist/private/intl/menu/it-IT.mjs
var zE = {};
-zE = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
-// node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
+zE = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+// node_modules/react-aria/dist/private/intl/menu/ja-JP.mjs
var BE = {};
-BE = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
-// node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
+BE = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+// node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
var VE = {};
-VE = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
-// node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
+VE = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+// node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
var HE = {};
-HE = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
-// node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs
+HE = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+// node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
var UE = {};
-UE = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
-// node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
+UE = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+// node_modules/react-aria/dist/private/intl/menu/nb-NO.mjs
var WE = {};
-WE = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
-// node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs
+WE = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+// node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
var GE = {};
-GE = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
-// node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs
+GE = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+// node_modules/react-aria/dist/private/intl/menu/pl-PL.mjs
var KE = {};
-KE = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
-// node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs
+KE = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+// node_modules/react-aria/dist/private/intl/menu/pt-BR.mjs
var qE = {};
-qE = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
-// node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs
+qE = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+// node_modules/react-aria/dist/private/intl/menu/pt-PT.mjs
var JE = {};
-JE = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
-// node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs
+JE = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+// node_modules/react-aria/dist/private/intl/menu/ro-RO.mjs
var YE = {};
-YE = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
-// node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
+YE = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+// node_modules/react-aria/dist/private/intl/menu/ru-RU.mjs
var XE = {};
-XE = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
-// node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs
+XE = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+// node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
var ZE = {};
-ZE = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
-// node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs
+ZE = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+// node_modules/react-aria/dist/private/intl/menu/sl-SI.mjs
var QE = {};
-QE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
-// node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs
+QE = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+// node_modules/react-aria/dist/private/intl/menu/sr-SP.mjs
var $E = {};
-$E = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
-// node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs
+$E = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+// node_modules/react-aria/dist/private/intl/menu/sv-SE.mjs
var eD = {};
-eD = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
-// node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs
+eD = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+// node_modules/react-aria/dist/private/intl/menu/tr-TR.mjs
var tD = {};
-tD = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
-// node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
+tD = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+// node_modules/react-aria/dist/private/intl/menu/uk-UA.mjs
var nD = {};
-nD = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
-// node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
+nD = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+// node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
var rD = {};
-rD = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
-// node_modules/react-aria/dist/private/menu/intlStrings.mjs
+rD = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+// node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
var iD = {};
-iD = {
- "ar-AE": wE,
- "bg-BG": TE,
- "cs-CZ": EE,
- "da-DK": DE,
- "de-DE": OE,
- "el-GR": kE,
- "en-US": AE,
- "es-ES": jE,
- "et-EE": ME,
- "fi-FI": NE,
- "fr-FR": PE,
- "he-IL": FE,
- "hr-HR": IE,
- "hu-HU": LE,
- "it-IT": RE,
- "ja-JP": zE,
- "ko-KR": BE,
- "lt-LT": VE,
- "lv-LV": HE,
- "nb-NO": UE,
- "nl-NL": WE,
- "pl-PL": GE,
- "pt-BR": KE,
- "pt-PT": qE,
- "ro-RO": JE,
- "ru-RU": YE,
- "sk-SK": XE,
- "sl-SI": ZE,
- "sr-SP": QE,
- "sv-SE": $E,
- "tr-TR": eD,
- "uk-UA": tD,
- "zh-CN": nD,
- "zh-TW": rD
+iD = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+// node_modules/react-aria/dist/private/menu/intlStrings.mjs
+var aD = {};
+aD = {
+ "ar-AE": TE,
+ "bg-BG": EE,
+ "cs-CZ": DE,
+ "da-DK": OE,
+ "de-DE": kE,
+ "el-GR": AE,
+ "en-US": jE,
+ "es-ES": ME,
+ "et-EE": NE,
+ "fi-FI": PE,
+ "fr-FR": FE,
+ "he-IL": IE,
+ "hr-HR": LE,
+ "hu-HU": RE,
+ "it-IT": zE,
+ "ja-JP": BE,
+ "ko-KR": VE,
+ "lt-LT": HE,
+ "lv-LV": UE,
+ "nb-NO": WE,
+ "nl-NL": GE,
+ "pl-PL": KE,
+ "pt-BR": qE,
+ "pt-PT": JE,
+ "ro-RO": YE,
+ "ru-RU": XE,
+ "sk-SK": ZE,
+ "sl-SI": QE,
+ "sr-SP": $E,
+ "sv-SE": eD,
+ "tr-TR": tD,
+ "uk-UA": nD,
+ "zh-CN": rD,
+ "zh-TW": iD
};
// node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var wse = 500;
-function aD(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = wse, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Zw(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = nT({
+var Cse = 500;
+function oD(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Cse, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Qw(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = rT({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -25997,12 +25997,12 @@ function aD(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), xS(e.target).activeElement !== e.target && bS(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), CS(e.target).activeElement !== e.target && SS(e.target), a && a({
...e,
type: "longpress"
}), c.current = void 0;
}, o), e.pointerType === "touch" && l(e.target, "contextmenu", (e) => e.preventDefault(), { once: !0 });
- let t = SS(e.target);
+ let t = wS(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -26017,11 +26017,11 @@ function aD(e) {
});
}
});
- return { longPressProps: K(f, LT(a && !t ? s : void 0)) };
+ return { longPressProps: K(f, RT(a && !t ? s : void 0)) };
}
// node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function Tse(e) {
- let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = aD({
+function wse(e) {
+ let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = oD({
onLongPressStart() {
n.current = !1;
},
@@ -26033,7 +26033,7 @@ function Tse(e) {
});
}
});
- return t ? { contextMenuProps: K(qS() ? r : {}, {
+ return t ? { contextMenuProps: K(YS() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -26044,7 +26044,7 @@ function Tse(e) {
});
},
onKeyDown(e) {
- if (GS() && e.ctrlKey && e.key === "Enter") {
+ if (qS() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -26063,13 +26063,13 @@ function Tse(e) {
}) } : { contextMenuProps: {} };
}
// node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var oD = /* @__PURE__ */ new WeakMap();
-function Ese(e) {
+var sD = /* @__PURE__ */ new WeakMap();
+function Tse(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, F.useEffect)(() => !n || r === null ? void 0 : TS(AS(t.current), "scroll", (e) => {
+ (0, F.useEffect)(() => !n || r === null ? void 0 : DS(MS(t.current), "scroll", (e) => {
let n = G(e);
- if (!t.current || n instanceof Node && !OS(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || oD.get(t.current);
+ if (!t.current || n instanceof Node && !AS(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || sD.get(t.current);
i && i();
}, !0), [
n,
@@ -26078,14 +26078,14 @@ function Ese(e) {
]);
}
// node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function Dse(e, t, n) {
+function Ese(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, F.useEffect)(() => {
- n && n.current && oD.set(n.current, t.close);
+ n && n.current && sD.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = RC();
+ let o = zC();
return {
triggerProps: {
"aria-haspopup": a,
@@ -26097,14 +26097,14 @@ function Dse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function Ose(e) {
+function Dse(e) {
return e && e.__esModule ? e.default : e;
}
-function sD(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = RC(), { triggerProps: s, overlayProps: c } = Dse({ type: r }, t, n), l = (e, n, r = "first") => {
+function cD(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = zC(), { triggerProps: s, overlayProps: c } = Ese({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = JC({
+ }, { keyboardProps: u } = YC({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -26116,7 +26116,7 @@ function sD(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = Bw(Ose(iD), "@react-aria/menu"), { longPressProps: f } = aD({
+ }), d = Vw(Dse(aD), "@react-aria/menu"), { longPressProps: f } = oD({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -26128,14 +26128,14 @@ function sD(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (bS(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (SS(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (bS(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (SS(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = Tse({ onContextMenu(e) {
+ let { contextMenuProps: m } = wse({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -26179,8 +26179,8 @@ function sD(e, t, n) {
};
}
// node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var cD = 1e3;
-function lD(e) {
+var lD = 1e3;
+function uD(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, F.useRef)({
search: "",
timeout: void 0
@@ -26199,12 +26199,12 @@ function lD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, cD);
+ }, lD);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = kse(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !OS(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {
+ let a = Ose(e.key);
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !AS(e.currentTarget, G(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
if (a ??= t.getKeyForSearch(i.current.search), a != null) n.setFocusedKey(a), r && r(a), e.preventDefault(), "continuePropagation" in e || e.stopPropagation();
@@ -26215,32 +26215,32 @@ function lD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, cD);
+ }, lD);
}
} : void 0
} };
}
-function kse(e) {
+function Ose(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
// node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function uD(e, t) {
+function dD(e, t) {
let n = (0, F.useRef)(!0), r = (0, F.useRef)(null);
- LS(() => (n.current = !0, () => {
+ zS(() => (n.current = !0, () => {
n.current = !1;
- }), []), LS(() => {
+ }), []), zS(() => {
n.current ? n.current = !1 : (!r.current || t.some((e, t) => !Object.is(e, r[t]))) && e(), r.current = t;
}, t);
}
// node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function dD(e) {
- let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Pw(), _ = QS(), v = (e, n, i) => {
+function fD(e) {
+ let { selectionManager: t, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: a = !1, disallowEmptySelection: o = !1, disallowSelectAll: s = !1, escapeKeyBehavior: c = "clearSelection", selectOnFocus: l = t.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, scrollRef: p = r, linkBehavior: m = "action", UNSTABLE_focusOnEntry: h } = e, { direction: g } = Fw(), _ = eC(), v = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !yE(e)) {
+ if (t.isLink(n) && m === "selection" && l && !bE(e)) {
(0, Rt.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = bE(r, n), o = t.getItemProps(n);
+ let a = xE(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -26252,7 +26252,7 @@ function dD(e) {
t.extendSelection(n);
return;
}
- if (l && !yE(e)) {
+ if (l && !bE(e)) {
t.replaceSelection(n);
return;
}
@@ -26279,9 +26279,9 @@ function dD(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, ww(e));
+ let r = n.getFirstKey(t.focusedKey, Tw(e));
if (t.setFocusedKey(r), r != null) {
- if (ww(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Tw(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26313,9 +26313,9 @@ function dD(e) {
}, w = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, ww(e));
+ let r = n.getLastKey(t.focusedKey, Tw(e));
if (t.setFocusedKey(r), r != null) {
- if (ww(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Tw(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26346,12 +26346,12 @@ function dD(e) {
else return !1;
}, k = () => {
if (!f && r.current) {
- let e = wT(r.current, { tabbable: !0 }), t, n;
+ let e = TT(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = kS();
- t && (!jS(t) || i && !FS(i)) && bS(t);
+ let i = jS();
+ t && (!NS(t) || i && !LS(i)) && SS(t);
}
return {
shouldContinuePropagation: !0,
@@ -26361,11 +26361,11 @@ function dD(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), j = (e, t) => ({
- [GS() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [qS() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [GS() ? e + "+Alt" : e + "+Control"]: t,
+ [qS() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: M } = JC({
+ }), { keyboardProps: M } = YC({
shortcuts: {
...j("ArrowDown", y),
...j("ArrowUp", b),
@@ -26375,7 +26375,7 @@ function dD(e) {
...j("PageUp", E)
},
allowRepeats: !0
- }), { keyboardProps: ee } = JC({ shortcuts: {
+ }), { keyboardProps: ee } = YC({ shortcuts: {
...j("Home", x),
...j("End", w),
"Mod+A": D,
@@ -26386,7 +26386,7 @@ function dD(e) {
top: 0,
left: 0
});
- Dw(p, "scroll", () => {
+ Ow(p, "scroll", () => {
N.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -26394,11 +26394,11 @@ function dD(e) {
});
let te = (e) => {
if (t.isFocused) {
- OS(e.currentTarget, G(e)) || t.setFocused(!1);
+ AS(e.currentTarget, G(e)) || t.setFocused(!1);
return;
}
- if (!OS(e.currentTarget, G(e))) return;
- let i = SC();
+ if (!AS(e.currentTarget, G(e))) return;
+ let i = CC();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -26409,27 +26409,27 @@ function dD(e) {
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
} else p.current && (p.current.scrollTop = N.current.top, p.current.scrollLeft = N.current.left);
if (t.focusedKey != null && p.current) {
- let e = bE(r, t.focusedKey);
- e instanceof HTMLElement && (!jS(e) && !d && bS(e), (i === "keyboard" || h && i === "virtual") && FT(e, { containingElement: r.current }));
+ let e = xE(r, t.focusedKey);
+ e instanceof HTMLElement && (!NS(e) && !d && SS(e), (i === "keyboard" || h && i === "virtual") && IT(e, { containingElement: r.current }));
}
}, P = (e) => {
- OS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ AS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
}, ne = (0, F.useRef)(!1);
- Dw(r, poe, d ? (e) => {
+ Ow(r, foe, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (ne.current = !0);
} : void 0);
let re = n.getFirstKey?.() ?? null;
- uD(() => {
+ dD(() => {
if (ne.current) {
if (re == null) {
- let e = kS();
- pw(r.current), mw(e, null), t.collection.size > 0 && (ne.current = !1);
+ let e = jS();
+ mw(r.current), hw(e, null), t.collection.size > 0 && (ne.current = !1);
} else t.setFocusedKey(re), ne.current = !1;
}
- }, [re, t.collection.size]), uD(() => {
+ }, [re, t.collection.size]), dD(() => {
t.collection.size > 0 && (ne.current = !1);
- }, [t.focusedKey]), Dw(r, foe, d ? (e) => {
+ }, [t.focusedKey]), Ow(r, doe, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
let I = (0, F.useRef)(i), ie = (0, F.useRef)(!1);
@@ -26444,22 +26444,22 @@ function dD(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && NC(r.current), t.collection.size > 0 && (I.current = !1, ie.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && PC(r.current), t.collection.size > 0 && (I.current = !1, ie.current = !0);
}
});
let ae = (0, F.useRef)(t.focusedKey), oe = (0, F.useRef)(null);
(0, F.useEffect)(() => {
if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ae.current || ie.current) && p.current && r.current) {
- let e = SC(), n = bE(r, t.focusedKey);
+ let e = CC(), n = xE(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || ie.current) && (oe.current && cancelAnimationFrame(oe.current), oe.current = requestAnimationFrame(() => {
- p.current && (PT(p.current, n), e !== "virtual" && FT(n, { containingElement: r.current }));
+ p.current && (FT(p.current, n), e !== "virtual" && IT(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && NC(r.current), ae.current = t.focusedKey, ie.current = !1;
+ !d && t.isFocused && t.focusedKey == null && ae.current != null && r.current && PC(r.current), ae.current = t.focusedKey, ie.current = !1;
}), (0, F.useEffect)(() => () => {
oe.current && cancelAnimationFrame(oe.current);
- }, []), Dw(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), Ow(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let se = {
@@ -26469,27 +26469,27 @@ function dD(e) {
onMouseDown(e) {
p.current === G(e) && e.preventDefault();
}
- }, { typeSelectProps: ce } = lD({
+ }, { typeSelectProps: ce } = uD({
keyboardDelegate: n,
selectionManager: t
});
u || (se = K(ce, se));
let le;
d || (le = t.focusedKey == null ? 0 : -1);
- let ue = Sse(t.collection);
+ let ue = xse(t.collection);
return { collectionProps: K(se, {
tabIndex: le,
"data-collection": ue
}) };
}
// node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function fD(e, t) {
+function pD(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function pD(e) {
- return mD(e, 0);
+function mD(e) {
+ return hD(e, 0);
}
-function mD(e, t) {
+function hD(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -26497,106 +26497,106 @@ function mD(e, t) {
n++;
}
}
-function hD(e) {
+function gD(e) {
let t;
for (let n of e) t = n;
return t;
}
-function gD(e, t, n) {
+function _D(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [..._D(e, t), t], i = [..._D(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...vD(e, t), t], i = [...vD(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
return a === -1 ? r.findIndex((e) => e === n) >= 0 ? 1 : (i.findIndex((e) => e === t), -1) : (t = r[a], n = i[a], t.index - n.index);
}
-function _D(e, t) {
+function vD(e, t) {
let n = [], r = t;
for (; r?.parentKey != null;) r = e.getItem(r.parentKey), r && n.unshift(r);
return n;
}
// node_modules/react-stately/dist/private/collections/getItemCount.mjs
-var vD = /* @__PURE__ */ new WeakMap();
-function yD(e) {
- let t = vD.get(e);
+var yD = /* @__PURE__ */ new WeakMap();
+function bD(e) {
+ let t = yD.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(fD(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(pD(i, e)) : i.type === "item" && n++;
};
- return r(e), vD.set(e, n), n;
+ return r(e), yD.set(e, n), n;
}
// node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var bD = /* @__PURE__ */ new Map();
-function xD(e) {
- let { locale: t } = Pw(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (bD.has(n)) return bD.get(n);
+var xD = /* @__PURE__ */ new Map();
+function SD(e) {
+ let { locale: t } = Fw(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (xD.has(n)) return xD.get(n);
let r = new Intl.Collator(t, e);
- return bD.set(n, r), r;
+ return xD.set(n, r), r;
}
// node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var Ase = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, F.useRef)(!1), i = (0, F.useContext)(Xw), a = K(i || {}, {
+var kse = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, F.useRef)(!1), i = (0, F.useContext)(Zw), a = K(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
}
});
- return a.ref = YC(n || i?.ref), XC(i, a.ref), (0, F.useEffect)(() => {
+ return a.ref = XC(n || i?.ref), ZC(i, a.ref), (0, F.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ F.createElement(Xw.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ F.createElement(Zw.Provider, { value: a }, e);
});
-function jse({ children: e }) {
+function Ase({ children: e }) {
let t = (0, F.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ F.createElement(Xw.Provider, { value: t }, e);
+ return /*#__PURE__*/ F.createElement(Zw.Provider, { value: t }, e);
}
// node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var SD = /*#__PURE__*/ (0, F.createContext)({});
-function CD(e) {
- let { getContainer: t } = e, { getContainer: n } = wD();
- return /*#__PURE__*/ F.createElement(SD.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var CD = /*#__PURE__*/ (0, F.createContext)({});
+function wD(e) {
+ let { getContainer: t } = e, { getContainer: n } = TD();
+ return /*#__PURE__*/ F.createElement(CD.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function wD() {
- return (0, F.useContext)(SD) ?? {};
+function TD() {
+ return (0, F.useContext)(CD) ?? {};
}
// node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var TD = /*#__PURE__*/ F.createContext(null);
-function ED(e) {
- let t = oC(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => ({
+var ED = /*#__PURE__*/ F.createContext(null);
+function DD(e) {
+ let t = sC(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = wD();
+ }), [i, a]), { getContainer: s } = TD();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ F.createElement(fT, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ F.createElement(pT, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ F.createElement(TD.Provider, { value: o }, /*#__PURE__*/ F.createElement(jse, null, /*#__PURE__*/ F.createElement(ZC.Provider, { value: null }, c))), /*#__PURE__*/ Rt.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ F.createElement(ED.Provider, { value: o }, /*#__PURE__*/ F.createElement(Ase, null, /*#__PURE__*/ F.createElement(QC.Provider, { value: null }, c))), /*#__PURE__*/ Rt.createPortal(c, n);
}
-function DD() {
- let e = (0, F.useContext)(TD)?.setContain;
- LS(() => {
+function OD() {
+ let e = (0, F.useContext)(ED)?.setContain;
+ zS(() => {
e?.(!0);
}, [e]);
}
// node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function Mse(e, t) {
- let { role: n = "dialog", isEntering: r } = e, i = zC();
+function jse(e, t) {
+ let { role: n = "dialog", isEntering: r } = e, i = BC();
i = e["aria-label"] ? void 0 : i;
- let a = zC();
+ let a = BC();
a = n === "alertdialog" && !e["aria-describedby"] ? a : void 0;
let o = (0, F.useRef)(!1);
(0, F.useEffect)(() => {
- if (!r && t.current && !jS(t.current)) {
- NC(t.current);
+ if (!r && t.current && !NS(t.current)) {
+ PC(t.current);
let e = setTimeout(() => {
- (kS() === t.current || kS() === document.body) && (o.current = !0, t.current && (t.current.blur(), NC(t.current)), o.current = !1);
+ (jS() === t.current || jS() === document.body) && (o.current = !0, t.current && (t.current.blur(), PC(t.current)), o.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t, r]), DD(), (0, F.useRef)(!1), (0, F.useEffect)(() => {});
+ }, [t, r]), OD(), (0, F.useRef)(!1), (0, F.useEffect)(() => {});
let s = e["aria-describedby"] ?? a;
return {
dialogProps: {
- ...Hw(e, { labelable: !0 }),
+ ...Uw(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? i,
@@ -26610,23 +26610,23 @@ function Mse(e, t) {
};
}
// node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function OD(e = {}) {
+function kD(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, F.useRef)({
isFocused: !1,
- isFocusVisible: t || xC()
+ isFocusVisible: t || SC()
}), [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, F.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, F.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = xC(), o(e), l();
+ i.current.isFocused = e, i.current.isFocusVisible = SC(), o(e), l();
}, [l]);
- EC((e) => {
+ DC((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = WC({
+ let { focusProps: d } = GC({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = $T({
+ }), { focusWithinProps: f } = eE({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -26637,41 +26637,41 @@ function OD(e = {}) {
};
}
// node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function Nse(e = {}) {
- let { locale: t } = Pw();
+function Mse(e = {}) {
+ let { locale: t } = Fw();
return (0, F.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/interactions/useHover.mjs
-var kD = !1, AD = 0;
-function Pse() {
- kD = !0, setTimeout(() => {
- kD = !1;
+var AD = !1, jD = 0;
+function Nse() {
+ AD = !0, setTimeout(() => {
+ AD = !1;
}, 500);
}
-function jD(e) {
- e.pointerType === "touch" && Pse();
+function MD(e) {
+ e.pointerType === "touch" && Nse();
}
-function Fse() {
- let e = xS(null);
- if (e !== void 0) return AD === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", jD), AD++, () => {
- AD--, !(AD > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", jD);
+function Pse() {
+ let e = CS(null);
+ if (e !== void 0) return jD === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", MD), jD++, () => {
+ jD--, !(jD > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", MD);
};
}
-function MD(e) {
+function ND(e) {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, F.useState)(!1), s = (0, F.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, F.useEffect)(Fse, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = Zw(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
+ (0, F.useEffect)(Pse, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = Qw(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !OS(e.currentTarget, G(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !AS(e.currentTarget, G(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(xS(G(e)), "pointerover", (e) => {
- s.isHovered && s.target && !OS(s.target, G(e)) && a(e, e.pointerType);
+ s.target = l, c(CS(G(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !AS(s.target, G(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -26686,9 +26686,9 @@ function MD(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- kD && t.pointerType === "mouse" || e(t, t.pointerType);
+ AD && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && OS(e.currentTarget, G(e)) && a(e, e.pointerType);
+ !i && AS(e.currentTarget, G(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -26710,22 +26710,22 @@ function MD(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function Ise(e) {
+function Fse(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, F.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = Ew((e) => {
- n && ND(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = Ew((e) => {
+ }), o = Dw((e) => {
+ n && PD(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = Dw((e) => {
n && n(e);
});
(0, F.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = xS(n);
+ let n = t.current, i = CS(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && ND(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && PD(n, t) && s(n), e.isPointerDown = !1;
};
return i.addEventListener("pointerdown", o, !0), i.addEventListener("click", n, !0), () => {
i.removeEventListener("pointerdown", o, !0), i.removeEventListener("click", n, !0);
@@ -26733,28 +26733,28 @@ function Ise(e) {
}
}, [t, r]);
}
-function ND(e, t) {
+function PD(e, t) {
if (e.button > 0) return !1;
let n = G(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !OS(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !AS(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
}
return t.current ? !e.composedPath().includes(t.current) : !1;
}
// node_modules/react-aria/dist/private/gridlist/utils.mjs
-var PD = /* @__PURE__ */ new WeakMap();
-function FD(e, t) {
- let { id: n } = PD.get(e) ?? {};
+var FD = /* @__PURE__ */ new WeakMap();
+function ID(e, t) {
+ let { id: n } = FD.get(e) ?? {};
if (!n) throw Error("Unknown list");
- return `${n}-${Lse(t)}`;
+ return `${n}-${Ise(t)}`;
}
-function Lse(e) {
+function Ise(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
// node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var ID = {};
-ID = {
+var LD = {};
+LD = {
deselectedItem: (e) => `${e.item} \u{63A}\u{64A}\u{631} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`,
longPressToSelect: "اضغط مطولًا للدخول إلى وضع التحديد.",
select: "تحديد",
@@ -26767,8 +26767,8 @@ ID = {
selectedItem: (e) => `${e.item} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}`
};
// node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var LD = {};
-LD = {
+var RD = {};
+RD = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{435} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`,
longPressToSelect: "Натиснете и задръжте за да влезете в избирателен режим.",
select: "Изберете",
@@ -26781,8 +26781,8 @@ LD = {
selectedItem: (e) => `${e.item} \u{438}\u{437}\u{431}\u{440}\u{430}\u{43D}.`
};
// node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var RD = {};
-RD = {
+var zD = {};
+zD = {
deselectedItem: (e) => `Polo\u{17E}ka ${e.item} nen\xed vybr\xe1na.`,
longPressToSelect: "Dlouhým stisknutím přejdete do režimu výběru.",
select: "Vybrat",
@@ -26795,8 +26795,8 @@ RD = {
selectedItem: (e) => `Vybr\xe1na polo\u{17E}ka ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var zD = {};
-zD = {
+var BD = {};
+BD = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -26809,8 +26809,8 @@ zD = {
selectedItem: (e) => `${e.item} valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var BD = {};
-BD = {
+var VD = {};
+VD = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -26823,8 +26823,8 @@ BD = {
selectedItem: (e) => `${e.item} ausgew\xe4hlt.`
};
// node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var VD = {};
-VD = {
+var HD = {};
+HD = {
deselectedItem: (e) => `\u{394}\u{3B5}\u{3BD} \u{3B5}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`,
longPressToSelect: "Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",
select: "Επιλογή",
@@ -26837,8 +26837,8 @@ VD = {
selectedItem: (e) => `\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3AD}\u{3C7}\u{3B8}\u{3B7}\u{3BA}\u{3B5} \u{3C4}\u{3BF} \u{3C3}\u{3C4}\u{3BF}\u{3B9}\u{3C7}\u{3B5}\u{3AF}\u{3BF} ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var HD = {};
-HD = {
+var UD = {};
+UD = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -26851,8 +26851,8 @@ HD = {
longPressToSelect: "Long press to enter selection mode."
};
// node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var UD = {};
-UD = {
+var WD = {};
+WD = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -26865,8 +26865,8 @@ UD = {
selectedItem: (e) => `${e.item} seleccionado.`
};
// node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var WD = {};
-WD = {
+var GD = {};
+GD = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -26879,8 +26879,8 @@ WD = {
selectedItem: (e) => `${e.item} valitud.`
};
// node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var GD = {};
-GD = {
+var KD = {};
+KD = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -26893,8 +26893,8 @@ GD = {
selectedItem: (e) => `${e.item} valittu.`
};
// node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var KD = {};
-KD = {
+var qD = {};
+qD = {
deselectedItem: (e) => `${e.item} non s\xe9lectionn\xe9.`,
longPressToSelect: "Appuyez de manière prolongée pour passer en mode de sélection.",
select: "Sélectionner",
@@ -26907,8 +26907,8 @@ KD = {
selectedItem: (e) => `${e.item} s\xe9lectionn\xe9.`
};
// node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var qD = {};
-qD = {
+var JD = {};
+JD = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -26921,8 +26921,8 @@ qD = {
selectedItem: (e) => `${e.item} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`
};
// node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var JD = {};
-JD = {
+var YD = {};
+YD = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -26935,8 +26935,8 @@ JD = {
selectedItem: (e) => `Stavka ${e.item} je odabrana.`
};
// node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var YD = {};
-YD = {
+var XD = {};
+XD = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -26949,8 +26949,8 @@ YD = {
selectedItem: (e) => `${e.item} kijel\xf6lve.`
};
// node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var XD = {};
-XD = {
+var ZD = {};
+ZD = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -26963,8 +26963,8 @@ XD = {
selectedItem: (e) => `${e.item} selezionato.`
};
// node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var ZD = {};
-ZD = {
+var QD = {};
+QD = {
deselectedItem: (e) => `${e.item} \u{304C}\u{9078}\u{629E}\u{3055}\u{308C}\u{3066}\u{3044}\u{307E}\u{305B}\u{3093}\u{3002}`,
longPressToSelect: "長押しして選択モードを開きます。",
select: "選択",
@@ -26977,8 +26977,8 @@ ZD = {
selectedItem: (e) => `${e.item} \u{3092}\u{9078}\u{629E}\u{3057}\u{307E}\u{3057}\u{305F}\u{3002}`
};
// node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var QD = {};
-QD = {
+var $D = {};
+$D = {
deselectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C9C0} \u{C54A}\u{C558}\u{C2B5}\u{B2C8}\u{B2E4}.`,
longPressToSelect: "선택 모드로 들어가려면 길게 누르십시오.",
select: "선택",
@@ -26991,8 +26991,8 @@ QD = {
selectedItem: (e) => `${e.item}\u{C774}(\u{AC00}) \u{C120}\u{D0DD}\u{B418}\u{C5C8}\u{C2B5}\u{B2C8}\u{B2E4}.`
};
// node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var $D = {};
-$D = {
+var eO = {};
+eO = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -27005,8 +27005,8 @@ $D = {
selectedItem: (e) => `Pasirinkta: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var eO = {};
-eO = {
+var tO = {};
+tO = {
deselectedItem: (e) => `Vienums ${e.item} nav atlas\u{12B}ts.`,
longPressToSelect: "Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",
select: "Atlasīt",
@@ -27019,8 +27019,8 @@ eO = {
selectedItem: (e) => `Atlas\u{12B}ts vienums ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var tO = {};
-tO = {
+var nO = {};
+nO = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -27033,8 +27033,8 @@ tO = {
selectedItem: (e) => `${e.item} er valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var nO = {};
-nO = {
+var rO = {};
+rO = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -27047,8 +27047,8 @@ nO = {
selectedItem: (e) => `${e.item} geselecteerd.`
};
// node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var rO = {};
-rO = {
+var iO = {};
+iO = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -27061,8 +27061,8 @@ rO = {
selectedItem: (e) => `Zaznaczono ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var iO = {};
-iO = {
+var aO = {};
+aO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -27075,8 +27075,8 @@ iO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var aO = {};
-aO = {
+var oO = {};
+oO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -27089,8 +27089,8 @@ aO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var oO = {};
-oO = {
+var sO = {};
+sO = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -27103,8 +27103,8 @@ oO = {
selectedItem: (e) => `${e.item} selectat.`
};
// node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var sO = {};
-sO = {
+var cO = {};
+cO = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Нажмите и удерживайте для входа в режим выбора.",
select: "Выбрать",
@@ -27117,8 +27117,8 @@ sO = {
selectedItem: (e) => `${e.item} \u{432}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`
};
// node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var cO = {};
-cO = {
+var lO = {};
+lO = {
deselectedItem: (e) => `Nevybrat\xe9 polo\u{17E}ky: ${e.item}.`,
longPressToSelect: "Dlhším stlačením prejdite do režimu výberu.",
select: "Vybrať",
@@ -27131,8 +27131,8 @@ cO = {
selectedItem: (e) => `Vybrat\xe9 polo\u{17E}ky: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var lO = {};
-lO = {
+var uO = {};
+uO = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -27145,8 +27145,8 @@ lO = {
selectedItem: (e) => `Element ${e.item} je izbran.`
};
// node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var uO = {};
-uO = {
+var dO = {};
+dO = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -27159,8 +27159,8 @@ uO = {
selectedItem: (e) => `${e.item} je izabrano.`
};
// node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var dO = {};
-dO = {
+var fO = {};
+fO = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -27173,8 +27173,8 @@ dO = {
selectedItem: (e) => `${e.item} markerat.`
};
// node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var fO = {};
-fO = {
+var pO = {};
+pO = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -27187,8 +27187,8 @@ fO = {
selectedItem: (e) => `${e.item} se\xe7ildi.`
};
// node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var pO = {};
-pO = {
+var mO = {};
+mO = {
deselectedItem: (e) => `${e.item} \u{43D}\u{435} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`,
longPressToSelect: "Виконайте довге натиснення, щоб перейти в режим вибору.",
select: "Вибрати",
@@ -27201,8 +27201,8 @@ pO = {
selectedItem: (e) => `${e.item} \u{432}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{43E}.`
};
// node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var mO = {};
-mO = {
+var hO = {};
+hO = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -27215,8 +27215,8 @@ mO = {
selectedItem: (e) => `\u{5DF2}\u{9009}\u{62E9} ${e.item}\u{3002}`
};
// node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var hO = {};
-hO = {
+var gO = {};
+gO = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -27229,54 +27229,54 @@ hO = {
selectedItem: (e) => `\u{5DF2}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`
};
// node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var gO = {};
-gO = {
- "ar-AE": ID,
- "bg-BG": LD,
- "cs-CZ": RD,
- "da-DK": zD,
- "de-DE": BD,
- "el-GR": VD,
- "en-US": HD,
- "es-ES": UD,
- "et-EE": WD,
- "fi-FI": GD,
- "fr-FR": KD,
- "he-IL": qD,
- "hr-HR": JD,
- "hu-HU": YD,
- "it-IT": XD,
- "ja-JP": ZD,
- "ko-KR": QD,
- "lt-LT": $D,
- "lv-LV": eO,
- "nb-NO": tO,
- "nl-NL": nO,
- "pl-PL": rO,
- "pt-BR": iO,
- "pt-PT": aO,
- "ro-RO": oO,
- "ru-RU": sO,
- "sk-SK": cO,
- "sl-SI": lO,
- "sr-SP": uO,
- "sv-SE": dO,
- "tr-TR": fO,
- "uk-UA": pO,
- "zh-CN": mO,
- "zh-TW": hO
+var _O = {};
+_O = {
+ "ar-AE": LD,
+ "bg-BG": RD,
+ "cs-CZ": zD,
+ "da-DK": BD,
+ "de-DE": VD,
+ "el-GR": HD,
+ "en-US": UD,
+ "es-ES": WD,
+ "et-EE": GD,
+ "fi-FI": KD,
+ "fr-FR": qD,
+ "he-IL": JD,
+ "hr-HR": YD,
+ "hu-HU": XD,
+ "it-IT": ZD,
+ "ja-JP": QD,
+ "ko-KR": $D,
+ "lt-LT": eO,
+ "lv-LV": tO,
+ "nb-NO": nO,
+ "nl-NL": rO,
+ "pl-PL": iO,
+ "pt-BR": aO,
+ "pt-PT": oO,
+ "ro-RO": sO,
+ "ru-RU": cO,
+ "sk-SK": lO,
+ "sl-SI": uO,
+ "sr-SP": dO,
+ "sv-SE": fO,
+ "tr-TR": pO,
+ "uk-UA": mO,
+ "zh-CN": hO,
+ "zh-TW": gO
};
// node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function Rse(e) {
+function Lse(e) {
return e && e.__esModule ? e.default : e;
}
-function _O(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Bw(Rse(gO), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, F.useRef)(i), o = (0, F.useCallback)(() => {
+function vO(e, t) {
+ let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Vw(Lse(_O), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, F.useRef)(i), o = (0, F.useCallback)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = vO(i, a.current), o = vO(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = yO(i, a.current), o = yO(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
if (t.selectionManager.selectedKeys.size === 1 && s) {
let e = t.selectionManager.selectedKeys.keys().next().value;
if (e != null && t.collection.getItem(e)) {
@@ -27296,7 +27296,7 @@ function _O(e, t) {
t && c.push(r.format("deselectedItem", { item: t }));
}
}
- t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && kT(c.join(" ")), a.current = i;
+ t.selectionManager.selectionMode === "multiple" && (c.length === 0 || i === "all" || i.size > 1 || a.current === "all" || a.current?.size > 1) && c.push(i === "all" ? r.format("selectedAll") : r.format("selectedCount", { count: i.size })), c.length > 0 && AT(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -27307,7 +27307,7 @@ function _O(e, t) {
n,
r
]);
- AT(() => {
+ jT(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -27315,20 +27315,20 @@ function _O(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function vO(e, t) {
+function yO(e, t) {
let n = /* @__PURE__ */ new Set();
if (e === "all" || t === "all") return n;
for (let r of e.keys()) t.has(r) || n.add(r);
return n;
}
// node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function yO(e, t) {
+function bO(e, t) {
let n = t?.isDisabled, [r, i] = (0, F.useState)(!1);
- return LS(() => {
+ return zS(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = wT(e.current, { tabbable: !0 });
+ let t = TT(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -27346,12 +27346,12 @@ function yO(e, t) {
}), !n && r;
}
// node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function zse(e) {
+function Rse(e) {
return e && e.__esModule ? e.default : e;
}
-function bO(e) {
- let t = Bw(zse(gO), "@react-aria/grid"), n = wC(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return LT((0, F.useMemo)(() => {
+function xO(e) {
+ let t = Vw(Rse(_O), "@react-aria/grid"), n = TC(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
+ return RT((0, F.useMemo)(() => {
let n = e.selectionManager.selectionMode, i = e.selectionManager.selectionBehavior, a;
return r && (a = t.format("longPressToSelect")), i === "replace" && n !== "none" && e.hasItemActions ? a : void 0;
}, [
@@ -27363,11 +27363,11 @@ function bO(e) {
]));
}
// node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function xO(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = xD({
+function SO(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = SD({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new CE({
+ }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new wE({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -27384,7 +27384,7 @@ function xO(e) {
c,
l,
s
- ]), { collectionProps: d } = dD({
+ ]), { collectionProps: d } = fD({
...e,
ref: i,
selectionManager: t,
@@ -27393,10 +27393,10 @@ function xO(e) {
return { listProps: d };
}
// node_modules/react-aria/dist/private/gridlist/useGridList.mjs
-function Bse(e, t, n) {
+function zse(e, t, n) {
let { isVirtualized: r, keyboardDelegate: i, layoutDelegate: a, onAction: o, disallowTypeAhead: s, linkBehavior: c = "action", keyboardNavigationBehavior: l = "arrow", escapeKeyBehavior: u = "clearSelection", shouldSelectOnPressUp: d } = e;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let { listProps: f } = xO({
+ let { listProps: f } = SO({
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
@@ -27411,30 +27411,30 @@ function Bse(e, t, n) {
autoFocus: e.autoFocus,
escapeKeyBehavior: u,
UNSTABLE_focusOnEntry: e.UNSTABLE_focusOnEntry
- }), p = RC(e.id);
- PD.set(t, {
+ }), p = zC(e.id);
+ FD.set(t, {
id: p,
onAction: o,
linkBehavior: c,
keyboardNavigationBehavior: l,
shouldSelectOnPressUp: d
});
- let m = bO({
+ let m = xO({
selectionManager: t.selectionManager,
hasItemActions: !!o
- }), h = yO(n, { isDisabled: t.collection.size !== 0 }), g = K(Hw(e, { labelable: !0 }), {
+ }), h = bO(n, { isDisabled: t.collection.size !== 0 }), g = K(Uw(e, { labelable: !0 }), {
role: "grid",
id: p,
"aria-multiselectable": t.selectionManager.selectionMode === "multiple" ? "true" : void 0
}, t.collection.size === 0 ? { tabIndex: h ? -1 : 0 } : f, m);
- return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), _O({}, t), { gridProps: g };
+ return r && (g["aria-rowcount"] = t.collection.size, g["aria-colcount"] = 1), vO({}, t), { gridProps: g };
}
// node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function SO(e) {
- let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = QS();
- t = RC(t);
+function CO(e) {
+ let { id: t, selectionManager: n, key: r, ref: i, shouldSelectOnPressUp: a, shouldUseVirtualFocus: o, focus: s, isDisabled: c, onAction: l, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = e, f = eC();
+ t = zC(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && yE(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && bE(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -27445,11 +27445,11 @@ function SO(e) {
}
if (d === "override" || d === "none") return;
}
- n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (ww(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
+ n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (Tw(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
(0, F.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? pw(i.current) : s ? s() : kS() !== i.current && i.current && NC(i.current));
+ r === n.focusedKey && n.isFocused && (o ? mw(i.current) : s ? s() : jS() !== i.current && i.current && PC(i.current));
}, [
i,
r,
@@ -27477,22 +27477,22 @@ function SO(e) {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && i.current && f.open(i.current, e, D.href, D.routerOptions);
}, k = { ref: i };
a ? (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || wO(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || TO(e.key)) && p(e);
}, u ? (k.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, k.onPress = b ? O : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : k.onPress = (e) => {
if (b || x && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !CO(e.key)) return;
+ if (e.pointerType === "keyboard" && !wO(e.key)) return;
O(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (k.onPressStart = (e) => {
- C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || wO(e.key))) && p(e);
+ C.current = e.pointerType, T.current = w, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || TO(e.key))) && p(e);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && CO(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && wO(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
});
- let A = Cse(n.collection);
+ let A = Sse(n.collection);
if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = K(k, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
@@ -27507,10 +27507,10 @@ function SO(e) {
"onPress",
"onPressUp",
"onClick"
- ]) D[e] && (k[e] = PC(k[e], D[e]));
- let { pressProps: j, isPressed: M } = nT(k), ee = x ? (e) => {
+ ]) D[e] && (k[e] = FC(k[e], D[e]));
+ let { pressProps: j, isPressed: M } = rT(k), ee = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: N } = aD({
+ } : void 0, { longPressProps: N } = oD({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -27518,7 +27518,7 @@ function SO(e) {
}), te = (e) => {
C.current === "touch" && T.current && e.preventDefault();
}, P = d !== "none" && n.isLink(r) ? (e) => {
- $S.isOpening || e.preventDefault();
+ tC.isOpening || e.preventDefault();
} : void 0, ne = K(m, v || b || o && !c ? j : {}, w ? N : {}, {
onDoubleClick: ee,
onDragStartCapture: te,
@@ -27531,7 +27531,7 @@ function SO(e) {
if (e != null) return e !== A;
t = t.parentElement;
}
- return FS(e);
+ return LS(e);
}, I = ne.onPointerDown;
ne.onPointerDown = (e) => {
let t = G(e);
@@ -27551,14 +27551,14 @@ function SO(e) {
hasAction: S
};
}
-function CO(e) {
+function wO(e) {
return e === "Enter";
}
-function wO(e) {
+function TO(e) {
return e === " ";
}
// node_modules/react-aria/dist/private/gridlist/useGridListItem.mjs
-var TO = {
+var EO = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -27568,18 +27568,18 @@ var TO = {
rtl: "ArrowRight"
}
};
-function Vse(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = Pw(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = PD.get(t), f = zC(), p = (0, F.useRef)(null), m = () => {
+function Bse(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = Fw(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = FD.get(t), f = BC(), p = (0, F.useRef)(null), m = () => {
if (n.current !== null) {
if (a === "child") {
- if (jS(n.current) && n.current !== kS(xS(n.current))) return;
- let e = wT(n.current, { tabbable: !0 }).firstChild();
+ if (NS(n.current) && n.current !== jS(CS(n.current))) return;
+ let e = TT(n.current, { tabbable: !0 }).firstChild();
if (e) {
- NC(e), FT(e, { containingElement: MT(e) });
+ PC(e), IT(e, { containingElement: NT(e) });
return;
}
}
- (p.current != null && r.key !== p.current || !jS(n.current)) && NC(n.current);
+ (p.current != null && r.key !== p.current || !NS(n.current)) && PC(n.current);
}
}, h = {}, g = e.hasChildItems, _ = t.selectionManager.isLink(r.key);
if (r != null && "expandedKeys" in t) {
@@ -27589,7 +27589,7 @@ function Vse(e, t, n) {
if (r.level >= 0 && r?.parentKey != null) {
let e = t.collection.getItem(r.parentKey);
if (e) {
- let n = Hse(e, t.collection);
+ let n = Vse(e, t.collection);
i = [...n].filter((e) => e.type === "item").length, a > 0 && n[0].type !== "item" && --a;
}
} else i = [...t.collection].filter((e) => e.level === 0 && e.type === "item").length;
@@ -27600,75 +27600,75 @@ function Vse(e, t, n) {
"aria-setsize": i
};
}
- let { itemProps: v, ...y } = SO({
+ let { itemProps: v, ...y } = CO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: e.shouldSelectOnPressUp || d,
- onAction: c || r.props?.onAction ? PC(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
+ onAction: c || r.props?.onAction ? FC(r.props?.onAction, c ? () => c(r.key) : void 0) : void 0,
focus: m,
linkBehavior: l
}), b = (e) => {
- let i = kS(xS(n.current));
- if (!OS(e.currentTarget, G(e)) || !n.current || !i) return;
- let a = wT(n.current);
- if (a.currentNode = i, !EO(e, t, r, g, s, i, n.current, o)) switch (e.key) {
+ let i = jS(CS(n.current));
+ if (!AS(e.currentTarget, G(e)) || !n.current || !i) return;
+ let a = TT(n.current);
+ if (a.currentNode = i, !DO(e, t, r, g, s, i, n.current, o)) switch (e.key) {
case "ArrowLeft":
if (u === "arrow") {
let t = s === "rtl" ? a.nextNode() : a.previousNode();
- if (t) e.preventDefault(), e.stopPropagation(), NC(t), FT(t, { containingElement: MT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "rtl") NC(n.current), FT(n.current, { containingElement: MT(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), PC(t), IT(t, { containingElement: NT(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "rtl") PC(n.current), IT(n.current, { containingElement: NT(n.current) });
else {
a.currentNode = n.current;
- let e = DO(a);
- e && (NC(e), FT(e, { containingElement: MT(n.current) }));
+ let e = OO(a);
+ e && (PC(e), IT(e, { containingElement: NT(n.current) }));
}
}
break;
case "ArrowRight":
if (u === "arrow") {
let t = s === "rtl" ? a.previousNode() : a.nextNode();
- if (t) e.preventDefault(), e.stopPropagation(), NC(t), FT(t, { containingElement: MT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "ltr") NC(n.current), FT(n.current, { containingElement: MT(n.current) });
+ if (t) e.preventDefault(), e.stopPropagation(), PC(t), IT(t, { containingElement: NT(n.current) });
+ else if (e.preventDefault(), e.stopPropagation(), s === "ltr") PC(n.current), IT(n.current, { containingElement: NT(n.current) });
else {
a.currentNode = n.current;
- let e = DO(a);
- e && (NC(e), FT(e, { containingElement: MT(n.current) }));
+ let e = OO(a);
+ e && (PC(e), IT(e, { containingElement: NT(n.current) }));
}
}
break;
case "ArrowUp":
- case "ArrowDown": !e.altKey && OS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && AS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
}, x = (e) => {
- p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && OS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- a === "child" && kS(xS(n.current)) === n.current && m();
- }) : xC() || t.selectionManager.setFocusedKey(r.key);
+ p.current = r.key, G(e) === n.current ? a === "child" && e.relatedTarget && AS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ a === "child" && jS(CS(n.current)) === n.current && m();
+ }) : SC() || t.selectionManager.setFocusedKey(r.key);
}, S = (e) => {
- let i = kS(xS(n.current));
- if (OS(e.currentTarget, G(e)) && n.current && i) {
+ let i = jS(CS(n.current));
+ if (AS(e.currentTarget, G(e)) && n.current && i) {
if (u === "tab") {
if (G(e) !== n.current && e.key !== "Tab") {
e.stopPropagation();
return;
}
- if (EO(e, t, r, g, s, i, n.current, o)) return;
+ if (DO(e, t, r, g, s, i, n.current, o)) return;
}
if (e.key === "Tab" && u === "tab") {
- let t = wT(n.current, { tabbable: !0 });
+ let t = TT(n.current, { tabbable: !0 });
t.currentNode = i, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
- }, C = eC(r.props), w = K(v, y.hasAction ? C : {}, {
+ }, C = nC(r.props), w = K(v, y.hasAction ? C : {}, {
role: "row",
onKeyDownCapture: u === "arrow" || o ? b : void 0,
onFocus: x,
"aria-label": r["aria-label"] || r.textValue || void 0,
"aria-selected": t.selectionManager.canSelectItem(r.key) ? t.selectionManager.isSelected(r.key) : void 0,
"aria-disabled": t.selectionManager.isDisabled(r.key) || void 0,
- "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${FD(t, r.key)} ${f}` : void 0,
- id: FD(t, r.key)
+ "aria-labelledby": f && (r["aria-label"] || r.textValue) ? `${ID(t, r.key)} ${f}` : void 0,
+ id: ID(t, r.key)
});
a === "child" && o && u === "tab" && (w.tabIndex = -1);
let T = w.onKeyDown;
@@ -27689,66 +27689,66 @@ function Vse(e, t, n) {
...y
};
}
-function EO(e, t, n, r, i, a, o, s) {
+function DO(e, t, n, r, i, a, o, s) {
if (!("expandedKeys" in t) || !s && a !== o) return !1;
- if (e.key === TO.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
- if (e.key === TO.collapse[i] && t.selectionManager.focusedKey === n.key) {
+ if (e.key === EO.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
+ if (e.key === EO.collapse[i] && t.selectionManager.focusedKey === n.key) {
if (r && t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
if (!t.expandedKeys.has(n.key) && n.parentKey && t.collection.getItem(n.parentKey)?.type === "item") return t.selectionManager.setFocusedKey(n.parentKey), e.stopPropagation(), !0;
}
return !1;
}
-function DO(e) {
+function OO(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
while (n);
return t;
}
-function Hse(e, t) {
+function Vse(e, t) {
let n = t.getChildren?.(e.key), r = n ? Array.from(n) : [], i = r.length > 0 ? r[0] : null, a = [];
for (; i;) a.push(i), i = i.nextKey == null ? null : t.getItem(i.nextKey);
return a;
}
// node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function Use(e) {
+function Hse(e) {
return e && e.__esModule ? e.default : e;
}
-function OO(e, t) {
- let { key: n } = e, r = t.selectionManager, i = RC(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
+function kO(e, t) {
+ let { key: n } = e, r = t.selectionManager, i = zC(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": Bw(Use(gO), "@react-aria/grid").format("select"),
+ "aria-label": Vw(Hse(_O), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
} };
}
// node_modules/react-aria/dist/private/gridlist/useGridListSelectionCheckbox.mjs
-function Wse(e, t) {
- let { key: n } = e, { checkboxProps: r } = OO(e, t);
+function Use(e, t) {
+ let { key: n } = e, { checkboxProps: r } = kO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${FD(t, n)}`
+ "aria-labelledby": `${r.id} ${ID(t, n)}`
} };
}
// node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Gse(e, t, n) {
- let r = Hw(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function Wse(e, t, n) {
+ let r = Uw(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
i === "toggle" && o === "action" && (o = "override");
- let { listProps: s } = xO({
+ let { listProps: s } = SO({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = $T({
+ }), { focusWithinProps: c } = eE({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = RC(e.id);
- vE.set(t, {
+ }), l = zC(e.id);
+ yE.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -27758,7 +27758,7 @@ function Gse(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = ZT({
+ let { labelProps: u, fieldProps: d } = QT({
...e,
id: l,
labelElementType: "span"
@@ -27773,8 +27773,8 @@ function Gse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Kse(e) {
- let { heading: t, "aria-label": n } = e, r = RC();
+function Gse(e) {
+ let { heading: t, "aria-label": n } = e, r = zC();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -27792,8 +27792,8 @@ function Kse(e) {
};
}
// node_modules/react-aria/dist/private/listbox/useOption.mjs
-function qse(e, t, n) {
- let { key: r } = e, i = vE.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = zC(), f = zC(), p = {
+function Kse(e, t, n) {
+ let { key: r } = e, i = yE.get(t), a = e.isDisabled ?? t.selectionManager.isDisabled(r), o = e.isSelected ?? t.selectionManager.isSelected(r), s = e.shouldSelectOnPressUp ?? i?.shouldSelectOnPressUp, c = e.shouldFocusOnHover ?? i?.shouldFocusOnHover, l = e.shouldUseVirtualFocus ?? i?.shouldUseVirtualFocus, u = e.isVirtualized ?? i?.isVirtualized, d = BC(), f = BC(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -27803,9 +27803,9 @@ function qse(e, t, n) {
}, m = t.collection.getItem(r);
if (u) {
let e = Number(m?.index);
- p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = yD(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = bD(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = xse(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = SO({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = bse(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = CO({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -27814,18 +27814,18 @@ function qse(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? PC(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? FC(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = MD({
+ }), { hoverProps: S } = ND({
isDisabled: a || !c,
onHoverStart() {
- xC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ SC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = Hw(m?.props);
+ }), C = Uw(m?.props);
delete C.id;
- let w = tC(m?.props);
+ let w = rC(m?.props);
return {
optionProps: {
...p,
@@ -27835,7 +27835,7 @@ function qse(e, t, n) {
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && xC(),
+ isFocusVisible: y && t.selectionManager.isFocused && SC(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -27844,12 +27844,12 @@ function qse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/utils.mjs
-var kO = /* @__PURE__ */ new WeakMap();
+var AO = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/menu/useMenu.mjs
-function Jse(e, t, n) {
+function qse(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = Hw(e, { labelable: !0 }), { listProps: c } = xO({
+ let s = Uw(e, { labelable: !0 }), { listProps: c } = SO({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -27858,7 +27858,7 @@ function Jse(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return kO.set(t, {
+ return AO.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -27874,15 +27874,15 @@ function Jse(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function Yse(e, t, n) {
- let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = kO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = QS(), M = () => {
+function Jse(e, t, n) {
+ let { id: r, key: i, closeOnSelect: a, shouldCloseOnSelect: o, isVirtualized: s, "aria-haspopup": c, onPressStart: l, onPressUp: u, onPress: d, onPressChange: f, onPressEnd: p, onClick: m, onHoverStart: h, onHoverChange: g, onHoverEnd: _, onKeyDown: v, onKeyUp: y, onFocus: b, onFocusChange: x, onBlur: S, selectionManager: C = t.selectionManager } = e, w = !!c, T = w && e["aria-expanded"] === "true", E = e.isDisabled ?? C.isDisabled(i), D = e.isSelected ?? C.isSelected(i), O = AO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = eC(), M = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
}
}, ee = "menuitem";
w || (C.selectionMode === "single" ? ee = "menuitemradio" : C.selectionMode === "multiple" && (ee = "menuitemcheckbox"));
- let N = zC(), te = zC(), P = zC(), ne = {
+ let N = BC(), te = BC(), P = BC(), ne = {
id: r,
"aria-disabled": E || void 0,
role: ee,
@@ -27899,17 +27899,17 @@ function Yse(e, t, n) {
};
if (C.selectionMode !== "none" && !w && (ne["aria-checked"] = D), s) {
let e = Number(k?.index);
- ne["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, ne["aria-setsize"] = yD(t.collection);
+ ne["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, ne["aria-setsize"] = bD(t.collection);
}
let re = (0, F.useRef)(!1), I = (e) => {
f?.(e), re.current = e;
}, ie = (0, F.useRef)(null), ae = (e) => {
e.pointerType !== "keyboard" && (ie.current = { pointerType: e.pointerType }), e.pointerType === "mouse" && (re.current || e.target.click()), u?.(e);
}, oe = (e) => {
- m?.(e), M(), Oae(e, j, k.props.href, k?.props.routerOptions);
+ m?.(e), M(), Eae(e, j, k.props.href, k?.props.routerOptions);
let t = ie.current?.pointerType === "keyboard" ? ie.current?.key === "Enter" || C.selectionMode === "none" || C.isLink(i) : C.selectionMode !== "multiple" || C.isLink(i);
t = o ?? a ?? t, A && !w && t && A(), ie.current = null;
- }, { itemProps: se, isFocused: ce } = SO({
+ }, { itemProps: se, isFocused: ce } = CO({
id: r,
selectionManager: C,
key: i,
@@ -27918,27 +27918,27 @@ function Yse(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: O.shouldUseVirtualFocus
- }), { pressProps: le, isPressed: ue } = nT({
+ }), { pressProps: le, isPressed: ue } = rT({
onPressStart: l,
onPress: d,
onPressUp: ae,
onPressChange: I,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: de } = MD({
+ }), { hoverProps: de } = ND({
isDisabled: E,
onHoverStart(e) {
- !xC() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
+ !SC() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
},
onHoverChange: g,
onHoverEnd: _
- }), { keyboardProps: fe } = JC({
+ }), { keyboardProps: fe } = YC({
shortcuts: {
" ": (e) => {
ie.current = {
pointerType: "keyboard",
key: " "
- }, G(e).click(), CC("keyboard");
+ }, G(e).click(), wC("keyboard");
},
Enter: (e) => {
ie.current = {
@@ -27946,8 +27946,8 @@ function Yse(e, t, n) {
key: "Enter"
};
let t = G(e);
- if (t.tagName !== "A") t.click(), CC("keyboard");
- else return CC("keyboard"), {
+ if (t.tagName !== "A") t.click(), wC("keyboard");
+ else return wC("keyboard"), {
shouldPreventDefault: !1,
shouldContinuePropagation: !1
};
@@ -27955,13 +27955,13 @@ function Yse(e, t, n) {
},
onKeyDown: v,
onKeyUp: y
- }), { focusableProps: pe } = QC({
+ }), { focusableProps: pe } = $C({
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), me = Hw(k?.props);
+ }, n), me = Uw(k?.props);
delete me.id;
- let he = tC(k?.props);
+ let he = rC(k?.props);
return {
menuItemProps: {
...ne,
@@ -27976,15 +27976,15 @@ function Yse(e, t, n) {
descriptionProps: { id: te },
keyboardShortcutProps: { id: P },
isFocused: ce,
- isFocusVisible: ce && C.isFocused && xC() && !T,
+ isFocusVisible: ce && C.isFocused && SC() && !T,
isSelected: D,
isPressed: ue,
isDisabled: E
};
}
// node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function Xse(e) {
- let { heading: t, "aria-label": n } = e, r = RC();
+function Yse(e) {
+ let { heading: t, "aria-label": n } = e, r = zC();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -27999,15 +27999,15 @@ function Xse(e) {
};
}
// node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function Zse() {
+function Xse() {
return window.ResizeObserver !== void 0;
}
-function AO(e) {
- let { ref: t, box: n, onResize: r } = e, i = Ew(r);
+function jO(e) {
+ let { ref: t, box: n, onResize: r } = e, i = Dw(r);
(0, F.useEffect)(() => {
let e = t?.current;
if (e) {
- if (Zse()) {
+ if (Xse()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -28022,154 +28022,154 @@ function AO(e) {
}, [t, n]);
}
// node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var jO = {};
-jO = { dismiss: "تجاهل" };
-// node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
var MO = {};
-MO = { dismiss: "Отхвърляне" };
-// node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
+MO = { dismiss: "تجاهل" };
+// node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
var NO = {};
-NO = { dismiss: "Odstranit" };
-// node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
+NO = { dismiss: "Отхвърляне" };
+// node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
var PO = {};
-PO = { dismiss: "Luk" };
-// node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
+PO = { dismiss: "Odstranit" };
+// node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
var FO = {};
-FO = { dismiss: "Schließen" };
-// node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
+FO = { dismiss: "Luk" };
+// node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
var IO = {};
-IO = { dismiss: "Απόρριψη" };
-// node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
+IO = { dismiss: "Schließen" };
+// node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
var LO = {};
-LO = { dismiss: "Dismiss" };
-// node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
+LO = { dismiss: "Απόρριψη" };
+// node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
var RO = {};
-RO = { dismiss: "Descartar" };
-// node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
+RO = { dismiss: "Dismiss" };
+// node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
var zO = {};
-zO = { dismiss: "Lõpeta" };
-// node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
+zO = { dismiss: "Descartar" };
+// node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
var BO = {};
-BO = { dismiss: "Hylkää" };
-// node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
+BO = { dismiss: "Lõpeta" };
+// node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
var VO = {};
-VO = { dismiss: "Rejeter" };
-// node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
+VO = { dismiss: "Hylkää" };
+// node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
var HO = {};
-HO = { dismiss: "התעלם" };
-// node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
+HO = { dismiss: "Rejeter" };
+// node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
var UO = {};
-UO = { dismiss: "Odbaci" };
-// node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
+UO = { dismiss: "התעלם" };
+// node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
var WO = {};
-WO = { dismiss: "Elutasítás" };
-// node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
+WO = { dismiss: "Odbaci" };
+// node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
var GO = {};
-GO = { dismiss: "Ignora" };
-// node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
+GO = { dismiss: "Elutasítás" };
+// node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
var KO = {};
-KO = { dismiss: "閉じる" };
-// node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
+KO = { dismiss: "Ignora" };
+// node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
var qO = {};
-qO = { dismiss: "무시" };
-// node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
+qO = { dismiss: "閉じる" };
+// node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
var JO = {};
-JO = { dismiss: "Atmesti" };
-// node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
+JO = { dismiss: "무시" };
+// node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
var YO = {};
-YO = { dismiss: "Nerādīt" };
-// node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
+YO = { dismiss: "Atmesti" };
+// node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
var XO = {};
-XO = { dismiss: "Lukk" };
-// node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
+XO = { dismiss: "Nerādīt" };
+// node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
var ZO = {};
-ZO = { dismiss: "Negeren" };
-// node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
+ZO = { dismiss: "Lukk" };
+// node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
var QO = {};
-QO = { dismiss: "Zignoruj" };
-// node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
+QO = { dismiss: "Negeren" };
+// node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
var $O = {};
-$O = { dismiss: "Descartar" };
-// node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
+$O = { dismiss: "Zignoruj" };
+// node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
var ek = {};
-ek = { dismiss: "Dispensar" };
-// node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
+ek = { dismiss: "Descartar" };
+// node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
var tk = {};
-tk = { dismiss: "Revocare" };
-// node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
+tk = { dismiss: "Dispensar" };
+// node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
var nk = {};
-nk = { dismiss: "Пропустить" };
-// node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
+nk = { dismiss: "Revocare" };
+// node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
var rk = {};
-rk = { dismiss: "Zrušiť" };
-// node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
+rk = { dismiss: "Пропустить" };
+// node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
var ik = {};
-ik = { dismiss: "Opusti" };
-// node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
+ik = { dismiss: "Zrušiť" };
+// node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
var ak = {};
-ak = { dismiss: "Odbaci" };
-// node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
+ak = { dismiss: "Opusti" };
+// node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
var ok = {};
-ok = { dismiss: "Avvisa" };
-// node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
+ok = { dismiss: "Odbaci" };
+// node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
var sk = {};
-sk = { dismiss: "Kapat" };
-// node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
+sk = { dismiss: "Avvisa" };
+// node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
var ck = {};
-ck = { dismiss: "Скасувати" };
-// node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
+ck = { dismiss: "Kapat" };
+// node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
var lk = {};
-lk = { dismiss: "取消" };
-// node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
+lk = { dismiss: "Скасувати" };
+// node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
var uk = {};
-uk = { dismiss: "關閉" };
-// node_modules/react-aria/dist/private/overlays/intlStrings.mjs
+uk = { dismiss: "取消" };
+// node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
var dk = {};
-dk = {
- "ar-AE": jO,
- "bg-BG": MO,
- "cs-CZ": NO,
- "da-DK": PO,
- "de-DE": FO,
- "el-GR": IO,
- "en-US": LO,
- "es-ES": RO,
- "et-EE": zO,
- "fi-FI": BO,
- "fr-FR": VO,
- "he-IL": HO,
- "hr-HR": UO,
- "hu-HU": WO,
- "it-IT": GO,
- "ja-JP": KO,
- "ko-KR": qO,
- "lt-LT": JO,
- "lv-LV": YO,
- "nb-NO": XO,
- "nl-NL": ZO,
- "pl-PL": QO,
- "pt-BR": $O,
- "pt-PT": ek,
- "ro-RO": tk,
- "ru-RU": nk,
- "sk-SK": rk,
- "sl-SI": ik,
- "sr-SP": ak,
- "sv-SE": ok,
- "tr-TR": sk,
- "uk-UA": ck,
- "zh-CN": lk,
- "zh-TW": uk
+dk = { dismiss: "關閉" };
+// node_modules/react-aria/dist/private/overlays/intlStrings.mjs
+var fk = {};
+fk = {
+ "ar-AE": MO,
+ "bg-BG": NO,
+ "cs-CZ": PO,
+ "da-DK": FO,
+ "de-DE": IO,
+ "el-GR": LO,
+ "en-US": RO,
+ "es-ES": zO,
+ "et-EE": BO,
+ "fi-FI": VO,
+ "fr-FR": HO,
+ "he-IL": UO,
+ "hr-HR": WO,
+ "hu-HU": GO,
+ "it-IT": KO,
+ "ja-JP": qO,
+ "ko-KR": JO,
+ "lt-LT": YO,
+ "lv-LV": XO,
+ "nb-NO": ZO,
+ "nl-NL": QO,
+ "pl-PL": $O,
+ "pt-BR": ek,
+ "pt-PT": tk,
+ "ro-RO": nk,
+ "ru-RU": rk,
+ "sk-SK": ik,
+ "sl-SI": ak,
+ "sr-SP": ok,
+ "sv-SE": sk,
+ "tr-TR": ck,
+ "uk-UA": lk,
+ "zh-CN": uk,
+ "zh-TW": dk
};
// node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function Qse(e) {
+function Zse(e) {
return e && e.__esModule ? e.default : e;
}
-function fk(e) {
- let { onDismiss: t, ...n } = e, r = Ow(n, Bw(Qse(dk), "@react-aria/overlays").format("dismiss")), i = () => {
+function pk(e) {
+ let { onDismiss: t, ...n } = e, r = kw(n, Vw(Zse(fk), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ F.createElement(uE, null, /*#__PURE__*/ F.createElement("button", {
+ return /*#__PURE__*/ F.createElement(dE, null, /*#__PURE__*/ F.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -28180,35 +28180,35 @@ function fk(e) {
}));
}
// node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var pk = [];
-function mk(e, t) {
+var mk = [];
+function hk(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, F.useRef)(void 0);
(0, F.useEffect)(() => {
- if (i && !pk.includes(t)) return pk.push(t), () => {
- let e = pk.indexOf(t);
- e >= 0 && pk.splice(e, 1);
+ if (i && !mk.includes(t)) return mk.push(t), () => {
+ let e = mk.indexOf(t);
+ e >= 0 && mk.splice(e, 1);
};
}, [i, t]);
let l = () => {
- pk[pk.length - 1] === t && n && n();
+ mk[mk.length - 1] === t && n && n();
}, u = (e) => {
- let n = pk[pk.length - 1];
+ let n = mk[mk.length - 1];
c.current = n, (!s || s(G(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(G(e))) && (pk[pk.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = JC({ shortcuts: { Escape: () => {
+ (!s || s(G(e))) && (mk[mk.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = YC({ shortcuts: { Escape: () => {
if (!o) l();
else return !1;
} } });
- Ise({
+ Fse({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = $T({
+ let { focusWithinProps: p } = eE({
isDisabled: !r,
onBlurWithin: (e) => {
- e.relatedTarget && !Joe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
+ e.relatedTarget && !qoe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -28220,87 +28220,87 @@ function mk(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/runAfterKeyboard.mjs
-var $se = 200, ece = 50, tce = 600, hk = /* @__PURE__ */ new WeakMap(), gk = /* @__PURE__ */ new Set(), _k = /* @__PURE__ */ new Set();
-function nce(e, t) {
- let n = Tw();
- if (e !== n || t.aborted) for (let e of _k) e(n), _k.delete(e);
- if (!e && n && JS() && !t.aborted) window.clearInterval(hk.get(window)), hk.set(window, vk($se));
+var Qse = 200, $se = 50, ece = 600, gk = /* @__PURE__ */ new WeakMap(), _k = /* @__PURE__ */ new Set(), vk = /* @__PURE__ */ new Set();
+function tce(e, t) {
+ let n = Ew();
+ if (e !== n || t.aborted) for (let e of vk) e(n), vk.delete(e);
+ if (!e && n && XS() && !t.aborted) window.clearInterval(gk.get(window)), gk.set(window, yk(Qse));
else {
- if (e !== n || t.aborted) for (let e of gk) e(n), gk.delete(e);
- (_k.size + gk.size <= 0 || t.aborted) && (window.clearInterval(hk.get(window)), hk.delete(window));
+ if (e !== n || t.aborted) for (let e of _k) e(n), _k.delete(e);
+ (vk.size + _k.size <= 0 || t.aborted) && (window.clearInterval(gk.get(window)), gk.delete(window));
}
}
-function vk(e = tce) {
- return window.setInterval(nce, ece, Tw(), AbortSignal.timeout(e));
+function yk(e = ece) {
+ return window.setInterval(tce, $se, Ew(), AbortSignal.timeout(e));
}
-function yk(e) {
- if (!Sw()) return e(!1), () => {};
+function bk(e) {
+ if (!Cw()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = Cw(document.hasFocus() ? kS() : null);
- if (Tw() === t || Tw() && !t) return e(t);
- _k.add(e), hk.has(window) || hk.set(window, vk());
+ let t = ww(document.hasFocus() ? jS() : null);
+ if (Ew() === t || Ew() && !t) return e(t);
+ vk.add(e), gk.has(window) || gk.set(window, yk());
});
});
return () => {
- window.cancelAnimationFrame(t), _k.delete(e);
+ window.cancelAnimationFrame(t), vk.delete(e);
};
}
-function rce(e) {
- if (!Sw()) return e(!1), () => {};
+function nce(e) {
+ if (!Cw()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = Cw(document.hasFocus() ? kS() : null);
- if (Tw() === t) return e(t);
- gk.add(e), hk.has(window) || hk.set(window, vk());
+ let t = ww(document.hasFocus() ? jS() : null);
+ if (Ew() === t) return e(t);
+ _k.add(e), gk.has(window) || gk.set(window, yk());
});
});
return () => {
- window.cancelAnimationFrame(t), gk.delete(e);
+ window.cancelAnimationFrame(t), _k.delete(e);
};
}
// node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var bk = typeof document < "u" && window.visualViewport, xk = 0, Sk;
-function Ck(e = {}) {
+var xk = typeof document < "u" && window.visualViewport, Sk = 0, Ck;
+function wk(e = {}) {
let { isDisabled: t, UNSTABLE_overrideFocus: n } = e;
- LS(() => {
- if (!t) return xk++, xk === 1 && (Sk = qS() && JS() ? ace() : ice(n)), () => {
- xk--, xk === 0 && Sk();
+ zS(() => {
+ if (!t) return Sk++, Sk === 1 && (Ck = YS() && XS() ? ice() : rce(n)), () => {
+ Sk--, Sk === 0 && Ck();
};
}, [t, n]);
}
-function ice(e) {
+function rce(e) {
let t = window.innerWidth - document.documentElement.clientWidth;
- return PC(t > 0 && ("scrollbarGutter" in document.documentElement.style ? ES(document.documentElement, "scrollbar-gutter", "stable") : ES(document.documentElement, "padding-right", `${t}px`)), ES(document.documentElement, "overflow", "hidden"), e && Tk(), e && Sw() && wk());
+ return FC(t > 0 && ("scrollbarGutter" in document.documentElement.style ? OS(document.documentElement, "scrollbar-gutter", "stable") : OS(document.documentElement, "padding-right", `${t}px`)), OS(document.documentElement, "overflow", "hidden"), e && Ek(), e && Cw() && Tk());
}
-function ace() {
- let e = ES(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+function ice() {
+ let e = OS(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = G(e);
- t = jT(r, !0) ? r : MT(r, !0), n = !1;
+ t = MT(r, !0) ? r : NT(r, !0), n = !1;
let i = r.ownerDocument.defaultView.getSelection();
i && !i.isCollapsed && i.containsNode(r, !0) && (n = !0), e.composedPath().some((e) => e instanceof HTMLInputElement && e.type === "range") && (n = !0), "selectionStart" in r && "selectionEnd" in r && r.selectionStart < r.selectionEnd && r.ownerDocument.activeElement === r && (n = !0);
- }, i = document.createElement("style"), a = Yw();
+ }, i = document.createElement("style"), a = Xw();
a && (i.nonce = a), i.textContent = "@layer {\n * {\n overscroll-behavior: contain;\n }\n}", document.head.prepend(i);
let o = (e) => {
e.touches.length === 2 || n || (!t || t === document.documentElement || t === document.body || t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth) && e.preventDefault();
- }, s = Tk(), c = PC(TS(document, "touchstart", r, {
+ }, s = Ek(), c = FC(DS(document, "touchstart", r, {
passive: !1,
capture: !0
- }), TS(document, "touchmove", o, {
+ }), DS(document, "touchmove", o, {
passive: !1,
capture: !0
- }), wk());
+ }), Tk());
return () => {
e(), c(), i.remove(), s();
};
}
-function wk() {
- return TS(document, "blur", (e) => {
+function Tk() {
+ return DS(document, "blur", (e) => {
let t = G(e), n = e.relatedTarget;
- n && Cw(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && ww(n) ? n.focus() : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, !0);
}
-function Tk() {
+function Ek() {
let e = HTMLElement.prototype.focus;
return Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -28311,9 +28311,9 @@ function Tk() {
preventScroll: !0
}), !t || !t.preventScroll) {
let e = () => {
- kS() === this && oce(this);
+ jS() === this && ace(this);
};
- yk((t) => t ? e() : rce(() => e()));
+ bk((t) => t ? e() : nce(() => e()));
}
}
}), () => {
@@ -28324,15 +28324,15 @@ function Tk() {
});
};
}
-function oce(e) {
+function ace(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t && n.isConnected;) {
- let e = MT(n);
+ let e = NT(n);
if (e !== document.documentElement && e !== document.body && e !== n) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- bk && (n = Math.min(n, bk.offsetTop + bk.height));
+ xk && (n = Math.min(n, xk.offsetTop + xk.height));
let i = r.top - t.top - ((n - t.top) / 2 - r.height / 2);
e.scrollTo({
top: Math.max(0, Math.min(e.scrollHeight - e.clientHeight, e.scrollTop + i)),
@@ -28344,19 +28344,19 @@ function oce(e) {
}
}
// node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function sce(e, t, n) {
- let { overlayProps: r, underlayProps: i } = mk({
+function oce(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = hk({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- Ck({
+ wk({
isDisabled: !t.isOpen,
UNSTABLE_overrideFocus: e.UNSTABLE_overrideFocus
- }), DD();
+ }), OD();
let { isEntering: a } = e;
return (0, F.useEffect)(() => {
- if (t.isOpen && n.current) return a ? _E(n.current) : gE([n.current], { shouldUseInert: !0 });
+ if (t.isOpen && n.current) return a ? vE(n.current) : _E([n.current], { shouldUseInert: !0 });
}, [
t.isOpen,
a,
@@ -28367,33 +28367,33 @@ function sce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var Ek = {
+var Dk = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, Dk = {
+}, Ok = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, cce = {
+}, sce = {
top: "left",
left: "top"
-}, Ok = {
+}, kk = {
top: "height",
left: "width"
-}, kk = {
+}, Ak = {
width: "totalWidth",
height: "totalHeight"
-}, Ak = {}, lce = () => typeof document < "u" ? window.visualViewport : null;
-function jk(e, t) {
+}, jk = {}, cce = () => typeof document < "u" ? window.visualViewport : null;
+function Mk(e, t) {
let n = 0, r = 0, i = 0, a = 0, o = 0, s = 0, c = {}, l = (t?.scale ?? 1) > 1;
if (e.tagName === "BODY" || e.tagName === "HTML") {
let l = document.documentElement;
i = l.clientWidth, a = l.clientHeight, n = t?.width ?? i, r = t?.height ?? a, c.top = l.scrollTop || e.scrollTop, c.left = l.scrollLeft || e.scrollLeft, t && (o = Math.max(0, t.pageTop - (c.top ?? 0)), s = Math.max(0, t.pageLeft - (c.left ?? 0)));
- } else ({width: n, height: r, top: o, left: s} = Lk(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return JS() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
+ } else ({width: n, height: r, top: o, left: s} = Rk(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return XS() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
width: n,
height: r,
totalWidth: i,
@@ -28403,7 +28403,7 @@ function jk(e, t) {
left: s
};
}
-function uce(e) {
+function lce(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -28411,11 +28411,11 @@ function uce(e) {
height: e.scrollHeight
};
}
-function Mk(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[Ok[e]], l = o[e] + r.scroll[Ek[e]] + a, u = o[e] + r.scroll[Ek[e]] + c - a, d = t - s + r.scroll[Ek[e]] + o[e] - r[Ek[e]], f = t - s + n + r.scroll[Ek[e]] + o[e] - r[Ek[e]];
+function Nk(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[kk[e]], l = o[e] + r.scroll[Dk[e]] + a, u = o[e] + r.scroll[Dk[e]] + c - a, d = t - s + r.scroll[Dk[e]] + o[e] - r[Dk[e]], f = t - s + n + r.scroll[Dk[e]] + o[e] - r[Dk[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function dce(e) {
+function uce(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -28424,55 +28424,55 @@ function dce(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function Nk(e) {
- if (Ak[e]) return Ak[e];
- let [t, n] = e.split(" "), r = Ek[t] || "right", i = cce[r];
- Ek[n] || (n = "center");
- let a = Ok[r], o = Ok[i];
- return Ak[e] = {
+function Pk(e) {
+ if (jk[e]) return jk[e];
+ let [t, n] = e.split(" "), r = Dk[t] || "right", i = sce[r];
+ Dk[n] || (n = "center");
+ let a = kk[r], o = kk[i];
+ return jk[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, Ak[e];
+ }, jk[e];
}
-function Pk(e, t, n, r, i, a, o, s, c, l, u) {
+function Fk(e, t, n, r, i, a, o, s, c, l, u) {
let { placement: d, crossPlacement: f, axis: p, crossAxis: m, size: h, crossSize: g } = r, _ = {};
_[m] = e[m] ?? 0, f === "center" ? _[m] += ((e[g] ?? 0) - (n[g] ?? 0)) / 2 : f !== m && (_[m] += (e[g] ?? 0) - (n[g] ?? 0)), _[m] += a;
let v = e[m] - n[g] + c + l, y = e[m] + e[g] - c - l;
- if (_[m] = nE(_[m], v, y), d === p) {
- let t = s ? u[h] : u[kk[h]];
- _[Dk[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = rE(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[Ak[h]];
+ _[Ok[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function fce(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[kk.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function dce(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[Ak.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
top: Math.max(t.top + f, (u?.offsetTop ?? t.top) + f),
bottom: Math.min(t.top + t.height + f, (u?.offsetTop ?? 0) + (u?.height ?? 0))
};
return s === "top" ? Math.max(0, d + o - p.top - ((i.top ?? 0) + (i.bottom ?? 0) + a)) : Math.max(0, p.bottom - d - ((i.top ?? 0) + (i.bottom ?? 0) + a));
}
-function Fk(e, t, n, r, i, a, o, s) {
+function Ik(e, t, n, r, i, a, o, s) {
let { placement: c, axis: l, size: u } = a;
- return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Dk[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[Dk[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Ok[l]] - i) : Math.max(0, e[u] + e[l] + (s ? t[l] : 0) - n[l] - n[u] + (o.scroll[l] ?? 0) - (r[l] ?? 0) - r[Ok[l]] - i);
}
-function pce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = Nk(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Pk(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Fk(s, l, t, i, a + u, v, c, g);
+function fce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = Pk(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Fk(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Ik(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = Nk(`${Dk[S]} ${C}`), r = Pk(t, s, n, e, u, d, l, f, m, h, c);
- Fk(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = Pk(`${Ok[S]} ${C}`), r = Fk(t, s, n, e, u, d, l, f, m, h, c);
+ Ik(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
}
let D = "bottom";
v.axis === "top" ? v.placement === "top" ? D = "top" : v.placement === "bottom" && (D = "bottom") : v.crossAxis === "top" && (v.crossPlacement === "top" ? D = "bottom" : v.crossPlacement === "bottom" && (D = "top"));
- let O = Mk(b, w[b], n[x], s, c, a, l);
+ let O = Nk(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = fce(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = Pk(t, s, n, v, T, d, l, f, m, h, c), O = Mk(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[Ek[b]], M = j + .5 * t[x], ee = m / 2 + h, N = Ek[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
- A[b] = nE(nE(M, t[b] + m / 2 - (w[b] + i[Ek[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Ek[b]])), ee, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ let k = dce(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = Fk(t, s, n, v, T, d, l, f, m, h, c), O = Nk(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, j = t[b] - w[b] - i[Dk[b]], M = j + .5 * t[x], ee = m / 2 + h, N = Dk[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
+ A[b] = rE(rE(M, t[b] + m / 2 - (w[b] + i[Dk[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Dk[b]])), ee, te), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
let P = S === "left" || S === "top" ? n[y] : 0, ne = {
x: S === "top" || S === "bottom" ? j : P,
y: S === "left" || S === "right" ? j : P
@@ -28486,17 +28486,17 @@ function pce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: ne
};
}
-function mce(e) {
- let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = lce(), h = r instanceof HTMLElement ? hce(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Lk(n, !1, p) : Rk(n, h, !1, p);
+function pce(e) {
+ let { placement: t, targetNode: n, overlayNode: r, scrollNode: i, padding: a, shouldFlip: o, boundaryElement: s, offset: c, crossOffset: l, maxHeight: u, arrowSize: d = 0, arrowBoundaryOffset: f = 0, targetRect: p } = e, m = cce(), h = r instanceof HTMLElement ? mce(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Rk(n, !1, p) : zk(n, h, !1, p);
if (!g) {
let { marginTop: e, marginLeft: t } = window.getComputedStyle(n);
y.top += parseInt(e, 10) || 0, y.left += parseInt(t, 10) || 0;
}
- let b = Lk(r, !0), x = dce(r);
+ let b = Rk(r, !0), x = uce(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = uce(i), C = jk(s, m), w = jk(h, m), T;
+ let S = lce(i), C = Mk(s, m), w = Mk(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = Ik(h, !1);
+ let e = Lk(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -28508,11 +28508,11 @@ function mce(e) {
left: 0,
width: 0,
height: 0
- } : Rk(s, h, !1);
- let E = OS(s, h);
- return pce(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ } : zk(s, h, !1);
+ let E = AS(s, h);
+ return fce(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function Ik(e, t) {
+function Lk(e, t) {
let { top: n, left: r, width: i, height: a } = e.getBoundingClientRect();
return t && e instanceof e.ownerDocument.defaultView.HTMLElement && (i = e.offsetWidth, a = e.offsetHeight), {
top: n,
@@ -28521,8 +28521,8 @@ function Ik(e, t) {
height: a
};
}
-function Lk(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || Ik(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function Rk(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || Lk(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -28530,29 +28530,29 @@ function Lk(e, t, n) {
height: o
};
}
-function Rk(e, t, n, r) {
+function zk(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || Ik(e, n);
+ if (i.position === "fixed") a = r || Lk(e, n);
else {
- a = Lk(e, n, r);
- let i = Lk(t, n), o = window.getComputedStyle(t);
+ a = Rk(e, n, r);
+ let i = Rk(t, n), o = window.getComputedStyle(t);
i.top += (parseInt(o.borderTopWidth, 10) || 0) - t.scrollTop, i.left += (parseInt(o.borderLeftWidth, 10) || 0) - t.scrollLeft, a.top -= i.top, a.left -= i.left;
}
return a.top -= parseInt(i.marginTop, 10) || 0, a.left -= parseInt(i.marginLeft, 10) || 0, a;
}
-function hce(e) {
+function mce(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !zk(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !zk(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Bk(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Bk(t);) t = t.parentElement;
return t || document.documentElement;
}
-function zk(e) {
+function Bk(e) {
let t = window.getComputedStyle(e);
return t.transform !== "none" || /transform|perspective/.test(t.willChange) || t.filter !== "none" || t.contain === "paint" || "backdropFilter" in t && t.backdropFilter !== "none" || "WebkitBackdropFilter" in t && t.WebkitBackdropFilter !== "none";
}
// node_modules/react-aria/dist/private/overlays/useOverlayPosition.mjs
-var Bk = typeof document < "u" ? window.visualViewport : null;
-function gce(e) {
- let { direction: t } = Pw(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, F.useState)(null), x = [
+var Vk = typeof document < "u" ? window.visualViewport : null;
+function hce(e) {
+ let { direction: t } = Fw(), { arrowSize: n, targetRef: r, overlayRef: i, arrowRef: a, scrollRef: o = i, placement: s = "bottom", containerPadding: c = 12, shouldFlip: l = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: f = 0, shouldUpdatePosition: p = !0, isOpen: m = !0, onClose: h, maxHeight: g, arrowBoundaryOffset: _ = 0, getTargetRect: v } = e, [y, b] = (0, F.useState)(null), x = [
p,
s,
i.current,
@@ -28569,15 +28569,15 @@ function gce(e) {
g,
_,
n
- ], S = (0, F.useRef)(Bk?.scale);
+ ], S = (0, F.useRef)(Vk?.scale);
(0, F.useEffect)(() => {
- m && (S.current = Bk?.scale);
+ m && (S.current = Vk?.scale);
}, [m]);
let C = (0, F.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || Bk?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || Vk?.scale !== S.current) return;
let e = null;
- if (o.current && jS(o.current)) {
- let t = kS()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && NS(o.current)) {
+ let t = jS()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -28585,8 +28585,8 @@ function gce(e) {
}
let h = i.current;
!g && i.current && (h.style.top = "0px", h.style.bottom = "", h.style.maxHeight = (window.visualViewport?.height ?? window.innerHeight) + "px");
- let y = mce({
- placement: vce(s, t),
+ let y = pce({
+ placement: _ce(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -28596,28 +28596,28 @@ function gce(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? Ik(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? Lk(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
if (!y.position) return;
h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(y.position).forEach((e) => h.style[e] = y.position[e] + "px"), h.style.maxHeight = y.maxHeight == null ? "" : y.maxHeight + "px";
- let x = kS();
+ let x = jS();
if (e && x && o.current) {
let t = x.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
o.current.scrollTop += r - e.offset;
}
b(y);
}, x);
- LS(C, x), _ce(C), AO({
+ zS(C, x), gce(C), jO({
ref: i,
onResize: C
- }), AO({
+ }), jO({
ref: r,
onResize: C
});
let w = (0, F.useRef)(!1);
- LS(() => {
+ zS(() => {
let e, t = () => {
w.current = !0, clearTimeout(e), e = setTimeout(() => {
w.current = !1;
@@ -28625,16 +28625,16 @@ function gce(e) {
}, n = () => {
w.current && t();
};
- Bk?.addEventListener("resize", t), Bk?.addEventListener("scroll", n);
- let r = TS(AS(window), "scroll", n);
+ Vk?.addEventListener("resize", t), Vk?.addEventListener("scroll", n);
+ let r = DS(MS(window), "scroll", n);
return () => {
- Bk?.removeEventListener("resize", t), Bk?.removeEventListener("scroll", n), r();
+ Vk?.removeEventListener("resize", t), Vk?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, F.useCallback)(() => {
w.current || h?.();
}, [h, w]);
- return Ese({
+ return Tse({
triggerRef: r,
isOpen: m,
onClose: h && T
@@ -28660,24 +28660,24 @@ function gce(e) {
updatePosition: C
};
}
-function _ce(e) {
- LS(() => (window.addEventListener("resize", e, !1), () => {
+function gce(e) {
+ zS(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function vce(e, t) {
+function _ce(e, t) {
return t === "rtl" ? e.replace("start", "right").replace("end", "left") : e.replace("start", "left").replace("end", "right");
}
// node_modules/react-aria/dist/private/overlays/usePopover.mjs
-function yce(e, t) {
- let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = mk({
+function vce(e, t) {
+ let { triggerRef: n, popoverRef: r, groupRef: i, isNonModal: a, isKeyboardDismissDisabled: o, shouldCloseOnInteractOutside: s, ...c } = e, l = c.trigger === "SubmenuTrigger", { overlayProps: u, underlayProps: d } = hk({
isOpen: t.isOpen,
onClose: t.close,
shouldCloseOnBlur: !0,
isDismissable: !a || l,
isKeyboardDismissDisabled: o,
shouldCloseOnInteractOutside: s
- }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = gce({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = hce({
...c,
targetRef: n,
overlayRef: r,
@@ -28685,15 +28685,15 @@ function yce(e, t) {
onClose: a && !l ? t.close : null,
getTargetRect: c.getTargetRect ?? (t.point ? () => new DOMRect(t.point.x, t.point.y, 0, 0) : void 0)
});
- Ck({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
- if (t.isOpen && r.current) return a ? _E(i?.current ?? r.current) : gE([i?.current ?? r.current], { shouldUseInert: !0 });
+ wk({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? vE(i?.current ?? r.current) : _E([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = $T(e);
+ let { focusWithinProps: g } = eE(e);
return {
popoverProps: K(u, f, g),
arrowProps: p,
@@ -28703,12 +28703,12 @@ function yce(e, t) {
};
}
// node_modules/react-aria/dist/private/radio/utils.mjs
-var Vk = /* @__PURE__ */ new WeakMap();
+var Hk = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/radio/useRadio.mjs
-function bce(e, t, n) {
+function yce(e, t, n) {
let { value: r, children: i, "aria-label": a, "aria-labelledby": o, onPressStart: s, onPressEnd: c, onPressChange: l, onPress: u, onPressUp: d, onClick: f } = e, p = e.isDisabled || t.isDisabled, m = t.selectedValue === r, h = (e) => {
e.stopPropagation(), t.setSelectedValue(r);
- }, { pressProps: g, isPressed: _ } = nT({
+ }, { pressProps: g, isPressed: _ } = rT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28716,7 +28716,7 @@ function bce(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = nT({
+ }), { pressProps: v, isPressed: y } = rT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28726,11 +28726,11 @@ function bce(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = QC(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = Hw(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = $C(K(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = K(g, b), S = Uw(e, { labelable: !0 }), C = -1;
t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (C = 0) : t.selectedValue === r && (C = 0), p && (C = void 0);
- let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = Vk.get(t);
- RT(n, t.defaultSelectedValue, t.setSelectedValue), zT({ validationBehavior: O }, t, n);
- let k = BT();
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = Hk.get(t);
+ zT(n, t.defaultSelectedValue, t.setSelectedValue), BT({ validationBehavior: O }, t, n);
+ let k = VT();
return {
labelProps: K(v, (0, F.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
@@ -28761,13 +28761,13 @@ function bce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function xce(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Pw(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = QT({
+function bce(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Fw(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = $T({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = Hw(e, { labelable: !0 }), { focusWithinProps: v } = $T({
+ }), _ = Uw(e, { labelable: !0 }), { focusWithinProps: v } = eE({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -28775,13 +28775,13 @@ function xce(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = wT(n.currentTarget, {
+ let r = TT(n.currentTarget, {
from: G(n),
- accept: (e) => e instanceof SS(e).HTMLInputElement && e.type === "radio"
+ accept: (e) => e instanceof wS(e).HTMLInputElement && e.type === "radio"
}), i;
return e === "next" ? (i = r.nextNode(), i ||= (r.currentNode = n.currentTarget, r.firstChild())) : (i = r.previousNode(), i ||= (r.currentNode = n.currentTarget, r.lastChild())), i ? (i.focus(), t.setSelectedValue(i.value), !0) : !1;
}
- let { keyboardProps: b } = JC({
+ let { keyboardProps: b } = YC({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -28789,8 +28789,8 @@ function xce(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = RC(n);
- return Vk.set(t, {
+ }), x = zC(n);
+ return Hk.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -28818,21 +28818,21 @@ function xce(e, t) {
};
}
// node_modules/react-aria/dist/private/select/useSelect.mjs
-var Hk = /* @__PURE__ */ new WeakMap();
-function Sce(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = xD({
+var Uk = /* @__PURE__ */ new WeakMap();
+function xce(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = SD({
usage: "search",
sensitivity: "base"
- }), u = (0, F.useMemo)(() => r || new CE(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, F.useMemo)(() => r || new wE(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = sD({
+ ]), { menuTriggerProps: d, menuProps: f } = cD({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = JC({
+ }, t, n), { keyboardProps: p } = YC({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -28848,21 +28848,21 @@ function Sce(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = lD({
+ }), { typeSelectProps: m } = uD({
keyboardDelegate: u,
selectionManager: t.selectionManager,
onTypeSelect(e) {
t.setSelectedKey(e);
}
- }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = QT({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = $T({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = Hw(e, { labelable: !0 }), C = K(m, d, y), w = RC();
- return Hk.set(t, {
+ let S = Uw(e, { labelable: !0 }), C = K(m, d, y), w = zC();
+ return Uk.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -28872,13 +28872,13 @@ function Sce(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), CC("keyboard"));
+ e.isDisabled || (n.current?.focus(), wC("keyboard"));
}
},
triggerProps: K(S, {
...C,
isDisabled: i,
- onKeyDown: PC(C.onKeyDown, p.onKeyDown),
+ onKeyDown: FC(C.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
w,
@@ -28902,7 +28902,7 @@ function Sce(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- OS(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ AS(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
},
"aria-labelledby": [y["aria-labelledby"], C["aria-label"] && !y["aria-labelledby"] ? C.id : null].filter(Boolean).join(" ")
},
@@ -28922,13 +28922,13 @@ function Sce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function Cce(e, t, n) {
- let r = Hk.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = lE({ style: {
+function Sce(e, t, n) {
+ let r = Uk.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = uE({ style: {
position: "fixed",
top: 0,
left: 0
} });
- RT(e.selectRef, t.defaultValue, t.setValue), zT({
+ zT(e.selectRef, t.defaultValue, t.setValue), BT({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
@@ -28958,8 +28958,8 @@ function Cce(e, t, n) {
}
};
}
-function wce(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, F.useRef)(null), c = (0, F.useRef)(null), { containerProps: l, selectProps: u } = Cce({
+function Cce(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, F.useRef)(null), c = (0, F.useRef)(null), { containerProps: l, selectProps: u } = Sce({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -28983,7 +28983,7 @@ function wce(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = Hk.get(t) || {};
+ let { validationBehavior: e } = Uk.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -29013,8 +29013,8 @@ function wce(e) {
return null;
}
// node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function Tce(e) {
- let t = Hw(e, { labelable: !0 }), n;
+function wce(e) {
+ let t = Uw(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -29022,8 +29022,8 @@ function Tce(e) {
} };
}
// node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function Ece(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = YT(e, t, n);
+function Tce(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = XT(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -29036,10 +29036,10 @@ function Ece(e, t, n) {
};
}
// node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var Uk = class {
+var Wk = class {
constructor(e) {
if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw Error("Either a layout or a ref must be specified.");
- this.layoutDelegate = e.layoutDelegate || (e.layout ? new Dce(e.layout) : new SE(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new Ece(e.layout) : new CE(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -29075,7 +29075,7 @@ var Uk = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of fD(n, this.collection)) {
+ for (let e of pD(n, this.collection)) {
if (e.colSpan && e.colSpan + r > t || (e.colSpan && (r = r + e.colSpan - 1), r === t)) return e.key ?? null;
r++;
}
@@ -29109,13 +29109,13 @@ var Uk = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = fD(t, this.collection);
- return (this.direction === "rtl" ? hD(e)?.key : pD(e)?.key) ?? null;
+ let e = pD(t, this.collection);
+ return (this.direction === "rtl" ? gD(e)?.key : mD(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = fD(n, this.collection), i = (this.direction === "rtl" ? mD(r, t.index - 1) : mD(r, t.index + 1)) ?? null;
+ let r = pD(n, this.collection), i = (this.direction === "rtl" ? hD(r, t.index - 1) : hD(r, t.index + 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) ?? null;
}
return null;
@@ -29124,13 +29124,13 @@ var Uk = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = fD(t, this.collection);
- return (this.direction === "rtl" ? pD(e)?.key : hD(e)?.key) ?? null;
+ let e = pD(t, this.collection);
+ return (this.direction === "rtl" ? mD(e)?.key : gD(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = fD(n, this.collection), i = (this.direction === "rtl" ? mD(r, t.index + 1) : mD(r, t.index - 1)) ?? null;
+ let r = pD(n, this.collection), i = (this.direction === "rtl" ? hD(r, t.index + 1) : hD(r, t.index - 1)) ?? null;
return i ? i.key ?? null : this.focusMode === "row" ? t.parentKey ?? null : (this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) ?? null;
}
return null;
@@ -29141,13 +29141,13 @@ var Uk = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? pD(fD(e, this.collection))?.key ?? null : null;
+ return e ? mD(pD(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findNextKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = pD(fD(e, this.collection))?.key ?? null;
+ n = mD(pD(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29157,13 +29157,13 @@ var Uk = class {
if (r = this.collection.getItem(n), !r) return null;
if (this.isCell(r) && !t && r.parentKey != null) {
let e = this.collection.getItem(r.parentKey);
- return e ? hD(fD(e, this.collection))?.key ?? null : null;
+ return e ? gD(pD(e, this.collection))?.key ?? null : null;
}
}
if (n = this.findPreviousKey(void 0, (e) => e.type === "item"), n != null && (r && this.isCell(r) && t || this.focusMode === "cell")) {
let e = this.collection.getItem(n);
if (!e) return null;
- n = hD(fD(e, this.collection))?.key ?? null;
+ n = gD(pD(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29199,13 +29199,13 @@ var Uk = class {
if (!t) return null;
if (t.textValue) {
let n = t.textValue.slice(0, e.length);
- if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? pD(fD(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? mD(pD(t, this.collection))?.key ?? null : t.key;
}
n = this.findNextKey(n, (e) => e.type === "item"), n == null && !a && (n = this.getFirstKey(), a = !0);
}
return null;
}
-}, Dce = class {
+}, Ece = class {
constructor(e) {
this.layout = e;
}
@@ -29218,15 +29218,15 @@ var Uk = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, Wk = /* @__PURE__ */ new WeakMap();
+}, Gk = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/grid/useGrid.mjs
-function Oce(e, t, n) {
+function Dce(e, t, n) {
let { isVirtualized: r, disallowTypeAhead: i, keyboardDelegate: a, focusMode: o, scrollRef: s, getRowText: c, onRowAction: l, onCellAction: u, escapeKeyBehavior: d = "clearSelection", shouldSelectOnPressUp: f, keyboardNavigationBehavior: p = "arrow" } = e, { selectionManager: m } = t;
!e["aria-label"] && !e["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
- let h = xD({
+ let h = SD({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Pw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new Uk({
+ }), { direction: g } = Fw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new Wk({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -29243,7 +29243,7 @@ function Oce(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = dD({
+ ]), { collectionProps: y } = fD({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -29251,8 +29251,8 @@ function Oce(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = RC(e.id);
- Wk.set(t, {
+ }), b = zC(e.id);
+ Gk.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -29261,42 +29261,42 @@ function Oce(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = bO({
+ let x = xO({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = Hw(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
- m.isFocused ? OS(e.currentTarget, G(e)) || m.setFocused(!1) : OS(e.currentTarget, G(e)) && m.setFocused(!0);
+ }), S = Uw(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
+ m.isFocused ? AS(e.currentTarget, G(e)) || m.setFocused(!1) : AS(e.currentTarget, G(e)) && m.setFocused(!0);
}, [m]), w = (0, F.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = yO(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
+ }), [C, y.onBlur]), T = bO(n, { isDisabled: t.collection.size !== 0 }), E = K(S, {
role: "grid",
id: b,
"aria-multiselectable": m.selectionMode === "multiple" ? "true" : void 0
}, t.isKeyboardNavigationDisabled ? w : y, t.collection.size === 0 && { tabIndex: T ? -1 : 0 } || void 0, x);
- return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), _O({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), vO({ getRowText: c }, t), { gridProps: E };
}
// node_modules/react-aria/dist/private/table/utils.mjs
-var Gk = /* @__PURE__ */ new WeakMap();
-function Kk(e) {
+var Kk = /* @__PURE__ */ new WeakMap();
+function qk(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function qk(e, t) {
- let n = Gk.get(e);
+function Jk(e, t) {
+ let n = Kk.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${Kk(t)}`;
+ return `${n}-${qk(t)}`;
}
-function Jk(e, t, n) {
- let r = Gk.get(e);
+function Yk(e, t, n) {
+ let r = Kk.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${Kk(t)}-${Kk(n)}`;
+ return `${r}-${qk(t)}-${qk(n)}`;
}
-function Yk(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => Jk(e, t, n)).join(" ");
+function Xk(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => Yk(e, t, n)).join(" ");
}
// node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var Xk = {};
-Xk = {
+var Zk = {};
+Zk = {
ascending: "تصاعدي",
ascendingSort: (e) => `\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62D}\u{633}\u{628} \u{627}\u{644}\u{639}\u{645}\u{648}\u{62F} ${e.columnName} \u{628}\u{62A}\u{631}\u{62A}\u{64A}\u{628} \u{62A}\u{635}\u{627}\u{639}\u{62F}\u{64A}`,
collapse: "طي",
@@ -29310,8 +29310,8 @@ Xk = {
sortable: "عمود قابل للترتيب"
};
// node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var Zk = {};
-Zk = {
+var Qk = {};
+Qk = {
ascending: "възходящ",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{430}\u{43D}\u{43E} \u{43F}\u{43E} \u{43A}\u{43E}\u{43B}\u{43E}\u{43D}\u{430} ${e.columnName} \u{432}\u{44A}\u{432} \u{432}\u{44A}\u{437}\u{445}\u{43E}\u{434}\u{44F}\u{449} \u{440}\u{435}\u{434}`,
collapse: "Свиване",
@@ -29325,8 +29325,8 @@ Zk = {
sortable: "сортираща колона"
};
// node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var Qk = {};
-Qk = {
+var $k = {};
+$k = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -29340,8 +29340,8 @@ Qk = {
sortable: "sloupec s možností řazení"
};
// node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var $k = {};
-$k = {
+var eA = {};
+eA = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -29355,8 +29355,8 @@ $k = {
sortable: "sorterbar kolonne"
};
// node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var eA = {};
-eA = {
+var tA = {};
+tA = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -29370,8 +29370,8 @@ eA = {
sortable: "sortierbare Spalte"
};
// node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var tA = {};
-tA = {
+var nA = {};
+nA = {
ascending: "αύξουσα",
ascendingSort: (e) => `\u{3B4}\u{3B9}\u{3B1}\u{3BB}\u{3BF}\u{3B3}\u{3AE} \u{3B1}\u{3BD}\u{3AC} \u{3C3}\u{3C4}\u{3AE}\u{3BB}\u{3B7} ${e.columnName} \u{3C3}\u{3B5} \u{3B1}\u{3CD}\u{3BE}\u{3BF}\u{3C5}\u{3C3}\u{3B1} \u{3C3}\u{3B5}\u{3B9}\u{3C1}\u{3AC}`,
collapse: "Σύμπτυξη",
@@ -29385,8 +29385,8 @@ tA = {
sortable: "Στήλη διαλογής"
};
// node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var nA = {};
-nA = {
+var rA = {};
+rA = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -29400,8 +29400,8 @@ nA = {
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var rA = {};
-rA = {
+var iA = {};
+iA = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -29415,8 +29415,8 @@ rA = {
sortable: "columna ordenable"
};
// node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var iA = {};
-iA = {
+var aA = {};
+aA = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -29430,8 +29430,8 @@ iA = {
sortable: "sorditav veerg"
};
// node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var aA = {};
-aA = {
+var oA = {};
+oA = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -29445,8 +29445,8 @@ aA = {
sortable: "lajiteltava sarake"
};
// node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var oA = {};
-oA = {
+var sA = {};
+sA = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -29460,8 +29460,8 @@ oA = {
sortable: "colonne triable"
};
// node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var sA = {};
-sA = {
+var cA = {};
+cA = {
ascending: "עולה",
ascendingSort: (e) => `\u{5DE}\u{5D5}\u{5D9}\u{5DF} \u{5DC}\u{5E4}\u{5D9} \u{5E2}\u{5DE}\u{5D5}\u{5D3}\u{5D4} ${e.columnName} \u{5D1}\u{5E1}\u{5D3}\u{5E8} \u{5E2}\u{5D5}\u{5DC}\u{5D4}`,
collapse: "כווץ",
@@ -29475,8 +29475,8 @@ sA = {
sortable: "עמודה שניתן למיין"
};
// node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var cA = {};
-cA = {
+var lA = {};
+lA = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -29490,8 +29490,8 @@ cA = {
sortable: "stupac koji se može razvrstati"
};
// node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var lA = {};
-lA = {
+var uA = {};
+uA = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -29505,8 +29505,8 @@ lA = {
sortable: "rendezendő oszlop"
};
// node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var uA = {};
-uA = {
+var dA = {};
+dA = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -29520,8 +29520,8 @@ uA = {
sortable: "colonna ordinabile"
};
// node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var dA = {};
-dA = {
+var fA = {};
+fA = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -29535,8 +29535,8 @@ dA = {
sortable: "並べ替え可能な列"
};
// node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var fA = {};
-fA = {
+var pA = {};
+pA = {
ascending: "오름차순",
ascendingSort: (e) => `${e.columnName} \u{C5F4}\u{C744} \u{AE30}\u{C900}\u{C73C}\u{B85C} \u{C624}\u{B984}\u{CC28}\u{C21C}\u{C73C}\u{B85C} \u{C815}\u{B82C}\u{B428}`,
collapse: "접기",
@@ -29550,8 +29550,8 @@ fA = {
sortable: "정렬 가능한 열"
};
// node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var pA = {};
-pA = {
+var mA = {};
+mA = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -29565,8 +29565,8 @@ pA = {
sortable: "rikiuojamas stulpelis"
};
// node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var mA = {};
-mA = {
+var hA = {};
+hA = {
ascending: "augošā secībā",
ascendingSort: (e) => `k\u{101}rtots p\u{113}c kolonnas ${e.columnName} augo\u{161}\u{101} sec\u{12B}b\u{101}`,
collapse: "Sakļaut",
@@ -29580,8 +29580,8 @@ mA = {
sortable: "kārtojamā kolonna"
};
// node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var hA = {};
-hA = {
+var gA = {};
+gA = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -29595,8 +29595,8 @@ hA = {
sortable: "kolonne som kan sorteres"
};
// node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var gA = {};
-gA = {
+var _A = {};
+_A = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -29610,8 +29610,8 @@ gA = {
sortable: "sorteerbare kolom"
};
// node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var _A = {};
-_A = {
+var vA = {};
+vA = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -29625,8 +29625,8 @@ _A = {
sortable: "kolumna z możliwością sortowania"
};
// node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var vA = {};
-vA = {
+var yA = {};
+yA = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -29640,8 +29640,8 @@ vA = {
sortable: "coluna classificável"
};
// node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var yA = {};
-yA = {
+var bA = {};
+bA = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -29655,8 +29655,8 @@ yA = {
sortable: "Coluna ordenável"
};
// node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var bA = {};
-bA = {
+var xA = {};
+xA = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -29670,8 +29670,8 @@ bA = {
sortable: "coloană sortabilă"
};
// node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var xA = {};
-xA = {
+var SA = {};
+SA = {
ascending: "возрастание",
ascendingSort: (e) => `\u{441}\u{43E}\u{440}\u{442}\u{438}\u{440}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{441}\u{442}\u{43E}\u{43B}\u{431}\u{435}\u{446} ${e.columnName} \u{432} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{435} \u{432}\u{43E}\u{437}\u{440}\u{430}\u{441}\u{442}\u{430}\u{43D}\u{438}\u{44F}`,
collapse: "Свернуть",
@@ -29685,8 +29685,8 @@ xA = {
sortable: "сортируемый столбец"
};
// node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var SA = {};
-SA = {
+var CA = {};
+CA = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -29700,8 +29700,8 @@ SA = {
sortable: "zoraditeľný stĺpec"
};
// node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var CA = {};
-CA = {
+var wA = {};
+wA = {
ascending: "naraščajoče",
ascendingSort: (e) => `razvr\u{161}\u{10D}eno po stolpcu ${e.columnName} v nara\u{161}\u{10D}ajo\u{10D}em vrstnem redu`,
collapse: "Strni",
@@ -29715,8 +29715,8 @@ CA = {
sortable: "razvrstljivi stolpec"
};
// node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var wA = {};
-wA = {
+var TA = {};
+TA = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -29730,8 +29730,8 @@ wA = {
sortable: "kolona koja se može sortirati"
};
// node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var TA = {};
-TA = {
+var EA = {};
+EA = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -29745,8 +29745,8 @@ TA = {
sortable: "sorterbar kolumn"
};
// node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var EA = {};
-EA = {
+var DA = {};
+DA = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -29760,8 +29760,8 @@ EA = {
sortable: "Sıralanabilir sütun"
};
// node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var DA = {};
-DA = {
+var OA = {};
+OA = {
ascending: "висхідний",
ascendingSort: (e) => `\u{432}\u{456}\u{434}\u{441}\u{43E}\u{440}\u{442}\u{43E}\u{432}\u{430}\u{43D}\u{43E} \u{437}\u{430} \u{441}\u{442}\u{43E}\u{432}\u{43F}\u{446}\u{435}\u{43C} ${e.columnName} \u{443} \u{432}\u{438}\u{441}\u{445}\u{456}\u{434}\u{43D}\u{43E}\u{43C}\u{443} \u{43F}\u{43E}\u{440}\u{44F}\u{434}\u{43A}\u{443}`,
collapse: "Згорнути",
@@ -29775,8 +29775,8 @@ DA = {
sortable: "сортувальний стовпець"
};
// node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var OA = {};
-OA = {
+var kA = {};
+kA = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -29790,8 +29790,8 @@ OA = {
sortable: "可排序的列"
};
// node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var kA = {};
-kA = {
+var AA = {};
+AA = {
ascending: "遞增",
ascendingSort: (e) => `\u{5DF2}\u{4F9D}\u{64DA}\u{300C}${e.columnName}\u{300D}\u{6B04}\u{905E}\u{589E}\u{6392}\u{5E8F}`,
collapse: "收合",
@@ -29805,45 +29805,45 @@ kA = {
sortable: "可排序的欄"
};
// node_modules/react-aria/dist/private/table/intlStrings.mjs
-var AA = {};
-AA = {
- "ar-AE": Xk,
- "bg-BG": Zk,
- "cs-CZ": Qk,
- "da-DK": $k,
- "de-DE": eA,
- "el-GR": tA,
- "en-US": nA,
- "es-ES": rA,
- "et-EE": iA,
- "fi-FI": aA,
- "fr-FR": oA,
- "he-IL": sA,
- "hr-HR": cA,
- "hu-HU": lA,
- "it-IT": uA,
- "ja-JP": dA,
- "ko-KR": fA,
- "lt-LT": pA,
- "lv-LV": mA,
- "nb-NO": hA,
- "nl-NL": gA,
- "pl-PL": _A,
- "pt-BR": vA,
- "pt-PT": yA,
- "ro-RO": bA,
- "ru-RU": xA,
- "sk-SK": SA,
- "sl-SI": CA,
- "sr-SP": wA,
- "sv-SE": TA,
- "tr-TR": EA,
- "uk-UA": DA,
- "zh-CN": OA,
- "zh-TW": kA
+var jA = {};
+jA = {
+ "ar-AE": Zk,
+ "bg-BG": Qk,
+ "cs-CZ": $k,
+ "da-DK": eA,
+ "de-DE": tA,
+ "el-GR": nA,
+ "en-US": rA,
+ "es-ES": iA,
+ "et-EE": aA,
+ "fi-FI": oA,
+ "fr-FR": sA,
+ "he-IL": cA,
+ "hr-HR": lA,
+ "hu-HU": uA,
+ "it-IT": dA,
+ "ja-JP": fA,
+ "ko-KR": pA,
+ "lt-LT": mA,
+ "lv-LV": hA,
+ "nb-NO": gA,
+ "nl-NL": _A,
+ "pl-PL": vA,
+ "pt-BR": yA,
+ "pt-PT": bA,
+ "ro-RO": xA,
+ "ru-RU": SA,
+ "sk-SK": CA,
+ "sl-SI": wA,
+ "sr-SP": TA,
+ "sv-SE": EA,
+ "tr-TR": DA,
+ "uk-UA": OA,
+ "zh-CN": kA,
+ "zh-TW": AA
};
// node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var kce = class extends Uk {
+var Oce = class extends Wk {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -29851,7 +29851,7 @@ var kce = class extends Uk {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = pD(fD(n, this.collection));
+ let e = mD(pD(n, this.collection));
if (e) return e.key;
let t = this.getFirstKey();
return t == null || !this.collection.getItem(t) ? null : super.getKeyForItemInRowByIndex(t, n.index);
@@ -29872,13 +29872,13 @@ var kce = class extends Uk {
let t = this.findNextKey(e.key, (e) => e.type === "column");
if (t != null) return t;
let n = this.collection.headerRows[e.level];
- for (let e of fD(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of pD(n, this.collection)) if (e.type === "column") return e.key;
return null;
}
findPreviousColumnKey(e) {
let t = this.findPreviousKey(e.key, (e) => e.type === "column");
if (t != null) return t;
- let n = this.collection.headerRows[e.level], r = [...fD(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...pD(n, this.collection)];
for (let e = r.length - 1; e >= 0; e--) {
let t = r[e];
if (t.type === "column") return t.key;
@@ -29907,7 +29907,7 @@ var kce = class extends Uk {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of fD(o, this.collection)) {
+ for (let r of pD(o, this.collection)) {
let a = n.columns[r.index];
if (n.rowHeaderColumnKeys.has(a.key) && r.textValue) {
let a = r.textValue.slice(0, e.length);
@@ -29920,14 +29920,14 @@ var kce = class extends Uk {
}
};
// node_modules/react-aria/dist/private/table/useTable.mjs
-function Ace(e) {
+function kce(e) {
return e && e.__esModule ? e.default : e;
}
-function jce(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = xD({
+function Ace(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = SD({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Pw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new kce({
+ }), { direction: c } = Fw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new Oce({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -29946,51 +29946,51 @@ function jce(e, t, n) {
s,
a,
o
- ]), d = RC(e.id);
- Gk.set(t, d);
- let { gridProps: f } = Oce({
+ ]), d = zC(e.id);
+ Kk.set(t, d);
+ let { gridProps: f } = Dce({
...e,
id: d,
keyboardDelegate: u
}, t, n);
i && (f["aria-rowcount"] = t.collection.size + t.collection.headerRows.length), t.treeColumn != null && (f.role = "treegrid");
- let { column: p, direction: m } = t.sortDescriptor || {}, h = Bw(Ace(AA), "@react-aria/table"), g = (0, F.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = Vw(kce(jA), "@react-aria/table"), g = (0, F.useMemo)(() => {
let e = t.collection.columns.find((e) => e.key === p)?.textValue ?? "";
return m && p ? h.format(`${m}Sort`, { columnName: e }) : void 0;
}, [
m,
p,
t.collection.columns
- ]), _ = LT(g);
- return AT(() => {
- g && kT(g, "assertive", 500);
+ ]), _ = RT(g);
+ return jT(() => {
+ g && AT(g, "assertive", 500);
}, [g]), { gridProps: K(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
// node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function jA(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Pw(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Wk.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
+function MA(e, t, n) {
+ let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Fw(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Gk.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
if (n.current) {
- let e = wT(n.current);
+ let e = TT(n.current);
if (p === "child") {
- let i = kS(xS(n.current));
- if (jS(n.current) && n.current !== i) return;
- let a = xS(n.current);
+ let i = jS(CS(n.current));
+ if (NS(n.current) && n.current !== i) return;
+ let a = CS(n.current);
if (!i || i === a.body || i === n.current) {
let e = h.current;
- if (e && m.current === r.key && OS(n.current, e)) {
- NC(e);
+ if (e && m.current === r.key && AS(n.current, e)) {
+ PC(e);
return;
}
}
- let o = t.selectionManager.childFocusStrategy === "last" ? MA(e) : e.firstChild();
+ let o = t.selectionManager.childFocusStrategy === "last" ? NA(e) : e.firstChild();
if (o) {
- NC(o);
+ PC(o);
return;
}
}
- (m.current != null && r.key !== m.current || !jS(n.current)) && NC(n.current);
+ (m.current != null && r.key !== m.current || !NS(n.current)) && PC(n.current);
}
- }, { itemProps: _, isPressed: v } = SO({
+ }, { itemProps: _, isPressed: v } = CO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -30002,44 +30002,44 @@ function jA(e, t, n) {
}), y = K(_, {
role: "gridcell",
onKeyDownCapture: f !== "tab" || o ? (e) => {
- let i = kS(xS(n.current));
- if (!OS(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = wT(n.current);
+ let i = jS(CS(n.current));
+ if (!AS(e.currentTarget, G(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
+ let a = TT(n.current);
switch (a.currentNode = i, e.key) {
case "ArrowLeft": {
let t = l === "rtl" ? a.nextNode() : a.previousNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) NC(t), FT(t, { containingElement: MT(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) PC(t), IT(t, { containingElement: NT(n.current) });
else {
if (u.getKeyLeftOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "rtl" ? (NC(n.current), FT(n.current, { containingElement: MT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : MA(a), t && (NC(t), FT(t, { containingElement: MT(n.current) })));
+ p === "cell" && l === "rtl" ? (PC(n.current), IT(n.current, { containingElement: NT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : NA(a), t && (PC(t), IT(t, { containingElement: NT(n.current) })));
}
break;
}
case "ArrowRight": {
let t = l === "rtl" ? a.previousNode() : a.nextNode();
- if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) NC(t), FT(t, { containingElement: MT(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) PC(t), IT(t, { containingElement: NT(n.current) });
else {
if (u.getKeyRightOf?.(r.key) !== r.key) {
n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
break;
}
- p === "cell" && l === "ltr" ? (NC(n.current), FT(n.current, { containingElement: MT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? MA(a) : a.firstChild(), t && (NC(t), FT(t, { containingElement: MT(n.current) })));
+ p === "cell" && l === "ltr" ? (PC(n.current), IT(n.current, { containingElement: NT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? NA(a) : a.firstChild(), t && (PC(t), IT(t, { containingElement: NT(n.current) })));
}
break;
}
case "ArrowUp":
- case "ArrowDown": !e.altKey && OS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && AS(n.current, G(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
} : void 0,
onKeyDown: f === "tab" ? (e) => {
- let r = kS(xS(n.current));
- if (OS(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
+ let r = jS(CS(n.current));
+ if (AS(e.currentTarget, G(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
if (f === "tab" && G(e) !== n.current && e.key !== "Tab") e.stopPropagation();
else if (e.key === "Tab" && f === "tab") {
- let t = wT(n.current, { tabbable: !0 });
+ let t = TT(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -30050,9 +30050,9 @@ function jA(e, t, n) {
onFocus: (e) => {
if (m.current = r.key, G(e) !== n.current) {
let i = G(e);
- n.current && OS(n.current, i) && (h.current = i), xC() || t.selectionManager.setFocusedKey(r.key);
- } else p === "child" && e.relatedTarget && OS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- p === "child" && kS(xS(n.current)) === n.current && g();
+ n.current && AS(n.current, i) && (h.current = i), SC() || t.selectionManager.setFocusedKey(r.key);
+ } else p === "child" && e.relatedTarget && AS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
+ p === "child" && jS(CS(n.current)) === n.current && g();
});
},
...p === "child" && f === "tab" ? { tabIndex: -1 } : {}
@@ -30067,7 +30067,7 @@ function jA(e, t, n) {
isPressed: v
};
}
-function MA(e) {
+function NA(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -30075,32 +30075,32 @@ function MA(e) {
return t;
}
// node_modules/react-aria/dist/private/table/useTableCell.mjs
-function Mce(e, t, n) {
- let { gridCellProps: r, isPressed: i } = jA(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = Jk(t, e.node.parentKey, a)), {
+function jce(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = MA(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = Yk(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
// node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function Nce(e) {
+function Mce(e) {
return e && e.__esModule ? e.default : e;
}
-function Pce(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = jA({
+function Nce(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = MA({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = nT({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = rT({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
},
ref: n
- }), { focusableProps: l } = QC({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
- r.props.allowsSorting && !XS() && (u = d ? f : "none");
- let p = Bw(Nce(AA), "@react-aria/table"), m;
- i && (m = `${p.format("sortable")}`, d && f && XS() && (m = `${m}, ${p.format(f)}`));
- let h = LT(m), g = t.collection.size === 0;
+ }), { focusableProps: l } = $C({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
+ r.props.allowsSorting && !QS() && (u = d ? f : "none");
+ let p = Vw(Mce(jA), "@react-aria/table"), m;
+ i && (m = `${p.format("sortable")}`, d && f && QS() && (m = `${m}, ${p.format(f)}`));
+ let h = RT(m), g = t.collection.size === 0;
return (0, F.useEffect)(() => {
g && t.selectionManager.focusedKey === r.key && t.selectionManager.setFocusedKey(null);
}, [
@@ -30111,7 +30111,7 @@ function Pce(e, t, n) {
columnHeaderProps: {
...K(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: qk(t, r.key),
+ id: Jk(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -30119,17 +30119,17 @@ function Pce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableColumnResize.mjs
-function Fce(e) {
+function Pce(e) {
return e && e.__esModule ? e.default : e;
}
-function Ice(e, t, n) {
- let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Bw(Fce(AA), "@react-aria/table"), d = RC(), f = t.resizingColumn === r.key, p = (0, F.useRef)(f), m = (0, F.useRef)(null), h = (0, F.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, F.useState)(!1), { direction: y } = Pw(), b = (0, F.useCallback)((e) => {
+function Fce(e, t, n) {
+ let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Vw(Pce(jA), "@react-aria/table"), d = zC(), f = t.resizingColumn === r.key, p = (0, F.useRef)(f), m = (0, F.useRef)(null), h = (0, F.useRef)(!1), g = t.tableState.isKeyboardNavigationDisabled, [_, v] = (0, F.useState)(!1), { direction: y } = Fw(), b = (0, F.useCallback)((e) => {
p.current || (m.current = t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.startResize(e.key), t.tableState.setKeyboardNavigationDisabled(!0), o?.(m.current)), p.current = !0;
}, [t, o]), x = (0, F.useCallback)((e, n) => {
let r = t.updateResizedColumns(e.key, n);
s?.(r), m.current = r;
}, [t, s]), S = (0, F.useCallback)((e) => {
- p.current && (m.current ??= t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(m.current), p.current = !1, i?.current && !h.current && NC(i.current)), m.current = null;
+ p.current && (m.current ??= t.updateResizedColumns(e.key, t.getColumnWidth(e.key)), t.endResize(), t.tableState.setKeyboardNavigationDisabled(!1), c?.(m.current), p.current = !1, i?.current && !h.current && PC(i.current)), m.current = null;
}, [
t,
i,
@@ -30137,14 +30137,14 @@ function Ice(e, t, n) {
]), C = () => {
if (g) S(r);
else return !1;
- }, { keyboardProps: w } = JC({ shortcuts: {
+ }, { keyboardProps: w } = YC({ shortcuts: {
Escape: () => C(),
Enter: () => {
g ? S(r) : b(r);
},
" ": () => C(),
Tab: () => C()
- } }), T = (0, F.useRef)(0), { moveProps: E } = sE({
+ } }), T = (0, F.useRef)(0), { moveProps: E } = cE({
onMoveStart(e) {
T.current = t.getColumnWidth(r.key), e.pointerType === "mouse" && v(!0), b(r);
},
@@ -30160,12 +30160,12 @@ function Ice(e, t, n) {
g && E.onKeyDown?.(e);
}, [g, E]), O = Math.floor(t.getColumnMinWidth(r.key)), k = Math.floor(t.getColumnMaxWidth(r.key));
k === Infinity && (k = 2 ** 53 - 1);
- let A = Math.floor(t.getColumnWidth(r.key)), j = wC();
+ let A = Math.floor(t.getColumnWidth(r.key)), j = TC();
j === "virtual" && typeof window < "u" && "ontouchstart" in window && (j = "touch");
- let M = LT(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
+ let M = RT(i?.current == null && (j === "keyboard" || j === "virtual") && !f ? u.format("resizerDescription") : void 0), ee = {
"aria-label": l,
"aria-orientation": "horizontal",
- "aria-labelledby": `${d} ${qk(t.tableState, r.key)}`,
+ "aria-labelledby": `${d} ${Jk(t.tableState, r.key)}`,
"aria-valuetext": u.format("columnSize", { value: A }),
type: "range",
min: O,
@@ -30173,11 +30173,11 @@ function Ice(e, t, n) {
value: A,
...M
}, N = (0, F.useCallback)(() => {
- n.current && NC(n.current);
- }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = Ew(b);
+ n.current && PC(n.current);
+ }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = Dw(b);
(0, F.useEffect)(() => {
if (P.current !== te && te != null && te === r.key) {
- h.current = kS() === n.current, ne(r);
+ h.current = jS() === n.current, ne(r);
let e = setTimeout(() => N(), 0), t = setTimeout(N, 400);
return () => {
clearTimeout(e), clearTimeout(t);
@@ -30193,7 +30193,7 @@ function Ice(e, t, n) {
let re = (e) => {
let n = t.getColumnWidth(r.key), i = parseFloat(G(e).value);
i = i > n ? n + 10 : n - 10, x(r, i);
- }, { pressProps: I } = nT({
+ }, { pressProps: I } = rT({
preventFocusOnPress: !0,
onPressStart: (e) => {
e.ctrlKey || e.altKey || e.metaKey || e.shiftKey || e.pointerType === "keyboard" || (e.pointerType === "virtual" && t.resizingColumn != null ? S(r) : (N(), e.pointerType !== "virtual" && b(r)));
@@ -30201,7 +30201,7 @@ function Ice(e, t, n) {
onPress: (e) => {
(e.pointerType === "touch" && h.current || e.pointerType === "mouse") && t.resizingColumn != null && S(r);
}
- }), { visuallyHiddenProps: ie } = lE();
+ }), { visuallyHiddenProps: ie } = uE();
return {
resizerProps: K(w, {
...E,
@@ -30220,19 +30220,19 @@ function Ice(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function Lce(e, t, n) {
+function Ice(e, t, n) {
let { node: r, isVirtualized: i } = e, a = { role: "row" };
return i && t.treeColumn == null && (a["aria-rowindex"] = r.index + 1), { rowProps: a };
}
// node_modules/react-aria/dist/private/grid/useGridRow.mjs
-function Rce(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Wk.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = SO({
+function Lce(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Gk.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = CO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: c || a,
- onAction: l || r?.props?.onAction ? PC(r?.props?.onAction, l) : void 0,
+ onAction: l || r?.props?.onAction ? FC(r?.props?.onAction, l) : void 0,
isDisabled: t.collection.size === 0
}), f = t.selectionManager.isSelected(r.key), p = {
role: "row",
@@ -30246,10 +30246,10 @@ function Rce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableRow.mjs
-function zce(e) {
+function Rce(e) {
return e && e.__esModule ? e.default : e;
}
-var NA = {
+var PA = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -30259,21 +30259,21 @@ var NA = {
rtl: "ArrowRight"
}
};
-function Bce(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Rce(e, t, n), { direction: s } = Pw();
+function zce(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Lce(e, t, n), { direction: s } = Fw();
i && t.treeColumn == null ? a["aria-rowindex"] = r.index + 1 + t.collection.headerRows.length : delete a["aria-rowindex"];
- let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = Bw(zce(AA), "@react-aria/table"), u = Ow({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = Vw(Rce(jA), "@react-aria/table"), u = kw({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": Yk(t, r.key)
+ "aria-labelledby": Xk(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = PA(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = PA(t.collection, a);
+ let n = FA(t.collection, r), i = e.props?.hasChildRows || e.props?.UNSTABLE_childItems || n?.type !== "cell", a = t.collection.getItem(r.parentKey), c = a.type === "tablebody" || a.type === "body", l = FA(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === NA.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === NA.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
+ n.key === PA.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === PA.collapse[s] && t.selectionManager.focusedKey === e.key && (t.expandedKeys === "all" ? t.expandedKeys === "all" && (t.toggleKey(e.key), n.stopPropagation()) : i && t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : !t.expandedKeys.has(e.key) && e.parentKey != null && e.level > 0 && (t.selectionManager.setFocusedKey(e.parentKey), n.stopPropagation()));
},
"aria-expanded": i ? t.expandedKeys === "all" || t.expandedKeys.has(r.key) : void 0,
"aria-level": e.level + 1,
@@ -30291,42 +30291,42 @@ function Bce(e, t, n) {
};
}
}
- let p = eC(r.props), m = o.hasAction ? p : {};
+ let p = nC(r.props), m = o.hasAction ? p : {};
return {
rowProps: {
...K(a, d, m),
- "aria-labelledby": Yk(t, r.key)
+ "aria-labelledby": Xk(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function PA(e, t) {
+function FA(e, t) {
return "lastChildKey" in t ? t.lastChildKey == null ? null : e.getItem(t.lastChildKey) : Array.from(t.childNodes).findLast((e) => e.parentKey === t.key);
}
// node_modules/react-aria/dist/private/grid/useGridRowGroup.mjs
-function Vce() {
+function Bce() {
return { rowGroupProps: { role: "rowgroup" } };
}
// node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function FA() {
- return Vce();
+function IA() {
+ return Bce();
}
// node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function Hce(e) {
+function Vce(e) {
return e && e.__esModule ? e.default : e;
}
-function Uce(e, t) {
- let { key: n } = e, { checkboxProps: r } = OO(e, t);
+function Hce(e, t) {
+ let { key: n } = e, { checkboxProps: r } = kO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${Yk(t, n)}`
+ "aria-labelledby": `${r.id} ${Xk(t, n)}`
} };
}
-function Wce(e) {
+function Uce(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": Bw(Hce(AA), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": Vw(Vce(jA), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
isSelected: n,
isDisabled: r !== "multiple" || e.collection.size === 0 || e.collection.rows.length === 1 && e.collection.rows[0].type === "loader",
isIndeterminate: !t && !n,
@@ -30334,22 +30334,22 @@ function Wce(e) {
} };
}
// node_modules/react-aria/dist/private/tabs/utils.mjs
-var IA = /* @__PURE__ */ new WeakMap();
-function LA(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${IA.get(e)}-${n}-${t}`) : "";
+var LA = /* @__PURE__ */ new WeakMap();
+function RA(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${LA.get(e)}-${n}-${t}`) : "";
}
// node_modules/react-aria/dist/private/tabs/useTab.mjs
-function Gce(e, t, n) {
- let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = SO({
+function Wce(e, t, n) {
+ let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = CO({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = LA(t, r, "tab"), m = LA(t, r, "tabpanel"), { tabIndex: h } = d, g = Hw(u?.props, { labelable: !0 });
+ }), p = RA(t, r, "tab"), m = RA(t, r, "tabpanel"), { tabIndex: h } = d, g = Uw(u?.props, { labelable: !0 });
delete g.id;
- let _ = tC(u?.props), { focusableProps: v } = QC({
+ let _ = rC(u?.props), { focusableProps: v } = $C({
...u?.props,
isDisabled: l
}, n);
@@ -30368,7 +30368,7 @@ function Gce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var Kce = class {
+var Gce = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -30411,11 +30411,11 @@ var Kce = class {
}
};
// node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function qce(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Pw(), { collectionProps: l } = dD({
+function Kce(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Fw(), { collectionProps: l } = fD({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, F.useMemo)(() => new Kce(a, c, r, s), [
+ keyboardDelegate: (0, F.useMemo)(() => new Gce(a, c, r, s), [
a,
s,
r,
@@ -30425,9 +30425,9 @@ function qce(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = RC();
- return IA.set(t, u), { tabListProps: {
- ...K(l, Ow({
+ }), u = zC();
+ return LA.set(t, u), { tabListProps: {
+ ...K(l, kw({
...e,
id: u
})),
@@ -30437,12 +30437,12 @@ function qce(e, t, n) {
} };
}
// node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function Jce(e, t, n) {
- let r = yO(n) ? void 0 : 0, i = LA(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: K(Ow({
+function qce(e, t, n) {
+ let r = bO(n) ? void 0 : 0, i = RA(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: K(kw({
...e,
id: i,
- "aria-labelledby": LA(t, t?.selectedKey, "tab")
+ "aria-labelledby": RA(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -30451,265 +30451,265 @@ function Jce(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/tree/useTree.mjs
-function Yce(e, t, n) {
- let { gridProps: r } = Bse(e, t, n);
+function Jce(e, t, n) {
+ let { gridProps: r } = zse(e, t, n);
return r.role = "treegrid", { gridProps: r };
}
// node_modules/react-aria/dist/private/intl/tree/ar-AE.mjs
-var RA = {};
-RA = {
+var zA = {};
+zA = {
collapse: "طي",
expand: "تمديد"
};
// node_modules/react-aria/dist/private/intl/tree/bg-BG.mjs
-var zA = {};
-zA = {
+var BA = {};
+BA = {
collapse: "Свиване",
expand: "Разширяване"
};
// node_modules/react-aria/dist/private/intl/tree/cs-CZ.mjs
-var BA = {};
-BA = {
+var VA = {};
+VA = {
collapse: "Sbalit",
expand: "Roztáhnout"
};
// node_modules/react-aria/dist/private/intl/tree/da-DK.mjs
-var VA = {};
-VA = {
+var HA = {};
+HA = {
collapse: "Skjul",
expand: "Udvid"
};
// node_modules/react-aria/dist/private/intl/tree/de-DE.mjs
-var HA = {};
-HA = {
+var UA = {};
+UA = {
collapse: "Reduzieren",
expand: "Erweitern"
};
// node_modules/react-aria/dist/private/intl/tree/el-GR.mjs
-var UA = {};
-UA = {
+var WA = {};
+WA = {
collapse: "Σύμπτυξη",
expand: "Ανάπτυξη"
};
// node_modules/react-aria/dist/private/intl/tree/en-US.mjs
-var WA = {};
-WA = {
+var GA = {};
+GA = {
expand: "Expand",
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/tree/es-ES.mjs
-var GA = {};
-GA = {
+var KA = {};
+KA = {
collapse: "Contraer",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/et-EE.mjs
-var KA = {};
-KA = {
+var qA = {};
+qA = {
collapse: "Ahenda",
expand: "Laienda"
};
// node_modules/react-aria/dist/private/intl/tree/fi-FI.mjs
-var qA = {};
-qA = {
+var JA = {};
+JA = {
collapse: "Pienennä",
expand: "Laajenna"
};
// node_modules/react-aria/dist/private/intl/tree/fr-FR.mjs
-var JA = {};
-JA = {
+var YA = {};
+YA = {
collapse: "Réduire",
expand: "Développer"
};
// node_modules/react-aria/dist/private/intl/tree/he-IL.mjs
-var YA = {};
-YA = {
+var XA = {};
+XA = {
collapse: "כווץ",
expand: "הרחב"
};
// node_modules/react-aria/dist/private/intl/tree/hr-HR.mjs
-var XA = {};
-XA = {
+var ZA = {};
+ZA = {
collapse: "Sažmi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/hu-HU.mjs
-var ZA = {};
-ZA = {
+var QA = {};
+QA = {
collapse: "Összecsukás",
expand: "Kibontás"
};
// node_modules/react-aria/dist/private/intl/tree/it-IT.mjs
-var QA = {};
-QA = {
+var $A = {};
+$A = {
collapse: "Comprimi",
expand: "Espandi"
};
// node_modules/react-aria/dist/private/intl/tree/ja-JP.mjs
-var $A = {};
-$A = {
+var ej = {};
+ej = {
collapse: "折りたたむ",
expand: "展開"
};
// node_modules/react-aria/dist/private/intl/tree/ko-KR.mjs
-var ej = {};
-ej = {
+var tj = {};
+tj = {
collapse: "접기",
expand: "펼치기"
};
// node_modules/react-aria/dist/private/intl/tree/lt-LT.mjs
-var tj = {};
-tj = {
+var nj = {};
+nj = {
collapse: "Sutraukti",
expand: "Išskleisti"
};
// node_modules/react-aria/dist/private/intl/tree/lv-LV.mjs
-var nj = {};
-nj = {
+var rj = {};
+rj = {
collapse: "Sakļaut",
expand: "Izvērst"
};
// node_modules/react-aria/dist/private/intl/tree/nb-NO.mjs
-var rj = {};
-rj = {
+var ij = {};
+ij = {
collapse: "Skjul",
expand: "Utvid"
};
// node_modules/react-aria/dist/private/intl/tree/nl-NL.mjs
-var ij = {};
-ij = {
+var aj = {};
+aj = {
collapse: "Samenvouwen",
expand: "Uitvouwen"
};
// node_modules/react-aria/dist/private/intl/tree/pl-PL.mjs
-var aj = {};
-aj = {
+var oj = {};
+oj = {
collapse: "Zwiń",
expand: "Rozwiń"
};
// node_modules/react-aria/dist/private/intl/tree/pt-BR.mjs
-var oj = {};
-oj = {
+var sj = {};
+sj = {
collapse: "Recolher",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/pt-PT.mjs
-var sj = {};
-sj = {
+var cj = {};
+cj = {
collapse: "Colapsar",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/ro-RO.mjs
-var cj = {};
-cj = {
+var lj = {};
+lj = {
collapse: "Restrângeți",
expand: "Extindeți"
};
// node_modules/react-aria/dist/private/intl/tree/ru-RU.mjs
-var lj = {};
-lj = {
+var uj = {};
+uj = {
collapse: "Свернуть",
expand: "Развернуть"
};
// node_modules/react-aria/dist/private/intl/tree/sk-SK.mjs
-var uj = {};
-uj = {
+var dj = {};
+dj = {
collapse: "Zbaliť",
expand: "Rozbaliť"
};
// node_modules/react-aria/dist/private/intl/tree/sl-SI.mjs
-var dj = {};
-dj = {
+var fj = {};
+fj = {
collapse: "Strni",
expand: "Razširi"
};
// node_modules/react-aria/dist/private/intl/tree/sr-SP.mjs
-var fj = {};
-fj = {
+var pj = {};
+pj = {
collapse: " Skupi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/sv-SE.mjs
-var pj = {};
-pj = {
+var mj = {};
+mj = {
collapse: "Dölj",
expand: "Expandera"
};
// node_modules/react-aria/dist/private/intl/tree/tr-TR.mjs
-var mj = {};
-mj = {
+var hj = {};
+hj = {
collapse: "Daralt",
expand: "Genişlet"
};
// node_modules/react-aria/dist/private/intl/tree/uk-UA.mjs
-var hj = {};
-hj = {
+var gj = {};
+gj = {
collapse: "Згорнути",
expand: "Розгорнути"
};
// node_modules/react-aria/dist/private/intl/tree/zh-CN.mjs
-var gj = {};
-gj = {
+var _j = {};
+_j = {
collapse: "折叠",
expand: "扩展"
};
// node_modules/react-aria/dist/private/intl/tree/zh-TW.mjs
-var _j = {};
-_j = {
+var vj = {};
+vj = {
collapse: "收合",
expand: "展開"
};
// node_modules/react-aria/dist/private/tree/intlStrings.mjs
-var vj = {};
-vj = {
- "ar-AE": RA,
- "bg-BG": zA,
- "cs-CZ": BA,
- "da-DK": VA,
- "de-DE": HA,
- "el-GR": UA,
- "en-US": WA,
- "es-ES": GA,
- "et-EE": KA,
- "fi-FI": qA,
- "fr-FR": JA,
- "he-IL": YA,
- "hr-HR": XA,
- "hu-HU": ZA,
- "it-IT": QA,
- "ja-JP": $A,
- "ko-KR": ej,
- "lt-LT": tj,
- "lv-LV": nj,
- "nb-NO": rj,
- "nl-NL": ij,
- "pl-PL": aj,
- "pt-BR": oj,
- "pt-PT": sj,
- "ro-RO": cj,
- "ru-RU": lj,
- "sk-SK": uj,
- "sl-SI": dj,
- "sr-SP": fj,
- "sv-SE": pj,
- "tr-TR": mj,
- "uk-UA": hj,
- "zh-CN": gj,
- "zh-TW": _j
+var yj = {};
+yj = {
+ "ar-AE": zA,
+ "bg-BG": BA,
+ "cs-CZ": VA,
+ "da-DK": HA,
+ "de-DE": UA,
+ "el-GR": WA,
+ "en-US": GA,
+ "es-ES": KA,
+ "et-EE": qA,
+ "fi-FI": JA,
+ "fr-FR": YA,
+ "he-IL": XA,
+ "hr-HR": ZA,
+ "hu-HU": QA,
+ "it-IT": $A,
+ "ja-JP": ej,
+ "ko-KR": tj,
+ "lt-LT": nj,
+ "lv-LV": rj,
+ "nb-NO": ij,
+ "nl-NL": aj,
+ "pl-PL": oj,
+ "pt-BR": sj,
+ "pt-PT": cj,
+ "ro-RO": lj,
+ "ru-RU": uj,
+ "sk-SK": dj,
+ "sl-SI": fj,
+ "sr-SP": pj,
+ "sv-SE": mj,
+ "tr-TR": hj,
+ "uk-UA": gj,
+ "zh-CN": _j,
+ "zh-TW": vj
};
// node_modules/react-aria/dist/private/tree/useTreeItem.mjs
-function Xce(e) {
+function Yce(e) {
return e && e.__esModule ? e.default : e;
}
-function yj(e, t, n) {
- let { node: r } = e, i = Vse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Bw(Xce(vj), "@react-aria/tree"), s = {
+function bj(e, t, n) {
+ let { node: r } = e, i = Bse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Vw(Yce(yj), "@react-aria/tree"), s = {
onPress: () => {
i.isDisabled || (t.toggleKey(r.key), t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r.key));
},
excludeFromTabOrder: !0,
preventFocusOnPress: !0,
"data-react-aria-prevent-focus": !0,
- ...Ow({
+ ...kw({
"aria-label": a ? o.format("collapse") : o.format("expand"),
"aria-labelledby": i.rowProps.id
})
@@ -30720,15 +30720,15 @@ function yj(e, t, n) {
};
}
// src/react/components/selection-dock.tsx
-var bj = "(prefers-reduced-motion: reduce)", Zce = () => matchMedia(bj).matches, Qce = (e) => {
- let t = matchMedia(bj);
+var xj = "(prefers-reduced-motion: reduce)", Xce = () => matchMedia(xj).matches, Zce = (e) => {
+ let t = matchMedia(xj);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
-}, xj = /* @__PURE__ */ new Map(), Sj = () => {
+}, Sj = /* @__PURE__ */ new Map(), Cj = () => {
let e = document.documentElement;
- xj.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...xj.values())}px`) : e.style.removeProperty("--selection-dock-space");
+ Sj.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...Sj.values())}px`) : e.style.removeProperty("--selection-dock-space");
};
-function $ce({ children: e, count: t, label: n }) {
- let r = (0, F.useRef)(null), i = Tx(), a = (0, F.useSyncExternalStore)(Qce, Zce, () => !1), { isFocusVisible: o } = TC(), s = a || o, c = {
+function Qce({ children: e, count: t, label: n }) {
+ let r = (0, F.useRef)(null), i = Dx(), a = (0, F.useSyncExternalStore)(Zce, Xce, () => !1), { isFocusVisible: o } = EC(), s = a || o, c = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -30736,12 +30736,12 @@ function $ce({ children: e, count: t, label: n }) {
let e = r.current;
if (!e || !i) return;
let t = () => {
- xj.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), Sj();
+ Sj.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), Cj();
}, n = new ResizeObserver(t);
return n.observe(e), window.addEventListener("resize", t), t(), () => {
- n.disconnect(), window.removeEventListener("resize", t), xj.delete(e), Sj();
+ n.disconnect(), window.removeEventListener("resize", t), Sj.delete(e), Cj();
};
- }, [i]), /* @__PURE__ */ (0, I.jsxs)(uS.div, {
+ }, [i]), /* @__PURE__ */ (0, I.jsxs)(fS.div, {
ref: r,
role: "group",
"aria-label": n,
@@ -30774,17 +30774,17 @@ function $ce({ children: e, count: t, label: n }) {
}), e]
});
}
-function Cj({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(Ox, { children: e ? /* @__PURE__ */ (0, I.jsx)($ce, { ...t }, "selection") : null });
+function wj({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, I.jsx)(Ax, { children: e ? /* @__PURE__ */ (0, I.jsx)(Qce, { ...t }, "selection") : null });
}
// src/react/batch-dock/batch-dock-api.ts
-var wj = {
+var Tj = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function ele(e, t = !1) {
+function $ce(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -30800,7 +30800,7 @@ function ele(e, t = !1) {
glyph: "trash",
danger: !0
},
- wj
+ Tj
];
case "junk": return [
t ? {
@@ -30821,7 +30821,7 @@ function ele(e, t = !1) {
glyph: "trash",
danger: !0
},
- wj
+ Tj
];
case "follow": return [
{
@@ -30842,7 +30842,7 @@ function ele(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- wj
+ Tj
];
default: return [
{
@@ -30876,38 +30876,38 @@ function ele(e, t = !1) {
glyph: "trash",
danger: !0
},
- wj
+ Tj
];
}
}
// src/react/batch-dock/batch-dock-island.tsx
-var Tj = null, Ej = {
+var Ej = null, Dj = {
count: 0,
context: "catalog",
junkDismissed: !1
-}, Dj = /* @__PURE__ */ new Set();
-function tle(e) {
- return Dj.add(e), () => {
- Dj.delete(e);
+}, Oj = /* @__PURE__ */ new Set();
+function ele(e) {
+ return Oj.add(e), () => {
+ Oj.delete(e);
};
}
-function nle() {
- for (let e of [...Dj]) e();
+function tle() {
+ for (let e of [...Oj]) e();
}
-var rle = { render(e) {
- Ej = e, (0, Rt.flushSync)(nle);
+var nle = { render(e) {
+ Dj = e, (0, Rt.flushSync)(tle);
} };
-function ile(e) {
- return Tj = e, rle;
+function rle(e) {
+ return Ej = e, nle;
}
-function ale() {
- let e = (0, F.useSyncExternalStore)(tle, () => Ej);
- return Tj ? /* @__PURE__ */ (0, I.jsx)(ole, {
- host: Tj,
+function ile() {
+ let e = (0, F.useSyncExternalStore)(ele, () => Dj);
+ return Ej ? /* @__PURE__ */ (0, I.jsx)(ale, {
+ host: Ej,
props: e
}) : null;
}
-function ole({ host: e, props: t }) {
+function ale({ host: e, props: t }) {
let n = t.count > 0;
return (0, F.useLayoutEffect)(() => {
document.body.toggleAttribute("data-batch-dock-open", n);
@@ -30917,11 +30917,11 @@ function ole({ host: e, props: t }) {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, I.jsx)(Cj, {
+ children: /* @__PURE__ */ (0, I.jsx)(wj, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count.toLocaleString()} 项`,
- children: ele(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: $ce(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -30937,11 +30937,11 @@ function ole({ host: e, props: t }) {
});
}
// src/number-setting.ts
-function Oj(e, t, n, r) {
+function kj(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
// src/settings-store.ts
-function sle(e, t) {
+function ole(e, t) {
let n = /* @__PURE__ */ new Set(), r = 0, i = () => {
r += 1, n.forEach((e) => e());
};
@@ -30960,7 +30960,7 @@ function sle(e, t) {
};
}
// src/sort-preferences.ts
-var kj = [
+var Aj = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -30969,7 +30969,7 @@ var kj = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Aj = ["release", "发行时间"], jj = [...kj, Aj].map(([e]) => e), Mj = {
+], jj = ["release", "发行时间"], Mj = [...Aj, jj].map(([e]) => e), Nj = {
rating: ["从高到低", "从低到高"],
o: ["从多到少", "从少到多"],
plays: ["从多到少", "从少到多"],
@@ -30978,43 +30978,43 @@ var kj = [
new: ["从新到旧", "从旧到新"],
played: ["从近到远", "从远到近"],
release: ["从新到旧", "从旧到新"]
-}, Nj = {
+}, Pj = {
big: ["size", "desc"],
short: ["dur", "asc"],
long: ["dur", "desc"]
-}, Pj = (e, t, n = Mj) => (n[e] || [])[+(t === "asc")] || "", Fj = (e, t = Mj) => t[e] ? "desc" : "";
-function Ij(e, t, n, r = Mj) {
+}, Fj = (e, t, n = Nj) => (n[e] || [])[+(t === "asc")] || "", Ij = (e, t = Nj) => t[e] ? "desc" : "";
+function Lj(e, t, n, r = Nj) {
return e === t ? r[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
sort: e,
- dir: Fj(e, r)
+ dir: Ij(e, r)
};
}
-function Lj(e, t, n) {
+function Rj(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
-function Rj(e, t, n, r, i = n) {
- let a = e ? Nj[e] : void 0, o = a ? a[0] : e, s = o && jj.includes(o) ? o : i;
- return Mj[s] ? {
+function zj(e, t, n, r, i = n) {
+ let a = e ? Pj[e] : void 0, o = a ? a[0] : e, s = o && Mj.includes(o) ? o : i;
+ return Nj[s] ? {
sort: s,
- dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Lj(s, n, r)
+ dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Rj(s, n, r)
} : {
sort: s,
dir: ""
};
}
// src/appearance/home-glow.ts
-var zj = [
+var Bj = [
"spot1",
"spot2",
"spot3"
-], cle = [
+], sle = [
"光晕一",
"光晕二",
"光晕三"
-], Bj = "native", Vj = [
+], Vj = "native", Hj = [
[
"ash",
"灰雾",
@@ -31320,7 +31320,7 @@ var zj = [
"rose"
],
[
- Bj,
+ Vj,
"玻璃原色",
{
spot1: {
@@ -31338,7 +31338,7 @@ var zj = [
},
"blue"
]
-], Hj = (e) => e === Bj, Uj = [...Vj.map(([e, t]) => [e, t]), ["custom", "自定义"]], lle = (e) => (Uj.find(([t]) => t === e) || Uj[0])[1], Wj = (e) => structuredClone((Vj.find(([t]) => t === e) || Vj[0])[2]), Gj = [
+], Uj = (e) => e === Vj, Wj = [...Hj.map(([e, t]) => [e, t]), ["custom", "自定义"]], cle = (e) => (Wj.find(([t]) => t === e) || Wj[0])[1], Gj = (e) => structuredClone((Hj.find(([t]) => t === e) || Hj[0])[2]), Kj = [
["red", "红"],
["orange", "橙"],
["amber", "琥珀"],
@@ -31351,7 +31351,7 @@ var zj = [
["violet", "紫罗兰"],
["fuchsia", "品红"],
["rose", "玫红"]
-], Kj = "blue", qj = (e) => Gj.some(([t]) => t === e) ? e : Kj, ule = (e) => (Vj.find(([t]) => t === e) || [])[3] || "blue", dle = [
+], qj = "blue", Jj = (e) => Kj.some(([t]) => t === e) ? e : qj, lle = (e) => (Hj.find(([t]) => t === e) || [])[3] || "blue", ule = [
["all", "全部"],
["gray", "灰"],
["red", "红"],
@@ -31361,7 +31361,7 @@ var zj = [
["blue", "蓝"],
["purple", "紫"],
["brown", "棕"]
-], fle = [
+], dle = [
[
"gray",
"云灰",
@@ -31757,11 +31757,11 @@ var zj = [
"霁蓝",
"#6686b8"
]
-], Jj = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, Yj = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, ple = (e, t) => `rgba(${[
+], Yj = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, Xj = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, fle = (e, t) => `rgba(${[
1,
3,
5
-].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, mle = {
+].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, ple = {
strength: [
0,
100,
@@ -31787,7 +31787,7 @@ var zj = [
100,
50
]
-}, Xj = {
+}, Zj = {
on: !0,
preset: "ash",
strength: 100,
@@ -31795,56 +31795,56 @@ var zj = [
speed: 100,
soften: 50,
size: 50,
- ...Wj("ash")
+ ...Gj("ash")
};
-function Zj(e) {
- let t = e && typeof e == "object" ? e : {}, n = Uj.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Wj(r === "custom" ? "ash" : r), a = {
+function Qj(e) {
+ let t = e && typeof e == "object" ? e : {}, n = Wj.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Gj(r === "custom" ? "ash" : r), a = {
on: t.on !== !1,
preset: r
};
- for (let [e, [n, r, i]] of Object.entries(mle)) a[e] = Jj(+t[e], n, r, i);
- for (let e of zj) {
+ for (let [e, [n, r, i]] of Object.entries(ple)) a[e] = Yj(+t[e], n, r, i);
+ for (let e of Bj) {
let r = n && t[e] && typeof t[e] == "object" ? t[e] : {}, o = i[e];
a[e] = {
- color: Yj(r.color, o.color),
- alpha: Jj(+r.alpha, 0, 100, o.alpha)
+ color: Xj(r.color, o.color),
+ alpha: Yj(+r.alpha, 0, 100, o.alpha)
};
}
return a;
}
-var hle = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, Qj = /* @__PURE__ */ new WeakMap();
-function gle(e, t) {
+var mle = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, $j = /* @__PURE__ */ new WeakMap();
+function hle(e, t) {
if (!e) return;
- let n = Qj.get(e);
- n || (n = /* @__PURE__ */ new Map(), Qj.set(e, n));
- let r = t.on && !Hj(t.preset), i = (t, r) => {
+ let n = $j.get(e);
+ n || (n = /* @__PURE__ */ new Map(), $j.set(e, n));
+ let r = t.on && !Uj(t.preset), i = (t, r) => {
n.get(t) !== r && (n.set(t, r), e.style.setProperty(t, r));
};
- i("--glow-strength", String(r ? t.strength / 100 : 0)), i("--glow-noise", String(r ? t.noise / 100 : 0)), i("--glow-soften", (.7 + t.soften / 100 * .6).toFixed(3)), i("--glow-size", (.5 + t.size / 100).toFixed(3)), i("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), i("--glow-drift-play", t.speed ? "running" : "paused"), zj.forEach((e, n) => {
+ i("--glow-strength", String(r ? t.strength / 100 : 0)), i("--glow-noise", String(r ? t.noise / 100 : 0)), i("--glow-soften", (.7 + t.soften / 100 * .6).toFixed(3)), i("--glow-size", (.5 + t.size / 100).toFixed(3)), i("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), i("--glow-drift-play", t.speed ? "running" : "paused"), Bj.forEach((e, n) => {
let r = t[e];
- i(`--glow-spot-${n + 1}-color`, ple(r.color, r.alpha));
+ i(`--glow-spot-${n + 1}-color`, fle(r.color, r.alpha));
});
}
-function _le(e, t) {
+function gle(e, t) {
if (!e) return;
- let n = !t.on || Hj(t.preset);
+ let n = !t.on || Uj(t.preset);
e.toggleAttribute("data-glow-native", n), e.style.setProperty("--glow-drift-scale", t.speed ? (100 / t.speed).toFixed(3) : "1"), e.style.setProperty("--glow-drift-play", t.speed ? "running" : "paused"), n ? (e.style.removeProperty("--glass-tint-a"), e.style.removeProperty("--glass-tint-b")) : (e.style.setProperty("--glass-tint-a", t.spot1.color), e.style.setProperty("--glass-tint-b", t.spot2.color));
}
// src/appearance/settings.ts
-var vle = "peach.settings.v1", yle = [
+var _le = "peach.settings.v1", vle = [
"system",
"light",
"dark"
-], $j = [
+], eM = [
0,
7,
30,
90
-], ble = [
+], yle = [
"feedHideGroupCompilations",
"feedHideSoloCompilations",
"feedHideExcerpts"
-], eM = {
+], tM = {
batchSize: 60,
defaultSort: "seed",
sortDefaultsVersion: 3,
@@ -31865,56 +31865,56 @@ var vle = "peach.settings.v1", yle = [
theme: "system",
groupCollapse: !0,
sidebarOrder: [...Bl],
- homeGlow: Xj,
- accent: Kj,
+ homeGlow: Zj,
+ accent: qj,
performerNameLanguage: "zh-CN"
-}, tM = (e, t, n) => t.includes(e) ? e : n;
-function xle(e) {
+}, nM = (e, t, n) => t.includes(e) ? e : n;
+function ble(e) {
let t = e && typeof e == "object" ? e : {}, n = {
- ...eM,
+ ...tM,
...t
};
- n.followInitialDays = $j.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
+ n.followInitialDays = eM.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
let r = !1, i = +n.sortDefaultsVersion || 0;
i < 2 && n.defaultSort === "new" && (n.defaultSort = "seed", r = !0);
- let a = Nj[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Oj(+n.batchSize, 1, 200, 60), n.defaultSort = tM(n.defaultSort, jj, "seed"), n.hoverDelaySeconds = Oj(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Oj(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = Oj(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Oj(+n.relatedLimit, 0, 60, 20), n.feedLimit = Oj(+n.feedLimit, 1, 100, 12), Object.assign(n, $a(n)), n.theme = tM(n.theme, yle, "system"), n.performerNameLanguage = tM(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = Zj(n.homeGlow), n.accent = qj(n.accent), n.sidebarOrder = Wl(n.sidebarOrder), {
+ let a = Pj[n.defaultSort];
+ return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = kj(+n.batchSize, 1, 200, 60), n.defaultSort = nM(n.defaultSort, Mj, "seed"), n.hoverDelaySeconds = kj(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = kj(+n.seekSeconds, 1, 300, 10), delete n.loginDays, delete n.metadataRefreshDays, n.ambientMode = n.ambientMode !== !1, n.theaterMode = n.theaterMode === !0, n.groupCollapse = n.groupCollapse !== !1, n.detailAutoplay = n.detailAutoplay !== !1, n.miniplayer = n.miniplayer !== !1, n.uiSounds = n.uiSounds !== !1, n.feedAutoScroll = n.feedAutoScroll !== !1, n.feedHideGroupCompilations = n.feedHideGroupCompilations !== !1, n.feedHideSoloCompilations = n.feedHideSoloCompilations === !0, n.feedHideExcerpts = n.feedHideExcerpts !== !1, n.searchHistoryLimit = kj(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = kj(+n.relatedLimit, 0, 60, 20), n.feedLimit = kj(+n.feedLimit, 1, 100, 12), Object.assign(n, $a(n)), n.theme = nM(n.theme, vle, "system"), n.performerNameLanguage = nM(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = Qj(n.homeGlow), n.accent = Jj(n.accent), n.sidebarOrder = Wl(n.sidebarOrder), {
settings: n,
migrated: r
};
}
-function Sle(e) {
+function xle(e) {
let t = {};
try {
t = JSON.parse(e.getItem("peach.settings.v1") || "{}");
} catch {}
- return xle(t);
+ return ble(t);
}
-var nM = null;
-function rM() {
- if (nM) return nM;
- let { settings: e, migrated: t } = Sle(localStorage);
- return nM = sle(vle, e), t && nM.save(), nM;
+var rM = null;
+function iM() {
+ if (rM) return rM;
+ let { settings: e, migrated: t } = xle(localStorage);
+ return rM = ole(_le, e), t && rM.save(), rM;
}
-function iM(e, t, n = rM()) {
+function aM(e, t, n = iM()) {
let r = n.value, i = e?.performerNameLanguage;
(i === "zh-CN" || i === "ja") && i !== r.performerNameLanguage && (r.performerNameLanguage = i, n.save(), t("performerNameLanguage"));
let a = e && e.followInitialDays;
- $j.includes(a) && (r.followInitialDays = a, n.save());
- for (let t of ble) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
+ eM.includes(a) && (r.followInitialDays = a, n.save());
+ for (let t of yle) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
let o = e && e.searchHistoryLimit;
- Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = Oj(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== eM.searchHistoryLimit && Cle(n);
+ Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = kj(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== tM.searchHistoryLimit && Sle(n);
let s = Array.isArray(e && e.sidebarOrder) ? e.sidebarOrder : null;
s && s.length && s.join(",") !== r.sidebarOrder.join(",") && (r.sidebarOrder = s, n.save());
}
-function Cle(e = rM()) {
+function Sle(e = iM()) {
return Tn("/api/settings", {
method: "POST",
body: JSON.stringify({ searchHistoryLimit: e.value.searchHistoryLimit })
}).catch(() => {});
}
// src/appearance/theme.ts
-var wle = [
+var Cle = [
[
"system",
"跟随系统",
@@ -31930,31 +31930,31 @@ var wle = [
"深色",
"moon"
]
-], Tle = null, aM = () => Tle ??= matchMedia("(prefers-color-scheme: dark)"), oM = null;
-function Ele() {
- return oM || (oM = document.createElement("style"), oM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), oM.isConnected || document.head.append(oM), () => {
+], wle = null, oM = () => wle ??= matchMedia("(prefers-color-scheme: dark)"), sM = null;
+function Tle() {
+ return sM || (sM = document.createElement("style"), sM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), sM.isConnected || document.head.append(sM), () => {
getComputedStyle(document.documentElement).opacity;
let e = () => {
- cancelAnimationFrame(t), clearTimeout(n), oM?.remove();
+ cancelAnimationFrame(t), clearTimeout(n), sM?.remove();
}, t = requestAnimationFrame(e), n = setTimeout(e, 100);
};
}
-function sM(e = rM().value.theme) {
- let t = Ele(), n = document.documentElement;
+function cM(e = iM().value.theme) {
+ let t = Tle(), n = document.documentElement;
e === "system" ? delete n.dataset.theme : n.dataset.theme = e;
- let r = e === "dark" || e === "system" && aM().matches;
+ let r = e === "dark" || e === "system" && oM().matches;
n.classList.toggle("dark", r), document.querySelectorAll("[data-board-theme]").forEach((e) => e.setAttribute("aria-pressed", String(e.dataset.boardTheme === "dark" === r))), document.querySelector(".board-theme-toggle")?.classList.toggle("is-dark", r), document.querySelectorAll("meta[data-theme-color]").forEach((e) => {
e.media = e.dataset.themeColor === "dark" === r ? "all" : "not all";
}), t();
}
-var cM = !1;
-function Dle() {
- cM || (cM = !0, aM().addEventListener("change", () => {
- rM().value.theme === "system" && sM();
+var lM = !1;
+function Ele() {
+ lM || (lM = !0, oM().addEventListener("change", () => {
+ iM().value.theme === "system" && cM();
}));
}
// src/appearance/layout.ts
-var lM = [[
+var uM = [[
"big",
"大图",
"maximize"
@@ -31962,7 +31962,7 @@ var lM = [[
"small",
"小图",
"layout-grid"
-]], uM = [[
+]], dM = [[
"big",
"大图",
"maximize"
@@ -31970,7 +31970,7 @@ var lM = [[
"small",
"小图",
"layout-grid"
-]], dM = [[
+]], fM = [[
"fixed",
"固定比例",
"layout-grid"
@@ -31978,127 +31978,127 @@ var lM = [[
"masonry",
"瀑布流",
"columns-2"
-]], fM = .75, pM = () => rM().value, mM = (e = pM()) => Qa(e.javLayout), Ole = (e = pM()) => Qa(e.homeLayout), hM = (e, t = pM()) => e ? Ole(t) : mM(t), gM = uM.map(([e]) => e), _M = dM.map(([e]) => e), vM = (e = pM()) => tM(e.photoSize, gM, "small"), yM = (e = pM()) => tM(e.photoLayout, _M, "masonry"), bM = null;
-function xM(e, t = pM()) {
+]], pM = .75, mM = () => iM().value, hM = (e = mM()) => Qa(e.javLayout), Dle = (e = mM()) => Qa(e.homeLayout), gM = (e, t = mM()) => e ? Dle(t) : hM(t), _M = dM.map(([e]) => e), vM = fM.map(([e]) => e), yM = (e = mM()) => nM(e.photoSize, _M, "small"), bM = (e = mM()) => nM(e.photoLayout, vM, "masonry"), xM = null;
+function SM(e, t = mM()) {
let n = {
active: e.active,
- size: hM(e.home, t),
+ size: gM(e.home, t),
portrait: e.portrait,
javImage: t.javImage
- }, r = bM;
- return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (bM = n), bM;
+ }, r = xM;
+ return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (xM = n), xM;
}
-function SM(e) {
- return e.portrait ? 9 / 16 : e.active && e.size === "big" ? fM : 16 / 9;
+function CM(e) {
+ return e.portrait ? 9 / 16 : e.active && e.size === "big" ? pM : 16 / 9;
}
-function kle(e, t = rM()) {
+function Ole(e, t = iM()) {
t.value.homeLayout = Qa(e), t.save();
}
-function CM(e, t = rM()) {
+function wM(e, t = iM()) {
t.value.javLayout = Qa(e), t.save();
}
-function Ale(e, t = rM()) {
+function kle(e, t = iM()) {
t.value.homeLayout = t.value.javLayout = Qa(e), t.save();
}
-function jle(e, t = rM()) {
- t.value.photoSize = tM(e, gM, "small"), t.save();
+function Ale(e, t = iM()) {
+ t.value.photoSize = nM(e, _M, "small"), t.save();
}
-function wM(e, t = rM()) {
- t.value.photoLayout = tM(e, _M, "masonry"), t.save();
+function TM(e, t = iM()) {
+ t.value.photoLayout = nM(e, vM, "masonry"), t.save();
}
// src/appearance/density.ts
-var TM = "density", EM = {
+var EM = "density", DM = {
big: "336px",
dense: "168px"
-}, DM = () => localStorage.getItem(TM) === "dense" ? "dense" : "big";
-function OM(e, t) {
- let [n, r] = uM;
+}, OM = () => localStorage.getItem(EM) === "dense" ? "dense" : "big";
+function kM(e, t) {
+ let [n, r] = dM;
if (e.querySelector("[data-icon-swap]")) qs(e, t === r[0] ? "b" : "a");
else {
let i = e.querySelector(":scope > [data-glass-drift]");
e.innerHTML = Ks(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);
}
- kM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
+ AM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
}
-function kM(e, t, n) {
+function AM(e, t, n) {
e.getAttribute(t) !== n && e.setAttribute(t, n);
}
-var AM = () => document.querySelector("#density");
-function jM(e = DM()) {
+var jM = () => document.querySelector("#density");
+function MM(e = OM()) {
let t = document.documentElement;
- t.style.getPropertyValue("--tile") !== EM[e] && t.style.setProperty("--tile", EM[e]), kM(document.body, "data-density", e);
- let n = AM();
- n && (kM(n, "aria-pressed", String(e === "dense")), kM(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), OM(n, e === "big" ? "big" : "small"));
+ t.style.getPropertyValue("--tile") !== DM[e] && t.style.setProperty("--tile", DM[e]), AM(document.body, "data-density", e);
+ let n = jM();
+ n && (AM(n, "aria-pressed", String(e === "dense")), AM(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), kM(n, e === "big" ? "big" : "small"));
}
-function Mle() {
- let e = DM() === "big" ? "dense" : "big";
- localStorage.setItem(TM, e), jM(e);
+function jle() {
+ let e = OM() === "big" ? "dense" : "big";
+ localStorage.setItem(EM, e), MM(e);
}
-function Nle(e) {
- let t = AM();
- t && (kM(t, "aria-pressed", String(e === "small")), kM(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), OM(t, e));
+function Mle(e) {
+ let t = jM();
+ t && (AM(t, "aria-pressed", String(e === "small")), AM(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), kM(t, e));
}
// src/appearance/glow.ts
-function MM(e = rM()) {
- gle(document.querySelector(".glowlayer"), e.value.homeGlow);
+function NM(e = iM()) {
+ hle(document.querySelector(".glowlayer"), e.value.homeGlow);
}
-var NM = 0;
-function PM(e = rM()) {
- NM ||= requestAnimationFrame(() => {
- NM = 0, MM(e);
+var PM = 0;
+function FM(e = iM()) {
+ PM ||= requestAnimationFrame(() => {
+ PM = 0, NM(e);
});
}
-function FM(e = rM()) {
- _le(document.documentElement, e.value.homeGlow);
+function IM(e = iM()) {
+ gle(document.documentElement, e.value.homeGlow);
}
-function IM(e = rM()) {
+function LM(e = iM()) {
document.documentElement.dataset.accent = e.value.accent;
}
-var LM = (e, t, n) => ({
+var RM = (e, t, n) => ({
key: e,
label: t,
- native: Hj(e),
- fill: Hj(e) ? "" : hle(n)
+ native: Uj(e),
+ fill: Uj(e) ? "" : mle(n)
});
-function Ple(e) {
- let t = Vj.map(([e, t, n]) => LM(e, t, zj.map((e) => n[e].color)));
- return e.preset === "custom" && t.push(LM("custom", "自定义", zj.map((t) => e[t].color))), t;
+function Nle(e) {
+ let t = Hj.map(([e, t, n]) => RM(e, t, Bj.map((e) => n[e].color)));
+ return e.preset === "custom" && t.push(RM("custom", "自定义", Bj.map((t) => e[t].color))), t;
}
-var Fle = Gj;
-function Ile(e, t = rM()) {
+var Ple = Kj;
+function Fle(e, t = iM()) {
if (e === "custom") return;
let n = t.value.homeGlow;
- n.preset = e, Object.assign(n, Wj(e)), t.value.accent = ule(e), t.save(), PM(t), FM(t), IM(t);
+ n.preset = e, Object.assign(n, Gj(e)), t.value.accent = lle(e), t.save(), FM(t), IM(t), LM(t);
}
-function Lle(e, t = rM()) {
- t.value.accent = qj(e), t.save(), IM(t);
+function Ile(e, t = iM()) {
+ t.value.accent = Jj(e), t.save(), LM(t);
}
-function Rle(e = rM()) {
+function Lle(e = iM()) {
let t = e.value.homeGlow;
- t.preset = Xj.preset, Object.assign(t, Wj(t.preset)), e.value.accent = Kj, e.save(), PM(e), FM(e), IM(e);
+ t.preset = Zj.preset, Object.assign(t, Gj(t.preset)), e.value.accent = qj, e.save(), FM(e), IM(e), LM(e);
}
-function RM(e, t) {
- e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Hj(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
+function zM(e, t) {
+ e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Uj(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
}
-function zle(e, t = rM()) {
- return RM(e, t.value.homeGlow), t.subscribe(() => RM(e, t.value.homeGlow));
+function Rle(e, t = iM()) {
+ return zM(e, t.value.homeGlow), t.subscribe(() => zM(e, t.value.homeGlow));
}
// src/react/components/glow-preset-grid.tsx
-function zM({ store: e, label: t, hidden: n }) {
+function BM({ store: e, label: t, hidden: n }) {
let r = e.value.homeGlow;
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-grid": "",
role: "group",
"aria-label": t,
hidden: n,
- children: Ple(r).map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Nle(r).map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-glow-preset": t.key,
"aria-pressed": t.key === r.preset,
title: t.label,
"aria-label": t.label,
- onClick: () => Ile(t.key, e),
+ onClick: () => Fle(t.key, e),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32109,14 +32109,14 @@ function zM({ store: e, label: t, hidden: n }) {
});
}
// src/react/glow-picker/glow-picker-island.tsx
-var BM = null;
-function Ble(e) {
- BM = e;
+var VM = null;
+function zle(e) {
+ VM = e;
}
-function Vle() {
- return BM ? /* @__PURE__ */ (0, I.jsx)(Hle, { host: BM }) : null;
+function Ble() {
+ return VM ? /* @__PURE__ */ (0, I.jsx)(Vle, { host: VM }) : null;
}
-function Hle({ host: e }) {
+function Vle({ host: e }) {
let { store: t } = e;
(0, F.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@ -32128,11 +32128,11 @@ function Hle({ host: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "光晕" }), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-preset-reset": "",
- onClick: () => Rle(t),
+ onClick: () => Lle(t),
children: "重置"
})]
}),
- /* @__PURE__ */ (0, I.jsx)(zM, {
+ /* @__PURE__ */ (0, I.jsx)(BM, {
store: t,
label: "光晕",
hidden: !n.on
@@ -32146,14 +32146,14 @@ function Hle({ host: e }) {
"data-accent-grid": "",
role: "group",
"aria-label": "强调色",
- children: Fle.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Ple.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-chip": "",
"data-accent": e,
"aria-pressed": e === r,
title: n,
"aria-label": n,
- onClick: () => Lle(e, t),
+ onClick: () => Ile(e, t),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32171,31 +32171,31 @@ function Hle({ host: e }) {
] });
}
// src/player/host.ts
-var VM = null;
-function Ule(e) {
- VM = e;
+var HM = null;
+function Hle(e) {
+ HM = e;
}
-function HM() {
- if (!VM) throw Error("播放器还没有接上宿主(configurePlayer)");
- return VM;
+function UM() {
+ if (!HM) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return HM;
}
// src/player/menu.ts
-var UM = null;
-function Wle(e) {
- UM = e;
+var WM = null;
+function Ule(e) {
+ WM = e;
}
-function Gle() {
+function Wle() {
let e = document.getElementById("playerMenu");
return e || (e = document.createElement("div"), e.className = "popmenu", e.setAttribute("data-player-context-menu", ""), e.id = "playerMenu", e.setAttribute("role", "menu"), e.setAttribute("aria-label", "播放器菜单"), e.hidden = !0, document.body.append(e)), e;
}
-var WM = null, GM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function KM() {
+var GM = null, KM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function qM() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && ls(e, () => {
e.innerHTML = "";
- }), WM &&= (WM(), null);
+ }), GM &&= (GM(), null);
}
-async function Kle(e) {
+async function Gle(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -32208,8 +32208,8 @@ async function Kle(e) {
return t.remove(), n;
}
}
-function qle(e) {
- let t = !!UM?.inMiniplayer(e), n = e.peachItem, r = UM?.kind(e) ?? "item", i = (t) => {
+function Kle(e) {
+ let t = !!WM?.inMiniplayer(e), n = e.peachItem, r = WM?.kind(e) ?? "item", i = (t) => {
let i = new URL(r === "follow" ? `/posts/${n?.id}` : `/assets/${n?.id}`, location.origin);
if (r !== "follow" && location.pathname === i.pathname) {
let e = new URLSearchParams(location.search);
@@ -32225,7 +32225,7 @@ function qle(e) {
}
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- Kle(i(e)).then((e) => HM().toast(e ? t : "复制失败,请手动复制地址栏", {
+ Gle(i(e)).then((e) => UM().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -32237,11 +32237,11 @@ function qle(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => UM?.expand()
+ run: () => WM?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => UM?.toMiniplayer()
+ run: () => WM?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -32264,29 +32264,29 @@ function qle(e) {
run: () => s.click()
}), o;
}
-function Jle(e, t, n) {
- let r = Gle();
- KM();
- let i = HM().stage();
+function qle(e, t, n) {
+ let r = Wle();
+ qM();
+ let i = UM().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = qle(e);
+ let a = Kle(e);
r.innerHTML = a.map((e, t) => {
let n = e.checked !== void 0;
- return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${GM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? GM(R("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${KM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? KM(R("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), cs(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;
let o = [...r.querySelectorAll("[data-player-menu]")];
o.forEach((e) => {
e.onclick = (t) => {
t.stopPropagation();
let n = a[Number(e.dataset.playerMenu)];
- KM(), n?.run();
+ qM(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || KM();
+ r.contains(e.target) || qM();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), KM();
+ e.preventDefault(), e.stopPropagation(), qM();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -32294,49 +32294,49 @@ function Jle(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- ds(t, e.el()) && KM();
+ ds(t, e.el()) && qM();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), WM = () => {
+ }, 0), GM = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function Yle(e) {
+function Jle(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), Jle(e, t.clientX, t.clientY));
- }), e.on("dispose", KM);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), qle(e, t.clientX, t.clientY));
+ }), e.on("dispose", qM);
}
// src/player/registry.ts
-var qM = null, JM = () => qM;
-function YM(e) {
- qM = e;
-}
+var JM = null, YM = () => JM;
function XM(e) {
+ JM = e;
+}
+function ZM(e) {
e && !e.isDisposed() && requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
// src/player/stats.ts
-function ZM(e) {
+function QM(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t && e.buffered.end(n) >= t) return Math.max(0, e.buffered.end(n) - t);
return 0;
}
-function Xle(e) {
+function Yle(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t + .25 && e.buffered.end(n) >= t) return e.buffered.end(n);
return e.buffered.length ? e.buffered.end(e.buffered.length - 1) : 0;
}
-var QM = 3e3;
-function $M(e, t) {
+var $M = 3e3;
+function eN(e, t) {
let n = Number(e) || 0, r = qn(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function Zle(e) {
+function Xle(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -32351,10 +32351,10 @@ function Zle(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = Xle(e), s = e.currentTime || 0;
+ let a = performance.now(), o = Yle(e), s = e.currentTime || 0;
if (n) {
let e = (a - n.at) / 1e3, i = Math.abs(s - n.ct) > e * 4 + 1, c = o - n.frontier;
- !i && c > 0 && (r += c), e * 1e3 > QM * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > $M * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -32363,55 +32363,55 @@ function Zle(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > QM;) t.shift();
+ }); t.length > 2 && a - t[0].at > $M;) t.shift();
let c = t[0], l = (a - c.at) / 1e3, u = r - c.advanced;
return l >= .5 && u > 0 && this.bitrate > 0 && (i = u * this.bitrate / l), i;
}
};
}
-var eN = 24;
-function tN(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > eN && e.splice(0, e.length - eN);
+var tN = 24;
+function nN(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > tN && e.splice(0, e.length - tN);
}
-var nN = "peach-player-panel";
-function rN(e, t, n, r) {
- let i = [...Array(Math.max(0, eN - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var rN = "peach-player-panel";
+function iN(e, t, n, r) {
+ let i = [...Array(Math.max(0, tN - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
if (e === null) return "<i aria-hidden=\"true\"></i>";
let n = e <= 0 ? 0 : Math.max(.08, Math.min(1, e / a));
return `<i data-bar="${t === "buffer" ? e < 5 ? "low" : e < 15 ? "mid" : "good" : "on"}" style="height:${(n * 100).toFixed(1)}%" aria-hidden="true"></i>`;
}).join("");
return `<span data-player-stats-plot="${t}" role="img" aria-label="${z(r)}">${o}</span>`;
}
-function Qle() {
+function Zle() {
return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${R("chart")}</button>
<div data-player-net="" id="playerNet" role="status" aria-live="polite" hidden></div>
<div data-player-stats="" id="playerStats" role="status" hidden></div>`;
}
-function iN(e, t = "") {
+function aN(e, t = "") {
let n = t ? encodeURIComponent(t) : "";
return performance.getEntriesByType("resource").filter((t) => t.name.includes("/stream") && (t.name.includes(`/stream?id=${e}`) || t.name.includes(`/stream/hls/${e}/`)) && (!n || t.name.includes(`session=${n}`)));
}
-function aN(e, t = "") {
- let n = iN(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+function oN(e, t = "") {
+ let n = aN(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
return r > 0 && i > 0 ? r * 8 / i : 0;
}
-function oN(e, t, n = "", r = null) {
+function sN(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.bandwidth?.()) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : aN(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : oN(t, n);
}
-function sN(e) {
+function cN(e) {
if (!Number.isFinite(e) || e <= 0) return "加载中…";
let t = e / 8;
return t >= 1048576 ? `${(t / 1048576).toFixed(1)} MB/s` : `${Math.max(1, Math.round(t / 1024))} KB/s`;
}
-function $le(e, t) {
- return e > 0 ? sN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : sN(0);
+function Qle(e, t) {
+ return e > 0 ? cN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : cN(0);
}
// src/player/subtitle-style.ts
-var cN = {
+var lN = {
font: {
label: "字体",
values: [
@@ -32514,7 +32514,7 @@ var cN = {
["shadow", "阴影"]
]
}
-}, lN = {
+}, uN = {
font: "sans",
size: "100",
color: "white",
@@ -32524,7 +32524,7 @@ var cN = {
window: "black",
windowOpacity: "0",
edge: "shadow"
-}, uN = "peach.caption-style.v1", eue = {
+}, dN = "peach.caption-style.v1", $le = {
white: "255,255,255",
yellow: "255,255,0",
green: "0,255,0",
@@ -32533,7 +32533,7 @@ var cN = {
magenta: "255,0,255",
red: "255,0,0",
black: "0,0,0"
-}, tue = {
+}, eue = {
sans: "Arial,sans-serif",
mono: "Consolas,monospace",
serif: "Georgia,serif",
@@ -32541,28 +32541,28 @@ var cN = {
casual: "\"Comic Sans MS\",sans-serif",
cursive: "cursive",
"small-caps": "Arial,sans-serif"
-}, nue = {
+}, tue = {
none: "none",
raised: "-1px -1px 0 #ddd,1px 1px 0 #222",
depressed: "1px 1px 0 #ddd,-1px -1px 0 #222",
outline: "-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000",
shadow: "2px 2px 3px #000"
};
-function rue() {
+function nue() {
let e = {};
try {
- e = JSON.parse(localStorage.getItem(uN) || "{}") || {};
+ e = JSON.parse(localStorage.getItem(dN) || "{}") || {};
} catch {}
- return Object.fromEntries(Object.entries(lN).map(([t, n]) => [t, cN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
+ return Object.fromEntries(Object.entries(uN).map(([t, n]) => [t, lN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
}
-function dN(e, t, n, r) {
- let i = rue(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
+function fN(e, t, n, r) {
+ let i = nue(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
o.className = "vjs-peach-captions", o.setAttribute("aria-hidden", "true");
let s = document.createElement("div");
s.className = "vjs-peach-caption-window", o.append(s), e.querySelector("media-container").append(o), e.dataset.peachCaptions = "";
let c = () => {
- let t = (e, t) => `rgba(${eue[e]},${Number(t) / 100})`;
- e.style.setProperty("--peach-caption-font", tue[i.font]), e.style.setProperty("--peach-caption-scale", String(Number(i.size) / 100)), e.style.setProperty("--peach-caption-color", t(i.color, i.opacity)), e.style.setProperty("--peach-caption-background", t(i.background, i.backgroundOpacity)), e.style.setProperty("--peach-caption-window", t(i.window, i.windowOpacity)), e.style.setProperty("--peach-caption-edge", nue[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
+ let t = (e, t) => `rgba(${$le[e]},${Number(t) / 100})`;
+ e.style.setProperty("--peach-caption-font", eue[i.font]), e.style.setProperty("--peach-caption-scale", String(Number(i.size) / 100)), e.style.setProperty("--peach-caption-color", t(i.color, i.opacity)), e.style.setProperty("--peach-caption-background", t(i.background, i.backgroundOpacity)), e.style.setProperty("--peach-caption-window", t(i.window, i.windowOpacity)), e.style.setProperty("--peach-caption-edge", tue[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
}, l = () => {
s.replaceChildren();
for (let e of t.textTracks) if (e.mode === "showing" && ["subtitles", "captions"].includes(e.kind)) for (let t of Array.from(e.activeCues || [])) {
@@ -32578,15 +32578,15 @@ function dN(e, t, n, r) {
if (!n.aborted) {
if (e.caption_style) {
let t = {
- ...lN,
+ ...uN,
...e.caption_style
};
- for (let e of Object.keys(lN)) a.has(e) || (i[e] = t[e]);
+ for (let e of Object.keys(uN)) a.has(e) || (i[e] = t[e]);
c();
} else {
let e = !1;
try {
- e = !!localStorage.getItem(uN);
+ e = !!localStorage.getItem(dN);
} catch {}
e && !a.size && r.save({ caption_style: i }).catch(() => {});
}
@@ -32594,18 +32594,18 @@ function dN(e, t, n, r) {
}), {
current: () => i,
set(e, t) {
- cN[e].values.some(([e]) => e === t) && (a.add(e), i = {
+ lN[e].values.some(([e]) => e === t) && (a.add(e), i = {
...i,
[e]: t
}, c(), r?.save({ caption_style: { [e]: t } }).catch(() => {}));
},
reset() {
- Object.keys(lN).forEach((e) => a.add(e)), i = { ...lN }, c(), r?.save({ caption_style: i }).catch(() => {});
+ Object.keys(uN).forEach((e) => a.add(e)), i = { ...uN }, c(), r?.save({ caption_style: i }).catch(() => {});
}
};
}
// src/player/memory.ts
-var fN = /* @__PURE__ */ new Map(), pN = /* @__PURE__ */ new WeakMap(), iue = class {
+var pN = /* @__PURE__ */ new Map(), mN = /* @__PURE__ */ new WeakMap(), rue = class {
cleanup = new AbortController();
reading;
listeners = /* @__PURE__ */ new Set();
@@ -32633,7 +32633,7 @@ var fN = /* @__PURE__ */ new Map(), pN = /* @__PURE__ */ new WeakMap(), iue = cl
}
load() {
return this.url ? this.reading ||= (async () => {
- await fN.get(this.url)?.catch(() => {});
+ await pN.get(this.url)?.catch(() => {});
let e = await Tn(this.url, { signal: this.cleanup.signal });
return this.cleanup.signal.aborted || (this.restored = e, this.restorers.forEach((t) => t(e)), this.changed()), e;
})().catch((e) => {
@@ -32645,7 +32645,7 @@ var fN = /* @__PURE__ */ new Map(), pN = /* @__PURE__ */ new WeakMap(), iue = cl
}
save(e) {
if (!this.url) return Promise.resolve();
- let t = (fN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
+ let t = (pN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
let t = {
...this.unsaved,
...e,
@@ -32672,8 +32672,8 @@ var fN = /* @__PURE__ */ new Map(), pN = /* @__PURE__ */ new WeakMap(), iue = cl
this.changed();
}
});
- return fN.set(this.url, t), t.finally(() => {
- fN.get(this.url) === t && fN.delete(this.url);
+ return pN.set(this.url, t), t.finally(() => {
+ pN.get(this.url) === t && pN.delete(this.url);
}).catch(() => {}), t;
}
async retry() {
@@ -32682,12 +32682,12 @@ var fN = /* @__PURE__ */ new Map(), pN = /* @__PURE__ */ new WeakMap(), iue = cl
} catch {}
}
};
-function mN(e) {
- let t = pN.get(e);
- return t || (t = new iue(e), pN.set(e, t)), t;
+function hN(e) {
+ let t = mN.get(e);
+ return t || (t = new rue(e), mN.set(e, t)), t;
}
-function hN(e, t) {
- let n = mN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
+function gN(e, t) {
+ let n = hN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
t.defaultPlaybackRate = r, Number(e.playbackRate()) !== r && e.playbackRate(r);
};
return n.restore((t) => {
@@ -32700,7 +32700,7 @@ function hN(e, t) {
};
}
// src/player/subtitle-memory.ts
-var gN = class {
+var _N = class {
player;
video;
changed;
@@ -32711,7 +32711,7 @@ var gN = class {
ready;
error = "";
constructor(e, t, n = () => {}) {
- this.player = e, this.video = t, this.changed = n, this.memory = mN(e);
+ this.player = e, this.video = t, this.changed = n, this.memory = hN(e);
let r = this.cleanup.signal;
t.textTracks.addEventListener("addtrack", () => {
this.apply(), this.changed();
@@ -32808,7 +32808,7 @@ var gN = class {
throw a.remove(), URL.revokeObjectURL(i), e;
}
}
-}, _N = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", aue = class {
+}, vN = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", iue = class {
player;
video;
panels;
@@ -32827,7 +32827,7 @@ var gN = class {
more = !1;
searched = !1;
constructor(e, t, n) {
- this.player = e, this.video = t, this.panels = n, this.styles = dN(e.el(), t, this.cleanup.signal, mN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = _N(), this.cc.onclick = () => {
+ this.player = e, this.video = t, this.panels = n, this.styles = fN(e.el(), t, this.cleanup.signal, hN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = vN(), this.cc.onclick = () => {
let e = this.tracks().find((e) => e.mode === "showing");
e ? (this.last = e, this.select(null)) : this.tracks().length ? this.select(this.last && this.tracks().includes(this.last) ? this.last : this.tracks()[0]) : this.show();
}, this.input.type = "file", this.input.accept = ".srt,.ass,.ssa,.vtt", this.input.hidden = !0, this.input.setAttribute("aria-label", "加载字幕文件"), e.el().append(this.input), this.input.addEventListener("change", () => {
@@ -32837,7 +32837,7 @@ var gN = class {
this.sync(), this.page === "tracks" && this.show(0);
}, { signal: this.cleanup.signal }), e.on("dispose", () => {
this.hide(), this.cleanup.abort();
- }), this.session = new gN(e, t, () => {
+ }), this.session = new _N(e, t, () => {
this.sync(), this.page === "tracks" && this.show(0);
}), this.sync();
}
@@ -32885,7 +32885,7 @@ var gN = class {
}
options(e = 1) {
this.page = "options";
- let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(cN).map(([e, n]) => {
+ let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(lN).map(([e, n]) => {
let r = n.values.find(([n]) => n === t[e])?.[1] || "";
return `<button type="button" class="vjs-peach-caption-setting" data-subtitle-style="${e}"><span>${z(n.label)}</span><b>${z(r)}</b>${R("player-menu-next")}</button>`;
}).join("")}<button type="button" class="vjs-peach-caption-action" data-subtitle-reset>重置</button></div>`, () => this.show(-1), e);
@@ -32897,7 +32897,7 @@ var gN = class {
}
styleOptions(e) {
this.page = "style";
- let t = cN[e];
+ let t = lN[e];
this.panel(this.header(t.label) + `<div class="vjs-peach-panel-menu">${t.values.map(([t, n]) => {
let r = this.styles.current()[e] === t;
return `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" aria-checked="${r}" data-subtitle-value="${z(t)}"><span class="vjs-peach-option-check">${r ? R("check") : ""}</span><span class="vjs-peach-option-label">${z(n)}</span></button>`;
@@ -33013,7 +33013,7 @@ var gN = class {
}
};
// src/player/timeline.ts
-function oue(e, t) {
+function aue(e, t) {
if (!Number.isFinite(e) || e < 0 || t.frames <= 0) return null;
if (!t.cues?.length) return t.interval > 0 ? Math.min(t.frames - 1, Math.floor(e / t.interval)) : null;
let n = 0, r = t.cues.length;
@@ -33025,8 +33025,8 @@ function oue(e, t) {
return !a || e >= a[1] && (i !== t.cues.length - 1 || e !== a[1]) ? null : i;
}
// src/player/rotation.ts
-function vN(e, t) {
- let n = 0, r = !1, i = mN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
+function yN(e, t) {
+ let n = 0, r = !1, i = hN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
"width",
"height",
"inset",
@@ -33054,7 +33054,7 @@ function vN(e, t) {
};
}
// src/player/pip.ts
-function sue(e, t, n, r) {
+function oue(e, t, n, r) {
let i = e.el().querySelector("video");
if (!i || !t) return;
let a = t, o = !!document.pictureInPictureEnabled && typeof i.requestPictureInPicture == "function" || typeof i.webkitSetPresentationMode == "function";
@@ -33086,7 +33086,7 @@ function sue(e, t, n, r) {
});
}
// src/player/controls.ts
-function yN(e, t, n = "") {
+function bN(e, t, n = "") {
if (!e) return () => {};
let r = e.querySelector(":scope>.vjs-peach-tooltip");
r || (r = document.createElement("span"), r.className = "vjs-peach-tooltip", r.setAttribute("role", "tooltip"), r.innerHTML = "<span class=\"vjs-peach-tooltip-text\"></span><kbd hidden></kbd>", e.append(r));
@@ -33097,27 +33097,27 @@ function yN(e, t, n = "") {
};
return o(), o;
}
-function bN(e, t) {
+function xN(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
-function cue(e, t = !0) {
- let n = HM(), r = n.settings();
+function sue(e, t = !0) {
+ let n = UM(), r = n.settings();
r.ambientMode = !!e, t && n.saveSettings(), n.stage()?.toggleAttribute("data-ambient", r.ambientMode), document.dispatchEvent(new CustomEvent("peachambientchange", { detail: { enabled: r.ambientMode } }));
}
-var xN = /* @__PURE__ */ new WeakMap();
-function SN(e) {
+var SN = /* @__PURE__ */ new WeakMap();
+function CN(e) {
if (!e) return;
- let t = HM().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), xN.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = UM().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), SN.get(e)?.(t ? "默认视图" : "影院模式");
}
-function CN(e, t = !0) {
- let n = HM(), r = n.settings();
+function wN(e, t = !0) {
+ let n = UM(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), SN(i?.querySelector("[data-player-theater]")), XM(JM());
+ i?.toggleAttribute("data-theater", r.theaterMode), CN(i?.querySelector("[data-player-theater]")), ZM(YM());
}
-function lue(e) {
- let t = HM().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function cue(e) {
+ let t = UM().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -33140,9 +33140,9 @@ function lue(e) {
}, u = (t) => {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
- i || t !== o || (HM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
+ i || t !== o || (UM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
}, f = () => {
- !i && HM().settings().ambientMode && (l(), e.paused || u(++o));
+ !i && UM().settings().ambientMode && (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -33151,7 +33151,7 @@ function lue(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function wN(e, t, n = 0, r = null) {
+function TN(e, t, n = 0, r = null) {
let i = e.el().querySelector(".vjs-control-bar");
if (!i || i.querySelector("[data-player-quality]")) return;
let a = document.createElement("div");
@@ -33161,8 +33161,8 @@ function wN(e, t, n = 0, r = null) {
let o = i.querySelector(".vjs-fullscreen-control");
i.insertBefore(a, o || null);
let s = a.querySelector("button"), c = a.querySelector("[data-player-quality-badge]");
- yN(s, "设置");
- let l = a.querySelector(".vjs-peach-settings-menu"), u = vN(e, t), d = hN(e, t), f = mN(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
+ bN(s, "设置");
+ let l = a.querySelector(".vjs-peach-settings-menu"), u = yN(e, t), d = gN(e, t), f = hN(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
let n = [Number(e), Number(t)].filter((e) => e > 0);
return n.length ? Math.min(...n) : 0;
}, v = () => {
@@ -33201,11 +33201,11 @@ function wN(e, t, n = 0, r = null) {
active: n
};
}, b = () => l.getAttribute("aria-hidden") !== "true", x = (e) => {
- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(nN, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(rN, { detail: "settings" }));
}, S = () => x(!1), C = (e) => {
e.detail !== "settings" && S();
};
- document.addEventListener(nN, C);
+ document.addEventListener(rN, C);
let w = null, T = 0, E = (e, t) => {
let n = ++T;
w && (clearTimeout(w), w = null, l.classList.remove("vjs-peach-popup-animating"), l.style.height = ""), l.querySelectorAll(".vjs-peach-panel-leaving").forEach((e) => e.remove()), l.scrollTop = 0;
@@ -33221,15 +33221,15 @@ function wN(e, t, n = 0, r = null) {
}), i;
}, D = (e, t) => e.querySelector(t), O = "main", k = (e = 0) => {
O = "main";
- let { active: t } = y(), n = d.current(), r = E(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${HM().settings().ambientMode}">
+ let { active: t } = y(), n = d.current(), r = E(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${UM().settings().ambientMode}">
${R("player-ambient")}<span>氛围模式</span><i class="vjs-peach-switch" aria-hidden="true"></i></button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${R("player-speed")}<span>播放速度</span><b>${n === 1 ? "正常" : `${n}×`}</b>${R("player-menu-next")}</button>
- <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${_N()}</span><span>字幕</span><b>${z(p?.label() || "关闭")}</b>${R("player-menu-next")}</button>
+ <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${vN()}</span><span>字幕</span><b>${z(p?.label() || "关闭")}</b>${R("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-rotation>${R("rotate-cw", "vjs-peach-menu-line-icon")}<span>画面旋转</span><b>${u.angle()}°</b>${R("player-menu-next")}</button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${R("player-quality")}<span>清晰度</span><b>${z(t.label)}</b>${R("player-menu-next")}</button>
<div data-player-memory-error hidden><p class="vjs-peach-subtitle-status" role="status"></p><button type="button" class="vjs-peach-menu-row" data-player-memory-retry>重试保存播放记忆</button></div></div>`, e);
D(r, "[data-player-ambient]").onclick = () => {
- cue(!HM().settings().ambientMode), k();
+ sue(!UM().settings().ambientMode), k();
}, D(r, "[data-player-speed]").onclick = () => te(), D(r, "[data-player-subtitles]").onclick = () => p?.show(), D(r, "[data-player-quality-view]").onclick = () => ne(), D(r, "[data-player-rotation]").onclick = () => j(), D(r, "[data-player-memory-retry]").onclick = () => {
f.retry();
}, A();
@@ -33333,8 +33333,8 @@ function wN(e, t, n = 0, r = null) {
A(), re();
});
return e.on("dispose", () => {
- I(), t.removeEventListener("loadedmetadata", re), t.removeEventListener("resize", re), t.removeEventListener("ratechange", re), T++, document.removeEventListener("pointerdown", F), document.removeEventListener(nN, C), w && clearTimeout(w);
- }), p = new aue(e, t, {
+ I(), t.removeEventListener("loadedmetadata", re), t.removeEventListener("resize", re), t.removeEventListener("ratechange", re), T++, document.removeEventListener("pointerdown", F), document.removeEventListener(rN, C), w && clearTimeout(w);
+ }), p = new iue(e, t, {
render: E,
open: () => {
O = "subtitles", x(!0);
@@ -33343,21 +33343,21 @@ function wN(e, t, n = 0, r = null) {
back: () => {
p?.hide(), k(-1);
}
- }), y(), uue(e, a), due(e), (e) => {
+ }), y(), lue(e, a), uue(e), (e) => {
h = e?.length ? e : null, re();
};
}
-function uue(e, t) {
+function lue(e, t) {
let n = e.el().querySelector(".vjs-control-bar");
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = HM().settings().theaterMode, i = document.createElement("div");
+ let r = UM().settings().theaterMode, i = document.createElement("div");
i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${R(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);
let a = i.querySelector("button");
- xN.set(a, yN(a, "影院模式", "T")), SN(a), a.onclick = (e) => {
- e.stopPropagation(), CN(!HM().settings().theaterMode);
+ SN.set(a, bN(a, "影院模式", "T")), CN(a), a.onclick = (e) => {
+ e.stopPropagation(), wN(!UM().settings().theaterMode);
};
}
-function due(e) {
+function uue(e) {
let t = e.el().querySelector(".vjs-control-bar");
if (!t || t.querySelector(".vjs-peach-right-controls")) return;
let n = t.querySelector(":scope>.vjs-play-control");
@@ -33369,7 +33369,7 @@ function due(e) {
e.dataset.peachExplicitIcon = "";
let r = document.createElementNS("http://www.w3.org/2000/svg", "svg");
return r.setAttribute("viewBox", n.getAttribute("viewBox") || ""), r.setAttribute("aria-hidden", "true"), r.setAttribute("class", "vjs-peach-control-icon vjs-peach-morph-icon"), r.innerHTML = n.innerHTML, e.append(r), r;
- }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = yN(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
+ }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = bN(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {
let t = e.paused() || e.ended(), n = t ? s : c;
o && (u ? o.style.setProperty("d", `path("${n}")`) : o.setAttribute("d", n)), l(t ? "播放" : "暂停");
};
@@ -33380,7 +33380,7 @@ function due(e) {
], d), d();
let f = t.querySelector(":scope>.vjs-volume-panel"), p = f?.querySelector(":scope>.vjs-mute-control"), m = i(p, "player-volume");
m && a("player-volume-muted").forEach((e) => m.append(e.cloneNode(!0)));
- let h = yN(p, "静音", "M"), g = () => {
+ let h = bN(p, "静音", "M"), g = () => {
let t = e.muted() || e.volume() === 0;
m && (m.dataset.silent = String(t), m.dataset.loud = String(!t && e.volume() > .5)), h(t ? "取消静音" : "静音");
};
@@ -33406,7 +33406,7 @@ function due(e) {
});
let x = document.createElement("button"), S = !1;
x.type = "button", x.className = "vjs-peach-time vjs-control", x.dataset.playerTime = "", x.innerHTML = "<span class=\"vjs-peach-time-text\"></span>";
- let C = x.querySelector(".vjs-peach-time-text"), w = yN(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = bN(x, "显示剩余时间"), T = () => {
let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = Yn(Math.max(0, n - t));
C.textContent = `${S ? `-${r}` : Yn(t)} / ${Yn(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${Yn(n)};点击显示已播放时间` : `已播放 ${Yn(t)},总时长 ${Yn(n)};点击显示剩余时间`);
};
@@ -33418,10 +33418,10 @@ function due(e) {
"loadedmetadata"
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
- yN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), sue(e, E, yN(E, "画中画"), (e) => HM().toast(e, { warn: !0 }));
- let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = yN(D, "全屏", "F"), A = () => {
+ bN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), oue(e, E, bN(E, "画中画"), (e) => UM().toast(e, { warn: !0 }));
+ let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = bN(D, "全屏", "F"), A = () => {
let t = !!e.isFullscreen();
- e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), XM(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), ZM(e);
};
e.on([
"fullscreenchange",
@@ -33442,7 +33442,7 @@ function due(e) {
});
let ee = document.createElement("div");
ee.className = "vjs-peach-expand vjs-control", ee.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${R("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, M.prepend(ee);
- let N = ee.querySelector("button"), te = yN(N, "展开控件"), P = (t) => {
+ let N = ee.querySelector("button"), te = bN(N, "展开控件"), P = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), N.setAttribute("aria-expanded", String(t)), te(t ? "收起控件" : "展开控件");
};
N.onclick = (t) => {
@@ -33454,7 +33454,7 @@ function due(e) {
}, re = new ResizeObserver(ne);
re.observe(e.el()), e.on("dispose", () => re.disconnect()), P(!1), ne();
}
-function TN(e, t, n = {}) {
+function EN(e, t, n = {}) {
let r = e.el().querySelector(".vjs-control-bar .vjs-progress-control");
if (!r || r.querySelector("[data-player-seek-preview]")) return;
let i = !!t && n.thumbnail !== !1, a = document.createElement("div");
@@ -33465,7 +33465,7 @@ function TN(e, t, n = {}) {
}).catch(() => {});
let f = (e, n, r, i) => {
if (!t) return;
- let a = n.columns || 10, o = a * (n.rows || 10), s = oue(e, n);
+ let a = n.columns || 10, o = a * (n.rows || 10), s = aue(e, n);
if (s === null) return !1;
let c = Math.floor(s / o), l = s % o, f = Math.ceil(Math.min(o, n.frames - c * o) / a);
d = !!n.cues;
@@ -33490,13 +33490,13 @@ function TN(e, t, n = {}) {
r.removeEventListener("pointermove", m), r.removeEventListener("pointerleave", h);
});
}
-function fue(e, t) {
+function due(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => qn(e.duration()) || qn(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(HM().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(UM().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -33537,11 +33537,11 @@ function fue(e, t) {
} catch {}
});
}
-function EN(e) {
+function DN(e) {
let t = e.el().querySelector(".vjs-loading-spinner");
t && !t.querySelector(".vjs-peach-spinner-container") && (t.innerHTML = "<span class=\"vjs-peach-spinner-container\"><span class=\"vjs-peach-spinner-rotator\"><span class=\"vjs-peach-spinner-left\"><span class=\"vjs-peach-spinner-circle\"></span></span><span class=\"vjs-peach-spinner-right\"><span class=\"vjs-peach-spinner-circle\"></span></span></span></span>");
}
-function DN(e, t) {
+function ON(e, t) {
Tn(`/api/assets/${t}/subtitles`).then((t) => {
e && !e.isDisposed() && (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -33557,35 +33557,35 @@ function DN(e, t) {
}).catch(() => {});
}
// src/player/progress.ts
-var ON = "peach.playback-position.v1", kN = /* @__PURE__ */ new WeakMap();
-function AN(e) {
- kN.get(e)?.(), kN.delete(e);
+var kN = "peach.playback-position.v1", AN = /* @__PURE__ */ new WeakMap();
+function jN(e) {
+ AN.get(e)?.(), AN.delete(e);
}
-function jN(e, t, n = null) {
+function MN(e, t, n = null) {
let r = e === "follow" ? t.id : t.location === "online" ? t.follow_item_id : null;
return r ? `follow:${r}:${n ?? "main"}` : `item:${t.id}`;
}
-function pue(e) {
+function fue(e) {
try {
- let t = localStorage.getItem(`${ON}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
+ let t = localStorage.getItem(`${kN}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
return Number.isFinite(n) && n >= 0 ? n : null;
} catch {
return null;
}
}
-function mue(e, t) {
- let n = pue(e);
+function pue(e, t) {
+ let n = fue(e);
if (n !== null) return n;
let r = Number(t.leave_ratio);
return r > 0 && r < 1 ? r * qn(t.duration) : 0;
}
-function hue(e, t) {
- AN(t);
+function mue(e, t) {
+ jN(t);
let n = t.readyState >= 1, r = () => {
if (!n || !Number.isFinite(t.currentTime)) return;
let r = t.ended ? 0 : Math.max(0, t.currentTime);
try {
- localStorage.setItem(`${ON}:${e}`, String(r));
+ localStorage.setItem(`${kN}:${e}`, String(r));
} catch {}
}, i = () => {
n = !0;
@@ -33599,7 +33599,7 @@ function hue(e, t) {
"pause",
"ended"
]) t.addEventListener(e, r);
- window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), kN.set(t, () => {
+ window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), AN.set(t, () => {
r(), t.removeEventListener("loadedmetadata", i), t.removeEventListener("emptied", a);
for (let e of [
"timeupdate",
@@ -33611,19 +33611,19 @@ function hue(e, t) {
});
}
// src/player/telemetry.ts
-var MN = /* @__PURE__ */ new WeakMap();
-function NN(e) {
- MN.get(e)?.(), MN.delete(e);
+var NN = /* @__PURE__ */ new WeakMap();
+function PN(e) {
+ NN.get(e)?.(), NN.delete(e);
}
-function PN(e, t, n, r) {
+function FN(e, t, n, r) {
let i = () => t(!1), a = () => {
n(), t(!1);
};
- e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), MN.set(e, () => {
+ e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), NN.set(e, () => {
n(), t(!1), e.onplay = null, e.ontimeupdate = null, e.onpause = null, e.onended = null, e.removeEventListener("seeking", r), e.removeEventListener("emptied", a), window.removeEventListener("pagehide", i);
});
}
-function FN(e, t, n = {}) {
+function IN(e, t, n = {}) {
if (!t) return;
let r = 0, i = 0, a = 0, o = null, s = (e) => e ? document.querySelector(e) : null, c = () => {
let r = qn(e.duration) || qn(t.duration);
@@ -33664,11 +33664,11 @@ function FN(e, t, n = {}) {
u(), l(!1);
}, t.onended = () => {
u(), l(!0), n.onEnded?.();
- }, PN(t, l, u, () => {
+ }, FN(t, l, u, () => {
a++;
}), c();
}
-function gue(e, t) {
+function hue(e, t) {
let n = 0, r = 0, i = !1, a = null, o = (n) => {
let i = qn(e.duration) || qn(t.duration);
(r || n) && (Tn("/api/follow/activity", {
@@ -33699,22 +33699,22 @@ function gue(e, t) {
s(), o(!1);
}, t.onended = () => {
s(), o(!0);
- }, PN(t, o, s, () => {});
+ }, FN(t, o, s, () => {});
}
// src/player/dispose.ts
-function IN(e) {
+function LN(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
e.pause();
} catch {}
- t && (AN(t), NN(t));
+ t && (jN(t), PN(t));
try {
e.dispose();
} catch {}
}
// src/core/random-id.ts
-function LN() {
+function RN() {
if (typeof crypto.randomUUID == "function") return crypto.randomUUID();
let e = crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16));
e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128;
@@ -33722,23 +33722,23 @@ function LN() {
return `${t.slice(0, 8)}-${t.slice(8, 12)}-${t.slice(12, 16)}-${t.slice(16, 20)}-${t.slice(20)}`;
}
// src/player/stream.ts
-function RN() {
- return LN();
+function zN() {
+ return RN();
}
-function zN(e, t) {
+function BN(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function _ue(e) {
+function gue(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function BN(e, t) {
- let n = _ue(e);
+async function VN(e, t) {
+ let n = gue(e);
if (n) return n;
try {
let n = await Tn(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -33747,9 +33747,9 @@ async function BN(e, t) {
type: n.mime_type || (n.protocol === "hls" ? "application/vnd.apple.mpegurl" : "video/mp4")
};
} catch {}
- return zN(e, t);
+ return BN(e, t);
}
-function VN(e) {
+function HN(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -33758,22 +33758,22 @@ function VN(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var HN = "";
-function UN() {
- return HN;
-}
+var UN = "";
function WN() {
- return HN ||= RN(), HN;
+ return UN;
}
-var vue = (e) => zN(e, WN()), yue = (e) => BN(e, WN());
function GN() {
- let e = HN;
- e && (HN = "", VN(e));
+ return UN ||= zN(), UN;
+}
+var _ue = (e) => BN(e, GN()), vue = (e) => VN(e, GN());
+function KN() {
+ let e = UN;
+ e && (UN = "", HN(e));
}
// src/player/v10-player.ts
-var KN = (e) => typeof e == "string" ? [e] : e, bue = (e, t) => {
+var qN = (e) => typeof e == "string" ? [e] : e, yue = (e, t) => {
let n = document.createElement("div"), r = document.createElement("video-player");
- n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${LN()}`, n.setAttribute("lang", "zh-CN");
+ n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${RN()}`, n.setAttribute("lang", "zh-CN");
let i = document.createElement("media-container"), a = document.createElement("hlsjs-video");
e.parentNode?.replaceChild(n, e), e.removeAttribute("id"), e.className = "vjs-tech", e.slot = "media", e.controls = !1, e.preload = t.preload === "auto" ? "auto" : t.preload === "none" ? "none" : "metadata", t.poster && (e.poster = String(t.poster)), a.append(e), i.append(a), r.append(i), n.append(r), t.controls !== !1 && i.insertAdjacentHTML("beforeend", "<div class=\"vjs-loading-spinner\" aria-label=\"正在缓冲\"></div>\n <div class=\"vjs-error-display\"><div class=\"vjs-modal-dialog-content\" role=\"alert\"></div></div>\n <div class=\"vjs-control-bar\">\n <media-play-button class=\"vjs-play-control vjs-control vjs-button\" label=\"播放\"></media-play-button>\n <div class=\"vjs-volume-panel vjs-control vjs-volume-panel-horizontal\">\n <media-mute-button class=\"vjs-mute-control vjs-control vjs-button\" label=\"静音\"></media-mute-button>\n <div class=\"vjs-volume-control vjs-volume-horizontal\"><media-volume-slider class=\"vjs-volume-bar vjs-slider vjs-slider-horizontal\" label=\"音量\">\n <media-slider-track><media-slider-fill class=\"vjs-volume-level\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-volume-thumb\"></media-slider-thumb>\n <media-slider-value class=\"vjs-volume-tooltip\"></media-slider-value>\n </media-volume-slider></div>\n </div>\n <div class=\"vjs-progress-control vjs-control\"><media-time-slider class=\"vjs-progress-holder vjs-slider vjs-slider-horizontal\" label=\"播放进度\">\n <media-slider-track><media-slider-buffer class=\"vjs-load-progress\"></media-slider-buffer><media-slider-fill class=\"vjs-play-progress\"></media-slider-fill></media-slider-track>\n <media-slider-thumb class=\"vjs-progress-thumb\"></media-slider-thumb>\n </media-time-slider></div>\n <div class=\"vjs-subtitles-control vjs-control\"><button type=\"button\" class=\"vjs-button\" aria-label=\"开启字幕\" aria-pressed=\"false\">CC</button></div>\n <media-pip-button class=\"vjs-picture-in-picture-control vjs-control vjs-button\" label=\"画中画\"></media-pip-button>\n <media-fullscreen-button class=\"vjs-fullscreen-control vjs-control vjs-button\" label=\"全屏\"></media-fullscreen-button>\n </div>");
let o = new EventTarget(), s = new AbortController(), c = s.signal, l = !1, u = 0, d = 0, f = 0, p = {
@@ -33868,9 +33868,9 @@ var KN = (e) => typeof e == "string" ? [e] : e, bue = (e, t) => {
e && Array.isArray(e.levels) && !x.has(e) && (x.add(e), e.on("hlsManifestParsed", w), e.on("hlsLevelSwitched", w)), w();
};
return e.addEventListener("loadedmetadata", T, { signal: c }), {
- on: (e, t) => KN(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
- off: (e, t) => KN(e).forEach((e) => o.removeEventListener(e, t)),
- one: (e, t) => KN(e).forEach((e) => o.addEventListener(e, t, {
+ on: (e, t) => qN(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
+ off: (e, t) => qN(e).forEach((e) => o.removeEventListener(e, t)),
+ one: (e, t) => qN(e).forEach((e) => o.addEventListener(e, t, {
once: !0,
signal: c
})),
@@ -33925,7 +33925,7 @@ var KN = (e) => typeof e == "string" ? [e] : e, bue = (e, t) => {
n.id = String(t.id || ""), t.legacyId && (n.dataset.subtitleAlias = String(t.legacyId)), n.kind = String(t.kind || "subtitles"), n.src = String(t.src || ""), n.srclang = String(t.srclang || ""), n.label = String(t.label || ""), e.append(n);
}
};
-}, xue = "/vendor/videojs/10.2.0/", Sue = [
+}, bue = "/vendor/videojs/10.2.0/", xue = [
"video-player.js",
"media/hlsjs-video.js",
"media/dash-video.js",
@@ -33943,17 +33943,17 @@ var KN = (e) => typeof e == "string" ? [e] : e, bue = (e, t) => {
"ui/slider-value.js",
"i18n.js",
"locales/zh-CN.js"
-], qN = null;
-function JN() {
- return qN ??= Promise.all(Sue.map((e) => import(
+], JN = null;
+function YN() {
+ return JN ??= Promise.all(xue.map((e) => import(
/* @vite-ignore */
- `${xue}${e}`
-))).then(() => bue).catch((e) => {
- throw qN = null, e;
- }), qN;
+ `${bue}${e}`
+))).then(() => yue).catch((e) => {
+ throw JN = null, e;
+ }), JN;
}
// src/player/immerse-player.ts
-var Cue = {
+var Sue = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -33965,45 +33965,45 @@ var Cue = {
errorDisplay: !1,
textTrackSettings: !1
};
-function wue(e, t) {
+function Cue(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([BN(n, r), JN().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([VN(n, r), YN().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = zN(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = BN(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, Cue);
- i = t, t.peachItem = n, t.peachPlaybackKey = jN("item", n);
+ let t = s(e, Sue);
+ i = t, t.peachItem = n, t.peachPlaybackKey = MN("item", n);
let r = new AbortController();
- dN(t.el(), e, r.signal, mN(t)), vN(t, e), hN(t, e), t.on("dispose", () => r.abort()), new gN(t, e), DN(t, n.id), l && t.one("error", () => {
+ fN(t.el(), e, r.signal, hN(t)), yN(t, e), gN(t, e), t.on("dispose", () => r.abort()), new _N(t, e), ON(t, n.id), l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- FN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ IN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, VN(r), i ? IN(i) : (e.pause(), NN(e), e.removeAttribute("src"), e.load()));
+ a || (a = !0, HN(r), i ? LN(i) : (e.pause(), PN(e), e.removeAttribute("src"), e.load()));
};
}
// src/player/guide-preview.ts
-var YN = !1, XN = () => YN;
-function Tue() {
- return YN = !0, () => {
- YN = !1;
+var XN = !1, ZN = () => XN;
+function wue() {
+ return XN = !0, () => {
+ XN = !1;
};
}
// src/player/detail-player.ts
-var ZN = /* @__PURE__ */ new WeakMap(), QN = null, $N = null, eP = null;
-function tP() {
- QN &&= (clearInterval(QN), null), $N &&= (clearInterval($N), null), eP &&= (clearTimeout(eP), null);
+var QN = /* @__PURE__ */ new WeakMap(), $N = null, eP = null, tP = null;
+function nP() {
+ $N &&= (clearInterval($N), null), eP &&= (clearInterval(eP), null), tP &&= (clearTimeout(tP), null);
}
-async function Eue(e, t, n, r = {}) {
- let i = JM();
+async function Tue(e, t, n, r = {}) {
+ let i = YM();
if (i && !i.isDisposed()) return i;
- let a = HM(), o = r.resume ?? null;
+ let a = UM(), o = r.resume ?? null;
o?.autoplay && (n = !0), r.guidePreview && (n = !1);
- let s = () => r.source ? Promise.resolve(r.source) : yue(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : vue(e), c;
try {
- c = await JN();
+ c = await YN();
} catch {
return t.controls = !0, r.guidePreview || s().then((e) => {
t.addEventListener("loadedmetadata", () => {
@@ -34029,7 +34029,7 @@ async function Eue(e, t, n, r = {}) {
} }
}
});
- YM(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || jN("item", e), Yle(l), l.on("loadedmetadata", () => {
+ XM(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || MN("item", e), Jle(l), l.on("loadedmetadata", () => {
let e = l.el()?.querySelector("video");
e?.videoWidth && e.videoHeight && l.el().style.setProperty("--peach-video-ratio", `${e.videoWidth}/${e.videoHeight}`);
});
@@ -34037,7 +34037,7 @@ async function Eue(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = Zle($M(f, e.duration)), m = 0, h = !1, g = () => JM() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = Xle(eN(f, e.duration)), m = 0, h = !1, g = () => YM() === l && !l.isDisposed(), _ = () => {
if (!u || h || !g()) return;
let e = Number(l.duration());
(!Number.isFinite(e) || Math.abs(e - u) > Math.max(2, u * .001)) && (h = !0, l.duration(u), queueMicrotask(() => {
@@ -34048,15 +34048,15 @@ async function Eue(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- ZN.set(l, y), y.updateStats = () => {
+ QN.set(l, y), y.updateStats = () => {
let n = y.chrome?.statsPanel;
if (!n || n.hidden || !g()) return;
- let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = UN(), h = s ? iN(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+ let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = WN(), h = s ? aN(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
p.sample(t);
- let x = oN(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
+ let x = sN(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
m = S;
- let w = ZM(t);
- tN(d.speed, x), tN(d.activity, C), tN(d.buffer, w);
+ let w = QM(t);
+ nN(d.speed, x), nN(d.activity, C), nN(d.buffer, w);
let T = String(e.name || ""), E = (T.includes(".") ? T.split(".").pop() || "" : s ? "" : String(l.currentSource()?.type || "").split("/").pop() || "").toUpperCase() || "—", D = x ? `${(x / 1e6).toFixed(1)} Mbps` : "—", O = s || p.bitrate > 0, k = s ? [
"网络活动",
`${_ ? Xn(_) : "—"} · ${h.length} 请求`,
@@ -34074,17 +34074,17 @@ async function Eue(e, t, n, r = {}) {
[
"连接速度",
D,
- rN(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ iN(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- rN(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ iN(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- rN(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ iN(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${Yn(t.currentTime)} / ${Yn(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -34100,15 +34100,15 @@ async function Eue(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = oN(l, e.id, UN(), r ? null : p), a = r ? sN(i) : $le(i, ZM(t));
+ let i = sN(l, e.id, WN(), r ? null : p), a = r ? cN(i) : Qle(i, QM(t));
n.innerHTML = `${R("gauge")}<span class="sr-only">加载速度</span><span>${z(a)}</span>`;
}, C = () => {
let e = y.chrome?.netBadge;
- e && e.isConnected && (e.hidden = !1, S(), $N && clearInterval($N), $N = setInterval(S, 500));
+ e && e.isConnected && (e.hidden = !1, S(), eP && clearInterval(eP), eP = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (eP && clearTimeout(eP), eP = setTimeout(() => {
- e.hidden = !0, $N &&= (clearInterval($N), null);
+ e && (tP && clearTimeout(tP), tP = setTimeout(() => {
+ e.hidden = !0, eP &&= (clearInterval(eP), null);
}, 1400));
};
return l.on([
@@ -34119,7 +34119,7 @@ async function Eue(e, t, n, r = {}) {
], C), l.on(["canplay", "playing"], () => {
S(), w();
}), l.on("error", () => {
- b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(vue(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
+ b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(_ue(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
t[String(e.root_id || e.location)] !== !1 || l.isDisposed() || l.error({
code: 2,
message: `媒体目录无法访问 · ${a.offlineReason(String(e.root_id || e.location))}`
@@ -34127,13 +34127,13 @@ async function Eue(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = wN(l, t, e.height, r.qualities ?? null);
+ let n = TN(l, t, e.height, r.qualities ?? null);
r.mediaPromise?.then((t) => {
if (!g()) return;
n?.(t?.qualities?.length ? t.qualities : null);
let r = Number(t?.size) || 0;
- r > 0 && !f && (f = r, p.bitrate = $M(r, e.duration));
- }).catch(() => {}), TN(l, e, { thumbnail: !r.source }), r.guidePreview || fue(l, e), EN(l), r.source || DN(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = eN(r, e.duration));
+ }).catch(() => {}), EN(l, e, { thumbnail: !r.source }), r.guidePreview || due(l, e), DN(l), r.source || ON(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
}), r.guidePreview || s().then((e) => {
g() && (b = String(e.type || "").includes("mpegurl"), o && o.time > 0 && l.one("loadedmetadata", () => {
if (l.isDisposed()) return;
@@ -34142,16 +34142,16 @@ async function Eue(e, t, n, r = {}) {
}), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), n && l.play()?.catch(() => {}));
}).catch(() => {}), l;
}
-var Due = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function nP(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Due), e.querySelector("#playerStatsBtn")) return;
+var Eue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function rP(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Eue), e.querySelector("#playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = Qle();
+ n.innerHTML = Zle();
let r = e.querySelector(":scope > [data-player-toolbar]");
r && (r.querySelector("[data-player-stats-slot]").append(n.content.querySelector("#playerStatsBtn")), r.querySelector("[data-player-net-slot]").append(n.content.querySelector("#playerNet"))), e.insertBefore(n.content, t);
}
-function rP(e, t) {
- let n = ZN.get(e);
+function iP(e, t) {
+ let n = QN.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`#${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -34163,30 +34163,30 @@ function rP(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), QN &&= (clearInterval(QN), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), $N &&= (clearInterval($N), null));
};
a.onclick = () => {
- o.hidden ? (document.dispatchEvent(new CustomEvent(nN, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), QN && clearInterval(QN), QN = setInterval(n.updateStats, 1e3)) : e();
+ o.hidden ? (document.dispatchEvent(new CustomEvent(rN, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), $N && clearInterval($N), $N = setInterval(n.updateStats, 1e3)) : e();
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(nN, t), s = () => document.removeEventListener(nN, t);
+ document.addEventListener(rN, t), s = () => document.removeEventListener(rN, t);
}
- let c = e.el().querySelector("video"), l = c ? lue(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, tP()));
+ let c = e.el().querySelector("video"), l = c ? cue(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, nP()));
};
return e.one("dispose", d), d;
}
-function iP(e, t) {
- if (t.kind === "immerse") return wue(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = XN(), c = HM(), l = t.chrome === !1 ? null : e.parentElement;
- l && nP(l, e);
- let u = jN(n, r, i?.index ?? null), d = {
+function aP(e, t) {
+ if (t.kind === "immerse") return Cue(e, t);
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = ZN(), c = UM(), l = t.chrome === !1 ? null : e.parentElement;
+ l && rP(l, e);
+ let u = MN(n, r, i?.index ?? null), d = {
guidePreview: s,
playbackKey: u,
resume: s ? null : t.resume ?? {
- time: mue(u, r),
+ time: pue(u, r),
autoplay: !1
}
};
@@ -34206,36 +34206,36 @@ function iP(e, t) {
t && (e.poster = t);
}
let f = null, p = !1, m = () => {}, h = e, g = () => {
- m(), !(f && a?.(f)) && (AN(h), f ? (JM() === f && (YM(null), tP()), IN(f)) : NN(h));
+ m(), !(f && a?.(f)) && (jN(h), f ? (YM() === f && (XM(null), nP()), LN(f)) : PN(h));
};
- return Eue(r, e, s ? !1 : t.autoplay ?? c.settings().detailAutoplay, d).then((t) => {
- f = t, p ? g() : (h = t?.el().querySelector("video") ?? e, s ? (t?.el().setAttribute("data-player-guide", ""), o?.(t)) : (hue(u, h), n === "follow" ? gue(r, h) : (h.addEventListener("play", () => {
+ return Tue(r, e, s ? !1 : t.autoplay ?? c.settings().detailAutoplay, d).then((t) => {
+ f = t, p ? g() : (h = t?.el().querySelector("video") ?? e, s ? (t?.el().setAttribute("data-player-guide", ""), o?.(t)) : (mue(u, h), n === "follow" ? hue(r, h) : (h.addEventListener("play", () => {
Tn("/api/play", {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), FN(r, h, {
+ }, { once: !0 }), IN(r, h, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
- })), t ? (l && (m = rP(t, l)), o?.(t)) : o?.(null)));
+ })), t ? (l && (m = iP(t, l)), o?.(t)) : o?.(null)));
}), () => {
p = !0, g();
};
}
// src/player/playback.ts
-function aP(e) {
+function oP(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function oP(e, t) {
+function sP(e, t) {
let n = e.duration, r = (e.currentTime || 0) + t;
e.currentTime = Number.isFinite(n) ? Math.max(0, Math.min(n, r)) : Math.max(0, r);
}
// src/player/preview-player.ts
-function Oue(e, t, n) {
+function Due(e, t, n) {
e.controls = !1;
let r = !1, i = null;
- return JN().then((a) => {
+ return YN().then((a) => {
if (r) return;
i = a(e, {
controls: !0,
@@ -34260,30 +34260,30 @@ function Oue(e, t, n) {
o.on("error", () => {
r || n();
}), o.ready(() => {
- r || o.isDisposed() || (wN(o, e), TN(o, null, { thumbnail: !1 }), EN(o));
+ r || o.isDisposed() || (TN(o, e), EN(o, null, { thumbnail: !1 }), DN(o));
}), o.src(t);
}).catch(() => {
r || n();
}), () => {
- r = !0, IN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ r = !0, LN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
};
}
-function sP(e, t) {
+function cP(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var kue = (e, t) => [
+var Oue = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], Aue = (e, t) => [
+], kue = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function jue(e, t, n, r, i) {
+async function Aue(e, t, n, r, i) {
let a = new URLSearchParams(e);
a.set("limit", String(n)), a.set("offset", String(t)), t && a.set("count", "0");
let o = await B(`/api/items?${a}`, i), s = {
@@ -34293,22 +34293,22 @@ async function jue(e, t, n, r, i) {
};
return t || s.items.length || r || (s.libraryEmpty = (await B("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var Mue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Nue = (e, t) => {
+var jue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Mue = (e, t) => {
let n = t.reduce((e, t) => e + t.items.length, 0);
return (e.has_more == null ? n < (e.total || 0) : e.has_more) ? n : void 0;
};
-function Pue(e) {
- let t = sP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function Nue(e) {
+ let t = cP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: kue(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => jue(t, e, n, r, i),
+ queryKey: Oue(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => Aue(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: Mue(n)
+ getNextPageParam: jue(n)
};
}
-function Fue(e) {
+function Pue(e) {
return {
- queryKey: Aue(e.entityKey || "", e.revision || 0),
+ queryKey: kue(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -34323,14 +34323,14 @@ function Fue(e) {
};
},
initialPageParam: 0,
- getNextPageParam: Nue
+ getNextPageParam: Mue
};
}
-function cP(e) {
+function lP(e) {
let t = JSON.stringify(e);
return H.getQueryCache().findAll({ queryKey: e.slice(0, -1) }).filter((e) => JSON.stringify(e.queryKey) !== t && !e.state.isInvalidated && Array.isArray(e.state.data?.pages)).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt)[0]?.state.data;
}
-function lP(e, t, n) {
+function uP(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -34345,24 +34345,24 @@ function lP(e, t, n) {
return !0;
}) : [...e];
}
-var uP = (e, t) => !!e && !!to(e, t);
-function Iue(e, t) {
- let n = (e) => uP(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
- return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => uP(e, t)) || e[e.length - 1];
+var dP = (e, t) => !!e && !!to(e, t);
+function Fue(e, t) {
+ let n = (e) => dP(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
+ return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => dP(e, t)) || e[e.length - 1];
}
-function Lue(e, { collapse: t, mix: n, javImage: r }) {
+function Iue(e, { collapse: t, mix: n, javImage: r }) {
let i = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
}, a = /* @__PURE__ */ new Set(), o = [], s = [];
for (let c of e) {
s.push(o.length);
- let e = lP(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = uP(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
kind: "card",
item: e
}));
if (n && e.length >= 8) {
- let t = Iue(e, r);
+ let t = Fue(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -34375,16 +34375,16 @@ function Lue(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function Rue(e, t, n) {
+function Lue(e, t, n) {
let r = Math.max(1, n), i = [];
for (let n = Math.max(r, Math.ceil(Math.max(0, t) / r) * r); n < e; n += r) i.push(n);
return i;
}
-function zue(e, t) {
+function Rue(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return n.set("orient", "竖屏"), n.set("limit", "18"), n.set("offset", String(t)), n.toString();
}
-function Bue(e, t) {
+function zue(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -34397,10 +34397,10 @@ function Bue(e, t) {
strip: null
}), r;
}
-function dP(e, t) {
- fP((t) => t.id === e, t);
-}
function fP(e, t) {
+ pP((t) => t.id === e, t);
+}
+function pP(e, t) {
H.setQueriesData({ queryKey: ["catalog-short-layout"] }, (n) => !n || !n.cuts.some((t) => t.items.some(e)) ? n : {
...n,
cuts: n.cuts.map((n) => ({
@@ -34430,34 +34430,34 @@ function fP(e, t) {
} : n)
});
}
-var pP = (e) => Math.min(Math.max(e || 0, 0), 100), mP = (e) => Math.round(pP(e) / 20), Vue = (e) => {
- let t = mP(e);
+var mP = (e) => Math.min(Math.max(e || 0, 0), 100), hP = (e) => Math.round(mP(e) / 20), Bue = (e) => {
+ let t = hP(e);
return t ? `${t} 星` : "未评分";
-}, hP = (e, t) => t === mP(e) ? 0 : t * 20, gP = (e) => ["item", e], _P = (e) => [
+}, gP = (e, t) => t === hP(e) ? 0 : t * 20, _P = (e) => ["item", e], vP = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], Hue = (e, t) => [
+], Vue = (e, t) => [
"item-related",
e,
t
-], Uue = (e) => `/api/item?id=${e}`, Wue = (e, t) => `/api/related?id=${e}&limit=${t}`, vP = "/api/playlist", yP = "/api/feedback", bP = "/api/item-tag", xP = "/api/watch-later", SP = "/api/quality-goal", CP = "/api/preference", wP = class extends Error {};
-async function TP(e, t) {
- let n = await B(Uue(e), t);
- if (n.error) throw new wP(n.error);
+], Hue = (e) => `/api/item?id=${e}`, Uue = (e, t) => `/api/related?id=${e}&limit=${t}`, yP = "/api/playlist", bP = "/api/feedback", xP = "/api/item-tag", SP = "/api/watch-later", CP = "/api/quality-goal", wP = "/api/preference", TP = class extends Error {};
+async function EP(e, t) {
+ let n = await B(Hue(e), t);
+ if (n.error) throw new TP(n.error);
return n;
}
-async function EP(e, t, n) {
+async function DP(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([TP(r, n), t.mixRelated(r)]);
- return H.setQueryData(gP(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([EP(r, n), t.mixRelated(r)]);
+ return H.setQueryData(_P(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${Mo(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return DP(await B(`${vP}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return OP(await B(`${yP}?id=${e.playlistId}`, n));
let r = await B(`/api/${e.kind}?id=${e.seedId}`, n);
if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");
return {
@@ -34468,19 +34468,19 @@ async function EP(e, t, n) {
versionCount: e.kind === "editions" ? r.count : void 0
};
}
-var DP = (e) => ({
+var OP = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), OP = (e) => e.disposal === "vanished";
-function kP(e, t) {
+}), kP = (e) => e.disposal === "vanished";
+function AP(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !OP(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !kP(e)) : e.items;
return n.length ? t != null && n.some((e) => e.id === t) ? t : e.kind === "playlist" && n.some((t) => t.id === e.currentAssetId) ? e.currentAssetId : n[0].id : null;
}
-function Gue(e, t) {
+function Wue(e, t) {
if (t?.kind !== "parts" && t?.kind !== "editions") return e;
let n = t.items.find((t) => t.id === e.id)?.part_label || "";
return e.part_label === n ? e : {
@@ -34488,20 +34488,20 @@ function Gue(e, t) {
part_label: n
};
}
-function AP(e, t) {
+function jP(e, t) {
if (!e || e.kind !== "parts" && e.kind !== "editions") return null;
let n = e.items.findIndex((e) => e.id === t), r = e.items[n], i = e.items[n + 1];
return !r?.part_label || !i?.part_label ? null : e.kind === "parts" || r.version_id != null && r.version_id === i.version_id ? i : null;
}
-async function jP(e, t) {
+async function MP(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = _P(n);
+ let o = vP(n);
try {
let r = n.fresh ? void 0 : H.getQueryData(o);
a = !r && n.kind === "mix", i = r || await H.fetchQuery({
queryKey: o,
- queryFn: () => EP(n, e.helpers, t),
+ queryFn: () => DP(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -34513,21 +34513,21 @@ async function jP(e, t) {
return;
}
}
- let o = i ? kP(i, e.id) : e.id;
+ let o = i ? AP(i, e.id) : e.id;
if (o == null) {
r.redirect(i?.kind === "playlist" ? { kind: "playlists" } : { kind: "gone" });
return;
}
- let s, c = a && o === i?.seedId ? H.getQueryData(gP(o)) : void 0;
+ let s, c = a && o === i?.seedId ? H.getQueryData(_P(o)) : void 0;
try {
s = c || await H.fetchQuery({
- queryKey: gP(o),
- queryFn: () => TP(o, t),
+ queryKey: _P(o),
+ queryFn: () => EP(o, t),
staleTime: 0
});
} catch (e) {
if (t.aborted) throw e;
- if (e instanceof wP) {
+ if (e instanceof TP) {
r.redirect({ kind: "gone" });
return;
}
@@ -34538,7 +34538,7 @@ async function jP(e, t) {
id: Number(s.follow_item_id)
});
}
-function Kue(e) {
+function Gue(e) {
let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {
let t = Un(e.name);
return !e.name || n.has(t) ? !1 : (n.add(t), !0);
@@ -34560,35 +34560,35 @@ function Kue(e) {
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
-function que(e, t) {
+function Kue(e, t) {
let n = /* @__PURE__ */ new Map();
return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {
let r = Un(t.tagLabel(e.k)), i = n.get(r);
(!i || Un(e.k) === r && Un(i.k) !== r) && n.set(r, e);
}), [...n.values()].slice(0, 40);
}
-var MP = (e, t) => (e.tags || []).some((e) => Un(e.k) === Un(t)), NP = (e, t) => ({
+var NP = (e, t) => (e.tags || []).some((e) => Un(e.k) === Un(t)), PP = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => Un(e.k) !== Un(t))
-}), PP = (e, t) => MP(e, t.k) ? e : {
+}), FP = (e, t) => NP(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, FP = "peach.recentTags";
-function IP() {
+}, IP = "peach.recentTags";
+function LP() {
try {
- let e = JSON.parse(localStorage.getItem(FP) || "[]");
+ let e = JSON.parse(localStorage.getItem(IP) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function LP(e) {
+function RP(e) {
try {
- let t = IP().filter((t) => Un(t) !== Un(e));
- localStorage.setItem(FP, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = LP().filter((t) => Un(t) !== Un(e));
+ localStorage.setItem(IP, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function Jue(e, t, n) {
+function que(e, t, n) {
let r = Un(e), i = new Map(t.map((e) => [Un(e.k), e])), a = t.filter((e) => !r || Un(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(Un(e)) || {
k: e,
n: 0
@@ -34599,72 +34599,72 @@ function Jue(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var Yue = {
+var Jue = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, Xue = {
+}, Yue = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function Zue(e) {
+function Xue(e) {
let t = (e.kind === "editions" ? e.versionCount ?? e.items.length : e.items.length).toLocaleString(), n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;
return {
- title: Xue[e.kind],
+ title: Yue[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var RP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Que = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(RP(e.part_label))}</small>` : "";
-function $ue(e, t, n, r) {
+var zP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, Zue = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(zP(e.part_label))}</small>` : "";
+function Que(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var ede = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function tde(e, t) {
+var $ue = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function ede(e, t) {
return t ? "offline" : String(e.name || "").toLowerCase().endsWith(".iso") ? "disc" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";
}
-function nde(e) {
+function tde(e) {
let t = Number(e.duration) > 0 ? Number(e.duration) : 0;
return !e.play_seconds || !t ? null : Math.min(Number(e.play_seconds) / t, 1) * 100;
}
-function zP(e, t) {
+function BP(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
// src/react/immerse/immerse.ts
-var rde = (e, t, n) => [
+var nde = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function ide(e) {
+function rde(e) {
let t = new URLSearchParams();
for (let [n, r] of Object.entries(e)) r && t.set(n, String(r));
return t.delete("orient"), t.set("sort", "rand"), t.set("limit", "60"), t.set("offset", "0"), t.set("thumb", ""), t.toString();
}
-var ade = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
-function ode(e, t = Math.random) {
+var ide = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
+function ade(e, t = Math.random) {
for (let n = e.length - 1; n > 0; n--) {
let r = Math.floor(t() * (n + 1));
[e[n], e[r]] = [e[r], e[n]];
}
return e;
}
-async function sde(e, t) {
- return ode(((await B(`/api/items?${e}`)).items || []).filter((e) => ade(e, t)));
+async function ode(e, t) {
+ return ade(((await B(`/api/items?${e}`)).items || []).filter((e) => ide(e, t)));
}
-var BP = (e) => H.ensureQueryData({
- queryKey: gP(e),
- queryFn: ({ signal: t }) => TP(e, t)
+var VP = (e) => H.ensureQueryData({
+ queryKey: _P(e),
+ queryFn: ({ signal: t }) => EP(e, t)
});
-function cde(e, t) {
+function sde(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function lde(e) {
+function cde(e) {
let t = e.performers || [], n = t.length ? t.slice(0, 3).join("、") + (t.length > 3 ? ` 等 ${t.length} 人` : "") : e.creator || "未归属", r = t.length ? "performer" : e.creator ? "creator" : "";
return {
who: n,
@@ -34673,306 +34673,306 @@ function lde(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function ude(e, t, n) {
+function lde(e, t, n) {
if (!e || !t || !n || !Number.isFinite(n)) return null;
let r = e / t;
return (r > n ? r / n : n / r) > 1.05 ? "contain" : "cover";
}
-function dde(e, t) {
+function ude(e, t) {
return e.videoWidth && e.videoHeight ? e.videoWidth >= e.videoHeight : !!(t.width && t.height && t.width > 0 && t.height > 0 && t.width >= t.height);
}
-var fde = 15e3, VP = {
+var dde = 15e3, HP = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, HP = null, UP = null, WP = VP, GP = /* @__PURE__ */ new Set(), KP = 0, qP = 0, JP = 0, YP = "", XP = [], ZP = 0, QP = !1, $P = !1, eF = null, tF = /* @__PURE__ */ new Set(), nF = "", rF = null, iF = 0, aF = null, oF = !1;
-function sF() {
- if (!HP) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
- return HP;
+}, UP = null, WP = null, GP = HP, KP = /* @__PURE__ */ new Set(), qP = 0, JP = 0, YP = 0, XP = "", ZP = [], QP = 0, $P = !1, eF = !1, tF = null, nF = /* @__PURE__ */ new Set(), rF = "", iF = null, aF = 0, oF = null, sF = !1;
+function cF() {
+ if (!UP) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
+ return UP;
}
-function pde(e) {
- return GP.add(e), () => {
- GP.delete(e);
+function fde(e) {
+ return KP.add(e), () => {
+ KP.delete(e);
};
}
-function mde() {
- for (let e of [...GP]) e();
-}
-function cF() {
- (0, Rt.flushSync)(mde);
+function pde() {
+ for (let e of [...KP]) e();
}
function lF() {
- let e = rF ? aN(rF.id) : 0;
- return e ? `${nF} · ${sN(e)}` : nF;
+ (0, Rt.flushSync)(pde);
+}
+function uF() {
+ let e = iF ? oN(iF.id) : 0;
+ return e ? `${rF} · ${cN(e)}` : rF;
}
-function uF(e, t = null) {
- clearInterval(iF), iF = 0, e === null ? (WP = {
- ...WP,
+function dF(e, t = null) {
+ clearInterval(aF), aF = 0, e === null ? (GP = {
+ ...GP,
loading: null
- }, cF()) : (nF = e, rF = t, WP = {
- ...WP,
- loading: lF()
- }, cF(), iF = window.setInterval(() => {
- rF = XP[ZP] ?? null, WP = {
- ...WP,
- loading: lF()
- }, cF();
+ }, lF()) : (rF = e, iF = t, GP = {
+ ...GP,
+ loading: uF()
+ }, lF(), aF = window.setInterval(() => {
+ iF = ZP[QP] ?? null, GP = {
+ ...GP,
+ loading: uF()
+ }, lF();
}, 500));
}
-function hde(e) {
+function mde(e) {
let t = document.createElement("div");
t.dataset.immerseSlide = "", e && (t.style.transform = `translateY(${e}%)`);
let n = document.createElement("video");
- n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), UP.track.append(t);
- let r = RN(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), WP.track.append(t);
+ let r = zN(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => VN(r),
+ release: () => HN(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return tF.add(a), a;
+ return nF.add(a), a;
}
-function gde(e, t) {
+function hde(e, t) {
return new Promise((n) => {
- e.release = iP(e.video, {
+ e.release = aP(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- WP.open && _F(1);
+ GP.open && vF(1);
}
}), e.gone.then(n);
});
}
-function dF(e) {
- e && !e.disposed && (e.disposed = !0, tF.delete(e), e.leave(), e.release(), e.el.remove(), eF === e && (eF = null));
+function fF(e) {
+ e && !e.disposed && (e.disposed = !0, nF.delete(e), e.leave(), e.release(), e.el.remove(), tF === e && (tF = null));
}
-var fF = [
+var pF = [
"loadeddata",
"canplay",
"error"
];
-function _de(e) {
+function gde(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), fF.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), pF.forEach((e) => t.removeEventListener(e, i)), n());
};
- fF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, fde);
+ pF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, dde);
e.gone.then(i);
});
}
-function pF(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = ude(e.videoWidth, e.videoHeight, n);
+function mF(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = lde(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var mF = () => UP?.track.querySelectorAll("video").forEach(pF);
-function vde(e) {
- delete e.dataset.fit, e.readyState >= 1 ? pF(e) : e.addEventListener("loadedmetadata", () => pF(e), { once: !0 });
+var hF = () => WP?.track.querySelectorAll("video").forEach(mF);
+function _de(e) {
+ delete e.dataset.fit, e.readyState >= 1 ? mF(e) : e.addEventListener("loadedmetadata", () => mF(e), { once: !0 });
}
-function yde(e) {
- WP = {
- ...WP,
+function vde(e) {
+ GP = {
+ ...GP,
wide: e
- }, cF(), mF();
+ }, lF(), hF();
}
-var hF = () => {
- let e = YP;
+var gF = () => {
+ let e = XP;
return H.fetchQuery({
- queryKey: rde(e, qP, JP),
- queryFn: () => sde(e, sF().sourceOffline),
+ queryKey: nde(e, JP, YP),
+ queryFn: () => ode(e, cF().sourceOffline),
staleTime: Infinity
});
};
-function bde(e, t) {
+function yde(e, t) {
let n = () => qn(e.duration) || qn(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && UP && (UP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), aF = {
+ t && WP && (WP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), oF = {
video: e,
duration: n
};
}
-async function gF(e = 0) {
- let t = XP[ZP];
- if (!t || QP) return;
- let n = KP;
- sF().route(t.id), QP = !0, uF(e ? "切换中" : "加载中", t);
+async function _F(e = 0) {
+ let t = ZP[QP];
+ if (!t || $P) return;
+ let n = qP;
+ cF().route(t.id), $P = !0, dF(e ? "切换中" : "加载中", t);
let r = null;
try {
- if (await BP(t.id).catch((e) => {
- if (!(e instanceof wP)) throw e;
- }), n !== KP) return;
- let i = eF, a = !!(e && i);
- a || dF(i);
- let o = hde(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, vde(o.video), await gde(o, t), await _de(o), o.disposed || (yde(dde(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await VP(t.id).catch((e) => {
+ if (!(e instanceof TP)) throw e;
+ }), n !== qP) return;
+ let i = tF, a = !!(e && i);
+ a || fF(i);
+ let o = mde(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, _de(o.video), await hde(o, t), await gde(o), o.disposed || (vde(ude(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
i.el.style.transform = `translateY(${e > 0 ? -100 : 100}%)`, o.el.style.transform = "";
- })), await new Promise((e) => setTimeout(e, 210)), dF(i), o.el.style.transform = ""), o.disposed)) return;
- eF = o, r = null, o.video.play()?.catch(() => {}), WP = {
- ...WP,
+ })), await new Promise((e) => setTimeout(e, 210)), fF(i), o.el.style.transform = ""), o.disposed)) return;
+ tF = o, r = null, o.video.play()?.catch(() => {}), GP = {
+ ...GP,
idle: !1,
shown: {
item: t,
- index: ZP,
- length: XP.length
+ index: QP,
+ length: ZP.length
}
- }, bde(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), uF(null);
+ }, yde(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), dF(null);
} catch {
- dF(r), n === KP && uF(null);
+ fF(r), n === qP && dF(null);
} finally {
- n === KP && (QP = !1);
+ n === qP && ($P = !1);
}
}
-async function _F(e) {
- if (QP || !WP.open) return;
- let t = KP;
- if (ZP += e, uF("切换中", XP[ZP] ?? null), ZP >= XP.length - 3 && !$P) {
- $P = !0;
+async function vF(e) {
+ if ($P || !GP.open) return;
+ let t = qP;
+ if (QP += e, dF("切换中", ZP[QP] ?? null), QP >= ZP.length - 3 && !eF) {
+ eF = !0;
try {
- JP += 1;
- let e = await hF();
- t === KP && (XP = cde(XP, e));
+ YP += 1;
+ let e = await gF();
+ t === qP && (ZP = sde(ZP, e));
} catch {} finally {
- $P = !1;
+ eF = !1;
}
}
- t === KP && (ZP >= XP.length && (ZP = 0), ZP < 0 && (ZP = XP.length - 1), await gF(e));
+ t === qP && (QP >= ZP.length && (QP = 0), QP < 0 && (QP = ZP.length - 1), await _F(e));
}
-async function xde(e) {
- let t = ++KP;
- vF(), qP += 1, JP = 0, YP = ide(sF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), WP = {
- ...WP,
+async function bde(e) {
+ let t = ++qP;
+ yF(), JP += 1, YP = 0, XP = rde(cF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), GP = {
+ ...GP,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), uF("加载内容");
+ }, document.body.setAttribute("data-immerse-open", ""), dF("加载内容");
try {
- let n = await hF();
+ let n = await gF();
if (e && !n.some((t) => t.id === e)) {
- let t = await BP(e).catch((e) => {
- if (e instanceof wP) return null;
+ let t = await VP(e).catch((e) => {
+ if (e instanceof TP) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== KP) return;
- if (XP = n, !XP.length) {
- yF(), sF().warn("当前筛选下没有可直接播放的内容");
+ if (t !== qP) return;
+ if (ZP = n, !ZP.length) {
+ bF(), cF().warn("当前筛选下没有可直接播放的内容");
return;
}
- ZP = Math.max(0, XP.findIndex((t) => t.id === e)), await gF();
+ QP = Math.max(0, ZP.findIndex((t) => t.id === e)), await _F();
} catch {
- if (t !== KP) return;
- uF(null), yF();
+ if (t !== qP) return;
+ dF(null), bF();
}
}
-function vF() {
- clearInterval(iF), iF = 0, TF(), CF = null, aF = null, oF = !1, [...tF].forEach(dF), QP = !1;
-}
function yF() {
- WP.open && (KP++, vF(), WP = VP, document.body.removeAttribute("data-immerse-open"), cF(), sF().closed());
+ clearInterval(aF), aF = 0, EF(), wF = null, oF = null, sF = !1, [...nF].forEach(fF), $P = !1;
+}
+function bF() {
+ GP.open && (qP++, yF(), GP = HP, document.body.removeAttribute("data-immerse-open"), lF(), cF().closed());
}
-var bF = 0, xF = null, SF = 0, CF = null, wF = 0;
-function TF() {
- clearTimeout(bF), bF = 0, xF = null;
+var xF = 0, SF = null, CF = 0, wF = null, TF = 0;
+function EF() {
+ clearTimeout(xF), xF = 0, SF = null;
}
-function Sde(e) {
- let t = eF?.video;
+function xde(e) {
+ let t = tF?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- xF && xF.side === n && r - xF.at <= 280 ? (TF(), oP(t, sF().seekSeconds() * n)) : (bF && (clearTimeout(bF), bF = 0, aP(t)), xF = {
+ SF && SF.side === n && r - SF.at <= 280 ? (EF(), sP(t, cF().seekSeconds() * n)) : (xF && (clearTimeout(xF), xF = 0, oP(t)), SF = {
side: n,
at: r
- }, bF = window.setTimeout(() => {
- bF = 0, xF = null, WP.open && aP(eF?.video);
+ }, xF = window.setTimeout(() => {
+ xF = 0, SF = null, GP.open && oP(tF?.video);
}, 280));
}
-function Cde() {
- Date.now() < SF || aP(eF?.video);
-}
-var EF = (e) => UP?.bar.toggleAttribute("data-scrubbing", e);
-function DF(e) {
- UP && (UP.progress.style.width = `${(e * 100).toFixed(2)}%`);
+function Sde() {
+ Date.now() < CF || oP(tF?.video);
}
+var DF = (e) => WP?.bar.toggleAttribute("data-scrubbing", e);
function OF(e) {
+ WP && (WP.progress.style.width = `${(e * 100).toFixed(2)}%`);
+}
+function kF(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- CF = null;
+ wF = null;
return;
}
- let n = eF?.video;
- CF = {
+ let n = tF?.video;
+ wF = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function kF(e) {
- if (!CF || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - CF.x, n = e.touches[0].clientY - CF.y;
- if (!CF.axis) {
+function AF(e) {
+ if (!wF || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - wF.x, n = e.touches[0].clientY - wF.y;
+ if (!wF.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- CF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", CF.axis === "x" && EF(!0);
+ wF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", wF.axis === "x" && DF(!0);
}
- if (CF.axis !== "x") return;
- let r = eF?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), CF.to = Math.min(i, Math.max(0, CF.from + t / window.innerWidth * i)), DF(CF.to / i));
+ if (wF.axis !== "x") return;
+ let r = tF?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), wF.to = Math.min(i, Math.max(0, wF.from + t / window.innerWidth * i)), OF(wF.to / i));
}
-function AF(e) {
- if (!CF) return;
- let t = CF;
- if (CF = null, SF = Date.now() + 700, EF(!1), t.axis === "x") {
- let e = eF?.video;
+function jF(e) {
+ if (!wF) return;
+ let t = wF;
+ if (wF = null, CF = Date.now() + 700, DF(!1), t.axis === "x") {
+ let e = tF?.video;
e && t.to != null && (e.currentTime = t.to);
return;
}
let n = e.changedTouches[0], r = n.clientX - t.x, i = t.y - n.clientY;
- Math.abs(i) > 60 ? (TF(), _F(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), Sde(n.clientX));
+ Math.abs(i) > 60 ? (EF(), vF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), xde(n.clientX));
}
-function jF() {
- CF = null, EF(!1);
+function MF() {
+ wF = null, DF(!1);
}
-function MF(e) {
+function NF(e) {
let t = Date.now();
- t - wF < 260 || (wF = t, _F(e.deltaY > 0 ? 1 : -1));
+ t - TF < 260 || (TF = t, vF(e.deltaY > 0 ? 1 : -1));
}
-function NF(e) {
- let t = UP.bar.getBoundingClientRect();
+function PF(e) {
+ let t = WP.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
+function Cde(e) {
+ oF?.duration() && (sF = !0, DF(!0), e.currentTarget.setPointerCapture(e.pointerId), OF(PF(e)), e.preventDefault());
+}
function wde(e) {
- aF?.duration() && (oF = !0, EF(!0), e.currentTarget.setPointerCapture(e.pointerId), DF(NF(e)), e.preventDefault());
+ sF && OF(PF(e));
}
function Tde(e) {
- oF && DF(NF(e));
+ if (!sF) return;
+ sF = !1, DF(!1);
+ let t = oF?.duration();
+ oF && t && (oF.video.currentTime = t * PF(e));
}
-function Ede(e) {
- if (!oF) return;
- oF = !1, EF(!1);
- let t = aF?.duration();
- aF && t && (aF.video.currentTime = t * NF(e));
+function Ede() {
+ sF = !1, DF(!1);
}
-function Dde() {
- oF = !1, EF(!1);
-}
-async function PF(e, t) {
- let n = await V(yP, {
+async function FF(e, t) {
+ let n = await V(bP, {
id: e,
kind: t
- }), r = H.getQueryData(gP(e));
- if (!r) return dP(e, {
+ }), r = H.getQueryData(_P(e));
+ if (!r) return fP(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -34981,7 +34981,7 @@ async function PF(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return H.setQueryData(gP(e), i), dP(e, {
+ return H.setQueryData(_P(e), i), fP(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -34989,7 +34989,7 @@ async function PF(e, t) {
o_count: i.o_count
}), n;
}
-var Ode = [
+var Dde = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -35006,31 +35006,31 @@ var Ode = [
label: "记一次高潮"
}
];
-function FF(e) {
+function IF(e) {
return Ft({
- queryKey: gP(e ?? 0),
- queryFn: ({ signal: t }) => TP(e, t),
+ queryKey: _P(e ?? 0),
+ queryFn: ({ signal: t }) => EP(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function kde({ kind: e, glyph: t, label: n, id: r }) {
- let i = FF(r), a = It({
+function Ode({ kind: e, glyph: t, label: n, id: r }) {
+ let i = IF(r), a = It({
mutationFn: async (t) => {
- let n = H.getQueryData(gP(t))?.feedback || null;
+ let n = H.getQueryData(_P(t))?.feedback || null;
return {
- result: await PF(t, e),
+ result: await FF(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- sF().toast(zP(e, t), { undo: async () => {
- e === "o" ? await PF(r, "o-undo") : (t.feedback && await PF(r, t.feedback), n && await PF(r, n));
+ cF().toast(BP(e, t), { undo: async () => {
+ e === "o" ? await FF(r, "o-undo") : (t.feedback && await FF(r, t.feedback), n && await FF(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- _F(1);
+ vF(1);
}, 260);
},
- onError: (e) => sF().failure("更新反馈", e)
+ onError: (e) => cF().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-immerse-action": "",
@@ -35061,11 +35061,11 @@ function kde({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function Ade({ shown: e }) {
- let t = e?.item ?? null, n = FF(t?.id ?? null), r = n ? lde(n) : null, i = sF(), a = (e) => {
- e.preventDefault(), n && (yF(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function kde({ shown: e }) {
+ let t = e?.item ?? null, n = IF(t?.id ?? null), r = n ? cde(n) : null, i = cF(), a = (e) => {
+ e.preventDefault(), n && (bF(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
- t && (yF(), i.openItem(t.id));
+ t && (bF(), i.openItem(t.id));
}, s = r ? _o(r.name, r.ref, Za(r.name), r.kind || "performer") : "";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-immerse-ui": "",
@@ -35094,18 +35094,18 @@ function Ade({ shown: e }) {
})]
});
}
-var jde = { __html: Bs("媒体加载中") };
-function Mde({ view: e }) {
+var Ade = { __html: Bs("媒体加载中") };
+function jde({ view: e }) {
let t = (0, F.useRef)(null), n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
let e = t.current;
- return UP = {
+ return WP = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", OF, { passive: !0 }), e.addEventListener("touchmove", kF, { passive: !1 }), e.addEventListener("touchend", AF, { passive: !1 }), e.addEventListener("touchcancel", jF, { passive: !0 }), e.addEventListener("wheel", MF, { passive: !0 }), () => {
- e.removeEventListener("touchstart", OF), e.removeEventListener("touchmove", kF), e.removeEventListener("touchend", AF), e.removeEventListener("touchcancel", jF), e.removeEventListener("wheel", MF), UP = null;
+ }, e.addEventListener("touchstart", kF, { passive: !0 }), e.addEventListener("touchmove", AF, { passive: !1 }), e.addEventListener("touchend", jF, { passive: !1 }), e.addEventListener("touchcancel", MF, { passive: !0 }), e.addEventListener("wheel", NF, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", kF), e.removeEventListener("touchmove", AF), e.removeEventListener("touchend", jF), e.removeEventListener("touchcancel", MF), e.removeEventListener("wheel", NF), WP = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -35122,10 +35122,10 @@ function Mde({ view: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: Cde
+ onClick: Sde
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-immerse-actions": "",
- children: Ode.map((e) => /* @__PURE__ */ (0, I.jsx)(kde, {
+ children: Dde.map((e) => /* @__PURE__ */ (0, I.jsx)(Ode, {
...e,
id: a
}, e.kind))
@@ -35138,7 +35138,7 @@ function Mde({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: jde
+ dangerouslySetInnerHTML: Ade
}), /* @__PURE__ */ (0, I.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -35146,7 +35146,7 @@ function Mde({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: yF,
+ onClick: bF,
children: /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-x" })
@@ -35155,41 +35155,41 @@ function Mde({ view: e }) {
/* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: wde,
- onPointerMove: Tde,
- onPointerUp: Ede,
- onPointerCancel: Dde,
+ onPointerDown: Cde,
+ onPointerMove: wde,
+ onPointerUp: Tde,
+ onPointerCancel: Ede,
children: /* @__PURE__ */ (0, I.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, I.jsx)(Ade, { shown: e.shown })
+ /* @__PURE__ */ (0, I.jsx)(kde, { shown: e.shown })
]
});
}
-var Nde = {
- open: xde,
- close: yF,
- isOpen: () => WP.open,
- activeVideo: () => WP.open ? eF?.video ?? null : null
+var Mde = {
+ open: bde,
+ close: bF,
+ isOpen: () => GP.open,
+ activeVideo: () => GP.open ? tF?.video ?? null : null
};
-function Pde(e) {
- if (!WP.open) return;
+function Nde(e) {
+ if (!GP.open) return;
let t = e.target;
- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && _F(1), e.key === "ArrowUp" && _F(-1));
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && vF(1), e.key === "ArrowUp" && vF(-1));
}
-function Fde(e) {
- let t = !HP;
- return HP = e, t && (document.addEventListener("keydown", Pde), addEventListener("resize", () => {
- WP.open && mF();
+function Pde(e) {
+ let t = !UP;
+ return UP = e, t && (document.addEventListener("keydown", Nde), addEventListener("resize", () => {
+ GP.open && hF();
}), addEventListener("pagehide", () => {
- tF.forEach((e) => VN(e.session));
- })), Nde;
+ nF.forEach((e) => HN(e.session));
+ })), Mde;
}
-function Ide() {
- let e = (0, F.useSyncExternalStore)(pde, () => WP);
- return HP ? /* @__PURE__ */ (0, I.jsx)(Mde, { view: e }) : null;
+function Fde() {
+ let e = (0, F.useSyncExternalStore)(fde, () => GP);
+ return UP ? /* @__PURE__ */ (0, I.jsx)(jde, { view: e }) : null;
}
// src/manage-header.ts
-var IF = {
+var LF = {
...Xf,
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
@@ -35197,47 +35197,47 @@ var IF = {
"/trash": "回收站",
"/quality-goals": "高清版",
"/sources": "来源和凭证"
-}, Lde = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
-function Rde(e) {
- let t = IF[e.path] ? "cleanup" : e.section;
+}, Ide = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
+function Lde(e) {
+ let t = LF[e.path] ? "cleanup" : e.section;
return e.menu.some(([e]) => e === t) ? t : "";
}
-var zde = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
-function LF(e) {
+var Rde = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
+function RF(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = IF[e.path] ?? "";
+ let n = LF[e.path] ?? "";
return {
title: e.section === "cleanup" && n || t[1],
- pressed: Rde(e),
+ pressed: Lde(e),
crumb: n,
- compact: Lde.has(e.path) || e.section === "configuration",
+ compact: Ide.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: zde(e.trash),
+ text: Rde(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var RF = (e) => e.replace(/[&<>"']/g, (e) => ({
+var zF = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
-})[e]), zF = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${RF(e)}"/></svg>`, BF = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
-function Bde(e) {
- let t = LF(e);
+})[e]), BF = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${zF(e)}"/></svg>`, VF = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";
+function zde(e) {
+ let t = RF(e);
if (!t) return "";
let n = e.menu.map(([e, n, r]) => {
let i = e === t.pressed;
- return `<button type="button" data-manage="${RF(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${zF(r)}<span>${RF(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${zF("chevron-right")}</li><li aria-current="true"><span>${RF(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? BF : `<span data-lede-text="">${RF(t.lede.text)}</span>${t.lede.total ? Vde : ""}`}</p>`;
- return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${RF(t.title)}</h2>` + i;
+ return `<button type="button" data-manage="${zF(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${BF(r)}<span>${zF(n)}</span></button>`;
+ }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${BF("chevron-right")}</li><li aria-current="true"><span>${zF(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? VF : `<span data-lede-text="">${zF(t.lede.text)}</span>${t.lede.total ? Bde : ""}`}</p>`;
+ return `<nav data-manage-bar="" aria-label="管理"><div data-manage-menu="" data-pill-nav="" role="group">${n}</div></nav>` + r + `<h2 data-manage-title=""${t.compact ? " data-compact=\"\"" : ""}>${zF(t.title)}</h2>` + i;
}
-var Vde = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
+var Bde = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
// src/react/settings-panel/icon.tsx
-function VF({ name: e }) {
+function HF({ name: e }) {
let { wide: t, viewBox: n } = Cn(e);
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: n,
@@ -35246,7 +35246,7 @@ function VF({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function Hde({ name: e }) {
+function Vde({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -35254,88 +35254,88 @@ function Hde({ name: e }) {
});
}
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
-var Ude = (e, t) => {
+var Hde = (e, t) => {
let n = Array(e.length + t.length);
for (let t = 0; t < e.length; t++) n[t] = e[t];
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
return n;
-}, Wde = (e, t) => ({
+}, Ude = (e, t) => ({
classGroupId: e,
validator: t
-}), HF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), UF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), UF = "-", WF = [], Gde = "arbitrary..", Kde = (e) => {
- let t = Jde(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), WF = "-", GF = [], Wde = "arbitrary..", Gde = (e) => {
+ let t = qde(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return qde(e);
- let n = e.split(UF);
- return GF(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return Kde(e);
+ let n = e.split(WF);
+ return KF(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? Ude(i, t) : t : i || WF;
+ return t ? i ? Hde(i, t) : t : i || GF;
}
- return n[e] || WF;
+ return n[e] || GF;
}
};
-}, GF = (e, t, n) => {
+}, KF = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = GF(e, t + 1, i);
+ let n = KF(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(UF) : e.slice(t).join(UF), s = a.length;
+ let o = t === 0 ? e.join(WF) : e.slice(t).join(WF), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, qde = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, Kde = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
- return r ? Gde + r : void 0;
-})(), Jde = (e) => {
+ return r ? Wde + r : void 0;
+})(), qde = (e) => {
let { theme: t, classGroups: n } = e;
- return Yde(n, t);
-}, Yde = (e, t) => {
- let n = HF();
+ return Jde(n, t);
+}, Jde = (e, t) => {
+ let n = UF();
for (let r in e) {
let i = e[r];
- KF(i, n, r, t);
+ qF(i, n, r, t);
}
return n;
-}, KF = (e, t, n, r) => {
+}, qF = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- Xde(i, t, n, r);
+ Yde(i, t, n, r);
}
-}, Xde = (e, t, n, r) => {
- typeof e == "string" ? Zde(e, t, n) : typeof e == "function" ? Qde(e, t, n, r) : $de(e, t, n, r);
-}, Zde = (e, t, n) => {
- let r = e === "" ? t : qF(t, e);
+}, Yde = (e, t, n, r) => {
+ typeof e == "string" ? Xde(e, t, n) : typeof e == "function" ? Zde(e, t, n, r) : Qde(e, t, n, r);
+}, Xde = (e, t, n) => {
+ let r = e === "" ? t : JF(t, e);
r.classGroupId = n;
+}, Zde = (e, t, n, r) => {
+ $de(e) ? qF(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Ude(n, e)));
}, Qde = (e, t, n, r) => {
- efe(e) ? KF(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(Wde(n, e)));
-}, $de = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- KF(o, qF(t, a), n, r);
+ qF(o, JF(t, a), n, r);
}
-}, qF = (e, t) => {
- let n = e, r = t.split(UF), i = r.length;
+}, JF = (e, t) => {
+ let n = e, r = t.split(WF), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = HF(), n.nextPart.set(t, i)), n = i;
+ i || (i = UF(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, efe = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, tfe = (e) => {
+}, $de = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, efe = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -35353,19 +35353,19 @@ var Ude = (e, t) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, JF = "!", YF = ":", nfe = [], XF = (e, t, n, r, i) => ({
+}, YF = "!", XF = ":", tfe = [], ZF = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), rfe = (e) => {
+}), nfe = (e) => {
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
for (let s = 0; s < o; s++) {
let o = e[s];
if (n === 0 && r === 0) {
- if (o === YF) {
+ if (o === XF) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -35377,13 +35377,13 @@ var Ude = (e, t) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(JF) ? (c = s.slice(0, -1), l = !0) : s.startsWith(JF) && (c = s.slice(1), l = !0);
+ s.endsWith(YF) ? (c = s.slice(0, -1), l = !0) : s.startsWith(YF) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return XF(t, l, c, u);
+ return ZF(t, l, c, u);
};
if (t) {
- let e = t + YF, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : XF(nfe, !1, t, void 0, !0);
+ let e = t + XF, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : ZF(tfe, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -35393,7 +35393,7 @@ var Ude = (e, t) => {
});
}
return r;
-}, ife = (e) => {
+}, rfe = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -35405,18 +35405,18 @@ var Ude = (e, t) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, afe = (e) => ({
- cache: tfe(e.cacheSize),
- parseClassName: rfe(e),
- sortModifiers: ife(e),
- postfixLookupClassGroupIds: ofe(e),
- ...Kde(e)
-}), ofe = (e) => {
+}, ife = (e) => ({
+ cache: efe(e.cacheSize),
+ parseClassName: nfe(e),
+ sortModifiers: rfe(e),
+ postfixLookupClassGroupIds: afe(e),
+ ...Gde(e)
+}), afe = (e) => {
let t = Object.create(null), n = e.postfixLookupClassGroups;
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
return t;
-}, sfe = /\s+/, cfe = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(sfe), l = "";
+}, ofe = /\s+/, sfe = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(ofe), l = "";
for (let e = c.length - 1; e >= 0; --e) {
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
if (u) {
@@ -35436,7 +35436,7 @@ var Ude = (e, t) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + JF : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + YF : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -35447,34 +35447,34 @@ var Ude = (e, t) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, lfe = (...e) => {
+}, cfe = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = ZF(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = QF(n)) && (i && (i += " "), i += r);
return i;
-}, ZF = (e) => {
+}, QF = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = ZF(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = QF(e[r])) && (n && (n += " "), n += t);
return n;
-}, QF = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = afe(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, $F = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = ife(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
let t = r(e);
if (t) return t;
- let a = cfe(e, n);
+ let a = sfe(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(lfe(...e));
-}, ufe = [], $F = (e) => {
- let t = (t) => t[e] || ufe;
+ return a = o, (...e) => a(cfe(...e));
+}, lfe = [], eI = (e) => {
+ let t = (t) => t[e] || lfe;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, eI = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, tI = /^\((?:(\w[\w-]*):)?(.+)\)$/i, dfe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, ffe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, pfe = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, mfe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, hfe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, gfe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, nI = (e) => dfe.test(e), rI = (e) => !!e && !Number.isNaN(Number(e)), iI = (e) => !!e && Number.isInteger(Number(e)), aI = (e) => e.endsWith("%") && rI(e.slice(0, -1)), oI = (e) => ffe.test(e), sI = () => !0, _fe = (e) => pfe.test(e) && !mfe.test(e), cI = () => !1, vfe = (e) => hfe.test(e), yfe = (e) => gfe.test(e), bfe = (e) => !lI(e) && !mI(e), xfe = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Sfe = (e) => yI(e, CI, cI), lI = (e) => eI.test(e), uI = (e) => yI(e, wI, _fe), dI = (e) => yI(e, kfe, rI), Cfe = (e) => yI(e, EI, sI), wfe = (e) => yI(e, TI, cI), fI = (e) => yI(e, xI, cI), Tfe = (e) => yI(e, SI, yfe), pI = (e) => yI(e, DI, vfe), mI = (e) => tI.test(e), hI = (e) => bI(e, wI), Efe = (e) => bI(e, TI), gI = (e) => bI(e, xI), _I = (e) => bI(e, CI), Dfe = (e) => bI(e, SI), vI = (e) => bI(e, DI, !0), Ofe = (e) => bI(e, EI, !0), yI = (e, t, n) => {
- let r = eI.exec(e);
- return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, bI = (e, t, n = !1) => {
+}, tI = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, nI = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ufe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, dfe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ffe = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, pfe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, mfe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, hfe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, rI = (e) => ufe.test(e), iI = (e) => !!e && !Number.isNaN(Number(e)), aI = (e) => !!e && Number.isInteger(Number(e)), oI = (e) => e.endsWith("%") && iI(e.slice(0, -1)), sI = (e) => dfe.test(e), cI = () => !0, gfe = (e) => ffe.test(e) && !pfe.test(e), lI = () => !1, _fe = (e) => mfe.test(e), vfe = (e) => hfe.test(e), yfe = (e) => !uI(e) && !hI(e), bfe = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), xfe = (e) => xI(e, TI, lI), uI = (e) => tI.test(e), dI = (e) => xI(e, EI, gfe), fI = (e) => xI(e, Dfe, iI), Sfe = (e) => xI(e, OI, cI), Cfe = (e) => xI(e, DI, lI), pI = (e) => xI(e, CI, lI), wfe = (e) => xI(e, wI, vfe), mI = (e) => xI(e, kI, _fe), hI = (e) => nI.test(e), gI = (e) => SI(e, EI), Tfe = (e) => SI(e, DI), _I = (e) => SI(e, CI), vI = (e) => SI(e, TI), yI = (e) => SI(e, wI), bI = (e) => SI(e, kI, !0), Efe = (e) => SI(e, OI, !0), xI = (e, t, n) => {
let r = tI.exec(e);
+ return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
+}, SI = (e, t, n = !1) => {
+ let r = nI.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, xI = (e) => e === "position" || e === "percentage", SI = (e) => e === "image" || e === "url", CI = (e) => e === "length" || e === "size" || e === "bg-size", wI = (e) => e === "length", kfe = (e) => e === "number", TI = (e) => e === "family-name", EI = (e) => e === "number" || e === "weight", DI = (e) => e === "shadow", OI = () => {
- let e = $F("color"), t = $F("font"), n = $F("text"), r = $F("font-weight"), i = $F("tracking"), a = $F("leading"), o = $F("breakpoint"), s = $F("container"), c = $F("spacing"), l = $F("radius"), u = $F("shadow"), d = $F("inset-shadow"), f = $F("text-shadow"), p = $F("drop-shadow"), m = $F("blur"), h = $F("perspective"), g = $F("aspect"), _ = $F("ease"), v = $F("animate"), y = () => [
+}, CI = (e) => e === "position" || e === "percentage", wI = (e) => e === "image" || e === "url", TI = (e) => e === "length" || e === "size" || e === "bg-size", EI = (e) => e === "length", Dfe = (e) => e === "number", DI = (e) => e === "family-name", OI = (e) => e === "number" || e === "weight", kI = (e) => e === "shadow", AI = () => {
+ let e = eI("color"), t = eI("font"), n = eI("text"), r = eI("font-weight"), i = eI("tracking"), a = eI("leading"), o = eI("breakpoint"), s = eI("container"), c = eI("spacing"), l = eI("radius"), u = eI("shadow"), d = eI("inset-shadow"), f = eI("text-shadow"), p = eI("drop-shadow"), m = eI("blur"), h = eI("perspective"), g = eI("aspect"), _ = eI("ease"), v = eI("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -35499,8 +35499,8 @@ var Ude = (e, t) => {
"left-bottom"
], x = () => [
...b(),
- mI,
- lI
+ hI,
+ uI
], S = () => [
"auto",
"hidden",
@@ -35512,43 +35512,43 @@ var Ude = (e, t) => {
"contain",
"none"
], w = () => [
- mI,
- lI,
+ hI,
+ uI,
c
], T = () => [
- nI,
+ rI,
"full",
"auto",
...w()
], E = () => [
- iI,
+ aI,
"none",
"subgrid",
- mI,
- lI
+ hI,
+ uI
], D = () => [
"auto",
{ span: [
"full",
- iI,
- mI,
- lI
+ aI,
+ hI,
+ uI
] },
- iI,
- mI,
- lI
+ aI,
+ hI,
+ uI
], O = () => [
- iI,
+ aI,
"auto",
- mI,
- lI
+ hI,
+ uI
], k = () => [
"auto",
"min",
"max",
"fr",
- mI,
- lI
+ hI,
+ uI
], A = () => [
"start",
"end",
@@ -35568,7 +35568,7 @@ var Ude = (e, t) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], ee = () => [
- nI,
+ rI,
"auto",
"full",
"dvw",
@@ -35583,7 +35583,7 @@ var Ude = (e, t) => {
...w()
], N = () => [
s,
- nI,
+ rI,
"screen",
"full",
"dvw",
@@ -35594,7 +35594,7 @@ var Ude = (e, t) => {
"fit",
...w()
], te = () => [
- nI,
+ rI,
"screen",
"full",
"lh",
@@ -35607,13 +35607,13 @@ var Ude = (e, t) => {
...w()
], P = () => [
e,
- mI,
- lI
+ hI,
+ uI
], ne = () => [
...b(),
- gI,
- fI,
- { position: [mI, lI] }
+ _I,
+ pI,
+ { position: [hI, uI] }
], re = () => ["no-repeat", { repeat: [
"",
"x",
@@ -35624,25 +35624,25 @@ var Ude = (e, t) => {
"auto",
"cover",
"contain",
- _I,
- Sfe,
- { size: [mI, lI] }
+ vI,
+ xfe,
+ { size: [hI, uI] }
], I = () => [
- aI,
- hI,
- uI
+ oI,
+ gI,
+ dI
], ie = () => [
"",
"none",
"full",
l,
- mI,
- lI
- ], ae = () => [
- "",
- rI,
hI,
uI
+ ], ae = () => [
+ "",
+ iI,
+ gI,
+ dI
], oe = () => [
"solid",
"dashed",
@@ -35666,32 +35666,32 @@ var Ude = (e, t) => {
"color",
"luminosity"
], ce = () => [
- rI,
- aI,
- gI,
- fI
+ iI,
+ oI,
+ _I,
+ pI
], le = () => [
"",
"none",
m,
- mI,
- lI
+ hI,
+ uI
], ue = () => [
"none",
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
], de = () => [
"none",
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
], fe = () => [
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
], pe = () => [
- nI,
+ rI,
"full",
...w()
];
@@ -35705,17 +35705,17 @@ var Ude = (e, t) => {
"bounce"
],
aspect: ["video"],
- blur: [oI],
- breakpoint: [oI],
- color: [sI],
- container: [oI],
- "drop-shadow": [oI],
+ blur: [sI],
+ breakpoint: [sI],
+ color: [cI],
+ container: [sI],
+ "drop-shadow": [sI],
ease: [
"in",
"out",
"in-out"
],
- font: [bfe],
+ font: [yfe],
"font-weight": [
"thin",
"extralight",
@@ -35727,7 +35727,7 @@ var Ude = (e, t) => {
"extrabold",
"black"
],
- "inset-shadow": [oI],
+ "inset-shadow": [sI],
leading: [
"none",
"tight",
@@ -35744,11 +35744,11 @@ var Ude = (e, t) => {
"distant",
"none"
],
- radius: [oI],
- shadow: [oI],
- spacing: ["px", rI],
- text: [oI],
- "text-shadow": [oI],
+ radius: [sI],
+ shadow: [sI],
+ spacing: ["px", iI],
+ text: [sI],
+ "text-shadow": [sI],
tracking: [
"tighter",
"tight",
@@ -35762,9 +35762,9 @@ var Ude = (e, t) => {
aspect: [{ aspect: [
"auto",
"square",
- nI,
- lI,
- mI,
+ rI,
+ uI,
+ hI,
g
] }],
container: ["container"],
@@ -35772,15 +35772,15 @@ var Ude = (e, t) => {
"",
"normal",
"size",
- mI,
- lI
+ hI,
+ uI
] }],
- "container-named": [xfe],
+ "container-named": [bfe],
columns: [{ columns: [
- rI,
+ iI,
"auto",
- lI,
- mI,
+ uI,
+ hI,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -35877,13 +35877,13 @@ var Ude = (e, t) => {
"collapse"
],
z: [{ z: [
- iI,
+ aI,
"auto",
- mI,
- lI
+ hI,
+ uI
] }],
basis: [{ basis: [
- nI,
+ rI,
"full",
"auto",
s,
@@ -35901,32 +35901,32 @@ var Ude = (e, t) => {
"wrap-reverse"
] }],
flex: [{ flex: [
+ iI,
rI,
- nI,
"auto",
"initial",
"none",
- lI
+ uI
] }],
grow: [{ grow: [
"",
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
] }],
shrink: [{ shrink: [
"",
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
] }],
order: [{ order: [
- iI,
+ aI,
"first",
"last",
"none",
- mI,
- lI
+ hI,
+ uI
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -36033,15 +36033,15 @@ var Ude = (e, t) => {
"font-size": [{ text: [
"base",
n,
- hI,
- uI
+ gI,
+ dI
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- Ofe,
- Cfe
+ Efe,
+ Sfe
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -36053,15 +36053,15 @@ var Ude = (e, t) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- aI,
- lI
+ oI,
+ uI
] }],
"font-family": [{ font: [
- Efe,
- wfe,
+ Tfe,
+ Cfe,
t
] }],
- "font-features": [{ "font-features": [lI] }],
+ "font-features": [{ "font-features": [uI] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -36070,14 +36070,14 @@ var Ude = (e, t) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- mI,
- lI
+ hI,
+ uI
] }],
"line-clamp": [{ "line-clamp": [
- rI,
+ iI,
"none",
- mI,
- dI
+ hI,
+ fI
] }],
leading: [{ leading: [
"none",
@@ -36086,16 +36086,16 @@ var Ude = (e, t) => {
] }],
"list-image": [{ "list-image": [
"none",
- mI,
- lI
+ hI,
+ uI
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- mI,
- lI
+ hI,
+ uI
] }],
"text-alignment": [{ text: [
"left",
@@ -36115,18 +36115,18 @@ var Ude = (e, t) => {
],
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- rI,
+ iI,
"from-font",
"auto",
- mI,
- uI
+ hI,
+ dI
] }],
"text-decoration-color": [{ decoration: P() }],
"underline-offset": [{ "underline-offset": [
- rI,
+ iI,
"auto",
- mI,
- lI
+ hI,
+ uI
] }],
"text-transform": [
"uppercase",
@@ -36147,9 +36147,9 @@ var Ude = (e, t) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- iI,
- mI,
- lI
+ aI,
+ hI,
+ uI
] }],
"vertical-align": [{ align: [
"baseline",
@@ -36160,8 +36160,8 @@ var Ude = (e, t) => {
"text-bottom",
"sub",
"super",
- mI,
- lI
+ hI,
+ uI
] }],
whitespace: [{ whitespace: [
"normal",
@@ -36189,8 +36189,8 @@ var Ude = (e, t) => {
] }],
content: [{ content: [
"none",
- mI,
- lI
+ hI,
+ uI
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -36225,24 +36225,24 @@ var Ude = (e, t) => {
"l",
"tl"
] },
- iI,
- mI,
- lI
+ aI,
+ hI,
+ uI
],
radial: [
"",
- mI,
- lI
+ hI,
+ uI
],
conic: [
"",
- iI,
- mI,
- lI
+ aI,
+ hI,
+ uI
]
},
- Dfe,
- Tfe
+ yI,
+ wfe
] }],
"bg-color": [{ bg: P() }],
"gradient-from-pos": [{ from: I() }],
@@ -36309,15 +36309,15 @@ var Ude = (e, t) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
] }],
"outline-w": [{ outline: [
"",
- rI,
- hI,
- uI
+ iI,
+ gI,
+ dI
] }],
"outline-color": [{ outline: P() }],
shadow: [{ shadow: [
@@ -36325,35 +36325,35 @@ var Ude = (e, t) => {
"inner",
"none",
u,
- vI,
- pI
+ bI,
+ mI
] }],
"shadow-color": [{ shadow: P() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- vI,
- pI
+ bI,
+ mI
] }],
"inset-shadow-color": [{ "inset-shadow": P() }],
"ring-w": [{ ring: ae() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: P() }],
- "ring-offset-w": [{ "ring-offset": [rI, uI] }],
+ "ring-offset-w": [{ "ring-offset": [iI, dI] }],
"ring-offset-color": [{ "ring-offset": P() }],
"inset-ring-w": [{ "inset-ring": ae() }],
"inset-ring-color": [{ "inset-ring": P() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- vI,
- pI
+ bI,
+ mI
] }],
"text-shadow-color": [{ "text-shadow": P() }],
opacity: [{ opacity: [
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
] }],
"mix-blend": [{ "mix-blend": [
...se(),
@@ -36375,7 +36375,7 @@ var Ude = (e, t) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [rI] }],
+ "mask-image-linear-pos": [{ "mask-linear": [iI] }],
"mask-image-linear-from-pos": [{ "mask-linear-from": ce() }],
"mask-image-linear-to-pos": [{ "mask-linear-to": ce() }],
"mask-image-linear-from-color": [{ "mask-linear-from": P() }],
@@ -36404,7 +36404,7 @@ var Ude = (e, t) => {
"mask-image-y-to-pos": [{ "mask-y-to": ce() }],
"mask-image-y-from-color": [{ "mask-y-from": P() }],
"mask-image-y-to-color": [{ "mask-y-to": P() }],
- "mask-image-radial": [{ "mask-radial": [mI, lI] }],
+ "mask-image-radial": [{ "mask-radial": [hI, uI] }],
"mask-image-radial-from-pos": [{ "mask-radial-from": ce() }],
"mask-image-radial-to-pos": [{ "mask-radial-to": ce() }],
"mask-image-radial-from-color": [{ "mask-radial-from": P() }],
@@ -36415,7 +36415,7 @@ var Ude = (e, t) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [rI] }],
+ "mask-image-conic-pos": [{ "mask-conic": [iI] }],
"mask-image-conic-from-pos": [{ "mask-conic-from": ce() }],
"mask-image-conic-to-pos": [{ "mask-conic-to": ce() }],
"mask-image-conic-from-color": [{ "mask-conic-from": P() }],
@@ -36439,111 +36439,111 @@ var Ude = (e, t) => {
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- mI,
- lI
+ hI,
+ uI
] }],
filter: [{ filter: [
"",
"none",
- mI,
- lI
+ hI,
+ uI
] }],
blur: [{ blur: le() }],
brightness: [{ brightness: [
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
] }],
contrast: [{ contrast: [
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- vI,
- pI
+ bI,
+ mI
] }],
"drop-shadow-color": [{ "drop-shadow": P() }],
grayscale: [{ grayscale: [
"",
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
] }],
"hue-rotate": [{ "hue-rotate": [
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
] }],
invert: [{ invert: [
"",
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
] }],
saturate: [{ saturate: [
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
] }],
sepia: [{ sepia: [
"",
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- mI,
- lI
+ hI,
+ uI
] }],
"backdrop-blur": [{ "backdrop-blur": le() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -36559,39 +36559,39 @@ var Ude = (e, t) => {
"shadow",
"transform",
"none",
- mI,
- lI
+ hI,
+ uI
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- rI,
+ iI,
"initial",
- mI,
- lI
+ hI,
+ uI
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- mI,
- lI
+ hI,
+ uI
] }],
delay: [{ delay: [
- rI,
- mI,
- lI
+ iI,
+ hI,
+ uI
] }],
animate: [{ animate: [
"none",
v,
- mI,
- lI
+ hI,
+ uI
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- mI,
- lI
+ hI,
+ uI
] }],
"perspective-origin": [{ "perspective-origin": x() }],
rotate: [{ rotate: ue() }],
@@ -36607,8 +36607,8 @@ var Ude = (e, t) => {
"skew-x": [{ "skew-x": fe() }],
"skew-y": [{ "skew-y": fe() }],
transform: [{ transform: [
- mI,
- lI,
+ hI,
+ uI,
"",
"none",
"gpu",
@@ -36622,9 +36622,9 @@ var Ude = (e, t) => {
"translate-z": [{ "translate-z": pe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- iI,
- mI,
- lI
+ aI,
+ hI,
+ uI
] }],
accent: [{ accent: P() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -36674,8 +36674,8 @@ var Ude = (e, t) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- mI,
- lI
+ hI,
+ uI
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -36761,15 +36761,15 @@ var Ude = (e, t) => {
"scroll",
"contents",
"transform",
- mI,
- lI
+ hI,
+ uI
] }],
fill: [{ fill: ["none", ...P()] }],
"stroke-w": [{ stroke: [
- rI,
- hI,
- uI,
- dI
+ iI,
+ gI,
+ dI,
+ fI
] }],
stroke: [{ stroke: ["none", ...P()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -37027,16 +37027,16 @@ var Ude = (e, t) => {
"selection"
]
};
-}, Afe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (kI(e, "cacheSize", t), kI(e, "prefix", n), kI(e, "experimentalParseClassName", r), AI(e.theme, a.theme), AI(e.classGroups, a.classGroups), AI(e.conflictingClassGroups, a.conflictingClassGroups), AI(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), kI(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), kI(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), jI(e.theme, i.theme), jI(e.classGroups, i.classGroups), jI(e.conflictingClassGroups, i.conflictingClassGroups), jI(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), MI(e, i, "postfixLookupClassGroups"), MI(e, i, "orderSensitiveModifiers"), e), kI = (e, t, n) => {
+}, Ofe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (jI(e, "cacheSize", t), jI(e, "prefix", n), jI(e, "experimentalParseClassName", r), MI(e.theme, a.theme), MI(e.classGroups, a.classGroups), MI(e.conflictingClassGroups, a.conflictingClassGroups), MI(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), jI(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), jI(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), NI(e.theme, i.theme), NI(e.classGroups, i.classGroups), NI(e.conflictingClassGroups, i.conflictingClassGroups), NI(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), PI(e, i, "postfixLookupClassGroups"), PI(e, i, "orderSensitiveModifiers"), e), jI = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, AI = (e, t) => {
- if (t) for (let n in t) kI(e, n, t[n]);
-}, jI = (e, t) => {
- if (t) for (let n in t) MI(e, t, n);
-}, MI = (e, t, n) => {
+}, MI = (e, t) => {
+ if (t) for (let n in t) jI(e, n, t[n]);
+}, NI = (e, t) => {
+ if (t) for (let n in t) PI(e, t, n);
+}, PI = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, jfe = (e, ...t) => typeof e == "function" ? QF(OI, e, ...t) : QF(() => Afe(OI(), e), ...t), Mfe = [
+}, kfe = (e, ...t) => typeof e == "function" ? $F(AI, e, ...t) : $F(() => Ofe(AI(), e), ...t), Afe = [
"large-title",
"display-1",
"display-2",
@@ -37050,17 +37050,17 @@ var Ude = (e, t) => {
"body-2",
"caption-1",
"caption-2"
-], Nfe = [
+], jfe = [
"regular",
"medium",
"semibold",
"bold"
-], q = jfe({ extend: { classGroups: { "font-size": [{ text: Mfe.flatMap((e) => Nfe.map((t) => `${e}-${t}`)) }] } } });
-function NI(e) {
+], q = kfe({ extend: { classGroups: { "font-size": [{ text: Afe.flatMap((e) => jfe.map((t) => `${e}-${t}`)) }] } } });
+function FI(e) {
return e;
}
// src/react/components/pill-tab.tsx
-var Pfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, PI = NI({
+var Mfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, II = FI({
radius: {
blue: "rounded-full",
gray: "rounded-2lg"
@@ -37082,9 +37082,9 @@ var Pfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, PI = NI({
gray: "text-text-primary"
}
});
-function FI({ children: e, className: t, ref: n, container: r, ...i }) {
+function LI({ children: e, className: t, ref: n, container: r, ...i }) {
let a = (0, F.useRef)(null), [o, s] = (0, F.useState)(null);
- Pfe(() => {
+ Mfe(() => {
let e = r === void 0 ? a.current : r;
if (!e) return;
let t = () => {
@@ -37120,7 +37120,7 @@ function FI({ children: e, className: t, ref: n, container: r, ...i }) {
}, l = o && /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-pill-thumb": "",
- className: q("pointer-events-none absolute left-0 top-0", PI.radius[o.variant], PI.thumb[o.variant]),
+ className: q("pointer-events-none absolute left-0 top-0", II.radius[o.variant], II.thumb[o.variant]),
style: {
"--pill-left": `${o.left}px`,
"--pill-top": `${o.top}px`,
@@ -37137,37 +37137,37 @@ function FI({ children: e, className: t, ref: n, container: r, ...i }) {
}) : r ? (0, Rt.createPortal)(l, r) : null;
}
// src/react/manage-header/manage-header-island.tsx
-var II = null, LI = null, RI = /* @__PURE__ */ new Set();
-function Ffe(e) {
- return RI.add(e), () => {
- RI.delete(e);
+var RI = null, zI = null, BI = /* @__PURE__ */ new Set();
+function Nfe(e) {
+ return BI.add(e), () => {
+ BI.delete(e);
};
}
-function Ife() {
- for (let e of [...RI]) e();
+function Pfe() {
+ for (let e of [...BI]) e();
}
-var Lfe = { render(e) {
- LI = e, (0, Rt.flushSync)(Ife);
+var Ffe = { render(e) {
+ zI = e, (0, Rt.flushSync)(Pfe);
} };
-function Rfe(e) {
- return II = e, LI = null, Lfe;
+function Ife(e) {
+ return RI = e, zI = null, Ffe;
}
-function zfe() {
- let e = (0, F.useSyncExternalStore)(Ffe, () => LI);
- return II && e ? /* @__PURE__ */ (0, I.jsx)(Bfe, {
- host: II,
+function Lfe() {
+ let e = (0, F.useSyncExternalStore)(Nfe, () => zI);
+ return RI && e ? /* @__PURE__ */ (0, I.jsx)(Rfe, {
+ host: RI,
props: e
}) : null;
}
-function Bfe({ host: e, props: t }) {
- let n = LF(t);
+function Rfe({ host: e, props: t }) {
+ let n = RF(t);
return n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(Vfe, {
+ /* @__PURE__ */ (0, I.jsx)(zfe, {
host: e,
pressed: n.pressed,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, I.jsx)(Hfe, {
+ n.crumb ? /* @__PURE__ */ (0, I.jsx)(Bfe, {
host: e,
label: n.crumb
}) : null,
@@ -37176,13 +37176,13 @@ function Bfe({ host: e, props: t }) {
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)(Ufe, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)(Vfe, {
host: e,
lede: n.lede
})
] }) : null;
}
-function Vfe({ host: e, pressed: t, menu: n }) {
+function zfe({ host: e, pressed: t, menu: n }) {
let r = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
let e = r.current, t = e?.querySelector("button[aria-pressed=\"true\"]");
@@ -37192,7 +37192,7 @@ function Vfe({ host: e, pressed: t, menu: n }) {
}, [t, n]), /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-bar": "",
"aria-label": "管理",
- children: /* @__PURE__ */ (0, I.jsx)(FI, {
+ children: /* @__PURE__ */ (0, I.jsx)(LI, {
ref: r,
"data-manage-menu": "",
"data-pill-nav": "",
@@ -37206,13 +37206,13 @@ function Vfe({ host: e, pressed: t, menu: n }) {
"data-pill-selected": a ? "" : void 0,
"data-pill-variant": "gray",
onClick: () => e.openManage(n),
- children: [/* @__PURE__ */ (0, I.jsx)(VF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, I.jsx)(HF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
}, n);
})
})
});
}
-function Hfe({ host: e, label: t }) {
+function Bfe({ host: e, label: t }) {
return /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "当前位置",
@@ -37222,20 +37222,20 @@ function Hfe({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, I.jsx)(VF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
+ }), /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, I.jsx)("span", { children: t })
})] })
});
}
-function Ufe({ host: e, lede: t }) {
+function Vfe({ host: e, lede: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: "mono",
"data-manage-lede": "",
children: t.kind === "skeleton" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-trash-lede-skeletons": "",
- dangerouslySetInnerHTML: { __html: BF }
- }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Wfe, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: VF }
+ }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Hfe, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -37245,7 +37245,7 @@ function Ufe({ host: e, lede: t }) {
}) : null] })
});
}
-function Wfe({ text: e }) {
+function Hfe({ text: e }) {
let t = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
Js(t.current, e);
@@ -37255,29 +37255,29 @@ function Wfe({ text: e }) {
});
}
// src/core/text-lang.ts
-var Gfe = /[぀-ヿㇰ-ㇿヲ-゚]/, Kfe = /[㐀-鿿豈-﫿]/, qfe = /[A-Za-z]/;
-function zI(e) {
+var Ufe = /[぀-ヿㇰ-ㇿヲ-゚]/, Wfe = /[㐀-鿿豈-﫿]/, Gfe = /[A-Za-z]/;
+function VI(e) {
let t = String(e ?? "");
- if (Gfe.test(t)) return "ja";
- if (!Kfe.test(t) && qfe.test(t)) return "en";
+ if (Ufe.test(t)) return "ja";
+ if (!Wfe.test(t) && Gfe.test(t)) return "en";
}
-var Jfe = (e) => {
- let t = zI(e);
+var Kfe = (e) => {
+ let t = VI(e);
return t ? ` lang="${t}"` : "";
-}, Yfe = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, Xfe = (e, t = e?.name) => {
+}, qfe = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, Jfe = (e, t = e?.name) => {
let n = String(t || "").trim();
- return e?.is_jav ? n.replace(Yfe, "") : n;
-}, Zfe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), Qfe = (e) => {
+ return e?.is_jav ? n.replace(qfe, "") : n;
+}, Yfe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), Xfe = (e) => {
let t = [e?.catalog_title, e?.original_title].map((e) => String(e || "").trim()).filter(Boolean);
- return t.find(Zfe) || t[0] || "";
+ return t.find(Yfe) || t[0] || "";
};
-function BI(e, t = e?.name) {
- let n = Xfe(e, t), r = String(e?.code || "").trim().toUpperCase();
+function HI(e, t = e?.name) {
+ let n = Jfe(e, t), r = String(e?.code || "").trim().toUpperCase();
if (!e?.is_jav || !r) return {
code: "",
title: n
};
- let i = String(e?.display_code || r).trim().toUpperCase(), a = n.toUpperCase(), o = a === r || a === i || a.startsWith(r) && /^[\s._\-[\]]/.test(n.slice(r.length)) || a.startsWith(i) && /^[\s._\-[\]]/.test(n.slice(i.length)), s = a.startsWith(i) ? i.length : r.length, c = (o ? n.slice(s) : n).replace(/^[\s._-]+/, "").trim(), l = Qfe(e), u = Object.prototype.hasOwnProperty.call(e || {}, "display_title") ? String(e.display_title || "").trim() : c, d = l || u, f = Array.isArray(e?.edition_badges) ? e.edition_badges.filter((e) => [
+ let i = String(e?.display_code || r).trim().toUpperCase(), a = n.toUpperCase(), o = a === r || a === i || a.startsWith(r) && /^[\s._\-[\]]/.test(n.slice(r.length)) || a.startsWith(i) && /^[\s._\-[\]]/.test(n.slice(i.length)), s = a.startsWith(i) ? i.length : r.length, c = (o ? n.slice(s) : n).replace(/^[\s._-]+/, "").trim(), l = Xfe(e), u = Object.prototype.hasOwnProperty.call(e || {}, "display_title") ? String(e.display_title || "").trim() : c, d = l || u, f = Array.isArray(e?.edition_badges) ? e.edition_badges.filter((e) => [
"中字",
"无码",
"无码破解"
@@ -37288,23 +37288,23 @@ function BI(e, t = e?.name) {
badges: f
};
}
-var VI = (e, t = e?.name) => {
- let { code: n, title: r, badges: i = [] } = BI(e, t);
+var UI = (e, t = e?.name) => {
+ let { code: n, title: r, badges: i = [] } = HI(e, t);
return n ? [
n,
...i,
r
].filter(Boolean).join(" ") : r;
};
-function HI(e, t = e?.name) {
- let { code: n, title: r, badges: i = [] } = BI(e, t);
+function WI(e, t = e?.name) {
+ let { code: n, title: r, badges: i = [] } = HI(e, t);
if (!n) return z(r);
let a = i.map((e) => `<small class="javedition ${e === "中字" ? "subtitle" : e === "无码" ? "uncensored" : e === "无码破解" ? "cracked" : "quality"}">${z(e)}</small>`).join("");
- return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${Jfe(r)}>${z(r)}</span>` : ""}`;
+ return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${Kfe(r)}>${z(r)}</span>` : ""}`;
}
// src/react/activity/tasks.ts
-var UI = "/api/tasks", WI = ["tasks"];
-function $fe(e, t) {
+var GI = "/api/tasks", KI = ["tasks"];
+function Zfe(e, t) {
let n = 0, r = 0, i = 0, a = 0;
for (let o of t) for (let [t, s] of Object.entries(e?.[String(o.id)] || {})) n += s, (t === "pending" || t === "running") && (r += s), (t === "failed" || t === "interrupted") && (i += s), t === "cancelled" && (a += s);
return {
@@ -37315,7 +37315,7 @@ function $fe(e, t) {
settled: n - r
};
}
-function epe(e) {
+function Qfe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
let e = t.get(n.task_key);
@@ -37326,11 +37326,11 @@ function epe(e) {
}
return [...t.values()];
}
-var tpe = (e, t) => B(`${UI}?${new URLSearchParams({
+var $fe = (e, t) => B(`${GI}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function npe(...e) {
+function epe(...e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of n) t.has(e.id) || t.set(e.id, e);
return [...t.values()].sort((e, t) => {
@@ -37338,26 +37338,26 @@ function npe(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var rpe = 2e3, ipe = 1e4, GI = (e) => e?.running?.length ? rpe : ipe, KI = (e) => B(UI, e), ape = (e, t, n) => V(`${UI}/${e}/control`, { action: t }, "POST", n);
-async function ope(e) {
+var tpe = 2e3, npe = 1e4, qI = (e) => e?.running?.length ? tpe : npe, JI = (e) => B(GI, e), rpe = (e, t, n) => V(`${GI}/${e}/control`, { action: t }, "POST", n);
+async function ipe(e) {
await H.fetchQuery({
- queryKey: WI,
- queryFn: () => KI(e)
+ queryKey: KI,
+ queryFn: () => JI(e)
});
}
-var spe = {
+var ape = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, cpe = {
+}, ope = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "意外中断"
-}, lpe = (e) => cpe[e] || e, qI = {
+}, spe = (e) => ope[e] || e, YI = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -37434,7 +37434,7 @@ var spe = {
without_code: "未识别番号",
incomplete: "资料或封面未取得",
result: "结果"
-}, upe = [
+}, cpe = [
"gone_count",
"unclear_count",
"source_failed",
@@ -37456,14 +37456,14 @@ var spe = {
"paused_count",
"miss",
"incomplete"
-], dpe = ["face_match_unavailable"], JI = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || dpe.some((t) => e.result_summary?.[t] === !0) || upe.some((t) => Number(e.result_summary?.[t]) > 0);
-function fpe(e) {
+], lpe = ["face_match_unavailable"], XI = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || lpe.some((t) => e.result_summary?.[t] === !0) || cpe.some((t) => Number(e.result_summary?.[t]) > 0);
+function upe(e) {
let t = e.result_summary?.issues;
return Array.isArray(t) ? t.filter((e) => !!e && typeof e == "object" && typeof e.error == "string" && typeof e.label == "string") : [];
}
-var YI = /* @__PURE__ */ new Set(["library-processing"]);
-function ppe(e, t = !0) {
- if (!JI(e) && e.status !== "failed" || YI.has(e.task_key) && !t) return null;
+var ZI = /* @__PURE__ */ new Set(["library-processing"]);
+function dpe(e, t = !0) {
+ if (!XI(e) && e.status !== "failed" || ZI.has(e.task_key) && !t) return null;
let n = {
"link-check": ["/data-cleanup#link-manager", "查看有问题的链接"],
"link-prune": ["/data-cleanup#link-manager", "查看有问题的链接"],
@@ -37481,19 +37481,19 @@ function ppe(e, t = !0) {
label: n[1]
} : null;
}
-function mpe(e) {
+function fpe(e) {
let t = e.result_summary?.asset_id, n = e.result_summary?.name;
return typeof t == "number" && Number.isInteger(t) && t > 0 && typeof n == "string" && n ? {
href: `/assets/${t}`,
label: n
} : null;
}
-function hpe(e) {
+function ppe(e) {
let t = /* @__PURE__ */ new Map();
- for (let n of e) YI.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
+ for (let n of e) ZI.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
return new Set(t.values());
}
-function gpe(e) {
+function mpe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -37502,7 +37502,7 @@ function gpe(e) {
}
return t;
}
-function _pe(e, t) {
+function hpe(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -37524,12 +37524,12 @@ function _pe(e, t) {
}
return n;
}
-var vpe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !JI(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), XI = (e) => e.status === "pending" || e.status === "running";
-function ype(e) {
+var gpe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !XI(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), QI = (e) => e.status === "pending" || e.status === "running";
+function _pe(e) {
let t = `${e.task_label}:`, n = e.progress_label || "", r = String(e.result_summary?.name || "") || (n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n), i = e.progress_total || 0, { name: a, ...o } = e.result_summary || {};
- return [r, $I(e.error) || Epe(o) || (XI(e) && i > 0 ? `${QI(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
+ return [r, tL(e.error) || wpe(o) || (QI(e) && i > 0 ? `${eL(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
}
-function ZI(e) {
+function $I(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
@@ -37538,19 +37538,19 @@ function ZI(e) {
let r = Math.floor(n / 60);
return r < 48 ? `${r} 小时 ${n % 60} 分` : `${Math.floor(r / 24).toLocaleString()} 天 ${r % 24} 小时`;
}
-function QI(e, t) {
+function eL(e, t) {
let n = Math.max(0, Number(t) || 0);
return `${Math.min(n, Math.max(0, Number(e) || 0)).toLocaleString()} / ${n.toLocaleString()}`;
}
-function bpe(e) {
+function vpe(e) {
let t = String(e || "").split(/\r?\n/).map((e) => e.trim()).filter(Boolean);
return t.length ? /^Traceback \(most recent call last\)/.test(t[0]) ? t[t.length - 1] : t[0] : "";
}
-function $I(e) {
- let t = bpe(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
+function tL(e) {
+ let t = vpe(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
return n ? xn(n[1]) : t;
}
-var xpe = {
+var ype = {
partial: "处理已结束,部分项目需处理",
complete: "处理完成",
interrupted: "处理已中断",
@@ -37568,11 +37568,11 @@ var xpe = {
三站都没对上她: "三个来源均未找到与该人物相符的资料页",
已有身份: "已有创作者分类",
已变: "资料已被其他操作修改,本次未保存"
-}, eL = {
+}, nL = {
avwikidb: "AVWikiDB",
javdb: "JavDB",
"minnano-av": "みんなのAV"
-}, Spe = {
+}, bpe = {
like: "标记喜欢",
seen: "标记看过",
later: "加入稍后看",
@@ -37583,8 +37583,8 @@ var xpe = {
"dismiss-junk": "确认不是垃圾",
"reconsider-junk": "重新判定垃圾",
region: "判定产地"
-}, Cpe = (e) => xpe[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${eL[t.toLowerCase()]} 资料页` : `已保存来自 ${eL[t.toLowerCase()]} 的资料`);
-function tL(e) {
+}, xpe = (e) => ype[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${nL[t.toLowerCase()]} 资料页` : `已保存来自 ${nL[t.toLowerCase()]} 的资料`);
+function rL(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -37594,7 +37594,7 @@ function tL(e) {
minute: "2-digit"
});
}
-var wpe = /* @__PURE__ */ new Set([
+var Spe = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -37603,20 +37603,20 @@ var wpe = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function nL(e) {
- let t = Tpe(e);
+function iL(e) {
+ let t = Cpe(e);
return e?.face_match_unavailable === !0 && !t.some((e) => /不可用|未生效/.test(e)) && t.push("人脸模型不可用,未做人脸核对"), t;
}
-function Tpe(e) {
- return Object.entries(e || {}).filter(([e, t]) => !wpe.has(e) && (e in qI || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? $I(String(t)) : e === "outcome" || e === "result" ? Cpe(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${qI[e]} ${Xn(Number(t))}` : e === "operation" ? `操作:${Spe[String(t)] || "批量操作"}` : `${qI[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
+function Cpe(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !Spe.has(e) && (e in YI || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? tL(String(t)) : e === "outcome" || e === "result" ? xpe(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${YI[e]} ${Xn(Number(t))}` : e === "operation" ? `操作:${bpe[String(t)] || "批量操作"}` : `${YI[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
}
-var Epe = (e) => nL(e).join(" · ");
+var wpe = (e) => iL(e).join(" · ");
// src/react/use-entity-names.ts
-function rL() {
+function aL() {
return (0, F.useSyncExternalStore)(Yt, Jt, Jt);
}
// src/react/components/async-text.tsx
-function iL({ text: e, busy: t, placeholder: n }) {
+function oL({ text: e, busy: t, placeholder: n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(e), a = e ?? i.current;
return (0, F.useLayoutEffect)(() => {
e === void 0 ? a === void 0 && pc(r.current) : i.current = e;
@@ -37637,7 +37637,7 @@ function iL({ text: e, busy: t, placeholder: n }) {
});
}
// src/react/boardui/components/base/buttons/icon-button.tsx
-var aL = NI({
+var sL = FI({
base: "relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg bg-background-primary-default text-foreground-icon-primary border border-border-button-default shadow-xs select-none cursor-pointer transition-[background-color,border-color,box-shadow,color] duration-150 ease outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring hover:bg-background-primary-hover hover:border-border-button-hover active:bg-background-primary-active active:border-border-button-active disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:border-border-button-default disabled:text-icon-button-disabled-foreground disabled:opacity-60 disabled:shadow-none",
size: {
medium: "size-9",
@@ -37648,20 +37648,20 @@ var aL = NI({
small: "size-4 shrink-0"
}
});
-function oL({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function cL({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
ref: i,
type: r,
- className: q(aL.base, aL.size[t], n),
+ className: q(sL.base, sL.size[t], n),
...a,
children: /* @__PURE__ */ (0, I.jsx)(e, {
- className: aL.icon[t],
+ className: sL.icon[t],
"aria-hidden": !0
})
});
}
// src/react/components/glass-drift.tsx
-function sL() {
+function lL() {
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-glass-drift": "",
"aria-hidden": "true",
@@ -37675,7 +37675,7 @@ function sL() {
});
}
// src/react/components/use-stuck.ts
-function cL(e) {
+function uL(e) {
(0, F.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -37692,7 +37692,7 @@ function cL(e) {
}, [e]);
}
// src/react/components/use-horizontal-scroller.ts
-function lL(e, t = !0) {
+function dL(e, t = !0) {
let [n, r] = (0, F.useState)(null), i = (0, F.useCallback)((t) => {
r(t), typeof e == "function" ? e(t) : e && (e.current = t);
}, [e]);
@@ -37706,17 +37706,17 @@ function lL(e, t = !0) {
}, [n, t]), i;
}
// src/react/components/filter-glass.tsx
-var Dpe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var Tpe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: e,
dangerouslySetInnerHTML: { __html: Bs("正在处理") }
});
-function uL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(oL, {
+function fL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(cL, {
...a,
"data-filter-action": "",
size: "small",
- icon: n && r === "spinner" ? Dpe : t,
+ icon: n && r === "spinner" ? Tpe : t,
"aria-label": e,
title: a.title || e,
"aria-busy": n || void 0,
@@ -37726,9 +37726,9 @@ function uL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress
}
});
}
-function Ope({ title: e, children: t }) {
+function Epe({ title: e, children: t }) {
let n = (0, F.useRef)(null);
- return cL(n), /* @__PURE__ */ (0, I.jsxs)("div", {
+ return uL(n), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -37741,13 +37741,13 @@ function Ope({ title: e, children: t }) {
children: e
}),
t,
- /* @__PURE__ */ (0, I.jsx)(sL, {})
+ /* @__PURE__ */ (0, I.jsx)(lL, {})
]
});
}
-function dL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
- let d = (0, F.useRef)(null), f = lL(), p = lL(u);
- return cL(d), /* @__PURE__ */ (0, I.jsxs)("div", {
+function pL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+ let d = (0, F.useRef)(null), f = dL(), p = dL(u);
+ return uL(d), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
@@ -37772,27 +37772,27 @@ function dL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
className: q("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
}),
- /* @__PURE__ */ (0, I.jsx)(sL, {})
+ /* @__PURE__ */ (0, I.jsx)(lL, {})
]
});
}
-var kpe = "flex h-8 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
-function fL({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var Dpe = "flex h-8 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
+function mL({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: q(kpe, r),
+ className: q(Dpe, r),
onClick: n,
children: e
});
}
-var Ape = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-function pL({ children: e, onPress: t, busy: n = !1 }) {
+var Ope = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
+function hL({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: Ape,
+ className: Ope,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -37802,13 +37802,13 @@ function pL({ children: e, onPress: t, busy: n = !1 }) {
});
}
// src/react/components/use-view-glide.ts
-var mL = (e, t) => [
+var gL = (e, t) => [
"x",
"y",
"w",
"h"
].every((n) => e[n] === t[n]);
-function hL(e, t, n) {
+function _L(e, t, n) {
if (!t.contains(e)) return null;
let r = 0, i = 0;
for (let n = e; n && n !== t; n = n.offsetParent) r += n.offsetLeft, i += n.offsetTop;
@@ -37832,17 +37832,17 @@ function hL(e, t, n) {
h: e.offsetHeight
};
}
-function gL(e, t, n, r, { axis: i = "x" } = {}) {
+function vL(e, t, n, r, { axis: i = "x" } = {}) {
let a = (0, F.useRef)(null), o = (0, F.useCallback)((r, o) => {
let s = e.current, c = t.current, l = s?.parentElement;
if (!s) return;
- let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? hL(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? _L(u, l, i) : null;
if (!d || !d.w || !d.h) {
Kc(s), s.hidden = !0, a.current = null;
return;
}
let f = s.hidden ? null : a.current;
- s.hidden = !1, a.current = d, !(o && f && mL(f, d)) && Wc(s, o ? f : null, d, i);
+ s.hidden = !1, a.current = d, !(o && f && gL(f, d)) && Wc(s, o ? f : null, d, i);
}, [
e,
t,
@@ -37863,8 +37863,8 @@ function gL(e, t, n, r, { axis: i = "x" } = {}) {
passive: !0
}), addEventListener("resize", c, { passive: !0 });
let l = new ResizeObserver(() => {
- let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? hL(o, r, i) : null, l = a.current;
- s && l && mL(s, l) || c();
+ let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? _L(o, r, i) : null, l = a.current;
+ s && l && gL(s, l) || c();
}), u = t.current;
if (u && r) {
l.observe(u);
@@ -37895,7 +37895,7 @@ function gL(e, t, n, r, { axis: i = "x" } = {}) {
};
}
// src/react/boardui/components/base/buttons/button.tsx
-var _L = NI({
+var yL = FI({
base: "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans select-none cursor-pointer button-press-motion outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring disabled:cursor-not-allowed aria-disabled:cursor-not-allowed",
size: {
medium: "h-9 rounded-2lg p-2 text-body-medium",
@@ -37928,52 +37928,52 @@ function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, I.jsxs)("button", {
ref: c,
type: s,
- className: q(_L.base, _L.size[t], _L.variant[e], n && _L.iconOnlySize[t], o),
+ className: q(yL.base, yL.size[t], yL.variant[e], n && yL.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: _L.icon[t],
+ className: yL.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: _L.label[t],
+ className: yL.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: _L.icon[t],
+ className: yL.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function vL({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function bL({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, I.jsxs)("a", {
ref: s,
- className: q(_L.base, _L.size[t], _L.variant[e], n && _L.iconOnlySize[t], o),
+ className: q(yL.base, yL.size[t], yL.variant[e], n && yL.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: _L.icon[t],
+ className: yL.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: _L.label[t],
+ className: yL.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: _L.icon[t],
+ className: yL.icon[t],
"aria-hidden": !0
}) : null
]
});
}
// node_modules/react-aria-components/dist/private/utils.mjs
-var yL = Symbol("default");
-function bL({ values: e, children: t }) {
+var xL = Symbol("default");
+function SL({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ F.createElement(n.Provider, { value: r }, t);
return t;
}
-function xL(e) {
+function CL(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, F.useMemo)(() => {
let e, l, u;
@@ -38007,11 +38007,11 @@ function xL(e) {
c
]);
}
-function SL(e, t) {
+function wL(e, t) {
let n = (0, F.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || yL;
+ let e = t || xL;
if (!n.slots[e]) {
let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";
throw Error(`${r} Valid slot names are ${e}.`);
@@ -38020,8 +38020,8 @@ function SL(e, t) {
}
return n;
}
-function CL(e, t, n) {
- let { ref: r, ...i } = SL(n, e.slot) || {}, a = YC((0, F.useMemo)(() => BC(t, r), [t, r])), o = K(i, e);
+function TL(e, t, n) {
+ let { ref: r, ...i } = wL(n, e.slot) || {}, a = XC((0, F.useMemo)(() => VC(t, r), [t, r])), o = K(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -38039,42 +38039,42 @@ function CL(e, t, n) {
...e.style
}), [o, a];
}
-function wL(e = !0) {
+function EL(e = !0) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
- return LS(() => {
+ return zS(() => {
r.current || n(!1);
}, []), [i, t];
}
-function TL(e) {
+function DL(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function jpe(e, t, n) {
- let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => BC(n, a), [n, a]);
- LS(() => {}, [e, r]);
+function kpe(e, t, n) {
+ let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => VC(n, a), [n, a]);
+ zS(() => {}, [e, r]);
let s = {
...i,
ref: o
};
return r ? r(s, void 0) : /*#__PURE__*/ F.createElement(e, s);
}
-var EL = {}, DL = new Proxy({}, { get(e, t) {
+var OL = {}, kL = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = EL[t];
- return n || (n = /*#__PURE__*/ (0, F.forwardRef)(jpe.bind(null, t)), EL[t] = n), n;
-} }), OL = /*#__PURE__*/ (0, F.createContext)(null), kL = /*#__PURE__*/ (0, F.createContext)(null), AL = /*#__PURE__*/ (0, F.createContext)(null), jL = {
+ let n = OL[t];
+ return n || (n = /*#__PURE__*/ (0, F.forwardRef)(kpe.bind(null, t)), OL[t] = n), n;
+} }), AL = /*#__PURE__*/ (0, F.createContext)(null), jL = /*#__PURE__*/ (0, F.createContext)(null), ML = /*#__PURE__*/ (0, F.createContext)(null), NL = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return ML(e, null, t);
+ return PL(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return ML(e, t, n);
+ return PL(e, t, n);
}
};
-function ML(e, t, n) {
- return yS({
+function PL(e, t, n) {
+ return xS({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
@@ -38084,11 +38084,11 @@ function ML(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, Mpe(e, t, n));
+ }), r, Ape(e, t, n));
}
});
}
-function Mpe(e, t, n) {
+function Ape(e, t, n) {
let r = t.key, i = e.getKeyAfter(r), a = i == null ? null : e.getItem(i);
for (; a != null && a.type !== "item";) i = e.getKeyAfter(a.key), a = i == null ? null : e.getItem(i);
let o = t.nextKey == null ? null : e.getItem(t.nextKey);
@@ -38107,24 +38107,24 @@ function Mpe(e, t, n) {
}
return s;
}
-var NL = /*#__PURE__*/ (0, F.createContext)(jL);
-function PL(e) {
+var FL = /*#__PURE__*/ (0, F.createContext)(NL);
+function IL(e) {
return (0, F.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
// node_modules/react-aria-components/dist/private/Label.mjs
-var FL = /*#__PURE__*/ (0, F.createContext)({}), IL = /*#__PURE__*/ ew(function(e, t) {
- [e, t] = CL(e, t, FL);
- let { elementType: n = "label", ...r } = e, i = DL[n];
+var LL = /*#__PURE__*/ (0, F.createContext)({}), RL = /*#__PURE__*/ tw(function(e, t) {
+ [e, t] = TL(e, t, LL);
+ let { elementType: n = "label", ...r } = e, i = kL[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), Npe = /*#__PURE__*/ (0, F.createContext)(null), LL = /*#__PURE__*/ (0, F.createContext)({}), RL = /*#__PURE__*/ ew(function(e, t) {
- [e, t] = CL(e, t, LL);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Hoe(e, t);
- i = Fpe(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = OD(e), { hoverProps: l, isHovered: u } = MD({
+}), jpe = /*#__PURE__*/ (0, F.createContext)(null), zL = /*#__PURE__*/ (0, F.createContext)({}), BL = /*#__PURE__*/ tw(function(e, t) {
+ [e, t] = TL(e, t, zL);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Voe(e, t);
+ i = Npe(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = kD(e), { hoverProps: l, isHovered: u } = ND({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -38134,24 +38134,24 @@ var FL = /*#__PURE__*/ (0, F.createContext)({}), IL = /*#__PURE__*/ ew(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = xL({
+ }, f = CL({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = RC(i.id), m = RC(), h = i["aria-labelledby"];
+ }), p = zC(i.id), m = zC(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
let g = (0, F.useRef)(r);
(0, F.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && kT(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && AT(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = Hw(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ F.createElement(DL.button, {
+ let _ = Uw(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ F.createElement(kL.button, {
...K(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -38165,61 +38165,61 @@ var FL = /*#__PURE__*/ (0, F.createContext)({}), IL = /*#__PURE__*/ ew(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ F.createElement(Npe.Provider, { value: { id: m } }, f.children));
-}), Ppe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function Fpe(e, t) {
+ }, /*#__PURE__*/ F.createElement(jpe.Provider, { value: { id: m } }, f.children));
+}), Mpe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function Npe(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !Ppe.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !Mpe.test(t) && (e[t] = void 0);
e.href = void 0, e.target = void 0;
}
return e;
}
// node_modules/react-aria-components/dist/private/Heading.mjs
-var zL = /*#__PURE__*/ (0, F.createContext)({}), BL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, zL);
- let { children: n, level: r = 3, className: i, ...a } = e, o = DL[`h${r}`];
+var VL = /*#__PURE__*/ (0, F.createContext)({}), HL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = TL(e, t, VL);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = kL[`h${r}`];
return /*#__PURE__*/ F.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), VL = /*#__PURE__*/ (0, F.createContext)({}), Ipe = /*#__PURE__*/ ew(function(e, t) {
- [e, t] = CL(e, t, VL);
- let { elementType: n = "span", ...r } = e, i = DL[n];
+}), UL = /*#__PURE__*/ (0, F.createContext)({}), Ppe = /*#__PURE__*/ tw(function(e, t) {
+ [e, t] = TL(e, t, UL);
+ let { elementType: n = "span", ...r } = e, i = kL[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), HL = /*#__PURE__*/ (0, F.createContext)(null), UL = /*#__PURE__*/ (0, F.createContext)(null), WL = /*#__PURE__*/ (0, F.createContext)(null), GL = /*#__PURE__*/ (0, F.createContext)(null), Lpe = /*#__PURE__*/ (0, F.createContext)(null), KL = /*#__PURE__*/ (0, F.createContext)(null);
-function Rpe(e, t) {
- let { validationBehavior: n } = SL(UL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(Lpe), a = YC((0, F.useMemo)(() => BC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...TL(e),
+}), WL = /*#__PURE__*/ (0, F.createContext)(null), GL = /*#__PURE__*/ (0, F.createContext)(null), KL = /*#__PURE__*/ (0, F.createContext)(null), qL = /*#__PURE__*/ (0, F.createContext)(null), Fpe = /*#__PURE__*/ (0, F.createContext)(null), JL = /*#__PURE__*/ (0, F.createContext)(null);
+function Ipe(e, t) {
+ let { validationBehavior: n } = wL(GL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(Fpe), a = XC((0, F.useMemo)(() => VC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...DL(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? dse(o, i, a) : XT(o, tE(e), a), a];
+ return [i ? use(o, i, a) : ZT(o, nE(e), a), a];
}
-var zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var Lpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = CL(r, t, WL);
- let [i, a] = Rpe(e, n);
- return /*#__PURE__*/ F.createElement(KL.Provider, { value: {
+ [e, t] = TL(r, t, KL);
+ let [i, a] = Ipe(e, n);
+ return /*#__PURE__*/ F.createElement(JL.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ F.createElement(Bpe, {
+ } }, /*#__PURE__*/ F.createElement(Rpe, {
...e,
ref: t
}));
-}), Bpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, F.useContext)(KL), { isFocused: p, isFocusVisible: m, focusProps: h } = OD(), g = a || o, { hoverProps: _, isHovered: v } = MD({
+}), Rpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, F.useContext)(JL), { isFocused: p, isFocusVisible: m, focusProps: h } = kD(), g = a || o, { hoverProps: _, isHovered: v } = ND({
...e,
isDisabled: g
- }), y = xL({
+ }), y = CL({
...e,
defaultClassName: u,
values: {
@@ -38234,8 +38234,8 @@ var zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = Hw(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(DL.label, {
+ }), b = Uw(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(kL.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -38249,20 +38249,20 @@ var zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ F.createElement(uE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(dE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, h),
ref: l
})), y.children);
-}), qL = /*#__PURE__*/ (0, F.createContext)({}), JL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, qL);
+}), YL = /*#__PURE__*/ (0, F.createContext)({}), XL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = TL(e, t, YL);
let { isDisabled: n, isInvalid: r, isReadOnly: i, onHoverStart: a, onHoverChange: o, onHoverEnd: s, ...c } = e;
n ??= !!e["aria-disabled"] && e["aria-disabled"] !== "false", r ??= !!e["aria-invalid"] && e["aria-invalid"] !== "false";
- let { hoverProps: l, isHovered: u } = MD({
+ let { hoverProps: l, isHovered: u } = ND({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = OD({ within: !0 }), m = xL({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = kD({ within: !0 }), m = CL({
...e,
values: {
isHovered: u,
@@ -38273,7 +38273,7 @@ var zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ F.createElement(DL.div, {
+ return /*#__PURE__*/ F.createElement(kL.div, {
...K(c, p, l),
...m,
ref: t,
@@ -38286,18 +38286,18 @@ var zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), YL = /*#__PURE__*/ (0, F.createContext)({}), Vpe = (e) => {
+}), ZL = /*#__PURE__*/ (0, F.createContext)({}), zpe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Hpe = /*#__PURE__*/ ew(function(e, t) {
- [e, t] = CL(e, t, YL);
- let { hoverProps: n, isHovered: r } = MD({
+}, Bpe = /*#__PURE__*/ tw(function(e, t) {
+ [e, t] = TL(e, t, ZL);
+ let { hoverProps: n, isHovered: r } = ND({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = OD({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = kD({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = xL({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = CL({
...e,
values: {
isHovered: r,
@@ -38308,8 +38308,8 @@ var zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ F.createElement(DL.input, {
- ...K(Vpe(e), o, n),
+ return /*#__PURE__*/ F.createElement(kL.input, {
+ ...K(zpe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -38318,24 +38318,24 @@ var zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), Upe = 0, Wpe = 100, Gpe = 1;
-function Kpe(e) {
- let { isDisabled: t = !1, minValue: n = Upe, maxValue: r = Wpe, numberFormatter: i, step: a = Gpe, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
+}), Vpe = 0, Hpe = 100, Upe = 1;
+function Wpe(e) {
+ let { isDisabled: t = !1, minValue: n = Vpe, maxValue: r = Hpe, numberFormatter: i, step: a = Upe, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
let e = (r - n) / 10;
- return e = iE(e, 0, e + a, a), Math.max(e, a);
+ return e = aE(e, 0, e + a, a), Math.max(e, a);
}, [
a,
r,
n
- ]), c = (0, F.useCallback)((e) => e?.map((t, i) => iE(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
+ ]), c = (0, F.useCallback)((e) => e?.map((t, i) => aE(t, i === 0 ? n : e[i - 1], i === e.length - 1 ? r : e[i + 1], a)), [
n,
r,
a
- ]), l = (0, F.useMemo)(() => c(ZL(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c(ZL(e.defaultValue) ?? [n]), [
+ ]), l = (0, F.useMemo)(() => c($L(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c($L(e.defaultValue) ?? [n]), [
e.defaultValue,
n,
c
- ]), d = QL(e.value, e.defaultValue, e.onChange), f = QL(e.value, e.defaultValue, e.onChangeEnd), [p, m] = eE(l, u, d), [h] = (0, F.useState)(p), [g, _] = (0, F.useState)(Array(p.length).fill(!1)), v = (0, F.useRef)(Array(p.length).fill(!0)), [y, b] = (0, F.useState)(void 0), x = (0, F.useRef)(p), S = (0, F.useRef)(g), C = (e) => {
+ ]), d = eR(e.value, e.defaultValue, e.onChange), f = eR(e.value, e.defaultValue, e.onChangeEnd), [p, m] = tE(l, u, d), [h] = (0, F.useState)(p), [g, _] = (0, F.useState)(Array(p.length).fill(!1)), v = (0, F.useRef)(Array(p.length).fill(!0)), [y, b] = (0, F.useState)(void 0), x = (0, F.useRef)(p), S = (0, F.useRef)(g), C = (e) => {
x.current = e, m(e);
}, w = (e) => {
S.current = e, _(e);
@@ -38358,15 +38358,15 @@ function Kpe(e) {
function A(e, n) {
if (t || !O(e)) return;
let r = E(e), i = D(e);
- n = iE(n, r, i, a);
- let o = XL(x.current, e, n);
+ n = aE(n, r, i, a);
+ let o = QL(x.current, e, n);
C(o);
}
function j(e, n) {
if (t || !O(e)) return;
n && (x.current = p);
let r = S.current[e];
- S.current = XL(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
+ S.current = QL(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
}
let M = (0, F.useRef)(null);
function ee(e = p) {
@@ -38387,15 +38387,15 @@ function Kpe(e) {
return Math.round((e - n) / a) * a + n;
}
function P(e) {
- return nE(te(e * (r - n) + n), n, r);
+ return rE(te(e * (r - n) + n), n, r);
}
function ne(e, t = 1) {
let i = Math.max(t, a);
- A(e, iE(p[e] + i, n, r, a));
+ A(e, aE(p[e] + i, n, r, a));
}
function re(e, t = 1) {
let i = Math.max(t, a);
- A(e, iE(p[e] - i, n, r, a));
+ A(e, aE(p[e] - i, n, r, a));
}
return {
values: p,
@@ -38424,31 +38424,31 @@ function Kpe(e) {
isDisabled: t
};
}
-function XL(e, t, n) {
+function QL(e, t, n) {
return e[t] === n ? e : [
...e.slice(0, t),
n,
...e.slice(t + 1)
];
}
-function ZL(e) {
+function $L(e) {
if (e != null) return Array.isArray(e) ? e : [e];
}
-function QL(e, t, n) {
+function eR(e, t, n) {
return (r) => {
typeof e == "number" || typeof t == "number" ? n?.(r[0]) : n?.(r);
};
}
// node_modules/react-aria-components/dist/private/Slider.mjs
-var qpe = /*#__PURE__*/ (0, F.createContext)(null), $L = /*#__PURE__*/ (0, F.createContext)(null), eR = /*#__PURE__*/ (0, F.createContext)(null), Jpe = /*#__PURE__*/ (0, F.createContext)(null), Ype = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, qpe);
- let n = (0, F.useRef)(null), r = gse(e.formatOptions), i = Kpe({
+var Gpe = /*#__PURE__*/ (0, F.createContext)(null), tR = /*#__PURE__*/ (0, F.createContext)(null), nR = /*#__PURE__*/ (0, F.createContext)(null), Kpe = /*#__PURE__*/ (0, F.createContext)(null), qpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = TL(e, t, Gpe);
+ let n = (0, F.useRef)(null), r = hse(e.formatOptions), i = Wpe({
...e,
numberFormatter: r
- }), [a, o] = wL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = _se({
+ }), [a, o] = EL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = gse({
...e,
label: o
- }, i, n), d = xL({
+ }, i, n), d = CL({
...e,
values: {
orientation: i.orientation,
@@ -38456,32 +38456,32 @@ var qpe = /*#__PURE__*/ (0, F.createContext)(null), $L = /*#__PURE__*/ (0, F.cre
state: i
},
defaultClassName: "react-aria-Slider"
- }), f = Hw(e, { global: !0 });
- return delete f.id, /*#__PURE__*/ F.createElement(bL, { values: [
- [$L, i],
- [eR, {
+ }), f = Uw(e, { global: !0 });
+ return delete f.id, /*#__PURE__*/ F.createElement(SL, { values: [
+ [tR, i],
+ [nR, {
...c,
ref: n
}],
- [Jpe, u],
- [FL, {
+ [Kpe, u],
+ [LL, {
...l,
ref: a
}]
- ] }, /*#__PURE__*/ F.createElement(DL.div, {
+ ] }, /*#__PURE__*/ F.createElement(kL.div, {
...K(f, d, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": i.orientation,
"data-disabled": i.isDisabled || void 0
}));
-}), Xpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, eR);
- let n = (0, F.useContext)($L), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = MD({
+}), Jpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = TL(e, t, nR);
+ let n = (0, F.useContext)(tR), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = ND({
onHoverStart: r,
onHoverEnd: i,
onHoverChange: a
- }), l = xL({
+ }), l = CL({
...e,
defaultClassName: "react-aria-SliderTrack",
values: {
@@ -38491,7 +38491,7 @@ var qpe = /*#__PURE__*/ (0, F.createContext)(null), $L = /*#__PURE__*/ (0, F.cre
state: n
}
});
- return /*#__PURE__*/ F.createElement(DL.div, {
+ return /*#__PURE__*/ F.createElement(kL.div, {
...K(o, s),
...l,
ref: t,
@@ -38499,14 +38499,14 @@ var qpe = /*#__PURE__*/ (0, F.createContext)(null), $L = /*#__PURE__*/ (0, F.cre
"data-orientation": n.orientation || void 0,
"data-disabled": n.isDisabled || void 0
});
-}), Zpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { inputRef: n = null } = e, r = (0, F.useContext)($L), { ref: i } = SL(eR), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = wL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = vse({
+}), Ype = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { inputRef: n = null } = e, r = (0, F.useContext)(tR), { ref: i } = wL(nR), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = EL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = _se({
...e,
index: a,
trackRef: i,
inputRef: s,
label: l
- }, r), { focusProps: g, isFocusVisible: _ } = OD(), { hoverProps: v, isHovered: y } = MD(e), b = xL({
+ }, r), { focusProps: g, isFocusVisible: _ } = kD(), { hoverProps: v, isHovered: y } = ND(e), b = CL({
...e,
defaultClassName: "react-aria-SliderThumb",
values: {
@@ -38517,8 +38517,8 @@ var qpe = /*#__PURE__*/ (0, F.createContext)(null), $L = /*#__PURE__*/ (0, F.cre
isFocusVisible: _,
isDisabled: h
}
- }), x = Hw(e, { global: !0 });
- return delete x.id, /*#__PURE__*/ F.createElement(DL.div, {
+ }), x = Uw(e, { global: !0 });
+ return delete x.id, /*#__PURE__*/ F.createElement(kL.div, {
...K(x, u, v),
...b,
ref: t,
@@ -38531,330 +38531,330 @@ var qpe = /*#__PURE__*/ (0, F.createContext)(null), $L = /*#__PURE__*/ (0, F.cre
"data-focused": m || void 0,
"data-focus-visible": _ || void 0,
"data-disabled": h || void 0
- }, /*#__PURE__*/ F.createElement(uE, null, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(dE, null, /*#__PURE__*/ F.createElement("input", {
ref: s,
...K(d, g)
- })), /*#__PURE__*/ F.createElement(bL, { values: [[FL, {
+ })), /*#__PURE__*/ F.createElement(SL, { values: [[LL, {
...f,
ref: c
}]] }, b.children));
-}), tR = {};
-tR = {
+}), rR = {};
+rR = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
tableResizer: "أداة تغيير الحجم"
};
// node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var nR = {};
-nR = {
+var iR = {};
+iR = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
tableResizer: "Преоразмерител"
};
// node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var rR = {};
-rR = {
+var aR = {};
+aR = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
tableResizer: "Změna velikosti"
};
// node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var iR = {};
-iR = {
+var oR = {};
+oR = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
tableResizer: "Størrelsesændring"
};
// node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var aR = {};
-aR = {
+var sR = {};
+sR = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
tableResizer: "Größenanpassung"
};
// node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var oR = {};
-oR = {
+var cR = {};
+cR = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
tableResizer: "Αλλαγή μεγέθους"
};
// node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var sR = {};
-sR = {
+var lR = {};
+lR = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
colorSwatchPicker: "Color swatches"
};
// node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var cR = {};
-cR = {
+var uR = {};
+uR = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
tableResizer: "Cambiador de tamaño"
};
// node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var lR = {};
-lR = {
+var dR = {};
+dR = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
tableResizer: "Suuruse muutja"
};
// node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var uR = {};
-uR = {
+var fR = {};
+fR = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
tableResizer: "Koon muuttaja"
};
// node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var dR = {};
-dR = {
+var pR = {};
+pR = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
tableResizer: "Redimensionneur"
};
// node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var fR = {};
-fR = {
+var mR = {};
+mR = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
tableResizer: "שינוי גודל"
};
// node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var pR = {};
-pR = {
+var hR = {};
+hR = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
tableResizer: "Promjena veličine"
};
// node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var mR = {};
-mR = {
+var gR = {};
+gR = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
tableResizer: "Átméretező"
};
// node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var hR = {};
-hR = {
+var _R = {};
+_R = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
tableResizer: "Ridimensionamento"
};
// node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var gR = {};
-gR = {
+var vR = {};
+vR = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
tableResizer: "サイズ変更ツール"
};
// node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var _R = {};
-_R = {
+var yR = {};
+yR = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
tableResizer: "크기 조정기"
};
// node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var vR = {};
-vR = {
+var bR = {};
+bR = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
tableResizer: "Dydžio keitiklis"
};
// node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var yR = {};
-yR = {
+var xR = {};
+xR = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
tableResizer: "Izmēra mainītājs"
};
// node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var bR = {};
-bR = {
+var SR = {};
+SR = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
tableResizer: "Størrelsesendrer"
};
// node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var xR = {};
-xR = {
+var CR = {};
+CR = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
tableResizer: "Resizer"
};
// node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var SR = {};
-SR = {
+var wR = {};
+wR = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
tableResizer: "Zmiana rozmiaru"
};
// node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var CR = {};
-CR = {
+var TR = {};
+TR = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var wR = {};
-wR = {
+var ER = {};
+ER = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var TR = {};
-TR = {
+var DR = {};
+DR = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
tableResizer: "Instrument de redimensionare"
};
// node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var ER = {};
-ER = {
+var OR = {};
+OR = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
tableResizer: "Средство изменения размера"
};
// node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var DR = {};
-DR = {
+var kR = {};
+kR = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
tableResizer: "Nástroj na zmenu veľkosti"
};
// node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var OR = {};
-OR = {
+var AR = {};
+AR = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
tableResizer: "Spreminjanje velikosti"
};
// node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var kR = {};
-kR = {
+var jR = {};
+jR = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
tableResizer: "Promena veličine"
};
// node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var AR = {};
-AR = {
+var MR = {};
+MR = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
tableResizer: "Storleksändrare"
};
// node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var jR = {};
-jR = {
+var NR = {};
+NR = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
tableResizer: "Yeniden boyutlandırıcı"
};
// node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var MR = {};
-MR = {
+var PR = {};
+PR = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
tableResizer: "Засіб змінення розміру"
};
// node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var NR = {};
-NR = {
+var FR = {};
+FR = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
tableResizer: "尺寸调整器"
};
// node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var PR = {};
-PR = {
+var IR = {};
+IR = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
tableResizer: "大小調整器"
};
// node_modules/react-aria-components/dist/private/intlStrings.mjs
-var FR = {};
-FR = {
- "ar-AE": tR,
- "bg-BG": nR,
- "cs-CZ": rR,
- "da-DK": iR,
- "de-DE": aR,
- "el-GR": oR,
- "en-US": sR,
- "es-ES": cR,
- "et-EE": lR,
- "fi-FI": uR,
- "fr-FR": dR,
- "he-IL": fR,
- "hr-HR": pR,
- "hu-HU": mR,
- "it-IT": hR,
- "ja-JP": gR,
- "ko-KR": _R,
- "lt-LT": vR,
- "lv-LV": yR,
- "nb-NO": bR,
- "nl-NL": xR,
- "pl-PL": SR,
- "pt-BR": CR,
- "pt-PT": wR,
- "ro-RO": TR,
- "ru-RU": ER,
- "sk-SK": DR,
- "sl-SI": OR,
- "sr-SP": kR,
- "sv-SE": AR,
- "tr-TR": jR,
- "uk-UA": MR,
- "zh-CN": NR,
- "zh-TW": PR
+var LR = {};
+LR = {
+ "ar-AE": rR,
+ "bg-BG": iR,
+ "cs-CZ": aR,
+ "da-DK": oR,
+ "de-DE": sR,
+ "el-GR": cR,
+ "en-US": lR,
+ "es-ES": uR,
+ "et-EE": dR,
+ "fi-FI": fR,
+ "fr-FR": pR,
+ "he-IL": mR,
+ "hr-HR": hR,
+ "hu-HU": gR,
+ "it-IT": _R,
+ "ja-JP": vR,
+ "ko-KR": yR,
+ "lt-LT": bR,
+ "lv-LV": xR,
+ "nb-NO": SR,
+ "nl-NL": CR,
+ "pl-PL": wR,
+ "pt-BR": TR,
+ "pt-PT": ER,
+ "ro-RO": DR,
+ "ru-RU": OR,
+ "sk-SK": kR,
+ "sl-SI": AR,
+ "sr-SP": jR,
+ "sv-SE": MR,
+ "tr-TR": NR,
+ "uk-UA": PR,
+ "zh-CN": FR,
+ "zh-TW": IR
};
// node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var IR = /*#__PURE__*/ (0, F.createContext)({}), LR = /*#__PURE__*/ (0, F.createContext)(null), Qpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { render: n } = (0, F.useContext)(LR);
+var RR = /*#__PURE__*/ (0, F.createContext)({}), zR = /*#__PURE__*/ (0, F.createContext)(null), Xpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { render: n } = (0, F.useContext)(zR);
return /*#__PURE__*/ F.createElement(F.Fragment, null, n(e, t));
});
-function RR(e, t) {
+function BR(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, F.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ F.createElement(Qpe, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ F.createElement(Xpe, { target: e });
}, [
t?.target,
r,
@@ -38862,7 +38862,7 @@ function RR(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function zR(e, t, n) {
+function VR(e, t, n) {
let r = e.focusedKey, i = null;
if (t?.isVirtualDragging?.() && n?.target?.type === "item" && (i = n.target.key, n.target.dropPosition === "after")) {
let e = n.collection.getKeyAfter(i), t = null;
@@ -38883,13 +38883,13 @@ function zR(e, t, n) {
return (0, F.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
}
// node_modules/react-aria-components/dist/private/Header.mjs
-var BR = /*#__PURE__*/ (0, F.createContext)({}), $pe = /*#__PURE__*/ (0, F.createContext)(null);
-function VR(e) {
+var HR = /*#__PURE__*/ (0, F.createContext)({}), Zpe = /*#__PURE__*/ (0, F.createContext)(null);
+function UR(e) {
let t = (0, F.useRef)({});
- return /*#__PURE__*/ F.createElement($pe.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ F.createElement(Zpe.Provider, { value: t }, e.children);
}
// node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var HR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), UR = /*#__PURE__*/ (0, F.createContext)({}), eme = /*#__PURE__*/ cw(class extends dS {
+var WR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), GR = /*#__PURE__*/ (0, F.createContext)({}), Qpe = /*#__PURE__*/ lw(class extends pS {
static {
this.type = "separator";
}
@@ -38902,14 +38902,14 @@ var HR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), UR = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = CL(e, t, UR);
+ [e, t] = TL(e, t, GR);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = DL[c], { separatorProps: u } = Tce({
+ let l = kL[c], { separatorProps: u } = wce({
...s,
elementType: n,
orientation: r
- }), d = Hw(e, { global: !0 });
+ }), d = Uw(e, { global: !0 });
return /*#__PURE__*/ F.createElement(l, {
render: e.render,
...K(d, u),
@@ -38920,12 +38920,12 @@ var HR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), UR = /*#__PURE_
});
});
// node_modules/react-aria/dist/private/utils/inertValue.mjs
-function WR(e) {
+function KR(e) {
let t = F.version.split(".");
return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;
}
// node_modules/react-stately/dist/private/list/ListCollection.mjs
-var GR = class {
+var qR = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -38969,19 +38969,19 @@ var GR = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, KR = class e extends Set {
+}, JR = class e extends Set {
constructor(t, n, r) {
super(t), t instanceof e ? (this.anchorKey = n ?? t.anchorKey, this.currentKey = r ?? t.currentKey) : (this.anchorKey = n ?? null, this.currentKey = r ?? null);
}
};
// node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs
-function tme(e, t) {
+function $pe(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function qR(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, F.useRef)(!1), [, s] = (0, F.useState)(!1), c = (0, F.useRef)(null), l = (0, F.useRef)(null), [, u] = (0, F.useState)(null), [d, f] = eE((0, F.useMemo)(() => JR(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => JR(e.defaultSelectedKeys, new KR()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, F.useState)(i);
+function YR(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, F.useRef)(!1), [, s] = (0, F.useState)(!1), c = (0, F.useRef)(null), l = (0, F.useRef)(null), [, u] = (0, F.useState)(null), [d, f] = tE((0, F.useMemo)(() => XR(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => XR(e.defaultSelectedKeys, new JR()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, F.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, F.useRef)(i);
return (0, F.useEffect)(() => {
@@ -39008,17 +39008,17 @@ function qR(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !tme(e, d)) && f(e);
+ (r || !$pe(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function JR(e, t) {
- return e ? e === "all" ? "all" : new KR(e) : t;
+function XR(e, t) {
+ return e ? e === "all" ? "all" : new JR(e) : t;
}
// node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var YR = class e {
+var ZR = class e {
constructor(e, t, n) {
this.collection = e, this.state = t, this.allowsCellSelection = n?.allowsCellSelection ?? !1, this._isSelectAll = null, this.layoutDelegate = n?.layoutDelegate || null, this.fullCollection = n?.fullCollection || null;
}
@@ -39074,7 +39074,7 @@ var YR = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && gD(this.collection, n, e) < 0) && (e = n);
+ (!e || n && _D(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -39082,7 +39082,7 @@ var YR = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && gD(this.collection, n, e) > 0) && (e = n);
+ (!e || n && _D(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -39101,10 +39101,10 @@ var YR = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new KR([t], t, t);
+ if (this.state.selectedKeys === "all") n = new JR([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new KR(e, r, t);
+ n = new JR(e, r, t);
for (let i of this.getKeyRange(r, e.currentKey ?? t)) n.delete(i);
for (let e of this.getKeyRange(t, r)) this.canSelectItem(e) && n.add(e);
}
@@ -39112,7 +39112,7 @@ var YR = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? gD(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? _D(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
}
getKeyRangeInternal(e, t) {
if (this.layoutDelegate?.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);
@@ -39138,19 +39138,19 @@ var YR = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new KR(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new JR(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
n.has(t) ? n.delete(t) : this.canSelectItem(t) && (n.add(t), n.anchorKey = t, n.currentKey = t), !(this.disallowEmptySelection && n.size === 0) && this.state.setSelectedKeys(n);
}
replaceSelection(e) {
if (this.selectionMode === "none") return;
let t = this.getKey(e);
if (t == null) return;
- let n = this.canSelectItem(t) ? new KR([t], t, t) : new KR();
+ let n = this.canSelectItem(t) ? new JR([t], t, t) : new JR();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new KR();
+ let t = new JR();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -39162,7 +39162,7 @@ var YR = class e {
for (; r != null;) {
if (this.canSelectItemIn(r, e)) {
let i = e.getItem(r);
- i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(pD(fD(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(mD(pD(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -39173,7 +39173,7 @@ var YR = class e {
!this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
}
clearSelection() {
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new KR());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new JR());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -39214,9 +39214,9 @@ var YR = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, nme = class {
+}, eme = class {
build(e, t) {
- return this.context = t, XR(() => this.iterateCollection(e));
+ return this.context = t, QR(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -39298,10 +39298,10 @@ var YR = class e {
...a,
key: l,
index: s,
- wrapper: rme(e.wrapper, a.wrapper)
+ wrapper: tme(e.wrapper, a.wrapper)
}, this.getChildState(t, a), n ? `${n}${i.key}` : i.key, r)];
for (let t of u) {
- if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${ZR(t.type)}> in <${ZR(r?.type ?? "unknown parent type")}>. Only <${ZR(e.type)}> is supported.`);
+ if (t.value = a.value ?? e.value ?? null, t.value && this.cache.set(t.value, t), e.type && t.type !== e.type) throw Error(`Unsupported type <${$R(t.type)}> in <${$R(r?.type ?? "unknown parent type")}>. Only <${$R(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -39323,7 +39323,7 @@ var YR = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: XR(function* () {
+ childNodes: QR(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -39342,7 +39342,7 @@ var YR = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function XR(e) {
+function QR(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -39350,17 +39350,17 @@ function XR(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function rme(e, t) {
+function tme(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function ZR(e) {
+function $R(e) {
return e[0].toUpperCase() + e.slice(1);
}
// node_modules/react-stately/dist/private/collections/useCollection.mjs
-function QR(e, t, n) {
- let r = (0, F.useMemo)(() => new nme(), []), { children: i, items: a, collection: o } = e;
+function ez(e, t, n) {
+ let r = (0, F.useMemo)(() => new eme(), []), { children: i, items: a, collection: o } = e;
return (0, F.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -39374,27 +39374,27 @@ function QR(e, t, n) {
]);
}
// node_modules/react-stately/dist/private/list/useListState.mjs
-function $R(e) {
- let { filter: t, layoutDelegate: n } = e, r = qR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = QR(e, (0, F.useCallback)((e) => t ? new GR(t(e)) : new GR(e), [t]), (0, F.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, F.useMemo)(() => new YR(a, r, { layoutDelegate: n }), [
+function tz(e) {
+ let { filter: t, layoutDelegate: n } = e, r = YR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = ez(e, (0, F.useCallback)((e) => t ? new qR(t(e)) : new qR(e), [t]), (0, F.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, F.useMemo)(() => new ZR(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return ez(a, o), {
+ return nz(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function ime(e, t) {
+function nme(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return ez(n, r), {
+ return nz(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function ez(e, t) {
+function nz(e, t) {
let n = (0, F.useRef)(null);
(0, F.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -39421,15 +39421,15 @@ function ez(e, t) {
}, [e, t]);
}
// node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function tz(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = Ew((e) => {
+function rz(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = Dw((e) => {
for (let t of e) t.isIntersecting && r && r();
});
- LS(() => {
+ zS(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: MT(t?.current),
+ root: NT(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -39444,42 +39444,42 @@ function tz(e, t) {
]);
}
// node_modules/react-aria-components/dist/private/ListBox.mjs
-var nz = /*#__PURE__*/ (0, F.createContext)(null), rz = /*#__PURE__*/ (0, F.createContext)(null), ame = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, nz);
- let n = (0, F.useContext)(rz);
- return n ? /*#__PURE__*/ F.createElement(iz, {
+var iz = /*#__PURE__*/ (0, F.createContext)(null), az = /*#__PURE__*/ (0, F.createContext)(null), rme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = TL(e, t, iz);
+ let n = (0, F.useContext)(az);
+ return n ? /*#__PURE__*/ F.createElement(oz, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ F.createElement(aw, { content: /*#__PURE__*/ F.createElement(fw, e) }, (n) => /*#__PURE__*/ F.createElement(ome, {
+ }) : /*#__PURE__*/ F.createElement(ow, { content: /*#__PURE__*/ F.createElement(pw, e) }, (n) => /*#__PURE__*/ F.createElement(ime, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function ome({ props: e, listBoxRef: t, collection: n }) {
+function ime({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, F.useContext)(NL), i = $R({
+ let { layoutDelegate: r } = (0, F.useContext)(FL), i = tz({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ F.createElement(iz, {
+ return /*#__PURE__*/ F.createElement(oz, {
state: i,
props: e,
listBoxRef: t
});
}
-function iz({ state: e, props: t, listBoxRef: n }) {
- [t, n] = CL(t, n, OL);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = ime(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Pw(), { disabledBehavior: p, disabledKeys: m } = l, h = xD({
+function oz({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = TL(t, n, AL);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = nme(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Fw(), { disabledBehavior: p, disabledKeys: m } = l, h = SD({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(NL), b = (0, F.useMemo)(() => t.keyboardDelegate || new CE({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(FL), b = (0, F.useMemo)(() => t.keyboardDelegate || new wE({
collection: c,
collator: h,
ref: n,
@@ -39500,7 +39500,7 @@ function iz({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Gse({
+ ]), { listBoxProps: x } = Wse({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -39532,7 +39532,7 @@ function iz({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = OD(), j = s.collection.size === 0, M = {
+ let { focusProps: O, isFocused: k, isFocusVisible: A } = kD(), j = s.collection.size === 0, M = {
isDropTarget: T,
isEmpty: j,
isFocused: k,
@@ -39540,7 +39540,7 @@ function iz({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, ee = xL({
+ }, ee = CL({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -39550,8 +39550,8 @@ function iz({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(M)));
- let te = Hw(t, { global: !0 });
- return /*#__PURE__*/ F.createElement(fT, null, /*#__PURE__*/ F.createElement(DL.div, {
+ let te = Uw(t, { global: !0 });
+ return /*#__PURE__*/ F.createElement(pT, null, /*#__PURE__*/ F.createElement(kL.div, {
...K(te, ee, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -39562,60 +39562,60 @@ function iz({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [nz, t],
- [rz, s],
- [IR, {
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [iz, t],
+ [az, s],
+ [RR, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [UR, { elementType: "div" }],
- [LR, { render: lme }],
- [AL, {
+ [GR, { elementType: "div" }],
+ [zR, { render: sme }],
+ [ML, {
name: "ListBoxSection",
- render: sme
+ render: ame
}]
- ] }, /*#__PURE__*/ F.createElement(VR, null, /*#__PURE__*/ F.createElement(y, {
+ ] }, /*#__PURE__*/ F.createElement(UR, null, /*#__PURE__*/ F.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: zR(l, r, C),
- renderDropIndicator: RR(r, C)
+ persistedKeys: VR(l, r, C),
+ renderDropIndicator: BR(r, C)
}))), N, E));
}
-function sme(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, F.useContext)(rz), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(IR), { CollectionBranch: s } = (0, F.useContext)(NL), [c, l] = wL(), { headingProps: u, groupProps: d } = Kse({
+function ame(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, F.useContext)(az), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(RR), { CollectionBranch: s } = (0, F.useContext)(FL), [c, l] = EL(), { headingProps: u, groupProps: d } = Gse({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = xL({
+ }), f = CL({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = Hw(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ F.createElement(DL.section, {
+ }), p = Uw(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ F.createElement(kL.section, {
...K(p, f, d),
ref: t
- }, /*#__PURE__*/ F.createElement(BR.Provider, { value: {
+ }, /*#__PURE__*/ F.createElement(HR.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ F.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: RR(a, o)
+ renderDropIndicator: BR(a, o)
})));
}
-var cme = /*#__PURE__*/ cw(mS, function(e, t, n) {
- let r = YC(t), i = (0, F.useContext)(rz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(IR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = qse({
+var ome = /*#__PURE__*/ lw(gS, function(e, t, n) {
+ let r = XC(t), i = (0, F.useContext)(az), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(RR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Kse({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = MD({
+ }, i, r), { hoverProps: p, isHovered: m } = ND({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = JC(e), { focusProps: g } = WC(e), _ = null;
+ }), { keyboardProps: h } = YC(e), { focusProps: g } = GC(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -39626,7 +39626,7 @@ var cme = /*#__PURE__*/ cw(mS, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = xL({
+ let y = o && o.isDragging(n.key), b = CL({
...e,
id: void 0,
children: e.children,
@@ -39644,7 +39644,7 @@ var cme = /*#__PURE__*/ cw(mS, function(e, t, n) {
(0, F.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? DL.a : DL.div, S = Hw(e, { global: !0 });
+ let x = e.href ? kL.a : kL.div, S = Uw(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ F.createElement(x, {
...K(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -39658,29 +39658,29 @@ var cme = /*#__PURE__*/ cw(mS, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ F.createElement(bL, { values: [[VL, { slots: {
- [yL]: u,
+ }, /*#__PURE__*/ F.createElement(SL, { values: [[UL, { slots: {
+ [xL]: u,
label: u,
description: d
- } }], [HR, { isSelected: f.isSelected }]] }, b.children));
+ } }], [WR, { isSelected: f.isSelected }]] }, b.children));
});
-function lme(e, t) {
- t = YC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(IR), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ F.createElement(dme, {
+function sme(e, t) {
+ t = XC(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(RR), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ F.createElement(lme, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function ume(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = xL({
+function cme(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = CL({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(DL.div, {
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(kL.div, {
...n,
...a,
role: "option",
@@ -39688,10 +39688,10 @@ function ume(e, t) {
"data-drop-target": r || void 0
}));
}
-var dme = /*#__PURE__*/ (0, F.forwardRef)(ume);
-cw(pS, function(e, t, n) {
- let r = (0, F.useContext)(rz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- tz((0, F.useMemo)(() => ({
+var lme = /*#__PURE__*/ (0, F.forwardRef)(cme);
+lw(hS, function(e, t, n) {
+ let r = (0, F.useContext)(az), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ rz((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -39701,7 +39701,7 @@ cw(pS, function(e, t, n) {
o,
r?.collection
]), c);
- let l = xL({
+ let l = CL({
...s,
id: void 0,
children: n.rendered,
@@ -39714,7 +39714,7 @@ cw(pS, function(e, t, n) {
width: 0,
height: 0
},
- inert: WR(!0)
+ inert: KR(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -39723,18 +39723,18 @@ cw(pS, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(DL.div, {
- ...K(Hw(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(kL.div, {
+ ...K(Uw(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
}, l.children)));
});
// node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var fme = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
+var ume = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
// node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function az(e) {
- let [t, n] = eE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
+function sz(e) {
+ let [t, n] = tE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -39752,15 +39752,15 @@ function az(e) {
};
}
// node_modules/react-aria/dist/private/utils/animation.mjs
-function oz(e, t = !0, n) {
+function cz(e, t = !0, n) {
let [r, i] = (0, F.useState)(!0), a = r && t;
- return LS(() => {
- if (!t && e.current) return PC(ES(e.current, "opacity", "0"), ES(e.current, "clip", "rect(0 0 0 0)"), ES(e.current, "clip-path", "inset(50%)"), ES(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
- }, [e, t]), LS(() => {
+ return zS(() => {
+ if (!t && e.current) return FC(OS(e.current, "opacity", "0"), OS(e.current, "clip", "rect(0 0 0 0)"), OS(e.current, "clip-path", "inset(50%)"), OS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
+ }, [e, t]), zS(() => {
if (a && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, a]), cz(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
+ }, [e, a]), uz(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
}
-function sz(e, t, n) {
+function lz(e, t, n) {
let [r, i] = (0, F.useState)(t ? "open" : "closed");
switch (r) {
case "open":
@@ -39770,13 +39770,13 @@ function sz(e, t, n) {
case "exiting": t && i("open");
}
let a = r === "exiting";
- return cz(e, a, n, (0, F.useCallback)(() => {
+ return uz(e, a, n, (0, F.useCallback)(() => {
i((e) => e === "exiting" ? "closed" : e);
}, [])), a;
}
-function cz(e, t, n, r) {
- let i = (0, F.useRef)(null), a = Ew(n);
- LS(() => {
+function uz(e, t, n, r) {
+ let i = (0, F.useRef)(null), a = Dw(n);
+ zS(() => {
if (t && e.current && i.current !== t) {
if (i.current = t, !("getAnimations" in e.current)) {
r();
@@ -39801,9 +39801,9 @@ function cz(e, t, n, r) {
]);
}
// node_modules/react-aria-components/dist/private/Popover.mjs
-var lz = /*#__PURE__*/ (0, F.createContext)(null), uz = /*#__PURE__*/ (0, F.createContext)(null), dz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, lz);
- let n = (0, F.useContext)(Cz), r = az(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = sz(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = tw(), { direction: c } = Pw();
+var dz = /*#__PURE__*/ (0, F.createContext)(null), fz = /*#__PURE__*/ (0, F.createContext)(null), pz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = TL(e, t, dz);
+ let n = (0, F.useContext)(Tz), r = sz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = lz(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = nw(), { direction: c } = Fw();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -39814,7 +39814,7 @@ var lz = /*#__PURE__*/ (0, F.createContext)(null), uz = /*#__PURE__*/ (0, F.crea
defaultChildren: null
})), /*#__PURE__*/ F.createElement(F.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(pme, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(dme, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -39823,13 +39823,13 @@ var lz = /*#__PURE__*/ (0, F.createContext)(null), uz = /*#__PURE__*/ (0, F.crea
dir: c
});
});
-function pme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useContext)(uz), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = yce({
+function dme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useContext)(fz), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = vce({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), g = i.popoverRef, _ = oz(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = xL({
+ }, e), g = i.popoverRef, _ = cz(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = CL({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -39839,10 +39839,10 @@ function pme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
isExiting: t
}
}), b = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [x, S] = (0, F.useState)(i.trigger === "PreviewTrigger");
- LS(() => {
+ zS(() => {
g.current && S(b && !g.current.querySelector("[role=dialog]"));
}, [g, b]), (0, F.useEffect)(() => {
- x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || SC() !== "pointer") && g.current && !jS(g.current) && NC(g.current);
+ x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || CC() !== "pointer") && g.current && !NS(g.current) && PC(g.current);
}, [
x,
g,
@@ -39850,12 +39850,12 @@ function pme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
]);
let C = (0, F.useMemo)(() => {
let e = y.children;
- for (let t of [lz, ...r ?? []]) e = /*#__PURE__*/ F.createElement(t.Provider, { value: null }, e);
+ for (let t of [dz, ...r ?? []]) e = /*#__PURE__*/ F.createElement(t.Provider, { value: null }, e);
return e;
}, [y.children, r]), [w, T] = (0, F.useState)(null), E = (0, F.useCallback)(() => {
i.triggerRef.current && T(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- LS(E, [E]), AO({
+ zS(E, [E]), jO({
ref: y.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: E
});
@@ -39865,9 +39865,9 @@ function pme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
...y.style,
"--trigger-width": y.style?.["--trigger-width"] || w
};
- LS(() => yk(() => u(!0)), []);
- let O = /*#__PURE__*/ F.createElement(DL.div, {
- ...K(Hw(i, { global: !0 }), d),
+ zS(() => bk(() => u(!0)), []);
+ let O = /*#__PURE__*/ F.createElement(kL.div, {
+ ...K(Uw(i, { global: !0 }), d),
...y,
id: x ? i.id : void 0,
role: x ? "dialog" : void 0,
@@ -39882,17 +39882,17 @@ function pme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": m,
"data-entering": v || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ F.createElement(fk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(fme.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ F.createElement(pk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(ume.Provider, { value: {
...p,
placement: m,
ref: a
- } }, C), /*#__PURE__*/ F.createElement(fk, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ F.createElement(ED, {
+ } }, C), /*#__PURE__*/ F.createElement(pk, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ F.createElement(DD, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, O) : /*#__PURE__*/ F.createElement(ED, {
+ }, O) : /*#__PURE__*/ F.createElement(DD, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -39907,13 +39907,13 @@ function pme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ F.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(uz.Provider, { value: o }, O)));
+ }, /*#__PURE__*/ F.createElement(fz.Provider, { value: o }, O)));
}
// node_modules/react-aria-components/dist/private/Keyboard.mjs
-var mme = /*#__PURE__*/ (0, F.createContext)({});
+var fme = /*#__PURE__*/ (0, F.createContext)({});
// node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function fz(e) {
- let t = az(e), [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)([]), o = () => {
+function mz(e) {
+ let t = sz(e), [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)([]), o = () => {
a([]), t.close();
}, s = (e, t) => {
a((n) => t > n.length ? n : [...n.slice(0, t), e]);
@@ -39938,7 +39938,7 @@ function fz(e) {
};
}
// node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var hme = class {
+var pme = class {
constructor(e, { expandedKeys: t } = {}) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e, t ||= /* @__PURE__ */ new Set();
let n = (e) => {
@@ -39981,8 +39981,8 @@ var hme = class {
}
};
// node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function pz(e) {
- let { onExpandedChange: t } = e, [n, r] = eE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = qR(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = QR(e, (0, F.useCallback)((e) => new hme(e, { expandedKeys: n }), [n]), null);
+function hz(e) {
+ let { onExpandedChange: t } = e, [n, r] = tE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = YR(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = ez(e, (0, F.useCallback)((e) => new pme(e, { expandedKeys: n }), [n]), null);
return (0, F.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -39990,31 +39990,31 @@ function pz(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(gme(n, e));
+ r(mme(n, e));
},
setExpandedKeys: r,
- selectionManager: new YR(o, i)
+ selectionManager: new ZR(o, i)
};
}
-function gme(e, t) {
+function mme(e, t) {
let n = new Set(e);
return n.has(t) ? n.delete(t) : n.add(t), n;
}
// node_modules/react-aria-components/dist/private/Menu.mjs
-var mz = /*#__PURE__*/ (0, F.createContext)(null), hz = /*#__PURE__*/ (0, F.createContext)(null), gz = /*#__PURE__*/ (0, F.createContext)(null), _z = /*#__PURE__*/ (0, F.createContext)(null);
-function _me(e) {
- let t = fz(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = sD({
+var gz = /*#__PURE__*/ (0, F.createContext)(null), _z = /*#__PURE__*/ (0, F.createContext)(null), vz = /*#__PURE__*/ (0, F.createContext)(null), yz = /*#__PURE__*/ (0, F.createContext)(null);
+function hme(e) {
+ let t = mz(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = cD({
...e,
type: "menu"
}, t, n), a = (0, F.useRef)(null);
- return tw() ? null : /*#__PURE__*/ F.createElement(bL, { values: [
- [mz, {
+ return nw() ? null : /*#__PURE__*/ F.createElement(SL, { values: [
+ [gz, {
...i,
ref: a
}],
- [Cz, t],
- [gz, t],
- [lz, {
+ [Tz, t],
+ [vz, t],
+ [dz, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -40022,14 +40022,14 @@ function _me(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ F.createElement(Ase, {
+ ] }, /*#__PURE__*/ F.createElement(kse, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var vme = /*#__PURE__*/ (0, F.createContext)(null);
-(class extends dS {
+var gme = /*#__PURE__*/ (0, F.createContext)(null);
+(class extends pS {
static {
this.type = "submenutrigger";
}
@@ -40042,24 +40042,24 @@ var vme = /*#__PURE__*/ (0, F.createContext)(null);
return null;
}
});
-var yme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = CL(e, t, mz), /*#__PURE__*/ F.createElement(aw, { content: /*#__PURE__*/ F.createElement(fw, e) }, (n) => /*#__PURE__*/ F.createElement(bme, {
+var _me = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = TL(e, t, gz), /*#__PURE__*/ F.createElement(ow, { content: /*#__PURE__*/ F.createElement(pw, e) }, (n) => /*#__PURE__*/ F.createElement(vme, {
props: e,
collection: n,
menuRef: t
}));
});
-function bme({ props: e, collection: t, menuRef: n }) {
- [e, n] = CL(e, n, OL);
- let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = pz({
+function vme({ props: e, collection: t, menuRef: n }) {
+ [e, n] = TL(e, n, AL);
+ let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = hz({
...e,
collection: a,
children: void 0
- }), s = (0, F.useContext)(gz), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(NL), { menuProps: u } = Jse({
+ }), s = (0, F.useContext)(vz), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(FL), { menuProps: u } = qse({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = xL({
+ }, o, n), d = CL({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -40069,36 +40069,36 @@ function bme({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = Hw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(fT, null, /*#__PURE__*/ F.createElement(DL.div, {
+ let p = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(pT, null, /*#__PURE__*/ F.createElement(kL.div, {
...K(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [hz, o],
- [UR, { elementType: "div" }],
- [AL, {
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [_z, o],
+ [GR, { elementType: "div" }],
+ [ML, {
name: "MenuSection",
- render: vz
+ render: bz
}],
- [vme, {
+ [gme, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [bz, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
- [OL, null],
- [kL, null],
- [_z, o.selectionManager],
- [gz, s ?? fz({})]
- ] }, /*#__PURE__*/ F.createElement(VR, null, /*#__PURE__*/ F.createElement(l, {
+ [Sz, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [AL, null],
+ [jL, null],
+ [yz, o.selectionManager],
+ [vz, s ?? mz({})]
+ ] }, /*#__PURE__*/ F.createElement(UR, null, /*#__PURE__*/ F.createElement(l, {
collection: o.collection,
- persistedKeys: PL(o.selectionManager.focusedKey),
+ persistedKeys: IL(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var xme = class extends YR {
+var yme = class extends ZR {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -40118,11 +40118,11 @@ var xme = class extends YR {
return this.parent.childFocusStrategy;
}
};
-function vz(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, F.useContext)(hz), { CollectionBranch: a } = (0, F.useContext)(NL), [o, s] = wL(), { headingProps: c, groupProps: l } = Xse({
+function bz(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, F.useContext)(_z), { CollectionBranch: a } = (0, F.useContext)(FL), [o, s] = EL(), { headingProps: c, groupProps: l } = Yse({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = xL({
+ }), u = CL({
...e,
id: void 0,
children: void 0,
@@ -40130,31 +40130,31 @@ function vz(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, F.useContext)(_z), f = qR(e), p = e.selectionMode == null ? d : new xme(d, f), m = SL(bz)?.shouldCloseOnSelect, h = Hw(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ F.createElement(DL.section, {
+ }), d = (0, F.useContext)(yz), f = YR(e), p = e.selectionMode == null ? d : new yme(d, f), m = wL(Sz)?.shouldCloseOnSelect, h = Uw(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ F.createElement(kL.section, {
...K(h, u, l),
ref: t
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [BR, {
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [HR, {
...c,
ref: o
}],
- [_z, p],
- [bz, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [yz, p],
+ [Sz, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ F.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var yz = /*#__PURE__*/ lw(lae, vz), bz = /*#__PURE__*/ (0, F.createContext)(null), xz = /*#__PURE__*/ cw(mS, function(e, t, n) {
- [e, t] = CL(e, t, bz);
- let r = SL(bz)?.id, i = (0, F.useContext)(hz), a = YC(t), o = (0, F.useContext)(_z), { isVirtualized: s } = (0, F.useContext)(NL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Yse({
+var xz = /*#__PURE__*/ uw(sae, bz), Sz = /*#__PURE__*/ (0, F.createContext)(null), Cz = /*#__PURE__*/ lw(gS, function(e, t, n) {
+ [e, t] = TL(e, t, Sz);
+ let r = wL(Sz)?.id, i = (0, F.useContext)(_z), a = XC(t), o = (0, F.useContext)(yz), { isVirtualized: s } = (0, F.useContext)(FL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Jse({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = MD({ isDisabled: f.isDisabled }), h = xL({
+ }, i, a), { hoverProps: p, isHovered: m } = ND({ isDisabled: f.isDisabled }), h = CL({
...e,
id: void 0,
children: n.rendered,
@@ -40168,7 +40168,7 @@ var yz = /*#__PURE__*/ lw(lae, vz), bz = /*#__PURE__*/ (0, F.createContext)(null
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? DL.a : DL.div, _ = Hw(e, { global: !0 });
+ }), g = e.href ? kL.a : kL.div, _ = Uw(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(g, {
...K(_, h, c, p),
ref: a,
@@ -40181,19 +40181,19 @@ var yz = /*#__PURE__*/ lw(lae, vz), bz = /*#__PURE__*/ (0, F.createContext)(null
"data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,
"data-has-submenu": !!e["aria-haspopup"] || void 0,
"data-open": e["aria-expanded"] === "true" || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [VL, { slots: {
- [yL]: l,
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [UL, { slots: {
+ [xL]: l,
label: l,
description: u
} }],
- [mme, d],
- [HR, { isSelected: f.isSelected }]
+ [fme, d],
+ [WR, { isSelected: f.isSelected }]
] }, h.children));
});
-cw(pS, function(e, t, n) {
- let r = (0, F.useContext)(hz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- tz((0, F.useMemo)(() => ({
+lw(hS, function(e, t, n) {
+ let r = (0, F.useContext)(_z), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ rz((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -40203,7 +40203,7 @@ cw(pS, function(e, t, n) {
o,
r?.collection
]), c);
- let l = xL({
+ let l = CL({
...s,
id: void 0,
children: n.rendered,
@@ -40216,7 +40216,7 @@ cw(pS, function(e, t, n) {
width: 0,
height: 0
},
- inert: WR(!0)
+ inert: KR(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -40225,89 +40225,89 @@ cw(pS, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(DL.div, {
- ...K(Hw(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(kL.div, {
+ ...K(Uw(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
}, l.children)));
});
// node_modules/react-aria-components/dist/private/Dialog.mjs
-var Sz = /*#__PURE__*/ (0, F.createContext)(null), Cz = /*#__PURE__*/ (0, F.createContext)(null), wz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var wz = /*#__PURE__*/ (0, F.createContext)(null), Tz = /*#__PURE__*/ (0, F.createContext)(null), Ez = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = CL(e, t, Sz);
- let { dialogProps: r, titleProps: i, contentProps: a } = Mse({
+ [e, t] = TL(e, t, wz);
+ let { dialogProps: r, titleProps: i, contentProps: a } = jse({
...e,
"aria-labelledby": n
- }, t), o = (0, F.useContext)(Cz);
+ }, t), o = (0, F.useContext)(Tz);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = xL({
+ let s = CL({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = Hw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(DL.section, {
+ }), c = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(kL.section, {
...K(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [zL, { slots: {
- [yL]: {},
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [VL, { slots: {
+ [xL]: {},
title: {
...i,
level: 2
}
} }],
- [VL, { slots: {
- [yL]: {},
+ [UL, { slots: {
+ [xL]: {},
description: a
} }],
- [LL, { slots: {
- [yL]: {},
+ [zL, { slots: {
+ [xL]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), Tz = typeof document < "u" && window.visualViewport;
-function Sme() {
- let e = oC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
+}), Dz = typeof document < "u" && window.visualViewport;
+function bme() {
+ let e = sC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
width: 0,
height: 0
- } : Ez());
+ } : Oz());
return (0, F.useEffect)(() => {
let e = (e) => {
r((t) => e.width === t.width && e.height === t.height ? t : e);
}, n = () => {
- Tz && Tz.scale > 1 || e(Ez());
+ Dz && Dz.scale > 1 || e(Oz());
}, i = (n) => {
- Tz && Tz.scale > 1 || Cw(G(n)) && (t.current = yk((t) => {
+ Dz && Dz.scale > 1 || ww(G(n)) && (t.current = bk((t) => {
t || e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(Ez()), qS() && JS() && window.addEventListener("blur", i, !0), Tz ? Tz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
- t.current?.(), qS() && JS() && window.removeEventListener("blur", i, !0), Tz ? Tz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
+ return e(Oz()), YS() && XS() && window.addEventListener("blur", i, !0), Dz ? Dz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
+ t.current?.(), YS() && XS() && window.removeEventListener("blur", i, !0), Dz ? Dz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
};
}, []), n;
}
-function Ez() {
+function Oz() {
return {
- width: Tz ? Math.min(Tz.width * Tz.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: Tz ? Tz.height * Tz.scale : document.documentElement.clientHeight
+ width: Dz ? Math.min(Dz.width * Dz.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: Dz ? Dz.height * Dz.scale : document.documentElement.clientHeight
};
}
// node_modules/react-aria-components/dist/private/Modal.mjs
-var Cme = /*#__PURE__*/ (0, F.createContext)(null), Dz = /*#__PURE__*/ (0, F.createContext)(null), wme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- if ((0, F.useContext)(Dz)) return /*#__PURE__*/ F.createElement(kz, {
+var xme = /*#__PURE__*/ (0, F.createContext)(null), kz = /*#__PURE__*/ (0, F.createContext)(null), Sme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ if ((0, F.useContext)(kz)) return /*#__PURE__*/ F.createElement(jz, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ F.createElement(Oz, {
+ return /*#__PURE__*/ F.createElement(Az, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -40317,15 +40317,15 @@ var Cme = /*#__PURE__*/ (0, F.createContext)(null), Dz = /*#__PURE__*/ (0, F.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ F.createElement(kz, {
+ }, /*#__PURE__*/ F.createElement(jz, {
...f,
modalRef: t
}, s));
});
-function Tme(e, t) {
- [e, t] = CL(e, t, Cme);
- let n = (0, F.useContext)(Cz), r = az(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = YC(t), o = (0, F.useRef)(null), s = sz(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = sz(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = oC();
- return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(Eme, {
+function Cme(e, t) {
+ [e, t] = TL(e, t, xme);
+ let n = (0, F.useContext)(Tz), r = sz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = XC(t), o = (0, F.useRef)(null), s = lz(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = lz(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = sC();
+ return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(wme, {
...e,
state: i,
isExiting: u,
@@ -40334,12 +40334,12 @@ function Tme(e, t) {
onExitRef: c
});
}
-var Oz = /*#__PURE__*/ (0, F.forwardRef)(Tme);
-function Eme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = oz(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = sce({
+var Az = /*#__PURE__*/ (0, F.forwardRef)(Cme);
+function wme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
+ let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = cz(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = oce({
...n,
isEntering: c
- }, i, r), d = (0, F.useContext)(Sz), f = t ? Dme(d, { isEntering: c }) : d, p = xL({
+ }, i, r), d = (0, F.useContext)(wz), f = t ? Tme(d, { isEntering: c }) : d, p = CL({
...n,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -40347,9 +40347,9 @@ function Eme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isExiting: n.isExiting,
state: i
}
- }), m = Sme(), h, g;
+ }), m = bme(), h, g;
if (typeof document < "u") {
- let e = jT(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = MT(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
h = e.scrollWidth - t, g = e.scrollHeight - n;
}
let _ = {
@@ -40359,18 +40359,18 @@ function Eme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
"--page-width": h === void 0 ? void 0 : h + "px",
"--page-height": g === void 0 ? void 0 : g + "px"
};
- return LS(() => yk(() => o(!0)), []), /*#__PURE__*/ F.createElement(ED, {
+ return zS(() => bk(() => o(!0)), []), /*#__PURE__*/ F.createElement(DD, {
isExiting: n.isExiting,
portalContainer: e
- }, /*#__PURE__*/ F.createElement(DL.div, {
- ...K(Hw(n, { global: !0 }), u),
+ }, /*#__PURE__*/ F.createElement(kL.div, {
+ ...K(Uw(n, { global: !0 }), u),
...p,
style: _,
ref: n.overlayRef,
"data-entering": s || void 0,
"data-exiting": n.isExiting || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [Dz, {
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [kz, {
modalProps: l,
modalRef: r,
isExiting: n.isExiting,
@@ -40378,11 +40378,11 @@ function Eme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isOpen: a,
isDismissable: n.isDismissable
}],
- [Cz, i],
- [Sz, f]
+ [Tz, i],
+ [wz, f]
] }, p.children)));
}
-function Dme(e, t) {
+function Tme(e, t) {
if (e && "slots" in e && e.slots) {
let n = {};
for (let r in e.slots) n[r] = {
@@ -40399,8 +40399,8 @@ function Dme(e, t) {
...t
};
}
-function kz(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(Dz), s = (0, F.useContext)(Cz), c = YC((0, F.useMemo)(() => BC(e.modalRef, n), [e.modalRef, n])), l = oz(c, o, e.onEnter), u = xL({
+function jz(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(kz), s = (0, F.useContext)(Tz), c = XC((0, F.useMemo)(() => VC(e.modalRef, n), [e.modalRef, n])), l = cz(c, o, e.onEnter), u = CL({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -40409,20 +40409,20 @@ function kz(e) {
state: s
}
});
- return LS(() => {
+ return zS(() => {
i && (i.current = e.onExit);
- }), /*#__PURE__*/ F.createElement(DL.div, {
- ...K(Hw(e, { global: !0 }), t),
+ }), /*#__PURE__*/ F.createElement(kL.div, {
+ ...K(Uw(e, { global: !0 }), t),
...u,
ref: c,
"data-entering": l || void 0,
"data-exiting": r || void 0
- }, a && /*#__PURE__*/ F.createElement(fk, { onDismiss: s.close }), u.children);
+ }, a && /*#__PURE__*/ F.createElement(pk, { onDismiss: s.close }), u.children);
}
// node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var Ome = Math.round(Math.random() * 1e10), kme = 0;
-function Ame(e) {
- let t = (0, F.useMemo)(() => e.name || `radio-group-${Ome}-${++kme}`, [e.name]), [n, r] = eE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = GT({
+var Eme = Math.round(Math.random() * 1e10), Dme = 0;
+function Ome(e) {
+ let t = (0, F.useMemo)(() => e.name || `radio-group-${Eme}-${++Dme}`, [e.name]), [n, r] = tE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = KT({
...e,
value: n
}), c = (t) => {
@@ -40444,16 +40444,16 @@ function Ame(e) {
};
}
// node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var jme = /*#__PURE__*/ (0, F.createContext)(null), Mme = /*#__PURE__*/ (0, F.createContext)(null), Az = /*#__PURE__*/ (0, F.createContext)(null), jz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, jme);
- let { validationBehavior: n } = SL(UL) || {}, r = e.validationBehavior ?? n ?? "native", i = Ame({
+var kme = /*#__PURE__*/ (0, F.createContext)(null), Ame = /*#__PURE__*/ (0, F.createContext)(null), Mz = /*#__PURE__*/ (0, F.createContext)(null), Nz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = TL(e, t, kme);
+ let { validationBehavior: n } = wL(GL) || {}, r = e.validationBehavior ?? n ?? "native", i = Ome({
...e,
validationBehavior: r
- }), [a, o] = wL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = xce({
+ }), [a, o] = EL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = bce({
...e,
label: o,
validationBehavior: r
- }, i), f = xL({
+ }, i), f = CL({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -40464,8 +40464,8 @@ var jme = /*#__PURE__*/ (0, F.createContext)(null), Mme = /*#__PURE__*/ (0, F.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = Hw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(DL.div, {
+ }), p = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(kL.div, {
...K(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -40474,39 +40474,39 @@ var jme = /*#__PURE__*/ (0, F.createContext)(null), Mme = /*#__PURE__*/ (0, F.cr
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [Az, i],
- [FL, {
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [Mz, i],
+ [LL, {
...c,
ref: a,
elementType: "span"
}],
- [VL, { slots: {
+ [UL, { slots: {
description: l,
errorMessage: u
} }],
- [HL, d]
- ] }, /*#__PURE__*/ F.createElement(VR, null, f.children)));
-}), Mz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [WL, d]
+ ] }, /*#__PURE__*/ F.createElement(UR, null, f.children)));
+}), Pz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = CL(r, t, Mme);
- let i = F.useContext(Az), a = YC((0, F.useMemo)(() => BC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = bce({
- ...TL(e),
+ [e, t] = TL(r, t, Ame);
+ let i = F.useContext(Mz), a = XC((0, F.useMemo)(() => VC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = yce({
+ ...DL(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ F.createElement(Nz.Provider, { value: {
+ return /*#__PURE__*/ F.createElement(Fz.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ F.createElement(Nme, {
+ } }, /*#__PURE__*/ F.createElement(jme, {
...e,
ref: t
}));
-}), Nz = /*#__PURE__*/ (0, F.createContext)(null), Nme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, F.useContext)(Nz), l = F.useContext(Az), { isFocused: u, isFocusVisible: d, focusProps: f } = OD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = MD({
+}), Fz = /*#__PURE__*/ (0, F.createContext)(null), jme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, F.useContext)(Fz), l = F.useContext(Mz), { isFocused: u, isFocusVisible: d, focusProps: f } = kD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = ND({
...e,
isDisabled: p
- }), g = xL({
+ }), g = CL({
...e,
defaultClassName: s,
values: {
@@ -40520,8 +40520,8 @@ var jme = /*#__PURE__*/ (0, F.createContext)(null), Mme = /*#__PURE__*/ (0, F.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = Hw(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(DL.label, {
+ }), _ = Uw(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(kL.label, {
...K(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -40533,18 +40533,18 @@ var jme = /*#__PURE__*/ (0, F.createContext)(null), Mme = /*#__PURE__*/ (0, F.cr
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(uE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(dE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, f),
ref: c
})), g.children);
});
// node_modules/react-stately/dist/private/select/useSelectState.mjs
-function Pme(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = az(e), [i, a] = (0, F.useState)(null), o = (0, F.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function Mme(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = sz(e), [i, a] = (0, F.useState)(null), o = (0, F.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = eE((0, F.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = tE((0, F.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -40556,12 +40556,12 @@ function Pme(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = $R({
+ }, d = tz({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, F.useMemo)(() => Fme(l), [l]),
+ selectedKeys: (0, F.useMemo)(() => Nme(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -40571,7 +40571,7 @@ function Pme(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, F.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = GT({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, F.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = KT({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, F.useState)(!1), [_] = (0, F.useState)(l);
@@ -40598,15 +40598,15 @@ function Pme(e) {
setFocused: g
};
}
-function Fme(e) {
+function Nme(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
// node_modules/react-aria-components/dist/private/Select.mjs
-function Ime(e) {
+function Pme(e) {
return e && e.__esModule ? e.default : e;
}
-var Pz = /*#__PURE__*/ (0, F.createContext)(null), Fz = /*#__PURE__*/ (0, F.createContext)(null), Lme = /*#__PURE__*/ ew(function(e, t) {
- [e, t] = CL(e, t, Pz);
+var Iz = /*#__PURE__*/ (0, F.createContext)(null), Lz = /*#__PURE__*/ (0, F.createContext)(null), Fme = /*#__PURE__*/ tw(function(e, t) {
+ [e, t] = TL(e, t, Iz);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, F.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -40621,24 +40621,24 @@ var Pz = /*#__PURE__*/ (0, F.createContext)(null), Fz = /*#__PURE__*/ (0, F.crea
i,
a
]);
- return /*#__PURE__*/ F.createElement(aw, { content: o }, (n) => /*#__PURE__*/ F.createElement(zme, {
+ return /*#__PURE__*/ F.createElement(ow, { content: o }, (n) => /*#__PURE__*/ F.createElement(Lme, {
props: e,
collection: n,
selectRef: t
}));
-}), Rme = [
- FL,
+}), Ime = [
LL,
- VL
+ zL,
+ UL
];
-function zme({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = SL(UL) || {}, i = e.validationBehavior ?? r ?? "native", a = Pme({
+function Lme({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = wL(GL) || {}, i = e.validationBehavior ?? r ?? "native", a = Mme({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = OD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = wL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Sce({
- ...TL(e),
+ }), { isFocusVisible: o, focusProps: s } = kD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = EL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = xce({
+ ...DL(e),
label: u,
validationBehavior: i
}, a, c), y = (0, F.useMemo)(() => ({
@@ -40655,48 +40655,48 @@ function zme({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = xL({
+ ]), b = CL({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = Hw(e, { global: !0 });
+ }), x = Uw(e, { global: !0 });
delete x.id;
let S = (0, F.useRef)(null);
- return /*#__PURE__*/ F.createElement(bL, { values: [
- [Pz, e],
- [Fz, a],
- [Iz, p],
- [FL, {
+ return /*#__PURE__*/ F.createElement(SL, { values: [
+ [Iz, e],
+ [Lz, a],
+ [Rz, p],
+ [LL, {
...d,
ref: l,
elementType: "span"
}],
- [LL, {
+ [zL, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [Cz, a],
- [lz, {
+ [Tz, a],
+ [dz, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: Rme
+ clearContexts: Ime
}],
- [nz, {
+ [iz, {
...m,
ref: S
}],
- [rz, a],
- [VL, { slots: {
+ [az, a],
+ [UL, { slots: {
description: h,
errorMessage: g
} }],
- [HL, v]
- ] }, /*#__PURE__*/ F.createElement(DL.div, {
+ [WL, v]
+ ] }, /*#__PURE__*/ F.createElement(kL.div, {
...K(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -40706,14 +40706,14 @@ function zme({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ F.createElement(wce, {
+ }, b.children, /*#__PURE__*/ F.createElement(Cce, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Bme = /*#__PURE__*/ ew(function(e, t) {
- [e, t] = CL(e, t, Iz);
- let n = (0, F.useContext)(Fz), { placeholder: r } = SL(Pz), i = n.selectedItems.map((e) => {
+for (var Rz = /*#__PURE__*/ (0, F.createContext)(null), Rme = /*#__PURE__*/ tw(function(e, t) {
+ [e, t] = TL(e, t, Rz);
+ let n = (0, F.useContext)(Lz), { placeholder: r } = wL(Iz), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -40725,7 +40725,7 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Bme = /*#__PURE__*/ ew(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = Nse(), o = (0, F.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, F.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = Mse(), o = (0, F.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, F.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
@@ -40740,7 +40740,7 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Bme = /*#__PURE__*/ ew(f
a,
o,
i
- ]), u = Bw(Ime(FR), "react-aria-components"), d = xL({
+ ]), u = Vw(Pme(LR), "react-aria-components"), d = CL({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -40751,33 +40751,33 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Bme = /*#__PURE__*/ ew(f
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = Hw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(DL.span, {
+ }), f = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(kL.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ F.createElement(VL.Provider, { value: void 0 }, d.children));
-}), Vme = /*#__PURE__*/ (0, F.createContext)(null), Lz = /*#__PURE__*/ (0, F.createContext)(null), Hme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ F.createElement(UL.Provider, { value: void 0 }, d.children));
+}), zme = /*#__PURE__*/ (0, F.createContext)(null), zz = /*#__PURE__*/ (0, F.createContext)(null), Bme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = CL(r, t, Vme);
- let i = YC((0, F.useMemo)(() => BC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = tE(e), o = Ece({
- ...TL(e),
+ [e, t] = TL(r, t, zme);
+ let i = XC((0, F.useMemo)(() => VC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = nE(e), o = Tce({
+ ...DL(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ F.createElement(bL, { values: [[Lz, a], [Rz, {
+ return /*#__PURE__*/ F.createElement(SL, { values: [[zz, a], [Bz, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ F.createElement(Ume, {
+ }]] }, /*#__PURE__*/ F.createElement(Vme, {
...e,
ref: t
}));
-}), Rz = /*#__PURE__*/ (0, F.createContext)(null), Ume = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, F.useContext)(Rz), { isFocused: f, isFocusVisible: p, focusProps: m } = OD(), h = a || o, g = (0, F.useContext)(Lz), { hoverProps: _, isHovered: v } = MD({
+}), Bz = /*#__PURE__*/ (0, F.createContext)(null), Vme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isRequired: d } = (0, F.useContext)(Bz), { isFocused: f, isFocusVisible: p, focusProps: m } = kD(), h = a || o, g = (0, F.useContext)(zz), { hoverProps: _, isHovered: v } = ND({
...e,
isDisabled: h
- }), y = xL({
+ }), y = CL({
...e,
defaultClassName: u,
values: {
@@ -40792,8 +40792,8 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Bme = /*#__PURE__*/ ew(f
isRequired: d || !1,
state: g
}
- }), b = Hw(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(DL.label, {
+ }), b = Uw(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(kL.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -40806,11 +40806,11 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Bme = /*#__PURE__*/ ew(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ F.createElement(uE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(dE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...K(r, m),
ref: l
})), y.children);
-}), zz = 10, Bz = 5, Vz = class {
+}), Vz = 10, Hz = 5, Uz = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -40820,7 +40820,7 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Bme = /*#__PURE__*/ ew(f
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > Bz && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > zz && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > Hz && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Vz && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
let t = this.state.collection.getKeyBefore(e.key);
for (; t != null;) {
let e = this.state.collection.getItem(t);
@@ -40899,11 +40899,11 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Bme = /*#__PURE__*/ ew(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > Bz && i) {
+ if (Math.abs(r - c.lastSwitchY) > Hz && i) {
let t = c.preferredTargetIndex || 0;
i === "down" && t === 0 ? c.preferredTargetIndex = e.length - 1 : i === "up" && t === e.length - 1 && (c.preferredTargetIndex = 0), o.xDirection = null;
}
- if (l > zz && a) {
+ if (l > Vz && a) {
let t = c.preferredTargetIndex || 0;
a === "left" ? this.direction === "ltr" ? t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n) : t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : a === "right" && (this.direction === "ltr" ? t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n)), o.yDirection = null;
}
@@ -40918,7 +40918,7 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Bme = /*#__PURE__*/ ew(f
boundaryContext: null
};
}
-}, Wme = class {
+}, Hme = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -40988,8 +40988,8 @@ for (var Iz = /*#__PURE__*/ (0, F.createContext)(null), Bme = /*#__PURE__*/ ew(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, Hz = "row-header-column-" + Math.random().toString(36).slice(2), Uz = "row-header-column-" + Math.random().toString(36).slice(2); Hz === Uz;) Uz = "row-header-column-" + Math.random().toString(36).slice(2);
-function Wz(e, t) {
+}, Wz = "row-header-column-" + Math.random().toString(36).slice(2), Gz = "row-header-column-" + Math.random().toString(36).slice(2); Wz === Gz;) Gz = "row-header-column-" + Math.random().toString(36).slice(2);
+function Kz(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -41073,13 +41073,13 @@ function Wz(e, t) {
textValue: ""
}));
}
-var Gme = class extends Wme {
+var Ume = class extends Hme {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: Hz,
+ key: Wz,
value: null,
textValue: "",
level: 0,
@@ -41094,7 +41094,7 @@ var Gme = class extends Wme {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: Uz,
+ key: Gz,
value: null,
textValue: "",
level: 0,
@@ -41121,7 +41121,7 @@ var Gme = class extends Wme {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = Wz(s, a);
+ let l = Kz(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -41147,10 +41147,10 @@ var Gme = class extends Wme {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return pD(this.body.childNodes)?.key ?? null;
+ return mD(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return hD(this.body.childNodes)?.key ?? null;
+ return gD(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -41181,15 +41181,15 @@ var Gme = class extends Wme {
}
};
// node_modules/react-stately/dist/private/table/TableUtils.mjs
-function Kme(e) {
+function Wme(e) {
return e != null && (!isNaN(e) || String(e).match(/^(\d+)(?=%$)/) !== null);
}
-function qme(e) {
+function Gme(e) {
if (!e || typeof e == "number") return 1;
let t = e.match(/^(.+)(?=fr$)/);
return t ? parseFloat(t[0]) : 1;
}
-function Gz(e, t) {
+function qz(e, t) {
if (typeof e == "string") {
let n = e.match(/^(\d+)(?=%$)/);
if (!n) throw Error("Only percentages or numbers are supported for static column widths");
@@ -41197,19 +41197,19 @@ function Gz(e, t) {
}
return e;
}
-function Kz(e, t) {
- return e == null ? 2 ** 53 - 1 : Gz(e, t);
+function Jz(e, t) {
+ return e == null ? 2 ** 53 - 1 : qz(e, t);
}
-function qz(e, t) {
- return e == null ? 0 : Gz(e, t);
+function Yz(e, t) {
+ return e == null ? 0 : qz(e, t);
}
-function Jme(e, t, n, r, i) {
+function Kme(e, t, n, r, i) {
let a = e, o = Math.floor(e), s = e - o > 0;
e = o;
let c = !1, l = t.map((t, a) => {
let o = n.get(t.key) == null ? t.width ?? t.defaultWidth ?? r?.(a) ?? "1fr" : n.get(t.key) ?? "1fr", s = !1, l = 0, u = 0, d = 0;
- Kme(o) ? (l = Gz(o, e), s = !0) : (u = qme(o), u <= 0 && (s = !0));
- let f = qz(t.minWidth ?? i?.(a) ?? 0, e), p = Kz(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
+ Wme(o) ? (l = qz(o, e), s = !0) : (u = Gme(o), u <= 0 && (s = !0));
+ let f = Yz(t.minWidth ?? i?.(a) ?? 0, e), p = Jz(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
return s ? d = m : l > m && (s = !0, d = m), s || (c = !0), {
frozen: s,
baseSize: l,
@@ -41243,14 +41243,14 @@ function Jme(e, t, n, r, i) {
i === 0 || Math.sign(i) === Math.sign(e.violation) ? e.frozen = !0 : e.frozen || (c = !0);
});
}
- let u = Yme(l);
+ let u = qme(l);
if (s && u.length > 0) {
let e = a.toString().split(".")[1], t = u[u.length - 1].toString();
u[u.length - 1] = Number(t + "." + e);
}
return u;
}
-function Yme(e) {
+function qme(e) {
let t = 0, n = 0, r = [];
return e.forEach(function(e) {
let i = e.targetMainSize, a = Math.round(i + t) - n;
@@ -41258,7 +41258,7 @@ function Yme(e) {
}), r;
}
// node_modules/react-stately/dist/private/table/TableColumnLayout.mjs
-var Xme = class {
+var Jme = class {
constructor(e) {
this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), this.getDefaultWidth = e?.getDefaultWidth ?? (() => "1fr"), this.getDefaultMinWidth = e?.getDefaultMinWidth ?? (() => 75);
}
@@ -41287,18 +41287,18 @@ var Xme = class {
}), o;
}
buildColumnWidths(e, t, n) {
- return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Jme(e, t.columns.map((e) => ({
+ return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Kme(e, t.columns.map((e) => ({
...e.props,
key: e.key
})), n, (e) => this.getDefaultWidth(t.columns[e]), (e) => this.getDefaultMinWidth(t.columns[e])).forEach((n, r) => {
let i = t.columns[r].key, a = t.columns[r];
- this.columnWidths.set(i, n), this.columnMinWidths.set(i, qz(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, Kz(a.props.maxWidth, e));
+ this.columnWidths.set(i, n), this.columnMinWidths.set(i, Yz(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, Jz(a.props.maxWidth, e));
}), this.columnWidths;
}
};
// node_modules/react-stately/dist/private/table/useTableColumnResizeState.mjs
-function Zme(e, t) {
- let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new Xme({
+function Yme(e, t) {
+ let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new Jme({
getDefaultWidth: n,
getDefaultMinWidth: r
}), [n, r]), [c, l] = (0, F.useMemo)(() => s.splitColumnsIntoControlledAndUncontrolled(t.collection.columns), [t.collection.columns, s]), [u, d] = (0, F.useState)(() => s.getInitialUncontrolledWidths(l)), [f, p] = (0, F.useState)(t.collection.columns);
@@ -41349,19 +41349,19 @@ function Zme(e, t) {
]);
}
// node_modules/react-stately/dist/private/grid/useGridState.mjs
-function Qme(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || qR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function Xme(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || YR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = fD(n, t);
- e = r === "last" ? hD(i)?.key ?? null : pD(i)?.key ?? null;
+ let i = pD(n, t);
+ e = r === "last" ? gD(i)?.key ?? null : mD(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, F.useMemo)(() => new YR(t, r), [t, r]), s = (0, F.useRef)(null);
+ let o = (0, F.useMemo)(() => new ZR(t, r), [t, r]), s = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
if (r.focusedKey != null && s.current && !t.getItem(r.focusedKey)) {
let e = s.current.getItem(r.focusedKey), n = e?.parentKey != null && (e.type === "cell" || e.type === "rowheader" || e.type === "column") ? s.current.getItem(e.parentKey) : e;
@@ -41381,7 +41381,7 @@ function Qme(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...fD(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...pD(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
r.setFocusedKey(a);
} else r.setFocusedKey(null);
}
@@ -41399,11 +41399,11 @@ function Qme(e) {
};
}
// node_modules/react-stately/dist/private/table/useTableState.mjs
-var $me = {
+var Zme = {
ascending: "descending",
descending: "ascending"
};
-function ehe(e) {
+function Qme(e) {
let [t, n] = (0, F.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, F.useMemo)(() => ({
showSelectionCheckboxes: i && r !== "none",
showDragButtons: a,
@@ -41414,11 +41414,11 @@ function ehe(e) {
i,
r,
a
- ]), c = QR(e, (0, F.useCallback)((e) => new Gme(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Qme({
+ ]), c = ez(e, (0, F.useCallback)((e) => new Ume(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Xme({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = eE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = tE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
return {
collection: c,
disabledKeys: l,
@@ -41430,7 +41430,7 @@ function ehe(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? $me[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? Zme[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -41443,7 +41443,7 @@ function ehe(e) {
treeColumn: o
};
}
-function the(e, t) {
+function $me(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -41452,10 +41452,10 @@ function the(e, t) {
};
}
// node_modules/react-aria-components/dist/private/Table.mjs
-function nhe(e) {
+function ehe(e) {
return e && e.__esModule ? e.default : e;
}
-var rhe = class extends hS {
+var the = class extends _S {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -41470,7 +41470,7 @@ var rhe = class extends hS {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new nB(-2);
+ return new iB(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -41496,7 +41496,7 @@ var rhe = class extends hS {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = Wz(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
+ if (this.headerRows = Kz(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");
}
get columnCount() {
return this.columns.length;
@@ -41577,28 +41577,28 @@ var rhe = class extends hS {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Qz(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
+ super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new eB(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Jz = /*#__PURE__*/ (0, F.createContext)(null), ihe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = YC(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
- LS(() => {
+}, Xz = /*#__PURE__*/ (0, F.createContext)(null), nhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let n = XC(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
+ zS(() => {
let e = r.current;
- for (; e && e !== n.current && !jT(e);) e = e.parentElement;
+ for (; e && e !== n.current && !MT(e);) e = e.parentElement;
i.current = e;
- }, [n]), AO({
+ }, [n]), jO({
ref: i,
box: "border-box",
onResize() {
o(i.current?.clientWidth ?? 0);
}
- }), LS(() => {
+ }), zS(() => {
o(i.current?.clientWidth ?? 0);
}, []);
let s = (0, F.useMemo)(() => ({
tableRef: r,
scrollRef: i,
tableWidth: a,
- useTableColumnResizeState: Zme,
+ useTableColumnResizeState: Yme,
onResizeStart: e.onResizeStart,
onResize: e.onResize,
onResizeEnd: e.onResizeEnd
@@ -41609,17 +41609,17 @@ var rhe = class extends hS {
e.onResize,
e.onResizeEnd
]);
- return /*#__PURE__*/ F.createElement(DL.div, {
+ return /*#__PURE__*/ F.createElement(kL.div, {
render: e.render,
- ...Hw(e, { global: !0 }),
+ ...Uw(e, { global: !0 }),
ref: n,
className: e.className || "react-aria-ResizableTableContainer",
style: e.style,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(Jz.Provider, { value: s }, e.children));
-}), ahe = /*#__PURE__*/ (0, F.createContext)(null), Yz = /*#__PURE__*/ (0, F.createContext)(null), Xz = /*#__PURE__*/ (0, F.createContext)(null), ohe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, ahe);
- let n = qR(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, F.useMemo)(() => ({
+ }, /*#__PURE__*/ F.createElement(Xz.Provider, { value: s }, e.children));
+}), rhe = /*#__PURE__*/ (0, F.createContext)(null), Zz = /*#__PURE__*/ (0, F.createContext)(null), Qz = /*#__PURE__*/ (0, F.createContext)(null), ihe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = TL(e, t, rhe);
+ let n = YR(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, F.useMemo)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -41629,26 +41629,26 @@ var rhe = class extends hS {
i,
a,
o
- ]), c = /*#__PURE__*/ F.createElement(lhe.Provider, { value: s }, /*#__PURE__*/ F.createElement(fw, e));
- return /*#__PURE__*/ F.createElement(aw, {
+ ]), c = /*#__PURE__*/ F.createElement(she.Provider, { value: s }, /*#__PURE__*/ F.createElement(pw, e));
+ return /*#__PURE__*/ F.createElement(ow, {
content: c,
- createCollection: () => new rhe()
- }, (r) => /*#__PURE__*/ F.createElement(che, {
+ createCollection: () => new the()
+ }, (r) => /*#__PURE__*/ F.createElement(ohe, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), she = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+}), ahe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(FL);
+ return n ? /*#__PURE__*/ F.createElement(kL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.table, {
+ }) : /*#__PURE__*/ F.createElement(kL.table, {
...e,
ref: t
});
-}), Zz = {
+}), $z = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -41658,26 +41658,26 @@ var rhe = class extends hS {
rtl: "ArrowRight"
}
};
-function che({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = CL(e, t, OL);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(Jz);
- t = YC((0, F.useMemo)(() => BC(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = eE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+function ohe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = TL(e, t, AL);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(Xz);
+ t = XC((0, F.useMemo)(() => VC(t, c?.tableRef), [t, c?.tableRef]));
+ let [l, u] = tE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, F.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = ehe({
+ let d = Qme({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = the(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(NL), { dragAndDropHooks: _ } = e, { gridProps: v } = jce({
+ }), f = $me(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(FL), { dragAndDropHooks: _ } = e, { gridProps: v } = Ace({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, F.useRef)(b), (0, F.useRef)(x), (0, F.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = Pw(), [k] = (0, F.useState)(() => new Vz());
+ let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = Fw(), [k] = (0, F.useState)(() => new Uz());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -41692,7 +41692,7 @@ function che({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new CE({
+ let e = new wE({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -41712,12 +41712,12 @@ function che({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
let t = C?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = d.collection.getItem(t.key);
- (e.key === Zz.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Zz.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === $z.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === $z.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: A, isFocused: j, isFocusVisible: M } = OD(), ee = xL({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = kD(), ee = CL({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -41733,19 +41733,19 @@ function che({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let ne = Hw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(bL, { values: [
- [Yz, f],
- [Xz, P],
- [IR, {
+ let ne = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(SL, { values: [
+ [Zz, f],
+ [Qz, P],
+ [RR, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [LR, { render: yhe }],
- [OL, null],
- [kL, null]
- ] }, /*#__PURE__*/ F.createElement(fT, null, /*#__PURE__*/ F.createElement(she, {
+ [zR, { render: _he }],
+ [AL, null],
+ [jL, null]
+ ] }, /*#__PURE__*/ F.createElement(pT, null, /*#__PURE__*/ F.createElement(ahe, {
...K(ne, ee, v, A, w?.collectionProps),
style: te,
ref: t,
@@ -41755,55 +41755,55 @@ function che({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": j || void 0,
"data-focus-visible": M || void 0
- }, /*#__PURE__*/ F.createElement(VR, null, /*#__PURE__*/ F.createElement(g, {
+ }, /*#__PURE__*/ F.createElement(UR, null, /*#__PURE__*/ F.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: zR(y, _, C)
+ persistedKeys: VR(y, _, C)
})))), E);
}
-var lhe = /*#__PURE__*/ (0, F.createContext)(null), Qz = class extends dS {
+var she = /*#__PURE__*/ (0, F.createContext)(null), eB = class extends pS {
static {
this.type = "tableheader";
}
-}, uhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+}, che = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(FL);
+ return n ? /*#__PURE__*/ F.createElement(kL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.thead, {
+ }) : /*#__PURE__*/ F.createElement(kL.thead, {
...e,
ref: t
});
-}), $z = /*#__PURE__*/ lw(Qz, (e, t) => {
- let n = (0, F.useContext)(Yz).collection, r = yS({
+}), tB = /*#__PURE__*/ uw(eB, (e, t) => {
+ let n = (0, F.useContext)(Zz).collection, r = xS({
items: n.headerRows,
children: (0, F.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ F.createElement(fhe, { item: e });
+ case "headerrow": return /*#__PURE__*/ F.createElement(uhe, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = FA(), { hoverProps: a, isHovered: o } = MD({
+ }), { rowGroupProps: i } = IA(), { hoverProps: a, isHovered: o } = ND({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = xL({
+ }), s = CL({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ F.createElement(uhe, {
- ...K(Hw(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ F.createElement(che, {
+ ...K(Uw(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ F.createElement(fw, {
+}, (e) => /*#__PURE__*/ F.createElement(pw, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), dhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
+}, e.children)), lhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(FL);
return n ? /*#__PURE__*/ F.createElement("div", {
...e,
ref: t
@@ -41812,41 +41812,41 @@ var lhe = /*#__PURE__*/ (0, F.createContext)(null), Qz = class extends dS {
ref: t
});
});
-function fhe({ item: e }) {
- let t = (0, F.useRef)(null), n = (0, F.useContext)(Yz), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(NL), { rowProps: a } = Lce({
+function uhe({ item: e }) {
+ let t = (0, F.useRef)(null), n = (0, F.useContext)(Zz), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(FL), { rowProps: a } = Ice({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = Wce(n);
- return /*#__PURE__*/ F.createElement(dhe, {
+ }, n, t), { checkboxProps: o } = Uce(n);
+ return /*#__PURE__*/ F.createElement(lhe, {
...a,
ref: t
- }, /*#__PURE__*/ F.createElement(bL, { values: [[WL, { slots: { selection: o } }], [GL, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
+ }, /*#__PURE__*/ F.createElement(SL, { values: [[KL, { slots: { selection: o } }], [qL, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var phe = class extends dS {
+var dhe = class extends pS {
static {
this.type = "column";
}
-}, mhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+}, fhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(FL);
+ return n ? /*#__PURE__*/ F.createElement(kL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.th, {
+ }) : /*#__PURE__*/ F.createElement(kL.th, {
...e,
ref: t
});
-}), eB = /*#__PURE__*/ cw(phe, (e, t, n) => {
- let r = YC(t), i = (0, F.useContext)(Yz), { isVirtualized: a } = (0, F.useContext)(NL), { columnHeaderProps: o, isPressed: s } = Pce({
+}), nB = /*#__PURE__*/ lw(dhe, (e, t, n) => {
+ let r = XC(t), i = (0, F.useContext)(Zz), { isVirtualized: a } = (0, F.useContext)(FL), { columnHeaderProps: o, isPressed: s } = Nce({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = OD(), d = (0, F.useContext)(Xz), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = kD(), d = (0, F.useContext)(Qz), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = MD({ isDisabled: !e.allowsSorting }), h = xL({
+ let { hoverProps: p, isHovered: m } = ND({ isDisabled: !e.allowsSorting }), h = CL({
...e,
id: void 0,
children: n.rendered,
@@ -41872,8 +41872,8 @@ var phe = class extends dS {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = Hw(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ F.createElement(mhe, {
+ let _ = Uw(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ F.createElement(fhe, {
...K(_, o, u, p),
...h,
style: g,
@@ -41885,29 +41885,29 @@ var phe = class extends dS {
"data-resizing": f || void 0,
"data-allows-sorting": n.props.allowsSorting || void 0,
"data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [[tB, {
+ }, /*#__PURE__*/ F.createElement(SL, { values: [[rB, {
column: n,
triggerRef: r
- }], [NL, jL]] }, h.children));
-}), tB = /*#__PURE__*/ (0, F.createContext)(null), hhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = (0, F.useContext)(Xz);
+ }], [FL, NL]] }, h.children));
+}), rB = /*#__PURE__*/ (0, F.createContext)(null), phe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let n = (0, F.useContext)(Qz);
if (!n) throw Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
- let r = Bw(nhe(FR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(Jz), { column: s, triggerRef: c } = (0, F.useContext)(tB), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Ice({
+ let r = Vw(ehe(LR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(Xz), { column: s, triggerRef: c } = (0, F.useContext)(rB), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Fce({
column: s,
"aria-label": e["aria-label"] || r.format("tableResizer"),
onResizeStart: i,
onResize: a,
onResizeEnd: o,
triggerRef: c
- }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = OD(), { hoverProps: _, isHovered: v } = MD(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = Pw(), S = "both";
+ }, n, l), { focusProps: m, isFocused: h, isFocusVisible: g } = kD(), { hoverProps: _, isHovered: v } = ND(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = Fw(), S = "both";
S = y ? x === "rtl" ? "right" : "left" : b ? x === "rtl" ? "left" : "right" : "both";
- let C = YC(t), [w, T] = (0, F.useState)("");
+ let C = XC(t), [w, T] = (0, F.useState)("");
(0, F.useEffect)(() => {
if (!C.current) return;
let e = window.getComputedStyle(C.current);
T(e.cursor);
}, [C, S]);
- let E = xL({
+ let E = CL({
...e,
defaultClassName: "react-aria-ColumnResizer",
values: {
@@ -41917,8 +41917,8 @@ var phe = class extends dS {
isHovered: v,
resizableDirection: S
}
- }), D = Hw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(DL.div, {
+ }), D = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(kL.div, {
ref: C,
role: "presentation",
...K(D, E, u, _),
@@ -41941,24 +41941,24 @@ var phe = class extends dS {
},
"data-testid": "cursor-overlay"
}), document.body));
-}), nB = class extends fS {
+}), iB = class extends mS {
static {
this.type = "tablebody";
}
-}, ghe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+}, mhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(FL);
+ return n ? /*#__PURE__*/ F.createElement(kL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.tbody, {
+ }) : /*#__PURE__*/ F.createElement(kL.tbody, {
...e,
ref: t
});
-}), rB = /*#__PURE__*/ lw(nB, (e, t, n) => {
- let r = (0, F.useContext)(Yz), { isVirtualized: i } = (0, F.useContext)(NL), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(NL), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(IR), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), aB = /*#__PURE__*/ uw(iB, (e, t, n) => {
+ let r = (0, F.useContext)(Zz), { isVirtualized: i } = (0, F.useContext)(FL), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(FL), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(RR), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = xL({
+ }, p = CL({
...e,
id: void 0,
children: void 0,
@@ -41967,33 +41967,33 @@ var phe = class extends dS {
}), m, h = a.columnCount;
if (d && e.renderEmptyState && r) {
let t = {}, n = {}, r = {};
- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ F.createElement(aB, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ F.createElement(sB, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ F.createElement(sB, {
+ }, /*#__PURE__*/ F.createElement(lB, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = FA(), _ = Hw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(ghe, {
+ let { rowGroupProps: g } = IA(), _ = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(mhe, {
...K(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ F.createElement(whe, null), /*#__PURE__*/ F.createElement(o, {
+ }, l && /*#__PURE__*/ F.createElement(She, null), /*#__PURE__*/ F.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: RR(s, c)
+ renderDropIndicator: BR(s, c)
}), m);
});
-(class extends fS {
+(class extends mS {
static {
this.type = "tablefooter";
}
});
-var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), _he = class extends dS {
+var oB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), hhe = class extends pS {
static {
this.type = "item";
}
@@ -42005,31 +42005,31 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), _h
}
return null;
}
-}, aB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+}, sB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(FL);
+ return n ? /*#__PURE__*/ F.createElement(kL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.tr, {
+ }) : /*#__PURE__*/ F.createElement(kL.tr, {
...e,
ref: t
});
-}), oB = /*#__PURE__*/ lw(_he, (e, t, n) => {
- let r = YC(t), i = (0, F.useContext)(Yz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(IR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(NL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Bce({
+}), cB = /*#__PURE__*/ uw(hhe, (e, t, n) => {
+ let r = XC(t), i = (0, F.useContext)(Zz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(RR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(FL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = zce({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = OD(), { isFocusVisible: _, focusProps: v } = OD({ within: !0 }), { hoverProps: y, isHovered: b } = MD({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = kD(), { isFocusVisible: _, focusProps: v } = kD({ within: !0 }), { hoverProps: y, isHovered: b } = ND({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = Uce({ key: n.key }, i), S;
+ }), { checkboxProps: x } = Hce({ key: n.key }, i), S;
o && a && (S = a.useDraggableItem({
key: n.key,
hasDragButton: !0
}, o));
- let C, w = (0, F.useRef)(null), { visuallyHiddenProps: T } = lE();
+ let C, w = (0, F.useRef)(null), { visuallyHiddenProps: T } = uE();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -42039,7 +42039,7 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), _h
(0, F.useEffect)(() => {
o && E.current;
}, []);
- let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = xL({
+ let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = CL({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -42060,11 +42060,11 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), _h
isExpanded: j,
level: n.level + 1
}
- }), ee = Hw(e, { global: !0 });
- return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(aB, {
+ }), ee = Uw(e, { global: !0 });
+ return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(sB, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(sB, {
+ }, /*#__PURE__*/ F.createElement(lB, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -42073,7 +42073,7 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), _h
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ F.createElement(aB, {
+ }))), /*#__PURE__*/ F.createElement(sB, {
...K(ee, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -42089,17 +42089,17 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), _h
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [WL, { slots: {
- [yL]: {},
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [KL, { slots: {
+ [xL]: {},
selection: x
} }],
- [GL, { slots: {
- [yL]: {},
+ [qL, { slots: {
+ [xL]: {},
selection: x
} }],
- [LL, { slots: {
- [yL]: {},
+ [zL, { slots: {
+ [xL]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -42107,8 +42107,8 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), _h
style: { pointerEvents: "none" }
}
} }],
- [HR, { isSelected: p.isSelected }],
- [iB, { isFocusVisibleWithinRow: _ }]
+ [WR, { isSelected: p.isSelected }],
+ [oB, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ F.createElement(l, {
collection: i.collection,
parent: n
@@ -42116,34 +42116,34 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), _h
}, (e) => {
if (e.id == null && typeof e.children == "function") throw Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
let t = [e.value].concat(e.dependencies);
- return /*#__PURE__*/ F.createElement(fw, {
+ return /*#__PURE__*/ F.createElement(pw, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), vhe = class extends dS {
+}), ghe = class extends pS {
static {
this.type = "cell";
}
-}, sB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+}, lB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(FL);
+ return n ? /*#__PURE__*/ F.createElement(kL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.td, {
+ }) : /*#__PURE__*/ F.createElement(kL.td, {
...e,
ref: t
});
-}), cB = /*#__PURE__*/ cw(vhe, (e, t, n) => {
- let r = YC(t), i = (0, F.useContext)(Yz), { dragState: a } = (0, F.useContext)(IR), { isVirtualized: o } = (0, F.useContext)(NL);
+}), uB = /*#__PURE__*/ lw(ghe, (e, t, n) => {
+ let r = XC(t), i = (0, F.useContext)(Zz), { dragState: a } = (0, F.useContext)(RR), { isVirtualized: o } = (0, F.useContext)(FL);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = Mce({
+ let { gridCellProps: s, isPressed: c } = jce({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = OD(), { hoverProps: f, isHovered: p } = MD({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(iB), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = xL({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = kD(), { hoverProps: f, isHovered: p } = ND({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(oB), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = CL({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -42162,8 +42162,8 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), _h
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = Hw(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ F.createElement(sB, {
+ }), S = Uw(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ F.createElement(lB, {
...K(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -42177,14 +42177,14 @@ var iB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), _h
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ F.createElement(NL.Provider, { value: jL }, x.children));
+ }, /*#__PURE__*/ F.createElement(FL.Provider, { value: NL }, x.children));
});
-function yhe(e, t) {
- t = YC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(IR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function _he(e, t) {
+ t = XC(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(RR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ F.createElement(Che, {
+ return /*#__PURE__*/ F.createElement(xhe, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -42193,40 +42193,40 @@ function yhe(e, t) {
ref: t
});
}
-var bhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+var vhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(FL);
+ return n ? /*#__PURE__*/ F.createElement(kL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.tr, {
+ }) : /*#__PURE__*/ F.createElement(kL.tr, {
...e,
ref: t
});
-}), xhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(NL);
- return n ? /*#__PURE__*/ F.createElement(DL.div, {
+}), yhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(FL);
+ return n ? /*#__PURE__*/ F.createElement(kL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(DL.td, {
+ }) : /*#__PURE__*/ F.createElement(kL.td, {
...e,
ref: t
});
});
-function She(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(Yz), { visuallyHiddenProps: c } = lE(), l = xL({
+function bhe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(Zz), { visuallyHiddenProps: c } = uE(), l = CL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(bhe, {
- ...Hw(e, { global: !0 }),
+ return /*#__PURE__*/ F.createElement(vhe, {
+ ...Uw(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ F.createElement(xhe, {
+ }, /*#__PURE__*/ F.createElement(yhe, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -42237,14 +42237,14 @@ function She(e, t) {
ref: i
}), l.children));
}
-var Che = /*#__PURE__*/ (0, F.forwardRef)(She);
-function whe() {
- let e = (0, F.useContext)(Yz), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(IR), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = lE();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(aB, {
+var xhe = /*#__PURE__*/ (0, F.forwardRef)(bhe);
+function She() {
+ let e = (0, F.useContext)(Zz), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(RR), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = uE();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(sB, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(sB, {
+ }, /*#__PURE__*/ F.createElement(lB, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -42255,9 +42255,9 @@ function whe() {
ref: r
})));
}
-cw(pS, function(e, t, n) {
- let r = (0, F.useContext)(Yz), { isVirtualized: i } = (0, F.useContext)(NL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
- tz((0, F.useMemo)(() => ({
+lw(hS, function(e, t, n) {
+ let r = (0, F.useContext)(Zz), { isVirtualized: i } = (0, F.useContext)(FL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
+ rz((0, F.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -42267,7 +42267,7 @@ cw(pS, function(e, t, n) {
s,
r?.collection
]), u);
- let d = xL({
+ let d = CL({
...c,
id: void 0,
children: n.rendered,
@@ -42275,10 +42275,10 @@ cw(pS, function(e, t, n) {
defaultStyle: { "--table-row-level": n.level + 1 },
values: void 0
}), f = {}, p = {}, m = {};
- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(aB, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(sB, {
style: { height: 0 },
- inert: WR(!0)
- }, /*#__PURE__*/ F.createElement(sB, { style: {
+ inert: KR(!0)
+ }, /*#__PURE__*/ F.createElement(lB, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ F.createElement("div", {
@@ -42289,22 +42289,22 @@ cw(pS, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ F.createElement(aB, {
- ...K(Hw(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ F.createElement(sB, {
+ ...K(Uw(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(sB, {
+ }, /*#__PURE__*/ F.createElement(lB, {
role: "rowheader",
...p,
style: m
}, d.children)));
});
// node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function The(e) {
- let [t, n] = eE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = $R({
+function Che(e) {
+ let [t, n] = tE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = tz({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -42326,24 +42326,24 @@ function The(e) {
};
}
// node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function Ehe(e) {
- let t = The({
+function whe(e) {
+ let t = Che({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? lB(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? dB(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
}), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, F.useRef)(i);
return (0, F.useEffect)(() => {
let o = i;
- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = lB(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
+ e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = dB(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
}), {
...t,
isDisabled: e.isDisabled || !1
};
}
-function lB(e, t) {
+function dB(e, t) {
let n = null;
if (e) {
for (n = e.getFirstKey(); n != null && (t.has(n) || e.getItem(n)?.props?.isDisabled) && n !== e.getLastKey();) n = e.getKeyAfter(n);
@@ -42352,24 +42352,24 @@ function lB(e, t) {
return n;
}
// node_modules/react-aria-components/dist/private/Tabs.mjs
-var uB = /*#__PURE__*/ (0, F.createContext)(null), dB = /*#__PURE__*/ (0, F.createContext)(null), Dhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, uB);
+var fB = /*#__PURE__*/ (0, F.createContext)(null), pB = /*#__PURE__*/ (0, F.createContext)(null), The = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = TL(e, t, fB);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, F.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ F.createElement(aw, { content: n }, (n) => /*#__PURE__*/ F.createElement(Ohe, {
+ }) : n, [n, r]), /*#__PURE__*/ F.createElement(ow, { content: n }, (n) => /*#__PURE__*/ F.createElement(Ehe, {
props: e,
collection: n,
tabsRef: t
}));
});
-function Ohe({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = Ehe({
+function Ehe({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = whe({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = OD({ within: !0 }), c = (0, F.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = kD({ within: !0 }), c = (0, F.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -42377,12 +42377,12 @@ function Ohe({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = xL({
+ ]), l = CL({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = Hw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(DL.div, {
+ }), u = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(kL.div, {
...K(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -42390,20 +42390,20 @@ function Ohe({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [[uB, e], [dB, i]] }, l.children));
+ }, /*#__PURE__*/ F.createElement(SL, { values: [[fB, e], [pB, i]] }, l.children));
}
-var fB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return (0, F.useContext)(dB) ? /*#__PURE__*/ F.createElement(khe, {
+var mB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return (0, F.useContext)(pB) ? /*#__PURE__*/ F.createElement(Dhe, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ F.createElement(fw, e);
+ }) : /*#__PURE__*/ F.createElement(pw, e);
});
-function khe({ props: e, forwardedRef: t }) {
- let n = (0, F.useContext)(dB), { CollectionRoot: r } = (0, F.useContext)(NL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = SL(uB), o = YC(t), { tabListProps: s } = qce({
+function Dhe({ props: e, forwardedRef: t }) {
+ let n = (0, F.useContext)(pB), { CollectionRoot: r } = (0, F.useContext)(FL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = wL(fB), o = XC(t), { tabListProps: s } = Kce({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = xL({
+ }, n, o), c = CL({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -42411,30 +42411,30 @@ function khe({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = Hw(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ F.createElement(DL.div, {
+ }), l = Uw(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ F.createElement(kL.div, {
...K(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ F.createElement(VR, null, /*#__PURE__*/ F.createElement(r, {
+ }, /*#__PURE__*/ F.createElement(UR, null, /*#__PURE__*/ F.createElement(r, {
collection: n.collection,
- persistedKeys: PL(n.selectionManager.focusedKey)
+ persistedKeys: IL(n.selectionManager.focusedKey)
})));
}
-var Ahe = /*#__PURE__*/ cw(class extends dS {
+var Ohe = /*#__PURE__*/ lw(class extends pS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(dB), i = YC(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Gce({
+ let r = (0, F.useContext)(pB), i = XC(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Wce({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = OD(), { hoverProps: f, isHovered: p } = MD({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = kD(), { hoverProps: f, isHovered: p } = ND({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = xL({
+ }), m = CL({
...e,
id: void 0,
children: n.rendered,
@@ -42447,7 +42447,7 @@ var Ahe = /*#__PURE__*/ cw(class extends dS {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? DL.a : DL.div, g = Hw(e, { global: !0 });
+ }), h = n.props.href ? kL.a : kL.div, g = Uw(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ F.createElement(h, {
...K(g, m, a, l, f),
ref: i,
@@ -42457,54 +42457,54 @@ var Ahe = /*#__PURE__*/ cw(class extends dS {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ F.createElement(HR.Provider, { value: { isSelected: o } }, m.children));
-}), jhe = /*#__PURE__*/ ew(function(e, t) {
- let n = (0, F.useContext)(dB), r = YC(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ F.createElement(WR.Provider, { value: { isSelected: o } }, m.children));
+}), khe = /*#__PURE__*/ tw(function(e, t) {
+ let n = (0, F.useContext)(pB), r = XC(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = sz(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(Mhe, {
+ let s = lz(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(Ahe, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function Mhe(e) {
- let t = (0, F.useContext)(dB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = Jce(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = OD(), d = t.selectedKey === e.id, f = oz(r) && !i, p = xL({
+function Ahe(e) {
+ let t = (0, F.useContext)(pB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = qce(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = kD(), d = t.selectedKey === e.id, f = cz(r) && !i, p = CL({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: WR(!d),
+ isInert: KR(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = Hw(o, { global: !0 });
+ }), m = Uw(o, { global: !0 });
delete m.id;
let h = d ? K(m, s, c, p) : K(m, p);
- return /*#__PURE__*/ F.createElement(DL.div, {
+ return /*#__PURE__*/ F.createElement(kL.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: WR(!d || e.inert),
+ inert: KR(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [[uB, null], [dB, null]] }, /*#__PURE__*/ F.createElement(NL.Provider, { value: jL }, p.children)));
+ }, /*#__PURE__*/ F.createElement(SL, { values: [[fB, null], [pB, null]] }, /*#__PURE__*/ F.createElement(FL.Provider, { value: NL }, p.children)));
}
// node_modules/react-aria-components/dist/private/TextArea.mjs
-var pB = /*#__PURE__*/ (0, F.createContext)({}), Nhe = (e) => {
+var hB = /*#__PURE__*/ (0, F.createContext)({}), jhe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Phe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = CL(e, t, pB);
- let { hoverProps: n, isHovered: r } = MD(e), { isFocused: i, isFocusVisible: a, focusProps: o } = OD({
+}, Mhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = TL(e, t, hB);
+ let { hoverProps: n, isHovered: r } = ND(e), { isFocused: i, isFocusVisible: a, focusProps: o } = kD({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = xL({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = CL({
...e,
values: {
isHovered: r,
@@ -42515,8 +42515,8 @@ var pB = /*#__PURE__*/ (0, F.createContext)({}), Nhe = (e) => {
},
defaultClassName: "react-aria-TextArea"
});
- return /*#__PURE__*/ F.createElement(DL.textarea, {
- ...K(Nhe(e), o, n),
+ return /*#__PURE__*/ F.createElement(kL.textarea, {
+ ...K(jhe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -42525,18 +42525,18 @@ var pB = /*#__PURE__*/ (0, F.createContext)({}), Nhe = (e) => {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), Fhe = /*#__PURE__*/ (0, F.createContext)(null), Ihe = /*#__PURE__*/ ew(function(e, t) {
- [e, t] = CL(e, t, Fhe);
- let { validationBehavior: n } = SL(UL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
- [e, i] = CL(e, i, kL);
- let [a, o] = wL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = hse({
- ...TL(e),
+}), Nhe = /*#__PURE__*/ (0, F.createContext)(null), Phe = /*#__PURE__*/ tw(function(e, t) {
+ [e, t] = TL(e, t, Nhe);
+ let { validationBehavior: n } = wL(GL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
+ [e, i] = TL(e, i, jL);
+ let [a, o] = EL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = mse({
+ ...DL(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, F.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = xL({
+ }, [i]), h = CL({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -42545,8 +42545,8 @@ var pB = /*#__PURE__*/ (0, F.createContext)({}), Nhe = (e) => {
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = Hw(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ F.createElement(DL.div, {
+ }), g = Uw(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ F.createElement(kL.div, {
...g,
...h,
ref: t,
@@ -42555,31 +42555,31 @@ var pB = /*#__PURE__*/ (0, F.createContext)({}), Nhe = (e) => {
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [FL, {
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [LL, {
...l,
ref: a
}],
- [YL, {
+ [ZL, {
...u,
ref: m
}],
- [pB, {
+ [hB, {
...u,
ref: m
}],
- [qL, {
+ [YL, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [VL, { slots: {
+ [UL, { slots: {
description: d,
errorMessage: f
} }],
- [HL, p]
+ [WL, p]
] }, h.children));
-}), Lhe = class e extends hS {
+}), Fhe = class e extends _S {
withExpandedKeys(t, n) {
let r = this.clone();
return r.expandedKeys = n, e.cloneAncestorSections(n, t, r), e.cloneAncestorSections(t, n, r), r.frozen = this.frozen, r;
@@ -42651,16 +42651,16 @@ var pB = /*#__PURE__*/ (0, F.createContext)({}), Nhe = (e) => {
constructor(...e) {
super(...e), this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Rhe = /*#__PURE__*/ (0, F.createContext)(null), mB = /*#__PURE__*/ (0, F.createContext)(null), zhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = CL(e, t, Rhe), /*#__PURE__*/ F.createElement(aw, {
- content: /*#__PURE__*/ F.createElement(fw, e),
- createCollection: () => new Lhe()
- }, (n) => /*#__PURE__*/ F.createElement(Bhe, {
+}, Ihe = /*#__PURE__*/ (0, F.createContext)(null), gB = /*#__PURE__*/ (0, F.createContext)(null), Lhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = TL(e, t, Ihe), /*#__PURE__*/ F.createElement(ow, {
+ content: /*#__PURE__*/ F.createElement(pw, e),
+ createCollection: () => new Fhe()
+ }, (n) => /*#__PURE__*/ F.createElement(Rhe, {
props: e,
collection: n,
treeRef: t
}));
-}), hB = {
+}), _B = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -42670,17 +42670,17 @@ var pB = /*#__PURE__*/ (0, F.createContext)({}), Nhe = (e) => {
rtl: "ArrowRight"
}
};
-function Bhe({ props: e, collection: t, treeRef: n }) {
- let { dragAndDropHooks: r } = e, { direction: i } = Pw(), a = xD({
+function Rhe({ props: e, collection: t, treeRef: n }) {
+ let { dragAndDropHooks: r } = e, { direction: i } = Fw(), a = SD({
usage: "search",
sensitivity: "base"
}), o = !!r?.useDraggableCollectionState, s = !!r?.useDroppableCollectionState, c = (0, F.useRef)(o), l = (0, F.useRef)(s);
(0, F.useEffect)(() => {
c.current !== o && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), l.current !== s && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.");
}, [o, s]);
- let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, F.useContext)(NL), [y, b] = eE(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, F.useState)(t), [C, w] = (0, F.useState)(y), [T, E] = (0, F.useState)(() => t.withExpandedKeys(C, y));
- qhe(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
- let D = pz({
+ let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, F.useContext)(FL), [y, b] = tE(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, F.useState)(t), [C, w] = (0, F.useState)(y), [T, E] = (0, F.useState)(() => t.withExpandedKeys(C, y));
+ Ghe(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
+ let D = hz({
...e,
selectionMode: u,
expandedKeys: y,
@@ -42688,7 +42688,7 @@ function Bhe({ props: e, collection: t, treeRef: n }) {
collection: T,
children: void 0,
disabledBehavior: m
- }), { gridProps: O } = Yce({
+ }), { gridProps: O } = Jce({
...e,
isVirtualized: g,
layoutDelegate: _
@@ -42702,7 +42702,7 @@ function Bhe({ props: e, collection: t, treeRef: n }) {
let e = r.DragPreview;
ee = r.renderDragPreview ? /*#__PURE__*/ F.createElement(e, { ref: N }, r.renderDragPreview) : null;
}
- let [te] = (0, F.useState)(() => new Vz());
+ let [te] = (0, F.useState)(() => new Uz());
if (s && r) {
A = r.useDroppableCollectionState({
collection: D.collection,
@@ -42710,7 +42710,7 @@ function Bhe({ props: e, collection: t, treeRef: n }) {
});
let e = r.dropTargetDelegate || v || new r.ListDropTargetDelegate(D.collection, n, { direction: i });
te.setup(e, D, i);
- let t = new CE({
+ let t = new wE({
collection: D.collection,
collator: a,
ref: n,
@@ -42732,12 +42732,12 @@ function Bhe({ props: e, collection: t, treeRef: n }) {
let t = A?.target;
if (t && t.type === "item" && t.dropPosition === "on") {
let n = D.collection.getItem(t.key);
- (e.key === hB.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === hB.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(t.key);
+ (e.key === _B.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === _B.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(t.key);
}
}
}, A, n), M = A.isDropTarget({ type: "root" });
}
- let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = OD(), ie = {
+ let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = kD(), ie = {
isEmpty: D.collection.size === 0,
isFocused: re,
isFocusVisible: I,
@@ -42745,7 +42745,7 @@ function Bhe({ props: e, collection: t, treeRef: n }) {
selectionMode: D.selectionManager.selectionMode,
allowsDragging: !!P,
state: D
- }, ae = xL({
+ }, ae = CL({
...e,
children: void 0,
defaultClassName: "react-aria-Tree",
@@ -42762,8 +42762,8 @@ function Bhe({ props: e, collection: t, treeRef: n }) {
style: { display: "contents" }
}, r));
}
- let se = Hw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(fT, null, /*#__PURE__*/ F.createElement(DL.div, {
+ let se = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(pT, null, /*#__PURE__*/ F.createElement(kL.div, {
...K(se, ae, O, ne, j?.collectionProps),
ref: n,
slot: e.slot || void 0,
@@ -42773,54 +42773,54 @@ function Bhe({ props: e, collection: t, treeRef: n }) {
"data-focus-visible": I || void 0,
"data-selection-mode": D.selectionManager.selectionMode === "none" ? void 0 : D.selectionManager.selectionMode,
"data-allows-dragging": !!P || void 0
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [mB, D],
- [IR, {
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [gB, D],
+ [RR, {
dragAndDropHooks: r,
dragState: k,
dropState: A
}],
- [LR, { render: Uhe }]
- ] }, s && /*#__PURE__*/ F.createElement(Khe, null), /*#__PURE__*/ F.createElement(VR, null, /*#__PURE__*/ F.createElement(h, {
+ [zR, { render: Vhe }]
+ ] }, s && /*#__PURE__*/ F.createElement(Whe, null), /*#__PURE__*/ F.createElement(UR, null, /*#__PURE__*/ F.createElement(h, {
collection: D.collection,
- persistedKeys: zR(D.selectionManager, r, A),
+ persistedKeys: VR(D.selectionManager, r, A),
scrollRef: n,
- renderDropIndicator: RR(r, A)
+ renderDropIndicator: BR(r, A)
}))), oe)), ee);
}
-var Vhe = /*#__PURE__*/ cw(class extends dS {
+var zhe = /*#__PURE__*/ lw(class extends pS {
static {
this.type = "content";
}
}, function(e) {
- let t = (0, F.useContext)(gB), n = xL({
+ let t = (0, F.useContext)(vB), n = CL({
children: e.children,
values: t
});
- return /*#__PURE__*/ F.createElement(NL.Provider, { value: jL }, n.children);
-}), gB = /*#__PURE__*/ (0, F.createContext)(null), Hhe = /*#__PURE__*/ lw(class extends dS {
+ return /*#__PURE__*/ F.createElement(FL.Provider, { value: NL }, n.children);
+}), vB = /*#__PURE__*/ (0, F.createContext)(null), Bhe = /*#__PURE__*/ uw(class extends pS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(mB);
- t = YC(t);
- let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(IR), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = yj({
+ let r = (0, F.useContext)(gB);
+ t = XC(t);
+ let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(RR), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = bj({
node: n,
shouldSelectOnPressUp: !!a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = MD({
+ }, r, t), p = c["aria-expanded"] === !0, m = e.hasChildItems || [...r.collection.getChildren(n.key)].length > 1, h = c["aria-level"] || 1, { hoverProps: g, isHovered: _ } = ND({
isDisabled: !f.allowsSelection && !f.hasAction && !s,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { isFocusVisible: v, focusProps: y } = OD(), { isFocusVisible: b, focusProps: x } = OD({ within: !0 }), { checkboxProps: S } = Wse({ key: n.key }, r), C = null;
+ }), { isFocusVisible: v, focusProps: y } = kD(), { isFocusVisible: b, focusProps: x } = kD({ within: !0 }), { checkboxProps: S } = Use({ key: n.key }, r), C = null;
a && i && (C = i.useDraggableItem({
key: n.key,
hasDragButton: !0
}, a));
- let w = null, T = (0, F.useRef)(null), E = (0, F.useRef)(null), D = (0, F.useRef)(null), { visuallyHiddenProps: O } = lE();
+ let w = null, T = (0, F.useRef)(null), E = (0, F.useRef)(null), D = (0, F.useRef)(null), { visuallyHiddenProps: O } = uE();
o && i && (w = i.useDropIndicator({
target: {
type: "item",
@@ -42859,7 +42859,7 @@ var Vhe = /*#__PURE__*/ cw(class extends dS {
A,
M,
j
- ]), N = xL({
+ ]), N = CL({
...e,
id: void 0,
children: n.rendered,
@@ -42876,7 +42876,7 @@ var Vhe = /*#__PURE__*/ cw(class extends dS {
(0, F.useEffect)(() => {
a && te.current;
}, []);
- let P = yS({
+ let P = xS({
items: r.collection.getChildren(n.key),
children: (e) => {
switch (e.type) {
@@ -42886,7 +42886,7 @@ var Vhe = /*#__PURE__*/ cw(class extends dS {
default: throw Error("Unsupported element type in TreeRow: " + e.type);
}
}
- }), ne = RC(), re = Hw(e, { global: !0 });
+ }), ne = zC(), re = Uw(e, { global: !0 });
return delete re.id, delete re.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, w && !w.isHidden && /*#__PURE__*/ F.createElement("div", {
role: "row",
"aria-level": c["aria-level"],
@@ -42909,7 +42909,7 @@ var Vhe = /*#__PURE__*/ cw(class extends dS {
"aria-labelledby": `${ne} ${c.id}`,
tabIndex: -1,
ref: D
- }))), /*#__PURE__*/ F.createElement(DL.div, {
+ }))), /*#__PURE__*/ F.createElement(kL.div, {
...K(re, c, y, g, x, C?.dragProps),
...N,
ref: t,
@@ -42929,17 +42929,17 @@ var Vhe = /*#__PURE__*/ cw(class extends dS {
}, /*#__PURE__*/ F.createElement("div", {
...l,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(bL, { values: [
- [WL, { slots: {
- [yL]: {},
+ }, /*#__PURE__*/ F.createElement(SL, { values: [
+ [KL, { slots: {
+ [xL]: {},
selection: S
} }],
- [GL, { slots: {
- [yL]: {},
+ [qL, { slots: {
+ [xL]: {},
selection: S
} }],
- [LL, { slots: {
- [yL]: {},
+ [zL, { slots: {
+ [xL]: {},
chevron: {
...u,
ref: T
@@ -42950,13 +42950,13 @@ var Vhe = /*#__PURE__*/ cw(class extends dS {
style: { pointerEvents: "none" }
}
} }],
- [gB, { ...ee }],
- [HR, { isSelected: f.isSelected }]
+ [vB, { ...ee }],
+ [WR, { isSelected: f.isSelected }]
] }, P))));
});
-cw(pS, function(e, t, n) {
- let { isVirtualized: r } = (0, F.useContext)(NL), i = (0, F.useContext)(mB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
- tz((0, F.useMemo)(() => ({
+lw(hS, function(e, t, n) {
+ let { isVirtualized: r } = (0, F.useContext)(FL), i = (0, F.useContext)(gB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
+ rz((0, F.useMemo)(() => ({
onLoadMore: o,
collection: i?.collection,
sentinelRef: l,
@@ -42965,11 +42965,11 @@ cw(pS, function(e, t, n) {
o,
s,
i?.collection
- ]), l), t = YC(t);
- let { rowProps: u, gridCellProps: d } = yj({ node: n }, i, t), f = u["aria-level"] || 1, p = {
+ ]), l), t = XC(t);
+ let { rowProps: u, gridCellProps: d } = bj({ node: n }, i, t), f = u["aria-level"] || 1, p = {
role: "row",
"aria-level": u["aria-level"]
- }, m = xL({
+ }, m = CL({
...c,
id: void 0,
children: n.rendered,
@@ -42982,7 +42982,7 @@ cw(pS, function(e, t, n) {
width: 0,
height: 0
},
- inert: WR(!0)
+ inert: KR(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: l,
@@ -42991,9 +42991,9 @@ cw(pS, function(e, t, n) {
height: 1,
width: 1
}
- })), a && m.children && /*#__PURE__*/ F.createElement(DL.div, {
+ })), a && m.children && /*#__PURE__*/ F.createElement(kL.div, {
ref: t,
- ...K(Hw(e), p),
+ ...K(Uw(e), p),
...m,
"data-level": f
}, /*#__PURE__*/ F.createElement("div", {
@@ -43001,12 +43001,12 @@ cw(pS, function(e, t, n) {
style: h
}, m.children)));
});
-function Uhe(e, t) {
- t = YC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(IR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function Vhe(e, t) {
+ t = XC(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(RR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
if (o) return null;
let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;
- return /*#__PURE__*/ F.createElement(Ghe, {
+ return /*#__PURE__*/ F.createElement(Uhe, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -43015,8 +43015,8 @@ function Uhe(e, t) {
level: c
});
}
-function Whe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = lE(), c = xL({
+function Hhe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = uE(), c = CL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: {
@@ -43025,7 +43025,7 @@ function Whe(e, t) {
},
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(DL.div, {
+ return /*#__PURE__*/ F.createElement(kL.div, {
...c,
role: "row",
"aria-level": a,
@@ -43038,9 +43038,9 @@ function Whe(e, t) {
ref: i
}), c.children));
}
-var Ghe = /*#__PURE__*/ (0, F.forwardRef)(Whe);
-function Khe() {
- let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(IR), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = lE();
+var Uhe = /*#__PURE__*/ (0, F.forwardRef)(Hhe);
+function Whe() {
+ let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(RR), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = uE();
return !i && r["aria-hidden"] ? null : /*#__PURE__*/ F.createElement("div", {
role: "row",
"aria-hidden": r["aria-hidden"],
@@ -43052,13 +43052,13 @@ function Khe() {
ref: n
})));
}
-function qhe(e, t) {
+function Ghe(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
// node_modules/@remixicon/react/index.mjs
-var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+var Khe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43066,7 +43066,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), Yhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), qhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43074,7 +43074,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), _B = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), yB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43082,7 +43082,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), vB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), bB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43090,7 +43090,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), yB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), xB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43098,7 +43098,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), Xhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })), Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43106,7 +43106,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), bB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), SB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43114,7 +43114,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), xB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), CB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43122,7 +43122,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 12H5V21H3V12ZM19 8H21V21H19V8ZM11 2H13V21H11V2Z" })), SB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 12H5V21H3V12ZM19 8H21V21H19V8ZM11 2H13V21H11V2Z" })), wB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43130,7 +43130,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 2H19C19.5523 2 20 2.44772 20 3V22.1433C20 22.4194 19.7761 22.6434 19.5 22.6434C19.4061 22.6434 19.314 22.6168 19.2344 22.5669L12 18.0313L4.76559 22.5669C4.53163 22.7136 4.22306 22.6429 4.07637 22.4089C4.02647 22.3293 4 22.2373 4 22.1433V3C4 2.44772 4.44772 2 5 2ZM18 4H6V19.4324L12 15.6707L18 19.4324V4Z" })), Zhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 2H19C19.5523 2 20 2.44772 20 3V22.1433C20 22.4194 19.7761 22.6434 19.5 22.6434C19.4061 22.6434 19.314 22.6168 19.2344 22.5669L12 18.0313L4.76559 22.5669C4.53163 22.7136 4.22306 22.6429 4.07637 22.4089C4.02647 22.3293 4 22.2373 4 22.1433V3C4 2.44772 4.44772 2 5 2ZM18 4H6V19.4324L12 15.6707L18 19.4324V4Z" })), Yhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43138,7 +43138,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M21 19H23V21H1V19H3V4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V19H19V11H17V9H20C20.5523 9 21 9.44772 21 10V19ZM5 5V19H13V5H5ZM7 11H11V13H7V11ZM7 7H11V9H7V7Z" })), Qhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M21 19H23V21H1V19H3V4C3 3.44772 3.44772 3 4 3H14C14.5523 3 15 3.44772 15 4V19H19V11H17V9H20C20.5523 9 21 9.44772 21 10V19ZM5 5V19H13V5H5ZM7 11H11V13H7V11ZM7 7H11V9H7V7Z" })), Xhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43146,7 +43146,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), $he = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), Zhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43154,7 +43154,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z" })), ege = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z" })), Qhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43162,7 +43162,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), tge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), $he = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43170,7 +43170,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })), nge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })), ege = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43178,7 +43178,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z" })), CB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z" })), TB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43186,7 +43186,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), wB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), EB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43194,7 +43194,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z" })), tge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43202,7 +43202,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), TB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), DB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43210,7 +43210,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM16.5 7.5L14 14L7.5 16.5L10 10L16.5 7.5ZM12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z" })), ige = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM16.5 7.5L14 14L7.5 16.5L10 10L16.5 7.5ZM12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z" })), nge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43218,7 +43218,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), EB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), OB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43226,7 +43226,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), age = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), rge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43234,7 +43234,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), ige = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43242,7 +43242,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13 13V18.585L14.8284 16.7574L16.2426 18.1716L12 22.4142L7.75736 18.1716L9.17157 16.7574L11 18.585V13H13ZM12 2C15.5934 2 18.5544 4.70761 18.9541 8.19395C21.2858 8.83154 23 10.9656 23 13.5C23 16.3688 20.8036 18.7246 18.0006 18.9776L18.0009 16.9644C19.6966 16.7214 21 15.2629 21 13.5C21 11.567 19.433 10 17.5 10C17.2912 10 17.0867 10.0183 16.8887 10.054C16.9616 9.7142 17 9.36158 17 9C17 6.23858 14.7614 4 12 4C9.23858 4 7 6.23858 7 9C7 9.36158 7.03838 9.7142 7.11205 10.0533C6.91331 10.0183 6.70879 10 6.5 10C4.567 10 3 11.567 3 13.5C3 15.2003 4.21241 16.6174 5.81986 16.934L6.00005 16.9646L6.00039 18.9776C3.19696 18.7252 1 16.3692 1 13.5C1 10.9656 2.71424 8.83154 5.04648 8.19411C5.44561 4.70761 8.40661 2 12 2Z" })), DB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13 13V18.585L14.8284 16.7574L16.2426 18.1716L12 22.4142L7.75736 18.1716L9.17157 16.7574L11 18.585V13H13ZM12 2C15.5934 2 18.5544 4.70761 18.9541 8.19395C21.2858 8.83154 23 10.9656 23 13.5C23 16.3688 20.8036 18.7246 18.0006 18.9776L18.0009 16.9644C19.6966 16.7214 21 15.2629 21 13.5C21 11.567 19.433 10 17.5 10C17.2912 10 17.0867 10.0183 16.8887 10.054C16.9616 9.7142 17 9.36158 17 9C17 6.23858 14.7614 4 12 4C9.23858 4 7 6.23858 7 9C7 9.36158 7.03838 9.7142 7.11205 10.0533C6.91331 10.0183 6.70879 10 6.5 10C4.567 10 3 11.567 3 13.5C3 15.2003 4.21241 16.6174 5.81986 16.934L6.00005 16.9646L6.00039 18.9776C3.19696 18.7252 1 16.3692 1 13.5C1 10.9656 2.71424 8.83154 5.04648 8.19411C5.44561 4.70761 8.40661 2 12 2Z" })), kB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43250,7 +43250,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M1 14.5C1 12.1716 2.22429 10.1291 4.06426 8.9812C4.56469 5.044 7.92686 2 12 2C16.0731 2 19.4353 5.044 19.9357 8.9812C21.7757 10.1291 23 12.1716 23 14.5C23 17.9216 20.3562 20.7257 17 20.9811L7 21C3.64378 20.7257 1 17.9216 1 14.5ZM16.8483 18.9868C19.1817 18.8093 21 16.8561 21 14.5C21 12.927 20.1884 11.4962 18.8771 10.6781L18.0714 10.1754L17.9517 9.23338C17.5735 6.25803 15.0288 4 12 4C8.97116 4 6.42647 6.25803 6.0483 9.23338L5.92856 10.1754L5.12288 10.6781C3.81156 11.4962 3 12.927 3 14.5C3 16.8561 4.81833 18.8093 7.1517 18.9868L7.325 19H16.675L16.8483 18.9868ZM13 12H16L12 17L8 12H11V8H13V12Z" })), sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M1 14.5C1 12.1716 2.22429 10.1291 4.06426 8.9812C4.56469 5.044 7.92686 2 12 2C16.0731 2 19.4353 5.044 19.9357 8.9812C21.7757 10.1291 23 12.1716 23 14.5C23 17.9216 20.3562 20.7257 17 20.9811L7 21C3.64378 20.7257 1 17.9216 1 14.5ZM16.8483 18.9868C19.1817 18.8093 21 16.8561 21 14.5C21 12.927 20.1884 11.4962 18.8771 10.6781L18.0714 10.1754L17.9517 9.23338C17.5735 6.25803 15.0288 4 12 4C8.97116 4 6.42647 6.25803 6.0483 9.23338L5.92856 10.1754L5.12288 10.6781C3.81156 11.4962 3 12.927 3 14.5C3 16.8561 4.81833 18.8093 7.1517 18.9868L7.325 19H16.675L16.8483 18.9868ZM13 12H16L12 17L8 12H11V8H13V12Z" })), age = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43258,7 +43258,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), OB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), AB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43266,7 +43266,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), kB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" })), jB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43274,7 +43274,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43282,7 +43282,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), AB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43290,7 +43290,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z" })), lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z" })), cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43298,7 +43298,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), uge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43306,7 +43306,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), uge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43314,7 +43314,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM13.529 14.4464C11.9951 15.3524 9.98633 15.1464 8.66839 13.8284C7.1063 12.2663 7.1063 9.73367 8.66839 8.17157C10.2305 6.60948 12.7631 6.60948 14.3252 8.17157C15.6432 9.48951 15.8492 11.4983 14.9432 13.0322L17.1537 15.2426L15.7395 16.6569L13.529 14.4464ZM12.911 12.4142C13.6921 11.6332 13.6921 10.3668 12.911 9.58579C12.13 8.80474 10.8637 8.80474 10.0826 9.58579C9.30156 10.3668 9.30156 11.6332 10.0826 12.4142C10.8637 13.1953 12.13 13.1953 12.911 12.4142Z" })), jB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM13.529 14.4464C11.9951 15.3524 9.98633 15.1464 8.66839 13.8284C7.1063 12.2663 7.1063 9.73367 8.66839 8.17157C10.2305 6.60948 12.7631 6.60948 14.3252 8.17157C15.6432 9.48951 15.8492 11.4983 14.9432 13.0322L17.1537 15.2426L15.7395 16.6569L13.529 14.4464ZM12.911 12.4142C13.6921 11.6332 13.6921 10.3668 12.911 9.58579C12.13 8.80474 10.8637 8.80474 10.0826 9.58579C9.30156 10.3668 9.30156 11.6332 10.0826 12.4142C10.8637 13.1953 12.13 13.1953 12.911 12.4142Z" })), MB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43322,7 +43322,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M2 3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934ZM8 5V19H16V5H8ZM4 5V7H6V5H4ZM18 5V7H20V5H18ZM4 9V11H6V9H4ZM18 9V11H20V9H18ZM4 13V15H6V13H4ZM18 13V15H20V13H18ZM4 17V19H6V17H4ZM18 17V19H20V17H18Z" })), fge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M2 3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934ZM8 5V19H16V5H8ZM4 5V7H6V5H4ZM18 5V7H20V5H18ZM4 9V11H6V9H4ZM18 9V11H20V9H18ZM4 13V15H6V13H4ZM18 13V15H20V13H18ZM4 17V19H6V17H4ZM18 17V19H20V17H18Z" })), dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43330,7 +43330,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), MB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), NB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43338,7 +43338,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 7V19H20V7H4Z" })), NB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 7V19H20V7H4Z" })), PB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43346,7 +43346,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 5V19H20V7H11.5858L9.58579 5H4ZM12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5Z" })), PB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 5V19H20V7H11.5858L9.58579 5H4ZM12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5Z" })), FB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43354,7 +43354,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 21C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5H20C20.5523 5 21 5.44772 21 6V9H19V7H11.5858L9.58579 5H4V16.998L5.5 11H22.5L20.1894 20.2425C20.0781 20.6877 19.6781 21 19.2192 21H3ZM19.9384 13H7.06155L5.56155 19H18.4384L19.9384 13Z" })), pge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 21C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5H20C20.5523 5 21 5.44772 21 6V9H19V7H11.5858L9.58579 5H4V16.998L5.5 11H22.5L20.1894 20.2425C20.0781 20.6877 19.6781 21 19.2192 21H3ZM19.9384 13H7.06155L5.56155 19H18.4384L19.9384 13Z" })), fge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43362,7 +43362,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 5V19H20V7H11.5858L9.58579 5H4ZM8.59114 13.8089C8.52934 13.5486 8.49663 13.277 8.49663 12.9978C8.49663 12.7186 8.52933 12.4471 8.59112 12.1868L7.59998 11.6146L8.59949 9.88335L9.59133 10.456C9.98424 10.0843 10.4633 9.80275 10.9954 9.64438V8.5H12.9944V9.64438C13.5265 9.80274 14.0056 10.0843 14.3985 10.4559L15.3904 9.88325L16.39 11.6145L15.3987 12.1867C15.4605 12.447 15.4932 12.7186 15.4932 12.9978C15.4932 13.277 15.4605 13.5485 15.3987 13.8088L16.39 14.3811L15.3905 16.1123L14.3986 15.5396C14.0057 15.9113 13.5266 16.1928 12.9945 16.3512V17.4956H10.9955V16.3513C10.4634 16.1929 9.98434 15.9114 9.59141 15.5397L8.59954 16.1124L7.59998 14.3812L8.59114 13.8089ZM11.9949 14.4971C12.8229 14.4971 13.4942 13.8258 13.4942 12.9978C13.4942 12.1698 12.8229 11.4985 11.9949 11.4985C11.1669 11.4985 10.4957 12.1698 10.4957 12.9978C10.4957 13.8258 11.1669 14.4971 11.9949 14.4971Z" })), FB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 5V19H20V7H11.5858L9.58579 5H4ZM8.59114 13.8089C8.52934 13.5486 8.49663 13.277 8.49663 12.9978C8.49663 12.7186 8.52933 12.4471 8.59112 12.1868L7.59998 11.6146L8.59949 9.88335L9.59133 10.456C9.98424 10.0843 10.4633 9.80275 10.9954 9.64438V8.5H12.9944V9.64438C13.5265 9.80274 14.0056 10.0843 14.3985 10.4559L15.3904 9.88325L16.39 11.6145L15.3987 12.1867C15.4605 12.447 15.4932 12.7186 15.4932 12.9978C15.4932 13.277 15.4605 13.5485 15.3987 13.8088L16.39 14.3811L15.3905 16.1123L14.3986 15.5396C14.0057 15.9113 13.5266 16.1928 12.9945 16.3512V17.4956H10.9955V16.3513C10.4634 16.1929 9.98434 15.9114 9.59141 15.5397L8.59954 16.1124L7.59998 14.3812L8.59114 13.8089ZM11.9949 14.4971C12.8229 14.4971 13.4942 13.8258 13.4942 12.9978C13.4942 12.1698 12.8229 11.4985 11.9949 11.4985C11.1669 11.4985 10.4957 12.1698 10.4957 12.9978C10.4957 13.8258 11.1669 14.4971 11.9949 14.4971Z" })), IB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43370,7 +43370,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), IB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), LB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43378,7 +43378,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), mge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), pge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43386,7 +43386,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M16.5 3C19.5376 3 22 5.5 22 9C22 16 14.5 20 12 21.5C9.5 20 2 16 2 9C2 5.5 4.5 3 7.5 3C9.35997 3 11 4 12 5C13 4 14.64 3 16.5 3ZM12.9339 18.6038C13.8155 18.0485 14.61 17.4955 15.3549 16.9029C18.3337 14.533 20 11.9435 20 9C20 6.64076 18.463 5 16.5 5C15.4241 5 14.2593 5.56911 13.4142 6.41421L12 7.82843L10.5858 6.41421C9.74068 5.56911 8.5759 5 7.5 5C5.55906 5 4 6.6565 4 9C4 11.9435 5.66627 14.533 8.64514 16.9029C9.39 17.4955 10.1845 18.0485 11.0661 18.6038C11.3646 18.7919 11.6611 18.9729 12 19.1752C12.3389 18.9729 12.6354 18.7919 12.9339 18.6038Z" })), hge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M16.5 3C19.5376 3 22 5.5 22 9C22 16 14.5 20 12 21.5C9.5 20 2 16 2 9C2 5.5 4.5 3 7.5 3C9.35997 3 11 4 12 5C13 4 14.64 3 16.5 3ZM12.9339 18.6038C13.8155 18.0485 14.61 17.4955 15.3549 16.9029C18.3337 14.533 20 11.9435 20 9C20 6.64076 18.463 5 16.5 5C15.4241 5 14.2593 5.56911 13.4142 6.41421L12 7.82843L10.5858 6.41421C9.74068 5.56911 8.5759 5 7.5 5C5.55906 5 4 6.6565 4 9C4 11.9435 5.66627 14.533 8.64514 16.9029C9.39 17.4955 10.1845 18.0485 11.0661 18.6038C11.3646 18.7919 11.6611 18.9729 12 19.1752C12.3389 18.9729 12.6354 18.7919 12.9339 18.6038Z" })), mge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43394,7 +43394,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), gge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12H4C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C9.25022 4 6.82447 5.38734 5.38451 7.50024L8 7.5V9.5H2V3.5H4L3.99989 5.99918C5.82434 3.57075 8.72873 2 12 2ZM13 7L12.9998 11.585L16.2426 14.8284L14.8284 16.2426L10.9998 12.413L11 7H13Z" })), hge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43402,7 +43402,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 11.1005L7 9.1005L12.5 14.6005L16 11.1005L19 14.1005V5H5V11.1005ZM5 13.9289V19H8.1005L11.0858 16.0147L7 11.9289L5 13.9289ZM10.9289 19H19V16.9289L16 13.9289L10.9289 19ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7C16.3284 7 17 7.67157 17 8.5C17 9.32843 16.3284 10 15.5 10Z" })), LB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 11.1005L7 9.1005L12.5 14.6005L16 11.1005L19 14.1005V5H5V11.1005ZM5 13.9289V19H8.1005L11.0858 16.0147L7 11.9289L5 13.9289ZM10.9289 19H19V16.9289L16 13.9289L10.9289 19ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7C16.3284 7 17 7.67157 17 8.5C17 9.32843 16.3284 10 15.5 10Z" })), RB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43410,7 +43410,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), _ge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), gge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43418,7 +43418,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), vge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), _ge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43426,7 +43426,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), yge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), vge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43434,7 +43434,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), RB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), zB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43442,7 +43442,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), bge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), yge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43450,7 +43450,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), xge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), bge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43458,7 +43458,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M13.0607 8.11097L14.4749 9.52518C17.2086 12.2589 17.2086 16.691 14.4749 19.4247L14.1214 19.7782C11.3877 22.5119 6.95555 22.5119 4.22188 19.7782C1.48821 17.0446 1.48821 12.6124 4.22188 9.87874L5.6361 11.293C3.68348 13.2456 3.68348 16.4114 5.6361 18.364C7.58872 20.3166 10.7545 20.3166 12.7072 18.364L13.0607 18.0105C15.0133 16.0578 15.0133 12.892 13.0607 10.9394L11.6465 9.52518L13.0607 8.11097ZM19.7782 14.1214L18.364 12.7072C20.3166 10.7545 20.3166 7.58872 18.364 5.6361C16.4114 3.68348 13.2456 3.68348 11.293 5.6361L10.9394 5.98965C8.98678 7.94227 8.98678 11.1081 10.9394 13.0607L12.3536 14.4749L10.9394 15.8891L9.52518 14.4749C6.79151 11.7413 6.79151 7.30911 9.52518 4.57544L9.87874 4.22188C12.6124 1.48821 17.0446 1.48821 19.7782 4.22188C22.5119 6.95555 22.5119 11.3877 19.7782 14.1214Z" })), Sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M13.0607 8.11097L14.4749 9.52518C17.2086 12.2589 17.2086 16.691 14.4749 19.4247L14.1214 19.7782C11.3877 22.5119 6.95555 22.5119 4.22188 19.7782C1.48821 17.0446 1.48821 12.6124 4.22188 9.87874L5.6361 11.293C3.68348 13.2456 3.68348 16.4114 5.6361 18.364C7.58872 20.3166 10.7545 20.3166 12.7072 18.364L13.0607 18.0105C15.0133 16.0578 15.0133 12.892 13.0607 10.9394L11.6465 9.52518L13.0607 8.11097ZM19.7782 14.1214L18.364 12.7072C20.3166 10.7545 20.3166 7.58872 18.364 5.6361C16.4114 3.68348 13.2456 3.68348 11.293 5.6361L10.9394 5.98965C8.98678 7.94227 8.98678 11.1081 10.9394 13.0607L12.3536 14.4749L10.9394 15.8891L9.52518 14.4749C6.79151 11.7413 6.79151 7.30911 9.52518 4.57544L9.87874 4.22188C12.6124 1.48821 17.0446 1.48821 19.7782 4.22188C22.5119 6.95555 22.5119 11.3877 19.7782 14.1214Z" })), xge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43466,7 +43466,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" })), zB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" })), BB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43474,7 +43474,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 2C17.5222 2 22 5.97778 22 10.8889C22 13.9556 19.5111 16.4444 16.4444 16.4444H14.4778C13.5556 16.4444 12.8111 17.1889 12.8111 18.1111C12.8111 18.5333 12.9778 18.9222 13.2333 19.2111C13.5 19.5111 13.6667 19.9 13.6667 20.3333C13.6667 21.2556 12.9 22 12 22C6.47778 22 2 17.5222 2 12C2 6.47778 6.47778 2 12 2ZM10.8111 18.1111C10.8111 16.0843 12.451 14.4444 14.4778 14.4444H16.4444C18.4065 14.4444 20 12.851 20 10.8889C20 7.1392 16.4677 4 12 4C7.58235 4 4 7.58235 4 12C4 16.19 7.2226 19.6285 11.324 19.9718C10.9948 19.4168 10.8111 18.7761 10.8111 18.1111ZM7.5 12C6.67157 12 6 11.3284 6 10.5C6 9.67157 6.67157 9 7.5 9C8.32843 9 9 9.67157 9 10.5C9 11.3284 8.32843 12 7.5 12ZM16.5 12C15.6716 12 15 11.3284 15 10.5C15 9.67157 15.6716 9 16.5 9C17.3284 9 18 9.67157 18 10.5C18 11.3284 17.3284 12 16.5 12ZM12 9C11.1716 9 10.5 8.32843 10.5 7.5C10.5 6.67157 11.1716 6 12 6C12.8284 6 13.5 6.67157 13.5 7.5C13.5 8.32843 12.8284 9 12 9Z" })), BB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 2C17.5222 2 22 5.97778 22 10.8889C22 13.9556 19.5111 16.4444 16.4444 16.4444H14.4778C13.5556 16.4444 12.8111 17.1889 12.8111 18.1111C12.8111 18.5333 12.9778 18.9222 13.2333 19.2111C13.5 19.5111 13.6667 19.9 13.6667 20.3333C13.6667 21.2556 12.9 22 12 22C6.47778 22 2 17.5222 2 12C2 6.47778 6.47778 2 12 2ZM10.8111 18.1111C10.8111 16.0843 12.451 14.4444 14.4778 14.4444H16.4444C18.4065 14.4444 20 12.851 20 10.8889C20 7.1392 16.4677 4 12 4C7.58235 4 4 7.58235 4 12C4 16.19 7.2226 19.6285 11.324 19.9718C10.9948 19.4168 10.8111 18.7761 10.8111 18.1111ZM7.5 12C6.67157 12 6 11.3284 6 10.5C6 9.67157 6.67157 9 7.5 9C8.32843 9 9 9.67157 9 10.5C9 11.3284 8.32843 12 7.5 12ZM16.5 12C15.6716 12 15 11.3284 15 10.5C15 9.67157 15.6716 9 16.5 9C17.3284 9 18 9.67157 18 10.5C18 11.3284 17.3284 12 16.5 12ZM12 9C11.1716 9 10.5 8.32843 10.5 7.5C10.5 6.67157 11.1716 6 12 6C12.8284 6 13.5 6.67157 13.5 7.5C13.5 8.32843 12.8284 9 12 9Z" })), VB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43482,7 +43482,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), VB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), HB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43490,7 +43490,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), HB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), UB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43498,7 +43498,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), UB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), WB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43506,7 +43506,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), Cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), Sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43514,7 +43514,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9 7.53861L15 21.5386L18.6594 13H23V11H17.3406L15 16.4614L9 2.46143L5.3406 11H1V13H6.6594L9 7.53861Z" })), WB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9 7.53861L15 21.5386L18.6594 13H23V11H17.3406L15 16.4614L9 2.46143L5.3406 11H1V13H6.6594L9 7.53861Z" })), GB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43522,7 +43522,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), wge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), Cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43530,7 +43530,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4.99958 12.9999C4.99958 7.91198 7.90222 3.5636 11.9996 1.81799C16.0969 3.5636 18.9996 7.91198 18.9996 12.9999C18.9996 13.8229 18.9236 14.6264 18.779 15.4027L20.7194 17.2353C20.8845 17.3913 20.9238 17.6389 20.815 17.8383L18.3196 22.4133C18.1873 22.6557 17.8836 22.7451 17.6412 22.6128C17.5993 22.59 17.5608 22.5612 17.5271 22.5274L15.2925 20.2928C15.1049 20.1053 14.8506 19.9999 14.5854 19.9999H9.41379C9.14857 19.9999 8.89422 20.1053 8.70668 20.2928L6.47209 22.5274C6.27683 22.7227 5.96025 22.7227 5.76498 22.5274C5.73122 22.4937 5.70246 22.4552 5.67959 22.4133L3.18412 17.8383C3.07537 17.6389 3.11464 17.3913 3.27975 17.2353L5.22014 15.4027C5.07551 14.6264 4.99958 13.8229 4.99958 12.9999ZM6.47542 19.6957L7.29247 18.8786C7.85508 18.316 8.61814 17.9999 9.41379 17.9999H14.5854C15.381 17.9999 16.1441 18.316 16.7067 18.8786L17.5237 19.6957L18.5056 17.8955L17.4058 16.8568C16.9117 16.3901 16.6884 15.7045 16.8128 15.0364C16.9366 14.3722 16.9996 13.6911 16.9996 12.9999C16.9996 9.13037 15.0045 5.69965 11.9996 4.04033C8.99462 5.69965 6.99958 9.13037 6.99958 12.9999C6.99958 13.6911 7.06255 14.3722 7.18631 15.0364C7.31078 15.7045 7.08746 16.3901 6.59338 16.8568L5.49353 17.8955L6.47542 19.6957ZM11.9996 12.9999C10.895 12.9999 9.99958 12.1045 9.99958 10.9999C9.99958 9.89537 10.895 8.99994 11.9996 8.99994C13.1041 8.99994 13.9996 9.89537 13.9996 10.9999C13.9996 12.1045 13.1041 12.9999 11.9996 12.9999Z" })), Tge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4.99958 12.9999C4.99958 7.91198 7.90222 3.5636 11.9996 1.81799C16.0969 3.5636 18.9996 7.91198 18.9996 12.9999C18.9996 13.8229 18.9236 14.6264 18.779 15.4027L20.7194 17.2353C20.8845 17.3913 20.9238 17.6389 20.815 17.8383L18.3196 22.4133C18.1873 22.6557 17.8836 22.7451 17.6412 22.6128C17.5993 22.59 17.5608 22.5612 17.5271 22.5274L15.2925 20.2928C15.1049 20.1053 14.8506 19.9999 14.5854 19.9999H9.41379C9.14857 19.9999 8.89422 20.1053 8.70668 20.2928L6.47209 22.5274C6.27683 22.7227 5.96025 22.7227 5.76498 22.5274C5.73122 22.4937 5.70246 22.4552 5.67959 22.4133L3.18412 17.8383C3.07537 17.6389 3.11464 17.3913 3.27975 17.2353L5.22014 15.4027C5.07551 14.6264 4.99958 13.8229 4.99958 12.9999ZM6.47542 19.6957L7.29247 18.8786C7.85508 18.316 8.61814 17.9999 9.41379 17.9999H14.5854C15.381 17.9999 16.1441 18.316 16.7067 18.8786L17.5237 19.6957L18.5056 17.8955L17.4058 16.8568C16.9117 16.3901 16.6884 15.7045 16.8128 15.0364C16.9366 14.3722 16.9996 13.6911 16.9996 12.9999C16.9996 9.13037 15.0045 5.69965 11.9996 4.04033C8.99462 5.69965 6.99958 9.13037 6.99958 12.9999C6.99958 13.6911 7.06255 14.3722 7.18631 15.0364C7.31078 15.7045 7.08746 16.3901 6.59338 16.8568L5.49353 17.8955L6.47542 19.6957ZM11.9996 12.9999C10.895 12.9999 9.99958 12.1045 9.99958 10.9999C9.99958 9.89537 10.895 8.99994 11.9996 8.99994C13.1041 8.99994 13.9996 9.89537 13.9996 10.9999C13.9996 12.1045 13.1041 12.9999 11.9996 12.9999Z" })), wge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43538,7 +43538,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 15V8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5V15.5C13 16.8807 14.1193 18 15.5 18C16.8807 18 18 16.8807 18 15.5V8.82929C16.8348 8.41746 16 7.30622 16 6C16 4.34315 17.3431 3 19 3C20.6569 3 22 4.34315 22 6C22 7.30622 21.1652 8.41746 20 8.82929V15.5C20 17.9853 17.9853 20 15.5 20C13.0147 20 11 17.9853 11 15.5V8.5C11 7.11929 9.88071 6 8.5 6C7.11929 6 6 7.11929 6 8.5V15H9L5 20L1 15H4ZM19 7C19.5523 7 20 6.55228 20 6C20 5.44772 19.5523 5 19 5C18.4477 5 18 5.44772 18 6C18 6.55228 18.4477 7 19 7Z" })), GB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 15V8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5V15.5C13 16.8807 14.1193 18 15.5 18C16.8807 18 18 16.8807 18 15.5V8.82929C16.8348 8.41746 16 7.30622 16 6C16 4.34315 17.3431 3 19 3C20.6569 3 22 4.34315 22 6C22 7.30622 21.1652 8.41746 20 8.82929V15.5C20 17.9853 17.9853 20 15.5 20C13.0147 20 11 17.9853 11 15.5V8.5C11 7.11929 9.88071 6 8.5 6C7.11929 6 6 7.11929 6 8.5V15H9L5 20L1 15H4ZM19 7C19.5523 7 20 6.55228 20 6C20 5.44772 19.5523 5 19 5C18.4477 5 18 5.44772 18 6C18 6.55228 18.4477 7 19 7Z" })), KB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43546,7 +43546,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), KB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), qB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43554,7 +43554,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), qB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), JB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43562,7 +43562,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3.33946 17.0002C2.90721 16.2515 2.58277 15.4702 2.36133 14.6741C3.3338 14.1779 3.99972 13.1668 3.99972 12.0002C3.99972 10.8345 3.3348 9.824 2.36353 9.32741C2.81025 7.71651 3.65857 6.21627 4.86474 4.99001C5.7807 5.58416 6.98935 5.65534 7.99972 5.072C9.01009 4.48866 9.55277 3.40635 9.4962 2.31604C11.1613 1.8846 12.8847 1.90004 14.5031 2.31862C14.4475 3.40806 14.9901 4.48912 15.9997 5.072C17.0101 5.65532 18.2187 5.58416 19.1346 4.99007C19.7133 5.57986 20.2277 6.25151 20.66 7.00021C21.0922 7.7489 21.4167 8.53025 21.6381 9.32628C20.6656 9.82247 19.9997 10.8336 19.9997 12.0002C19.9997 13.166 20.6646 14.1764 21.6359 14.673C21.1892 16.2839 20.3409 17.7841 19.1347 19.0104C18.2187 18.4163 17.0101 18.3451 15.9997 18.9284C14.9893 19.5117 14.4467 20.5941 14.5032 21.6844C12.8382 22.1158 11.1148 22.1004 9.49633 21.6818C9.55191 20.5923 9.00929 19.5113 7.99972 18.9284C6.98938 18.3451 5.78079 18.4162 4.86484 19.0103C4.28617 18.4205 3.77172 17.7489 3.33946 17.0002ZM8.99972 17.1964C10.0911 17.8265 10.8749 18.8227 11.2503 19.9659C11.7486 20.0133 12.2502 20.014 12.7486 19.9675C13.1238 18.8237 13.9078 17.8268 14.9997 17.1964C16.0916 16.5659 17.347 16.3855 18.5252 16.6324C18.8146 16.224 19.0648 15.7892 19.2729 15.334C18.4706 14.4373 17.9997 13.2604 17.9997 12.0002C17.9997 10.74 18.4706 9.5632 19.2729 8.6665C19.1688 8.4405 19.0538 8.21822 18.9279 8.00021C18.802 7.78219 18.667 7.57148 18.5233 7.36842C17.3457 7.61476 16.0911 7.43414 14.9997 6.80405C13.9083 6.17395 13.1246 5.17768 12.7491 4.03455C12.2509 3.98714 11.7492 3.98646 11.2509 4.03292C10.8756 5.17671 10.0916 6.17364 8.99972 6.80405C7.9078 7.43447 6.65245 7.61494 5.47428 7.36803C5.18485 7.77641 4.93463 8.21117 4.72656 8.66637C5.52881 9.56311 5.99972 10.74 5.99972 12.0002C5.99972 13.2604 5.52883 14.4372 4.72656 15.3339C4.83067 15.5599 4.94564 15.7822 5.07152 16.0002C5.19739 16.2182 5.3324 16.4289 5.47612 16.632C6.65377 16.3857 7.90838 16.5663 8.99972 17.1964ZM11.9997 15.0002C10.3429 15.0002 8.99972 13.6571 8.99972 12.0002C8.99972 10.3434 10.3429 9.00021 11.9997 9.00021C13.6566 9.00021 14.9997 10.3434 14.9997 12.0002C14.9997 13.6571 13.6566 15.0002 11.9997 15.0002ZM11.9997 13.0002C12.552 13.0002 12.9997 12.5525 12.9997 12.0002C12.9997 11.4479 12.552 11.0002 11.9997 11.0002C11.4474 11.0002 10.9997 11.4479 10.9997 12.0002C10.9997 12.5525 11.4474 13.0002 11.9997 13.0002Z" })), Ege = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3.33946 17.0002C2.90721 16.2515 2.58277 15.4702 2.36133 14.6741C3.3338 14.1779 3.99972 13.1668 3.99972 12.0002C3.99972 10.8345 3.3348 9.824 2.36353 9.32741C2.81025 7.71651 3.65857 6.21627 4.86474 4.99001C5.7807 5.58416 6.98935 5.65534 7.99972 5.072C9.01009 4.48866 9.55277 3.40635 9.4962 2.31604C11.1613 1.8846 12.8847 1.90004 14.5031 2.31862C14.4475 3.40806 14.9901 4.48912 15.9997 5.072C17.0101 5.65532 18.2187 5.58416 19.1346 4.99007C19.7133 5.57986 20.2277 6.25151 20.66 7.00021C21.0922 7.7489 21.4167 8.53025 21.6381 9.32628C20.6656 9.82247 19.9997 10.8336 19.9997 12.0002C19.9997 13.166 20.6646 14.1764 21.6359 14.673C21.1892 16.2839 20.3409 17.7841 19.1347 19.0104C18.2187 18.4163 17.0101 18.3451 15.9997 18.9284C14.9893 19.5117 14.4467 20.5941 14.5032 21.6844C12.8382 22.1158 11.1148 22.1004 9.49633 21.6818C9.55191 20.5923 9.00929 19.5113 7.99972 18.9284C6.98938 18.3451 5.78079 18.4162 4.86484 19.0103C4.28617 18.4205 3.77172 17.7489 3.33946 17.0002ZM8.99972 17.1964C10.0911 17.8265 10.8749 18.8227 11.2503 19.9659C11.7486 20.0133 12.2502 20.014 12.7486 19.9675C13.1238 18.8237 13.9078 17.8268 14.9997 17.1964C16.0916 16.5659 17.347 16.3855 18.5252 16.6324C18.8146 16.224 19.0648 15.7892 19.2729 15.334C18.4706 14.4373 17.9997 13.2604 17.9997 12.0002C17.9997 10.74 18.4706 9.5632 19.2729 8.6665C19.1688 8.4405 19.0538 8.21822 18.9279 8.00021C18.802 7.78219 18.667 7.57148 18.5233 7.36842C17.3457 7.61476 16.0911 7.43414 14.9997 6.80405C13.9083 6.17395 13.1246 5.17768 12.7491 4.03455C12.2509 3.98714 11.7492 3.98646 11.2509 4.03292C10.8756 5.17671 10.0916 6.17364 8.99972 6.80405C7.9078 7.43447 6.65245 7.61494 5.47428 7.36803C5.18485 7.77641 4.93463 8.21117 4.72656 8.66637C5.52881 9.56311 5.99972 10.74 5.99972 12.0002C5.99972 13.2604 5.52883 14.4372 4.72656 15.3339C4.83067 15.5599 4.94564 15.7822 5.07152 16.0002C5.19739 16.2182 5.3324 16.4289 5.47612 16.632C6.65377 16.3857 7.90838 16.5663 8.99972 17.1964ZM11.9997 15.0002C10.3429 15.0002 8.99972 13.6571 8.99972 12.0002C8.99972 10.3434 10.3429 9.00021 11.9997 9.00021C13.6566 9.00021 14.9997 10.3434 14.9997 12.0002C14.9997 13.6571 13.6566 15.0002 11.9997 15.0002ZM11.9997 13.0002C12.552 13.0002 12.9997 12.5525 12.9997 12.0002C12.9997 11.4479 12.552 11.0002 11.9997 11.0002C11.4474 11.0002 10.9997 11.4479 10.9997 12.0002C10.9997 12.5525 11.4474 13.0002 11.9997 13.0002Z" })), Tge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43570,7 +43570,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM8 5H4V19H8V5ZM10 5V19H20V5H10Z" })), JB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM8 5H4V19H8V5ZM10 5V19H20V5H10Z" })), YB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43578,7 +43578,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M7 4V20H17V4H7ZM6 2H18C18.5523 2 19 2.44772 19 3V21C19 21.5523 18.5523 22 18 22H6C5.44772 22 5 21.5523 5 21V3C5 2.44772 5.44772 2 6 2ZM12 17C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17Z" })), Dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M7 4V20H17V4H7ZM6 2H18C18.5523 2 19 2.44772 19 3V21C19 21.5523 18.5523 22 18 22H6C5.44772 22 5 21.5523 5 21V3C5 2.44772 5.44772 2 6 2ZM12 17C12.5523 17 13 17.4477 13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17Z" })), Ege = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43586,7 +43586,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), YB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), XB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43594,7 +43594,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M7 7V17H17V7H7ZM6 5H18C18.5523 5 19 5.44772 19 6V18C19 18.5523 18.5523 19 18 19H6C5.44772 19 5 18.5523 5 18V6C5 5.44772 5.44772 5 6 5Z" })), Oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M7 7V17H17V7H7ZM6 5H18C18.5523 5 19 5.44772 19 6V18C19 18.5523 18.5523 19 18 19H6C5.44772 19 5 18.5523 5 18V6C5 5.44772 5.44772 5 6 5Z" })), Dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43602,7 +43602,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), kge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), Oge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43610,7 +43610,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M19 4H5V20H19V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H19.9997C20.5519 2 20.9996 2.44772 20.9997 3L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM11.2929 13.1213L15.5355 8.87868L16.9497 10.2929L11.2929 15.9497L7.40381 12.0607L8.81802 10.6464L11.2929 13.1213Z" })), Age = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M19 4H5V20H19V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H19.9997C20.5519 2 20.9996 2.44772 20.9997 3L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918ZM11.2929 13.1213L15.5355 8.87868L16.9497 10.2929L11.2929 15.9497L7.40381 12.0607L8.81802 10.6464L11.2929 13.1213Z" })), kge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43618,7 +43618,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), jge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), Age = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43626,7 +43626,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), XB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), ZB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43634,7 +43634,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5.32943 3.27158C6.56252 2.8332 7.9923 3.10749 8.97927 4.09446C10.1002 5.21537 10.3019 6.90741 9.5843 8.23385L20.293 18.9437L18.8788 20.3579L8.16982 9.64875C6.84325 10.3669 5.15069 10.1654 4.02952 9.04421C3.04227 8.05696 2.7681 6.62665 3.20701 5.39332L5.44373 7.63C6.02952 8.21578 6.97927 8.21578 7.56505 7.63C8.15084 7.04421 8.15084 6.09446 7.56505 5.50868L5.32943 3.27158ZM15.6968 5.15512L18.8788 3.38736L20.293 4.80157L18.5252 7.98355L16.7574 8.3371L14.6361 10.4584L13.2219 9.04421L15.3432 6.92289L15.6968 5.15512ZM8.97927 13.2868L10.3935 14.7011L5.09018 20.0044C4.69966 20.3949 4.06649 20.3949 3.67597 20.0044C3.31334 19.6417 3.28744 19.0699 3.59826 18.6774L3.67597 18.5902L8.97927 13.2868Z" })), Mge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5.32943 3.27158C6.56252 2.8332 7.9923 3.10749 8.97927 4.09446C10.1002 5.21537 10.3019 6.90741 9.5843 8.23385L20.293 18.9437L18.8788 20.3579L8.16982 9.64875C6.84325 10.3669 5.15069 10.1654 4.02952 9.04421C3.04227 8.05696 2.7681 6.62665 3.20701 5.39332L5.44373 7.63C6.02952 8.21578 6.97927 8.21578 7.56505 7.63C8.15084 7.04421 8.15084 6.09446 7.56505 5.50868L5.32943 3.27158ZM15.6968 5.15512L18.8788 3.38736L20.293 4.80157L18.5252 7.98355L16.7574 8.3371L14.6361 10.4584L13.2219 9.04421L15.3432 6.92289L15.6968 5.15512ZM8.97927 13.2868L10.3935 14.7011L5.09018 20.0044C4.69966 20.3949 4.06649 20.3949 3.67597 20.0044C3.31334 19.6417 3.28744 19.0699 3.59826 18.6774L3.67597 18.5902L8.97927 13.2868Z" })), jge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43642,7 +43642,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), ZB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), QB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43650,7 +43650,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M20 22H18V20C18 18.3431 16.6569 17 15 17H9C7.34315 17 6 18.3431 6 20V22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13ZM12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z" })), QB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M20 22H18V20C18 18.3431 16.6569 17 15 17H9C7.34315 17 6 18.3431 6 20V22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13ZM12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z" })), $B = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43658,7 +43658,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), $B = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), eV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43666,7 +43666,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), Nge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), Mge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43674,7 +43674,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), eV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), tV = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43682,7 +43682,7 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4.50772 2.87597C4.57028 2.37554 4.99568 2 5.5 2H18.5C19.0043 2 19.4297 2.37554 19.4923 2.87597L20.9923 14.876C20.9974 14.9171 21 14.9585 21 15V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V15C3 14.9585 3.00258 14.9171 3.00772 14.876L4.50772 2.87597ZM6.38278 4L5.13278 14H18.8672L17.6172 4H6.38278ZM19 16H5V20H19V16ZM15 17H17V19H15V17ZM13 17H11V19H13V17Z" })), Pge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4.50772 2.87597C4.57028 2.37554 4.99568 2 5.5 2H18.5C19.0043 2 19.4297 2.37554 19.4923 2.87597L20.9923 14.876C20.9974 14.9171 21 14.9585 21 15V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V15C3 14.9585 3.00258 14.9171 3.00772 14.876L4.50772 2.87597ZM6.38278 4L5.13278 14H18.8672L17.6172 4H6.38278ZM19 16H5V20H19V16ZM15 17H17V19H15V17ZM13 17H11V19H13V17Z" })), Nge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43692,8 +43692,8 @@ var Jhe = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
className: "remixicon " + (n || "")
}, F.createElement("path", { d: "M8.00008 6V9H5.00008V6H8.00008ZM3.00008 4V11H10.0001V4H3.00008ZM13.0001 4H21.0001V6H13.0001V4ZM13.0001 11H21.0001V13H13.0001V11ZM13.0001 18H21.0001V20H13.0001V18ZM10.7072 16.2071L9.29297 14.7929L6.00008 18.0858L4.20718 16.2929L2.79297 17.7071L6.00008 20.9142L10.7072 16.2071Z" }));
// src/react/boardui/components/base/input/label.tsx
-function tV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsxs)(IL, {
+function nV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsxs)(RL, {
"data-label": "true",
...a,
className: q("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
@@ -43704,7 +43704,7 @@ function tV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, I.jsx)(_ge, {
+ n && /* @__PURE__ */ (0, I.jsx)(gge, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -43712,23 +43712,23 @@ function tV({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
});
}
// src/react/boardui/components/base/input/hint-text.tsx
-function nV({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, I.jsx)(Ipe, {
+function rV({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, I.jsx)(Ppe, {
slot: e ? "errorMessage" : "description",
...n,
className: q("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
// src/react/boardui/components/base/input/input.tsx
-var rV = (0, F.createContext)({});
-function iV({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(rV.Provider, {
+var iV = (0, F.createContext)({});
+function aV({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(iV.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, I.jsx)(Ihe, {
+ children: /* @__PURE__ */ (0, I.jsx)(Phe, {
...a,
"data-input-size": e,
className: q("group flex h-max w-full flex-col items-start gap-1", r),
@@ -43736,8 +43736,8 @@ function iV({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
})
});
}
-iV.displayName = "TextField";
-var aV = NI({
+aV.displayName = "TextField";
+var oV = FI({
field: "relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent transition-[background-color,box-shadow,color] duration-[var(--input-transition-ms)] ease",
fieldSize: {
medium: "p-2",
@@ -43752,44 +43752,44 @@ var aV = NI({
input: "min-w-0 flex-1 bg-transparent border-0 outline-none p-0 m-0 font-sans text-body-regular text-text-primary pl-1 placeholder:text-text-tertiary focus:placeholder:text-text-primary disabled:text-input-disabled-text disabled:placeholder:text-input-disabled-text disabled:cursor-not-allowed aria-invalid:placeholder:text-text-error-placeholder",
icon: "size-5 shrink-0"
});
-function oV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, F.useContext)(rV), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, I.jsx)(JL, {
+function sV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, F.useContext)(iV), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, I.jsx)(XL, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => q(aV.field, d ? aV.fieldWithAddonSize[u] : aV.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => q(oV.field, d ? oV.fieldWithAddonSize[u] : oV.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
children: /* @__PURE__ */ (0, I.jsxs)("div", {
- className: aV.content,
+ className: oV.content,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
- className: aV.leftSection,
+ className: oV.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, I.jsx)(t, {
- className: aV.icon,
+ className: oV.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, I.jsx)(Hpe, {
+ }) : null, /* @__PURE__ */ (0, I.jsx)(Bpe, {
ref: o,
...c,
- className: q(aV.input, l.inputClassName, a)
+ className: q(oV.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: aV.icon,
+ className: oV.icon,
"aria-hidden": !0
}) : null]
})
});
}
-oV.displayName = "InputBase";
-function sV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
- return /* @__PURE__ */ (0, I.jsx)(iV, {
+sV.displayName = "InputBase";
+function cV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {
+ return /* @__PURE__ */ (0, I.jsx)(aV, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- e && /* @__PURE__ */ (0, I.jsx)(tV, {
+ e && /* @__PURE__ */ (0, I.jsx)(nV, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, I.jsx)(oV, {
+ /* @__PURE__ */ (0, I.jsx)(sV, {
ref: c,
groupRef: l,
placeholder: r,
@@ -43798,25 +43798,25 @@ function sV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, I.jsx)(nV, {
+ t && /* @__PURE__ */ (0, I.jsx)(rV, {
isInvalid: d,
children: t
})
] })
});
}
-sV.displayName = "Input";
+cV.displayName = "Input";
// src/react/components/modal-frame.tsx
-var Fge = {
+var Pge = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal",
collections: "max-w-4xl",
tutorial: "max-w-2xl"
};
-function cV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {
- let { isFocusVisible: o } = TC();
- return /* @__PURE__ */ (0, I.jsx)(Oz, {
+function lV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {
+ let { isFocusVisible: o } = EC();
+ return /* @__PURE__ */ (0, I.jsx)(Az, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
@@ -43824,11 +43824,11 @@ function cV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfa
"data-modal-kind": n,
"data-motion-instant": o || void 0,
className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, I.jsx)(wme, {
+ children: /* @__PURE__ */ (0, I.jsx)(Sme, {
"data-modal-surface": "",
"data-modal-width": n,
- className: q("flex max-h-full w-full flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown", Fge[n], a),
- children: /* @__PURE__ */ (0, I.jsx)(wz, {
+ className: q("flex max-h-full w-full flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown", Pge[n], a),
+ children: /* @__PURE__ */ (0, I.jsx)(Ez, {
"aria-label": r,
className: "flex min-h-0 flex-col overflow-y-auto overscroll-contain outline-none",
children: i
@@ -43836,7 +43836,7 @@ function cV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfa
})
});
}
-function lV({ children: e }) {
+function uV({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: "flex size-14 shrink-0 items-center justify-center rounded-2xl border border-separator-border bg-background-secondary-default text-foreground-icon-secondary",
@@ -43844,7 +43844,7 @@ function lV({ children: e }) {
});
}
// src/react/components/note.tsx
-function uV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
+function dV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
let s = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-note-layout": "",
className: q("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
@@ -43892,11 +43892,11 @@ function uV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout:
}
}
// src/react/components/empty-state.tsx
-var Ige = {
+var Fge = {
standard: "min-h-80 px-6 py-12",
compact: "min-h-60 px-4 py-6"
};
-function Lge({ target: e, children: t }) {
+function Ige({ target: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "secondary",
@@ -43904,11 +43904,11 @@ function Lge({ target: e, children: t }) {
children: t
});
}
-function dV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
+function fV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-empty-state": "",
"data-empty-size": i,
- className: `col-span-full flex w-full min-w-0 max-w-full flex-col items-center justify-center gap-2 rounded-floating border border-separator-border bg-background-secondary-default text-center ${Ige[i]}`,
+ className: `col-span-full flex w-full min-w-0 max-w-full flex-col items-center justify-center gap-2 rounded-floating border border-separator-border bg-background-secondary-default text-center ${Fge[i]}`,
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
@@ -43934,9 +43934,9 @@ function dV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }
});
}
// src/react/components/sprite-glyph.tsx
-var fV = /* @__PURE__ */ new Map();
-function pV(e) {
- let t = fV.get(e);
+var pV = /* @__PURE__ */ new Map();
+function mV(e) {
+ let t = pV.get(e);
if (t) return t;
let { wide: n, viewBox: r } = Cn(e), i = n ? ({ className: t }) => /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
@@ -43952,10 +43952,10 @@ function pV(e) {
className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
- return i.displayName = `SpriteGlyph(${e})`, fV.set(e, i), i;
+ return i.displayName = `SpriteGlyph(${e})`, pV.set(e, i), i;
}
// src/react/components/settings-dialog-close.tsx
-function mV({ label: e, id: t, onPress: n }) {
+function hV({ label: e, id: t, onPress: n }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
id: t,
@@ -43970,60 +43970,60 @@ function mV({ label: e, id: t, onPress: n }) {
});
}
// src/react/settings/busy-props.ts
-function hV(e) {
+function gV(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
}
// src/react/library-shortcuts/library-shortcuts.ts
-var gV = ["library-shortcuts"], _V = "/api/library-shortcuts";
-function vV(e = !0) {
+var _V = ["library-shortcuts"], vV = "/api/library-shortcuts";
+function yV(e = !0) {
return Ft({
- queryKey: gV,
- queryFn: ({ signal: e }) => B(_V, e),
+ queryKey: _V,
+ queryFn: ({ signal: e }) => B(vV, e),
enabled: e,
refetchOnMount: e ? "always" : !1
});
}
-function yV() {
+function bV() {
return It({
- mutationKey: gV,
- mutationFn: (e) => V(_V, e),
+ mutationKey: _V,
+ mutationFn: (e) => V(vV, e),
onSuccess: (e, t) => {
- H.setQueryData(gV, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
+ H.setQueryData(_V, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
}
});
}
-function bV(e, t) {
+function xV(e, t) {
return e.some((e) => t.scope === "online" ? e.scope === "online" && e.tag_id === t.tag_id : e.scope !== "online" && (t.entity_id ? e.entity_id === t.entity_id : e.kind === t.kind && e.name === t.name));
}
-function Rge(e) {
+function Lge(e) {
return e.scope === "online" ? `/follow?${new URLSearchParams({ tag: e.name })}` : Pn(e.kind, e.name, e.entity_id);
}
// src/react/library-shortcuts/shortcut-controls.tsx
-var xV = pV("star"), zge = pV("bookmark-plus"), SV = pV("chevron-right"), CV = {
+var SV = mV("star"), Rge = mV("bookmark-plus"), CV = mV("chevron-right"), wV = {
performer: "艺人",
creator: "创作者",
studio: "片商与厂牌",
series: "系列",
agency: "事务所",
tag: "标签"
-}, wV = {
- all: pV("star"),
- performer: pV("user-round"),
- creator: pV("user-round"),
- studio: pV("clapperboard"),
- series: pV("film"),
- agency: pV("briefcase"),
- tag: pV("tags"),
- filters: pV("list-filter")
-}, TV = [
+}, TV = {
+ all: mV("star"),
+ performer: mV("user-round"),
+ creator: mV("user-round"),
+ studio: mV("clapperboard"),
+ series: mV("film"),
+ agency: mV("briefcase"),
+ tag: mV("tags"),
+ filters: mV("list-filter")
+}, EV = [
["all", "全部"],
- ...Object.entries(CV),
+ ...Object.entries(wV),
["filters", "保存的筛选"]
];
-function EV({ label: e, children: t, ...n }) {
+function DV({ label: e, children: t, ...n }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
...n,
@@ -44033,20 +44033,20 @@ function EV({ label: e, children: t, ...n }) {
children: t
});
}
-function DV({ item: e }) {
- return /* @__PURE__ */ (0, I.jsx)(Bge, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
+function OV({ item: e }) {
+ return /* @__PURE__ */ (0, I.jsx)(zge, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
}
-function Bge({ item: e }) {
- rL();
- let t = vV(!1), n = (0, F.useRef)(t.data), r = yV(), i = t.data && t.data !== n.current ? bV(t.data.favorites || [], e) : e.favorite ?? (t.data ? bV(t.data.favorites || [], e) : !1);
+function zge({ item: e }) {
+ aL();
+ let t = yV(!1), n = (0, F.useRef)(t.data), r = bV(), i = t.data && t.data !== n.current ? xV(t.data.favorites || [], e) : e.favorite ?? (t.data ? xV(t.data.favorites || [], e) : !1);
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 flex-col gap-1",
children: [
- /* @__PURE__ */ (0, I.jsx)(EV, {
+ /* @__PURE__ */ (0, I.jsx)(DV, {
"data-favorite": "",
"aria-pressed": !!i,
label: `${i ? "取消收藏" : "收藏"}${nn(e.kind, e.name, e.entity_id)}`,
- ...hV(r.isPending),
+ ...gV(r.isPending),
onClick: () => {
r.isPending || r.mutate({
action: "favorite",
@@ -44057,9 +44057,9 @@ function Bge({ item: e }) {
children: r.isPending ? /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: Bs("") }
- }) : /* @__PURE__ */ (0, I.jsx)(xV, {})
+ }) : /* @__PURE__ */ (0, I.jsx)(SV, {})
}),
- r.isError ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ r.isError ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
children: lr(r.error)
}) : null,
@@ -44073,38 +44073,38 @@ function Bge({ item: e }) {
]
});
}
-function OV({ currentHref: e, kind: t }) {
+function kV({ currentHref: e, kind: t }) {
let [n, r] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-shortcuts-entry": "",
- children: /* @__PURE__ */ (0, I.jsx)(uL, {
+ children: /* @__PURE__ */ (0, I.jsx)(fL, {
"data-shortcuts-trigger": "",
label: "我的收藏",
- icon: xV,
+ icon: SV,
"aria-haspopup": "dialog",
"aria-expanded": n,
onPress: () => r(!0)
})
- }), /* @__PURE__ */ (0, I.jsx)(cV, {
+ }), /* @__PURE__ */ (0, I.jsx)(lV, {
isOpen: n,
onOpenChange: r,
width: "collections",
label: "我的收藏",
- children: n ? /* @__PURE__ */ (0, I.jsx)(Vge, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(Bge, {
currentHref: e,
kind: t,
close: () => r(!1)
}) : null
})] });
}
-function Vge({ currentHref: e, kind: t, close: n }) {
- rL();
- let r = vV(), i = yV(), [a, o] = (0, F.useState)(""), [s, c] = (0, F.useState)(t || "all"), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), p = (0, F.useId)(), [m, h] = (0, F.useState)(() => matchMedia("(max-width: 760px)").matches);
+function Bge({ currentHref: e, kind: t, close: n }) {
+ aL();
+ let r = yV(), i = bV(), [a, o] = (0, F.useState)(""), [s, c] = (0, F.useState)(t || "all"), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), p = (0, F.useId)(), [m, h] = (0, F.useState)(() => matchMedia("(max-width: 760px)").matches);
(0, F.useEffect)(() => {
let e = matchMedia("(max-width: 760px)"), t = () => h(e.matches);
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
}, []);
- let g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(s), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = gL(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
+ let g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(s), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = vL(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
(0, F.useLayoutEffect)(() => {
b.current && (x.current = Ro(b.current) || null);
}, []), (0, F.useLayoutEffect)(() => {
@@ -44117,7 +44117,7 @@ function Vge({ currentHref: e, kind: t, close: n }) {
}, [s]), (0, F.useLayoutEffect)(() => {
x.current?.();
});
- let C = TV.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
+ let C = EV.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
let t = [...e.currentTarget.querySelectorAll("[role=\"tab\"]")], n = t.indexOf(e.target);
if (n < 0) return;
let r = e.key === "Home" ? 0 : e.key === "End" ? t.length - 1 : ["ArrowDown", "ArrowRight"].includes(e.key) ? (n + 1) % t.length : ["ArrowUp", "ArrowLeft"].includes(e.key) ? (n + t.length - 1) % t.length : -1;
@@ -44140,7 +44140,7 @@ function Vge({ currentHref: e, kind: t, close: n }) {
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
className: "text-title-2-semibold text-text-primary",
children: C
- }), /* @__PURE__ */ (0, I.jsx)(mV, {
+ }), /* @__PURE__ */ (0, I.jsx)(hV, {
label: "关闭我的收藏",
onPress: n
})]
@@ -44170,8 +44170,8 @@ function Vge({ currentHref: e, kind: t, close: n }) {
role: "presentation",
children: "我的收藏"
}),
- TV.map(([e, t]) => {
- let n = wV[e] || xV, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
+ EV.map(([e, t]) => {
+ let n = TV[e] || SV, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
@@ -44203,17 +44203,17 @@ function Vge({ currentHref: e, kind: t, close: n }) {
href: "/flagged",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)(xV, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(SV, { "aria-hidden": !0 }),
"已标记",
- /* @__PURE__ */ (0, I.jsx)(SV, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, I.jsx)(CV, { "aria-hidden": !0 })
]
}), /* @__PURE__ */ (0, I.jsxs)("a", {
href: "/watch-later",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)(zge, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(Rge, { "aria-hidden": !0 }),
"稍后看",
- /* @__PURE__ */ (0, I.jsx)(SV, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, I.jsx)(CV, { "aria-hidden": !0 })
]
})]
})]
@@ -44232,7 +44232,7 @@ function Vge({ currentHref: e, kind: t, close: n }) {
"data-skeleton": "",
className: "h-12 animate-pulse rounded-lg bg-background-secondary-default"
}) : null,
- r.isError ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ r.isError ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -44241,16 +44241,16 @@ function Vge({ currentHref: e, kind: t, close: n }) {
}),
children: lr(r.error)
}) : null,
- i.isError ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ i.isError ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
children: lr(i.error)
}) : null,
E ? s === "filters" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- E.filters.length ? null : /* @__PURE__ */ (0, I.jsx)(dV, {
+ E.filters.length ? null : /* @__PURE__ */ (0, I.jsx)(fV, {
size: "compact",
- icon: pV("list-filter"),
+ icon: mV("list-filter"),
title: "还没有保存的筛选",
- actions: /* @__PURE__ */ (0, I.jsx)(vL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(bL, {
size: "small",
href: "/",
onClick: n,
@@ -44269,7 +44269,7 @@ function Vge({ currentHref: e, kind: t, close: n }) {
variant: "secondary",
size: "small",
"aria-label": `删除筛选${e.name}`,
- ...hV(i.isPending),
+ ...gV(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "delete_filter",
@@ -44284,7 +44284,7 @@ function Vge({ currentHref: e, kind: t, close: n }) {
className: "flex flex-col gap-3",
"aria-label": "保存当前筛选",
children: [
- /* @__PURE__ */ (0, I.jsx)(sV, {
+ /* @__PURE__ */ (0, I.jsx)(cV, {
label: "筛选名称",
value: a,
onChange: o,
@@ -44293,7 +44293,7 @@ function Vge({ currentHref: e, kind: t, close: n }) {
/* @__PURE__ */ (0, I.jsx)(J, {
type: "submit",
disabled: !a.trim(),
- ...hV(i.isPending),
+ ...gV(i.isPending),
children: "保存当前筛选"
}),
d ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -44304,16 +44304,16 @@ function Vge({ currentHref: e, kind: t, close: n }) {
]
}) : null
] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(sV, {
+ /* @__PURE__ */ (0, I.jsx)(cV, {
"aria-label": "搜索收藏",
placeholder: "搜索收藏",
- leadingIcon: pV("search"),
+ leadingIcon: mV("search"),
value: l,
onChange: u
}),
- O.length ? null : /* @__PURE__ */ (0, I.jsx)(dV, {
+ O.length ? null : /* @__PURE__ */ (0, I.jsx)(fV, {
size: "compact",
- icon: xV,
+ icon: SV,
title: l ? "没有匹配的收藏" : E.favorites.length ? "还没有此类收藏" : "还没有收藏",
actions: l ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -44323,7 +44323,7 @@ function Vge({ currentHref: e, kind: t, close: n }) {
size: "small",
onClick: () => c("all"),
children: "查看全部收藏"
- }) : /* @__PURE__ */ (0, I.jsx)(vL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(bL, {
size: "small",
href: "/",
onClick: n,
@@ -44337,25 +44337,25 @@ function Vge({ currentHref: e, kind: t, close: n }) {
"data-shortcuts-row": "",
className: "flex min-w-0 items-center justify-between gap-3",
children: [/* @__PURE__ */ (0, I.jsxs)("a", {
- href: Rge(e),
+ href: Lge(e),
"aria-label": nn(e.kind, e.name, e.entity_id),
onClick: n,
className: "flex min-w-0 flex-1 items-center gap-3 text-body-regular text-text-primary",
- children: [/* @__PURE__ */ (0, I.jsx)(Hge, { item: e }, e.image_url), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(Vge, { item: e }, e.image_url), /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "truncate",
children: nn(e.kind, e.name, e.entity_id)
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
- children: e.scope === "online" ? "在线标签" : CV[e.kind]
+ children: e.scope === "online" ? "在线标签" : wV[e.kind]
})]
})]
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
"aria-label": `取消收藏${nn(e.kind, e.name, e.entity_id)}`,
- ...hV(i.isPending),
+ ...gV(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "favorite",
@@ -44373,8 +44373,8 @@ function Vge({ currentHref: e, kind: t, close: n }) {
]
});
}
-function Hge({ item: e }) {
- let t = wV[e.kind] || xV;
+function Vge({ item: e }) {
+ let t = TV[e.kind] || SV;
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-shortcuts-avatar": "",
title: e.image_label || e.name,
@@ -44392,11 +44392,11 @@ function Hge({ item: e }) {
});
}
// src/react/components/board-navigation-link.tsx
-function Uge(e) {
+function Hge(e) {
return /* @__PURE__ */ (0, I.jsx)("a", { ...e });
}
// src/react/boardui/components/foundations/icons/chevrons.tsx
-function Wge(e) {
+function Uge(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -44410,7 +44410,7 @@ function Wge(e) {
})
});
}
-function Gge(e) {
+function Wge(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 12 12",
fill: "none",
@@ -44424,7 +44424,7 @@ function Gge(e) {
})
});
}
-function kV(e) {
+function AV(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -44437,7 +44437,7 @@ function kV(e) {
});
}
// src/react/boardui/components/base/breadcrumb/breadcrumb.tsx
-function Kge({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
+function Gge({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
let i = F.Children.toArray(e).filter(F.isValidElement);
return /* @__PURE__ */ (0, I.jsx)("nav", {
ref: r,
@@ -44445,14 +44445,14 @@ function Kge({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r
className: q("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
children: /* @__PURE__ */ (0, I.jsx)("ol", {
className: "flex items-center gap-2.5 px-1",
- children: i.map((e, t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, I.jsx)(Gge, {
+ children: i.map((e, t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, I.jsx)(Wge, {
className: "size-3 shrink-0 text-text-tertiary",
"aria-hidden": !0
}), e] }, e.key ?? t))
})
});
}
-function AV({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
+function jV({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
let o = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [t && /* @__PURE__ */ (0, I.jsx)(t, {
className: "size-4 shrink-0",
"aria-hidden": !0
@@ -44465,7 +44465,7 @@ function AV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
let s = q("-mx-1 flex items-center gap-1.5 rounded-md px-1 py-0.5 text-caption-1-medium whitespace-nowrap text-text-tertiary", "transition-colors duration-150 ease outline-none", "hover:bg-background-primary-hover hover:text-text-secondary", "focus-visible:ring-2 focus-visible:ring-border-focus-ring", a);
return /* @__PURE__ */ (0, I.jsx)("li", {
className: "flex items-center",
- children: n ? /* @__PURE__ */ (0, I.jsx)(Uge, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(Hge, {
href: n,
className: s,
children: o
@@ -44478,14 +44478,14 @@ function AV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
});
}
// src/react/boardui/components/foundations/direction/direction.tsx
-function jV() {
- return Pw().direction;
+function MV() {
+ return Fw().direction;
}
// src/react/boardui/components/base/dropdown/menu-styles.ts
-var MV = "max-w-[calc(100vw-32px)] overflow-y-auto rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown transition duration-150 ease-out data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:blur-[2px] data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px] data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left data-[placement=left]:origin-right data-[placement=right]:origin-left", qge = "w-[266px]", Jge = "flex w-full flex-col gap-1 outline-none", NV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", PV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+var NV = "max-w-[calc(100vw-32px)] overflow-y-auto rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown transition duration-150 ease-out data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:blur-[2px] data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px] data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left data-[placement=left]:origin-right data-[placement=right]:origin-left", Kge = "w-[266px]", qge = "flex w-full flex-col gap-1 outline-none", PV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", FV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
// src/react/boardui/components/base/tree-view/tree-view.tsx
-function Yge({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
- let c = jV(), l = (0, F.useContext)(NL), u = l === jL && !s.dragAndDropHooks ? IV : l;
+function Jge({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
+ let c = MV(), l = (0, F.useContext)(FL), u = l === NL && !s.dragAndDropHooks ? LV : l;
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "contents",
onKeyDownCapture: (e) => {
@@ -44502,23 +44502,23 @@ function Yge({ size: e = "md", showGuides: t = !0, selectionMode: n = "single",
}
}
},
- children: /* @__PURE__ */ (0, I.jsx)(NL.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(FL.Provider, {
value: u,
- children: /* @__PURE__ */ (0, I.jsx)(zhe, {
+ children: /* @__PURE__ */ (0, I.jsx)(Lhe, {
...s,
ref: o,
selectionMode: n,
"data-size": e,
"data-show-guides": t,
renderEmptyState: r,
- className: (e) => q("group/tree-view flex w-full min-w-0 flex-col rounded-3xl border border-border-button-default bg-background-primary-default p-2 outline-none", u === IV ? "gap-0" : "gap-0.5", "data-[empty]:px-4 data-[empty]:py-8 data-[empty]:text-center data-[empty]:text-body-regular data-[empty]:text-text-tertiary", "data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring", typeof i == "function" ? i(e) : i)
+ className: (e) => q("group/tree-view flex w-full min-w-0 flex-col rounded-3xl border border-border-button-default bg-background-primary-default p-2 outline-none", u === LV ? "gap-0" : "gap-0.5", "data-[empty]:px-4 data-[empty]:py-8 data-[empty]:text-center data-[empty]:text-body-regular data-[empty]:text-text-tertiary", "data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring", typeof i == "function" ? i(e) : i)
})
})
});
}
-function FV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
- let d = jV();
- return /* @__PURE__ */ (0, I.jsxs)(Hhe, {
+function IV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
+ let d = MV();
+ return /* @__PURE__ */ (0, I.jsxs)(Bhe, {
...u,
ref: l,
textValue: t,
@@ -44527,10 +44527,10 @@ function FV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
...typeof c == "function" ? c(e) : c
}),
className: (e) => q("relative flex min-h-9 min-w-0 cursor-pointer items-center gap-2 rounded-xl pe-2 text-body-regular text-text-primary outline-none", "transition-[background-color,color,box-shadow] duration-150 motion-reduce:transition-none", "group-data-[size=sm]/tree-view:min-h-8 group-data-[size=sm]/tree-view:text-body-2-regular", (e.isHovered || e.isPressed || e.isFocusVisible) && !e.isDisabled && "bg-dropdown-item-hover-background", e.isSelected && "bg-dropdown-item-hover-background", e.isFocusVisible && "ring-2 ring-inset ring-border-focus-ring", e.isDisabled && "cursor-default text-text-placeholder", typeof s == "function" ? s(e) : s),
- children: [/* @__PURE__ */ (0, I.jsx)(Vhe, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
- let f = n === null ? null : o && r ? r : n ?? (t ? o ? PB : MB : AB);
+ children: [/* @__PURE__ */ (0, I.jsx)(zhe, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
+ let f = n === null ? null : o && r ? r : n ?? (t ? o ? FB : NB : sge);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(Zge, {
+ /* @__PURE__ */ (0, I.jsx)(Xge, {
state: l,
id: u,
level: c,
@@ -44540,11 +44540,11 @@ function FV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
- children: [t ? /* @__PURE__ */ (0, I.jsx)(RL, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(BL, {
slot: "chevron",
isDisabled: s,
className: "flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-md text-foreground-icon-tertiary outline-none transition-colors hover:text-foreground-icon-primary data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, I.jsx)(yB, {
+ children: /* @__PURE__ */ (0, I.jsx)(xB, {
"aria-hidden": !0,
className: q("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
})
@@ -44568,24 +44568,24 @@ function FV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
} }), o]
});
}
-var IV = {
- ...jL,
- CollectionRoot: Xge
+var LV = {
+ ...NL,
+ CollectionRoot: Yge
};
-function Xge({ collection: e, ...t }) {
- let n = (0, F.useContext)(mB);
- return n ? /* @__PURE__ */ (0, I.jsx)(Ox, {
+function Yge({ collection: e, ...t }) {
+ let n = (0, F.useContext)(gB);
+ return n ? /* @__PURE__ */ (0, I.jsx)(Ax, {
initial: !1,
- children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(Qge, {
+ children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(Zge, {
state: n,
children: e.render?.(e)
}, e.key))
- }) : /* @__PURE__ */ (0, I.jsx)(jL.CollectionRoot, {
+ }) : /* @__PURE__ */ (0, I.jsx)(NL.CollectionRoot, {
collection: e,
...t
});
}
-function Zge({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
+function Xge({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
let o = e.collection.getItem(t);
if (!o) return null;
let s = [], c = o.parentKey == null ? null : e.collection.getItem(o.parentKey), l = n - 1;
@@ -44644,9 +44644,9 @@ function Zge({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
]
});
}
-function Qge({ state: e, children: t }) {
- let n = Tx(), r = Qx(), [i, a] = (0, F.useState)(e);
- return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(uS.div, {
+function Zge({ state: e, children: t }) {
+ let n = Dx(), r = eS(), [i, a] = (0, F.useState)(e);
+ return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(fS.div, {
role: "presentation",
className: "relative min-w-0 shrink-0 overflow-hidden",
"data-tree-view-exiting": !n || void 0,
@@ -44685,14 +44685,14 @@ function Qge({ state: e, children: t }) {
1
]
},
- children: /* @__PURE__ */ (0, I.jsx)(mB.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(gB.Provider, {
value: n ? e : i,
children: t
})
});
}
// src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var LV = {
+var RV = {
md: {
box: "size-4",
glyph: "size-4",
@@ -44706,8 +44706,8 @@ var LV = {
gap: "gap-1.5"
}
};
-function RV({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = LV[t], c = n || r, l = o && !a;
+function zV({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = RV[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: q("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? q("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : q("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
@@ -44733,13 +44733,13 @@ function RV({ state: e, size: t = "md" }) {
});
}
// src/react/boardui/components/base/checkbox/checkbox.tsx
-function zV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = LV[n];
- return /* @__PURE__ */ (0, I.jsx)(zpe, {
+function BV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = RV[n];
+ return /* @__PURE__ */ (0, I.jsx)(Lpe, {
ref: r,
...i,
className: (t) => q("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(RV, {
+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(zV, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, I.jsx)("span", {
@@ -44749,7 +44749,7 @@ function zV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
});
}
// src/react/components/overlay-scrollbar.ts
-function BV() {
+function VV() {
let e = (0, F.useRef)(null), t = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
t.current?.node !== e.current && (t.current?.control?.destroy(), t.current = e.current ? {
@@ -44761,43 +44761,43 @@ function BV() {
}, []), e;
}
// src/react/providers.tsx
-var VV = null;
-function $ge() {
- return VV?.isConnected || (VV = document.createElement("div"), VV.className = "peach-react", VV.dataset.reactOverlays = "", document.body.append(VV)), VV;
+var HV = null;
+function Qge() {
+ return HV?.isConnected || (HV = document.createElement("div"), HV.className = "peach-react", HV.dataset.reactOverlays = "", document.body.append(HV)), HV;
}
-function HV({ children: e }) {
+function UV({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)(oe, {
client: H,
- children: /* @__PURE__ */ (0, I.jsx)(tie, {
+ children: /* @__PURE__ */ (0, I.jsx)($re, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, I.jsx)(CD, {
- getContainer: $ge,
+ children: /* @__PURE__ */ (0, I.jsx)(wD, {
+ getContainer: Qge,
children: e
})
})
});
}
// node_modules/sonner/dist/index.mjs
-function e_e(e) {
+function $ge(e) {
if (!e || typeof document > "u") return;
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
}
-var t_e = (e) => {
+var e_e = (e) => {
switch (e) {
- case "success": return i_e;
- case "info": return o_e;
- case "warning": return a_e;
- case "error": return s_e;
+ case "success": return r_e;
+ case "info": return a_e;
+ case "warning": return i_e;
+ case "error": return o_e;
default: return null;
}
-}, n_e = Array(12).fill(0), r_e = ({ visible: e, className: t }) => /*#__PURE__*/ F.createElement("div", {
+}, t_e = Array(12).fill(0), n_e = ({ visible: e, className: t }) => /*#__PURE__*/ F.createElement("div", {
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
"data-visible": e
-}, /*#__PURE__*/ F.createElement("div", { className: "sonner-spinner" }, n_e.map((e, t) => /*#__PURE__*/ F.createElement("div", {
+}, /*#__PURE__*/ F.createElement("div", { className: "sonner-spinner" }, t_e.map((e, t) => /*#__PURE__*/ F.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), i_e = /*#__PURE__*/ F.createElement("svg", {
+})))), r_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44808,7 +44808,7 @@ var t_e = (e) => {
fillRule: "evenodd",
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
clipRule: "evenodd"
-})), a_e = /*#__PURE__*/ F.createElement("svg", {
+})), i_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -44819,7 +44819,7 @@ var t_e = (e) => {
fillRule: "evenodd",
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
clipRule: "evenodd"
-})), o_e = /*#__PURE__*/ F.createElement("svg", {
+})), a_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44830,7 +44830,7 @@ var t_e = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
clipRule: "evenodd"
-})), s_e = /*#__PURE__*/ F.createElement("svg", {
+})), o_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44841,7 +44841,7 @@ var t_e = (e) => {
fillRule: "evenodd",
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
clipRule: "evenodd"
-})), c_e = /*#__PURE__*/ F.createElement("svg", {
+})), s_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -44862,7 +44862,7 @@ var t_e = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), l_e = () => {
+})), c_e = () => {
let [e, t] = F.useState(document.hidden);
return F.useEffect(() => {
let e = () => {
@@ -44870,7 +44870,7 @@ var t_e = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, u_e = 1, d_e = 100, UV = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : u_e++, WV = new class {
+}, l_e = 1, u_e = 100, WV = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : l_e++, GV = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -44880,10 +44880,10 @@ var t_e = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - d_e;
+ let e = this.toasts.length - u_e;
e <= 0 || (this.toasts = this.toasts.filter((t) => e > 0 && this.dismissedToasts.has(t.id) ? (this.dismissedToasts.delete(t.id), e--, !1) : !0));
}, this.create = (e) => {
- let { message: t, ...n } = e, r = UV(e), i = this.pendingDismissals.get(r);
+ let { message: t, ...n } = e, r = WV(e), i = this.pendingDismissals.get(r);
i !== void 0 && (cancelAnimationFrame(i), this.pendingDismissals.delete(r), this.dismissedToasts.delete(r));
let a = this.dismissedToasts.has(r), o = e.dismissible === void 0 || e.dismissible;
return a && (this.dismissedToasts.delete(r), this.toasts = this.toasts.filter((e) => e.id !== r)), !a && this.toasts.find((e) => e.id === r) ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
@@ -44958,7 +44958,7 @@ var t_e = (e) => {
type: "default",
message: e
});
- else if (p_e(e) && !e.ok) {
+ else if (f_e(e) && !e.ok) {
i = !1;
let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !F.isValidElement(r) ? r : { message: r };
this.create({
@@ -45002,7 +45002,7 @@ var t_e = (e) => {
}), s = () => new Promise((e, t) => o.then(() => a[0] === "reject" ? t(a[1]) : e(a[1])).catch(t));
return typeof n != "string" && typeof n != "number" ? { unwrap: s } : Object.assign(n, { unwrap: s });
}, this.custom = (e, t) => {
- let n = UV(t);
+ let n = WV(t);
return this.create({
...t,
jsx: e(n),
@@ -45011,34 +45011,34 @@ var t_e = (e) => {
}), n;
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set(), this.pendingDismissals = /* @__PURE__ */ new Map();
}
-}(), f_e = (e, t) => WV.message(e, t), p_e = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", GV = Object.assign(f_e, {
- success: WV.success,
- info: WV.info,
- warning: WV.warning,
- error: WV.error,
- custom: WV.custom,
- message: WV.message,
- promise: WV.promise,
- dismiss: WV.dismiss,
- loading: WV.loading
+}(), d_e = (e, t) => GV.message(e, t), f_e = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", KV = Object.assign(d_e, {
+ success: GV.success,
+ info: GV.info,
+ warning: GV.warning,
+ error: GV.error,
+ custom: GV.custom,
+ message: GV.message,
+ promise: GV.promise,
+ dismiss: GV.dismiss,
+ loading: GV.loading
}, {
- getHistory: () => WV.toasts,
- getToasts: () => WV.getActiveToasts()
+ getHistory: () => GV.toasts,
+ getToasts: () => GV.getActiveToasts()
});
-e_e("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
-function KV(e) {
+$ge("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
+function qV(e) {
return e.label !== void 0;
}
-var m_e = 3, h_e = "24px", g_e = "16px", qV = 4e3, __e = 356, v_e = 14, y_e = 45, b_e = 200;
-function JV(...e) {
+var p_e = 3, m_e = "24px", h_e = "16px", JV = 4e3, g_e = 356, __e = 14, v_e = 45, y_e = 200;
+function YV(...e) {
return e.filter(Boolean).join(" ");
}
-function x_e(e) {
+function b_e(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var S_e = (e) => {
- let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = F.useState(null), [O, k] = F.useState(null), [A, j] = F.useState(!1), [M, ee] = F.useState(!1), [N, te] = F.useState(!1), [P, ne] = F.useState(!1), [re, I] = F.useState(!1), [ie, ae] = F.useState(0), [oe, se] = F.useState(0), ce = F.useRef(n.duration || y || qV), le = F.useRef(null), ue = F.useRef(null), de = c === 0, fe = c + 1 <= o, pe = n.type, me = pe ?? "default", he = n.dismissible !== !1, ge = n.className || "", _e = n.descriptionClassName || "", ve = F.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ye = F.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), be = F.useMemo(() => n.duration || y || qV, [n.duration, y]), xe = F.useRef(0), Se = F.useRef(0), Ce = F.useRef(0), we = F.useRef(null), [Te, Ee] = b.split("-"), De = F.useMemo(() => s.reduce((e, t, n) => n >= ve ? e : e + t.height, 0), [s, ve]), Oe = l_e(), ke = F.useMemo(() => e.swipeDirections ?? x_e(b), [e.swipeDirections, b]), Ae = n.invert || t, je = pe === "loading";
+var x_e = (e) => {
+ let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = F.useState(null), [O, k] = F.useState(null), [A, j] = F.useState(!1), [M, ee] = F.useState(!1), [N, te] = F.useState(!1), [P, ne] = F.useState(!1), [re, I] = F.useState(!1), [ie, ae] = F.useState(0), [oe, se] = F.useState(0), ce = F.useRef(n.duration || y || JV), le = F.useRef(null), ue = F.useRef(null), de = c === 0, fe = c + 1 <= o, pe = n.type, me = pe ?? "default", he = n.dismissible !== !1, ge = n.className || "", _e = n.descriptionClassName || "", ve = F.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ye = F.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), be = F.useMemo(() => n.duration || y || JV, [n.duration, y]), xe = F.useRef(0), Se = F.useRef(0), Ce = F.useRef(0), we = F.useRef(null), [Te, Ee] = b.split("-"), De = F.useMemo(() => s.reduce((e, t, n) => n >= ve ? e : e + t.height, 0), [s, ve]), Oe = c_e(), ke = F.useMemo(() => e.swipeDirections ?? b_e(b), [e.swipeDirections, b]), Ae = n.invert || t, je = pe === "loading";
Se.current = F.useMemo(() => ve * x + De, [ve, De]), F.useEffect(() => {
ce.current = be;
}, [be]), F.useEffect(() => {
@@ -45079,7 +45079,7 @@ var S_e = (e) => {
let Me = F.useCallback(() => {
ee(!0), ae(Se.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, b_e);
+ }, y_e);
}, [
n,
d,
@@ -45110,18 +45110,18 @@ var S_e = (e) => {
}, [Me, n.delete]);
function Ne() {
return w?.loading ? /*#__PURE__*/ F.createElement("div", {
- className: JV(C?.loader, n?.classNames?.loader, "sonner-loader"),
+ className: YV(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": pe === "loading"
- }, w.loading) : /*#__PURE__*/ F.createElement(r_e, {
- className: JV(C?.loader, n?.classNames?.loader),
+ }, w.loading) : /*#__PURE__*/ F.createElement(n_e, {
+ className: YV(C?.loader, n?.classNames?.loader),
visible: pe === "loading"
});
}
- let Pe = n.icon || w?.[pe] || t_e(pe);
+ let Pe = n.icon || w?.[pe] || e_e(pe);
return /*#__PURE__*/ F.createElement("li", {
tabIndex: 0,
ref: ue,
- className: JV(_, ge, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),
+ className: YV(_, ge, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),
"data-sonner-toast": "",
"data-rich-colors": n.richColors ?? f,
"data-styled": !(n.jsx || n.unstyled || r),
@@ -45164,7 +45164,7 @@ var S_e = (e) => {
if (P || !he) return;
we.current = null;
let e = Number(ue.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(ue.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - le.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;
- if ((E === "x" ? ke.includes(e > 0 ? "right" : "left") : ke.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= y_e || a > .11)) ae(Se.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Me(), ne(!0);
+ if ((E === "x" ? ke.includes(e > 0 ? "right" : "left") : ke.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= v_e || a > .11)) ae(Se.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), Me(), ne(!0);
else {
var o, s;
(o = ue.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = ue.current) == null || s.style.setProperty("--swipe-amount-y", "0px"), I(!1), te(!1), D(null);
@@ -45203,46 +45203,46 @@ var S_e = (e) => {
onClick: je || !he ? () => {} : () => {
Me(), n.onDismiss == null || n.onDismiss.call(n, n);
},
- className: JV(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? c_e) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {
+ className: YV(C?.closeButton, n?.classNames?.closeButton)
+ }, w?.close ?? s_e) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {
"data-icon": "",
- className: JV(C?.icon, n?.classNames?.icon)
+ className: YV(C?.icon, n?.classNames?.icon)
}, pe === "loading" ? n.icon || Ne() : n.promise ? Ne() : null, pe === "loading" ? null : Pe) : null, /*#__PURE__*/ F.createElement("div", {
"data-content": "",
- className: JV(C?.content, n?.classNames?.content)
+ className: YV(C?.content, n?.classNames?.content)
}, /*#__PURE__*/ F.createElement("div", {
"data-title": "",
- className: JV(C?.title, n?.classNames?.title)
+ className: YV(C?.title, n?.classNames?.title)
}, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /*#__PURE__*/ F.createElement("div", {
"data-description": "",
- className: JV(v, _e, C?.description, n?.classNames?.description)
- }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ F.isValidElement(n.cancel) ? n.cancel : n.cancel && KV(n.cancel) ? /*#__PURE__*/ F.createElement("button", {
+ className: YV(v, _e, C?.description, n?.classNames?.description)
+ }, typeof n.description == "function" ? n.description() : n.description) : null), /*#__PURE__*/ F.isValidElement(n.cancel) ? n.cancel : n.cancel && qV(n.cancel) ? /*#__PURE__*/ F.createElement("button", {
"data-button": !0,
"data-cancel": !0,
style: n.cancelButtonStyle || h,
onClick: (e) => {
- KV(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
+ qV(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
},
- className: JV(C?.cancelButton, n?.classNames?.cancelButton)
- }, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && KV(n.action) ? /*#__PURE__*/ F.createElement("button", {
+ className: YV(C?.cancelButton, n?.classNames?.cancelButton)
+ }, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && qV(n.action) ? /*#__PURE__*/ F.createElement("button", {
"data-button": !0,
"data-action": !0,
style: n.actionButtonStyle || g,
onClick: (e) => {
- KV(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
+ qV(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
},
- className: JV(C?.actionButton, n?.classNames?.actionButton)
+ className: YV(C?.actionButton, n?.classNames?.actionButton)
}, n.action.label) : null);
};
-function YV() {
+function XV() {
if (typeof window > "u" || typeof document > "u") return "ltr";
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function C_e(e, t) {
+function S_e(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? g_e : h_e;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? h_e : m_e;
function o(e) {
[
"top",
@@ -45263,11 +45263,11 @@ function C_e(e, t) {
}) : o(a);
}), n;
}
-var XV = /*#__PURE__*/ F.forwardRef(function(e, t) {
- let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = m_e, toastOptions: g, dir: _ = YV(), gap: v = v_e, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = F.useState([]), w = F.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = F.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = F.useState([]), [O, k] = F.useState(!1), [A, j] = F.useState(!1), [M, ee] = F.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), N = F.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = F.useRef(null), ne = F.useRef(!1), re = F.useCallback((e) => {
- C((t) => (t.find((t) => t.id === e.id)?.delete || WV.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
+var ZV = /*#__PURE__*/ F.forwardRef(function(e, t) {
+ let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = p_e, toastOptions: g, dir: _ = XV(), gap: v = __e, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = F.useState([]), w = F.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = F.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = F.useState([]), [O, k] = F.useState(!1), [A, j] = F.useState(!1), [M, ee] = F.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), N = F.useRef(null), te = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), P = F.useRef(null), ne = F.useRef(!1), re = F.useCallback((e) => {
+ C((t) => (t.find((t) => t.id === e.id)?.delete || GV.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
- return F.useEffect(() => WV.subscribe((e) => {
+ return F.useEffect(() => GV.subscribe((e) => {
e.dismiss ? requestAnimationFrame(() => {
C((t) => t.map((t) => t.id === e.id ? {
...t,
@@ -45336,7 +45336,7 @@ var XV = /*#__PURE__*/ F.forwardRef(function(e, t) {
let [i, a] = t.split("-");
return w.length ? /*#__PURE__*/ F.createElement("ol", {
key: t,
- dir: _ === "auto" ? YV() : _,
+ dir: _ === "auto" ? XV() : _,
tabIndex: -1,
ref: N,
className: c,
@@ -45346,10 +45346,10 @@ var XV = /*#__PURE__*/ F.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${__e}px`,
+ "--width": `${g_e}px`,
"--gap": `${v}px`,
...m,
- ...C_e(l, u)
+ ...S_e(l, u)
},
onBlur: (e) => {
ne.current && !e.currentTarget.contains(e.relatedTarget) && (ne.current = !1, P.current &&= (P.current.focus({ preventScroll: !0 }), null));
@@ -45367,7 +45367,7 @@ var XV = /*#__PURE__*/ F.forwardRef(function(e, t) {
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || j(!0);
},
onPointerUp: () => j(!1)
- }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ F.createElement(S_e, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ F.createElement(x_e, {
key: n.id,
icons: y,
index: i,
@@ -45397,35 +45397,35 @@ var XV = /*#__PURE__*/ F.forwardRef(function(e, t) {
swipeDirections: e.swipeDirections
}))) : null;
}));
-}), ZV = "/api/library-processing", QV = ["library-processing"], w_e = (e, t, n) => {
+}), QV = "/api/library-processing", $V = ["library-processing"], C_e = (e, t, n) => {
let r = new URLSearchParams({
estimate: "1",
stage: e.stage || "all"
});
- return e.asset_ids && r.set("asset_ids", JSON.stringify(e.asset_ids)), e.scope && r.set("scope", e.scope), e.incremental && r.set("incremental", "1"), n && r.set("inventory", n), B(`${ZV}?${r}`, t);
-}, T_e = {
+ return e.asset_ids && r.set("asset_ids", JSON.stringify(e.asset_ids)), e.scope && r.set("scope", e.scope), e.incremental && r.set("incremental", "1"), n && r.set("inventory", n), B(`${QV}?${r}`, t);
+}, w_e = {
fetching_cover: "封面",
querying_metadata: "资料"
};
-function $V(e) {
+function eH(e) {
if (e?.status !== "running" || e.current_asset_id == null) return null;
- let t = T_e[e.current_action || ""];
+ let t = w_e[e.current_action || ""];
return !t || (e.waited_seconds || 0) < 120 ? null : {
what: t,
source: e.current_source
};
}
-function eH({ what: e, source: t }) {
+function tH({ what: e, source: t }) {
return `${`${t?.label ? `${t.label} ` : "外部来源"}迟迟没有返回${e}`}。可以先跳过这部,任务结束后再重试。`;
}
-var tH = (e) => !!e && [
+var nH = (e) => !!e && [
"running",
"pausing",
"paused",
"stopping"
-].includes(e.status), nH = (e) => e?.status === "failed" && e.outcome === "partial", rH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", iH = "/?loc=&thumb=0";
-function aH(e) {
- if (!tH(e)) return "";
+].includes(e.status), rH = (e) => e?.status === "failed" && e.outcome === "partial", iH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", aH = "/?loc=&thumb=0";
+function oH(e) {
+ if (!nH(e)) return "";
if (e.status === "stopping") return "正在取消,等待当前步骤退出;已取得的结果会保留";
if (e.status === "paused") return "已暂停,继续后更新预估";
if (e.status === "pausing") return "正在暂停,当前步骤结束后暂停";
@@ -45436,30 +45436,30 @@ function aH(e) {
let r = n >= 86400 ? 86400 : n >= 3600 ? 3600 : 60, i = r === 86400 ? "天" : r === 3600 ? "小时" : "分钟", a = r === 60 ? 1 : 10, o = Math.max(1 / a, Math.floor(t / r * a) / a), s = Math.max(o, Math.ceil(n / r * a) / a);
return `预计剩余约 ${o === s ? `${s}` : `${o}–${s}`} ${i}${e.eta_initial || e.eta_kind !== "measured" ? "(粗估)" : ""}${e.eta_scope ? ` · ${e.eta_scope}` : ""}`;
}
-var oH = (e) => B(ZV, e);
-async function sH(e) {
+var sH = (e) => B(QV, e);
+async function cH(e) {
await H.fetchQuery({
- queryKey: QV,
- queryFn: () => oH(e)
+ queryKey: $V,
+ queryFn: () => sH(e)
});
}
-var E_e = 2e3, D_e = 1e4, cH = "连接中断,正在重新读取处理进度", O_e = {
+var T_e = 2e3, E_e = 1e4, lH = "连接中断,正在重新读取处理进度", D_e = {
manual: "在网页发起",
scheduled: "定时发起",
startup: "服务启动时自动发起",
cli: "由命令行或托盘发起"
};
-function k_e(e, t) {
+function O_e(e, t) {
return `保存后 Peach 会重新启动。${e.trigger === "cli" ? "这个任务由命令行或托盘发起,在独立进程里运行,不受重启影响。" : e.status === "paused" ? "已暂停的任务会保持暂停,重启后点继续即可接着处理。" : "正在进行的任务会随重启中断,重启后从中断处继续。"}${t ? "勾选的「保存后扫描并补全资料」会排在当前任务之后。" : ""}`;
}
-function A_e(e) {
- let t = O_e[e.trigger || ""];
+function k_e(e) {
+ let t = D_e[e.trigger || ""];
return `当前的扫描与采集任务${t ? `(${t})` : ""}还没结束,等它完成或取消后再开始新的同步`;
}
-function lH(e, t) {
- return tH(e) ? E_e : t ? D_e : !1;
+function uH(e, t) {
+ return nH(e) ? T_e : t ? E_e : !1;
}
-var j_e = {
+var A_e = {
scanning_files: "扫描文件",
reading_local: "检查配套文件",
reading_local_cover: "读取配套图片",
@@ -45468,25 +45468,25 @@ var j_e = {
skipped: "已跳过",
generating_preview: "生成视频预览",
writing_candidates: "保存待确认资料"
-}, uH = {
+}, dH = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function M_e(e) {
- let t = Object.entries(e).filter(([e, t]) => uH[e] && t > 0).map(([e, t]) => `${uH[e]} ${t.toLocaleString()} 部`);
+function j_e(e) {
+ let t = Object.entries(e).filter(([e, t]) => dH[e] && t > 0).map(([e, t]) => `${dH[e]} ${t.toLocaleString()} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function N_e(e) {
+function M_e(e) {
if (e.status === "paused") return "已暂停";
if (e.status === "pausing") return "正在暂停";
- let t = j_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${ZI(e.waited_seconds)}` : "";
+ let t = A_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${$I(e.waited_seconds)}` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function P_e(e) {
- let t = e.total ? `${QI(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
- return N_e(e) + (t ? ` · ${t}` : "");
+function N_e(e) {
+ let t = e.total ? `${eL(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
+ return M_e(e) + (t ? ` · ${t}` : "");
}
-function F_e(e) {
+function P_e(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -45500,22 +45500,22 @@ function F_e(e) {
log: e.issues_log || ""
} : null;
}
-var dH = "peach.library-processing.announced", I_e = 120;
-function fH(e) {
+var fH = "peach.library-processing.announced", F_e = 120;
+function pH(e) {
let t = e.completed_at == null ? Infinity : Date.now() / 1e3 - e.completed_at;
- return !!e.job_id && t >= 0 && t < I_e;
+ return !!e.job_id && t >= 0 && t < F_e;
}
-function L_e(e, t, n) {
- if (e.status === "complete" && (n || fH(e))) {
+function I_e(e, t, n) {
+ if (e.status === "complete" && (n || pH(e))) {
try {
- if (e.job_id && localStorage.getItem(dH) === e.job_id) return;
- e.job_id && localStorage.setItem(dH, e.job_id);
+ if (e.job_id && localStorage.getItem(fH) === e.job_id) return;
+ e.job_id && localStorage.setItem(fH, e.job_id);
} catch {}
e.requested_stage === "previews" ? t(`视频预览已生成:${e.previews || 0} 部`) : t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条` + (e.previews ? `,生成 ${e.previews} 部视频预览` : ""));
}
}
// src/react/boardui/components/base/buttons/link-button.tsx
-var pH = NI({
+var mH = FI({
base: "inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans select-none cursor-pointer rounded-sm underline-offset-3 hover:underline transition-colors duration-150 ease outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring disabled:cursor-not-allowed disabled:no-underline aria-disabled:cursor-not-allowed aria-disabled:no-underline",
size: {
medium: "text-body-medium",
@@ -45532,15 +45532,15 @@ var pH = NI({
secondary: "text-text-secondary active:text-text-primary disabled:text-text-tertiary aria-disabled:text-text-tertiary"
}
});
-function mH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = q(pH.base, pH.size[t], pH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
+function hH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = q(mH.base, mH.size[t], mH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: pH.icon[t],
+ className: mH.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, I.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: pH.icon[t],
+ className: mH.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -45566,7 +45566,7 @@ function mH({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
});
}
// src/react/settings/use-action.ts
-function hH(e = "") {
+function gH(e = "") {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(""), [i, a] = (0, F.useState)(e);
(0, F.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -45591,10 +45591,10 @@ function hH(e = "") {
};
}
// src/react/library-processing/slow-item.tsx
-function gH({ state: e }) {
- let t = hH(), n = (e) => {
- t.busy || t.run(e.action, (t) => V(ZV, e, "POST", t), (e) => {
- H.setQueryData(QV, e), H.invalidateQueries({ queryKey: QV });
+function _H({ state: e }) {
+ let t = gH(), n = (e) => {
+ t.busy || t.run(e.action, (t) => V(QV, e, "POST", t), (e) => {
+ H.setQueryData($V, e), H.invalidateQueries({ queryKey: $V });
});
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45606,7 +45606,7 @@ function gH({ state: e }) {
size: "small",
variant: "secondary",
disabled: e.skip_requested,
- ...hV(t.busy === "skip_current"),
+ ...gV(t.busy === "skip_current"),
onClick: () => {
e.job_id && e.current_asset_id != null && n({
action: "skip_current",
@@ -45630,25 +45630,25 @@ function gH({ state: e }) {
]
});
}
-function R_e({ state: e, slow: t }) {
- return /* @__PURE__ */ (0, I.jsx)(uV, {
+function L_e({ state: e, slow: t }) {
+ return /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "warning",
- action: /* @__PURE__ */ (0, I.jsx)(gH, { state: e }),
- children: eH(t)
+ action: /* @__PURE__ */ (0, I.jsx)(_H, { state: e }),
+ children: tH(t)
});
}
-function z_e({ state: e, slow: t }) {
+function R_e({ state: e, slow: t }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-processing-slow": "",
className: "flex min-w-0 flex-wrap items-center justify-between gap-3",
children: [/* @__PURE__ */ (0, I.jsx)("p", {
className: "min-w-0 flex-auto text-body-2-regular wrap-anywhere",
- children: eH(t)
- }), /* @__PURE__ */ (0, I.jsx)(gH, { state: e })]
+ children: tH(t)
+ }), /* @__PURE__ */ (0, I.jsx)(_H, { state: e })]
});
}
// src/react/components/use-moving-surface.ts
-var B_e = {
+var z_e = {
selection: {
type: Ng,
duration: .16,
@@ -45660,7 +45660,7 @@ var B_e = {
bounce: 0
}
};
-function _H(e) {
+function vH(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!t) return;
@@ -45681,7 +45681,7 @@ function _H(e) {
let E = `translate(${b}px, ${x}px) scale(1, 1)`;
if (u && a && !r.matches && T && s !== h) {
let r = `translate(${(T.left - _.left) / v + t.scrollLeft - t.clientLeft}px, ${(T.top - _.top) / y + t.scrollTop - t.clientTop}px) scale(${T.width / v / S}, ${T.height / y / C})`;
- l = cae(n, { transform: [r, E] }, B_e[e]);
+ l = oae(n, { transform: [r, E] }, z_e[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -45717,24 +45717,24 @@ function _H(e) {
}, [t, e]), n;
}
// src/react/components/menu-dialog.tsx
-function vH(e) {
- let t = _H("hover");
- return /* @__PURE__ */ (0, I.jsx)(wz, {
+function yH(e) {
+ let t = vH("hover");
+ return /* @__PURE__ */ (0, I.jsx)(Ez, {
...e,
ref: t
});
}
// src/react/library-processing/processing-effort.tsx
-var yH = [
+var bH = [
"low",
"standard",
"high"
-], bH = [
+], xH = [
"低占用",
"标准",
"全速"
-], xH = pV("snail"), SH = pV("zap");
-function CH({ className: e }) {
+], SH = mV("snail"), CH = mV("zap");
+function wH({ className: e }) {
return /* @__PURE__ */ (0, I.jsxs)("svg", {
className: `processing-effort-double ${e ?? ""}`,
"aria-hidden": "true",
@@ -45765,12 +45765,12 @@ function CH({ className: e }) {
]
});
}
-var V_e = [
- xH,
+var B_e = [
SH,
- CH
+ CH,
+ wH
];
-function H_e({ animate: e }) {
+function V_e({ animate: e }) {
let [t, n] = (0, F.useState)(document.hidden);
return (0, F.useEffect)(() => {
let e = () => n(document.hidden);
@@ -45802,8 +45802,8 @@ function H_e({ animate: e }) {
} }, t))]
});
}
-function wH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = Math.max(0, yH.indexOf(e)), [a, o] = (0, F.useState)(i);
+function TH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = Math.max(0, bH.indexOf(e)), [a, o] = (0, F.useState)(i);
return (0, F.useEffect)(() => {
t || o(i);
}, [i, t]), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45814,7 +45814,7 @@ function wH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "text-text-tertiary",
children: "处理强度 "
- }), bH[a]]
+ }), xH[a]]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "processing-effort-scale text-caption-1-regular text-text-tertiary",
@@ -45822,19 +45822,19 @@ function wH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 0 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(xH, {}), "最慢"]
+ children: [/* @__PURE__ */ (0, I.jsx)(SH, {}), "最慢"]
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 1 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(SH, {}), "标准"]
+ children: [/* @__PURE__ */ (0, I.jsx)(CH, {}), "标准"]
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 2 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(CH, {}), "最快"]
+ children: [/* @__PURE__ */ (0, I.jsx)(wH, {}), "最快"]
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)(Ype, {
+ /* @__PURE__ */ (0, I.jsxs)(qpe, {
"aria-label": "处理速度",
minValue: 0,
maxValue: 2,
@@ -45843,10 +45843,10 @@ function wH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
isDisabled: t,
onChange: o,
onChangeEnd: (e) => {
- e !== i && n(yH[e]);
+ e !== i && n(bH[e]);
},
className: "processing-effort-slider",
- children: [/* @__PURE__ */ (0, I.jsx)(IL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(RL, {
className: "processing-effort-label",
children: "处理速度"
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45866,11 +45866,11 @@ function wH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
/* @__PURE__ */ (0, I.jsx)("i", {})
]
}),
- a === 2 ? /* @__PURE__ */ (0, I.jsx)(H_e, { animate: r }) : null,
- /* @__PURE__ */ (0, I.jsx)(Xpe, {
+ a === 2 ? /* @__PURE__ */ (0, I.jsx)(V_e, { animate: r }) : null,
+ /* @__PURE__ */ (0, I.jsx)(Jpe, {
className: "processing-effort-hit",
- children: /* @__PURE__ */ (0, I.jsx)(Zpe, {
- "aria-label": bH[a],
+ children: /* @__PURE__ */ (0, I.jsx)(Ype, {
+ "aria-label": xH[a],
className: "processing-effort-thumb"
})
})
@@ -45884,8 +45884,8 @@ function wH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
]
});
}
-function U_e({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = (0, F.useRef)(null), [a, o] = (0, F.useState)(!1), s = Math.max(0, yH.indexOf(e));
+function H_e({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = (0, F.useRef)(null), [a, o] = (0, F.useState)(!1), s = Math.max(0, bH.indexOf(e));
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "processing-effort-trigger",
"data-speed": e,
@@ -45893,28 +45893,28 @@ function U_e({ value: e, busy: t, onChange: n, animate: r = !0 }) {
ref: i,
size: "small",
variant: "secondary",
- "aria-label": `处理速度:${bH[s]}`,
+ "aria-label": `处理速度:${xH[s]}`,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-disabled": t,
- leadingIcon: V_e[s],
- trailingIcon: _B,
+ leadingIcon: B_e[s],
+ trailingIcon: yB,
onClick: () => {
t || o(!a);
},
- children: bH[s]
+ children: xH[s]
})
- }), /* @__PURE__ */ (0, I.jsx)(dz, {
+ }), /* @__PURE__ */ (0, I.jsx)(pz, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "top start",
offset: 8,
- className: MV,
- children: /* @__PURE__ */ (0, I.jsx)(vH, {
+ className: NV,
+ children: /* @__PURE__ */ (0, I.jsx)(yH, {
"aria-label": "处理速度",
className: "outline-none",
- children: /* @__PURE__ */ (0, I.jsx)(wH, {
+ children: /* @__PURE__ */ (0, I.jsx)(TH, {
value: e,
busy: t,
onChange: n,
@@ -45924,10 +45924,10 @@ function U_e({ value: e, busy: t, onChange: n, animate: r = !0 }) {
})] });
}
// src/react/library-processing/processing-controls.tsx
-function TH({ state: e, disabled: t = !1 }) {
- let n = hH(), r = (0, F.useRef)(!1), i = tH(e), a = e.status === "stopping", o = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", s = a ? "正在取消" : "取消任务", c = (e) => {
- t || n.busy || n.run(e.action, (t) => V(ZV, e, "POST", t), (e) => {
- H.setQueryData(QV, e), H.invalidateQueries({ queryKey: QV });
+function EH({ state: e, disabled: t = !1 }) {
+ let n = gH(), r = (0, F.useRef)(!1), i = nH(e), a = e.status === "stopping", o = e.status === "paused" ? "继续" : e.status === "pausing" ? "正在暂停" : "暂停", s = a ? "正在取消" : "取消任务", c = (e) => {
+ t || n.busy || n.run(e.action, (t) => V(QV, e, "POST", t), (e) => {
+ H.setQueryData($V, e), H.invalidateQueries({ queryKey: $V });
});
}, l = () => {
let i = e.job_id;
@@ -45951,7 +45951,7 @@ function TH({ state: e, disabled: t = !1 }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(U_e, {
+ /* @__PURE__ */ (0, I.jsx)(H_e, {
value: e.speed_mode || "standard",
busy: t || !!n.busy || a,
animate: e.status !== "paused" && e.status !== "pausing",
@@ -45965,11 +45965,11 @@ function TH({ state: e, disabled: t = !1 }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: e.status === "paused" ? HB : BB,
+ leadingIcon: e.status === "paused" ? UB : VB,
"aria-label": o,
title: o,
disabled: t || !e.job_id || e.status === "pausing" || a,
- ...hV(n.busy === "pause" || n.busy === "resume"),
+ ...gV(n.busy === "pause" || n.busy === "resume"),
onClick: () => {
e.job_id && c({
action: e.status === "paused" ? "resume" : "pause",
@@ -45981,11 +45981,11 @@ function TH({ state: e, disabled: t = !1 }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: YB,
+ leadingIcon: XB,
"aria-label": s,
title: s,
disabled: t || !e.job_id || a,
- ...hV(n.busy === "cancel"),
+ ...gV(n.busy === "cancel"),
onClick: l
}) : null
]
@@ -45997,11 +45997,11 @@ function TH({ state: e, disabled: t = !1 }) {
});
}
// src/react/library-processing/use-library-processing.ts
-function EH({ toast: e, mode: t, monitor: n }) {
+function DH({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = Ft({
- queryKey: QV,
- queryFn: ({ signal: e }) => oH(e),
- refetchInterval: (e) => lH(e.state.data, r)
+ queryKey: $V,
+ queryFn: ({ signal: e }) => sH(e),
+ refetchInterval: (e) => uH(e.state.data, r)
}), [a, o] = (0, F.useState)(null), s = (0, F.useRef)(void 0), c = i.data;
return (0, F.useEffect)(() => {
if (!c) return;
@@ -46012,8 +46012,8 @@ function EH({ toast: e, mode: t, monitor: n }) {
"pausing",
"paused",
"stopping"
- ].includes(n) && !tH(c);
- r && o(c), (r || t === "notice") && L_e(c, e, r);
+ ].includes(n) && !nH(c);
+ r && o(c), (r || t === "notice") && I_e(c, e, r);
}, [
c,
t,
@@ -46025,7 +46025,7 @@ function EH({ toast: e, mode: t, monitor: n }) {
};
}
// src/react/components/loading-dots.tsx
-function DH({ label: e }) {
+function OH({ label: e }) {
return /* @__PURE__ */ (0, I.jsxs)("p", {
role: "status",
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
@@ -46044,21 +46044,21 @@ function DH({ label: e }) {
});
}
// src/react/components/progress.tsx
-var OH = 100, W_e = .4;
-function kH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1, meter: a = !1 }) {
- let o = n > 0 ? n : 1, s = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), o), c = (e) => s(e) / o * OH;
+var kH = 100, U_e = .4;
+function AH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1, meter: a = !1 }) {
+ let o = n > 0 ? n : 1, s = (e) => Math.min(Math.max(Number.isFinite(e) ? e : 0, 0), o), c = (e) => s(e) / o * kH;
return /* @__PURE__ */ (0, I.jsxs)("svg", {
role: a ? "meter" : "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": o,
"aria-valuenow": s(t),
- viewBox: `0 0 ${OH} 1`,
+ viewBox: `0 0 ${kH} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, I.jsx)("rect", {
- width: OH,
+ width: kH,
height: 1,
className: i ? "fill-text-primary/10" : "fill-background-tertiary-default"
}),
@@ -46069,7 +46069,7 @@ function kH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1, m
}),
r.map((e) => /* @__PURE__ */ (0, I.jsx)("rect", {
x: c(e),
- width: W_e,
+ width: U_e,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -46077,11 +46077,11 @@ function kH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1, m
});
}
// src/react/components/task-progress.tsx
-function AH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function jH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-task-progress": r ? "embedded" : "framed",
className: q("flex flex-col gap-1.5", !r && "gap-2 rounded-2lg bg-background-tertiary-default px-4 py-3 text-text-secondary"),
- children: n && n > 0 ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(kH, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(AH, {
label: e,
value: t,
max: n,
@@ -46089,11 +46089,11 @@ function AH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
}), /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-caption-1-regular text-text-secondary wrap-anywhere",
children: e
- })] }) : /* @__PURE__ */ (0, I.jsx)(DH, { label: e })
+ })] }) : /* @__PURE__ */ (0, I.jsx)(OH, { label: e })
});
}
// src/react/library-processing/processing-line.tsx
-function jH(e) {
+function MH(e) {
let [t, n] = (0, F.useState)({
snapshot: e,
seconds: 0
@@ -46109,17 +46109,17 @@ function jH(e) {
return () => window.clearInterval(r);
}, [e, i]);
let a = i && t.snapshot === e ? t.seconds : 0;
- return P_e(a ? {
+ return N_e(a ? {
...e,
waited_seconds: r + a
} : e);
}
-function G_e({ state: e }) {
- return jH(e);
+function W_e({ state: e }) {
+ return MH(e);
}
-function K_e({ state: e }) {
- let t = jH(e);
- return /* @__PURE__ */ (0, I.jsx)(AH, {
+function G_e({ state: e }) {
+ let t = MH(e);
+ return /* @__PURE__ */ (0, I.jsx)(jH, {
embedded: !0,
label: t,
value: Math.min(e.checked || 0, e.total || 0),
@@ -46127,7 +46127,7 @@ function K_e({ state: e }) {
});
}
// src/react/components/collapse-region.tsx
-function MH({ open: e, children: t, ...n }) {
+function NH({ open: e, children: t, ...n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(!1);
return (0, F.useLayoutEffect)(() => {
let t = r.current;
@@ -46138,7 +46138,7 @@ function MH({ open: e, children: t, ...n }) {
children: t
});
}
-function NH(e) {
+function PH(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
...e,
"aria-hidden": !0,
@@ -46153,19 +46153,19 @@ function NH(e) {
});
}
// src/react/boardui/components/application/settings/settings-rows.tsx
-function PH({ className: e, children: t }) {
+function FH({ className: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: q("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function FH({ className: e, children: t }) {
+function IH({ className: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: q("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function q_e({ label: e, description: t, children: n }) {
+function K_e({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: q("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46181,7 +46181,7 @@ function q_e({ label: e, description: t, children: n }) {
});
}
// src/react/settings/section.tsx
-function J_e({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, children: o }) {
+function q_e({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, children: o }) {
let s = n ? /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex items-center gap-1.5",
children: [n, e]
@@ -46189,12 +46189,12 @@ function J_e({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, childr
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, I.jsx)("div", {
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, I.jsx)(FH, { children: s })
+ children: /* @__PURE__ */ (0, I.jsx)(IH, { children: s })
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex min-w-0 max-w-full",
children: i
})]
- }) : /* @__PURE__ */ (0, I.jsx)(FH, { children: s }), /* @__PURE__ */ (0, I.jsx)(PH, { children: o })] });
+ }) : /* @__PURE__ */ (0, I.jsx)(IH, { children: s }), /* @__PURE__ */ (0, I.jsx)(FH, { children: o })] });
return a ? /* @__PURE__ */ (0, I.jsx)("form", {
id: r,
"data-guide-target": t,
@@ -46211,13 +46211,13 @@ function J_e({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, childr
children: c
});
}
-function Y_e({ children: e }) {
+function J_e({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "ui-settings-rows flex flex-col empty:hidden",
children: e
});
}
-function X_e({ divided: e = !1, children: t }) {
+function Y_e({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3 empty:hidden [&>.ui-settings-facts]:-mr-3",
children: t
@@ -46226,7 +46226,7 @@ function X_e({ divided: e = !1, children: t }) {
children: t
});
}
-function Z_e({ label: e, html: t }) {
+function X_e({ label: e, html: t }) {
let [n] = (0, F.useState)(t);
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "contents",
@@ -46236,7 +46236,7 @@ function Z_e({ label: e, html: t }) {
dangerouslySetInnerHTML: { __html: n }
});
}
-function Q_e({ status: e, children: t }) {
+function Z_e({ status: e, children: t }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3 empty:hidden",
children: [e ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -46245,34 +46245,34 @@ function Q_e({ status: e, children: t }) {
}) : null, t]
});
}
-function IH({ role: e, children: t }) {
+function LH({ role: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function LH({ children: e }) {
+function RH({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function RH({ children: e }) {
+function zH({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function $_e({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, I.jsx)(mH, {
+function Q_e({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, I.jsx)(hH, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: OB,
+ trailingIcon: AB,
className: "min-w-0 max-w-full",
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@ -46280,22 +46280,22 @@ function $_e({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function eve() {
- return /* @__PURE__ */ (0, I.jsx)(mH, {
+function $_e() {
+ return /* @__PURE__ */ (0, I.jsx)(hH, {
href: "/tasks",
size: "small",
- trailingIcon: vB,
+ trailingIcon: bB,
className: "self-start",
children: "在任务中心查看进度"
});
}
-function tve({ children: e }) {
+function eve({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("dl", {
className: "ui-settings-facts flex flex-col empty:hidden",
children: e
});
}
-function nve({ term: e, children: t }) {
+function tve({ term: e, children: t }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0",
children: [/* @__PURE__ */ (0, I.jsx)("dt", {
@@ -46307,7 +46307,7 @@ function nve({ term: e, children: t }) {
})]
});
}
-function zH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
+function BH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
let s = (0, F.useId)(), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(!1), [d, f] = (0, F.useState)(n ?? t);
return (0, F.useLayoutEffect)(() => {
n !== void 0 && n !== d && c.current && l.current && (Bo(c.current, l.current, n), f(n));
@@ -46323,12 +46323,12 @@ function zH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
},
className: `${i ? "w-full" : "w-fit"} flex cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: [
- i ? null : /* @__PURE__ */ (0, I.jsx)(yB, {
+ i ? null : /* @__PURE__ */ (0, I.jsx)(xB, {
"aria-hidden": !0,
className: d ? "size-(--icon-inline) shrink-0 rotate-90 transition-transform" : "size-(--icon-inline) shrink-0 transition-transform"
}),
e,
- i ? /* @__PURE__ */ (0, I.jsx)(yB, {
+ i ? /* @__PURE__ */ (0, I.jsx)(xB, {
"aria-hidden": !0,
className: d ? "ml-auto size-(--icon-inline) shrink-0 -rotate-90 transition-transform" : "ml-auto size-(--icon-inline) shrink-0 rotate-90 transition-transform"
}) : null
@@ -46344,7 +46344,7 @@ function zH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
})]
});
}
-function rve({ name: e }) {
+function nve({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
"data-source-mark": e,
@@ -46354,34 +46354,34 @@ function rve({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function BH({ mark: e }) {
+function VH({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, I.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(rve, { name: e });
+ }) : /* @__PURE__ */ (0, I.jsx)(nve, { name: e });
}
// src/react/components/source-label.tsx
-var VH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, ive = Object.fromEntries(Object.entries(_s).map(([e, t]) => [e, function({ className: e }) {
+var HH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, rve = Object.fromEntries(Object.entries(_s).map(([e, t]) => [e, function({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, I.jsx)(BH, { mark: t })
+ children: /* @__PURE__ */ (0, I.jsx)(VH, { mark: t })
});
}]));
-function ave({ className: e }) {
+function ive({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, I.jsx)(BH, { mark: "database" })
+ children: /* @__PURE__ */ (0, I.jsx)(VH, { mark: "database" })
});
}
-var HH = (e) => ive[VH(e)] ?? ave;
-function ove({ site: e, label: t }) {
+var UH = (e) => rve[HH(e)] ?? ive;
+function ave({ site: e, label: t }) {
let [n, r] = (0, F.useState)(!1), i = e === "javdb" ? "/site-mark?source=javdb" : e === "missav" ? "/site-mark?domain=missav.com" : null;
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [n || !i ? /* @__PURE__ */ (0, I.jsx)(BH, { mark: "globe" }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ children: [n || !i ? /* @__PURE__ */ (0, I.jsx)(VH, { mark: "globe" }) : /* @__PURE__ */ (0, I.jsx)("img", {
src: i,
alt: "",
className: "size-(--icon-inline) shrink-0 object-contain",
@@ -46389,24 +46389,24 @@ function ove({ site: e, label: t }) {
}), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
});
}
-function UH({ source: e, label: t }) {
- let n = VH(e);
+function WH({ source: e, label: t }) {
+ let n = HH(e);
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(BH, { mark: _s[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(VH, { mark: _s[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 truncate",
children: t
})]
});
}
// src/react/library-processing/processing-traffic.tsx
-var WH = (e) => Xn(e).replace(/\s/g, ""), GH = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : WH(e), sve = (e, t) => {
- if (e === t) return WH(t);
+var GH = (e) => Xn(e).replace(/\s/g, ""), KH = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : GH(e), ove = (e, t) => {
+ if (e === t) return GH(t);
let [n, r] = Xn(e).split(" "), [i, a] = Xn(t).split(" ");
- return r === a ? `${n}-${i}${a}` : `${WH(e)}-${WH(t)}`;
-}, KH = (e, t, n) => e === void 0 ? sve(t, n) : `${e > 0 ? "约 " : ""}${WH(e)}`;
-function qH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDetailsChange: i }) {
- let a = BV(), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = r ?? o;
+ return r === a ? `${n}-${i}${a}` : `${GH(e)}-${GH(t)}`;
+}, qH = (e, t, n) => e === void 0 ? ove(t, n) : `${e > 0 ? "约 " : ""}${GH(e)}`;
+function JH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDetailsChange: i }) {
+ let a = VV(), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = r ?? o;
if (!e) return null;
let u = (e) => e.toLocaleString("zh-CN"), d = !!e.workload || !(!e.inventory || e.inventory.complete) || !!(e.unknown_files && e.inventory?.complete !== !1) || !!e.inventory?.errors;
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46443,7 +46443,7 @@ function qH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: "部分目录无法读取,数量和预估不完整"
}) : null
]
- }), /* @__PURE__ */ (0, I.jsx)(MH, {
+ }), /* @__PURE__ */ (0, I.jsx)(NH, {
open: !n,
"data-processing-estimate": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46457,25 +46457,25 @@ function qH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: [
/* @__PURE__ */ (0, I.jsxs)("p", {
className: "inline-flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(FB, {
+ children: [/* @__PURE__ */ (0, I.jsx)(IB, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}), e.inventory && !e.inventory.complete ? "已识别流量" : "预计流量"]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-title-3-semibold text-text-primary",
- children: KH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
+ children: qH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
}),
/* @__PURE__ */ (0, I.jsxs)("p", { children: [
e.unknown_route_estimated_bytes ? "已确认代理" : "代理",
" ",
- KH(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
+ qH(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
] }),
t ? null : /* @__PURE__ */ (0, I.jsxs)("p", { children: [
"已用 ",
- /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.partial ? "约 " : "", WH(e.used_bytes)] }),
+ /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.partial ? "约 " : "", GH(e.used_bytes)] }),
" · 代理 ",
- WH(e.metered_used_bytes)
+ GH(e.metered_used_bytes)
] })
]
}), e.disk ? /* @__PURE__ */ (0, I.jsxs)("section", {
@@ -46484,25 +46484,25 @@ function qH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: [
/* @__PURE__ */ (0, I.jsxs)("p", {
className: "inline-flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(eV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(tV, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
}), e.inventory && !e.inventory.complete ? "已识别占用" : "预计占用"]
}),
/* @__PURE__ */ (0, I.jsxs)("p", {
className: "text-title-3-semibold text-text-primary",
- children: ["约 ", WH(e.disk.estimated_bytes)]
+ children: ["约 ", GH(e.disk.estimated_bytes)]
}),
- e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", GH(e.disk.temporary_bytes)] }) : null,
+ e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", KH(e.disk.temporary_bytes)] }) : null,
e.disk.volumes.map((e) => /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, I.jsxs)("p", { children: [
e.path,
" 剩余 ",
- e.free_bytes == null ? "未取得" : WH(e.free_bytes)
+ e.free_bytes == null ? "未取得" : GH(e.free_bytes)
] }), e.can_fit === !1 ? /* @__PURE__ */ (0, I.jsxs)("p", {
role: "status",
- children: ["空间不足,还差 ", WH(e.shortfall_bytes || 0)]
+ children: ["空间不足,还差 ", GH(e.shortfall_bytes || 0)]
}) : null]
}, e.path)),
e.disk.cache_unknown ? /* @__PURE__ */ (0, I.jsx)("p", {
@@ -46518,7 +46518,7 @@ function qH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
className: "self-start",
"aria-expanded": l,
"aria-controls": c,
- trailingIcon: l ? bB : _B,
+ trailingIcon: l ? SB : yB,
onClick: () => {
s(!l), i?.(!l);
},
@@ -46537,12 +46537,12 @@ function qH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 items-start justify-between gap-2",
- children: [e.root ? /* @__PURE__ */ (0, I.jsx)(UH, {
+ children: [e.root ? /* @__PURE__ */ (0, I.jsx)(WH, {
source: e.location,
label: e.label
}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(BH, { mark: "globe" }), e.label]
+ children: [/* @__PURE__ */ (0, I.jsx)(VH, { mark: "globe" }), e.label]
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "shrink-0",
children: e.connection === "system" ? "跟随系统" : e.connection === "unknown" ? "连接待确认" : e.metered ? "代理" : "直连"
@@ -46564,7 +46564,7 @@ function qH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
"待补资料 ",
u(e.workload.pending_jav_titles),
" 部 · 平均约 ",
- GH(e.workload.metadata_average_bytes || 0),
+ KH(e.workload.metadata_average_bytes || 0),
"/部"
]
}) : null,
@@ -46574,8 +46574,8 @@ function qH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
"已用",
e.unobserved.length ? "约" : "",
" ",
- WH(e.used_bytes)
- ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", KH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
+ GH(e.used_bytes)
+ ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", qH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
})
]
}, e.key))
@@ -46588,15 +46588,15 @@ function qH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
});
}
// src/react/library-processing/library-processing-notice.tsx
-var JH = "peach.library-processing.collapsed";
-function YH(e) {
+var YH = "peach.library-processing.collapsed";
+function XH(e) {
try {
- return !e || sessionStorage.getItem(JH) !== e;
+ return !e || sessionStorage.getItem(YH) !== e;
} catch {
return !0;
}
}
-function cve({ value: e, max: t }) {
+function sve({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, I.jsxs)("svg", {
role: "progressbar",
@@ -46626,17 +46626,17 @@ function cve({ value: e, max: t }) {
})]
});
}
-function XH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
- let [i, a] = (0, F.useState)(() => YH(e?.job_id)), [o, s] = (0, F.useState)(!1), c = (0, F.useRef)(!1), l = (0, F.useRef)(0), u = i && !o, d = (0, F.useRef)(u);
+function ZH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
+ let [i, a] = (0, F.useState)(() => XH(e?.job_id)), [o, s] = (0, F.useState)(!1), c = (0, F.useRef)(!1), l = (0, F.useRef)(0), u = i && !o, d = (0, F.useRef)(u);
d.current = u;
- let f = (0, F.useId)(), [p, m] = (0, F.useState)(!1), h = (0, F.useRef)(null), g = !t && nH(e), _ = e?.status === "failed" && !g, v = tH(e);
+ let f = (0, F.useId)(), [p, m] = (0, F.useState)(!1), h = (0, F.useRef)(null), g = !t && rH(e), _ = e?.status === "failed" && !g, v = nH(e);
(0, F.useEffect)(() => {
- a(YH(e?.job_id)), m(!1);
+ a(XH(e?.job_id)), m(!1);
}, [e?.job_id]);
let y = () => {
if (!(o && (c.current = !0, s(!1), i))) {
try {
- i && e?.job_id ? sessionStorage.setItem(JH, e.job_id) : sessionStorage.removeItem(JH);
+ i && e?.job_id ? sessionStorage.setItem(YH, e.job_id) : sessionStorage.removeItem(YH);
} catch {}
i && m(!1), a(!i);
}
@@ -46666,7 +46666,7 @@ function XH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
r = !0, o.disconnect(), u.disconnect(), window.removeEventListener("resize", a), t.style.removeProperty("--processing-toast-space");
};
}, [n]), e?.archived && !t || !t && !v && !_ && !g) return null;
- let b = t ? null : $V(e), x = !!t || !!e?.stalled || g || !!b, S = g ? "处理已结束,部分项目需处理" : _ ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
+ let b = t ? null : eH(e), x = !!t || !!e?.stalled || g || !!b, S = g ? "处理已结束,部分项目需处理" : _ ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
return /* @__PURE__ */ (0, I.jsxs)("aside", {
ref: h,
"data-processing-dock": "",
@@ -46680,13 +46680,13 @@ function XH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
children: [
- v && e?.total ? /* @__PURE__ */ (0, I.jsx)(cve, {
+ v && e?.total ? /* @__PURE__ */ (0, I.jsx)(sve, {
value: e.checked || 0,
max: e.total
- }) : _ || x ? /* @__PURE__ */ (0, I.jsx)(sge, {
+ }) : _ || x ? /* @__PURE__ */ (0, I.jsx)(age, {
"aria-hidden": !0,
className: "size-5 shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(vge, {
+ }) : /* @__PURE__ */ (0, I.jsx)(_ge, {
"aria-hidden": !0,
className: "size-5 shrink-0"
}),
@@ -46698,14 +46698,14 @@ function XH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
}), v ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-processing-eta": "",
className: "text-caption-1-regular text-text-secondary tabular-nums wrap-anywhere",
- children: aH(e)
+ children: oH(e)
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: NH,
+ leadingIcon: PH,
"data-processing-toggle": "",
"data-collapse-upward": "",
"aria-label": u ? "收起任务详情" : "展开任务详情",
@@ -46717,24 +46717,24 @@ function XH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: wB,
+ leadingIcon: EB,
"aria-label": "隐藏任务提示",
onClick: r
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(qH, {
+ /* @__PURE__ */ (0, I.jsx)(JH, {
traffic: e?.traffic,
compact: !u,
detailsOpen: p,
onDetailsChange: m
}),
- b ? /* @__PURE__ */ (0, I.jsx)(z_e, {
+ b ? /* @__PURE__ */ (0, I.jsx)(R_e, {
state: e,
slow: b
}) : null
]
- }), /* @__PURE__ */ (0, I.jsx)(MH, {
+ }), /* @__PURE__ */ (0, I.jsx)(NH, {
id: f,
open: u,
"data-processing-body": "",
@@ -46751,14 +46751,14 @@ function XH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
"aria-current": e.status === "current" ? "step" : void 0,
className: q("flex min-h-8 items-center gap-2 text-body-2-regular", e.status === "current" ? "text-text-primary" : "text-text-tertiary"),
children: [
- e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(tge, {
+ e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)($he, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(nge, {
+ }) : /* @__PURE__ */ (0, I.jsx)(ege, {
"aria-hidden": !0,
className: q("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
}),
- /* @__PURE__ */ (0, I.jsx)(uE, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
+ /* @__PURE__ */ (0, I.jsx)(dE, { children: e.status === "complete" ? "已完成:" : e.status === "current" ? "当前:" : "待处理:" }),
e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)("s", {
className: "wrap-anywhere",
children: e.label
@@ -46771,11 +46771,11 @@ function XH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
}) : null,
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: t || (_ || g ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, I.jsx)(G_e, { state: e }))
+ children: t || (_ || g ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, I.jsx)(W_e, { state: e }))
}),
g ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: rH
+ children: iH
}) : null,
v && e?.stage && !e.steps?.length ? /* @__PURE__ */ (0, I.jsxs)("p", {
className: "text-caption-1-regular text-text-tertiary",
@@ -46789,20 +46789,20 @@ function XH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-2 pt-3",
children: [
- /* @__PURE__ */ (0, I.jsx)(mH, {
+ /* @__PURE__ */ (0, I.jsx)(hH, {
href: "/data-cleanup#libraryProcessing",
variant: "secondary",
size: "small",
- trailingIcon: vB,
+ trailingIcon: bB,
children: t || _ || g ? "打开扫描与采集" : "任务详情"
}),
- g ? /* @__PURE__ */ (0, I.jsx)(mH, {
- href: iH,
+ g ? /* @__PURE__ */ (0, I.jsx)(hH, {
+ href: aH,
size: "small",
- trailingIcon: vB,
+ trailingIcon: bB,
children: "查看全部内容"
}) : null,
- v ? /* @__PURE__ */ (0, I.jsx)(TH, {
+ v ? /* @__PURE__ */ (0, I.jsx)(EH, {
state: e,
disabled: !!t
}) : null
@@ -46812,67 +46812,67 @@ function XH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
})]
});
}
-function lve(e) {
- let { job: t } = EH(e);
- return /* @__PURE__ */ (0, I.jsx)(XH, {
+function cve(e) {
+ let { job: t } = DH(e);
+ return /* @__PURE__ */ (0, I.jsx)(ZH, {
state: t.data,
- problem: t.isError ? t.data ? cH : lr(t.error) : ""
+ problem: t.isError ? t.data ? lH : lr(t.error) : ""
});
}
// src/react/library-processing/processing-notice-visibility.ts
-var ZH = "peach.library-processing.visibility", QH = /* @__PURE__ */ new Set(), $H = "";
-function uve() {
+var QH = "peach.library-processing.visibility", $H = /* @__PURE__ */ new Set(), eU = "";
+function lve() {
try {
- return sessionStorage.getItem(ZH) || "";
+ return sessionStorage.getItem(QH) || "";
} catch {
- return $H;
+ return eU;
}
}
-function dve(e) {
- return QH.add(e), () => {
- QH.delete(e);
+function uve(e) {
+ return $H.add(e), () => {
+ $H.delete(e);
};
}
-function eU(e, t) {
- $H = `${t ? "shown" : "hidden"}:${e}`;
+function tU(e, t) {
+ eU = `${t ? "shown" : "hidden"}:${e}`;
try {
- sessionStorage.setItem(ZH, $H);
+ sessionStorage.setItem(QH, eU);
} catch {}
- QH.forEach((e) => e());
+ $H.forEach((e) => e());
}
-function tU(e) {
- let t = (0, F.useSyncExternalStore)(dve, uve, () => "");
+function nU(e) {
+ let t = (0, F.useSyncExternalStore)(uve, lve, () => "");
return {
hidden: t === `hidden:${e}`,
requested: t === `shown:${e}`
};
}
// src/react/library-processing/library-processing-dock.tsx
-var nU = "peach-library-processing";
-function fve({ toast: e }) {
- let { job: t, settled: n } = EH({
+var rU = "peach-library-processing";
+function dve({ toast: e }) {
+ let { job: t, settled: n } = DH({
toast: e,
mode: "notice"
- }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = tU(a), c = t.isError ? i ? cH : lr(t.error) : "";
+ }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = nU(a), c = t.isError ? i ? lH : lr(t.error) : "";
return (0, F.useEffect)(() => {
- let e = tH(i), t = i?.status === "failed" && (n?.job_id === i.job_id || fH(i));
- o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && GV.dismiss(nU), r.current = !1) : (GV.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {
+ let e = nH(i), t = i?.status === "failed" && (n?.job_id === i.job_id || pH(i));
+ o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && KV.dismiss(rU), r.current = !1) : (KV.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(XH, {
+ children: /* @__PURE__ */ (0, I.jsx)(ZH, {
state: i,
problem: c,
measure: !0,
- onHide: () => eU(a, !1)
+ onHide: () => tU(a, !1)
})
}), {
- id: nU,
+ id: rU,
toasterId: "processing",
duration: Infinity,
dismissible: !1,
closeButton: !1,
className: "processing-task-toast",
onDismiss: () => {
- eU(a, !1), r.current = !1;
+ tU(a, !1), r.current = !1;
}
}), r.current = !0);
}, [
@@ -46883,19 +46883,19 @@ function fve({ toast: e }) {
o,
s
]), (0, F.useEffect)(() => () => {
- r.current && GV.dismiss(nU), r.current = !1;
+ r.current && KV.dismiss(rU), r.current = !1;
}, []), null;
}
// src/react/network-banner.tsx
-var pve = ["network-status"], mve = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
-function hve(e) {
+var fve = ["network-status"], pve = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
+function mve(e) {
return e?.state === "online" ? 12e4 : 3e4;
}
-function gve() {
+function hve() {
let e = Ft({
- queryKey: pve,
+ queryKey: fve,
queryFn: ({ signal: e }) => B("/api/network-status", e),
- refetchInterval: (e) => hve(e.state.data),
+ refetchInterval: (e) => mve(e.state.data),
retry: !1
}), t = document.querySelector("[data-network-banner]");
return e.data?.state !== "offline" || !t ? null : (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsxs)("aside", {
@@ -46906,56 +46906,56 @@ function gve() {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-alert" })
- }), /* @__PURE__ */ (0, I.jsx)("p", { children: mve })] }), /* @__PURE__ */ (0, I.jsx)("a", {
+ }), /* @__PURE__ */ (0, I.jsx)("p", { children: pve })] }), /* @__PURE__ */ (0, I.jsx)("a", {
href: "/settings/network#peachProxy",
children: "检查 Peach 代理"
})]
}), t);
}
// src/react/components/segmented.tsx
-function _ve(e) {
- let t = lL(_H("selection"));
- return /* @__PURE__ */ (0, I.jsx)(fB, {
+function gve(e) {
+ let t = dL(vH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(mB, {
...e,
ref: t
});
}
-function rU(e) {
- let t = lL(_H("selection"));
- return /* @__PURE__ */ (0, I.jsx)(jz, {
+function iU(e) {
+ let t = dL(vH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(Nz, {
...e,
ref: t
});
}
-var iU = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", aU = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 max-sm:px-2 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", vve = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", oU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", sU = "relative flex size-8 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)", cU = [
+var aU = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", oU = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 max-sm:px-2 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", _ve = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", sU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", cU = "relative flex size-8 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)", lU = [
["library", "馆藏"],
["releases", "新作"],
["discover", "发现"],
["wants", "想要"]
-], lU = (e) => cU.some(([t]) => t === e) ? e : "library", uU = (e) => lU(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
-function yve(e) {
+], uU = (e) => lU.some(([t]) => t === e) ? e : "library", dU = (e) => uU(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
+function vve(e) {
let t = new URLSearchParams(e);
return t.delete("tab"), t.set("jav", "1"), "/?" + t;
}
// src/onboarding/guide-catalog.ts
-var dU = (e, t, n, r, i, a) => ({
+var fU = (e, t, n, r, i, a) => ({
id: e,
title: t,
body: n,
route: r,
target: i,
scope: a
-}), fU = (e, t, n, r, i) => dU(e, t, n, r, i), pU = [
+}), pU = (e, t, n, r, i) => fU(e, t, n, r, i), mU = [
{
id: "basics",
kind: "interface",
title: "认识界面",
summary: "4 步认识搜索、导航、作品详情和设置。",
steps: [
- fU("search", "搜索馆藏", "输入作品名、番号、艺人、厂牌或标签。搜索结果来自已经入库的内容。", "/", "#q, #searchBtn"),
- fU("navigation", "切换浏览入口", "在侧栏按人物、厂牌和标签浏览。手机上用导航按钮展开侧栏;入口与顺序可以在设置里调整。", "/", "#filterBtn, [data-sidebar-nav]"),
- fU("cards", "打开作品详情", "选择作品查看资料、版本和播放入口。首次扫描尚未入库时,可以先继续认识导航。", "/", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
- fU("preferences", "调整自己的界面", "侧栏底部的设置包含显示与播放偏好;手机上先展开侧栏。媒体目录、网络和后台服务放在其中的 Peach 配置入口。", "/", "#settingsBtn, #filterBtn")
+ pU("search", "搜索馆藏", "输入作品名、番号、艺人、厂牌或标签。搜索结果来自已经入库的内容。", "/", "#q, #searchBtn"),
+ pU("navigation", "切换浏览入口", "在侧栏按人物、厂牌和标签浏览。手机上用导航按钮展开侧栏;入口与顺序可以在设置里调整。", "/", "#filterBtn, [data-sidebar-nav]"),
+ pU("cards", "打开作品详情", "选择作品查看资料、版本和播放入口。首次扫描尚未入库时,可以先继续认识导航。", "/", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
+ pU("preferences", "调整自己的界面", "侧栏底部的设置包含显示与播放偏好;手机上先展开侧栏。媒体目录、网络和后台服务放在其中的 Peach 配置入口。", "/", "#settingsBtn, #filterBtn")
]
},
{
@@ -46964,23 +46964,23 @@ var dU = (e, t, n, r, i, a) => ({
title: "找到并播放",
summary: "搜索、筛选、详情、版本、字幕和播放器。",
steps: [
- fU("library", "选择媒体库", "导航顶部可以切换全部媒体库或某个媒体库;手机上先展开侧栏。媒体库把不同目录组织成一组。", "/", "#brandHome, #filterBtn"),
- fU("search", "按关键词找内容", "输入作品、番号或人物名称,结合筛选与排序定位内容。搜索记录数量可在搜索与推荐中设置。", "/", "#q, #searchBtn"),
- fU("filter", "筛选与清除", "多个筛选条件会共同缩小结果。找不到内容时先检查媒体库和筛选条件。", "/", "[data-catalog-frame]"),
+ pU("library", "选择媒体库", "导航顶部可以切换全部媒体库或某个媒体库;手机上先展开侧栏。媒体库把不同目录组织成一组。", "/", "#brandHome, #filterBtn"),
+ pU("search", "按关键词找内容", "输入作品、番号或人物名称,结合筛选与排序定位内容。搜索记录数量可在搜索与推荐中设置。", "/", "#q, #searchBtn"),
+ pU("filter", "筛选与清除", "多个筛选条件会共同缩小结果。找不到内容时先检查媒体库和筛选条件。", "/", "[data-catalog-frame]"),
{
- ...dU("detail", "作品详情", "这里显示当前作品的标题和源文件工具。评分、人物和标签在下方;有分卷或版本的作品可从馆藏卡片进入相应队列。", "/", "[data-item-title]"),
+ ...fU("detail", "作品详情", "这里显示当前作品的标题和源文件工具。评分、人物和标签在下方;有分卷或版本的作品可从馆藏卡片进入相应队列。", "/", "[data-item-title]"),
surface: "detail"
},
{
- ...dU("player", "播放器控件", "底部控制条提供播放、进度、音量和全屏。右侧齿轮打开播放速度、字幕、画面旋转和清晰度等选项。", "/", "#stage .vjs-control-bar"),
+ ...fU("player", "播放器控件", "底部控制条提供播放、进度、音量和全屏。右侧齿轮打开播放速度、字幕、画面旋转和清晰度等选项。", "/", "#stage .vjs-control-bar"),
surface: "player"
},
{
- ...dU("subtitles", "字幕与播放选项", "从播放器齿轮菜单进入字幕,可以选择已有字幕、加载本地字幕文件或搜索字幕;播放速度和清晰度也在这个菜单中。", "/", "#stage [data-player-subtitles]"),
+ ...fU("subtitles", "字幕与播放选项", "从播放器齿轮菜单进入字幕,可以选择已有字幕、加载本地字幕文件或搜索字幕;播放速度和清晰度也在这个菜单中。", "/", "#stage [data-player-subtitles]"),
surface: "subtitles"
},
{
- ...dU("external", "外部播放器", "在这里选择本地播放器、M3U 播放列表或网络播放地址,再点打开。另一台设备需要能访问当前 Peach 地址。", "/", "#stage [data-local-playback-row]"),
+ ...fU("external", "外部播放器", "在这里选择本地播放器、M3U 播放列表或网络播放地址,再点打开。另一台设备需要能访问当前 Peach 地址。", "/", "#stage [data-local-playback-row]"),
surface: "detail"
}
]
@@ -46992,15 +46992,15 @@ var dU = (e, t, n, r, i, a) => ({
summary: "评分、标记、播放列表与当前播放队列。",
steps: [
{
- ...fU("marks", "评分", "点击星星给作品评分;下方的喜欢、稍后看和加入播放列表用于保存感兴趣的内容。", "/", "#stage [data-item-rating]"),
+ ...pU("marks", "评分", "点击星星给作品评分;下方的喜欢、稍后看和加入播放列表用于保存感兴趣的内容。", "/", "#stage [data-item-rating]"),
surface: "detail"
},
{
- ...fU("mark-actions", "标记与加入列表", "喜欢影响口味推荐,稍后看便于回找;加入播放列表可把作品整理到自己的列表。", "/", "#stage [data-item-feedback]"),
+ ...pU("mark-actions", "标记与加入列表", "喜欢影响口味推荐,稍后看便于回找;加入播放列表可把作品整理到自己的列表。", "/", "#stage [data-item-feedback]"),
surface: "detail"
},
- fU("lists", "建立播放列表", "在这里输入名称,创建自己的播放列表。之后从作品详情的加入播放列表按钮添加内容。", "/playlists", "[data-playlist-create]"),
- fU("queue", "从列表开始播放", "选择一张播放列表卡片进入队列,查看和调整播放顺序。没有列表时先创建,再加入作品。", "/playlists", "[data-playlist-card]")
+ pU("lists", "建立播放列表", "在这里输入名称,创建自己的播放列表。之后从作品详情的加入播放列表按钮添加内容。", "/playlists", "[data-playlist-create]"),
+ pU("queue", "从列表开始播放", "选择一张播放列表卡片进入队列,查看和调整播放顺序。没有列表时先创建,再加入作品。", "/playlists", "[data-playlist-card]")
]
},
{
@@ -47009,10 +47009,10 @@ var dU = (e, t, n, r, i, a) => ({
title: "按人物与主题浏览",
summary: "从人物、厂牌和标签继续发现相关馆藏。",
steps: [
- fU("people", "艺人与创作者", "选择人物卡片进入资料页,查看相关作品、照片与已连接的来源。上方可以切换艺人、卖家与在线人物。", "/performers", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
- fU("studios", "厂牌", "选择厂牌卡片集中查看作品。资料页中的作品仍会受到当前媒体库范围影响。", "/studios", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
- fU("tags", "标签与主题", "选择标签继续浏览相关馆藏;本地与在线使用不同的标签词表。", "/tags", "[data-index-body] [data-alpha-tag], [data-index-body] [data-tag-chip], [data-index-body] [data-empty-state]"),
- fU("manage-tags", "管理标签", "铅笔按钮打开标签管理,用于整理标签名称和关系;再次点击返回浏览。", "/tags", "[data-tag-mode]")
+ pU("people", "艺人与创作者", "选择人物卡片进入资料页,查看相关作品、照片与已连接的来源。上方可以切换艺人、卖家与在线人物。", "/performers", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
+ pU("studios", "厂牌", "选择厂牌卡片集中查看作品。资料页中的作品仍会受到当前媒体库范围影响。", "/studios", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
+ pU("tags", "标签与主题", "选择标签继续浏览相关馆藏;本地与在线使用不同的标签词表。", "/tags", "[data-index-body] [data-alpha-tag], [data-index-body] [data-tag-chip], [data-index-body] [data-empty-state]"),
+ pU("manage-tags", "管理标签", "铅笔按钮打开标签管理,用于整理标签名称和关系;再次点击返回浏览。", "/tags", "[data-tag-mode]")
]
},
{
@@ -47021,10 +47021,10 @@ var dU = (e, t, n, r, i, a) => ({
title: "JAV 与追新",
summary: "馆藏、新作、想要清单与高清版。",
steps: [
- fU("library", "JAV 馆藏", "按番号、出演者和厂牌查找已入库的作品,可以选择官方封面或预览图。", uU("library"), "[data-catalog-frame]"),
- fU("new", "发现推荐", "发现页按口味推荐作品。在这里切换馆藏或外部内容,并按标签筛选。", uU("discover"), "[data-jav-filter] [data-catalog-views]"),
- fU("wants", "查看想要清单", "喜欢的外部作品可以加入想要清单;在这里切换馆藏、发现与想要。", uU("discover"), "[aria-label=\"JAV 分区\"]"),
- fU("quality", "高清版", "待升级卡片列出当前版本信息和判定原因,可以查看版本或查找资源;没有目标时这里显示空状态。", "/quality-goals", "[data-goal-id], #main [data-empty-state]")
+ pU("library", "JAV 馆藏", "按番号、出演者和厂牌查找已入库的作品,可以选择官方封面或预览图。", dU("library"), "[data-catalog-frame]"),
+ pU("new", "发现推荐", "发现页按口味推荐作品。在这里切换馆藏或外部内容,并按标签筛选。", dU("discover"), "[data-jav-filter] [data-catalog-views]"),
+ pU("wants", "查看想要清单", "喜欢的外部作品可以加入想要清单;在这里切换馆藏、发现与想要。", dU("discover"), "[aria-label=\"JAV 分区\"]"),
+ pU("quality", "高清版", "待升级卡片列出当前版本信息和判定原因,可以查看版本或查找资源;没有目标时这里显示空状态。", "/quality-goals", "[data-goal-id], #main [data-empty-state]")
]
},
{
@@ -47033,9 +47033,9 @@ var dU = (e, t, n, r, i, a) => ({
title: "关注创作者",
summary: "多来源更新、同作品合并和来源状态。",
steps: [
- fU("feed", "集中看关注更新", "来自不同来源的创作者更新汇集在这里,选择一项更新查看内容;尚未关注来源时,按空状态中的入口添加。", "/follow", "[data-follow-item], [data-follow-empty] [data-empty-state]"),
- fU("sources", "管理关注来源", "从列表查看启用状态、采集结果和失败原因;切换到添加区域,添加创作者或订阅来源。", "/subscriptions", "[aria-label=\"关注管理区域\"]"),
- fU("credentials", "按需配置凭据", "部分来源需要登录凭据;先确认要启用的来源,再展开对应站点,填写其要求的信息。", "/settings/subscriptions", "[data-guide-target=\"credentials\"]")
+ pU("feed", "集中看关注更新", "来自不同来源的创作者更新汇集在这里,选择一项更新查看内容;尚未关注来源时,按空状态中的入口添加。", "/follow", "[data-follow-item], [data-follow-empty] [data-empty-state]"),
+ pU("sources", "管理关注来源", "从列表查看启用状态、采集结果和失败原因;切换到添加区域,添加创作者或订阅来源。", "/subscriptions", "[aria-label=\"关注管理区域\"]"),
+ pU("credentials", "按需配置凭据", "部分来源需要登录凭据;先确认要启用的来源,再展开对应站点,填写其要求的信息。", "/settings/subscriptions", "[data-guide-target=\"credentials\"]")
]
},
{
@@ -47044,9 +47044,9 @@ var dU = (e, t, n, r, i, a) => ({
title: "专注观看",
summary: "播放墙、沉浸模式与详情小窗。",
steps: [
- fU("wall", "播放墙", "播放墙提供多画面观看入口。结束导览后点击进入,再选择要播放的内容。", "/", "#wallBtn"),
- fU("immerse", "沉浸模式", "沉浸模式适合连续观看。点击入口会进入观看流程,请在准备好播放时使用。", "/", "#immerseBtn"),
- fU("mini", "离开详情后继续看", "开启小窗播放后,离开详情可以继续观看。自动播放、小窗和快进步长都在浏览与播放设置中。", "/settings/playback", "#miniplayerSetting")
+ pU("wall", "播放墙", "播放墙提供多画面观看入口。结束导览后点击进入,再选择要播放的内容。", "/", "#wallBtn"),
+ pU("immerse", "沉浸模式", "沉浸模式适合连续观看。点击入口会进入观看流程,请在准备好播放时使用。", "/", "#immerseBtn"),
+ pU("mini", "离开详情后继续看", "开启小窗播放后,离开详情可以继续观看。自动播放、小窗和快进步长都在浏览与播放设置中。", "/settings/playback", "#miniplayerSetting")
]
},
{
@@ -47055,11 +47055,11 @@ var dU = (e, t, n, r, i, a) => ({
title: "整理与维护",
summary: "扫描、补资料、复核、文件整理与回收站。",
steps: [
- fU("scan", "扫描与补资料", "在媒体库处理区域选择扫描和资料处理范围。读取策略取决于媒体库配置;导览不会启动任务。", "/data-cleanup", "#libraryProcessing"),
- fU("review", "人工复核", "先按分类找到待复核资料,再查看项目的来源和证据后作决定。", "/review", "[aria-labelledby=\"reviewcategories\"]"),
- fU("organize", "文件整理", "文件整理先查看预览,确认命名与目标目录再执行。资料整理和真实文件操作有不同的影响范围。", "/data-cleanup", "[data-cleanup-organize]"),
- fU("trash", "回收站", "查看已移入回收站的作品,按需要恢复或处理。永久删除前认真核对确认框中的范围。", "/trash", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
- fU("tasks", "任务与失败原因", "任务记录显示处理状态;展开记录查看详情与失败原因。还没有任务时,这里会说明哪些操作会留下记录。", "/tasks", "[data-run-id], #main [data-empty-state]")
+ pU("scan", "扫描与补资料", "在媒体库处理区域选择扫描和资料处理范围。读取策略取决于媒体库配置;导览不会启动任务。", "/data-cleanup", "#libraryProcessing"),
+ pU("review", "人工复核", "先按分类找到待复核资料,再查看项目的来源和证据后作决定。", "/review", "[aria-labelledby=\"reviewcategories\"]"),
+ pU("organize", "文件整理", "文件整理先查看预览,确认命名与目标目录再执行。资料整理和真实文件操作有不同的影响范围。", "/data-cleanup", "[data-cleanup-organize]"),
+ pU("trash", "回收站", "查看已移入回收站的作品,按需要恢复或处理。永久删除前认真核对确认框中的范围。", "/trash", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
+ pU("tasks", "任务与失败原因", "任务记录显示处理状态;展开记录查看详情与失败原因。还没有任务时,这里会说明哪些操作会留下记录。", "/tasks", "[data-run-id], #main [data-empty-state]")
]
},
{
@@ -47068,10 +47068,10 @@ var dU = (e, t, n, r, i, a) => ({
title: "了解自己的馆藏",
summary: "统计、口味,以及浏览历史和书签来源。",
steps: [
- fU("stats", "馆藏统计", "选择统计视图查看馆藏、存储和观看情况,各视图中的入口可继续查看相关作品。", "/stats", "[aria-label=\"统计视图\"]"),
- fU("taste", "口味与记录", "在这里切换浏览器记录与 Peach 观看评价,分析各自的口味。", "/taste", "[aria-label=\"口味分析的数据来源\"]"),
- fU("import", "取得浏览历史与书签", "读取浏览器记录需要在运行 Peach 的电脑操作;更多方式菜单可以导入历史或书签文件,适合其它设备。", "/taste", "[data-guide-target=\"history-import\"]"),
- fU("history", "管理记录来源", "已取得的记录来源集中列在这里,可以停用本机浏览器读取或移除已导入的数据源;导览不会修改这些记录。", "/taste", "section[aria-label=\"数据源\"]")
+ pU("stats", "馆藏统计", "选择统计视图查看馆藏、存储和观看情况,各视图中的入口可继续查看相关作品。", "/stats", "[aria-label=\"统计视图\"]"),
+ pU("taste", "口味与记录", "在这里切换浏览器记录与 Peach 观看评价,分析各自的口味。", "/taste", "[aria-label=\"口味分析的数据来源\"]"),
+ pU("import", "取得浏览历史与书签", "读取浏览器记录需要在运行 Peach 的电脑操作;更多方式菜单可以导入历史或书签文件,适合其它设备。", "/taste", "[data-guide-target=\"history-import\"]"),
+ pU("history", "管理记录来源", "已取得的记录来源集中列在这里,可以停用本机浏览器读取或移除已导入的数据源;导览不会修改这些记录。", "/taste", "section[aria-label=\"数据源\"]")
]
},
{
@@ -47080,9 +47080,9 @@ var dU = (e, t, n, r, i, a) => ({
title: "从外部加入内容",
summary: "云下载、目录映射与浏览器添加。",
steps: [
- fU("downloads", "配置下载渠道", "先连接支持的渠道,再指定云端目标目录与本地媒体目录。下载完成后按目录规则入库。", "/settings/downloads", "[data-guide-target=\"download\"]"),
- fU("search", "搜索资源", "资源搜索使用配置的索引器。查到结果后还需要你主动选择下载。", "/settings/subscriptions", "[data-guide-target=\"indexers\"]"),
- fU("browser", "浏览器添加 JAV", "用户脚本与 Peach 配对后可从浏览器添加作品。专用令牌、默认渠道和开关在下载渠道里管理。", "/settings/downloads", "[data-guide-target=\"browser\"]")
+ pU("downloads", "配置下载渠道", "先连接支持的渠道,再指定云端目标目录与本地媒体目录。下载完成后按目录规则入库。", "/settings/downloads", "[data-guide-target=\"download\"]"),
+ pU("search", "搜索资源", "资源搜索使用配置的索引器。查到结果后还需要你主动选择下载。", "/settings/subscriptions", "[data-guide-target=\"indexers\"]"),
+ pU("browser", "浏览器添加 JAV", "用户脚本与 Peach 配对后可从浏览器添加作品。专用令牌、默认渠道和开关在下载渠道里管理。", "/settings/downloads", "[data-guide-target=\"browser\"]")
]
},
{
@@ -47091,18 +47091,18 @@ var dU = (e, t, n, r, i, a) => ({
title: "手机与其他设备",
summary: "访问地址、密码、局域网和公网入口。",
steps: [
- fU("address", "找到访问地址", "同一局域网的设备使用 Peach 的局域网地址。仅本机访问时,其它设备无法连接。", "/settings/network", "[data-guide-target=\"port\"]"),
- fU("password", "访问密码", "能连接到 Peach 的设备按访问密码登录。显示偏好与访问权限是不同的设置。", "/settings/network", "[data-guide-target=\"access\"]"),
- fU("tunnel", "需要时启用公网入口", "Cloudflare 公网入口适合离开局域网后访问,需要按实际部署配置连接信息。", "/settings/network", "[data-guide-target=\"tunnel\"]")
+ pU("address", "找到访问地址", "同一局域网的设备使用 Peach 的局域网地址。仅本机访问时,其它设备无法连接。", "/settings/network", "[data-guide-target=\"port\"]"),
+ pU("password", "访问密码", "能连接到 Peach 的设备按访问密码登录。显示偏好与访问权限是不同的设置。", "/settings/network", "[data-guide-target=\"access\"]"),
+ pU("tunnel", "需要时启用公网入口", "Cloudflare 公网入口适合离开局域网后访问,需要按实际部署配置连接信息。", "/settings/network", "[data-guide-target=\"tunnel\"]")
]
}
-], bve = "当前浏览器 · 修改后自动保存", mU = "跟随馆藏 · 修改后自动保存", hU = "运行 Peach 的电脑 · 确认后保存配置", gU = (e, t, n = bve) => t.map(([t, r, i, a, o]) => dU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), _U = [
+], yve = "当前浏览器 · 修改后自动保存", hU = "跟随馆藏 · 修改后自动保存", gU = "运行 Peach 的电脑 · 确认后保存配置", _U = (e, t, n = yve) => t.map(([t, r, i, a, o]) => fU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), vU = [
{
id: "appearance",
kind: "settings",
title: Of.appearance,
summary: "主题、光晕与导航入口。",
- steps: gU("appearance", [
+ steps: _U("appearance", [
[
"theme",
"主题",
@@ -47132,7 +47132,7 @@ var dU = (e, t, n, r, i, a) => ({
"导航入口与顺序",
"把常用入口放到侧栏,拖动调整顺序。",
"[data-sidebar-setting]",
- mU
+ hU
]
])
},
@@ -47141,7 +47141,7 @@ var dU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Of.playback,
summary: "列表呈现、悬停预览与播放行为。",
- steps: gU("playback", [
+ steps: _U("playback", [
[
"batch",
"每批作品",
@@ -47197,13 +47197,13 @@ var dU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Of.jav,
summary: "封面与新作筛选。",
- steps: gU("jav", [
+ steps: _U("jav", [
[
"names",
"女优名称",
"选择中文或日文名称;偏好跟随馆藏,其他设备读取同一份设置。",
"#performerNameLanguageSetting",
- mU
+ hU
],
[
"image",
@@ -47228,21 +47228,21 @@ var dU = (e, t, n, r, i, a) => ({
"隐藏大合集",
"过滤新作中的大合集,只影响新作展示,馆藏仍可查找。",
"#feedHideGroupSetting",
- mU
+ hU
],
[
"solo-compilations",
"隐藏单人合集",
"过滤新作中的单人合集,只影响新作展示,馆藏仍可查找。",
"#feedHideSoloSetting",
- mU
+ hU
],
[
"excerpts",
"隐藏切片",
"过滤新作中的切片,只影响新作展示,馆藏仍可查找。",
"#feedHideExcerptSetting",
- mU
+ hU
]
])
},
@@ -47251,12 +47251,12 @@ var dU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Of.search,
summary: "搜索记录、推荐数量与口味入口。",
- steps: [...gU("search", [[
+ steps: [..._U("search", [[
"history",
"搜索记录",
"设置保留的搜索记录上限,0 表示不记录。",
"#searchHistoryLimitSetting"
- ]], mU), ...gU("search", [[
+ ]], hU), ..._U("search", [[
"related",
"相关推荐数量",
"决定详情中显示多少项相关推荐。口味和记录来源在口味页面管理。",
@@ -47268,7 +47268,7 @@ var dU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Of.content,
summary: "SFW 模式与画面显示。",
- steps: gU("content", [[
+ steps: _U("content", [[
"sfw",
"SFW 模式",
"隐藏敏感画面并停止悬停预览,适合需要遮挡画面的环境。访问控制请另设访问密码。",
@@ -47280,7 +47280,7 @@ var dU = (e, t, n, r, i, a) => ({
kind: "settings",
title: kf.library,
summary: "媒体库、目录、读取与处理方式。",
- steps: gU("library", [
+ steps: _U("library", [
[
"media",
"媒体库名称与外观",
@@ -47331,14 +47331,14 @@ var dU = (e, t, n, r, i, a) => ({
"视频预览",
"生成视频预览会读取视频并产生缓存。时间轴预览的开关与采集间隔控制本机磁盘缩略图;抽帧解码方式决定生成预览使用的解码器。修改后自动保存,并受媒体库处理方式与读取策略约束。"
]
- ], hU)
+ ], gU)
},
{
id: "subscriptions",
kind: "settings",
title: kf.subscriptions,
summary: "资料来源、关注、索引器与站点入口。",
- steps: gU("subscriptions", [
+ steps: _U("subscriptions", [
[
"sources",
"采集来源与登录状态",
@@ -47365,14 +47365,14 @@ var dU = (e, t, n, r, i, a) => ({
"作品资料站点",
"配置资料站点和镜像入口,用于打开相关作品页面。地址和登录凭据分别管理。"
]
- ], hU)
+ ], gU)
},
{
id: "downloads",
kind: "settings",
title: kf.downloads,
summary: "云下载目录、账号与浏览器配对。",
- steps: gU("downloads", [
+ steps: _U("downloads", [
[
"download",
"云下载",
@@ -47388,14 +47388,14 @@ var dU = (e, t, n, r, i, a) => ({
"浏览器添加 JAV",
"安装用户脚本并配对 Peach。默认渠道决定提交到哪里;启用开关控制功能,专用令牌可更新或关闭,脚本检测帮助确认配对。"
]
- ], hU)
+ ], gU)
},
{
id: "network",
kind: "settings",
title: kf.network,
summary: "访问端口、代理、密码和公网入口。",
- steps: gU("network", [
+ steps: _U("network", [
[
"port",
"访问地址与端口",
@@ -47416,14 +47416,14 @@ var dU = (e, t, n, r, i, a) => ({
"Cloudflare 公网入口",
"临时链接用于临时连接,命名隧道使用主机名与隧道令牌。连接状态显示是否已可用,按需要启用。"
]
- ], hU)
+ ], gU)
},
{
id: "app-maintenance",
kind: "settings",
title: kf.maintenance,
summary: "更新、存储、数据选择与应用维护。",
- steps: gU("maintenance", [
+ steps: _U("maintenance", [
[
"updates",
"检查更新",
@@ -47464,14 +47464,14 @@ var dU = (e, t, n, r, i, a) => ({
"卸载 Peach",
"卸载移除程序;完全卸载还移除设置、资料库、记录、凭据和缓存。执行前核对页面列出的数据目录与确认内容。"
]
- ], hU)
+ ], gU)
},
{
id: "diagnostics",
kind: "settings",
title: kf.diagnostics,
summary: "遇到问题时查看检查项与诊断报告。",
- steps: gU("diagnostics", [
+ steps: _U("diagnostics", [
[
"attention",
"需要关注的检查项",
@@ -47496,7 +47496,7 @@ var dU = (e, t, n, r, i, a) => ({
]
], "只读检查 · 重新检查与下载由你主动执行")
}
-], xve = {
+], bve = {
glow: [
["配色预设", "一次应用一组配色和参数,适合先挑选整体外观。"],
["强度", "控制光晕的明亮程度;太抢眼时降低。"],
@@ -47603,8 +47603,8 @@ var dU = (e, t, n, r, i, a) => ({
["上传预览", "查看本次会包含的内容,再决定是否启用明细上传。"]
]
};
-for (let e of _U) for (let t of e.steps) t.details = xve[t.id], (t.id === "preview" || t.id === "transcode") && (t.scope = "运行 Peach 的电脑 · 修改后自动保存"), (t.id === "follow-options" || t.id === "sources" || t.id === "reporting" || t.id === "storage") && (t.scope = "按页面中各项的保存或确认动作生效");
-var vU = [...pU, ..._U], Sve = [
+for (let e of vU) for (let t of e.steps) t.details = bve[t.id], (t.id === "preview" || t.id === "transcode") && (t.scope = "运行 Peach 的电脑 · 修改后自动保存"), (t.id === "follow-options" || t.id === "sources" || t.id === "reporting" || t.id === "storage") && (t.scope = "按页面中各项的保存或确认动作生效");
+var yU = [...mU, ...vU], xve = [
{
id: "browse",
kind: "interface",
@@ -47682,35 +47682,35 @@ var vU = [...pU, ..._U], Sve = [
]
}
];
-function Cve(e) {
- return e === "/" ? pU[0] : _U.find((t) => t.steps[0]?.route === e) || pU.find((t) => t.id !== "basics" && t.steps.some((t) => t.route === e)) || pU[0];
+function Sve(e) {
+ return e === "/" ? mU[0] : vU.find((t) => t.steps[0]?.route === e) || mU.find((t) => t.id !== "basics" && t.steps.some((t) => t.route === e)) || mU[0];
}
// src/onboarding/guide-state.ts
-var wve = () => ({
+var Cve = () => ({
version: 1,
campaign: "",
invited: !1,
completed: !1,
chapters: {}
});
-function yU(e, t) {
+function bU(e, t) {
let n = e.chapters[t.id]?.read || [];
return t.steps.every((e) => n.includes(e.id));
}
-function Tve(e, t) {
+function wve(e, t) {
let n = e.chapters[t.id];
- return !n || yU(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));
+ return !n || bU(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));
}
-function Eve() {
+function Tve() {
return B("/api/tutorial-progress");
}
-function Dve(e, t) {
+function Eve(e, t) {
return V("/api/tutorial-progress", {
campaign: e,
...t
});
}
-function Ove(e, t, n, r, i) {
+function Dve(e, t, n, r, i) {
let a = e.chapters[t] || {
next: 0,
read: [],
@@ -47728,99 +47728,99 @@ function Ove(e, t, n, r, i) {
}
};
}
-var bU = null, xU = /* @__PURE__ */ new Set();
-function SU(e = {}) {
- xU.size || (bU = e);
- for (let t of xU) t(e);
-}
-function kve(e) {
- if (xU.add(e), bU) {
- let t = bU;
- bU = null, queueMicrotask(() => {
- xU.has(e) && e(t);
+var xU = null, SU = /* @__PURE__ */ new Set();
+function CU(e = {}) {
+ SU.size || (xU = e);
+ for (let t of SU) t(e);
+}
+function Ove(e) {
+ if (SU.add(e), xU) {
+ let t = xU;
+ xU = null, queueMicrotask(() => {
+ SU.has(e) && e(t);
});
}
return () => {
- xU.delete(e);
+ SU.delete(e);
};
}
// src/react/components/card.tsx
-var Ave = "min-w-0", jve = {
+var kve = "min-w-0", Ave = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, Mve = {
+}, jve = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, Nve = {
+}, Mve = {
line: "border border-border-button-default",
soft: "border border-separator-border",
error: "outline-1 -outline-offset-1 outline-border-error-default"
-}, Pve = {
+}, Nve = {
none: "",
default: "p-5"
-}, Fve = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", Ive = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
-function CU(e = {}) {
+}, Pve = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", Fve = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";
+function wU(e = {}) {
let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");
return [
- Ave,
- jve[t],
- Mve[s],
- Pve[n],
- a ? Nve[a] : "",
- r ? Fve : "",
- i ? Ive : "",
+ kve,
+ Ave[t],
+ jve[s],
+ Nve[n],
+ a ? Mve[a] : "",
+ r ? Pve : "",
+ i ? Fve : "",
o ?? ""
].filter(Boolean).join(" ");
}
// src/react/onboarding/guide-directory.tsx
-var Lve = {
- browse: KB,
- collect: SB,
- watch: VB,
- manage: NB,
- experience: zB,
- discovery: GB,
- storage: EB,
- system: qB
-}, Rve = {
- basics: TB,
- "find-play": KB,
- entities: ZB,
- jav: jB,
- save: SB,
- follow: GB,
- insights: xB,
- viewing: VB,
- devices: JB,
- external: DB,
- maintenance: XB,
- appearance: zB,
- playback: VB,
- content: kB,
- "search-settings": KB,
- "jav-settings": jB,
- subscriptions: GB,
- library: EB,
- downloads: DB,
- network: JB,
- "app-maintenance": XB,
- diagnostics: Cge
+var Ive = {
+ browse: qB,
+ collect: wB,
+ watch: HB,
+ manage: PB,
+ experience: BB,
+ discovery: KB,
+ storage: OB,
+ system: JB
+}, Lve = {
+ basics: DB,
+ "find-play": qB,
+ entities: QB,
+ jav: MB,
+ save: wB,
+ follow: KB,
+ insights: CB,
+ viewing: HB,
+ devices: YB,
+ external: kB,
+ maintenance: ZB,
+ appearance: BB,
+ playback: HB,
+ content: jB,
+ "search-settings": qB,
+ "jav-settings": MB,
+ subscriptions: KB,
+ library: OB,
+ downloads: kB,
+ network: YB,
+ "app-maintenance": ZB,
+ diagnostics: Sge
};
-function zve({ chapter: e, className: t = "size-5" }) {
- let n = Rve[e] || TB;
+function Rve({ chapter: e, className: t = "size-5" }) {
+ let n = Lve[e] || DB;
return /* @__PURE__ */ (0, I.jsx)(n, {
"aria-hidden": !0,
className: q(t, "shrink-0")
});
}
-function wU({ icon: e, title: t, description: n, children: r, completed: i = !1 }) {
+function TU({ icon: e, title: t, description: n, children: r, completed: i = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("section", {
"data-guide-banner": "",
"data-guide-completed": i || void 0,
- className: CU({
+ className: wU({
radius: "plain",
className: "flex flex-col gap-4"
}),
@@ -47849,8 +47849,8 @@ function wU({ icon: e, title: t, description: n, children: r, completed: i = !1
})]
});
}
-function TU({ chapter: e, progress: t, loading: n, start: r }) {
- let i = yU(t, e), a = !i && !!t.chapters[e.id];
+function EU({ chapter: e, progress: t, loading: n, start: r }) {
+ let i = bU(t, e), a = !i && !!t.chapters[e.id];
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
disabled: n,
@@ -47860,7 +47860,7 @@ function TU({ chapter: e, progress: t, loading: n, start: r }) {
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(zve, { chapter: e.id })
+ children: /* @__PURE__ */ (0, I.jsx)(Rve, { chapter: e.id })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col gap-1",
@@ -47872,7 +47872,7 @@ function TU({ chapter: e, progress: t, loading: n, start: r }) {
children: e.summary
})]
}),
- i ? /* @__PURE__ */ (0, I.jsx)(EU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ i ? /* @__PURE__ */ (0, I.jsx)(DU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: [
a ? "继续 · " : "",
@@ -47880,17 +47880,17 @@ function TU({ chapter: e, progress: t, loading: n, start: r }) {
" 步"
]
}),
- /* @__PURE__ */ (0, I.jsx)(yB, {
+ /* @__PURE__ */ (0, I.jsx)(xB, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0 text-text-secondary"
})
]
});
}
-function EU() {
+function DU() {
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex shrink-0 items-center gap-1 rounded-full bg-notification-success-background px-2 py-1 text-caption-1-medium text-notification-success-foreground",
- children: [/* @__PURE__ */ (0, I.jsx)(CB, {
+ children: [/* @__PURE__ */ (0, I.jsx)(TB, {
"aria-hidden": !0,
className: "size-4"
}), /* @__PURE__ */ (0, I.jsx)("span", {
@@ -47899,17 +47899,17 @@ function EU() {
})]
});
}
-function Bve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading: a, start: o }) {
- let [s, c] = (0, F.useState)(null), l = vU.find((t) => t.id === (e === "interface" ? "basics" : "appearance")), u = yU(i, l), d = !u && !!i.chapters[l.id], f = t.trim().toLowerCase(), p = vU.filter((t) => t.kind === e && `${t.title} ${t.summary} ${t.steps.map((e) => `${e.title} ${e.body} ${(e.details || []).flat().join(" ")}`).join(" ")}`.toLowerCase().includes(f));
+function zve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading: a, start: o }) {
+ let [s, c] = (0, F.useState)(null), l = yU.find((t) => t.id === (e === "interface" ? "basics" : "appearance")), u = bU(i, l), d = !u && !!i.chapters[l.id], f = t.trim().toLowerCase(), p = yU.filter((t) => t.kind === e && `${t.title} ${t.summary} ${t.steps.map((e) => `${e.title} ${e.body} ${(e.details || []).flat().join(" ")}`).join(" ")}`.toLowerCase().includes(f));
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, I.jsxs)(wU, {
+ /* @__PURE__ */ (0, I.jsxs)(TU, {
completed: u,
- icon: e === "interface" ? TB : qB,
+ icon: e === "interface" ? DB : JB,
title: e === "interface" ? "先认识 Peach" : "按习惯调整 Peach",
description: e === "interface" ? "先用 4 步认识常用入口,其余功能用到时再看。" : "先了解外观与导航,其余设置按需要查看。",
- children: [u ? /* @__PURE__ */ (0, I.jsx)(EU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [u ? /* @__PURE__ */ (0, I.jsx)(DU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "text-body-2-regular text-text-secondary",
children: [l.steps.length, " 步 · 随时可以退出"]
}), /* @__PURE__ */ (0, I.jsx)(J, {
@@ -47922,26 +47922,26 @@ function Bve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
})
})]
}),
- /* @__PURE__ */ (0, I.jsx)(iV, {
+ /* @__PURE__ */ (0, I.jsx)(aV, {
"aria-label": "搜索教程",
value: t,
onChange: n,
- children: /* @__PURE__ */ (0, I.jsx)(oV, {
+ children: /* @__PURE__ */ (0, I.jsx)(sV, {
type: "search",
placeholder: e === "settings" ? "搜索设置名称或用途" : "搜索功能或页面",
- leadingIcon: KB
+ leadingIcon: qB
})
}),
f ? p.length ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-chapters",
- children: p.map((e) => /* @__PURE__ */ (0, I.jsx)(TU, {
+ children: p.map((e) => /* @__PURE__ */ (0, I.jsx)(EU, {
chapter: e,
progress: i,
loading: a,
start: o
}, e.id))
- }) : /* @__PURE__ */ (0, I.jsx)(dV, {
- icon: KB,
+ }) : /* @__PURE__ */ (0, I.jsx)(fV, {
+ icon: qB,
title: "没有匹配的教程",
size: "compact",
children: "试试功能名或设置名称。"
@@ -47959,12 +47959,12 @@ function Bve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-topics",
- children: Sve.filter((t) => t.kind === e).map((e) => {
- let t = Lve[e.id];
+ children: xve.filter((t) => t.kind === e).map((e) => {
+ let t = Ive[e.id];
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-guide-topic": e.id,
className: "peach-guide-topic",
- children: /* @__PURE__ */ (0, I.jsx)(zH, {
+ children: /* @__PURE__ */ (0, I.jsx)(BH, {
trailing: !0,
isOpen: s === e.id,
onOpenChange: (t) => c(t ? e.id : null),
@@ -47989,8 +47989,8 @@ function Bve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
}),
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-topic-chapters",
- children: e.chapters.map((e) => /* @__PURE__ */ (0, I.jsx)(TU, {
- chapter: vU.find((t) => t.id === e),
+ children: e.chapters.map((e) => /* @__PURE__ */ (0, I.jsx)(EU, {
+ chapter: yU.find((t) => t.id === e),
progress: i,
loading: a,
start: o
@@ -48004,14 +48004,14 @@ function Bve({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
});
}
// src/onboarding/guide-entry.ts
-var DU = "侧栏收起时,先点左上角的导航按钮。", OU = (...e) => ({
+var OU = "侧栏收起时,先点左上角的导航按钮。", kU = (...e) => ({
path: ["侧栏", ...e],
- hint: DU
-}), kU = (e) => ({
+ hint: OU
+}), AU = (e) => ({
path: ["侧栏底部的设置", e],
- hint: DU
+ hint: OU
});
-function Vve(e) {
+function Bve(e) {
if (e.surface) return e.id === "external" ? { path: [
"作品卡片",
"作品详情",
@@ -48029,7 +48029,7 @@ function Vve(e) {
let [t = "/", n = ""] = e.route.split("#")[0].split("?"), r = t.split("/")[2];
if (t.startsWith("/settings/")) {
let e = Of[r];
- if (e) return kU(e);
+ if (e) return AU(e);
let t = kf[r];
if (t) return {
path: [
@@ -48037,11 +48037,11 @@ function Vve(e) {
"Peach 配置",
t
],
- hint: DU
+ hint: OU
};
}
let i = new URLSearchParams(n);
- if (t === "/jav" || i.get("jav") === "1") return OU("JAV", cU.find(([e]) => e === (i.get("tab") || "library"))?.[1] || cU[0][1]);
+ if (t === "/jav" || i.get("jav") === "1") return kU("JAV", lU.find(([e]) => e === (i.get("tab") || "library"))?.[1] || lU[0][1]);
if (t === "/") {
switch (e.id) {
case "search": return {
@@ -48051,9 +48051,9 @@ function Vve(e) {
case "navigation": return { path: ["左上角导航按钮", "侧栏中的浏览入口"] };
case "library": return {
path: ["侧栏顶部", "媒体库选择器"],
- hint: DU
+ hint: OU
};
- case "preferences": return kU(Of.appearance);
+ case "preferences": return AU(Of.appearance);
case "wall": return { path: ["页面顶部", "播放墙按钮"] };
case "immerse": return { path: ["页面顶部", "沉浸模式按钮"] };
case "cards":
@@ -48075,22 +48075,22 @@ function Vve(e) {
hint: "来源、时长等更多筛选位于侧栏。"
};
}
- return OU("首页");
+ return kU("首页");
}
if ([
"/review",
"/quality-goals",
"/trash"
- ].includes(t)) return OU("管理", $f["/data-cleanup"].title, t === "/trash" ? "回收站" : $f[t].title);
+ ].includes(t)) return kU("管理", $f["/data-cleanup"].title, t === "/trash" ? "回收站" : $f[t].title);
let a = $f[t];
if (a?.nav && a.title) {
- let e = OU(a.title);
+ let e = kU(a.title);
return t === "/playlists" && (e.hint = "若侧栏没有播放列表,到设置 → 外观与导航 → 导航入口与顺序添加;手机上先展开侧栏。"), e;
}
- if (a?.section && a.title) return OU("管理", a.title);
+ if (a?.section && a.title) return kU("管理", a.title);
}
// src/react/onboarding/guide-help.tsx
-function Hve({ details: e }) {
+function Vve({ details: e }) {
return e?.length ? /* @__PURE__ */ (0, I.jsx)("dl", {
className: "flex flex-col gap-3",
children: e.map(([e, t]) => /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -48105,24 +48105,9 @@ function Hve({ details: e }) {
}, e))
}) : null;
}
-function Uve({ chapter: e }) {
- let t = vU.find((t) => t.id === e);
- return t ? /* @__PURE__ */ (0, I.jsx)("div", {
- className: "text-body-2-regular text-text-secondary",
- children: /* @__PURE__ */ (0, I.jsxs)(zH, {
- summary: "了解这些设置",
- children: [/* @__PURE__ */ (0, I.jsx)("p", { children: t.summary }), /* @__PURE__ */ (0, I.jsx)("div", { children: /* @__PURE__ */ (0, I.jsx)(J, {
- variant: "secondary",
- size: "small",
- onClick: () => SU({ chapter: e }),
- children: "逐步了解这个分区"
- }) })]
- })
- }) : null;
-}
// src/react/onboarding/guide-popover.tsx
-function Wve({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {
- let c = BV(), l = Vve(e);
+function Hve({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {
+ let c = VV(), l = Bve(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "peach-guide-popover-content",
onPointerDown: (e) => e.stopPropagation(),
@@ -48133,7 +48118,7 @@ function Wve({ step: e, position: t, total: n, missing: r, next: i, previous: a,
id: "driver-popover-title",
className: "text-body-medium text-text-primary",
children: e.title
- }), /* @__PURE__ */ (0, I.jsx)(mV, {
+ }), /* @__PURE__ */ (0, I.jsx)(hV, {
label: s ? "关闭教程提示" : "结束导览",
onPress: o
})]
@@ -48150,7 +48135,7 @@ function Wve({ step: e, position: t, total: n, missing: r, next: i, previous: a,
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex items-center gap-2 text-body-2-medium text-text-secondary",
- children: [/* @__PURE__ */ (0, I.jsx)(Tge, {
+ children: [/* @__PURE__ */ (0, I.jsx)(wge, {
className: "size-4 shrink-0",
"aria-hidden": "true"
}), "打开方式"]
@@ -48159,7 +48144,7 @@ function Wve({ step: e, position: t, total: n, missing: r, next: i, previous: a,
className: "flex flex-wrap items-center gap-x-1 gap-y-1 text-body-2-medium text-text-primary",
children: l.path.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("li", {
className: "inline-flex items-center gap-1",
- children: [t ? /* @__PURE__ */ (0, I.jsx)(yB, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(xB, {
className: "size-4 shrink-0 text-text-secondary",
"aria-hidden": "true"
}) : null, /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
@@ -48180,15 +48165,15 @@ function Wve({ step: e, position: t, total: n, missing: r, next: i, previous: a,
className: "text-caption-1-regular text-text-secondary",
children: "导览期间不自动播放;退出后仍按原来的播放设置使用。"
}) : null,
- e.details?.length ? /* @__PURE__ */ (0, I.jsx)(zH, {
+ e.details?.length ? /* @__PURE__ */ (0, I.jsx)(BH, {
summary: "更多说明",
- children: /* @__PURE__ */ (0, I.jsx)(Hve, { details: e.details })
+ children: /* @__PURE__ */ (0, I.jsx)(Vve, { details: e.details })
}) : null,
e.scope ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: e.scope
}) : null,
- r ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ r ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "neutral",
children: e.surface ? "尚未取得可演示的视频或对应控件。请先添加视频,或跳过后稍后重看。" : "当前页面未显示这个入口,可能尚无内容、没有配置权限或仍在加载。可以跳过,稍后重看。"
}) : null
@@ -48242,14 +48227,14 @@ function Wve({ step: e, position: t, total: n, missing: r, next: i, previous: a,
]
});
}
-function AU(e, t, n) {
+function jU(e, t, n) {
let r = document.createElement("div");
e.replaceChildren(r, t);
let i = (0, zt.createRoot)(r);
- return (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(Wve, { ...n }))), () => i.unmount();
+ return (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(Hve, { ...n }))), () => i.unmount();
}
// src/react/onboarding/tutorial-center.tsx
-function Gve({ go: e }) {
+function Uve({ go: e }) {
let [t, n] = (0, F.useState)(null), [r, i] = (0, F.useState)(""), [a, o] = (0, F.useState)(0);
(0, F.useEffect)(() => {
let e = new AbortController();
@@ -48263,8 +48248,8 @@ function Gve({ go: e }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, I.jsxs)(wU, {
- icon: wge,
+ /* @__PURE__ */ (0, I.jsxs)(TU, {
+ icon: Cge,
title: "从第一份收藏开始",
description: "连接媒体目录,查看入库结果,再打开馆藏。",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
@@ -48275,7 +48260,7 @@ function Gve({ go: e }) {
children: "连接媒体目录"
})]
}),
- r ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ r ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -48291,7 +48276,7 @@ function Gve({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(NB, {
+ children: /* @__PURE__ */ (0, I.jsx)(PB, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48310,7 +48295,7 @@ function Gve({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(Pge, {
+ children: /* @__PURE__ */ (0, I.jsx)(Nge, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48329,7 +48314,7 @@ function Gve({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(VB, {
+ children: /* @__PURE__ */ (0, I.jsx)(HB, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48347,7 +48332,7 @@ function Gve({ go: e }) {
] })
]
}),
- /* @__PURE__ */ (0, I.jsx)(zH, {
+ /* @__PURE__ */ (0, I.jsx)(BH, {
summary: "更多接入方式",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-routes",
@@ -48356,31 +48341,31 @@ function Gve({ go: e }) {
title: "关注创作者",
description: l ? "当前启用来源的必要凭据已具备。" : s.length ? "已有关注来源,请检查必要凭据。" : "添加想持续追踪的创作者与来源。",
path: "/subscriptions",
- icon: GB
+ icon: KB
},
{
title: "口味与记录",
description: t?.taste.history_sources ? `已导入 ${t.taste.history_sources} 份浏览器历史。` : "按需要导入浏览历史或书签。",
path: "/taste",
- icon: xB
+ icon: CB
},
{
title: "云下载与浏览器添加",
description: "连接渠道、设置目标目录,按需要配对用户脚本。",
path: "/settings/downloads",
- icon: DB
+ icon: kB
},
{
title: "手机访问",
description: "查看访问范围、地址与密码。",
path: "/settings/network",
- icon: JB
+ icon: YB
},
...u ? [{
title: "人工复核",
description: `当前有 ${u.toLocaleString()} 条待复核资料。`,
path: "/review",
- icon: CB
+ icon: TB
}] : []
].map(({ title: t, description: n, path: r, icon: i }) => /* @__PURE__ */ (0, I.jsxs)("div", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -48407,16 +48392,16 @@ function Gve({ go: e }) {
]
});
}
-var jU = "tutorial-sync";
-function Kve({ actions: e }) {
- let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(!1), [a, o] = (0, F.useState)("interface"), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(wve), [d, f] = (0, F.useState)(!1), [p, m] = (0, F.useState)(""), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(!1), y = BV(), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(0), C = (0, F.useRef)(l);
+var MU = "tutorial-sync";
+function Wve({ actions: e }) {
+ let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(!1), [a, o] = (0, F.useState)("interface"), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(Cve), [d, f] = (0, F.useState)(!1), [p, m] = (0, F.useState)(""), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(!1), y = VV(), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(0), C = (0, F.useRef)(l);
C.current = l;
let w = (0, F.useRef)(0), T = (0, F.useRef)(null), E = (0, F.useRef)(""), D = (0, F.useRef)(!1), O = (0, F.useRef)(() => {}), k = (0, F.useRef)(Promise.resolve()), A = (0, F.useRef)(0), j = (0, F.useRef)(0), M = (0, F.useRef)(!0), ee = (e) => {
C.current = e, u(e);
}, N = async (e = !0) => {
let t = j.current;
try {
- let n = await Eve();
+ let n = await Tve();
return !M.current || t !== j.current ? !1 : (ee(n), f(!0), e && m(""), b.current || i(!n.invited && !n.completed), !0);
} catch {
return M.current && m("未取得账本中的教程状态,请重新读取。"), !1;
@@ -48426,7 +48411,7 @@ function Kve({ actions: e }) {
let n = ++j.current;
A.current += 1, k.current = k.current.then(async () => {
try {
- let r = await Dve(e.campaign, t);
+ let r = await Eve(e.campaign, t);
M.current && n === j.current && ee(r);
} catch {
M.current && (m("教程进度未保存到本机账本,其他设备尚未同步。请重新读取后继续。"), n === j.current && await N(!1));
@@ -48436,8 +48421,8 @@ function Kve({ actions: e }) {
});
}, P = (0, F.useRef)(N);
P.current = N, (0, F.useEffect)(() => {
- !p || t ? GV.dismiss(jU) : GV.error(p, {
- id: jU,
+ !p || t ? KV.dismiss(MU) : KV.error(p, {
+ id: MU,
toasterId: "receipts",
duration: Infinity,
action: {
@@ -48448,7 +48433,7 @@ function Kve({ actions: e }) {
}
});
}, [p, t]), (0, F.useEffect)(() => () => {
- GV.dismiss(jU);
+ KV.dismiss(MU);
}, []), (0, F.useEffect)(() => {
if (!d && !p) return;
let e = document.getElementById("tutorialBtn");
@@ -48469,7 +48454,7 @@ function Kve({ actions: e }) {
let i = !1, a = null;
return import("./peach-app.guide-driver-BZX0VpRC.js").then(({ createGuideSession: t }) => {
i || (a = t({
- mountPopover: AU,
+ mountPopover: jU,
invitation: !0,
navigate: e.navigate,
previous: () => {},
@@ -48508,12 +48493,12 @@ function Kve({ actions: e }) {
D.current = !1;
});
document.addEventListener("input", e), document.addEventListener("change", e);
- let r = kve((e) => {
+ let r = Ove((e) => {
(async () => {
let t = document.activeElement;
if (await k.current, !M.current || !await N() || e.invitation) return;
ie(), T.current = t, g(""), c("");
- let r = vU.find((t) => t.id === e.chapter);
+ let r = yU.find((t) => t.id === e.chapter);
e.reopen ? (i(!1), te({
...C.current,
invited: !0,
@@ -48546,7 +48531,7 @@ function Kve({ actions: e }) {
g("请先关闭正在播放的小窗,再开始播放器导览。");
return;
}
- let i = r ? Tve(C.current, t) : 0;
+ let i = r ? wve(C.current, t) : 0;
if (D.current && t.steps.some((e) => e.route && e.route !== location.pathname)) {
g("当前配置表单有编辑内容。请先处理表单,再开启需要切换页面的章节。");
return;
@@ -48580,7 +48565,7 @@ function Kve({ actions: e }) {
}), b.current?.show(t.steps[w.current], w.current, t.steps.length);
};
b.current = r({
- mountPopover: AU,
+ mountPopover: jU,
navigate: e.navigate,
close: () => {
ie(!0), o(t.kind);
@@ -48591,18 +48576,18 @@ function Kve({ actions: e }) {
},
next: async (e = !1) => {
let n = w.current + 1;
- if (te(Ove(C.current, t.id, t.steps[w.current].id, n, e), {
+ if (te(Dve(C.current, t.id, t.steps[w.current].id, n, e), {
action: "step",
chapter: t.id,
step: t.steps[w.current].id,
next: n,
skipped: e
}), n >= t.steps.length) {
- if (t.id === "basics" && yU(C.current, t) && te({
+ if (t.id === "basics" && bU(C.current, t) && te({
...C.current,
completed: !0
}, { action: "complete" }), await k.current, a !== S.current) return;
- ie(!0), o(t.kind), g(yU(C.current, t) ? t.id === "basics" ? C.current.completed ? "快速导览已完成,所有设备的教程入口都会收起。以后可到设置 → Peach 配置 → 应用与维护 → 新手教程重新打开,其余内容按需查看。" : "导览已结束,但完成状态未保存。请重新读取教程状态后再试。" : "这段导览已完成。需要时再了解其他功能。" : "本章已结束,未显示的步骤尚未完成,可以稍后继续。");
+ ie(!0), o(t.kind), g(bU(C.current, t) ? t.id === "basics" ? C.current.completed ? "快速导览已完成,所有设备的教程入口都会收起。以后可到设置 → Peach 配置 → 应用与维护 → 新手教程重新打开,其余内容按需查看。" : "导览已结束,但完成状态未保存。请重新读取教程状态后再试。" : "这段导览已完成。需要时再了解其他功能。" : "本章已结束,未显示的步骤尚未完成,可以稍后继续。");
} else w.current = n, l();
}
}), l();
@@ -48615,8 +48600,8 @@ function Kve({ actions: e }) {
O.current = (e, t) => {
se(e, t);
};
- let ce = Cve(location.pathname);
- return (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: /* @__PURE__ */ (0, I.jsxs)(cV, {
+ let ce = Sve(location.pathname);
+ return (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: /* @__PURE__ */ (0, I.jsxs)(lV, {
isOpen: t,
onOpenChange: (e) => {
e || ae();
@@ -48631,18 +48616,18 @@ function Kve({ actions: e }) {
id: "guideTitle",
className: "text-title-2-medium text-text-primary",
children: "新手教程"
- }), /* @__PURE__ */ (0, I.jsx)(mV, {
+ }), /* @__PURE__ */ (0, I.jsx)(hV, {
label: "关闭新手教程",
onPress: ae
})]
}),
/* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-tools flex shrink-0 flex-col gap-4 px-6 pt-4 pb-3",
- children: /* @__PURE__ */ (0, I.jsx)(rU, {
+ children: /* @__PURE__ */ (0, I.jsx)(iU, {
"aria-label": "教程路径",
name: "guide-path",
orientation: "horizontal",
- className: iU,
+ className: aU,
value: a,
onChange: (e) => {
o(e), c(""), g("");
@@ -48651,9 +48636,9 @@ function Kve({ actions: e }) {
["start", "开始使用"],
["interface", "界面导览"],
["settings", "设置导览"]
- ].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Mz, {
+ ].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Pz, {
value: e,
- className: aU,
+ className: oU,
children: t
}, e))
})
@@ -48664,7 +48649,7 @@ function Kve({ actions: e }) {
ref: y,
className: "peach-guide-body",
children: [
- p ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ p ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
className: "mb-4",
action: /* @__PURE__ */ (0, I.jsx)(J, {
@@ -48676,12 +48661,12 @@ function Kve({ actions: e }) {
}),
children: p
}) : null,
- h ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ h ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "neutral",
className: "mb-4",
children: h
}) : null,
- a === "start" ? /* @__PURE__ */ (0, I.jsx)(Gve, { go: oe }) : /* @__PURE__ */ (0, I.jsx)(Bve, {
+ a === "start" ? /* @__PURE__ */ (0, I.jsx)(Uve, { go: oe }) : /* @__PURE__ */ (0, I.jsx)(zve, {
kind: a,
query: s,
setQuery: c,
@@ -48699,15 +48684,15 @@ function Kve({ actions: e }) {
}) }), document.body);
}
// src/react/client-updates.tsx
-var qve = 12e4, Jve = 15e3, MU = () => document.visibilityState !== "hidden", NU = /* @__PURE__ */ new Set([
+var Gve = 12e4, Kve = 15e3, NU = () => document.visibilityState !== "hidden", PU = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), PU = "/settings/maintenance#releaseUpdates";
-function Yve() {
+]), FU = "/settings/maintenance#releaseUpdates";
+function qve() {
try {
let e = JSON.parse(document.getElementById("peach-client-runtime")?.textContent || "null");
return typeof e?.version == "string" && typeof e?.build_id == "string" ? {
@@ -48718,23 +48703,23 @@ function Yve() {
return null;
}
}
-function FU() {
- let e = (0, F.useRef)(Yve()), [t, n] = (0, F.useState)(null);
+function IU() {
+ let e = (0, F.useRef)(qve()), [t, n] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
let t = !1, r, i, a = async () => {
- if (t || !MU()) return;
+ if (t || !NU()) return;
let o = new AbortController();
i = o;
- let s = setTimeout(() => o.abort(), Jve);
+ let s = setTimeout(() => o.abort(), Kve);
o.signal.addEventListener("abort", () => clearTimeout(s), { once: !0 });
try {
let r = await B("/api/client-updates", o.signal);
!t && !o.signal.aborted && typeof r?.runtime?.version == "string" && typeof r.runtime.build_id == "string" && (e.current ??= { ...r.runtime }, n(r));
} catch {} finally {
- clearTimeout(s), i === o && (i = void 0, !t && MU() && (r = setTimeout(a, qve)));
+ clearTimeout(s), i === o && (i = void 0, !t && NU() && (r = setTimeout(a, Gve)));
}
}, o = () => {
- clearTimeout(r), i?.abort(), i = void 0, MU() && a();
+ clearTimeout(r), i?.abort(), i = void 0, NU() && a();
};
return document.addEventListener("visibilitychange", o), document.addEventListener("peach:client-updates", o), a(), () => {
t = !0, clearTimeout(r), i?.abort(), document.removeEventListener("visibilitychange", o), document.removeEventListener("peach:client-updates", o);
@@ -48744,12 +48729,12 @@ function FU() {
refresh: !!t && !!e.current && (t.runtime.version !== e.current.version || t.runtime.build_id !== e.current.build_id)
};
}
-function Xve({ navigate: e }) {
- let { snapshot: t, refresh: n } = FU(), [r, i] = (0, F.useState)(""), a = document.querySelector("[data-network-banner]");
+function Jve({ navigate: e }) {
+ let { snapshot: t, refresh: n } = IU(), [r, i] = (0, F.useState)(""), a = document.querySelector("[data-network-banner]");
if (!t || !a) return null;
- let { release: o, update_job: s, runtime: c } = t, l = n ? "refresh" : s.state === "ready" ? "ready" : NU.has(s.state) ? "preparing" : o.state === "available" && o.latest_version ? "available" : null;
+ let { release: o, update_job: s, runtime: c } = t, l = n ? "refresh" : s.state === "ready" ? "ready" : PU.has(s.state) ? "preparing" : o.state === "available" && o.latest_version ? "available" : null;
if (!l) return null;
- let u = (s.state === "ready" || NU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
+ let u = (s.state === "ready" || PU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
l,
c.version,
c.build_id
@@ -48772,22 +48757,22 @@ function Xve({ navigate: e }) {
children: [" Peach ", u]
}) : null] })] }), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex-wrap",
- children: [l === "refresh" ? /* @__PURE__ */ (0, I.jsx)(mH, {
+ children: [l === "refresh" ? /* @__PURE__ */ (0, I.jsx)(hH, {
variant: "secondary",
size: "small",
onClick: () => window.location.reload(),
"data-copy-key": "clientUpdates.refresh.action",
children: "刷新页面"
- }) : /* @__PURE__ */ (0, I.jsx)(mH, {
+ }) : /* @__PURE__ */ (0, I.jsx)(hH, {
variant: "secondary",
size: "small",
- href: PU,
+ href: FU,
onClick: (t) => {
- t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(PU));
+ t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(FU));
},
"data-copy-key": `clientUpdates.${l}.action`,
children: l === "preparing" ? "查看进度" : "查看更新"
- }), /* @__PURE__ */ (0, I.jsx)(mH, {
+ }), /* @__PURE__ */ (0, I.jsx)(hH, {
variant: "secondary",
size: "small",
onClick: () => i(d),
@@ -48798,7 +48783,7 @@ function Xve({ navigate: e }) {
}, d), a);
}
// src/react/router/pages/settings.tsx
-function Zve() {
+function Yve() {
let e = (0, F.useContext)($W), { pathname: t } = ef();
return (0, F.useEffect)(() => {
e?.openSettings?.(Nf(t));
@@ -48809,7 +48794,7 @@ function Zve() {
}, [e]), null;
}
// src/junk-queue.ts
-var IU = [
+var LU = [
[
"",
"全部",
@@ -48845,40 +48830,40 @@ var IU = [
"其它",
"hard-drive"
]
-], Qve = (e) => IU.find(([t]) => t === e)?.[0] ?? "";
-function LU(e) {
+], Xve = (e) => LU.find(([t]) => t === e)?.[0] ?? "";
+function RU(e) {
let t = new URLSearchParams(e);
return {
- kind: Qve(t.get("type")),
+ kind: Xve(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
-function RU(e = "", t = "pending") {
+function zU(e = "", t = "pending") {
let n = new URLSearchParams();
e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");
let r = n.toString();
return `/junk-files${r ? `?${r}` : ""}`;
}
-function zU(e) {
+function BU(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: RU("", "pending")
+ href: zU("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: RU("", "dismissed")
+ href: zU("", "dismissed")
};
}
-var BU = (e) => e === "dismissed" ? "已排除" : "待判断", VU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function $ve({ kind: e, view: t }) {
- let n = IU.map(([n, r, i]) => `<a href="${RU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${VU(i)}${z(r)}</a>`).join(""), r = zU(t);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Is(BU(t))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${VU(r.glyph)}${r.label}</a></nav></div></div></div>`;
+var VU = (e) => e === "dismissed" ? "已排除" : "待判断", HU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
+function Zve({ kind: e, view: t }) {
+ let n = LU.map(([n, r, i]) => `<a href="${zU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${HU(i)}${z(r)}</a>`).join(""), r = BU(t);
+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Is(VU(t))}</div><div data-junk-filters-frame="" data-filter-glass="" data-glass-pane=""><span data-view-glide="" aria-hidden="true" hidden></span><nav data-junk-filters="" aria-label="垃圾文件分类">${n}<i data-junk-divider="" aria-hidden="true"></i><a href="${r.href}" data-junk-view-link="${r.view}"${t === "dismissed" ? " aria-current=\"page\"" : ""}>${HU(r.glyph)}${r.label}</a></nav></div></div></div>`;
}
// src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function eye(e, t, n) {
+function Qve(e, t, n) {
(0, F.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -48892,7 +48877,7 @@ function eye(e, t, n) {
n
]);
}
-function tye(e, t) {
+function $ve(e, t) {
let n = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
if (!e) return;
@@ -48905,33 +48890,33 @@ function tye(e, t) {
}, [e, t]), (e) => e && n.current ? (n.current = !1, !1) : !0;
}
// src/react/boardui/components/base/select/select.tsx
-var HU = (0, F.createContext)("md");
-function UU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var UU = (0, F.createContext)("md");
+function WU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, F.useRef)(null), u = (0, F.useRef)(null), [d, f] = (0, F.useState)(!1);
- eye(d, () => f(!1), [l, u]);
- let p = tye(d, l);
- return /* @__PURE__ */ (0, I.jsx)(Lme, {
+ Qve(d, () => f(!1), [l, u]);
+ let p = $ve(d, l);
+ return /* @__PURE__ */ (0, I.jsx)(Fme, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
className: q("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(RL, {
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(BL, {
ref: l,
className: q("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
- children: [/* @__PURE__ */ (0, I.jsx)(Bme, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Rme, {
className: q("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, I.jsx)(Wge, { className: q("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, I.jsx)(dz, {
+ }), /* @__PURE__ */ (0, I.jsx)(Uge, { className: q("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, I.jsx)(pz, {
ref: u,
isNonModal: !0,
offset: 4,
- className: q(qge, MV, "p-2", n),
- children: /* @__PURE__ */ (0, I.jsx)(ame, {
+ className: q(Kge, NV, "p-2", n),
+ children: /* @__PURE__ */ (0, I.jsx)(rme, {
items: a,
- className: q(Jge, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, I.jsx)(HU.Provider, {
+ className: q(qge, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, I.jsx)(UU.Provider, {
value: r,
children: i
})
@@ -48939,16 +48924,16 @@ function UU({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function WU({ className: e, children: t, ...n }) {
- let r = (0, F.useContext)(HU);
- return /* @__PURE__ */ (0, I.jsx)(cme, {
+function GU({ className: e, children: t, ...n }) {
+ let r = (0, F.useContext)(UU);
+ return /* @__PURE__ */ (0, I.jsx)(ome, {
...n,
- className: (t) => q(NV, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
+ className: (t) => q(PV, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
children: t
});
}
// src/react/boardui/components/base/badges/chip.tsx
-var GU = NI({
+var KU = FI({
base: "inline-flex items-center justify-center rounded-md px-1.5 whitespace-nowrap transition-[padding,font-size] duration-200 ease",
variant: {
bold: "py-0.5 text-body-medium",
@@ -48967,15 +48952,15 @@ var GU = NI({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function KU({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function qU({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
ref: r,
- className: q(GU.base, GU.variant[e], GU.color[t], n),
+ className: q(KU.base, KU.variant[e], KU.color[t], n),
...i
});
}
// src/react/components/art-slot.tsx
-function qU({ artwork: e, identity: t = e.html, relayout: n }) {
+function JU({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, F.useState)({
identity: t,
artwork: e
@@ -48994,7 +48979,7 @@ function qU({ artwork: e, identity: t = e.html, relayout: n }) {
});
}
// src/react/activity/downloads-panel.tsx
-var JU = "/api/downloads", YU = ["downloads"], nye = "/api/downloads/cancel", rye = "/api/downloads/postprocess", XU = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, iye = {
+var YU = "/api/downloads", XU = ["downloads"], eye = "/api/downloads/cancel", tye = "/api/downloads/postprocess", ZU = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, nye = {
ingested: "lime",
failed: "rose",
cancelled: "neutral",
@@ -49003,21 +48988,21 @@ var JU = "/api/downloads", YU = ["downloads"], nye = "/api/downloads/cancel", ry
remote_done: "lime",
landed: "lime",
submitted: "neutral"
-}, ZU = (e) => {
- let t = e.display_code || e.code || "", { title: n } = BI({
+}, QU = (e) => {
+ let t = e.display_code || e.code || "", { title: n } = HI({
is_jav: !!t,
code: t,
name: e.display_title ?? e.title ?? e.display_name ?? e.remote_name
});
return [t, n].filter(Boolean).join(" · ") || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`;
-}, QU = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", aye = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
-function oye() {
+}, $U = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", rye = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
+function iye() {
let e = (0, F.useId)(), t = Lt({
- queryKey: [...YU, "pages"],
+ queryKey: [...XU, "pages"],
initialPageParam: null,
- queryFn: ({ signal: e, pageParam: t }) => B(`${JU}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
+ queryFn: ({ signal: e, pageParam: t }) => B(`${YU}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
getNextPageParam: (e) => e.has_more ? e.next_before_id ?? void 0 : void 0,
- refetchInterval: (e) => e.state.data?.pages.some((e) => XU(e) === 5e3) ? 5e3 : 3e4
+ refetchInterval: (e) => e.state.data?.pages.some((e) => ZU(e) === 5e3) ? 5e3 : 3e4
}), n = t.data?.pages || [], r = [...new Map(n.flatMap((e) => e.tasks).map((e) => [e.id, e])).values()];
return !r.length && !t.error ? null : /* @__PURE__ */ (0, I.jsxs)("section", {
id: "cloudDownloads",
@@ -49029,14 +49014,14 @@ function oye() {
className: "text-title-2-medium text-text-primary",
children: "云下载"
}),
- t.error ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ t.error ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
children: lr(t.error)
}) : null,
r.length ? /* @__PURE__ */ (0, I.jsx)("ul", {
"aria-live": "polite",
className: "flex min-w-0 flex-col gap-3",
- children: r.map((e) => /* @__PURE__ */ (0, I.jsx)(sye, {
+ children: r.map((e) => /* @__PURE__ */ (0, I.jsx)(aye, {
task: e,
writable: n[0]?.available ?? !1
}, e.id))
@@ -49044,9 +49029,9 @@ function oye() {
t.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: _B,
+ leadingIcon: yB,
className: "self-start",
- ...hV(t.isFetchingNextPage),
+ ...gV(t.isFetchingNextPage),
onClick: () => {
t.isFetching || t.fetchNextPage();
},
@@ -49055,16 +49040,16 @@ function oye() {
]
});
}
-function sye({ task: e, writable: t }) {
- rL();
- let n = ae(), r = hH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = QU(e) || (e.cancellable && e.failure_detail ? `稍后自动重试 · ${e.failure_detail}` : ""), u = e.artwork, d = u?.performer_entities || [], f = e.state === "ingested" && e.asset_id ? `/assets/${e.asset_id}` : void 0, p = e.state === "failed" || e.postprocess_state === "failed", m = [
+function aye({ task: e, writable: t }) {
+ aL();
+ let n = ae(), r = gH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = $U(e) || (e.cancellable && e.failure_detail ? `稍后自动重试 · ${e.failure_detail}` : ""), u = e.artwork, d = u?.performer_entities || [], f = e.state === "ingested" && e.asset_id ? `/assets/${e.asset_id}` : void 0, p = e.state === "failed" || e.postprocess_state === "failed", m = [
e.display_code || e.code ? "" : "番号未识别",
e.target,
- tL(e.submitted_at)
+ rL(e.submitted_at)
].filter(Boolean).join(" · "), h = () => {
- n.invalidateQueries({ queryKey: YU });
+ n.invalidateQueries({ queryKey: XU });
}, g = () => {
- r.run("cancel", (t) => V(nye, { id: e.id }, "POST", t), h);
+ r.run("cancel", (t) => V(eye, { id: e.id }, "POST", t), h);
}, _ = () => {
let t = {
magnet: e.source_uri,
@@ -49074,16 +49059,16 @@ function sye({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => V(JU, t, "POST", e), h);
+ r.run("resubmit", (e) => V(YU, t, "POST", e), h);
}, v = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
}, y = () => {
- r.run("postprocess", (t) => V(rye, { id: e.id }, "POST", t), h);
+ r.run("postprocess", (t) => V(tye, { id: e.id }, "POST", t), h);
};
return /* @__PURE__ */ (0, I.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: CU({
+ className: wU({
padding: "none",
bordered: p ? "error" : void 0,
className: "flex flex-col"
@@ -49094,14 +49079,14 @@ function sye({ task: e, writable: t }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-download-cover": "",
"data-media-pic": "",
- style: { "--card-ratio": String(fM) },
+ style: { "--card-ratio": String(pM) },
className: "w-20 shrink-0 self-start text-caption-1-regular text-text-secondary sm:w-32",
children: [
u?.has_cover ? null : /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-nopic": "",
children: "无封面"
}),
- u?.has_cover ? /* @__PURE__ */ (0, I.jsx)(qU, {
+ u?.has_cover ? /* @__PURE__ */ (0, I.jsx)(JU, {
artwork: {
kind: "cover",
html: So(u, "big")
@@ -49111,7 +49096,7 @@ function sye({ task: e, writable: t }) {
f ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-download-cover-link": "",
href: f,
- "aria-label": `打开作品详情:${ZU(e)}`,
+ "aria-label": `打开作品详情:${QU(e)}`,
className: "absolute inset-0 z-1 rounded-lg outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring"
}) : null
]
@@ -49122,19 +49107,19 @@ function sye({ task: e, writable: t }) {
className: "flex min-w-0 flex-col items-start gap-1 sm:flex-row sm:items-center sm:gap-2",
children: [/* @__PURE__ */ (0, I.jsx)("strong", {
className: "min-w-0 w-full flex-1 truncate text-title-1-medium text-text-primary sm:w-auto",
- title: ZU(e),
+ title: QU(e),
children: f ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-download-title-link": "",
href: f,
className: "block truncate rounded-sm outline-none hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring",
- children: ZU(e)
- }) : ZU(e)
+ children: QU(e)
+ }) : QU(e)
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(KU, {
- color: iye[e.state] ?? "neutral",
+ children: [/* @__PURE__ */ (0, I.jsx)(qU, {
+ color: nye[e.state] ?? "neutral",
children: e.state_label
- }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(KU, {
+ }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(qU, {
color: e.postprocess_state === "complete" ? "lime" : e.postprocess_state === "failed" ? "rose" : e.postprocess_state === "running" ? "blue" : "neutral",
children: e.postprocess_label
}) : null]
@@ -49144,7 +49129,7 @@ function sye({ task: e, writable: t }) {
className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "flex shrink-0",
- children: /* @__PURE__ */ (0, I.jsx)(UH, {
+ children: /* @__PURE__ */ (0, I.jsx)(WH, {
source: e.provider,
label: e.provider_label
})
@@ -49171,7 +49156,7 @@ function sye({ task: e, writable: t }) {
children: [d.map((e) => nn("performer", e.name, e.id)).join("、"), (u?.performer_total || 0) > d.length ? ` 等 ${u.performer_total} 人` : ""]
})]
}) : null,
- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, I.jsx)(kH, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, I.jsx)(AH, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -49181,7 +49166,7 @@ function sye({ task: e, writable: t }) {
title: e.ledger_path,
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, I.jsx)(LH, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, I.jsx)(RH, { children: r.error }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-download-actions": "",
className: "flex flex-wrap items-center gap-2 pt-1 sm:mt-auto",
@@ -49206,21 +49191,21 @@ function sye({ task: e, writable: t }) {
e.cancellable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...hV(r.busy === "cancel"),
+ ...gV(r.busy === "cancel"),
onClick: g,
children: "取消"
}) : null,
e.resubmittable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...hV(r.busy === "resubmit"),
+ ...gV(r.busy === "resubmit"),
onClick: _,
children: "重新提交"
}) : null,
e.postprocess_retryable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...hV(r.busy === "postprocess"),
+ ...gV(r.busy === "postprocess"),
onClick: y,
children: "重试入库后整理"
}) : null
@@ -49235,37 +49220,37 @@ function sye({ task: e, writable: t }) {
id: c,
"data-download-title-full": !0,
className: "wrap-anywhere px-5 pb-4 text-body-2-regular text-text-secondary",
- children: ZU(e)
+ children: QU(e)
}) : null,
l || e.postprocess_detail ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",
children: /* @__PURE__ */ (0, I.jsx)("p", {
className: "wrap-anywhere text-caption-1-regular text-text-secondary",
- children: l || aye(e)
+ children: l || rye(e)
})
}) : null
]
});
}
// src/react/activity/work-code.ts
-var $U = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), eW = (e, t) => !!$U(e) && $U(e) === $U(t);
+var eW = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), tW = (e, t) => !!eW(e) && eW(e) === eW(t);
// src/react/components/ime.ts
-function tW(e) {
+function nW(e) {
return e.isComposing || e.keyCode === 229;
}
// src/react/activity/resource-search.tsx
-function cye({ className: e }) {
+function oye({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: Bs("") }
});
}
-function lye(e) {
+function sye(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
-function uye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
- let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => lye(t)), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(null), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), y = hH(), b = (0, F.useRef)(null);
+function cye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
+ let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => sye(t)), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(null), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), y = gH(), b = (0, F.useRef)(null);
(0, F.useEffect)(() => () => b.current?.abort(), []);
let x = () => {
if (!a.trim() || y.busy) return;
@@ -49281,7 +49266,7 @@ function uye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
let e = new AbortController();
b.current = e, B(`/api/items?jav=1&q=${encodeURIComponent(t)}&limit=10`, e.signal).then((n) => {
if (e.signal.aborted) return;
- let r = (n.items || []).find((e) => eW(e.code, t));
+ let r = (n.items || []).find((e) => tW(e.code, t));
i(r ? {
code: r.code,
title: String(r.catalog_title || r.name || ""),
@@ -49302,28 +49287,28 @@ function uye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
"aria-busy": !!y.busy,
className: "flex min-w-0 flex-col gap-4",
children: [
- t ? /* @__PURE__ */ (0, I.jsxs)(IH, { children: [
+ t ? /* @__PURE__ */ (0, I.jsxs)(LH, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, I.jsx)(sV, {
+ /* @__PURE__ */ (0, I.jsx)(cV, {
label: "按番号查找资源",
value: a,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
enterKeyHint: "search",
- leadingIcon: y.busy ? cye : KB,
+ leadingIcon: y.busy ? oye : qB,
isReadOnly: !!y.busy,
"aria-busy": !!y.busy,
onChange: o,
onKeyDown: (e) => {
- e.key === "Enter" && !tW(e.nativeEvent) && (e.preventDefault(), x());
+ e.key === "Enter" && !nW(e.nativeEvent) && (e.preventDefault(), x());
}
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, I.jsx)(RH, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(UU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(zH, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(WU, {
"aria-label": "优先寻找",
selectedKey: s,
isDisabled: !!y.busy,
@@ -49331,15 +49316,15 @@ function uye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
e !== null && c(String(e));
},
children: [
- /* @__PURE__ */ (0, I.jsx)(WU, {
+ /* @__PURE__ */ (0, I.jsx)(GU, {
id: "quality",
children: "高清"
}),
- /* @__PURE__ */ (0, I.jsx)(WU, {
+ /* @__PURE__ */ (0, I.jsx)(GU, {
id: "chinese",
children: "中字"
}),
- /* @__PURE__ */ (0, I.jsx)(WU, {
+ /* @__PURE__ */ (0, I.jsx)(GU, {
id: "uncensored",
children: "无码"
})
@@ -49348,32 +49333,32 @@ function uye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex gap-3 max-sm:flex-col",
- children: [/* @__PURE__ */ (0, I.jsx)(sV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(cV, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
- }), /* @__PURE__ */ (0, I.jsx)(sV, {
+ }), /* @__PURE__ */ (0, I.jsx)(cV, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: d,
onChange: f
})]
}),
- y.busy ? /* @__PURE__ */ (0, I.jsx)(IH, {
+ y.busy ? /* @__PURE__ */ (0, I.jsx)(LH, {
role: "status",
children: "正在搜索资源"
}) : null,
- y.error ? /* @__PURE__ */ (0, I.jsx)(LH, { children: y.error }) : null,
- p?.error ? /* @__PURE__ */ (0, I.jsx)(IH, {
+ y.error ? /* @__PURE__ */ (0, I.jsx)(RH, { children: y.error }) : null,
+ p?.error ? /* @__PURE__ */ (0, I.jsx)(LH, {
role: "status",
children: p.error
}) : null,
- p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(IH, {
+ p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(LH, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(IH, { children: e }, e)),
+ p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(LH, { children: e }, e)),
p?.items.length ? /* @__PURE__ */ (0, I.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: p.items.map((e) => /* @__PURE__ */ (0, I.jsxs)("li", {
@@ -49383,7 +49368,7 @@ function uye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
className: "break-words text-body-2-medium text-text-primary",
children: e.name
}),
- /* @__PURE__ */ (0, I.jsx)(IH, { children: [
+ /* @__PURE__ */ (0, I.jsx)(LH, { children: [
e.size > 0 ? `${(e.size / 1024 ** 3).toFixed(2)} GiB` : "体积未取得",
e.seeders >= 0 ? `${e.seeders} 个做种` : "做种未取得",
e.resolution ? `${e.resolution}p` : "",
@@ -49407,19 +49392,19 @@ function uye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
});
}
// src/react/activity/cloud-download-dialog.tsx
-var dye = {
+var lye = {
submitted: "已提交离线下载,进度在任务中心",
adopted: "这个磁力已有任务,没有重复提交",
adopted_remote: "网盘中已有相同的下载任务,Peach 已开始跟踪进度"
};
-function nW({ prefill: e, close: t, receipt: n, provider: r }) {
- return /* @__PURE__ */ (0, I.jsx)(cV, {
+function rW({ prefill: e, close: t, receipt: n, provider: r }) {
+ return /* @__PURE__ */ (0, I.jsx)(lV, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
},
width: "form",
- children: e ? /* @__PURE__ */ (0, I.jsx)(fye, {
+ children: e ? /* @__PURE__ */ (0, I.jsx)(uye, {
prefill: e,
close: t,
receipt: n,
@@ -49427,26 +49412,26 @@ function nW({ prefill: e, close: t, receipt: n, provider: r }) {
}) : null
});
}
-function fye({ prefill: e, close: t, receipt: n, provider: r }) {
+function uye({ prefill: e, close: t, receipt: n, provider: r }) {
let i = Ft({
- queryKey: YU,
- queryFn: ({ signal: e }) => B(`${JU}?limit=50`, e),
- refetchInterval: (e) => XU(e.state.data)
+ queryKey: XU,
+ queryFn: ({ signal: e }) => B(`${YU}?limit=50`, e),
+ refetchInterval: (e) => ZU(e.state.data)
}), a = i.data, o = /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex items-center justify-between gap-4 px-5 pt-5",
- children: [/* @__PURE__ */ (0, I.jsx)(BL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(HL, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "查找资源"
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: wB,
+ leadingIcon: EB,
"aria-label": "关闭资源面板",
onClick: t
})]
});
- return a ? /* @__PURE__ */ (0, I.jsx)(pye, {
+ return a ? /* @__PURE__ */ (0, I.jsx)(dye, {
header: o,
snapshot: a,
prefill: e,
@@ -49459,7 +49444,7 @@ function fye({ prefill: e, close: t, receipt: n, provider: r }) {
o,
/* @__PURE__ */ (0, I.jsx)("div", {
className: "flex min-h-0 flex-col gap-4 overflow-y-auto p-5",
- children: i.error ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ children: i.error ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
children: lr(i.error)
}) : null
@@ -49475,8 +49460,8 @@ function fye({ prefill: e, close: t, receipt: n, provider: r }) {
]
});
}
-function pye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
- let o = ae(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, F.useState)(c?.key || ""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(n.code ?? ""), [h, g] = (0, F.useState)(c?.target || ""), [_, v] = (0, F.useState)(n.code ? n : null), [y, b] = (0, F.useState)(""), x = t.available && s.some((e) => e.key === l), S = hH(), C = (0, F.useRef)(null), w = (e) => {
+function dye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
+ let o = ae(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, F.useState)(c?.key || ""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(n.code ?? ""), [h, g] = (0, F.useState)(c?.target || ""), [_, v] = (0, F.useState)(n.code ? n : null), [y, b] = (0, F.useState)(""), x = t.available && s.some((e) => e.key === l), S = gH(), C = (0, F.useRef)(null), w = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
return /* @__PURE__ */ (0, I.jsxs)("form", {
@@ -49492,14 +49477,14 @@ function pye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
title: _?.title,
origin: _?.origin
};
- b(""), S.run("submit", (e) => V(JU, t, "POST", e), (e) => {
- o.invalidateQueries({ queryKey: YU });
- let t = dye[e.outcome];
+ b(""), S.run("submit", (e) => V(YU, t, "POST", e), (e) => {
+ o.invalidateQueries({ queryKey: XU });
+ let t = lye[e.outcome];
if (e.ok && t) {
i(t), r();
return;
}
- let n = QU(e.task);
+ let n = $U(e.task);
b(e.outcome === "refused" ? "这个资源被判为违规,不再提交。" : n ? `提交没有成功:${n}` : "提交没有成功。");
});
},
@@ -49523,7 +49508,7 @@ function pye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
children: [/* @__PURE__ */ (0, I.jsx)("p", {
className: "break-words text-body-medium text-text-primary",
children: _ ? [_.code, _.title].filter(Boolean).join(" · ") : "作品资料未取得"
- }), _ ? /* @__PURE__ */ (0, I.jsx)(IH, { children: [
+ }), _ ? /* @__PURE__ */ (0, I.jsx)(LH, { children: [
_.performers,
_.studio,
_.release_date,
@@ -49531,22 +49516,22 @@ function pye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
].filter(Boolean).join(" · ") }) : null]
})]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(uye, {
+ /* @__PURE__ */ (0, I.jsx)(cye, {
initialCode: n.code ?? "",
reason: n.searchReason,
onSearch: (e) => {
- eW(e, _?.code) || (v(eW(e, n.code) ? n : null), f("")), m(e);
+ tW(e, _?.code) || (v(tW(e, n.code) ? n : null), f("")), m(e);
},
- onWork: (e) => v((t) => e ? eW(t?.code, e.code) ? {
+ onWork: (e) => v((t) => e ? tW(t?.code, e.code) ? {
...t,
...e,
origin: t?.origin || e.origin
- } : e : eW(t?.code, n.code) ? t : null),
+ } : e : tW(t?.code, n.code) ? t : null),
choose: (e, t) => {
f(e), m(t), C.current?.focus();
}
}),
- /* @__PURE__ */ (0, I.jsx)(sV, {
+ /* @__PURE__ */ (0, I.jsx)(cV, {
ref: C,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -49558,38 +49543,38 @@ function pye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-1",
children: [
- /* @__PURE__ */ (0, I.jsx)(RH, { children: "下载到" }),
- /* @__PURE__ */ (0, I.jsx)(UU, {
+ /* @__PURE__ */ (0, I.jsx)(zH, { children: "下载到" }),
+ /* @__PURE__ */ (0, I.jsx)(WU, {
"aria-label": "下载到",
selectedKey: l || null,
isDisabled: !s.length,
onSelectionChange: (e) => {
e !== null && w(String(e));
},
- children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(WU, {
+ children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(GU, {
id: e.key,
textValue: e.label,
- children: /* @__PURE__ */ (0, I.jsx)(UH, {
+ children: /* @__PURE__ */ (0, I.jsx)(WH, {
source: e.key,
label: e.label
})
}, e.key))
}),
- l === "115" ? /* @__PURE__ */ (0, I.jsx)(IH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
+ l === "115" ? /* @__PURE__ */ (0, I.jsx)(LH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
]
}),
- t.available ? null : /* @__PURE__ */ (0, I.jsx)(uV, {
+ t.available ? null : /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "neutral",
children: "云下载只在允许修改数据库的设备上可用。"
}),
- s.length ? null : /* @__PURE__ */ (0, I.jsxs)(uV, {
+ s.length ? null : /* @__PURE__ */ (0, I.jsxs)(dV, {
tone: "neutral",
children: ["尚未配置下载渠道。", /* @__PURE__ */ (0, I.jsx)("a", {
href: "/settings/library?section=%E4%B8%8B%E8%BD%BD%E6%B8%A0%E9%81%93",
children: "下载渠道设置"
})]
}),
- /* @__PURE__ */ (0, I.jsx)(sV, {
+ /* @__PURE__ */ (0, I.jsx)(cV, {
label: "目标目录",
placeholder: "/云下载",
autoComplete: "off",
@@ -49597,17 +49582,17 @@ function pye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: h,
onChange: g
}),
- n.code ? null : /* @__PURE__ */ (0, I.jsx)(sV, {
+ n.code ? null : /* @__PURE__ */ (0, I.jsx)(cV, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
maxLength: 60,
value: p,
onChange: (e) => {
- m(e), eW(e, _?.code) || v(null);
+ m(e), tW(e, _?.code) || v(null);
}
}),
- y || S.error ? /* @__PURE__ */ (0, I.jsx)(LH, { children: y || S.error }) : null
+ y || S.error ? /* @__PURE__ */ (0, I.jsx)(RH, { children: y || S.error }) : null
]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -49619,7 +49604,7 @@ function pye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
}), /* @__PURE__ */ (0, I.jsx)(J, {
type: "submit",
disabled: !d.trim() || !x,
- ...hV(S.busy === "submit"),
+ ...gV(S.busy === "submit"),
children: "提交下载"
})]
})
@@ -49627,18 +49612,18 @@ function pye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
});
}
// src/react/wants/wants.ts
-var rW = "/api/wants", iW = ["wants"], mye = (e) => [
+var iW = "/api/wants", aW = ["wants"], fye = (e) => [
"wants",
"follow",
e
-], hye = [
+], pye = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], aW = (e) => B(rW, e);
-function gye(e, t) {
- H.setQueryData(iW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
+], oW = (e) => B(iW, e);
+function mye(e, t) {
+ H.setQueryData(aW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
...n,
items: n.items.map((n) => n.id === e ? {
...n,
@@ -49646,21 +49631,21 @@ function gye(e, t) {
} : n)
} : n);
}
-var _ye = (e, t) => B(`${rW}?follow=${encodeURIComponent(e)}`, t), oW = (e, t) => V(rW, {
+var hye = (e, t) => B(`${iW}?follow=${encodeURIComponent(e)}`, t), sW = (e, t) => V(iW, {
action: "add",
...e
-}, "POST", t), sW = (e, t) => V(rW, {
+}, "POST", t), cW = (e, t) => V(iW, {
action: "remove",
ids: e
-}, "POST", t), vye = (e, t) => V(rW, {
+}, "POST", t), gye = (e, t) => V(iW, {
action: "reset",
ids: e
-}, "POST", t), cW = () => H.invalidateQueries({ queryKey: iW }), yye = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function bye(e) {
+}, "POST", t), lW = () => H.invalidateQueries({ queryKey: aW }), _ye = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+function vye(e) {
return e.phase === "acquired" ? e.acquired_at ? `入库于 ${e.acquired_at.slice(0, 10)}` : "已入库" : e.phase === "unreleased" ? e.release_date ? `${e.release_date} 发售` : "还没发售" : e.phase === "given_up" ? `查过 ${e.search_count} 次都没找到` : e.fresh ? "新片:查不到也一直留在待找" : e.search_count ? `查过 ${e.search_count} 次` : "还没查过";
}
// src/react/jav/discovery-sorts.ts
-var lW = [
+var uW = [
[
"taste",
"口味",
@@ -49668,7 +49653,7 @@ var lW = [
],
[
"release_date",
- Aj[1],
+ jj[1],
"按发行日期排序"
],
[
@@ -49686,10 +49671,10 @@ var lW = [
"番号",
"按番号排序"
]
-], uW = [
+], dW = [
[
"release_date",
- Aj[1],
+ jj[1],
"按发行日期排序"
],
[
@@ -49713,10 +49698,10 @@ var lW = [
"按口味匹配排序"
]
];
-function xye(e) {
+function yye(e) {
return typeof e == "number" && Number.isFinite(e) ? e.toFixed(3) : "—";
}
-function Sye(e) {
+function bye(e) {
if (typeof e != "number" || !Number.isFinite(e)) return {
score: "—",
label: "资料未取得",
@@ -49741,7 +49726,7 @@ function Sye(e) {
};
}
// src/react/jav/jav.ts
-function Cye(e) {
+function xye(e) {
let t = new URLSearchParams(location.search);
for (let [n, r] of Object.entries(e)) r ? t.set(n, r) : t.delete(n);
kp(location.pathname + (t.size ? `?${t}` : ""), {
@@ -49749,13 +49734,13 @@ function Cye(e) {
state: Op.navigation.location.state
});
}
-var dW = (e, t = "taste", n = "desc") => [
+var fW = (e, t = "taste", n = "desc") => [
"jav-discoveries",
e,
t,
n
];
-function fW(e, t, n = {}) {
+function pW(e, t, n = {}) {
let r = new URLSearchParams({
scope: e,
limit: "100",
@@ -49764,7 +49749,7 @@ function fW(e, t, n = {}) {
});
return n.jobId && r.set("metadata_job_id", n.jobId), n.refreshMetadata && r.set("metadata_refresh", "1"), n.cancelMetadata && r.set("metadata_cancel", "1"), B(`/api/jav/discoveries?${r}`, t);
}
-function pW(e) {
+function mW(e) {
let t = new URLSearchParams(e), n = t.get("sort"), r = t.get("seed") || "";
return {
page: Math.max(1, Math.floor(Number(t.get("page"))) || 1),
@@ -49772,12 +49757,12 @@ function pW(e) {
studio: t.get("studio") || "",
tag: t.get("tag") || "",
q: (t.get("q") || "").trim(),
- sort: n === "random" && r ? "random" : uW.find(([e]) => e === n)?.[0] || "release_date",
+ sort: n === "random" && r ? "random" : dW.find(([e]) => e === n)?.[0] || "release_date",
dir: t.get("dir") === "asc" ? "asc" : "desc",
seed: r
};
}
-var mW = (e) => [
+var hW = (e) => [
"jav-releases",
e.page,
e.performer,
@@ -49788,7 +49773,7 @@ var mW = (e) => [
e.dir,
e.seed
];
-function hW(e, t, n = "") {
+function gW(e, t, n = "") {
let r = new URLSearchParams({
page: String(e.page),
size: "24",
@@ -49804,7 +49789,7 @@ function hW(e, t, n = "") {
]) e[t] && r.set(t, e[t]);
return n && r.set("metadata_job_id", n), B(`/api/jav/releases?${r}`, t);
}
-function wye(e, t, n) {
+function Sye(e, t, n) {
let r = wo({
...e,
is_jav: !0
@@ -49813,40 +49798,40 @@ function wye(e, t, n) {
let i = z(fo(e));
return So(e, t).replace(/ src="[^"]*"/, ` src="${i}" data-jav-image="${e.id}" data-jav-cover="${i}" data-jav-thumb="" data-jav-image-layout="${t}"${t === "big" ? " data-panel-prior=\"1\"" : ""}`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"media-nopic\"");
}
-async function Tye(e, t) {
+async function Cye(e, t) {
if (e === "wants") await H.ensureQueryData({
- queryKey: iW,
- queryFn: () => aW(t),
+ queryKey: aW,
+ queryFn: () => oW(t),
staleTime: 3e4,
revalidateIfStale: !0
});
else if (e === "discover") await H.ensureQueryData({
- queryKey: dW("external"),
- queryFn: () => fW("external", t),
+ queryKey: fW("external"),
+ queryFn: () => pW("external", t),
staleTime: 3e4,
revalidateIfStale: !0
});
else if (e === "releases") {
- let e = pW(location.search);
+ let e = mW(location.search);
await H.ensureQueryData({
- queryKey: mW(e),
- queryFn: () => hW(e, t),
+ queryKey: hW(e),
+ queryFn: () => gW(e, t),
staleTime: 3e4,
revalidateIfStale: !0
});
}
}
// src/react/components/board-tabs.tsx
-function gW({ value: e }) {
+function _W({ value: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-tab-count": "",
className: "ml-1.5 inline-block rounded-sm bg-text-primary/10 px-1 py-px text-caption-1-medium text-text-primary opacity-50",
children: e.toLocaleString()
});
}
-var Eye = "relative flex flex-none cursor-pointer items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring hover:text-text-primary aria-selected:bg-background-tertiary-default aria-selected:text-text-primary max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
-function _W({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
- let a = (0, F.useRef)(null), o = lL(a);
+var wye = "relative flex flex-none cursor-pointer items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring hover:text-text-primary aria-selected:bg-background-tertiary-default aria-selected:text-text-primary max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";
+function vW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
+ let a = (0, F.useRef)(null), o = dL(a);
return (0, F.useLayoutEffect)(() => {
let e = a.current;
e && (() => {
@@ -49855,7 +49840,7 @@ function _W({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
let n = t.offsetLeft, r = n + t.offsetWidth;
n < e.scrollLeft ? e.scrollLeft = n : r > e.scrollLeft + e.clientWidth && (e.scrollLeft = r - e.clientWidth);
})();
- }, [t]), /* @__PURE__ */ (0, I.jsx)(FI, {
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(LI, {
ref: o,
role: "tablist",
"aria-label": n,
@@ -49870,7 +49855,7 @@ function _W({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
},
className: `relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0 ${i}`,
children: e.map((e) => {
- let n = e.symbol ? pV(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? mV(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
@@ -49879,7 +49864,7 @@ function _W({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
"data-pill-selected": i ? "" : void 0,
"data-pill-variant": "gray",
tabIndex: i ? 0 : -1,
- className: Eye,
+ className: wye,
onClick: () => {
i || r(e.value);
},
@@ -49889,7 +49874,7 @@ function _W({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
});
}
// src/react/jav/jav-header.tsx
-function vW({ tab: e, navigate: t, find: n, search: r }) {
+function yW({ tab: e, navigate: t, find: n, search: r }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex w-full flex-col gap-4",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -49908,32 +49893,32 @@ function vW({ tab: e, navigate: t, find: n, search: r }) {
children: "查找资源"
})
]
- }), /* @__PURE__ */ (0, I.jsx)(_W, {
- tabs: cU.map(([e, t]) => ({
+ }), /* @__PURE__ */ (0, I.jsx)(vW, {
+ tabs: lU.map(([e, t]) => ({
value: e,
label: t
})),
value: e,
label: "JAV 分区",
className: "",
- onChange: (e) => t(uU(e))
+ onChange: (e) => t(dU(e))
})]
});
}
-function Dye({ navigate: e, receipt: t }) {
+function Tye({ navigate: e, receipt: t }) {
let [n, r] = (0, F.useState)(null);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(vW, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(yW, {
tab: "library",
navigate: e,
find: () => r({})
- }), /* @__PURE__ */ (0, I.jsx)(nW, {
+ }), /* @__PURE__ */ (0, I.jsx)(rW, {
prefill: n,
close: () => r(null),
receipt: t
})] });
}
// src/react/video-wall/folia/blockReflows.ts
-var Oye = [
+var Eye = [
[
[
{
@@ -53494,7 +53479,7 @@ var Oye = [
}
]
]
-], yW = [
+], bW = [
[
{
x: 0,
@@ -53791,26 +53776,26 @@ var Oye = [
rows: 2
}
]
-], bW = (e) => e.map((e) => ({
+], xW = (e) => e.map((e) => ({
...e,
x: 12 - e.x - e.cols
-})), xW = (e) => e.map((e) => ({
+})), SW = (e) => e.map((e) => ({
...e,
y: 8 - e.y - e.rows
-})), SW = [
+})), CW = [
(e) => e,
- bW,
xW,
- (e) => bW(xW(e))
-], CW = yW.flatMap((e) => SW.map((t) => t(e))), kye = Oye.flatMap((e) => SW.map((t) => e.map(t)));
-CW.length;
-var wW = (e, t) => {
+ SW,
+ (e) => xW(SW(e))
+], wW = bW.flatMap((e) => CW.map((t) => t(e))), Dye = Eye.flatMap((e) => CW.map((t) => e.map(t)));
+wW.length;
+var Oye = (e, t) => {
let n = Math.imul(e, 2654435761) ^ Math.imul(t, 2246822507);
return n = Math.imul(n ^ n >>> 15, 739982445), n ^= n >>> 12, n >>> 0;
}, TW = (e, t) => {
- let n = yW.length;
- return ((e + t * 2) % n + n) % n * SW.length + wW(e, t) % SW.length;
-}, EW = (e, t) => CW[TW(e, t)], DW = (e, t, n) => n < 0 || n >= 12 ? null : kye[TW(e, t)][n], OW = 103.36, kW = 6.08, AW = 12 * OW, jW = 8 * OW, MW = 12, NW = (e, t) => (e % t + t) % t, Aye = (e, t) => e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
+ let n = bW.length;
+ return ((e + t * 2) % n + n) % n * CW.length + Oye(e, t) % CW.length;
+}, EW = (e, t) => wW[TW(e, t)], DW = (e, t, n) => n < 0 || n >= 12 ? null : Dye[TW(e, t)][n], OW = 103.36, kW = 6.08, AW = 12 * OW, jW = 8 * OW, MW = 12, NW = (e, t) => (e % t + t) % t, kye = (e, t) => e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
function PW(e, t) {
let n = Math.max(1, Math.ceil(e / MW)), r = t ? 3 : Math.min(3, n);
return {
@@ -53828,7 +53813,7 @@ function FW(e, t, n) {
height: o * OW - kW
};
}
-function jye(e) {
+function Aye(e) {
return (!e.medium || e.medium === "video") && !!e.has_cover && !!(e.cover_key || e.code);
}
function IW(e, t, n) {
@@ -53848,7 +53833,7 @@ function IW(e, t, n) {
key: n
};
}
-function Mye(e, t) {
+function jye(e, t) {
if (t < 0 || t >= e) return null;
let n = Math.floor(t / MW);
return IW(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % MW}`);
@@ -53862,7 +53847,7 @@ function LW(e, t, n) {
height: e.rows * OW - kW
}]));
}
-function Nye(e) {
+function Mye(e) {
let t = 0, n = 0;
for (let r = Math.max(0, e - 36); r < e; r += 1) {
let e = Math.floor(r / MW), i = FW(e % 3, Math.floor(e / 3), r % MW);
@@ -53873,7 +53858,7 @@ function Nye(e) {
height: n
};
}
-function Pye(e, t, n, r) {
+function Nye(e, t, n, r) {
if (!r) return e;
let i = (t, n, r) => Math.min(16, Math.max(Math.min(16, r - n * e.scale - 16), t));
return {
@@ -53897,7 +53882,7 @@ function RW(e, t, n, r) {
let u = (l * o.columns + i) * MW + s;
if (t && u >= e) continue;
let d = FW(r, n, s);
- Aye(d, a) && c.push({
+ kye(d, a) && c.push({
...d,
index: u % e,
key: `${r}:${n}:${s}`
@@ -53906,7 +53891,7 @@ function RW(e, t, n, r) {
}
return c;
}
-var Fye = class {
+var Pye = class {
positions = /* @__PURE__ */ new Map();
used = /* @__PURE__ */ new Set();
cursor = 0;
@@ -53979,11 +53964,11 @@ var Fye = class {
"dur_max",
"region"
];
-function Iye(e = {}) {
+function Fye(e = {}) {
return zW.some((t) => !!e[t]);
}
// src/react/video-wall/wall-boot.ts
-function Lye() {
+function Iye() {
if (document.querySelector("[data-wall-boot]")) return;
let e = innerWidth < 640 ? .68 : 1, t = document.createElement("div");
t.className = "peach-react", t.dataset.wallBoot = "", t.innerHTML = `<div data-video-wall="" data-fullscreen=""><div data-wall-viewport="" data-skeleton="wall" role="status" aria-busy="true" aria-label="正在读取播放墙"><div data-wall-world="" style="transform:translate3d(0px, 0px, 0) scale(${e})"></div></div></div>`, document.body.append(t);
@@ -53998,7 +53983,7 @@ function BW() {
document.querySelectorAll("[data-wall-boot]").forEach((e) => e.remove());
}
// src/react/router/pages/catalog.tsx
-var Rye = () => pu, VW = Op.navigation.seq, HW = Op.navigation.openEpoch, UW = Op.navigation.location.pathname, WW = {
+var Lye = () => pu, VW = Op.navigation.seq, HW = Op.navigation.openEpoch, UW = Op.navigation.location.pathname, WW = {
seq: VW,
claimed: !0,
from: UW
@@ -54023,7 +54008,7 @@ function KW(e) {
opened: e
};
}
-function zye(e, t, n, r) {
+function Rye(e, t, n, r) {
let i = { ...U }, a = um("catalog");
if (a) return { ...a };
if (e === "/trash") return {
@@ -54035,7 +54020,7 @@ function zye(e, t, n, r) {
state: "trash",
q: ""
};
- let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = rM().value;
+ let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = iM().value;
return {
...i,
loc: o.get("loc") ?? r.defaultLoc(),
@@ -54049,7 +54034,7 @@ function zye(e, t, n, r) {
dur_max: o.get("dur_max") || "",
orient: o.get("orient") || "",
state: kn[e] || o.get("state") || "",
- ...Rj(o.get("sort"), o.get("dir"), s, c),
+ ...zj(o.get("sort"), o.get("dir"), s, c),
seed: o.get("seed") || (n ? ir() : i.seed || ir()),
q: o.get("q") || "",
jav: o.get("jav") || "",
@@ -54066,7 +54051,7 @@ function qW(e) {
let n = e(), r = () => Op.navigation.seq === t, i = () => document.querySelector("#grid");
pm(r, i(), { pending: !0 }), Promise.resolve(n).then(() => pm(r, i()));
}
-function Bye(e, t) {
+function zye(e, t) {
let n = { ...e }, r = KW(n.opened);
Object.assign(e, r);
let i = t.catalog;
@@ -54086,18 +54071,18 @@ function Bye(e, t) {
}
let { pathname: o, search: s } = Op.navigation.location;
if (o === "/" && new URLSearchParams(s).get("state") === "ads") {
- let { kind: e, view: t } = LU(s);
- GW = !0, kp(RU(e, t), { replace: !0 });
+ let { kind: e, view: t } = RU(s);
+ GW = !0, kp(zU(e, t), { replace: !0 });
return;
}
let c = GW;
- GW = !1, a &&= o === "/" && !dm(), e.opened = !0, W({ state: zye(o, s, a, i) }), qW(() => i.open(o, {
+ GW = !1, a &&= o === "/" && !dm(), e.opened = !0, W({ state: Rye(o, s, a, i) }), qW(() => i.open(o, {
entering: a,
retitle: c
}));
}
-function Vye() {
- let e = (0, F.useContext)($W), t = QW(), n = (0, F.useSyncExternalStore)(Cu, Rye), r = ef(), i = (0, F.useRef)(null), a = (0, F.useRef)({
+function Bye() {
+ let e = (0, F.useContext)($W), t = QW(), n = (0, F.useSyncExternalStore)(Cu, Lye), r = ef(), i = (0, F.useRef)(null), a = (0, F.useRef)({
mounted: !0,
queued: !1
});
@@ -54111,7 +54096,7 @@ function Vye() {
}, []), (0, F.useEffect)(() => {
let t = a.current;
!t.queued && e && (t.queued = !0, queueMicrotask(() => {
- t.queued = !1, t.mounted && i.current && Bye(i.current, e);
+ t.queued = !1, t.mounted && i.current && zye(i.current, e);
}));
}, [
t,
@@ -54133,19 +54118,19 @@ function JW() {
e.inert = n[t] || !1;
});
};
- }, [e]), Bf(e) && !zf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Vye, {}, e === "/junk-files" ? "/junk-files" : "/"), jn(e) ? /* @__PURE__ */ (0, I.jsx)(iG, {}) : null] });
+ }, [e]), Bf(e) && !zf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Bye, {}, e === "/junk-files" ? "/junk-files" : "/"), jn(e) ? /* @__PURE__ */ (0, I.jsx)(iG, {}) : null] });
}
-function Hye() {
+function Vye() {
let e = (0, F.useContext)($W), t = document.getElementById("javLibraryHeader");
- return t && e ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Dye, {
+ return t && e ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Tye, {
navigate: e.navigate,
receipt: (t) => e.receipt(t)
}), t) : null;
}
// src/react/router/pages/overlay.tsx
-var YW = () => pu, Uye = () => mu;
-function Wye() {
- let e = (0, F.useContext)($W), t = (0, F.useSyncExternalStore)(Cu, Uye), n = (0, F.useSyncExternalStore)(Cu, YW);
+var YW = () => pu, Hye = () => mu;
+function Uye() {
+ let e = (0, F.useContext)($W), t = (0, F.useSyncExternalStore)(Cu, Hye), n = (0, F.useSyncExternalStore)(Cu, YW);
return (0, F.useEffect)(() => {
if (!t || !n) return;
let r = !0;
@@ -54180,7 +54165,7 @@ function XW(e, t = !1) {
}));
}, [n]);
}
-function Gye() {
+function Wye() {
let e = (0, F.useContext)($W), t = (0, F.useRef)(e);
return (0, F.useLayoutEffect)(() => {
t.current = e;
@@ -54193,7 +54178,7 @@ function Gye() {
});
}, []), null;
}
-function Kye({ path: e }) {
+function Gye({ path: e }) {
QW();
let { location: t, seq: n, action: r } = Op.navigation, i = Mf(t.pathname) ? Ff(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, F.useRef)({
identity: a,
@@ -54206,20 +54191,20 @@ function Kye({ path: e }) {
seq: n,
navigationSeq: n,
settings: !1
- }), /* @__PURE__ */ (0, I.jsx)(Gye, {}, `${e} ${o.current.seq}`);
+ }), /* @__PURE__ */ (0, I.jsx)(Wye, {}, `${e} ${o.current.seq}`);
}
-function qye() {
+function Kye() {
let e = (0, F.useContext)($W);
return XW(() => {
e?.follow?.ground();
}), null;
}
-function Jye() {
- return /* @__PURE__ */ (0, I.jsx)(qye, {}, QW());
+function qye() {
+ return /* @__PURE__ */ (0, I.jsx)(Kye, {}, QW());
}
// src/react/router/router.tsx
var ZW = (0, F.createContext)(0), QW = () => (0, F.useContext)(ZW), $W = (0, F.createContext)(null);
-function Yye({ children: e }) {
+function Jye({ children: e }) {
let [t, n] = (0, F.useState)(() => Op.navigation);
return (0, F.useLayoutEffect)(() => (n(Op.navigation), Op.listen((e) => {
(0, Rt.flushSync)(() => n(e));
@@ -54233,34 +54218,34 @@ function Yye({ children: e }) {
})
});
}
-function Xye({ target: e }) {
+function Yye({ target: e }) {
let t = nf();
return (0, F.useLayoutEffect)(() => {
e.current = t;
}), null;
}
-function Zye(e, t, n) {
+function Xye(e, t, n) {
let r = new URL(e, window.location.href);
N6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
}
-function Qye() {
+function Zye() {
let e = (0, F.useContext)($W), [t, n] = (0, F.useState)(dp), r = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => (n(dp()), fp((e, t) => {
t ? (0, Rt.flushSync)(() => n(e)) : n(e);
})), []);
let i = (0, F.useMemo)(() => (t) => {
- e && r.current && Zye(t, e, r.current);
+ e && r.current && Xye(t, e, r.current);
}, [e]);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Xye, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)($ye, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Yye, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(Qye, {
entry: t,
- children: /* @__PURE__ */ (0, I.jsx)(ebe, {
+ children: /* @__PURE__ */ (0, I.jsx)($ye, {
entry: t,
actions: e,
go: i
})
}, t.revision)) : null] });
}
-var $ye = class extends F.Component {
+var Qye = class extends F.Component {
state = { failed: !1 };
static getDerivedStateFromError() {
return { failed: !0 };
@@ -54271,10 +54256,10 @@ var $ye = class extends F.Component {
render() {
return this.state.failed ? null : this.props.children;
}
-}, ebe = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
- return q6(e.path) ? (0, Rt.createPortal)(DIe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+}, $ye = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
+ return q6(e.path) ? (0, Rt.createPortal)(EIe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
-function tbe({ children: e }) {
+function ebe({ children: e }) {
let t = ef();
QW();
let n = jp(), r = Mf(t.pathname) && !Ap() ? Ff(t.state) : null;
@@ -54286,7 +54271,7 @@ function tbe({ children: e }) {
path: e,
element: t.element
}, e)),
- Object.entries(CIe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(SIe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
@@ -54306,13 +54291,13 @@ function tbe({ children: e }) {
path: e,
element: B6["/"].element
}, e)),
- Object.entries(wIe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(CIe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
If.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
- element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(Jye, {}) : B6["/"].element
+ element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(qye, {}) : B6["/"].element
}, e)),
jf.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
@@ -54328,7 +54313,7 @@ function tbe({ children: e }) {
location: r ?? t,
children: [If.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)(Kye, { path: e })
+ element: /* @__PURE__ */ (0, I.jsx)(Gye, { path: e })
}, e)), /* @__PURE__ */ (0, I.jsx)(wf, {
path: "*",
element: null
@@ -54336,29 +54321,29 @@ function tbe({ children: e }) {
}),
/* @__PURE__ */ (0, I.jsxs)(Ef, { children: [jf.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)(Zve, {})
+ element: /* @__PURE__ */ (0, I.jsx)(Yve, {})
}, e)), /* @__PURE__ */ (0, I.jsx)(wf, {
path: "*",
element: null
})] })
] });
}
-function nbe({ children: e, actions: t = null, background: n, processing: r = !1 }) {
- return /* @__PURE__ */ (0, I.jsxs)(HV, { children: [n, /* @__PURE__ */ (0, I.jsx)($W.Provider, {
+function tbe({ children: e, actions: t = null, background: n, processing: r = !1 }) {
+ return /* @__PURE__ */ (0, I.jsxs)(UV, { children: [n, /* @__PURE__ */ (0, I.jsx)($W.Provider, {
value: t,
- children: /* @__PURE__ */ (0, I.jsxs)(Yye, { children: [
- /* @__PURE__ */ (0, I.jsx)(Qye, {}),
- /* @__PURE__ */ (0, I.jsx)(Hye, {}),
- /* @__PURE__ */ (0, I.jsx)(Wye, {}),
- r && t ? /* @__PURE__ */ (0, I.jsx)(fve, { toast: t.toast }) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(gve, {}) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(Xve, { navigate: t.navigate }) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(Kve, { actions: t }) : null,
- /* @__PURE__ */ (0, I.jsx)(tbe, { children: e })
+ children: /* @__PURE__ */ (0, I.jsxs)(Jye, { children: [
+ /* @__PURE__ */ (0, I.jsx)(Zye, {}),
+ /* @__PURE__ */ (0, I.jsx)(Vye, {}),
+ /* @__PURE__ */ (0, I.jsx)(Uye, {}),
+ r && t ? /* @__PURE__ */ (0, I.jsx)(dve, { toast: t.toast }) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(hve, {}) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(Jve, { navigate: t.navigate }) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(Wve, { actions: t }) : null,
+ /* @__PURE__ */ (0, I.jsx)(ebe, { children: e })
] })
})] });
}
-var rbe = { onCaughtError: (e) => {
+var nbe = { onCaughtError: (e) => {
globalThis.reportError?.(e);
} }, eG = {
category: "个人分类",
@@ -54385,8 +54370,8 @@ function nG(e, t) {
return e.pathname + (n.size ? `?${n}` : "");
}
// src/react/catalog-folders/folder-rule-dialog.tsx
-function ibe({ folder: e, rule: t, revision: n, close: r }) {
- let i = (0, F.useContext)($W), a = hH(), [o, s] = (0, F.useState)(t?.purpose || "category"), [c, l] = (0, F.useState)(t?.name || ""), [u, d] = (0, F.useState)(t?.recursive ?? !0), [f, p] = (0, F.useState)(t?.future ?? !1), [m, h] = (0, F.useState)(null), [g, _] = (0, F.useState)(!1), v = {
+function rbe({ folder: e, rule: t, revision: n, close: r }) {
+ let i = (0, F.useContext)($W), a = gH(), [o, s] = (0, F.useState)(t?.purpose || "category"), [c, l] = (0, F.useState)(t?.name || ""), [u, d] = (0, F.useState)(t?.recursive ?? !0), [f, p] = (0, F.useState)(t?.future ?? !1), [m, h] = (0, F.useState)(null), [g, _] = (0, F.useState)(!1), v = {
folder: e.id,
purpose: o,
name: c,
@@ -54415,7 +54400,7 @@ function ibe({ folder: e, rule: t, revision: n, close: r }) {
})
})).confirmed ? b("已移除目录规则") : _(!1);
}, w = !!a.busy, T = (e, t) => a.busy === e ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs(t) } }), t] }) : null;
- return g ? null : /* @__PURE__ */ (0, I.jsx)(cV, {
+ return g ? null : /* @__PURE__ */ (0, I.jsx)(lV, {
isOpen: !0,
onOpenChange: (e) => {
!e && !w && r();
@@ -54429,7 +54414,7 @@ function ibe({ folder: e, rule: t, revision: n, close: r }) {
className: "flex items-start justify-between gap-4 border-b border-separator-border p-5",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "min-w-0",
- children: [/* @__PURE__ */ (0, I.jsx)(BL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(HL, {
slot: "title",
className: "text-title-2-medium",
children: "设置目录用途"
@@ -54437,7 +54422,7 @@ function ibe({ folder: e, rule: t, revision: n, close: r }) {
className: "mt-1 text-body-2-regular text-text-secondary wrap-anywhere",
children: e.path
})]
- }), /* @__PURE__ */ (0, I.jsx)(mV, {
+ }), /* @__PURE__ */ (0, I.jsx)(hV, {
label: "关闭目录用途",
onPress: () => {
w || r();
@@ -54449,20 +54434,20 @@ function ibe({ folder: e, rule: t, revision: n, close: r }) {
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, I.jsx)(tV, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(UU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(nV, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(WU, {
"aria-label": "这个文件夹用于",
selectedKey: o,
isDisabled: w,
onSelectionChange: (e) => {
s(e), y();
},
- children: Object.entries(eG).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(WU, {
+ children: Object.entries(eG).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(GU, {
id: e,
children: t
}, e))
})]
}),
- o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(sV, {
+ o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(cV, {
label: "关联名称",
value: c,
onChange: (e) => {
@@ -54473,7 +54458,7 @@ function ibe({ folder: e, rule: t, revision: n, close: r }) {
isDisabled: w,
isRequired: !0
}),
- /* @__PURE__ */ (0, I.jsx)(zV, {
+ /* @__PURE__ */ (0, I.jsx)(BV, {
isSelected: u,
isDisabled: w,
onChange: (e) => {
@@ -54481,7 +54466,7 @@ function ibe({ folder: e, rule: t, revision: n, close: r }) {
},
children: "应用到子文件夹"
}),
- /* @__PURE__ */ (0, I.jsx)(zV, {
+ /* @__PURE__ */ (0, I.jsx)(BV, {
isSelected: f,
isDisabled: w,
onChange: (e) => {
@@ -54518,9 +54503,9 @@ function ibe({ folder: e, rule: t, revision: n, close: r }) {
children: e.name
}, e.id))
}) : null,
- m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "warning",
- extra: /* @__PURE__ */ (0, I.jsx)(zH, {
+ extra: /* @__PURE__ */ (0, I.jsx)(BH, {
summary: "查看归属冲突",
children: /* @__PURE__ */ (0, I.jsx)("ul", {
className: "mt-2 flex flex-col gap-2",
@@ -54538,7 +54523,7 @@ function ibe({ folder: e, rule: t, revision: n, close: r }) {
}) : null
]
}) : null,
- a.error ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ a.error ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
children: a.error
}) : null
@@ -54553,7 +54538,7 @@ function ibe({ folder: e, rule: t, revision: n, close: r }) {
onClick: () => {
w || C();
},
- ...hV(a.busy === "remove"),
+ ...gV(a.busy === "remove"),
children: "移除规则"
}) : null,
/* @__PURE__ */ (0, I.jsx)(J, {
@@ -54565,13 +54550,13 @@ function ibe({ folder: e, rule: t, revision: n, close: r }) {
}),
m ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
- ...hV(a.busy === "save"),
+ ...gV(a.busy === "save"),
onClick: S,
children: T("save", "正在保存") || "保存目录用途"
}) : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
disabled: o !== "category" && !c.trim(),
- ...hV(a.busy === "preview"),
+ ...gV(a.busy === "preview"),
onClick: () => {
x();
},
@@ -54584,7 +54569,7 @@ function ibe({ folder: e, rule: t, revision: n, close: r }) {
});
}
// src/react/catalog-folders/use-folder-sticky-offset.ts
-function abe(e, t) {
+function ibe(e, t) {
(0, F.useLayoutEffect)(() => {
if (!e) return;
let n = t ? document.getElementById("index") : document.getElementById("catalogFilter"), r = null, i = 0, a = new ResizeObserver(() => s()), o = () => {
@@ -54608,19 +54593,19 @@ function abe(e, t) {
}
// src/react/catalog-folders/catalog-folders-page.tsx
function rG() {
- return $d() ? /* @__PURE__ */ (0, I.jsx)(obe, {}) : null;
+ return $d() ? /* @__PURE__ */ (0, I.jsx)(abe, {}) : null;
}
-function obe() {
+function abe() {
let e = ef(), t = (0, F.useContext)($W);
if (!jn(e.pathname) && !/^\/(performers|creators|studios|series|agencies|tags)\/[^/]+$/.test(e.pathname)) return null;
let n = new URLSearchParams(e.search), r = n.get("browse") === "folders" || !!n.get("folder");
- return /* @__PURE__ */ (0, I.jsx)(oL, {
+ return /* @__PURE__ */ (0, I.jsx)(cL, {
size: "small",
"data-folder-mode-toggle": "",
"aria-label": "文件夹模式",
title: "文件夹模式",
"aria-pressed": r,
- icon: MB,
+ icon: NB,
onClick: () => t?.navigate(nG(e, r ? {
browse: null,
folder: null,
@@ -54628,13 +54613,13 @@ function obe() {
} : { browse: "folders" }))
});
}
-function sbe({ children: e, enabled: t }) {
- return $d() ? /* @__PURE__ */ (0, I.jsx)(cbe, {
+function obe({ children: e, enabled: t }) {
+ return $d() ? /* @__PURE__ */ (0, I.jsx)(sbe, {
enabled: t,
children: e
}) : /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e });
}
-function cbe({ children: e, enabled: t }) {
+function sbe({ children: e, enabled: t }) {
let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(null), o = ef(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "entity-folder-workspace",
@@ -54667,7 +54652,7 @@ function iG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
loc: a.get("loc") ?? "",
library: a.get("library") ?? ""
};
- abe(o, e);
+ ibe(o, e);
let c = a.get("folder") || "", l = Ft({
...tG(s, c),
enabled: o
@@ -54687,7 +54672,7 @@ function iG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
browse: "folders",
folder: e
}));
- }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(ube, {
+ }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(lbe, {
scope: s,
selected: c,
current: _,
@@ -54704,21 +54689,21 @@ function iG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "folder-drawer-trigger",
- children: /* @__PURE__ */ (0, I.jsx)(oL, {
+ children: /* @__PURE__ */ (0, I.jsx)(cL, {
"aria-label": "打开文件夹目录",
- icon: Ege,
+ icon: Tge,
size: "small",
onClick: () => d(!0)
})
}),
- /* @__PURE__ */ (0, I.jsxs)(Kge, {
+ /* @__PURE__ */ (0, I.jsxs)(Gge, {
"aria-label": "文件夹路径",
- children: [/* @__PURE__ */ (0, I.jsx)(AV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(jV, {
current: !c,
onClick: () => g(""),
- icon: MB,
+ icon: NB,
children: "全部文件夹"
- }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(AV, {
+ }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(jV, {
current: t === _.ancestors.length - 1,
onClick: () => g(e.id),
children: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -54728,15 +54713,15 @@ function iG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
})
}, e.id))]
}),
- _?.selected ? /* @__PURE__ */ (0, I.jsx)(oL, {
+ _?.selected ? /* @__PURE__ */ (0, I.jsx)(cL, {
"aria-label": "设置目录用途",
- icon: pge,
+ icon: fge,
size: "small",
onClick: () => p(!0)
}) : null
]
}),
- l.error && !u ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ l.error && !u ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -54748,7 +54733,7 @@ function iG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}),
children: lr(l.error)
}) : null,
- _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(uV, {
+ _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(dV, {
tone: "warning",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -54760,7 +54745,7 @@ function iG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}) : null,
_?.selected ? /* @__PURE__ */ (0, I.jsxs)("div", {
className: "folder-scope-row",
- children: [/* @__PURE__ */ (0, I.jsx)(zV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(BV, {
size: "sm",
isSelected: a.get("folder_recursive") !== "0",
onChange: (e) => i.navigate(nG(r, { folder_recursive: e ? null : "0" })),
@@ -54777,13 +54762,13 @@ function iG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
className: "folder-children",
children: Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsx)("span", { className: "skeleton-sheen h-8 w-28 rounded-lg" }, t))
}) : null,
- _?.children.length ? /* @__PURE__ */ (0, I.jsx)(lbe, {
+ _?.children.length ? /* @__PURE__ */ (0, I.jsx)(cbe, {
nodes: _.children,
go: g
}, c) : null
]
}), h),
- /* @__PURE__ */ (0, I.jsxs)(cV, {
+ /* @__PURE__ */ (0, I.jsxs)(lV, {
isOpen: u,
onOpenChange: d,
width: "form",
@@ -54793,7 +54778,7 @@ function iG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
className: "text-title-2-medium",
children: "文件夹"
- }), /* @__PURE__ */ (0, I.jsx)(mV, {
+ }), /* @__PURE__ */ (0, I.jsx)(hV, {
label: "关闭文件夹目录",
onPress: () => d(!1)
})]
@@ -54802,7 +54787,7 @@ function iG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: u ? v : null
})]
}),
- f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(ibe, {
+ f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(rbe, {
folder: _.selected,
rule: _.rule,
revision: _.rules_revision,
@@ -54810,7 +54795,7 @@ function iG({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}, _.selected.id) : null
] });
}
-function lbe({ nodes: e, go: t }) {
+function cbe({ nodes: e, go: t }) {
let [n, r] = (0, F.useState)(!1), i = (0, F.useId)(), a = n ? e : e.slice(0, 12);
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-2",
@@ -54821,7 +54806,7 @@ function lbe({ nodes: e, go: t }) {
children: a.map((e) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: MB,
+ leadingIcon: NB,
onClick: () => t(e.id),
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "truncate",
@@ -54838,11 +54823,11 @@ function lbe({ nodes: e, go: t }) {
}) : null]
});
}
-function ube({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
+function lbe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
let a = Ft(tG(e)), [o, s] = (0, F.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, F.useState)(""), u = (0, F.useDeferredValue)(c), d = Ft({
...tG(e, "", u),
enabled: !!u.trim()
- }), f = BV();
+ }), f = VV();
(0, F.useEffect)(() => {
n?.ancestors.length && s((e) => /* @__PURE__ */ new Set([...e, ...n.ancestors.filter((e) => e.has_children).map((e) => e.id)]));
}, [n?.ancestors]);
@@ -54852,14 +54837,14 @@ function ube({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
}), n?.selected && h.set(n.selected.id, n.children);
let g = (e) => {
let t = h.get(e.id);
- return /* @__PURE__ */ (0, I.jsx)(FV, {
+ return /* @__PURE__ */ (0, I.jsx)(IV, {
id: e.id,
label: e.name,
- icon: MB,
- expandedIcon: PB,
+ icon: NB,
+ expandedIcon: FB,
iconClassName: "size-(--icon-inline)",
trailingContent: e.parent ? void 0 : e.location === "local" ? "本地" : e.location,
- children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, I.jsx)(FV, {
+ children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, I.jsx)(IV, {
id: `${e.id}:loading`,
label: "正在读取文件夹",
isDisabled: !0
@@ -54875,15 +54860,15 @@ function ube({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
"aria-label": "文件夹导航",
className: "catalog-folder-navigation flex min-h-0 min-w-0 flex-col gap-3",
children: [
- /* @__PURE__ */ (0, I.jsx)(sV, {
+ /* @__PURE__ */ (0, I.jsx)(cV, {
"aria-label": "查找文件夹",
placeholder: "查找文件夹",
- leadingIcon: KB,
+ leadingIcon: qB,
value: c,
onChange: l,
size: "small"
}),
- v ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ v ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -54918,20 +54903,20 @@ function ube({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
"aria-busy": "true",
className: "h-8 skeleton-sheen",
"aria-label": "正在查找文件夹"
- }) : d.error ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ }) : d.error ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
children: lr(d.error)
}) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: MB,
+ leadingIcon: NB,
onClick: () => {
l(""), r(e.id);
},
children: e.name
- }, e.id)) : /* @__PURE__ */ (0, I.jsx)(dV, {
+ }, e.id)) : /* @__PURE__ */ (0, I.jsx)(fV, {
size: "compact",
- icon: KB,
+ icon: qB,
title: "没有匹配的文件夹",
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -54940,7 +54925,7 @@ function ube({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
}),
children: "换个目录名称试试。"
})
- }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(Yge, {
+ }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(Jge, {
"aria-label": "媒体目录",
size: "sm",
expandedKeys: o,
@@ -54948,11 +54933,11 @@ function ube({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
selectedKeys: new Set(t ? [t] : []),
onSelectionChange: _,
children: a.data?.roots.map(g)
- }) : /* @__PURE__ */ (0, I.jsx)(dV, {
+ }) : /* @__PURE__ */ (0, I.jsx)(fV, {
size: "compact",
- icon: MB,
+ icon: NB,
title: "尚未添加媒体目录",
- actions: /* @__PURE__ */ (0, I.jsx)(vL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(bL, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -54973,14 +54958,14 @@ function cG() {
return sG;
}
}
-function dbe(e) {
+function ube(e) {
sG = e === "list" ? "list" : "cards";
try {
localStorage.setItem(aG, sG);
} catch {}
oG.forEach((e) => e());
}
-function fbe(e) {
+function dbe(e) {
oG.add(e);
let t = (t) => {
(t.key === aG || t.key === null) && e();
@@ -54989,39 +54974,39 @@ function fbe(e) {
oG.delete(e), removeEventListener("storage", t);
};
}
-var lG = () => (0, F.useSyncExternalStore)(fbe, cG, () => "cards");
+var lG = () => (0, F.useSyncExternalStore)(dbe, cG, () => "cards");
// src/react/catalog-grid/catalog-view-toggle.tsx
function uG() {
let e = lG();
- return /* @__PURE__ */ (0, I.jsxs)(jz, {
+ return /* @__PURE__ */ (0, I.jsxs)(Nz, {
"aria-label": "馆藏显示方式",
orientation: "horizontal",
value: e,
- onChange: dbe,
+ onChange: ube,
"data-entity-layout": "",
- className: oU,
- children: [/* @__PURE__ */ (0, I.jsx)(Mz, {
+ className: sU,
+ children: [/* @__PURE__ */ (0, I.jsx)(Pz, {
value: "cards",
"aria-label": "卡片",
- className: sU,
+ className: cU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: "卡片",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(RB, {
+ children: /* @__PURE__ */ (0, I.jsx)(zB, {
"aria-hidden": "true",
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(Mz, {
+ }), /* @__PURE__ */ (0, I.jsx)(Pz, {
value: "list",
"aria-label": "列表",
- className: sU,
+ className: cU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: "列表",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(Sge, {
+ children: /* @__PURE__ */ (0, I.jsx)(xge, {
"aria-hidden": "true",
className: "size-4"
})
@@ -55031,7 +55016,7 @@ function uG() {
}
// src/react/components/icon-swap.tsx
function dG({ a: e, b: t, state: n, className: r }) {
- let { isFocusVisible: i } = TC();
+ let { isFocusVisible: i } = EC();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": !0,
className: `iconswap ${r || ""}`,
@@ -55049,8 +55034,8 @@ function dG({ a: e, b: t, state: n, className: r }) {
}
function fG({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)(dG, {
- a: Xhe,
- b: Yhe,
+ a: Jhe,
+ b: qhe,
className: e
});
}
@@ -55118,9 +55103,9 @@ function wG(e, t) {
let n = pG(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var pbe = 864e5, mbe = (e, t) => {
+var fbe = 864e5, pbe = (e, t) => {
let n = new Date(/[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`).getTime();
- return Number.isFinite(n) && n - t > pbe;
+ return Number.isFinite(n) && n - t > fbe;
};
function TG(e, t) {
let n = pG(e.published_at);
@@ -55129,7 +55114,7 @@ function TG(e, t) {
return {
prefix: r ? "约 " : "",
full: r ? i.slice(0, 10) : i,
- suffix: mbe(n, t) ? " · 晚于现在" : ""
+ suffix: pbe(n, t) ? " · 晚于现在" : ""
};
}
function EG(e, t = Date.now()) {
@@ -55152,7 +55137,7 @@ function jG() {
body: JSON.stringify({ entries: e })
}).catch(() => {}), kG.length && (AG = setTimeout(jG, 800));
}
-function hbe(e, t, n, r) {
+function mbe(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
OG.has(i) || (OG.add(i), kG.push(t === null ? {
item: e,
@@ -55166,22 +55151,22 @@ function hbe(e, t, n, r) {
}), AG ||= setTimeout(jG, 800));
}
// src/react/entity-filter/entity-filter.ts
-var gbe = (e) => e === "videos", MG = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var hbe = (e) => e === "videos", MG = () => /* @__PURE__ */ (0, I.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), _be = pV("shuffle"), vbe = pV("arrow-up"), ybe = pV("arrow-down");
-function bbe(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = gbe(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
+}), gbe = mV("shuffle"), _be = mV("arrow-up"), vbe = mV("arrow-down");
+function ybe(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = hbe(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
k: e,
label: t
- })) : i, m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = gL(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = gL(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, F.useRef)(null), w = (0, F.useRef)(null), T = u?.mediaCounts ? u : null, E = gL(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
+ })) : i, m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = (0, F.useRef)(null), v = (0, F.useRef)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = vL(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = vL(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, F.useRef)(null), w = (0, F.useRef)(null), T = u?.mediaCounts ? u : null, E = vL(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
return (0, F.useEffect)(() => {
c.wireDrag(y.current), c.wireScroller(v.current), c.wireDrag(b.current);
}, [c]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(NG, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, I.jsx)(dL, {
+ }), /* @__PURE__ */ (0, I.jsx)(pL, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -55210,14 +55195,14 @@ function bbe(e) {
})
] }),
top: !n && !d ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(wbe, {
+ n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Cbe, {
keys: n,
view: t,
row: _,
glide: S,
onView: s.setView
}), d ? /* @__PURE__ */ (0, I.jsx)(MG, {}) : null] }) : null,
- T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Sbe, {
+ T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(xbe, {
head: T,
row: w,
glide: E,
@@ -55247,7 +55232,7 @@ function bbe(e) {
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: y,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(fL, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(mL, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -55256,17 +55241,17 @@ function bbe(e) {
"data-count-badge": e.k,
children: e.n.toLocaleString()
})]
- }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(Cbe, {
+ }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(Sbe, {
head: u,
actions: s
}) : null
})]
})
] }),
- bottom: /* @__PURE__ */ (0, I.jsx)(Tbe, { ...e })
+ bottom: /* @__PURE__ */ (0, I.jsx)(wbe, { ...e })
})] });
}
-var xbe = [[
+var bbe = [[
"videos",
"视频",
"play",
@@ -55277,7 +55262,7 @@ var xbe = [[
"pics",
"image"
]];
-function Sbe({ head: e, row: t, glide: n, onMedia: r }) {
+function xbe({ head: e, row: t, glide: n, onMedia: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
role: "group",
@@ -55285,7 +55270,7 @@ function Sbe({ head: e, row: t, glide: n, onMedia: r }) {
"data-entity-media": "",
"data-online-media": "",
onPointerLeave: n.leave,
- children: xbe.map(([t, i, a, o]) => {
+ children: bbe.map(([t, i, a, o]) => {
let s = `${i} ${Math.max(0, e.mediaCounts?.[t] || 0).toLocaleString()}`;
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -55303,7 +55288,7 @@ function Sbe({ head: e, row: t, glide: n, onMedia: r }) {
})
});
}
-function Cbe({ head: e, actions: t }) {
+function Sbe({ head: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
e.providers.map(([n, r]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -55316,7 +55301,7 @@ function Cbe({ head: e, actions: t }) {
dangerouslySetInnerHTML: { __html: hG(n) }
}, n)),
e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)(MG, {}) : null,
- e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(fL, {
+ e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(mL, {
"data-follow-tag": e.k,
"data-entity-press": "",
"data-tag-cat": `r34-${e.cat}`,
@@ -55329,7 +55314,7 @@ function Cbe({ head: e, actions: t }) {
}, e.k))
] });
}
-function wbe({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function Cbe({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -55397,7 +55382,7 @@ function NG({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function Tbe(e) {
+function wbe(e) {
let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
t === "photos" && a?.back ? /* @__PURE__ */ (0, I.jsxs)("button", {
@@ -55409,30 +55394,30 @@ function Tbe(e) {
dangerouslySetInnerHTML: { __html: R("chevron-left") }
}), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Ebe, {
+ /* @__PURE__ */ (0, I.jsx)(Tbe, {
text: n,
busy: r
}),
- /* @__PURE__ */ (0, I.jsx)(OV, { currentHref: () => location.pathname + location.search }),
- t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(Dbe, {
+ /* @__PURE__ */ (0, I.jsx)(kV, { currentHref: () => location.pathname + location.search }),
+ t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(Ebe, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(kbe, {
+ t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(Obe, {
head: a,
actions: o,
helpers: s
}) : null,
- t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(Obe, {
+ t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(Dbe, {
head: e.online,
actions: o
}) : null
] });
}
-function Ebe({ text: e, busy: t }) {
+function Tbe({ text: e, busy: t }) {
return /* @__PURE__ */ (0, I.jsx)("h3", {
"data-entity-readout": "",
- children: /* @__PURE__ */ (0, I.jsx)(iL, {
+ children: /* @__PURE__ */ (0, I.jsx)(oL, {
text: t ? void 0 : e,
busy: t,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -55444,21 +55429,21 @@ function Ebe({ text: e, busy: t }) {
});
}
function PG({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, I.jsx)(jz, {
+ return /* @__PURE__ */ (0, I.jsx)(Nz, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: oU,
+ className: sU,
children: r.map(([e, t, n]) => {
- let r = pV(n);
- return /* @__PURE__ */ (0, I.jsx)(Mz, {
+ let r = mV(n);
+ return /* @__PURE__ */ (0, I.jsx)(Pz, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: sU,
+ className: cU,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -55469,16 +55454,16 @@ function PG({ name: e, label: t, value: n, options: r, onChange: i }) {
});
}
function FG({ onPress: e, busy: t = !1 }) {
- return /* @__PURE__ */ (0, I.jsx)(uL, {
+ return /* @__PURE__ */ (0, I.jsx)(fL, {
"data-entity-batch": "",
label: "换一批",
busy: t,
busyStyle: "strand",
- icon: _be,
+ icon: gbe,
onPress: e
});
}
-function Dbe({ head: e, actions: t }) {
+function Ebe({ head: e, actions: t }) {
let n = lG();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
@@ -55508,14 +55493,14 @@ function IG({ sorts: e, onSort: t }) {
"aria-label": e.ariaLabel || void 0,
onClick: () => t(e.key),
children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, I.jsx)(dG, {
- a: vbe,
- b: ybe,
+ a: _be,
+ b: vbe,
state: e.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
}, e.key)) });
}
-function Obe({ head: e, actions: t }) {
+function Dbe({ head: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
@@ -55547,7 +55532,7 @@ function Obe({ head: e, actions: t }) {
]
});
}
-function kbe({ head: e, actions: t, helpers: n }) {
+function Obe({ head: e, actions: t, helpers: n }) {
let [r, i] = (0, F.useState)(!1), a = (0, F.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";
return (0, F.useEffect)(() => {
a.current && o && n.wireSourceTools(a.current);
@@ -55575,7 +55560,7 @@ function kbe({ head: e, actions: t, helpers: n }) {
});
}
// src/react/catalog-filter/catalog-filter.ts
-var Abe = "peach.catalog.tiers.v1";
+var kbe = "peach.catalog.tiers.v1";
function LG() {
try {
let e = JSON.parse(localStorage.getItem("peach.catalog.tiers.v1") || "{}");
@@ -55590,18 +55575,18 @@ function LG() {
};
}
}
-function jbe(e) {
+function Abe(e) {
try {
let t = JSON.stringify({
performers: e.performers,
studios: e.studios
});
- localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(Abe, t);
+ localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(kbe, t);
} catch {}
}
// src/react/catalog-filter/catalog-filter-page.tsx
-function Mbe(e) {
- let t = !e.tiers, n = zbe(e.comboHost);
+function jbe(e) {
+ let t = !e.tiers, n = Rbe(e.comboHost);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
@@ -55613,13 +55598,13 @@ function Mbe(e) {
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, I.jsx)(Fbe, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(Nbe, { ...e })
+ /* @__PURE__ */ (0, I.jsx)(Pbe, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(Mbe, { ...e })
]
});
}
-function Nbe(e) {
- let { actions: t, helpers: n } = e, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = gL(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+function Mbe(e) {
+ let { actions: t, helpers: n } = e, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = vL(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
(0, F.useEffect)(() => {
n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);
}, [n]);
@@ -55647,7 +55632,7 @@ function Nbe(e) {
e.sorts
]), (0, F.useLayoutEffect)(() => {
ec(o.current, "tagbar");
- }, [f]), /* @__PURE__ */ (0, I.jsx)(dL, {
+ }, [f]), /* @__PURE__ */ (0, I.jsx)(pL, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -55691,23 +55676,23 @@ function Nbe(e) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(RG, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(Pbe, {
+ children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(RG, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(Nbe, {
tag: n,
pending: e.tiersPending,
onPress: t.toggleTag
}, n.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(Lbe, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(Ibe, { ...e })
});
}
-function Pbe({ tag: e, pending: t, onPress: n }) {
- return /* @__PURE__ */ (0, I.jsxs)(fL, {
+function Nbe({ tag: e, pending: t, onPress: n }) {
+ return /* @__PURE__ */ (0, I.jsxs)(mL, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
onPress: () => n(e.k),
- children: [/* @__PURE__ */ (0, I.jsx)(iL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(oL, {
text: e.label,
busy: t
}), e.n == null ? null : /* @__PURE__ */ (0, I.jsx)("span", {
@@ -55716,15 +55701,15 @@ function Pbe({ tag: e, pending: t, onPress: n }) {
})]
});
}
-function Fbe(e) {
- rL();
+function Pbe(e) {
+ aL();
let { actions: t, helpers: n } = e, r = e.tiers ?? {
key: "",
performers: [],
studios: []
}, i = !e.tiers, a = e.empty || i, o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useCallback)((e) => () => t.moreTops(e), [t]), l = zG(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = zG(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, F.useMemo)(() => i ? LG() : null, [i]), f = d ? d.performers : e.empty || r.performers.length > 0, p = d ? d.studios : e.empty || r.studios.length > 0;
return (0, F.useEffect)(() => {
- i || jbe({
+ i || Abe({
performers: f,
studios: p
});
@@ -55756,7 +55741,7 @@ function Fbe(e) {
dangerouslySetInnerHTML: { __html: n.ringHtml }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-tier-name": "",
- children: /* @__PURE__ */ (0, I.jsx)(iL, {
+ children: /* @__PURE__ */ (0, I.jsx)(oL, {
text: nn("performer", n.name),
busy: e.tiersPending
})
@@ -55771,7 +55756,7 @@ function Fbe(e) {
"data-entity-kind": "studio",
"data-entity-name": n.name,
onClick: () => t.openEntity("studio", n.name),
- children: [/* @__PURE__ */ (0, I.jsx)(Ibe, { studio: n }), /* @__PURE__ */ (0, I.jsx)(iL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Fbe, { studio: n }), /* @__PURE__ */ (0, I.jsx)(oL, {
text: n.name,
busy: e.tiersPending
})]
@@ -55779,7 +55764,7 @@ function Fbe(e) {
}) : null]
});
}
-function Ibe({ studio: e }) {
+function Fbe({ studio: e }) {
let [t, n] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-tier-mark": "",
@@ -55813,11 +55798,11 @@ function RG({ kind: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", {}), /* @__PURE__ */ (0, I.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function Lbe({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+function Ibe({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
let a = lG(), [o, s] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("span", {
"data-catalog-summary": "",
- children: [/* @__PURE__ */ (0, I.jsx)(Rbe, { count: e }), /* @__PURE__ */ (0, I.jsx)(OV, { currentHref: i.currentHref })]
+ children: [/* @__PURE__ */ (0, I.jsx)(Lbe, { count: e }), /* @__PURE__ */ (0, I.jsx)(kV, { currentHref: i.currentHref })]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
@@ -55843,13 +55828,13 @@ function Lbe({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
]
})] });
}
-function Rbe({ count: e }) {
+function Lbe({ count: e }) {
let t = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown.toLocaleString()}` : e === !1 ? "" : void 0;
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-catalog-readout": "",
"data-count-readout": "",
role: "status",
- children: /* @__PURE__ */ (0, I.jsx)(iL, {
+ children: /* @__PURE__ */ (0, I.jsx)(oL, {
text: t,
busy: e === null,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -55860,7 +55845,7 @@ function Rbe({ count: e }) {
})
});
}
-function zbe(e) {
+function Rbe(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!e) return;
@@ -55914,7 +55899,7 @@ function zG(e, t, n, r, i) {
}
// src/react/components/grid-reveal.tsx
var BG = "100% 0px";
-function Bbe(e, t) {
+function zbe(e, t) {
let [n, r] = (0, F.useState)(e ? "skeleton" : "none"), [i] = (0, F.useState)(() => e ? t() : ""), a = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
a.current && pc(a.current);
@@ -56013,12 +55998,12 @@ function KG({ tags: e, label: t, readOnly: n = !1, attrs: r, ...i }) {
});
}
// src/react/components/recommendation-reason.tsx
-var Vbe = 3;
-function Hbe(e, t, n = Vbe) {
+var Bbe = 3;
+function Vbe(e, t, n = Bbe) {
return [...e, t.slice(0, n).join("、")].filter(Boolean).join(" · ");
}
function qG({ reasons: e, tags: t = [] }) {
- let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1), a = Hbe(e, t);
+ let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1), a = Vbe(e, t);
if (!a) return null;
let o = [e.join(" · "), t.length ? `共同标签:${t.join("、")}` : ""].filter(Boolean).join("\n");
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
@@ -56033,15 +56018,15 @@ function qG({ reasons: e, tags: t = [] }) {
e.stopPropagation(), i(!0);
},
children: a
- }), /* @__PURE__ */ (0, I.jsx)(dz, {
+ }), /* @__PURE__ */ (0, I.jsx)(pz, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "top",
offset: 8,
containerPadding: 12,
- className: MV,
- children: /* @__PURE__ */ (0, I.jsx)(wz, {
+ className: NV,
+ children: /* @__PURE__ */ (0, I.jsx)(Ez, {
"data-media-reason-dialog": "",
"aria-label": "推荐理由",
className: "w-64 max-w-full p-2 text-body-regular whitespace-pre-line break-words text-text-primary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
@@ -56051,7 +56036,7 @@ function qG({ reasons: e, tags: t = [] }) {
}
// src/library-catalog.ts
var JG = "peach.library-colors.v1", YG = null, XG = /* @__PURE__ */ new Set();
-function Ube() {
+function Hbe() {
try {
let e = JSON.parse(localStorage.getItem(JG) || "{}");
return e && typeof e == "object" ? e : {};
@@ -56069,14 +56054,14 @@ function ZG(e) {
function QG() {
return YG;
}
-function Wbe(e) {
+function Ube(e) {
return XG.add(e), () => {
XG.delete(e);
};
}
// src/react/components/library-tint.ts
var $G = /* @__PURE__ */ new Map(), eK = !1, tK = /* @__PURE__ */ new Set();
-function Gbe(e) {
+function Wbe(e) {
let t = document.createElement("span");
t.setAttribute("data-accent-ball", e), t.hidden = !0, document.body.append(t);
let n = getComputedStyle(t).getPropertyValue("--color-accent-500").trim();
@@ -56085,7 +56070,7 @@ function Gbe(e) {
function nK(e) {
$G = e;
let t = document.getElementById("peach-library-tints");
- t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...$G.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${Gbe(e.color)}}`).join("\n");
+ t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...$G.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${Wbe(e.color)}}`).join("\n");
}
function rK(e) {
nK(e), tK.forEach((e) => e());
@@ -56097,15 +56082,15 @@ var iK = (e) => new Map(e.map((e) => [e.id, {
location: e.roots?.[0]?.location || "",
color: e.color || ""
}])), aK = !1;
-function Kbe() {
+function Gbe() {
if (aK) return;
- aK = !0, Wbe((e) => rK(iK(e)));
+ aK = !0, Ube((e) => rK(iK(e)));
let e = QG();
if (e) {
nK(iK(e));
return;
}
- let t = Object.entries(Ube()).filter(([, e]) => e);
+ let t = Object.entries(Hbe()).filter(([, e]) => e);
t.length && nK(new Map(t.map(([e, t]) => [e, {
id: e,
name: "",
@@ -56114,12 +56099,12 @@ function Kbe() {
color: t
}])));
}
-function qbe() {
+function Kbe() {
eK || QG() || (eK = !0, B("/api/libraries").then((e) => ZG(e.libraries || [])).catch(() => {
eK = !1;
}));
}
-function Jbe(e, t) {
+function qbe(e, t) {
let n = $G.get(e) ?? {
id: e,
name: "",
@@ -56132,38 +56117,38 @@ function Jbe(e, t) {
color: t
}]]));
}
-function Ybe(e) {
+function Jbe(e) {
return tK.add(e), () => {
tK.delete(e);
};
}
function oK({ names: e = !1 } = {}) {
- return Kbe(), e && qbe(), (0, F.useSyncExternalStore)(Ybe, () => $G, () => $G);
+ return Gbe(), e && Kbe(), (0, F.useSyncExternalStore)(Jbe, () => $G, () => $G);
}
// src/react/components/row-click.ts
-var Xbe = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
+var Ybe = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
function sK(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(Xbe);
+ let r = n.closest(Ybe);
return !r || !t.contains(r) || r === t;
}
function cK(e) {
e.shiftKey && e.preventDefault();
}
// src/react/components/media-card.tsx
-var lK = 9 / 16, uK = "未命名视频", Zbe = {
+var lK = 9 / 16, uK = "未命名视频", Xbe = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
-}, Qbe = {
+}, Zbe = {
manual: "手动",
junk: "垃圾",
duplicate: "重复",
missing: "文件缺失"
};
-function $be(e) {
+function Qbe(e) {
if (Number(e.duration) < 0) return {
key: "unavailable",
label: "探查错误"
@@ -56193,7 +56178,7 @@ function $be(e) {
}
function dK({ item: e }) {
if (e.disposal !== "trash") return null;
- let t = e.disposal_reason && Qbe[e.disposal_reason] || "原因未记录";
+ let t = e.disposal_reason && Zbe[e.disposal_reason] || "原因未记录";
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-disposal-reason": "",
title: `归入原因:${t}`,
@@ -56220,7 +56205,7 @@ function fK({ item: e, actions: t }) {
}) : null] });
}
function pK(e, t, n) {
- return t === "short" ? lK : SM(n);
+ return t === "short" ? lK : CM(n);
}
function mK(e) {
let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = Ao(e), s = i[0] || "", c = ho(e);
@@ -56273,7 +56258,7 @@ function mK(e) {
})
};
}
-function exe() {
+function $be() {
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -56292,7 +56277,7 @@ function exe() {
})]
});
}
-function txe({ item: e, actions: t, on: n, onChange: r }) {
+function exe({ item: e, actions: t, on: n, onChange: r }) {
let [i, a] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-later": "",
@@ -56315,14 +56300,14 @@ function hK(e, t) {
let n = e?.querySelector("video.hv");
n && Number.isFinite(n.duration) && (n._hop &&= (clearInterval(n._hop), null), n.currentTime = Math.max(0, Math.min(n.duration, n.currentTime + t)));
}
-function nxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
- rL();
+function txe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
+ aL();
let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = oK(), h = e.library_id && m.get(e.library_id)?.color ? e.library_id : void 0, g = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), _ = (0, F.useRef)(e);
_.current = e;
let v = (0, F.useCallback)((e) => {
let t = _.current;
u.current && u.current !== e && Pl(u.current), u.current = e, e && (!t.medium || t.medium === "video") && Il(e, t);
- }, []), y = l && Number(e.part_group?.count) > 1 && e.part_group || null, b = l && Number(e.edition_group?.count) > 1 && e.edition_group || null, x = !!(y || b), S = n.active && !!e.is_jav, C = pK(e, t, n), w = S ? n.size : "small", T = C === lK && !!e.is_jav, E = T ? Do(e, !1) : To(e, w, !1, n.javImage), D = T || w === "small" ? E.html : To(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || uK, A = o.titleHtml(e, O).trim() || z(uK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : $be(e), N = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: te, who: P } = mK(e), ne = (e.follow_tags || e.tags || []).slice(0, 3), re = (t) => {
+ }, []), y = l && Number(e.part_group?.count) > 1 && e.part_group || null, b = l && Number(e.edition_group?.count) > 1 && e.edition_group || null, x = !!(y || b), S = n.active && !!e.is_jav, C = pK(e, t, n), w = S ? n.size : "small", T = C === lK && !!e.is_jav, E = T ? Do(e, !1) : To(e, w, !1, n.javImage), D = T || w === "small" ? E.html : To(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || uK, A = o.titleHtml(e, O).trim() || z(uK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : Qbe(e), N = !y && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: te, who: P } = mK(e), ne = (e.follow_tags || e.tags || []).slice(0, 3), re = (t) => {
let n = t.target;
if (n.closest("[data-media-reason-dialog]")) return;
let r = u.current;
@@ -56352,7 +56337,7 @@ function nxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-pic-portrait": C === lK ? "" : void 0,
style: { "--card-ratio": String(C) },
children: [
- E.html ? /* @__PURE__ */ (0, I.jsx)(qU, {
+ E.html ? /* @__PURE__ */ (0, I.jsx)(JU, {
artwork: E,
identity: D,
relayout: (e) => El(e, w)
@@ -56402,7 +56387,7 @@ function nxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-media-scrub": "",
children: /* @__PURE__ */ (0, I.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })
}),
- /* @__PURE__ */ (0, I.jsx)(exe, {}),
+ /* @__PURE__ */ (0, I.jsx)($be, {}),
p || g.length ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-status": "",
children: [p ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -56417,7 +56402,7 @@ function nxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
children: /* @__PURE__ */ (0, I.jsx)(UG, { name: "heart" })
}) : null]
}) : null,
- i ? null : /* @__PURE__ */ (0, I.jsx)(txe, {
+ i ? null : /* @__PURE__ */ (0, I.jsx)(exe, {
item: e,
actions: s,
on: p,
@@ -56535,8 +56520,8 @@ function nxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
]
});
}
-function rxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
- let o = (0, F.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : Zbe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
+function nxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {
+ let o = (0, F.useRef)(null), s = e.medium === "image" && e.location !== "online", c = String(e.name || ""), l = c.toLowerCase().endsWith(".url") ? "网址快捷方式" : Xbe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
return /* @__PURE__ */ (0, I.jsxs)("article", {
ref: o,
"data-media-card": "",
@@ -56618,17 +56603,17 @@ function rxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
})]
});
}
-function ixe(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(rxe, { ...e }) : /* @__PURE__ */ (0, I.jsx)(nxe, { ...e });
+function rxe(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(nxe, { ...e }) : /* @__PURE__ */ (0, I.jsx)(txe, { ...e });
}
-var gK = (0, F.memo)(ixe), axe = 1100, oxe = 340, sxe = 5e3;
-function cxe(e, t, n) {
+var gK = (0, F.memo)(rxe), ixe = 1100, axe = 340, oxe = 5e3;
+function sxe(e, t, n) {
return new Promise((r) => {
let i = new Image();
n && (i.referrerPolicy = n);
let a = !1, o = (e) => {
a || (a = !0, clearTimeout(c), i.onload = null, i.onerror = null, t.cancels.delete(s), r(e));
- }, s = () => o(!1), c = setTimeout(s, sxe);
+ }, s = () => o(!1), c = setTimeout(s, oxe);
t.cancels.add(s), i.onerror = s, i.onload = () => {
i.naturalWidth ? typeof i.decode == "function" ? i.decode().then(() => o(!0), s) : o(!0) : o(!1);
}, i.src = e;
@@ -56676,11 +56661,11 @@ function _K({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => cxe(t, e, n)));
+ let s = await Promise.all(a.map((t) => sxe(t, e, n)));
if (!r() || !u.current.canFlip()) return;
let d = a.filter((e, t) => s[t]);
d.length < 2 || (e.count = d.length, e.at = 0, i(d), o(0), c(null), f(420, () => {
- p(), e.cycle = setInterval(p, axe);
+ p(), e.cycle = setInterval(p, ixe);
}));
};
return (0, F.useEffect)(() => d, [d]), {
@@ -56689,7 +56674,7 @@ function _K({ load: e, canFlip: t, referrerPolicy: n }) {
leaving: s,
onPointerEnter: () => {
let e = l.current;
- e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(oxe, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(axe, () => {
e.armed = null, m();
});
},
@@ -56699,8 +56684,8 @@ function _K({ load: e, canFlip: t, referrerPolicy: n }) {
};
}
// src/react/components/mix-card.tsx
-var vK = pV("play");
-function lxe({ src: e }) {
+var vK = mV("play");
+function cxe({ src: e }) {
let [t, n] = (0, F.useState)(!1);
return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {
"data-mix-poster": "",
@@ -56714,7 +56699,7 @@ function lxe({ src: e }) {
});
}
var yK = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";
-function uxe({ faces: e, fallback: t, onOpenEntity: n }) {
+function lxe({ faces: e, fallback: t, onOpenEntity: n }) {
return e.length ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-mix-avatars": "",
children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, I.jsx)("button", {
@@ -56760,11 +56745,11 @@ function bK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
style: d === void 0 ? void 0 : { "--card-ratio": String(d) },
className: "relative z-1 flex aspect-video items-center justify-center overflow-hidden",
children: [
- f?.html ? /* @__PURE__ */ (0, I.jsx)(qU, {
+ f?.html ? /* @__PURE__ */ (0, I.jsx)(JU, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, I.jsx)(lxe, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, I.jsx)(cxe, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -56808,7 +56793,7 @@ function bK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
"data-mix-glyph": "",
"aria-hidden": !0,
children: /* @__PURE__ */ (0, I.jsx)(vK, {})
- }) : /* @__PURE__ */ (0, I.jsx)(uxe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(lxe, {
faces: o,
fallback: er(e),
onOpenEntity: s
@@ -56835,16 +56820,16 @@ var xK = {
x: 16,
y: 16,
scale: 1
-}, dxe = .65, fxe = 1.6, SK = (e) => Math.min(fxe, Math.max(dxe, e)), CK = (e, t, n, r) => ({
+}, uxe = .65, dxe = 1.6, SK = (e) => Math.min(dxe, Math.max(uxe, e)), CK = (e, t, n, r) => ({
scale: t,
x: n - (n - e.x) * t / e.scale,
y: r - (r - e.y) * t / e.scale
});
-function pxe(e, t, n) {
+function fxe(e, t, n) {
let r = 120 / t.scale, i = -e.x / e.scale, a = -e.y / e.scale, o = -t.x / t.scale - r, s = -t.y / t.scale - r;
return i >= o && a >= s && i + n.width / e.scale <= o + n.width / t.scale + r * 2 && a + n.height / e.scale <= s + n.height / t.scale + r * 2;
}
-function mxe(e, t, n = xK, r = !1) {
+function pxe(e, t, n = xK, r = !1) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)({
width: 0,
height: 0
@@ -56876,12 +56861,12 @@ function mxe(e, t, n = xK, r = !1) {
previous: 0
});
}, []), y = (0, F.useCallback)((e, t = !1, n = !1) => {
- let { count: r, finite: c, focused: f } = d.current, p = Pye(e, o.current, Nye(r), c && !f && !n), h = s.current;
+ let { count: r, finite: c, focused: f } = d.current, p = Nye(e, o.current, Mye(r), c && !f && !n), h = s.current;
s.current = p;
let g = window.devicePixelRatio || 1, _ = a.current;
_ && (_.style.transform = `translate3d(${Math.round(p.x * g) / g}px, ${Math.round(p.y * g) / g}px, 0) scale(${p.scale})`, (p.x !== h.x || p.y !== h.y || p.scale !== h.scale) && (_.style.willChange = "transform", m.current !== null && clearTimeout(m.current), m.current = setTimeout(() => {
m.current = null, _.style.willChange = "";
- }, 240))), i.current && (i.current.dataset.cameraX = String(p.x), i.current.dataset.cameraY = String(p.y), i.current.dataset.cameraScale = String(p.scale)), (t || !pxe(p, u.current, o.current)) && (u.current = p, l({
+ }, 240))), i.current && (i.current.dataset.cameraX = String(p.x), i.current.dataset.cameraY = String(p.y), i.current.dataset.cameraScale = String(p.scale)), (t || !fxe(p, u.current, o.current)) && (u.current = p, l({
camera: p,
size: { ...o.current }
}));
@@ -56972,7 +56957,7 @@ function mxe(e, t, n = xK, r = !1) {
x: o.current.width / 2 - (e.x + e.width / 2) * i,
y: o.current.height / 2 - (e.y + e.height / 2) * i
};
- !t || b() ? y(a, !0, n) : p.current = lS(0, 1, {
+ !t || b() ? y(a, !0, n) : p.current = dS(0, 1, {
duration: .42,
ease: [
.22,
@@ -57058,16 +57043,16 @@ function mxe(e, t, n = xK, r = !1) {
};
}
// src/react/video-wall/wall-motion.ts
-var hxe = {
+var mxe = {
type: "spring",
stiffness: 300,
damping: 34
-}, gxe = {
+}, hxe = {
delay: .14,
duration: .24
};
// src/react/video-wall/use-wall-playback.ts
-function _xe(e, t, n) {
+function gxe(e, t, n) {
let [r, i] = (0, F.useState)({
paused: !0,
time: 0,
@@ -57108,15 +57093,15 @@ function _xe(e, t, n) {
};
}
// src/react/video-wall/wall-controls.tsx
-function vxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouped: a, queueOpen: o, queueReady: s, hasPrevious: c, hasNext: l, later: u, laterBusy: d, play: f, previous: p, next: m, queue: h, watchLater: g, details: _, ended: v, error: y }) {
- let b = Qx(), x = _xe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
+function _xe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouped: a, queueOpen: o, queueReady: s, hasPrevious: c, hasNext: l, later: u, laterBusy: d, play: f, previous: p, next: m, queue: h, watchLater: g, details: _, ended: v, error: y }) {
+ let b = eS(), x = gxe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
if (!(C || a && !s)) try {
t === e.id ? await x.toggle() : await f();
} catch (e) {
y(xn(e));
}
};
- return /* @__PURE__ */ (0, I.jsxs)(uS.div, {
+ return /* @__PURE__ */ (0, I.jsxs)(fS.div, {
"data-wall-focus-actions": "",
initial: !b && {
opacity: 0,
@@ -57126,7 +57111,7 @@ function vxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
opacity: 1,
transform: "translateY(0px)"
},
- transition: b ? { duration: 0 } : gxe,
+ transition: b ? { duration: 0 } : hxe,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-control-row": "",
children: [
@@ -57134,7 +57119,7 @@ function vxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
type: "button",
"data-wall-play": "",
"data-wall-pause": w ? void 0 : "",
- ...hV(C),
+ ...gV(C),
"aria-label": r ? "正在打开" : i ? "正在读取版本" : w ? "播放" : "暂停",
title: w ? "播放" : "暂停",
onClick: () => void T(),
@@ -57184,7 +57169,7 @@ function vxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
- ...hV(d),
+ ...gV(d),
"aria-label": u ? "移出稍后看" : "稍后看",
title: "稍后看",
"aria-pressed": u,
@@ -57289,7 +57274,7 @@ function TK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var yxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
+var vxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
@@ -57298,7 +57283,7 @@ var yxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
]
});
// src/react/video-wall/wall-queue.tsx
-function bxe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
+function yxe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-queue": "",
id: "wall-queue",
@@ -57312,14 +57297,14 @@ function bxe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })
"data-wall-source": e.id,
"aria-label": [
e.edition_label,
- e.part_label ? RP(e.part_label) : "",
+ e.part_label ? zP(e.part_label) : "",
r(e)
].filter(Boolean).join(" · "),
onClick: () => i(e),
- pic: /* @__PURE__ */ (0, I.jsx)(qU, { artwork: To(e, "small", !0, "cover") }),
+ pic: /* @__PURE__ */ (0, I.jsx)(JU, { artwork: To(e, "small", !0, "cover") }),
children: [/* @__PURE__ */ (0, I.jsx)("b", { children: r(e) }), /* @__PURE__ */ (0, I.jsx)("span", { children: [
e.edition_label,
- e.part_label ? RP(e.part_label) : "",
+ e.part_label ? zP(e.part_label) : "",
Jn(e.duration)
].filter(Boolean).join(" · ") })]
}, e.id))
@@ -57327,7 +57312,7 @@ function bxe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })
});
}
// src/react/video-wall/wall-route.ts
-function xxe(e = `${location.pathname}${location.search}`, t = {}) {
+function bxe(e = `${location.pathname}${location.search}`, t = {}) {
let n = new URL(e, location.origin), [r, ...i] = n.pathname.split("/").filter(Boolean), a = {
performers: "performer",
creators: "creator",
@@ -57365,7 +57350,7 @@ var OK = /* @__PURE__ */ new Map(), kK = (0, F.memo)(function({ item: e, image:
ref: a,
"data-media-pic": "",
style: { "--card-ratio": String(r) },
- children: /* @__PURE__ */ (0, I.jsx)(qU, {
+ children: /* @__PURE__ */ (0, I.jsx)(JU, {
artwork: i,
relayout: (e) => e.querySelectorAll("img.cover").forEach((e) => {
e.complete && e.naturalWidth && fl(e, r);
@@ -57373,31 +57358,31 @@ var OK = /* @__PURE__ */ new Map(), kK = (0, F.memo)(function({ item: e, image:
})
});
});
-function Sxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error: a = "", retry: o, emptyHtml: s = "", loadMore: c, actions: l, helpers: u, javImage: d, sessionKey: f }) {
+function xxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error: a = "", retry: o, emptyHtml: s = "", loadMore: c, actions: l, helpers: u, javImage: d, sessionKey: f }) {
let p = String(e[0]?.id), [m] = (0, F.useState)(() => {
let e = OK.get(f);
return e && (i || t || e.pool === p) ? e : void 0;
- }), [h] = (0, F.useState)(() => m?.exploration || new Fye()), g = (0, F.useRef)(!1), [_, v] = (0, F.useState)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(null), C = (0, F.useRef)(null), [w, T] = (0, F.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, D] = (0, F.useState)(m?.selectedKey || ""), [O, k] = (0, F.useState)(m?.sourceId || null), [A, j] = (0, F.useState)(!1), M = w?.edition_group ? {
+ }), [h] = (0, F.useState)(() => m?.exploration || new Pye()), g = (0, F.useRef)(!1), [_, v] = (0, F.useState)(null), y = (0, F.useRef)(null), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(null), C = (0, F.useRef)(null), [w, T] = (0, F.useState)(() => e.find((e) => e.id === m?.selectedId) || null), [E, D] = (0, F.useState)(m?.selectedKey || ""), [O, k] = (0, F.useState)(m?.sourceId || null), [A, j] = (0, F.useState)(!1), M = w?.edition_group ? {
kind: "editions",
seedId: w.edition_group.seed_id
} : w?.part_group ? {
kind: "parts",
seedId: w.part_group.seed_id
} : null, ee = Ft({
- queryKey: _P(M || {
+ queryKey: vP(M || {
kind: "parts",
seedId: 0
}),
enabled: !!M,
- queryFn: ({ signal: e }) => EP(M, {
+ queryFn: ({ signal: e }) => DP(M, {
tagLabel: u.tagLabel,
mixRelated: async () => []
}, e)
- }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === kP(N, O || w?.id || null)) || w, P = mxe(e.length, t && !!e.length, m?.camera || {
+ }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === AP(N, O || w?.id || null)) || w, P = pxe(e.length, t && !!e.length, m?.camera || {
x: 0,
y: 0,
scale: innerWidth < 640 ? .68 : 1
- }, !!w), ne = Qx(), [re, ie] = (0, F.useState)(!!m);
+ }, !!w), ne = eS(), [re, ie] = (0, F.useState)(!!m);
(0, F.useEffect)(() => {
if (!e.length || re || ne) return;
let t = setTimeout(() => ie(!0), 1100);
@@ -57507,7 +57492,7 @@ function Sxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
C.current === t && de(!1);
}
}, Ue = () => {
- let e = AP(N || null, oe || 0);
+ let e = jP(N || null, oe || 0);
e && (k(e.id), He(e));
};
(0, F.useEffect)(() => {
@@ -57529,7 +57514,7 @@ function Sxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
let r = P.snapshot(), i = e.findIndex((e) => e.id === n.id), a = {
x: (P.view.size.width / 2 - r.x) / r.scale,
y: (P.view.size.height / 2 - r.y) / r.scale
- }, o = t ? Mye(e.length, i) : h.nearest(e.length, i, a);
+ }, o = t ? jye(e.length, i) : h.nearest(e.length, i, a);
o && (Be(n, o), le(n.id));
}, qe = async () => {
if (!(r || g.current)) {
@@ -57658,7 +57643,7 @@ function Sxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
Qe.code ? /* @__PURE__ */ (0, I.jsx)("strong", { children: Ze(Qe).startsWith(Qe.code) ? Ze(Qe).slice(Qe.code.length).trim() : Ze(Qe) }) : null,
/* @__PURE__ */ (0, I.jsx)("span", { children: Qe.performers?.join(" · ") || Qe.creator || "未归属" }),
- N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Qe.edition_label, Qe.part_label ? RP(Qe.part_label) : ""].filter(Boolean).join(" · ") }) : null
+ N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Qe.edition_label, Qe.part_label ? zP(Qe.part_label) : ""].filter(Boolean).join(" · ") }) : null
]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -57675,7 +57660,7 @@ function Sxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
fe || M && ee.error && !N ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-play-error": "",
- children: [/* @__PURE__ */ (0, I.jsx)(uV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
children: fe || xn(ee.error)
}), ee.error && !N ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -57685,7 +57670,7 @@ function Sxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: "立即重试"
}) : null]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(vxe, {
+ /* @__PURE__ */ (0, I.jsx)(_xe, {
item: Qe,
playing: oe,
frame: b,
@@ -57707,7 +57692,7 @@ function Sxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
ended: Ue,
error: pe
}),
- A ? /* @__PURE__ */ (0, I.jsx)(bxe, {
+ A ? /* @__PURE__ */ (0, I.jsx)(yxe, {
items: We,
activeId: Qe.id,
kind: N?.kind || "wall",
@@ -57865,7 +57850,7 @@ function Sxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}
}, t.key);
let n = !!w && t.key === E, r = n ? w : e[t.index], i = Ie.get(t.key) || t, a = !re && !n, o = a ? Math.min(.34, (Math.max(0, t.x + P.view.camera.x / P.view.camera.scale) + Math.max(0, t.y + P.view.camera.y / P.view.camera.scale)) / 103.36 * .03) : 0;
- return /* @__PURE__ */ (0, I.jsx)(uS.article, {
+ return /* @__PURE__ */ (0, I.jsx)(fS.article, {
layout: !0,
layoutDependency: `${i.x}:${i.y}:${i.width}:${i.height}`,
"data-wall-tile": t.key,
@@ -57886,7 +57871,7 @@ function Sxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
},
whileHover: ae && !ne && !n && re ? { transform: `translateY(0px) scale(${(i.width + 12.16) / i.width},${(i.height + 12.16) / i.height})` } : void 0,
transition: ne ? { duration: 0 } : {
- layout: hxe,
+ layout: mxe,
transform: a ? {
type: "spring",
stiffness: 360,
@@ -57945,7 +57930,7 @@ function Sxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
style: { "--wall-progress": `${Math.min(100, Number(r.leave_ratio) * 100)}%` },
"aria-label": "观看进度"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(uS.span, {
+ /* @__PURE__ */ (0, I.jsx)(fS.span, {
"data-wall-dim": "",
animate: { opacity: w ? .65 : 0 },
transition: { duration: ne ? 0 : .24 }
@@ -57957,7 +57942,7 @@ function Sxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
!i && a ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, I.jsx)(uV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
children: a
}), /* @__PURE__ */ (0, I.jsx)(J, {
@@ -57987,20 +57972,20 @@ function Sxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: /* @__PURE__ */ (0, I.jsxs)(J, {
size: "small",
variant: "secondary",
- ...hV(r),
+ ...gV(r),
onClick: () => void qe(),
children: [r ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs() } }) : null, "载入更多"]
})
}) : null,
me ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, I.jsx)(uV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
children: me
}), /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "ghost",
- ...hV(r),
+ ...gV(r),
onClick: () => void qe(),
children: "立即重试"
})]
@@ -58029,7 +58014,7 @@ var AK = [
"jav",
"thumb"
];
-function Cxe(e = typeof location > "u" ? "/" : location.href) {
+function Sxe(e = typeof location > "u" ? "/" : location.href) {
let t = new URL(e, "http://localhost");
for (let e of [
...AK,
@@ -58039,7 +58024,7 @@ function Cxe(e = typeof location > "u" ? "/" : location.href) {
]) t.searchParams.delete(e);
return t.searchParams.set("thumb", "0"), t.pathname + (t.search ? t.search : "") + t.hash;
}
-async function wxe(e, t) {
+async function Cxe(e, t) {
let n = new URLSearchParams();
for (let t of AK) e[t] && n.set(t, e[t]);
let [r, i] = await Promise.all([t("/api/facets?" + n), t("/api/items?" + n + "&limit=5")]), a = [...new Set([
@@ -58054,7 +58039,7 @@ async function wxe(e, t) {
}
function jK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
let a = "<a class=\"geist-button primary\" href=\"/settings/library\">添加媒体</a>", o = "<a class=\"geist-button" + (i ? " primary" : "") + "\" href=\"/subscriptions?tab=add\">添加关注</a>";
- if (t || n) return Ws("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: n ? "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a><a class=\"geist-button\" href=\"/data-cleanup#libraryProcessing\">补全影片资料</a>" : `<a class="geist-button primary" href="${t ? z(Cxe()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
+ if (t || n) return Ws("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: n ? "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a><a class=\"geist-button\" href=\"/data-cleanup#libraryProcessing\">补全影片资料</a>" : `<a class="geist-button primary" href="${t ? z(Sxe()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
if (e !== "catalog") {
let t = (i ? {
tags: "标签",
@@ -58072,12 +58057,12 @@ function jK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
return Ws("play", "还没有视频", "添加媒体目录或关注来源,开始建立你的馆藏。", { actions: a + o });
}
// src/react/video-wall/wall-empty.ts
-function Txe({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
+function wxe({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
return e ? r || jK() : t ? Ws("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : Ws("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${EK()}">清除筛选</a>` });
}
// src/react/library-processing/processing-actions.tsx
function MK({ label: e, maintenance: t = !1, children: n }) {
- let r = _H("hover");
+ let r = vH("hover");
return /* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
role: "group",
@@ -58093,7 +58078,7 @@ function NK({ option: e, metadataOnly: t, onRun: n }) {
type: "button",
disabled: i,
title: r ? "请先在媒体库设置中开启视频预览生成" : void 0,
- className: q(NV, i ? "cursor-not-allowed opacity-50" : PV, "text-body-2-medium"),
+ className: q(PV, i ? "cursor-not-allowed opacity-50" : FV, "text-body-2-medium"),
onClick: () => n(e.command),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
@@ -58104,12 +58089,12 @@ function NK({ option: e, metadataOnly: t, onRun: n }) {
})
});
}
-function Exe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
+function Txe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
let [a, o] = (0, F.useState)(t), [s, c] = (0, F.useState)(), [l, u] = (0, F.useState)("");
(0, F.useEffect)(() => {
let t = new AbortController(), r, i = async (a) => {
try {
- let o = await w_e(e, t.signal, a);
+ let o = await C_e(e, t.signal, a);
if (!o.traffic) throw Error("服务端未提供流量预估");
if (t.signal.aborted) return;
c(o.traffic), n.confirmButton.disabled = !1, o.traffic.inventory?.token && (r = setTimeout(() => {
@@ -58134,7 +58119,7 @@ function Exe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
className: "flex justify-center",
- children: /* @__PURE__ */ (0, I.jsx)(wH, {
+ children: /* @__PURE__ */ (0, I.jsx)(TH, {
value: a,
busy: i,
onChange: (e) => {
@@ -58142,7 +58127,7 @@ function Exe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}
})
}),
- s ? /* @__PURE__ */ (0, I.jsx)(qH, {
+ s ? /* @__PURE__ */ (0, I.jsx)(JH, {
traffic: s,
initial: !0
}) : null,
@@ -58202,7 +58187,7 @@ function PK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
description: "为已入库的本地视频生成九宫格",
command: { stage: "previews" }
}
- ], v = e || t, y = e ? hV(!0) : t ? { "aria-disabled": !0 } : {}, b = (a) => {
+ ], v = e || t, y = e ? gV(!0) : t ? { "aria-disabled": !0 } : {}, b = (a) => {
if (e) return;
if (t) {
s?.();
@@ -58237,7 +58222,7 @@ function PK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
});
};
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Exe, {
+ u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Txe, {
command: u.command,
dialog: u.dialog,
speed: i,
@@ -58246,11 +58231,11 @@ function PK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
f.current = e;
}
}), u.host) : null,
- u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(mH, {
+ u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(hH, {
href: "/settings/library",
size: "small",
variant: "primary",
- trailingIcon: vB,
+ trailingIcon: bB,
disabled: v,
onClick: (e) => {
u.dialog.confirmButton.getAttribute("aria-busy") === "true" ? e.preventDefault() : u.dialog.close();
@@ -58268,7 +58253,7 @@ function PK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}), /* @__PURE__ */ (0, I.jsx)(J, {
ref: c,
iconOnly: !0,
- leadingIcon: _B,
+ leadingIcon: yB,
"aria-label": "更多同步方式",
"aria-haspopup": "dialog",
"aria-expanded": p,
@@ -58278,14 +58263,14 @@ function PK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}
})]
}),
- /* @__PURE__ */ (0, I.jsx)(dz, {
+ /* @__PURE__ */ (0, I.jsx)(pz, {
triggerRef: c,
isOpen: p,
onOpenChange: m,
placement: "bottom end",
offset: 4,
- className: MV,
- children: /* @__PURE__ */ (0, I.jsxs)(wz, {
+ className: NV,
+ children: /* @__PURE__ */ (0, I.jsxs)(Ez, {
"aria-label": "同步方式",
className: "flex w-80 flex-col gap-1 outline-none",
children: [n ? /* @__PURE__ */ (0, I.jsxs)(MK, {
@@ -58325,40 +58310,40 @@ function FK(e, t) {
return [...new Set(e.filter((e) => (!e.medium || e.medium === "video") && (!/\.(strm|iso)$/i.test(e.name || "") || !!e.code) && !e.disposal && e.location !== "online" && (e.location === "local" || !!e.code) && !To(e, "small", !1, t).html).map((e) => e.id))];
}
function IK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
- return e.length ? /* @__PURE__ */ (0, I.jsx)(Dxe, {
+ return e.length ? /* @__PURE__ */ (0, I.jsx)(Exe, {
assetIds: e,
onComplete: t,
className: n
}) : null;
}
-function Dxe({ assetIds: e, onComplete: t, className: n }) {
+function Exe({ assetIds: e, onComplete: t, className: n }) {
let r = Ft({
- queryKey: QV,
- queryFn: ({ signal: e }) => oH(e),
- refetchInterval: (e) => lH(e.state.data, !0)
+ queryKey: $V,
+ queryFn: ({ signal: e }) => sH(e),
+ refetchInterval: (e) => uH(e.state.data, !0)
}), [i, a] = (0, F.useState)(null), [o, s] = (0, F.useState)(""), c = (0, F.useRef)(null), l = It({
- mutationFn: (t) => V(ZV, {
+ mutationFn: (t) => V(QV, {
...t,
asset_ids: e
}),
onSuccess: (e) => {
- a(e.job_id || null), H.setQueryData(QV, e), H.invalidateQueries({ queryKey: QV });
+ a(e.job_id || null), H.setQueryData($V, e), H.invalidateQueries({ queryKey: $V });
}
}), u = r.data;
(0, F.useEffect)(() => {
- u && i && u.job_id === i && !tH(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), H.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
+ u && i && u.job_id === i && !nH(u) && c.current !== i && (c.current = i, u.status === "complete" && s(`补全完成:取得 ${u.covers || 0} 张封面,生成 ${u.previews || 0} 部视频预览。`), H.invalidateQueries({ queryKey: ["catalog-grid"] }), t?.());
}, [
u,
i,
t
]);
- let d = l.isPending || tH(u), f = l.error ? lr(l.error) : r.error ? cH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${tH(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
+ let d = l.isPending || nH(u), f = l.error ? lr(l.error) : r.error ? lH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${nH(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
return /* @__PURE__ */ (0, I.jsx)("section", {
"aria-label": "补全预览",
"aria-live": "polite",
"data-library-completion": "",
className: q("@container", n),
- children: /* @__PURE__ */ (0, I.jsxs)(uV, {
+ children: /* @__PURE__ */ (0, I.jsxs)(dV, {
tone: f ? "warning" : "neutral",
action: /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex flex-wrap items-center gap-2",
@@ -58373,10 +58358,10 @@ function Dxe({ assetIds: e, onComplete: t, className: n }) {
children: [
p,
" ",
- /* @__PURE__ */ (0, I.jsx)(mH, {
+ /* @__PURE__ */ (0, I.jsx)(hH, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: vB,
+ trailingIcon: bB,
children: f ? "打开扫描与采集" : "查看处理详情"
})
]
@@ -58384,22 +58369,22 @@ function Dxe({ assetIds: e, onComplete: t, className: n }) {
});
}
// node_modules/@tanstack/react-table/dist/FlexRender.js
-function Oxe(e) {
- return kxe(e) || typeof e == "function" || Axe(e);
+function Dxe(e) {
+ return Oxe(e) || typeof e == "function" || kxe(e);
}
-function kxe(e) {
+function Oxe(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function Axe(e) {
+function kxe(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
function LK(e, t) {
- return e == null ? null : Oxe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;
+ return e == null ? null : Dxe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;
}
-function jxe(e) {
+function Axe(e) {
if ("cell" in e && e.cell) {
let t = e.cell, n = t.column.columnDef, r = t, i = n;
return r.getIsAggregated?.() ? LK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : LK(n.cell, t.getContext());
@@ -58408,7 +58393,7 @@ function jxe(e) {
}
// node_modules/@tanstack/store/dist/alien.js
/* @__NO_SIDE_EFFECTS__ */
-function Mxe({ update: e, notify: t, unwatched: n }) {
+function jxe({ update: e, notify: t, unwatched: n }) {
return {
link: r,
unlink: i,
@@ -58525,7 +58510,7 @@ function Mxe({ update: e, notify: t, unwatched: n }) {
}
}
// node_modules/@tanstack/store/dist/atom.js
-function Nxe(e, t, n) {
+function Mxe(e, t, n) {
let r = typeof e == "object", i = r ? e : void 0;
return {
next: (r ? e.next : e)?.bind(i),
@@ -58533,7 +58518,7 @@ function Nxe(e, t, n) {
complete: (r ? e.complete : n)?.bind(i)
};
}
-var RK = [], zK = 0, { link: BK, unlink: Pxe, propagate: Fxe, checkDirty: VK, shallowPropagate: HK } = /* @__PURE__ */ Mxe({
+var RK = [], zK = 0, { link: BK, unlink: Nxe, propagate: Pxe, checkDirty: VK, shallowPropagate: HK } = /* @__PURE__ */ jxe({
update(e) {
return e._update();
},
@@ -58544,7 +58529,7 @@ var RK = [], zK = 0, { link: BK, unlink: Pxe, propagate: Fxe, checkDirty: VK, sh
e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, qK(e));
}
}), UK = 0, WK = 0, GK, KK = 0;
-function Ixe(e) {
+function Fxe(e) {
try {
++KK, e();
} finally {
@@ -58553,7 +58538,7 @@ function Ixe(e) {
}
function qK(e) {
let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
- for (; n !== void 0;) n = Pxe(n, e);
+ for (; n !== void 0;) n = Nxe(n, e);
}
function JK() {
if (!(KK > 0)) {
@@ -58564,7 +58549,7 @@ function JK() {
UK = 0, WK = 0;
}
}
-function Lxe(e, t) {
+function Ixe(e, t) {
let n = typeof e == "function", r = e, i = {
_snapshot: n ? void 0 : e,
subs: void 0,
@@ -58576,7 +58561,7 @@ function Lxe(e, t) {
return GK !== void 0 && BK(i, GK, zK), i._snapshot;
},
subscribe(e) {
- let t = Nxe(e), n = { current: !1 }, r = Rxe(() => {
+ let t = Mxe(e), n = { current: !1 }, r = Lxe(() => {
i.get(), n.current ? (GK = void 0, t.next?.(i._snapshot)) : n.current = !0;
});
return { unsubscribe: () => {
@@ -58608,11 +58593,11 @@ function Lxe(e, t) {
}) : i.set = function(e) {
if (i._update(e)) {
let e = i.subs;
- e !== void 0 && (Fxe(e), HK(e), JK());
+ e !== void 0 && (Pxe(e), HK(e), JK());
}
}, i;
}
-function Rxe(e) {
+function Lxe(e) {
let t = () => {
let t = GK;
GK = n, ++zK, n.depsTail = void 0, n.flags = 6;
@@ -58661,8 +58646,8 @@ function XK(e) {
return Object.keys(e).concat(Object.getOwnPropertySymbols(e));
}
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
-var zxe = /* @__PURE__ */ o(((e) => {
- var t = A(), n = nw();
+var Rxe = /* @__PURE__ */ o(((e) => {
+ var t = A(), n = rw();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -58707,32 +58692,32 @@ var zxe = /* @__PURE__ */ o(((e) => {
}, [p]), l(p), p;
};
})), ZK = /* @__PURE__ */ o(((e, t) => {
- t.exports = zxe();
-})), Bxe = ZK();
-function Vxe(e, t) {
+ t.exports = Rxe();
+})), zxe = ZK();
+function Bxe(e, t) {
return e === t;
}
function QK(e, t = (e) => e, n) {
- let r = n?.compare ?? Vxe, i = (0, F.useCallback)((t) => {
+ let r = n?.compare ?? Bxe, i = (0, F.useCallback)((t) => {
let { unsubscribe: n } = e.subscribe(t);
return n;
}, [e]), a = (0, F.useCallback)(() => e.get(), [e]);
- return (0, Bxe.useSyncExternalStoreWithSelector)(i, a, a, t, r);
+ return (0, zxe.useSyncExternalStoreWithSelector)(i, a, a, t, r);
}
// node_modules/@tanstack/react-table/dist/Subscribe.js
-function Hxe(e) {
+function Vxe(e) {
let t = QK(e.source, e.selector, { compare: YK });
return typeof e.children == "function" ? e.children(t) : e.children;
}
// node_modules/@tanstack/table-core/dist/core/reactivity/coreReactivityFeature.utils.js
-function Uxe(e) {
+function Hxe(e) {
let t = e;
return Object.defineProperty(e, "state", { get() {
return e.get();
} }), "set" in e && (t.setState = e.set.bind(e)), t;
}
// node_modules/@tanstack/table-core/dist/core/reactivity/renderPhaseReactivity.js
-function Wxe(e) {
+function Uxe(e) {
let { createAtom: t, batch: n } = e, r = t(0);
return {
createOptionsStore: !1,
@@ -58762,7 +58747,7 @@ function Wxe(e) {
}
};
}
-function Gxe(e, t = Object.is) {
+function Wxe(e, t = Object.is) {
let n = !1, r;
return {
get: e.get,
@@ -58775,10 +58760,10 @@ function Gxe(e, t = Object.is) {
};
}
// node_modules/@tanstack/react-table/dist/reactivity.js
-function Kxe() {
- return Wxe({
- createAtom: Lxe,
- batch: Ixe
+function Gxe() {
+ return Uxe({
+ createAtom: Ixe,
+ batch: Fxe
});
}
// node_modules/@tanstack/table-core/dist/utils.js
@@ -58832,9 +58817,9 @@ function aq(e) {
function oq(e) {
return Reflect.ownKeys(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
-var qxe = 3;
-function Jxe(e, t) {
- return sq(e, t, qxe);
+var Kxe = 3;
+function qxe(e, t) {
+ return sq(e, t, Kxe);
}
function sq(e, t, n) {
if (Object.is(e, t)) return !0;
@@ -58848,17 +58833,17 @@ function sq(e, t, n) {
}
return !0;
}
-function cq(e, t, n, r = Jxe) {
+function cq(e, t, n, r = qxe) {
let i = `on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`, a = e.options[i];
a && a((e) => {
let t = $K(n, e);
return r(e, t) ? e : t;
});
}
-function Yxe(e) {
+function Jxe(e) {
return e instanceof Function;
}
-function Xxe(e, t) {
+function Yxe(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -58868,7 +58853,7 @@ function Xxe(e, t) {
};
return r(e), n;
}
-var Zxe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
+var Xxe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
let o = [], s;
return (c) => {
i?.();
@@ -58893,7 +58878,7 @@ function uq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ..
let { schedule: e, untrack: t } = i._reactivity;
e(() => t(() => r()));
} : void 0 };
- return Zxe({
+ return Xxe({
...a,
...o
});
@@ -58946,13 +58931,13 @@ function mq(e, t, n, ...r) {
return e[t]?.(...r) ?? n(e, ...r);
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.utils.js
-function Qxe(e) {
+function Zxe(e) {
return e.row.getValue(e.column.id);
}
-function $xe(e) {
+function Qxe(e) {
return e.getValue() ?? e.table.options.renderFallbackValue;
}
-function eSe(e) {
+function $xe(e) {
return {
table: e.table,
column: e.column,
@@ -58963,18 +58948,18 @@ function eSe(e) {
};
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.js
-var tSe = { assignCellPrototype: (e, t) => {
+var eSe = { assignCellPrototype: (e, t) => {
pq("coreCellsFeature", e, t, {
- cell_getValue: { fn: (e) => Qxe(e) },
- cell_renderValue: { fn: (e) => $xe(e) },
+ cell_getValue: { fn: (e) => Zxe(e) },
+ cell_renderValue: { fn: (e) => Qxe(e) },
cell_getContext: {
- fn: (e) => eSe(e),
+ fn: (e) => $xe(e),
memoDeps: (e) => [e]
}
});
} };
// node_modules/@tanstack/table-core/dist/core/columns/constructColumn.js
-function nSe(e) {
+function tSe(e) {
if (!e._columnPrototype) {
e._columnPrototype = { table: e };
let t = Object.values(e._features);
@@ -58982,7 +58967,7 @@ function nSe(e) {
}
return e._columnPrototype;
}
-function rSe(e, t, n, r) {
+function nSe(e, t, n, r) {
let i = {
...e.getDefaultColumnDef(),
...t
@@ -59002,7 +58987,7 @@ function rSe(e, t, n, r) {
} else c = (e) => e[i.accessorKey];
}
if (!s) throw Error();
- let l = nSe(e), u = Object.create(l);
+ let l = tSe(e), u = Object.create(l);
u.accessorFn = c, u.columnDef = i, u.columns = [], u.depth = n, u.id = `${String(s)}`, u.parent = r;
let d = e._columnInstanceInitFns;
for (let e = 0; e < d.length; e++) d[e](u);
@@ -59012,7 +58997,7 @@ function rSe(e, t, n, r) {
function hq(e) {
return e.getIsVisible?.() ?? !0;
}
-function iSe(e) {
+function rSe(e) {
return e.getVisibleLeafColumns?.() ?? e.getAllLeafColumns();
}
function gq(e, t) {
@@ -59025,30 +59010,30 @@ function _q(e, t, n, r) {
function vq(e, t) {
return e._expandRows?.(t) ?? t;
}
-function aSe(e) {
+function iSe(e) {
e.autoResetExpanded?.();
}
function yq(e) {
e.autoResetPageIndex?.();
}
-function oSe(e) {
+function aSe(e) {
e.autoResetSorting?.();
}
-function sSe(e) {
+function oSe(e) {
e.autoResetCellSelection?.();
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.utils.js
-function cSe(e) {
+function sSe(e) {
return [e, ...e.columns.flatMap((e) => e.getFlatColumns())];
}
-function lSe(e) {
+function cSe(e) {
if (e.columns.length) {
let t = e.columns.flatMap((e) => e.getLeafColumns());
return gq(e.table, t);
}
return [e];
}
-function uSe(e) {
+function lSe(e) {
return {
header: (e) => {
let t = e.header.column.columnDef;
@@ -59063,18 +59048,18 @@ function bq(e, t, n, r = 0) {
let i = Array(t.length);
for (let a = 0; a < t.length; a++) {
if (!(a in t)) continue;
- let o = t[a], s = rSe(e, o, r, n), c = o;
+ let o = t[a], s = nSe(e, o, r, n), c = o;
s.columns = c.columns ? bq(e, c.columns, s, r + 1) : [], i[a] = s;
}
return i;
}
-function dSe(e) {
+function uSe(e) {
return bq(e, e.options.columns);
}
-function fSe(e) {
+function dSe(e) {
return e.getAllColumns().flatMap((e) => e.getFlatColumns());
}
-function pSe(e) {
+function fSe(e) {
let t = nq(), n = e.getAllFlatColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
@@ -59082,10 +59067,10 @@ function pSe(e) {
}
return t;
}
-function mSe(e) {
+function pSe(e) {
return gq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
}
-function hSe(e) {
+function mSe(e) {
let t = nq(), n = e.getAllLeafColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
@@ -59093,19 +59078,19 @@ function hSe(e) {
}
return t;
}
-function gSe(e, t) {
+function hSe(e, t) {
return e.getAllFlatColumnsById()[t];
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.js
-var _Se = {
+var gSe = {
assignColumnPrototype: (e, t) => {
pq("coreColumnsFeature", e, t, {
column_getFlatColumns: {
- fn: (e) => cSe(e),
+ fn: (e) => sSe(e),
memoDeps: (e) => [e.table.options.columns]
},
column_getLeafColumns: {
- fn: (e) => lSe(e),
+ fn: (e) => cSe(e),
memoDeps: (e) => [
e.table.atoms.columnOrder?.get(),
e.table.atoms.grouping?.get(),
@@ -59118,23 +59103,23 @@ var _Se = {
constructTableAPIs: (e) => {
fq("coreColumnsFeature", e, {
table_getDefaultColumnDef: {
- fn: () => uSe(e),
+ fn: () => lSe(e),
memoDeps: () => [e.options.defaultColumn]
},
table_getAllColumns: {
- fn: () => dSe(e),
+ fn: () => uSe(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumns: {
- fn: () => fSe(e),
+ fn: () => dSe(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumnsById: {
- fn: () => pSe(e),
+ fn: () => fSe(e),
memoDeps: () => [e.options.columns]
},
table_getAllLeafColumns: {
- fn: () => mSe(e),
+ fn: () => pSe(e),
memoDeps: () => [
e.atoms.columnOrder?.get(),
e.atoms.grouping?.get(),
@@ -59143,15 +59128,15 @@ var _Se = {
]
},
table_getAllLeafColumnsById: {
- fn: () => hSe(e),
+ fn: () => mSe(e),
memoDeps: () => [e.getAllLeafColumns()]
},
- table_getColumn: { fn: (t) => gSe(e, t) }
+ table_getColumn: { fn: (t) => hSe(e, t) }
});
}
};
// node_modules/@tanstack/table-core/dist/core/headers/constructHeader.js
-function vSe(e) {
+function _Se(e) {
if (!e._headerPrototype) {
e._headerPrototype = { table: e };
let t = Object.values(e._features);
@@ -59160,7 +59145,7 @@ function vSe(e) {
return e._headerPrototype;
}
function xq(e, t, n) {
- let r = vSe(e), i = Object.create(r);
+ let r = _Se(e), i = Object.create(r);
i.colSpan = 0, i.column = t, i.depth = n.depth, i.headerGroup = null, i.id = n.id ?? t.id, i.index = n.index, i.isPlaceholder = !!n.isPlaceholder, i.placeholderId = n.placeholderId, i.rowSpan = 0, i.subHeaders = [];
let a = e._headerInstanceInitFns;
for (let e = 0; e < a.length; e++) a[e](i);
@@ -59175,14 +59160,14 @@ function Sq(e, t = 1) {
}
return n;
}
-function ySe(e, t) {
+function vSe(e, t) {
return e ? `${e}_${t}` : String(t);
}
-function bSe(e, t, n, r) {
+function ySe(e, t, n, r) {
let i = e ?? "";
return t && (i = i ? `${i}_${t}` : String(t)), n && (i = i ? `${i}_${n}` : n), r && (i = i ? `${i}_${r}` : r), i;
}
-function xSe(e, t) {
+function bSe(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) e[r].column === t && n++;
return n;
@@ -59190,7 +59175,7 @@ function xSe(e, t) {
function Cq(e, t, n, r, i, a) {
let o = {
depth: t,
- id: ySe(r, t),
+ id: vSe(r, t),
headers: []
}, s = [];
for (let i = 0; i < e.length; i++) {
@@ -59199,9 +59184,9 @@ function Cq(e, t, n, r, i, a) {
if (l && a.column.parent ? u = a.column.parent : (u = a.column, d = !0), c && c.column === u) c.subHeaders.push(a);
else {
let e = xq(n, u, {
- id: bSe(r, t, u.id, a.id),
+ id: ySe(r, t, u.id, a.id),
isPlaceholder: d,
- placeholderId: d ? String(xSe(s, u)) : void 0,
+ placeholderId: d ? String(bSe(s, u)) : void 0,
depth: t,
index: s.length
});
@@ -59231,7 +59216,7 @@ function wq(e) {
} else n.rowSpan = 1;
}
}
-function SSe(e, t, n, r) {
+function xSe(e, t, n, r) {
let i = Sq(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
for (let e = 0; e < t.length; e++) e in t && (s[e] = xq(n, t[e], {
depth: i,
@@ -59244,24 +59229,24 @@ function Tq(e, t) {
for (let n = 0; n < e.subHeaders.length; n++) Tq(e.subHeaders[n], t);
t.push(e);
}
-function CSe(e) {
+function SSe(e) {
let t = [];
return Tq(e, t), t;
}
-function wSe(e) {
+function CSe(e) {
return {
column: e.column,
header: e,
table: e.column.table
};
}
-function TSe(e) {
- return SSe(e.getAllColumns(), _q(e, iSe(e), (e) => e.id), e);
+function wSe(e) {
+ return xSe(e.getAllColumns(), _q(e, rSe(e), (e) => e.id), e);
}
-function ESe(e) {
+function TSe(e) {
return [...e.getHeaderGroups()].reverse();
}
-function DSe(e) {
+function ESe(e) {
let t = e.getHeaderGroups(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].headers;
@@ -59269,7 +59254,7 @@ function DSe(e) {
}
return n;
}
-function OSe(e) {
+function DSe(e) {
let t = e.getHeaderGroups()[0]?.headers ?? [], n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].getLeafHeaders();
@@ -59278,15 +59263,15 @@ function OSe(e) {
return n;
}
// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.js
-var kSe = {
+var OSe = {
assignHeaderPrototype: (e, t) => {
pq("coreHeadersFeature", e, t, {
header_getLeafHeaders: {
- fn: (e) => CSe(e),
+ fn: (e) => SSe(e),
memoDeps: (e) => [e.column.table.options.columns]
},
header_getContext: {
- fn: (e) => wSe(e),
+ fn: (e) => CSe(e),
memoDeps: (e) => [e.column.table.options.columns]
}
});
@@ -59294,7 +59279,7 @@ var kSe = {
constructTableAPIs: (e) => {
fq("coreHeadersFeature", e, {
table_getHeaderGroups: {
- fn: () => TSe(e),
+ fn: () => wSe(e),
memoDeps: () => [
e.options.columns,
e.atoms.columnOrder?.get(),
@@ -59305,22 +59290,22 @@ var kSe = {
]
},
table_getFooterGroups: {
- fn: () => ESe(e),
+ fn: () => TSe(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getFlatHeaders: {
- fn: () => DSe(e),
+ fn: () => ESe(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getLeafHeaders: {
- fn: () => OSe(e),
+ fn: () => DSe(e),
memoDeps: () => [e.getHeaderGroups()]
}
});
}
};
// node_modules/@tanstack/table-core/dist/core/rows/constructRow.js
-function ASe(e) {
+function kSe(e) {
if (!e._rowPrototype) {
e._rowPrototype = { table: e };
let t = Object.values(e._features);
@@ -59328,35 +59313,35 @@ function ASe(e) {
}
return e._rowPrototype;
}
-var jSe = (e, t, n, r, i, a, o) => {
- let s = ASe(e), c = Object.create(s);
+var ASe = (e, t, n, r, i, a, o) => {
+ let s = kSe(e), c = Object.create(s);
c._displayIndexCache = -1, c._uniqueValuesCache = nq(), c._valuesCache = nq(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];
let l = e._rowInstanceInitFns;
for (let e = 0; e < l.length; e++) l[e](c);
return c;
};
// node_modules/@tanstack/table-core/dist/core/row-models/createCoreRowModel.js
-function MSe() {
+function jSe() {
return (e) => uq({
feature: "coreRowModelsFeature",
table: e,
fnName: "table.getCoreRowModel",
memoDeps: () => [e.options.data],
- fn: () => NSe(e, e.options.data),
+ fn: () => MSe(e, e.options.data),
onAfterUpdate: lq(() => {
- aSe(e), yq(e), oSe(e), sSe(e);
+ iSe(e), yq(e), aSe(e), oSe(e);
})
});
}
function Eq(e, t, n, r = 0, i) {
let a = [];
for (let o = 0; o < n.length; o++) {
- let s = n[o], c = jSe(e, e.getRowId(s, o, i), s, o, r, void 0, i?.id);
+ let s = n[o], c = ASe(e, e.getRowId(s, o, i), s, o, r, void 0, i?.id);
t.flatRows.push(c), t.rowsById[c.id] = c, a.push(c), e.options.getSubRows && (c.originalSubRows = e.options.getSubRows(s, o), c.originalSubRows?.length && (c.subRows = Eq(e, t, c.originalSubRows, r + 1, c)));
}
return a;
}
-function NSe(e, t) {
+function MSe(e, t) {
let n = {
rows: [],
flatRows: [],
@@ -59365,61 +59350,61 @@ function NSe(e, t) {
return n.rows = Eq(e, n, t), n;
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.utils.js
-function PSe(e) {
- return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? MSe()(e)), e._rowModels.coreRowModel();
+function NSe(e) {
+ return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? jSe()(e)), e._rowModels.coreRowModel();
}
-function FSe(e) {
+function PSe(e) {
return e.getCoreRowModel();
}
-function ISe(e) {
+function FSe(e) {
return e._rowModels.filteredRowModel || (e._rowModels.filteredRowModel = e.options.features.filteredRowModel?.(e)), e.options.manualFiltering || !e._rowModels.filteredRowModel ? e.getPreFilteredRowModel() : e._rowModels.filteredRowModel();
}
-function LSe(e) {
+function ISe(e) {
return e.getFilteredRowModel();
}
-function RSe(e) {
+function LSe(e) {
return e._rowModels.groupedRowModel || (e._rowModels.groupedRowModel = e.options.features.groupedRowModel?.(e)), e.options.manualGrouping || !e._rowModels.groupedRowModel ? e.getPreGroupedRowModel() : e._rowModels.groupedRowModel();
}
-function zSe(e) {
+function RSe(e) {
return e.getGroupedRowModel();
}
-function BSe(e) {
+function zSe(e) {
return e._rowModels.sortedRowModel || (e._rowModels.sortedRowModel = e.options.features.sortedRowModel?.(e)), e.options.manualSorting || !e._rowModels.sortedRowModel ? e.getPreSortedRowModel() : e._rowModels.sortedRowModel();
}
-function VSe(e) {
+function BSe(e) {
return e.getSortedRowModel();
}
-function HSe(e) {
+function VSe(e) {
return e._rowModels.expandedRowModel || (e._rowModels.expandedRowModel = e.options.features.expandedRowModel?.(e)), e.options.manualExpanding || !e._rowModels.expandedRowModel ? e.getPreExpandedRowModel() : e._rowModels.expandedRowModel();
}
-function USe(e) {
+function HSe(e) {
return e.getExpandedRowModel();
}
-function WSe(e) {
+function USe(e) {
return e._rowModels.paginatedRowModel || (e._rowModels.paginatedRowModel = e.options.features.paginatedRowModel?.(e)), e.options.manualPagination || !e._rowModels.paginatedRowModel ? e.getPrePaginatedRowModel() : e._rowModels.paginatedRowModel();
}
-function GSe(e) {
+function WSe(e) {
return e.getPaginatedRowModel();
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.js
-var KSe = { constructTableAPIs: (e) => {
+var GSe = { constructTableAPIs: (e) => {
fq("coreRowModelsFeature", e, {
- table_getCoreRowModel: { fn: () => PSe(e) },
- table_getPreFilteredRowModel: { fn: () => FSe(e) },
- table_getFilteredRowModel: { fn: () => ISe(e) },
- table_getPreGroupedRowModel: { fn: () => LSe(e) },
- table_getGroupedRowModel: { fn: () => RSe(e) },
- table_getPreSortedRowModel: { fn: () => zSe(e) },
- table_getSortedRowModel: { fn: () => BSe(e) },
- table_getPreExpandedRowModel: { fn: () => VSe(e) },
- table_getExpandedRowModel: { fn: () => HSe(e) },
- table_getPrePaginatedRowModel: { fn: () => USe(e) },
- table_getPaginatedRowModel: { fn: () => WSe(e) },
- table_getRowModel: { fn: () => GSe(e) }
+ table_getCoreRowModel: { fn: () => NSe(e) },
+ table_getPreFilteredRowModel: { fn: () => PSe(e) },
+ table_getFilteredRowModel: { fn: () => FSe(e) },
+ table_getPreGroupedRowModel: { fn: () => ISe(e) },
+ table_getGroupedRowModel: { fn: () => LSe(e) },
+ table_getPreSortedRowModel: { fn: () => RSe(e) },
+ table_getSortedRowModel: { fn: () => zSe(e) },
+ table_getPreExpandedRowModel: { fn: () => BSe(e) },
+ table_getExpandedRowModel: { fn: () => VSe(e) },
+ table_getPrePaginatedRowModel: { fn: () => HSe(e) },
+ table_getPaginatedRowModel: { fn: () => USe(e) },
+ table_getRowModel: { fn: () => WSe(e) }
});
} };
// node_modules/@tanstack/table-core/dist/core/cells/constructCell.js
-function qSe(e) {
+function KSe(e) {
if (!e._cellPrototype) {
e._cellPrototype = { table: e };
let t = Object.values(e._features);
@@ -59427,48 +59412,48 @@ function qSe(e) {
}
return e._cellPrototype;
}
-function JSe(e, t, n) {
- let r = qSe(n), i = Object.create(r);
+function qSe(e, t, n) {
+ let r = KSe(n), i = Object.create(r);
i.column = e, i.id = `${t.id}_${e.id}`, i.row = t;
let a = n._cellInstanceInitFns;
for (let e = 0; e < a.length; e++) a[e](i);
return i;
}
// node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.utils.js
-function YSe(e) {
+function JSe(e) {
let t = e.table.getRowsInDisplayOrder(), n = e._displayIndexCache;
return t[n] === e ? n : -1;
}
-function XSe(e) {
+function YSe(e) {
let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? vq(e, t).rows : t.rows;
for (let e = 0; e < n.length; e++) n[e]._displayIndexCache = e;
return n;
}
-function ZSe(e, t) {
+function XSe(e, t) {
if (rq(e._valuesCache, t)) return e._valuesCache[t];
let n = e.table.getColumn(t);
if (n?.accessorFn) return e._valuesCache[t] = n.accessorFn(e.original, e.index), e._valuesCache[t];
}
-function QSe(e, t) {
+function ZSe(e, t) {
if (rq(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
let n = e.table.getColumn(t);
if (n?.accessorFn) return n.columnDef.getUniqueValues ? (e._uniqueValuesCache[t] = n.columnDef.getUniqueValues(e.original, e.index), e._uniqueValuesCache[t]) : (e._uniqueValuesCache[t] = [e.getValue(t)], e._uniqueValuesCache[t]);
}
-function $Se(e, t) {
+function QSe(e, t) {
return e.getValue(t) ?? e.table.options.renderFallbackValue;
}
-function eCe(e) {
- return Xxe(e.subRows, (e) => e.subRows);
+function $Se(e) {
+ return Yxe(e.subRows, (e) => e.subRows);
}
-function tCe(e) {
+function eCe(e) {
let t = e.getCoreRowModel().flatRows, n = 0;
for (let e = 0; e < t.length; e++) n = Math.max(n, t[e].depth);
return n;
}
-function nCe(e) {
+function tCe(e) {
if (e.parentId) return e.table.getCoreRowModel().rowsById[e.parentId] ?? e.table.getRow(e.parentId, !0);
}
-function rCe(e) {
+function nCe(e) {
let t = [], n = e;
for (;;) {
let e = n.getParentRow();
@@ -59477,17 +59462,17 @@ function rCe(e) {
}
return t.reverse();
}
-function iCe(e) {
+function rCe(e) {
let t = e.table.getAllLeafColumns(), n = e._cellsCache;
n ||= e._cellsCache = /* @__PURE__ */ new WeakMap();
let r = Array(t.length);
for (let i = 0; i < t.length; i++) {
let a = t[i], o = n.get(a);
- o || (o = JSe(a, e, e.table), n.set(a, o)), r[i] = o;
+ o || (o = qSe(a, e, e.table), n.set(a, o)), r[i] = o;
}
return r;
}
-function aCe(e) {
+function iCe(e) {
let t = nq(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
@@ -59495,52 +59480,52 @@ function aCe(e) {
}
return t;
}
-function oCe(e, t, n, r) {
+function aCe(e, t, n, r) {
return t.options.getRowId?.(e, n, r) ?? (r ? `${r.id}.${n}` : String(n));
}
-function sCe(e, t, n) {
+function oCe(e, t, n) {
let r = (n ? e.getPrePaginatedRowModel() : e.getRowModel()).rowsById[t];
if (!r && (r = e.getCoreRowModel().rowsById[t], !r)) throw Error();
return r;
}
// node_modules/@tanstack/table-core/dist/core/rows/coreRowsFeature.js
-var cCe = {
+var sCe = {
assignRowPrototype: (e, t) => {
pq("coreRowsFeature", e, t, {
- row_getDisplayIndex: { fn: (e) => YSe(e) },
+ row_getDisplayIndex: { fn: (e) => JSe(e) },
row_getAllCellsByColumnId: {
- fn: (e) => aCe(e),
+ fn: (e) => iCe(e),
memoDeps: (e) => [e.getAllCells()]
},
row_getAllCells: {
- fn: (e) => iCe(e),
+ fn: (e) => rCe(e),
memoDeps: (e) => [e.table.getAllLeafColumns()]
},
row_getLeafRows: {
- fn: (e) => eCe(e),
+ fn: (e) => $Se(e),
memoDeps: (e) => [e.subRows]
},
- row_getParentRow: { fn: (e) => nCe(e) },
- row_getParentRows: { fn: (e) => rCe(e) },
- row_getUniqueValues: { fn: (e, t) => QSe(e, t) },
- row_getValue: { fn: (e, t) => ZSe(e, t) },
- row_renderValue: { fn: (e, t) => $Se(e, t) }
+ row_getParentRow: { fn: (e) => tCe(e) },
+ row_getParentRows: { fn: (e) => nCe(e) },
+ row_getUniqueValues: { fn: (e, t) => ZSe(e, t) },
+ row_getValue: { fn: (e, t) => XSe(e, t) },
+ row_renderValue: { fn: (e, t) => QSe(e, t) }
});
},
constructTableAPIs: (e) => {
fq("coreRowsFeature", e, {
table_getRowsInDisplayOrder: {
- fn: () => XSe(e),
+ fn: () => YSe(e),
memoDeps: () => [
e.getPrePaginatedRowModel().rows,
e.options.paginateExpandedRows,
e.options.paginateExpandedRows === !1 ? e.atoms.expanded?.get() : void 0
]
},
- table_getRowId: { fn: (t, n, r) => oCe(t, e, n, r) },
- table_getRow: { fn: (t, n) => sCe(e, t, n) },
+ table_getRowId: { fn: (t, n, r) => aCe(t, e, n, r) },
+ table_getRow: { fn: (t, n) => oCe(e, t, n) },
table_getMaxSubRowDepth: {
- fn: () => tCe(e),
+ fn: () => eCe(e),
memoDeps: () => [e.getCoreRowModel()]
}
});
@@ -59563,7 +59548,7 @@ function Oq(e, t, n = (e, t) => e === t) {
Dq(e, t, n), e._reactivity.commit?.();
});
}
-function lCe(e) {
+function cCe(e) {
let t = eq(e.initialState);
e._reactivity.batch(() => {
let n = Object.keys(t);
@@ -59575,7 +59560,7 @@ function lCe(e) {
let n = Object.values(e._features);
for (let t = 0; t < n.length; t++) n[t].resetTableInstanceData?.(e);
}
-function uCe(e, t) {
+function lCe(e, t) {
let { features: n, atoms: r, initialState: i } = e.options;
if (!e.options.mergeOptions) return {
...e.options,
@@ -59608,19 +59593,19 @@ function uCe(e, t) {
});
}
function kq(e, t, n) {
- let r = uCe(e, $K(t, e.options));
+ let r = lCe(e, $K(t, e.options));
e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && Oq(e, r.state ?? null);
}
// node_modules/@tanstack/table-core/dist/core/coreFeatures.js
-var dCe = {
- coreCellsFeature: tSe,
- coreColumnsFeature: _Se,
- coreHeadersFeature: kSe,
- coreRowModelsFeature: KSe,
- coreRowsFeature: cCe,
+var uCe = {
+ coreCellsFeature: eSe,
+ coreColumnsFeature: gSe,
+ coreHeadersFeature: OSe,
+ coreRowModelsFeature: GSe,
+ coreRowsFeature: sCe,
coreTablesFeature: { constructTableAPIs: (e) => {
fq("coreTablesFeature", e, {
- table_reset: { fn: () => lCe(e) },
+ table_reset: { fn: () => cCe(e) },
table_setOptions: { fn: (t) => kq(e, t) }
});
} }
@@ -59645,17 +59630,17 @@ function jq(e) {
return e;
}
// node_modules/@tanstack/table-core/dist/core/table/constructTable.js
-function fCe(e, t = {}) {
+function dCe(e, t = {}) {
return Object.values(e).forEach((e) => {
t = e.getInitialState?.(t) ?? t;
}), eq(t);
}
-function pCe(e) {
+function fCe(e) {
let t = e.features.coreReactivityFeature, { aggregationFns: n, columnMeta: r, coreRowModel: i, expandedRowModel: a, facetedMinMaxValues: o, facetedRowModel: s, facetedUniqueValues: c, filterFns: l, filterMeta: u, filteredRowModel: d, groupedRowModel: f, paginatedRowModel: p, sortFns: m, sortedRowModel: h, tableMeta: g, ..._ } = e.features, v = {
_cellInstanceInitFns: [],
_columnInstanceInitFns: [],
_features: {
- ...dCe,
+ ...uCe,
..._
},
_headerGroupInstanceInitFns: [],
@@ -59693,7 +59678,7 @@ function pCe(e) {
set(e) {
v.optionsStore.set(() => e);
}
- })) : v.options = b, v.initialState = fCe(v._features, v.options.initialState);
+ })) : v.options = b, v.initialState = dCe(v._features, v.options.initialState);
let x = Object.keys(v.initialState);
for (let e = 0; e < x.length; e++) {
let n = x[e];
@@ -59708,7 +59693,7 @@ function pCe(e) {
return r;
}, { debugName: `table/atoms/${n}` });
}
- Dq(v), v.store = Uxe(t.createReadonlyAtom(() => {
+ Dq(v), v.store = Hxe(t.createReadonlyAtom(() => {
let e = {};
for (let t = 0; t < x.length; t++) {
let n = x[t];
@@ -59726,7 +59711,7 @@ function pCe(e) {
return v;
}
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.utils.js
-function mCe() {
+function pCe() {
return nq();
}
function Mq(e, t) {
@@ -59748,12 +59733,12 @@ function Nq(e) {
function Pq(e) {
return (e.columnDef.enableHiding ?? !0) && (e.table.options.enableHiding ?? !0);
}
-function hCe(e) {
+function mCe(e) {
return (t) => {
Mq(e, t.target.checked);
};
}
-function gCe(e) {
+function hCe(e) {
let t = e.getAllCells(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e];
@@ -59769,16 +59754,16 @@ function Fq(e) {
}
return t;
}
-function _Ce(e) {
+function gCe(e) {
return e.getAllFlatColumns().filter((e) => mq(e, "getIsVisible", Nq));
}
-function vCe(e) {
+function _Ce(e) {
return e.getAllLeafColumns().filter((e) => mq(e, "getIsVisible", Nq));
}
function Iq(e, t) {
cq(e, "columnVisibility", t);
}
-function yCe(e, t) {
+function vCe(e, t) {
Iq(e, t ? nq() : Object.assign(nq(), eq(e.initialState.columnVisibility ?? {})));
}
function Lq(e, t) {
@@ -59793,10 +59778,10 @@ function Lq(e, t) {
function Rq(e) {
return !e.getAllLeafColumns().some((e) => !mq(e, "getIsVisible", Nq));
}
-function bCe(e) {
+function yCe(e) {
return e.getAllLeafColumns().some((e) => mq(e, "getIsVisible", Nq));
}
-function xCe(e) {
+function bCe(e) {
return (t) => {
Lq(e, t.target.checked);
};
@@ -59804,7 +59789,7 @@ function xCe(e) {
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.js
var zq = {
getInitialState: (e) => ({
- columnVisibility: mCe(),
+ columnVisibility: pCe(),
...e
}),
getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: iq("columnVisibility", e) }),
@@ -59819,14 +59804,14 @@ var zq = {
]
},
column_getCanHide: { fn: (e) => Pq(e) },
- column_getToggleVisibilityHandler: { fn: (e) => hCe(e) },
+ column_getToggleVisibilityHandler: { fn: (e) => mCe(e) },
column_toggleVisibility: { fn: (e, t) => Mq(e, t) }
});
},
assignRowPrototype: (e, t) => {
pq("columnVisibilityFeature", e, t, {
row_getVisibleCells: {
- fn: (e) => gCe(e),
+ fn: (e) => hCe(e),
memoDeps: (e) => [
e.getAllCells(),
t.atoms.columnPinning?.get(),
@@ -59842,7 +59827,7 @@ var zq = {
constructTableAPIs: (e) => {
fq("columnVisibilityFeature", e, {
table_getVisibleFlatColumns: {
- fn: () => _Ce(e),
+ fn: () => gCe(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -59852,7 +59837,7 @@ var zq = {
]
},
table_getVisibleLeafColumns: {
- fn: () => vCe(e),
+ fn: () => _Ce(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -59862,11 +59847,11 @@ var zq = {
]
},
table_setColumnVisibility: { fn: (t) => Iq(e, t) },
- table_resetColumnVisibility: { fn: (t) => yCe(e, t) },
+ table_resetColumnVisibility: { fn: (t) => vCe(e, t) },
table_toggleAllColumnsVisible: { fn: (t) => Lq(e, t) },
table_getIsAllColumnsVisible: { fn: () => Rq(e) },
- table_getIsSomeColumnsVisible: { fn: () => bCe(e) },
- table_getToggleAllColumnsVisibilityHandler: { fn: () => xCe(e) }
+ table_getIsSomeColumnsVisible: { fn: () => yCe(e) },
+ table_getToggleAllColumnsVisibilityHandler: { fn: () => bCe(e) }
});
}
}, Bq = 0, Vq = 10;
@@ -59876,7 +59861,7 @@ function Hq() {
pageSize: Vq
};
}
-function SCe(e) {
+function xCe(e) {
if (e.options.autoResetAll ?? e.options.autoResetPageIndex ?? !e.options.manualPagination) {
if ((e.atoms.pagination?.get()?.pageIndex ?? Bq) === Bq) return;
Gq(e, !0);
@@ -59885,7 +59870,7 @@ function SCe(e) {
function Uq(e, t) {
cq(e, "pagination", t);
}
-function CCe(e, t) {
+function SCe(e, t) {
Uq(e, t ? Hq() : eq(e.initialState.pagination ?? Hq()));
}
function Wq(e, t) {
@@ -59900,7 +59885,7 @@ function Wq(e, t) {
function Gq(e, t) {
Wq(e, t ? Bq : e.initialState.pagination?.pageIndex ?? Bq);
}
-function wCe(e, t) {
+function CCe(e, t) {
Kq(e, t ? Vq : e.initialState.pagination?.pageSize ?? Vq);
}
function Kq(e, t) {
@@ -59913,31 +59898,31 @@ function Kq(e, t) {
};
});
}
-function TCe(e) {
+function wCe(e) {
let t = qq(e), n = [];
return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;
}
-function ECe(e) {
+function TCe(e) {
return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;
}
-function DCe(e) {
+function ECe(e) {
let t = e.atoms.pagination?.get()?.pageIndex ?? Bq, n = qq(e);
return n === -1 || n !== 0 && t < n - 1;
}
-function OCe(e) {
+function DCe(e) {
let t = e.atoms.pagination?.get()?.pageIndex ?? Bq, n = qq(e);
return Number.isFinite(n) && n > 0 && t < n - 1;
}
-function kCe(e) {
+function OCe(e) {
return Wq(e, (e) => e - 1);
}
-function ACe(e) {
+function kCe(e) {
return Wq(e, (e) => e + 1);
}
-function jCe(e) {
+function ACe(e) {
return Wq(e, 0);
}
-function MCe(e) {
+function jCe(e) {
let t = qq(e);
if (!(!Number.isFinite(t) || t <= 0)) return Wq(e, t - 1);
}
@@ -59962,34 +59947,34 @@ var Yq = {
getDefaultTableOptions: (e) => ({ onPaginationChange: iq("pagination", e) }),
constructTableAPIs: (e) => {
fq("rowPaginationFeature", e, {
- table_autoResetPageIndex: { fn: () => SCe(e) },
+ table_autoResetPageIndex: { fn: () => xCe(e) },
table_setPagination: { fn: (t) => Uq(e, t) },
- table_resetPagination: { fn: (t) => CCe(e, t) },
+ table_resetPagination: { fn: (t) => SCe(e, t) },
table_setPageIndex: { fn: (t) => Wq(e, t) },
table_resetPageIndex: { fn: (t) => Gq(e, t) },
table_setPageSize: { fn: (t) => Kq(e, t) },
table_getPageCount: { fn: () => qq(e) },
- table_resetPageSize: { fn: (t) => wCe(e, t) },
- table_getPageOptions: { fn: () => TCe(e) },
- table_getCanPreviousPage: { fn: () => ECe(e) },
- table_getCanNextPage: { fn: () => DCe(e) },
- table_getCanLastPage: { fn: () => OCe(e) },
- table_previousPage: { fn: () => kCe(e) },
- table_nextPage: { fn: () => ACe(e) },
- table_firstPage: { fn: () => jCe(e) },
- table_lastPage: { fn: () => MCe(e) },
+ table_resetPageSize: { fn: (t) => CCe(e, t) },
+ table_getPageOptions: { fn: () => wCe(e) },
+ table_getCanPreviousPage: { fn: () => TCe(e) },
+ table_getCanNextPage: { fn: () => ECe(e) },
+ table_getCanLastPage: { fn: () => DCe(e) },
+ table_previousPage: { fn: () => OCe(e) },
+ table_nextPage: { fn: () => kCe(e) },
+ table_firstPage: { fn: () => ACe(e) },
+ table_lastPage: { fn: () => jCe(e) },
table_getRowCount: { fn: () => Jq(e) }
});
}
};
// node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.utils.js
-function NCe() {
+function MCe() {
return nq();
}
function Xq(e, t) {
e.options.onRowSelectionChange?.(t);
}
-function PCe(e, t) {
+function NCe(e, t) {
e._lastSelectedRowId = null, Xq(e, t ? nq() : Object.assign(nq(), eq(e.initialState.rowSelection ?? {})));
}
function Zq(e, t, n) {
@@ -60017,10 +60002,10 @@ function Qq(e, t, n) {
}), a;
});
}
-function FCe(e) {
+function PCe(e) {
return e.getCoreRowModel();
}
-function ICe(e) {
+function FCe(e) {
let t = e.getCoreRowModel();
return mq(e, "getIsSomeRowsSelected", nJ) ? pJ(t, e) : {
rows: [],
@@ -60028,7 +60013,7 @@ function ICe(e) {
rowsById: nq()
};
}
-function LCe(e) {
+function ICe(e) {
let t = e.getFilteredRowModel();
return mq(e, "getIsSomeRowsSelected", nJ) ? pJ(t, e) : {
rows: [],
@@ -60036,7 +60021,7 @@ function LCe(e) {
rowsById: nq()
};
}
-function RCe(e) {
+function LCe(e) {
let t = e.getSortedRowModel();
return mq(e, "getIsSomeRowsSelected", nJ) ? pJ(t, e) : {
rows: [],
@@ -60067,15 +60052,15 @@ function tJ(e) {
function nJ(e) {
return mq(e, "getSelectedRowIds", $q).length > 0;
}
-function zCe(e) {
+function RCe(e) {
return e.getPaginatedRowModel().flatRows.filter((e) => oJ(e)).some((e) => iJ(e) || mq(e, "getIsSomeSelected", aJ));
}
-function BCe(e) {
+function zCe(e) {
return (t) => {
Zq(e, t.target.checked);
};
}
-function VCe(e) {
+function BCe(e) {
return (t) => {
Qq(e, t.target.checked);
};
@@ -60094,7 +60079,7 @@ function iJ(e) {
function aJ(e) {
return hJ(e) === "some";
}
-function HCe(e) {
+function VCe(e) {
return hJ(e) === "all";
}
function oJ(e) {
@@ -60109,15 +60094,15 @@ function cJ(e) {
let t = e.table.options;
return typeof t.enableMultiRowSelection == "function" ? t.enableMultiRowSelection(e) : t.enableMultiRowSelection ?? !0;
}
-function UCe(e, t) {
+function HCe(e, t) {
let n = oJ(e);
return (r) => {
if (!n) return;
let i = r, a = e.table, o = i.target.checked, s = a._lastSelectedRowId;
- a.options.enableRowRangeSelection !== !1 && s !== null && cJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && WCe(e, s, o, t) || rJ(e, o, t), a._lastSelectedRowId = e.id;
+ a.options.enableRowRangeSelection !== !1 && s !== null && cJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && UCe(e, s, o, t) || rJ(e, o, t), a._lastSelectedRowId = e.id;
};
}
-function WCe(e, t, n, r) {
+function UCe(e, t, n, r) {
let i = r?.selectChildren ?? !0, a = e.table, o = a.getRowsInDisplayOrder(), s = a.getPrePaginatedRowModel().rowsById[t] ?? a.getCoreRowModel().rowsById[t];
if (!s) return !1;
let c = s.getDisplayIndex(), l = e.getDisplayIndex(), u = o[c], d = o[l];
@@ -60212,7 +60197,7 @@ var gJ = {
e._lastSelectedRowId = null;
},
getInitialState: (e) => ({
- rowSelection: NCe(),
+ rowSelection: MCe(),
...e
}),
getDefaultTableOptions: (e) => ({
@@ -60239,7 +60224,7 @@ var gJ = {
]
},
row_getIsAllSubRowsSelected: {
- fn: (e) => HCe(e),
+ fn: (e) => VCe(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
@@ -60249,26 +60234,26 @@ var gJ = {
row_getCanSelect: { fn: (e) => oJ(e) },
row_getCanSelectSubRows: { fn: (e) => sJ(e) },
row_getCanMultiSelect: { fn: (e) => cJ(e) },
- row_getToggleSelectedHandler: { fn: (e, t) => UCe(e, t) }
+ row_getToggleSelectedHandler: { fn: (e, t) => HCe(e, t) }
});
},
constructTableAPIs: (e) => {
fq("rowSelectionFeature", e, {
table_setRowSelection: { fn: (t) => Xq(e, t) },
- table_resetRowSelection: { fn: (t) => PCe(e, t) },
+ table_resetRowSelection: { fn: (t) => NCe(e, t) },
table_toggleAllRowsSelected: { fn: (t, n) => Zq(e, t, n) },
table_toggleAllPageRowsSelected: { fn: (t, n) => Qq(e, t, n) },
- table_getPreSelectedRowModel: { fn: () => FCe(e) },
+ table_getPreSelectedRowModel: { fn: () => PCe(e) },
table_getSelectedRowModel: {
- fn: () => ICe(e),
+ fn: () => FCe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getCoreRowModel()]
},
table_getFilteredSelectedRowModel: {
- fn: () => LCe(e),
+ fn: () => ICe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getFilteredRowModel()]
},
table_getGroupedSelectedRowModel: {
- fn: () => RCe(e),
+ fn: () => LCe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getSortedRowModel()]
},
table_getSelectedRowIds: {
@@ -60298,32 +60283,32 @@ var gJ = {
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsSomePageRowsSelected: {
- fn: () => zCe(e),
+ fn: () => RCe(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
e.options.enableRowSelection
]
},
- table_getToggleAllRowsSelectedHandler: { fn: () => BCe(e) },
- table_getToggleAllPageRowsSelectedHandler: { fn: () => VCe(e) }
+ table_getToggleAllRowsSelectedHandler: { fn: () => zCe(e) },
+ table_getToggleAllPageRowsSelectedHandler: { fn: () => BCe(e) }
});
}
-}, GCe = /([0-9]+)/gm;
+}, WCe = /([0-9]+)/gm;
/* @__NO_SIDE_EFFECTS__ */
-function KCe(e) {
+function GCe(e) {
let t = Object.assign((e, n, r) => {
let i = e.getValue(r), a = n.getValue(r), o = t.resolveDataValue;
return o && (i = o(i), a = o(a)), t.sort(i, a, e, n, r);
}, e);
return t;
}
-var _J = /* @__PURE__ */ KCe({ sort: (e, t) => qCe(e, t) });
-function qCe(e, t) {
+var _J = /* @__PURE__ */ GCe({ sort: (e, t) => KCe(e, t) });
+function KCe(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.utils.js
-function JCe() {
+function qCe() {
return [];
}
function vJ(e, t) {
@@ -60332,7 +60317,7 @@ function vJ(e, t) {
function yJ(e, t) {
vJ(e, t ? [] : eq(e.initialState.sorting ?? []));
}
-function YCe(e) {
+function JCe(e) {
e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && yJ(e);
}
function bJ(e) {
@@ -60343,7 +60328,7 @@ function bJ(e) {
r = "datetime";
break;
}
- if (typeof a == "string" && (i = !0, a.split(GCe).length > 1)) {
+ if (typeof a == "string" && (i = !0, a.split(WCe).length > 1)) {
r = "alphanumeric";
break;
}
@@ -60364,7 +60349,7 @@ function xJ(e) {
}
function SJ(e) {
let t = e.table._rowModelFns.sortFns;
- return Yxe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? bJ(e) : t?.[e.columnDef.sortFn] ?? _J;
+ return Jxe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? bJ(e) : t?.[e.columnDef.sortFn] ?? _J;
}
function CJ(e, t, n) {
let r = TJ(e, n && DJ(e)), i = t !== void 0;
@@ -60402,13 +60387,13 @@ function OJ(e) {
let t = e.table.atoms.sorting?.get()?.find((t) => t.id === e.id);
return t ? t.desc ? "desc" : "asc" : !1;
}
-function XCe(e) {
+function YCe(e) {
return e.table.atoms.sorting?.get()?.findIndex((t) => t.id === e.id) ?? -1;
}
-function ZCe(e) {
+function XCe(e) {
vJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
}
-function QCe(e) {
+function ZCe(e) {
let t = EJ(e);
return (n) => {
t && CJ(e, void 0, DJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
@@ -60418,7 +60403,7 @@ function QCe(e) {
var kJ = {
getInitialState(e) {
return {
- sorting: JCe(),
+ sorting: qCe(),
...e
};
},
@@ -60446,34 +60431,34 @@ var kJ = {
column_getCanSort: { fn: (e) => EJ(e) },
column_getCanMultiSort: { fn: (e) => DJ(e) },
column_getIsSorted: { fn: (e) => OJ(e) },
- column_getSortIndex: { fn: (e) => XCe(e) },
- column_clearSorting: { fn: (e) => ZCe(e) },
- column_getToggleSortingHandler: { fn: (e) => QCe(e) }
+ column_getSortIndex: { fn: (e) => YCe(e) },
+ column_clearSorting: { fn: (e) => XCe(e) },
+ column_getToggleSortingHandler: { fn: (e) => ZCe(e) }
});
},
constructTableAPIs(e) {
fq("rowSortingFeature", e, {
- table_autoResetSorting: { fn: () => YCe(e) },
+ table_autoResetSorting: { fn: () => JCe(e) },
table_setSorting: { fn: (t) => vJ(e, t) },
table_resetSorting: { fn: (t) => yJ(e, t) }
});
}
-}, $Ce = typeof window > "u" ? F.useEffect : F.useLayoutEffect;
+}, QCe = typeof window > "u" ? F.useEffect : F.useLayoutEffect;
function AJ(e, t) {
let [{ table: n, rootSource: r }] = (0, F.useState)(() => {
- let t = pCe({
+ let t = fCe({
...e,
features: {
- coreReactivityFeature: Kxe(),
+ coreReactivityFeature: Gxe(),
...e.features
}
});
- return t.Subscribe = ((e) => Hxe({
+ return t.Subscribe = ((e) => Vxe({
...e,
source: e.source ?? t.store
- })), t.FlexRender = jxe, {
+ })), t.FlexRender = Axe, {
table: t,
- rootSource: Gxe(t.store, YK)
+ rootSource: Wxe(t.store, YK)
};
}), i = n;
kq(i, (t) => ({
@@ -60481,7 +60466,7 @@ function AJ(e, t) {
...e
}), { syncExternalState: !1 });
let a = i.options.state, o = r.get(), s = QK(r, t, { compare: YK });
- return $Ce(() => {
+ return QCe(() => {
r.markCommitted(o), Oq(i, a ?? null, YK);
}), (0, F.useMemo)(() => ({
...n,
@@ -60497,7 +60482,7 @@ function AJ(e, t) {
function jJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: q("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, I.jsx)(ohe, {
+ children: /* @__PURE__ */ (0, I.jsx)(ihe, {
ref: r,
...i,
className: q("bui-table", e === "sm" && "bui-table-sm", t)
@@ -60505,7 +60490,7 @@ function jJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i
});
}
// src/react/catalog-grid/catalog-table-columns.ts
-var MJ = "peach.catalog-column-widths.v1", NJ = "peach.catalog-column-visibility.v1", ewe = {
+var MJ = "peach.catalog-column-widths.v1", NJ = "peach.catalog-column-visibility.v1", $Ce = {
select: {
width: 48,
min: 48,
@@ -60581,14 +60566,14 @@ var MJ = "peach.catalog-column-widths.v1", NJ = "peach.catalog-column-visibility
min: 112,
max: 400
}
-}, twe = {
+}, ewe = {
release: !1,
played: !1,
o: !1,
resolution: !1,
size: !1,
code: !1
-}, nwe = {
+}, twe = {
select: "选择",
name: "作品",
dur: "时长",
@@ -60622,11 +60607,11 @@ var MJ = "peach.catalog-column-widths.v1", NJ = "peach.catalog-column-visibility
"code"
].map((e) => ({
id: e,
- label: nwe[e],
- ...ewe[e],
+ label: twe[e],
+ ...$Ce[e],
flex: e === "name",
required: e === "select" || e === "name",
- visible: twe[e] !== !1
+ visible: ewe[e] !== !1
}));
function FJ(e) {
try {
@@ -60636,7 +60621,7 @@ function FJ(e) {
return {};
}
}
-function rwe() {
+function nwe() {
return IJ(PJ, MJ, NJ);
}
function IJ(e, t, n) {
@@ -60660,32 +60645,32 @@ function RJ() {
return !1;
}
}
-function iwe(e) {
+function rwe(e) {
try {
e ? localStorage.setItem(LJ, "1") : localStorage.removeItem(LJ);
} catch {}
}
-var awe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
+var iwe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
// src/catalog-content-skeleton.ts
function zJ(e) {
return e === "name" ? "<span data-list-skeleton-name><i class=\"skeleton-sheen\"></i><span><i class=\"skeleton-sheen\"></i><i class=\"skeleton-sheen\"></i></span></span>" : e === "people" || e === "library" || e === "studio" ? `<span data-list-skeleton-mark="${e}"><b class="skeleton-sheen"></b><i class="skeleton-sheen"></i></span>` : "<i data-list-skeleton-bar class=\"skeleton-sheen\"></i>";
}
-function owe(e) {
- return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${z(e)}">` + BJ(rwe(), RJ() ? awe : "") + "</div>";
+function awe(e) {
+ return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${z(e)}">` + BJ(nwe(), RJ() ? iwe : "") + "</div>";
}
function BJ(e, t = "") {
let n = e.some((e) => e.width === null), r = e.reduce((e, t) => e + (t.width ?? t.min), 0), i = e.map((e) => e.width === null ? "<col>" : `<col style="width:${e.width}px">`).join("") + (n ? "" : "<col>"), a = e.map((e) => `<th>${z(e.label)}</th>`).join("") + (n ? "" : "<th></th>"), o = `<tr>${e.map((e) => `<td>${zJ(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;
return "<div data-list-skeleton aria-hidden=\"true\"><div data-list-skeleton-tools><i class=\"skeleton-sheen\"></i></div>" + t + `<div data-board-data-table><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="table-layout:fixed;min-width:${r}px"><colgroup>${i}</colgroup><thead><tr>${a}</tr></thead><tbody>${o.repeat(6)}</tbody></table></div></div></div>`;
}
function VJ(e, t) {
- return cG() === "list" ? owe(e) : ac(e, {
+ return cG() === "list" ? awe(e) : ac(e, {
variant: "cards",
className: "catalog-skeleton postercard-skeleton",
cardRatio: t
});
}
// src/react/components/data-table-frame.tsx
-var swe = () => {
+var owe = () => {
document.documentElement.dataset.columnResizing = "";
};
function HJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
@@ -60704,9 +60689,9 @@ function HJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
let r = t.closest("[role=\"row\"][data-key]");
r && sK(e, r) && n(r.dataset.key);
} : void 0,
- children: r ? /* @__PURE__ */ (0, I.jsx)(ihe, {
+ children: r ? /* @__PURE__ */ (0, I.jsx)(nhe, {
className: "relative min-w-0",
- onResizeStart: swe,
+ onResizeStart: owe,
onResize: r.resize,
onResizeEnd: (e) => {
delete document.documentElement.dataset.columnResizing, r.save(e);
@@ -60717,7 +60702,7 @@ function HJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
}
// src/react/components/select.tsx
function UJ({ prefix: e, renderValue: t, size: n, ...r }) {
- if (e == null) return /* @__PURE__ */ (0, I.jsx)(UU, {
+ if (e == null) return /* @__PURE__ */ (0, I.jsx)(WU, {
...r,
size: n,
renderValue: t
@@ -60727,7 +60712,7 @@ function UJ({ prefix: e, renderValue: t, size: n, ...r }) {
className: `shrink-0 text-text-tertiary ${i}`,
children: e
}), typeof t == "function" ? t(n) : t ?? n.defaultChildren] });
- return /* @__PURE__ */ (0, I.jsx)(UU, {
+ return /* @__PURE__ */ (0, I.jsx)(WU, {
...r,
size: n,
renderValue: a
@@ -60787,10 +60772,10 @@ function GJ({ label: e, options: t, sorting: n, onChange: r }) {
desc: i?.desc ?? !1
}]);
},
- children: [/* @__PURE__ */ (0, I.jsx)(WU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(GU, {
id: "default",
children: "默认顺序"
- }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(WU, {
+ }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(GU, {
id: e.id,
children: e.label
}, e.id))]
@@ -60835,7 +60820,7 @@ function KJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
pageSize: Number(e)
});
},
- children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(WU, {
+ children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(GU, {
id: String(e),
children: `每页 ${e} ${a}`
}, e))
@@ -60865,7 +60850,7 @@ function JJ(e, t) {
localStorage.setItem(e, JSON.stringify(t));
} catch {}
}
-function cwe(e, t) {
+function swe(e, t) {
let n = (e) => Object.fromEntries(Object.entries(t).map(([t, n]) => {
let r = e[t];
return [t, typeof r == "number" && Number.isFinite(r) ? Math.max(n.min, Math.min(n.max, r)) : n.flex ? "1fr" : n.width];
@@ -60897,7 +60882,7 @@ function cwe(e, t) {
}
};
}
-function lwe(e, t, n, r = {}) {
+function cwe(e, t, n, r = {}) {
let i = (e) => ({
...r,
...Object.fromEntries(t.filter((t) => !n.includes(t) && typeof e[t] == "boolean").map((t) => [t, e[t] === !0]))
@@ -60916,7 +60901,7 @@ function YJ(e, t, n) {
min: e.min ?? 96,
max: e.max ?? (e.flex ? 2e3 : 800),
flex: e.flex
- }])), [t]), i = cwe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = lwe(n?.visibility ?? `peach.table.${e}.visibility.v1`, t.map((e) => e.id), t.filter((e) => e.required).map((e) => e.id), Object.fromEntries(t.filter((e) => e.visible === !1).map((e) => [e.id, !1]))), o = t.some((e) => e.flex && a.visibility[e.id] !== !1 && i.widths[e.id] === "1fr");
+ }])), [t]), i = swe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = cwe(n?.visibility ?? `peach.table.${e}.visibility.v1`, t.map((e) => e.id), t.filter((e) => e.required).map((e) => e.id), Object.fromEntries(t.filter((e) => e.visible === !1).map((e) => [e.id, !1]))), o = t.some((e) => e.flex && a.visibility[e.id] !== !1 && i.widths[e.id] === "1fr");
return {
...i,
...a,
@@ -60935,14 +60920,14 @@ function YJ(e, t, n) {
};
}
// src/react/catalog-grid/catalog-column-widths.ts
-function uwe() {
+function lwe() {
return YJ("catalog", PJ, {
widths: MJ,
visibility: NJ
});
}
// src/react/components/rating-stars.tsx
-var XJ = pV("star");
+var XJ = mV("star");
function ZJ({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
let i = Math.max(0, Math.min(5, e)), a = Math.round(i);
return /* @__PURE__ */ (0, I.jsx)("span", {
@@ -60982,9 +60967,9 @@ function ZJ({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
});
}
// src/react/catalog-grid/catalog-table-controls.tsx
-function dwe({ item: e, actions: t }) {
- let { rating: n } = e, r = hH(), i = (0, F.useRef)(0), a = mP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
- dP(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
+function uwe({ item: e, actions: t }) {
+ let { rating: n } = e, r = gH(), i = (0, F.useRef)(0), a = hP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
+ fP(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
...e,
rating: t
});
@@ -61000,7 +60985,7 @@ function dwe({ item: e, actions: t }) {
value: a,
onRate: c,
busyStar: r.busy ? Number(r.busy) : void 0
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -61040,10 +61025,10 @@ function $J({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
className: t === "inline" ? "shrink-0" : "w-full",
onClick: e.onPress,
children: e.label
- }, e.label) : /* @__PURE__ */ (0, I.jsx)(mH, {
+ }, e.label) : /* @__PURE__ */ (0, I.jsx)(hH, {
size: "small",
href: e.href,
- trailingIcon: vB,
+ trailingIcon: bB,
className: t === "inline" ? "shrink-0" : "w-full",
disabled: e.disabled,
onClick: r,
@@ -61060,7 +61045,7 @@ function eY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
}, "actions"), f = /* @__PURE__ */ (0, I.jsx)("div", {
"data-selection-options": "",
className: "flex min-w-0 flex-col gap-1",
- children: r.length ? r.map((e) => /* @__PURE__ */ (0, I.jsx)(zV, {
+ children: r.length ? r.map((e) => /* @__PURE__ */ (0, I.jsx)(BV, {
isSelected: e.selected,
className: "min-w-0 [&>span:last-child]:min-w-0 [&>span:last-child]:wrap-anywhere",
isDisabled: e.disabled,
@@ -61080,14 +61065,14 @@ function eY({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
"aria-label": t,
onClick: () => u(!0),
children: t
- }), /* @__PURE__ */ (0, I.jsx)(dz, {
+ }), /* @__PURE__ */ (0, I.jsx)(pz, {
triggerRef: c,
isOpen: l,
onOpenChange: u,
placement: "bottom end",
offset: 4,
- className: q(MV, "w-max overscroll-contain"),
- children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(vH, {
+ className: q(NV, "w-max overscroll-contain"),
+ children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(yH, {
"aria-label": e,
"data-selection-placement": t ?? "bottom",
className: "flex w-max max-w-full flex-col gap-2 outline-none",
@@ -61132,7 +61117,7 @@ function tY({ preferences: e, label: t = "表格" }) {
}
function nY({ preferences: e, id: t }) {
let n = e.columns.find((e) => e.id === t);
- return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(hhe, { "aria-label": `调整${n.label}列宽` }) : null;
+ return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(phe, { "aria-label": `调整${n.label}列宽` }) : null;
}
// src/react/components/table-selection-header.tsx
function rY(e, t) {
@@ -61144,7 +61129,7 @@ function rY(e, t) {
}
function iY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
let { all: i, some: a } = rY(e, n);
- return /* @__PURE__ */ (0, I.jsx)(zV, {
+ return /* @__PURE__ */ (0, I.jsx)(BV, {
slot: null,
"aria-label": t,
isDisabled: r,
@@ -61157,12 +61142,12 @@ function iY({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
});
}
// src/react/catalog-grid/catalog-list-page.tsx
-var fwe = jq({
+var dwe = jq({
rowSortingFeature: kJ,
rowSelectionFeature: gJ,
rowPaginationFeature: Yq,
columnVisibilityFeature: zq
-}), aY = PJ.map((e) => e.id), pwe = [
+}), aY = PJ.map((e) => e.id), fwe = [
{
id: "name",
label: "名称"
@@ -61200,8 +61185,8 @@ var fwe = jq({
label: "观看时间"
}
], oY = /* @__PURE__ */ new Map();
-function mwe(e) {
- let t = uwe(), n = oK(), r = sP(e.filters || {}, !1), [i] = (0, F.useState)(() => {
+function pwe(e) {
+ let t = lwe(), n = oK(), r = cP(e.filters || {}, !1), [i] = (0, F.useState)(() => {
let t = new URLSearchParams(r);
return new URLSearchParams(location.search).has("seed") || t.delete("seed"), `${e.mode}:${e.listScope || e.entityKey || ""}:${t}`;
}), [a, o] = (0, F.useState)(() => oY.get(i) || {
@@ -61245,7 +61230,7 @@ function mwe(e) {
}
}), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : FK(f, e.layout.javImage), [h] = (0, F.useState)(RJ);
(0, F.useEffect)(() => {
- d.data && !d.isPlaceholderData && iwe(m.length > 0);
+ d.data && !d.isPlaceholderData && rwe(m.length > 0);
}, [
d.data,
d.isPlaceholderData,
@@ -61278,7 +61263,7 @@ function mwe(e) {
c.pageIndex
]);
let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = AJ({
- features: fwe,
+ features: dwe,
columns: (0, F.useMemo)(() => {
let t = Aq();
return t.columns([
@@ -61289,7 +61274,7 @@ function mwe(e) {
label: "全选本页作品",
disabled: d.isPlaceholderData
}),
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(zV, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(BV, {
slot: null,
"aria-label": `选择 ${e.helpers.displayName(t.original, t.original.name || "")}`,
isDisabled: d.isPlaceholderData,
@@ -61301,7 +61286,7 @@ function mwe(e) {
id: "name",
header: "作品",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(hwe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(mwe, {
item: t.original,
props: e,
disabled: d.isPlaceholderData
@@ -61310,12 +61295,12 @@ function mwe(e) {
t.display({
id: "library",
header: "媒体库",
- cell: ({ row: e }) => /* @__PURE__ */ (0, I.jsx)(gwe, { item: e.original })
+ cell: ({ row: e }) => /* @__PURE__ */ (0, I.jsx)(hwe, { item: e.original })
}),
t.display({
id: "people",
header: "艺人",
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(_we, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(gwe, {
item: t.original,
props: e
})
@@ -61371,7 +61356,7 @@ function mwe(e) {
id: "rating",
header: "评分",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(dwe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(uwe, {
item: t.original,
actions: e.actions
})
@@ -61471,7 +61456,7 @@ function mwe(e) {
"data-toolbar-actions": "",
children: [/* @__PURE__ */ (0, I.jsx)(tY, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(GJ, {
label: "作品列表",
- options: pwe,
+ options: fwe,
sorting: s,
onChange: (e) => _.setSorting(e)
})]
@@ -61506,7 +61491,7 @@ function mwe(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, I.jsxs)($z, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(eB, {
+ children: [/* @__PURE__ */ (0, I.jsxs)(tB, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(nB, {
id: e.id,
isRowHeader: e.id === "name",
allowsSorting: e.column.getCanSort(),
@@ -61516,33 +61501,33 @@ function mwe(e) {
children: [LK(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": n || void 0,
- children: /* @__PURE__ */ (0, I.jsx)(kV, {})
+ children: /* @__PURE__ */ (0, I.jsx)(AV, {})
}) : null]
}), /* @__PURE__ */ (0, I.jsx)(nY, {
preferences: t,
id: e.id
})] })
- }, e.id)), /* @__PURE__ */ (0, I.jsx)(eB, {
+ }, e.id)), /* @__PURE__ */ (0, I.jsx)(nB, {
id: "remaining-space",
"aria-label": "行空白区域",
"data-table-space": "",
width: t.spaceWidth,
minWidth: 0
- })] }), /* @__PURE__ */ (0, I.jsx)(rB, {
+ })] }), /* @__PURE__ */ (0, I.jsx)(aB, {
renderEmptyState: () => d.isError ? "作品列表未取得" : "没有符合的作品",
- children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(oB, {
+ children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(cB, {
id: `skeleton-${t}`,
"data-list-skeleton-row": "",
"aria-hidden": "true",
- children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(cB, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: zJ(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(cB, { "data-table-space": "" })]
- }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(oB, {
+ children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(uB, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: zJ(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(uB, { "data-table-space": "" })]
+ }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(cB, {
id: e.id,
"data-catalog-row": "",
"data-id": e.original.id,
"data-guide-video": (!e.original.medium || e.original.medium === "video") && e.original.location !== "online" && !String(e.original.name || "").toLowerCase().endsWith(".iso") ? "" : void 0,
"data-library": n.get(e.original.library_id || "")?.color ? e.original.library_id : void 0,
"data-board-selected": e.getIsSelected() || void 0,
- children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, I.jsx)(cB, { children: LK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(cB, { "data-table-space": "" })]
+ children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, I.jsx)(uB, { children: LK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(uB, { "data-table-space": "" })]
}, e.id))
})]
})
@@ -61558,9 +61543,9 @@ function mwe(e) {
]
});
}
-function hwe({ item: e, props: t, disabled: n }) {
+function mwe({ item: e, props: t, disabled: n }) {
let r = To(e, "small", !1, t.layout.javImage), i = Number(e.part_group?.count) > 1 && e.part_group || null, a = Number(e.edition_group?.count) > 1 && e.edition_group || null, o = i?.title || e.name || "", s = t.helpers.displayName(e, o).trim() || "未命名作品", c = t.helpers.titleHtml(e, o).trim() || "未命名作品";
- rL();
+ aL();
let l = !i && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, u = [Number(e.liked) > 0 ? "喜欢" : "", Number(e.o_count) > 0 ? "有高潮记录" : ""].filter(Boolean), d = (e) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -61580,7 +61565,7 @@ function hwe({ item: e, props: t, disabled: n }) {
children: /* @__PURE__ */ (0, I.jsxs)("span", {
"data-list-picture": "",
children: [
- r.html ? /* @__PURE__ */ (0, I.jsx)(qU, {
+ r.html ? /* @__PURE__ */ (0, I.jsx)(JU, {
artwork: r,
relayout: (e) => El(e, "small")
}) : /* @__PURE__ */ (0, I.jsx)("span", { children: "无预览" }),
@@ -61632,16 +61617,16 @@ function hwe({ item: e, props: t, disabled: n }) {
})]
});
}
-function gwe({ item: e }) {
+function hwe({ item: e }) {
let t = oK({ names: !0 }), n = e.library_id ? t.get(e.library_id) : void 0;
return n?.name ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-list-library": "",
title: `媒体库:${n.name}`,
- children: [/* @__PURE__ */ (0, I.jsx)(BH, { mark: n.icon }), /* @__PURE__ */ (0, I.jsx)("span", { children: n.name })]
+ children: [/* @__PURE__ */ (0, I.jsx)(VH, { mark: n.icon }), /* @__PURE__ */ (0, I.jsx)("span", { children: n.name })]
}) : "—";
}
-function _we({ item: e, props: t }) {
- rL();
+function gwe({ item: e, props: t }) {
+ aL();
let { avatar: n, who: r } = mK(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-list-people": "",
@@ -61656,13 +61641,13 @@ function _we({ item: e, props: t }) {
// src/react/catalog-grid/catalog-grid-page.tsx
function sY(e) {
let t = lG();
- if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(ywe, { ...e });
- let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${sP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(mwe, { ...e }, n);
+ if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(vwe, { ...e });
+ let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${cP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(pwe, { ...e }, n);
let r = e.mode === "entity" ? "entity" : `catalog:${!!e.wall}`;
- return /* @__PURE__ */ (0, I.jsx)(bwe, { ...e }, r);
+ return /* @__PURE__ */ (0, I.jsx)(ywe, { ...e }, r);
}
-function vwe({ name: e }) {
+function _we({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -61685,7 +61670,7 @@ function cY({ children: e, selectMode: t }) {
children: e
});
}
-function ywe(e) {
+function vwe(e) {
let { actions: t } = e, n = (0, F.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, I.jsx)(gK, {
item: i,
variant: r,
@@ -61705,8 +61690,8 @@ function ywe(e) {
children: i
});
}
-function bwe(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Fue(e) : Pue(e), [s] = (0, F.useState)(() => e.wall ? cP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? cP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
+function ywe(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Pue(e) : Nue(e), [s] = (0, F.useState)(() => e.wall ? lP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? lP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
@@ -61732,7 +61717,7 @@ function bwe(e) {
u.isPlaceholderData,
e.revision
]);
- let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => Lue(u.data?.pages || [], {
+ let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => Iue(u.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -61742,7 +61727,7 @@ function bwe(e) {
e.mix,
a,
r.javImage
- ]), m = f.reduce((e, t) => e + +(t.kind === "card"), 0), h = Number(u.data?.pages[0]?.total || 0), g = i || Iye(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && jye(e.item) ? [e.item] : []), y = a ? [] : FK(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = xwe(e, u.isPlaceholderData ? void 0 : u.data, f, p, b);
+ ]), m = f.reduce((e, t) => e + +(t.kind === "card"), 0), h = Number(u.data?.pages[0]?.total || 0), g = i || Fye(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && Aye(e.item) ? [e.item] : []), y = a ? [] : FK(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = bwe(e, u.isPlaceholderData ? void 0 : u.data, f, p, b);
(0, F.useLayoutEffect)(() => {
if (!u.data || u.isPlaceholderData) return;
let t = !0;
@@ -61770,7 +61755,7 @@ function bwe(e) {
let C = (0, F.useCallback)((e, t) => n.open(e, t), [n]), w = (0, F.useCallback)((e, t) => n.openResource(e, t), [n]), T = (0, F.useCallback)((e) => n.openShort(e), [n]), E = (0, F.useCallback)(async () => {
let e = await u.fetchNextPage();
if (e.isFetchNextPageError) throw e.error;
- }, [u.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)(Cwe, {
+ }, [u.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)(Swe, {
seed: i.seed,
layout: r,
helpers: t,
@@ -61787,8 +61772,8 @@ function bwe(e) {
actions: n,
onOpen: a ? w : C
}, i.item.id), O = () => {
- if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(Sxe, {
- sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${sP(e.filters || {}, !!e.excludeVertical)}`,
+ if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(xxe, {
+ sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${cP(e.filters || {}, !!e.excludeVertical)}`,
items: v,
finite: g,
hasMore: !!u.hasNextPage,
@@ -61796,7 +61781,7 @@ function bwe(e) {
loading: u.isPending || !u.data && u.isFetching,
error: !u.data && !u.isPending ? xn(u.error) : "",
retry: () => void u.refetch(),
- emptyHtml: u.data && !v.length ? Txe({
+ emptyHtml: u.data && !v.length ? wxe({
libraryEmpty: !!u.data.pages[0]?.libraryEmpty,
matches: h,
hasMore: !!u.hasNextPage,
@@ -61828,7 +61813,7 @@ function bwe(e) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("div", {
"data-media-sections": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: Bue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(cY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(Swe, {
+ children: zue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(cY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(xwe, {
cut: t.strip,
props: e,
onOpen: T
@@ -61920,13 +61905,13 @@ function lY({ entity: e, load: t, enabled: n, children: r }) {
onRetry: () => void d(!0)
}) : null] });
}
-function xwe(e, t, n, r, i) {
- let a = ["catalog-short-layout", sP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {
+function bwe(e, t, n, r, i) {
+ let a = ["catalog-short-layout", cP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {
let t = e.restoreNavigation ? H.getQueryData(a) : void 0, n = {
parts: /* @__PURE__ */ new Set(),
editions: /* @__PURE__ */ new Set()
};
- return t && lP(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
+ return t && uP(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
stamp: o,
cuts: t?.cuts || [],
offset: t?.offset || 0,
@@ -61952,7 +61937,7 @@ function xwe(e, t, n, r, i) {
let r = new AbortController();
p.controllers.push(r);
let i = n - 1;
- B(`/api/items?${zue(e.filters || {}, p.offset)}`, r.signal).then((e) => {
+ B(`/api/items?${Rue(e.filters || {}, p.offset)}`, r.signal).then((e) => {
if (c.current !== p || r.signal.aborted) return;
let t = e.items || [];
t.length ? f({
@@ -61966,9 +61951,9 @@ function xwe(e, t, n, r, i) {
}, [t, p]), (0, F.useLayoutEffect)(() => {
if (!d || d.stamp !== o) return;
f(null);
- let t = m.reduce((e, t) => Math.max(e, t.at), 0), s = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), c = s?.[s.length - 1], l = c ? Math.max(1, getComputedStyle(c).gridTemplateColumns.split(" ").length) : 1, h = Math.max(0, (r[d.page] ?? 0) - t), g = Rue(n.length - t, h, l);
+ let t = m.reduce((e, t) => Math.max(e, t.at), 0), s = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), c = s?.[s.length - 1], l = c ? Math.max(1, getComputedStyle(c).gridTemplateColumns.split(" ").length) : 1, h = Math.max(0, (r[d.page] ?? 0) - t), g = Lue(n.length - t, h, l);
if (!g.length) return;
- let _ = lP(d.items, p.groups, e.groupCollapse !== !1);
+ let _ = uP(d.items, p.groups, e.groupCollapse !== !1);
if (p.offset = d.more ? p.offset + 18 : 0, !_.length) return;
let v = t + (g[Math.floor(Math.random() * g.length)] ?? 0), y = [...m, {
at: v,
@@ -61985,7 +61970,7 @@ function xwe(e, t, n, r, i) {
});
}, [d]), m;
}
-function Swe({ cut: e, props: t, onOpen: n }) {
+function xwe({ cut: e, props: t, onOpen: n }) {
let r = (0, F.useRef)(null), { wireDrag: i } = t;
return (0, F.useEffect)(() => {
r.current && i(r.current);
@@ -62001,7 +61986,7 @@ function Swe({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, I.jsx)(vwe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(_we, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
@@ -62024,11 +62009,11 @@ function Swe({ cut: e, props: t, onOpen: n }) {
function uY(e, t, n) {
return Eo(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
-function Cwe({ seed: e, layout: t, helpers: n, actions: r }) {
+function Swe({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, F.useRef)(/* @__PURE__ */ new Map()), a = (0, F.useRef)(t);
a.current = t;
let o = Mo(e, n.tagLabel), s = (0, F.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => uP(e, t.javImage)).slice(0, 9);
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => dP(e, t.javImage)).slice(0, 9);
return i.current = new Map(n.map((e) => [String(e.id), uY(e, t, !0).html])), n.map((e) => String(e.id));
}, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = uY(e, t, !1);
return /* @__PURE__ */ (0, I.jsx)(bK, {
@@ -62063,31 +62048,31 @@ async function dY(e) {
queryFn: () => br(e)
});
}
-var wwe = (e) => (e?.sources ?? []).filter((e) => vn.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Twe = "/api/duplicates?limit=120", fY = ["duplicates"], pY = "/api/batch", mY = (e) => B(Twe, e), Ewe = /[\s\-_.()[\]【】/\\]/;
-function Dwe(e) {
+var Cwe = (e) => (e?.sources ?? []).filter((e) => vn.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), wwe = "/api/duplicates?limit=120", fY = ["duplicates"], pY = "/api/batch", mY = (e) => B(wwe, e), Twe = /[\s\-_.()[\]【】/\\]/;
+function Ewe(e) {
if (e.length < 2) return "";
let t = 0, n = e[0];
for (; t < n.length && e.every((e) => e[t] === n[t]);) t += 1;
e.some((e) => e.length <= t) && (t = Math.max(0, t - 1));
let r = t;
- for (; r > 0 && !Ewe.test(n[r - 1]);) --r;
+ for (; r > 0 && !Twe.test(n[r - 1]);) --r;
return r >= 8 ? n.slice(0, r) : "";
}
-var Owe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
-async function kwe(e) {
+var Dwe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
+async function Owe(e) {
await Promise.all([H.fetchQuery({
queryKey: fY,
queryFn: () => mY(e)
}), dY(e)]);
}
-var Awe = {
+var kwe = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, jwe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), hY = (e, t) => jwe(e, t).filter((t) => e.some((e) => e.location !== t)), Mwe = (e, t) => t.filter((t) => e.some((e) => hY(e.files, [t]).length));
-function Nwe(e, t) {
+}, Awe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), hY = (e, t) => Awe(e, t).filter((t) => e.some((e) => e.location !== t)), jwe = (e, t) => t.filter((t) => e.some((e) => hY(e.files, [t]).length));
+function Mwe(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -62106,11 +62091,11 @@ function Nwe(e, t) {
}
return n;
}
-function Pwe(e, t) {
+function Nwe(e, t) {
let n = new Set(t);
return e.reduce((e, t) => e + t.files.reduce((e, t) => e + (n.has(t.id) && t.size || 0), 0), 0);
}
-async function Fwe(e, t) {
+async function Pwe(e, t) {
for (let n = 0; n < e.length; n += 200) await V(pY, {
ids: e.slice(n, n + 200),
operation: t,
@@ -62118,7 +62103,7 @@ async function Fwe(e, t) {
});
}
// src/react/media-repair/media-repair.ts
-var gY = "/api/media-repair", _Y = ["media-repair"], vY = ["media-repair", "libraries"], Iwe = {
+var gY = "/api/media-repair", _Y = ["media-repair"], vY = ["media-repair", "libraries"], Fwe = {
status: "idle",
library: "",
stage: "",
@@ -62131,7 +62116,7 @@ var gY = "/api/media-repair", _Y = ["media-repair"], vY = ["media-repair", "libr
skipped: 0,
message: ""
}, yY = (e) => B(gY, e), bY = async (e) => (await B("/api/libraries", e)).libraries || [];
-async function Lwe(e) {
+async function Iwe(e) {
await Promise.all([H.fetchQuery({
queryKey: _Y,
queryFn: () => yY(e)
@@ -62141,28 +62126,28 @@ async function Lwe(e) {
})]);
}
var xY = (e) => Number(e).toLocaleString();
-function Rwe(e) {
+function Lwe(e) {
if (e.status === "running") {
let t = e.total ? `${xY(Math.min(e.checked || 0, e.total))} / ${xY(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${xY(e.repaired)} 部,${xY(e.failed)} 部修不了` : `修好 ${xY(e.repaired)} 部` : "";
}
-var zwe = (e) => `${xY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, Bwe = "/api/quality-goals?limit=200", SY = ["quality-goals"], CY = (e) => B(Bwe, e);
-async function Vwe(e) {
+var Rwe = (e) => `${xY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, zwe = "/api/quality-goals?limit=200", SY = ["quality-goals"], CY = (e) => B(zwe, e);
+async function Bwe(e) {
await H.fetchQuery({
queryKey: SY,
queryFn: () => CY(e)
});
}
-var Hwe = (e) => e.has_cover ? lo(e) : `/poster?id=${e.id}&c=4`;
+var Vwe = (e) => e.has_cover ? lo(e) : `/poster?id=${e.id}&c=4`;
// src/selection.ts
function wY(e, t, n, r, i, a = i || !e.has(r)) {
let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);
return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;
}
// src/react/review/review.ts
-var Uwe = "/api/review", Wwe = "/api/review/decision", Gwe = "/api/review/genre", TY = ["review"], EY = {
+var Hwe = "/api/review", Uwe = "/api/review/decision", Wwe = "/api/review/genre", TY = ["review"], EY = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -62172,7 +62157,7 @@ var Uwe = "/api/review", Wwe = "/api/review/decision", Gwe = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, Kwe = Object.keys(EY), qwe = "metadata_fields", DY = (e) => typeof e == "string" && Object.hasOwn(EY, e), Jwe = {
+}, Gwe = Object.keys(EY), Kwe = "metadata_fields", DY = (e) => typeof e == "string" && Object.hasOwn(EY, e), qwe = {
creator_tags: "creator",
western_identity: "creator"
}, OY = [
@@ -62183,7 +62168,7 @@ var Uwe = "/api/review", Wwe = "/api/review/decision", Gwe = "/api/review/genre"
pending: "待处理",
later: "稍后处理",
ignored: "已忽略"
-}, Ywe = {
+}, Jwe = {
approved: "已通过",
rejected: "已忽略",
skipped: "稍后处理"
@@ -62191,7 +62176,7 @@ var Uwe = "/api/review", Wwe = "/api/review/decision", Gwe = "/api/review/genre"
sections: e.sections,
counts: e.counts
} : e.queues[t];
-function Xwe(e, t) {
+function Ywe(e, t) {
return {
...e,
...t(jY(e, "pending")),
@@ -62201,7 +62186,7 @@ function Xwe(e, t) {
}
};
}
-function Zwe(e, t) {
+function Xwe(e, t) {
let n = [["candidates", t ? "按来源数量" : "不分组"]];
return e.some((e) => e.source || e.candidates?.some((e) => e.source)) && n.push(["source", "按来源"]), e.some((e) => e.field) && n.push(["field", "按字段"]), n;
}
@@ -62222,10 +62207,10 @@ function MY(e, t) {
}
return [...n.values()];
}
-function Qwe(e, t, n) {
+function Zwe(e, t, n) {
return n && MY(e, t).find((e) => e.key === n)?.rows || e;
}
-function $we(e, t) {
+function Qwe(e, t) {
let n = gr(e.length, 20), r = _r(t, n);
return {
page: r,
@@ -62233,32 +62218,32 @@ function $we(e, t) {
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function eTe(e) {
+function $we(e) {
return e.length ? [...new Set(e.flatMap((e) => e.candidates?.map((e) => e.source || "") || []))].filter((t) => t && e.every((e) => e.candidates?.filter((e) => e.source === t).length === 1)) : [];
}
-function tTe(e, t, n, r, i, a) {
+function eTe(e, t, n, r, i, a) {
return wY(e, t, n, r, i, a);
}
-function nTe(e, t) {
+function tTe(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
function NY(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
var PY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function rTe(e, t) {
+function nTe(e, t) {
let n = NY(e, t), r = PY(e, t);
return r ? `${n} · ${r}` : n;
}
-var iTe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", aTe = (e) => String(e.tags || "").split("|").filter(Boolean), oTe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function sTe(e) {
+var rTe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", iTe = (e) => String(e.tags || "").split("|").filter(Boolean), aTe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function oTe(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function cTe(e, t, n, r) {
+function sTe(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -62274,22 +62259,22 @@ function cTe(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var lTe = (e) => ({
+var cTe = (e) => ({
approved: "已通过资料",
rejected: "已忽略资料",
skipped: "已移至稍后处理",
restore: "已恢复待处理"
})[e];
async function FY(e) {
- let t = await B(Uwe, e);
+ let t = await B(Hwe, e);
for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${kY[e]}状态未取得,请刷新或更新写入端`);
return t;
}
-async function uTe(e) {
- let t = await V(Wwe, e);
+async function lTe(e) {
+ let t = await V(Uwe, e);
if (t.ok && t.asset_revisions) {
let e = t.asset_revisions;
- H.setQueryData(TY, (t) => t && Xwe(t, (t) => ({
+ H.setQueryData(TY, (t) => t && Ywe(t, (t) => ({
...t,
sections: {
...t.sections,
@@ -62305,21 +62290,21 @@ async function uTe(e) {
}
return t;
}
-function dTe(e, t) {
+function uTe(e, t) {
let n = H.getQueryData(TY);
return n && OY.flatMap((t) => jY(n, t).sections[e] || []).find((e) => e.item_key === t.item_key) || t;
}
-var fTe = (e, t) => V(Gwe, {
+var dTe = (e, t) => V(Wwe, {
genre: e,
tag: t
});
-async function pTe(e) {
+async function fTe(e) {
await H.fetchQuery({
queryKey: TY,
queryFn: () => FY(e)
});
}
-function mTe(e, t, n) {
+function pTe(e, t, n) {
let r = new Set(t);
r.size && H.setQueryData(TY, (t) => {
if (!t) return t;
@@ -62358,15 +62343,15 @@ function mTe(e, t, n) {
};
});
}
-var hTe = () => H.invalidateQueries({
+var mTe = () => H.invalidateQueries({
queryKey: TY,
exact: !0
});
-function gTe(e, t) {
+function hTe(e, t) {
return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Cr(e.fetched_at)} 的缓存` : e?.error || t;
}
// src/react/data-cleanup/links.ts
-var _Te = "/api/links", IY = "/api/links/check", LY = "/api/links/prune", RY = ["links"], zY = ["links", "check"], BY = ["links", "prune"], vTe = {
+var gTe = "/api/links", IY = "/api/links/check", LY = "/api/links/prune", RY = ["links"], zY = ["links", "check"], BY = ["links", "prune"], _Te = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
@@ -62377,22 +62362,22 @@ async function VY(e) {
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var HY = (e) => B(_Te, e), UY = (e) => V(IY, { status_only: !0 }, "POST", e), yTe = ({ retry: e, checkId: t }) => VY(V(IY, e ? {
+var HY = (e) => B(gTe, e), UY = (e) => V(IY, { status_only: !0 }, "POST", e), vTe = ({ retry: e, checkId: t }) => VY(V(IY, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), WY = (e) => B(LY, e), bTe = ({ checkId: e, ids: t }) => VY(V(LY, {
+} : { restart: !0 })), WY = (e) => B(LY, e), yTe = ({ checkId: e, ids: t }) => VY(V(LY, {
confirm: !0,
check_id: e,
background: !0,
...t ? { ids: t } : {}
-})), GY = (e) => Number(e || 0).toLocaleString(), xTe = (e) => `已删除 ${GY(e.removed)} 条;${e.marked ? `已隐退女优的 ${GY(e.marked)} 条留作不可点的记录;` : ""}保留 ${GY(e.recovered)} 条未确认失效的链接。`;
-function STe(e) {
+})), GY = (e) => Number(e || 0).toLocaleString(), bTe = (e) => `已删除 ${GY(e.removed)} 条;${e.marked ? `已隐退女优的 ${GY(e.marked)} 条留作不可点的记录;` : ""}保留 ${GY(e.recovered)} 条未确认失效的链接。`;
+function xTe(e) {
let t = e.scope === "retry";
return e.total ? `${t ? "已重验" : "已检查"} ${GY(e.checked)} / ${GY(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
// src/configuration-endpoints.ts
-var KY = "/api/configuration", qY = "/api/pick-folder", JY = "/api/settings", YY = "/api/follow/schedule", XY = "/api/feeds/schedule", ZY = "/api/thumbnail-jobs", QY = ["settings"], $Y = ["follow-schedule"], eX = ["feed-schedule"], tX = ["thumbnail-jobs"], nX = "/api/media-processing", CTe = ["media-processing"], wTe = (e) => B(nX, e), rX = (e) => B(JY, e), TTe = (e) => B(YY, e), ETe = (e) => B(XY, e), DTe = (e) => B(ZY, e);
-function OTe(e = H) {
+var KY = "/api/configuration", qY = "/api/pick-folder", JY = "/api/settings", YY = "/api/follow/schedule", XY = "/api/feeds/schedule", ZY = "/api/thumbnail-jobs", QY = ["settings"], $Y = ["follow-schedule"], eX = ["feed-schedule"], tX = ["thumbnail-jobs"], nX = "/api/media-processing", STe = ["media-processing"], CTe = (e) => B(nX, e), rX = (e) => B(JY, e), wTe = (e) => B(YY, e), TTe = (e) => B(XY, e), ETe = (e) => B(ZY, e);
+function DTe(e = H) {
return e.fetchQuery({
queryKey: QY,
queryFn: ({ signal: e }) => rX(e),
@@ -62405,7 +62390,7 @@ function iX() {
onSuccess: (e) => H.setQueryData(QY, e)
});
}
-function kTe() {
+function OTe() {
return It({
mutationFn: (e) => V(YY, {
enabled: e > 0,
@@ -62414,7 +62399,7 @@ function kTe() {
onSuccess: (e) => H.setQueryData($Y, e)
});
}
-var ATe = {
+var kTe = {
follow: {
url: `${YY}/run`,
key: $Y
@@ -62424,36 +62409,36 @@ var ATe = {
key: eX
}
};
-function jTe(e) {
- let { url: t, key: n } = ATe[e];
+function ATe(e) {
+ let { url: t, key: n } = kTe[e];
return It({
mutationFn: () => V(t, {}),
onSuccess: (e) => H.setQueryData(n, e)
});
}
-var MTe = (e) => e?.running ? 3e3 : !1;
-function NTe() {
+var jTe = (e) => e?.running ? 3e3 : !1;
+function MTe() {
return It({
mutationFn: (e) => V(ZY, { mode: e }),
onSuccess: (e) => H.setQueryData(tX, e)
});
}
// src/react/data-cleanup/organize.ts
-var PTe = "/api/organize", FTe = "/api/organize/preview", ITe = "/api/organize/apply", LTe = "/api/organize/rollback", aX = ["organize"], RTe = "/api/organize/example", zTe = (e, t, n) => B(`${RTe}?${new URLSearchParams({
+var NTe = "/api/organize", PTe = "/api/organize/preview", FTe = "/api/organize/apply", ITe = "/api/organize/rollback", aX = ["organize"], LTe = "/api/organize/example", RTe = (e, t, n) => B(`${LTe}?${new URLSearchParams({
file_template: e,
dir_template: t
-})}`, n), oX = (e) => B(PTe, e);
-async function BTe(e) {
+})}`, n), oX = (e) => B(NTe, e);
+async function zTe(e) {
await H.fetchQuery({
queryKey: aX,
queryFn: () => oX(e)
});
}
-var VTe = (e) => V(FTe, e), HTe = (e) => V(qY, { initial: e }), UTe = (e) => e.kind === "apply" ? V(ITe, {
+var BTe = (e) => V(PTe, e), VTe = (e) => V(qY, { initial: e }), HTe = (e) => e.kind === "apply" ? V(FTe, {
...e.request,
confirm: !0
-}) : V(LTe, { confirm: !0 });
-async function WTe(e) {
+}) : V(ITe, { confirm: !0 });
+async function UTe(e) {
H.setQueryData(aX, (t) => t && {
...t,
templates: e
@@ -62462,20 +62447,20 @@ async function WTe(e) {
await V(JY, { organizeTemplates: e });
} catch {}
}
-var GTe = (e, t) => e && {
+var WTe = (e, t) => e && {
...e,
...t
-}, KTe = /目录模板|分隔符|盘符|`\.`/;
-function qTe(e) {
+}, GTe = /目录模板|分隔符|盘符|`\.`/;
+function KTe(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
var sX = (e) => Number(e || 0).toLocaleString();
-function JTe(e) {
+function qTe(e) {
let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${sX(t)}`).join(" · ");
return Number(e.counts?.change || 0) ? `${sX(e.counts.change)} 个文件会改名或移动,${sX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function YTe(e) {
+function JTe(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
text: t ? `已退回 ${sX(r)} 个文件${n ? `,${sX(n)} 行未能退回` : ""}。` : `已整理 ${sX(r)} 个文件${n ? `,${sX(n)} 行未能处理` : ""}。`,
@@ -62484,36 +62469,36 @@ function YTe(e) {
};
}
// src/react/data-cleanup/orphan-records.ts
-var XTe = "/api/orphan-records", ZTe = "/api/orphan-records/attach", cX = ["orphan-records"], QTe = [
+var YTe = "/api/orphan-records", XTe = "/api/orphan-records/attach", cX = ["orphan-records"], ZTe = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], lX = (e) => B(XTe, e), $Te = (e, t) => V(ZTe, {
+], lX = (e) => B(YTe, e), QTe = (e, t) => V(XTe, {
id: e,
target: t
-}), eEe = (e) => V(pY, {
+}), $Te = (e) => V(pY, {
ids: Array.isArray(e) ? e : [e],
operation: "delete"
-}), tEe = (e) => [
+}), eEe = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], nEe = (e) => [...QTe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...tEe(e)].filter(Boolean).join(" · "), rEe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", iEe = (e) => [e.name, rEe(e.duration)].filter(Boolean).join(" · "), uX = "/api/resource-sync/scan", dX = "/api/resource-sync/apply", fX = ["resource-sync", "scan"], pX = ["resource-sync", "apply"], mX = (e) => V(uX, {
+], tEe = (e) => [...ZTe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...eEe(e)].filter(Boolean).join(" · "), nEe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", rEe = (e) => [e.name, nEe(e.duration)].filter(Boolean).join(" · "), uX = "/api/resource-sync/scan", dX = "/api/resource-sync/apply", fX = ["resource-sync", "scan"], pX = ["resource-sync", "apply"], mX = (e) => V(uX, {
background: !0,
status_only: !0
-}, "POST", e), aEe = () => V(uX, {
+}, "POST", e), iEe = () => V(uX, {
background: !0,
restart: !0
-}), hX = (e) => B(dX, e), oEe = (e) => V(dX, {
+}), hX = (e) => B(dX, e), aEe = (e) => V(dX, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
}), gX = (e) => (e?.sources ?? []).some((e) => _n.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function sEe(e) {
+async function oEe(e) {
gX(H.getQueryData(yr)) && await Promise.all([H.fetchQuery({
queryKey: fX,
queryFn: () => mX(e)
@@ -62522,7 +62507,7 @@ async function sEe(e) {
queryFn: () => hX(e)
})]);
}
-var cEe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), _X = (e) => Number(e || 0).toLocaleString(), lEe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", vX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), yX = (e) => e.vanish ? `${_X(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", bX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", uEe = (e) => `将永久删除文件已不在盘上的 ${_X(vX(e))} 条记录和 ${_X(e.empty)} 个空文件夹,并清理 ${_X(e.cache?.files)} 个闲置缓存。${bX(e)}${yX(e)}`, dEe = (e) => `将永久删除文件已不在盘上的 ${_X(vX(e))} 条记录(含回收站里的)、${_X(e.empty)} 个空文件夹,并清理 ${_X(e.cache?.files)} 个闲置缓存。来源根目录保留。${bX(e)}${yX(e)}`, fEe = (e) => e.online ? [
+var sEe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), _X = (e) => Number(e || 0).toLocaleString(), cEe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", vX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), yX = (e) => e.vanish ? `${_X(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", bX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", lEe = (e) => `将永久删除文件已不在盘上的 ${_X(vX(e))} 条记录和 ${_X(e.empty)} 个空文件夹,并清理 ${_X(e.cache?.files)} 个闲置缓存。${bX(e)}${yX(e)}`, uEe = (e) => `将永久删除文件已不在盘上的 ${_X(vX(e))} 条记录(含回收站里的)、${_X(e.empty)} 个空文件夹,并清理 ${_X(e.cache?.files)} 个闲置缓存。来源根目录保留。${bX(e)}${yX(e)}`, dEe = (e) => e.online ? [
`找不到文件 · 共 ${_X(e.total)} 项`,
e.vanish ? `${_X(e.vanish)} 项带个人记录` : "",
e.empty ? `空文件夹 ${_X(e.empty)} 个` : ""
@@ -62539,59 +62524,59 @@ function xX(e) {
].filter(Boolean).join(",")
};
}
-var pEe = (e, t) => {
+var fEe = (e, t) => {
let { rest: n } = xX(e), r = `已永久删除 ${_X(e.purged)} 条失效记录和 ${_X(e.dirs_removed)} 个空文件夹,清理 ${_X(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${_X(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${_X(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, SX = ["performer-delete-candidates"], CX = (e) => B("/api/performer/delete-candidates", e), mEe = (e, t) => B(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), hEe = (e) => V("/api/performer/delete", {
+}, SX = ["performer-delete-candidates"], CX = (e) => B("/api/performer/delete-candidates", e), pEe = (e, t) => B(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), mEe = (e) => V("/api/performer/delete", {
entity_ids: e.entity_ids,
plan: e.plan
-}), gEe = "/api/review?counts=1", wX = ["review", "counts"], _Ee = "/api/ads?limit=1", TX = ["junk-summary"], EX = "/api/items?state=trash&limit=1", DX = ["trash-summary"], vEe = [
+}), hEe = "/api/review?counts=1", wX = ["review", "counts"], gEe = "/api/ads?limit=1", TX = ["junk-summary"], EX = "/api/items?state=trash&limit=1", DX = ["trash-summary"], _Ee = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], OX = (e) => B(gEe, e), kX = (e) => B(_Ee, e), AX = (e) => {
+], OX = (e) => B(hEe, e), kX = (e) => B(gEe, e), AX = (e) => {
let t = sessionStorage.getItem("peach.library");
return B(t ? `${EX}&library=${encodeURIComponent(t)}` : EX, e);
}, jX = (e) => Number(e || 0).toLocaleString();
-function yEe(e) {
+function vEe(e) {
let t = EY, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);
return a && i.push(`其余 ${a.toLocaleString()}`), {
figure: `${r.toLocaleString()} 条待复核`,
meta: i.join(" · ")
};
}
-function bEe(e) {
+function yEe(e) {
if (!e) return "";
- let t = vEe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${jX(e.counts[t])}`);
+ let t = _Ee.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${jX(e.counts[t])}`);
return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${jX(e.dismissed_total)}`), t.join(" · ");
}
-var xEe = [
+var bEe = [
[wX, ({ signal: e }) => OX(e)],
[SY, ({ signal: e }) => CY(e)],
[DX, ({ signal: e }) => AX(e)],
[TX, ({ signal: e }) => kX(e)],
[fY, ({ signal: e }) => mY(e)]
];
-async function SEe(e) {
- for (let [t, n] of xEe) H.prefetchQuery({
+async function xEe(e) {
+ for (let [t, n] of bEe) H.prefetchQuery({
queryKey: t,
queryFn: () => n({ signal: e })
});
- await sH(e);
+ await cH(e);
}
-async function CEe(e, t) {
+async function SEe(e, t) {
switch (e) {
case "organize":
- await BTe(t);
+ await zTe(t);
break;
case "media-repair":
- await Lwe(t);
+ await Iwe(t);
break;
case "resource-sync":
- await dY(t), await sEe(t);
+ await dY(t), await oEe(t);
break;
case "orphan-records":
await H.prefetchQuery({
@@ -62622,8 +62607,8 @@ async function CEe(e, t) {
}
}
// src/react/feed-new/feed-new.ts
-var MX = (e) => ["feed-new", e ?? "home"], wEe = 8, TEe = 1500;
-function EEe(e, t, n) {
+var MX = (e) => ["feed-new", e ?? "home"], CEe = 8, wEe = 1500;
+function TEe(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -62634,11 +62619,11 @@ function EEe(e, t, n) {
setTimeout(e, n);
})]);
}
-async function DEe(e, t, n) {
- let r = new URLSearchParams({ limit: String(rM().value.feedLimit) });
+async function EEe(e, t, n) {
+ let r = new URLSearchParams({ limit: String(iM().value.feedLimit) });
e && r.set("entity", String(e));
let i = await Tn(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a, e ? "" : "/jav?tab=releases");
- return n && o.length && await EEe(s, wEe, TEe), {
+ return n && o.length && await TEe(s, CEe, wEe), {
items: o,
html: s,
fetching: o.some((e) => e.cover_fetching && !e.has_cover)
@@ -62646,7 +62631,7 @@ async function DEe(e, t, n) {
}
var NX = (e, t, n = !1) => ({
queryKey: MX(e),
- queryFn: () => DEe(e, t, n),
+ queryFn: () => EEe(e, t, n),
staleTime: Infinity,
refetchInterval: (e) => e.state.data?.fetching ? 2e3 : !1
}), PX = (e, t) => Tn("/api/feeds/discovery", {
@@ -62656,7 +62641,7 @@ var NX = (e, t, n = !1) => ({
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function OEe(e) {
+async function DEe(e) {
H.removeQueries({ queryKey: MX(null) }), await H.fetchQuery(NX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
// src/react/entity-page/entity-page.ts
@@ -62681,7 +62666,7 @@ var FX = [
"entity",
e,
t
-], kEe = (e, t, n, r) => [
+], OEe = (e, t, n, r) => [
"entity-items",
e,
t,
@@ -62693,7 +62678,7 @@ var FX = [
t,
n,
r
-], zX = (e) => String(e || "").split(",").filter(Boolean), AEe = (e, t) => zX(e).includes(t);
+], zX = (e) => String(e || "").split(",").filter(Boolean), kEe = (e, t) => zX(e).includes(t);
function BX(e, t, n, r, i = 0) {
let a = new URLSearchParams();
a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...zX(n.tag)])].join(",")), a.set("tag_match", "all")), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");
@@ -62710,7 +62695,7 @@ var HX = (e) => {
seed: e.seed
}, n = BX(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: kEe(e.kind, e.name, n, e.revision),
+ queryKey: OEe(e.kind, e.name, n, e.revision),
queryFn: ({ signal: n }) => VX(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
@@ -62719,7 +62704,7 @@ var HX = (e) => {
queryFn: ({ signal: n }) => Tn(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
-function jEe(e, t, n, r, i, a) {
+function AEe(e, t, n, r, i, a) {
let o = `kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`;
if (i) {
let e = `&limit=120&offset=${i}${a ? `&seed=${encodeURIComponent(a)}` : ""}`;
@@ -62731,7 +62716,7 @@ function jEe(e, t, n, r, i, a) {
var WX = (e, t, n, r) => ({
queryKey: RX(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await Tn(jEe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
+ let a = await Tn(AEe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@ -62745,7 +62730,7 @@ var WX = (e, t, n, r) => ({
} : void 0,
staleTime: Infinity
}), GX = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function MEe(e) {
+async function jEe(e) {
let { kind: t, name: n } = e;
if (!e.restoreNavigation) for (let e of [
"entity",
@@ -62772,7 +62757,7 @@ var KX = [
["blogger", "网黄博主"],
["animation", "动画作者"]
], qX = "mb-4 flex flex-wrap gap-2";
-function NEe(e) {
+function MEe(e) {
let t = KX.some(([t]) => t === e) ? e : "all";
return `<div class="peach-react"><div aria-label="身份分类" class="${qX}">${KX.map(([e, n]) => Os({
variant: e === t ? "primary" : "secondary",
@@ -62782,39 +62767,39 @@ function NEe(e) {
})).join("")}</div></div>`;
}
// src/react/follow/online-vocab.ts
-var PEe = "/api/follow/authors", FEe = "/api/follow/tags", IEe = (e) => [
+var NEe = "/api/follow/authors", PEe = "/api/follow/tags", FEe = (e) => [
"follow",
"authors",
e
-], LEe = (e, t) => [
+], IEe = (e, t) => [
"follow",
"tags",
e,
t
];
-function REe(e, t, n) {
+function LEe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${PEe}?${r}`;
+ return e && r.set("q", e), `${NEe}?${r}`;
}
-function zEe(e, t, n, r) {
+function REe(e, t, n, r) {
let i = new URLSearchParams({
types: "all",
limit: String(n),
offset: String(r)
});
- return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${FEe}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${PEe}?${i}`;
}
-var BEe = (e, t, n, r) => B(REe(e, t, n), r), VEe = (e, t, n, r, i) => B(zEe(e, t, n, r), i), HEe = "/api/index", JX = {
+var zEe = (e, t, n, r) => B(LEe(e, t, n), r), BEe = (e, t, n, r, i) => B(REe(e, t, n, r), i), VEe = "/api/index", JX = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, UEe = {
+}, HEe = {
performers: "performer",
creators: "creator",
studios: "studio",
@@ -62886,7 +62871,7 @@ function rZ(e, t, n, r, i) {
limit: String(r),
offset: String(i)
});
- return t && a.set("q", t), n !== "all" && a.set("category", n), `${HEe}?${a}`;
+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${VEe}?${a}`;
}
function iZ(e, t = ZX.tags) {
let n = e.what === "people" || e.what === "online-authors" ? ZX.people : t, r = {
@@ -62906,17 +62891,17 @@ function iZ(e, t = ZX.tags) {
};
case "online-authors": return {
...r,
- queryKey: IEe(e.q),
- queryFn: ({ pageParam: t, signal: r }) => BEe(e.q, n, t, r)
+ queryKey: FEe(e.q),
+ queryFn: ({ pageParam: t, signal: r }) => zEe(e.q, n, t, r)
};
case "online-tags": return {
...r,
- queryKey: LEe(e.q, e.category),
- queryFn: ({ pageParam: t, signal: r }) => VEe(e.q, e.category, n, t, r)
+ queryKey: IEe(e.q, e.category),
+ queryFn: ({ pageParam: t, signal: r }) => BEe(e.q, e.category, n, t, r)
};
}
}
-async function WEe(e, t) {
+async function UEe(e, t) {
let n = iZ(tZ(eZ(e)));
await H.fetchInfiniteQuery({
queryKey: n.queryKey,
@@ -62929,13 +62914,13 @@ async function WEe(e, t) {
staleTime: Infinity
});
}
-var GEe = (e) => e ? e.pages.flatMap((e) => e.items) : [], KEe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, aZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", qEe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, JEe = {
+var WEe = (e) => e ? e.pages.flatMap((e) => e.items) : [], GEe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, aZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", KEe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, qEe = {
numeric: !0,
sensitivity: "base"
};
function oZ(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", JEe))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", qEe))) {
let e = er(t(r.k).normalize("NFKC"), "").toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);
a ? a.push(r) : n.set(i, [r]);
}
@@ -62954,18 +62939,18 @@ function sZ({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var YEe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", XEe = pV("rss");
+var JEe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", YEe = mV("rss");
function cZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
...o,
"data-index-cell": "",
onClick: a,
- className: CU({
+ className: wU({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${YEe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${JEe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -62974,10 +62959,10 @@ function cZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
role: "img",
"aria-label": "已订阅新作",
className: "index-feed-mark absolute top-4 right-4 z-2 inline-flex",
- children: /* @__PURE__ */ (0, I.jsx)(KU, {
+ children: /* @__PURE__ */ (0, I.jsx)(qU, {
variant: "caption",
color: "soft",
- children: /* @__PURE__ */ (0, I.jsx)(XEe, {})
+ children: /* @__PURE__ */ (0, I.jsx)(YEe, {})
})
}) : null,
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -62995,7 +62980,7 @@ function cZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
}
function lZ({ kind: e, items: t, layout: n, props: r }) {
let i = $X(e) || e === "series";
- rL();
+ aL();
let a = n === "big";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-index-grid": "",
@@ -63003,12 +62988,12 @@ function lZ({ kind: e, items: t, layout: n, props: r }) {
"data-cells": i ? "company" : "people",
className: `${i ? "index-grid-company" : "index-grid-person"} gap-3`,
children: t.map((t) => {
- let n = t.entity_kind || UEe[e], o = r.personAvatar(t, n, a);
+ let n = t.entity_kind || HEe[e], o = r.personAvatar(t, n, a);
return /* @__PURE__ */ (0, I.jsx)(cZ, {
"data-k": t.k,
"data-kind": n,
name: nn(n, t.k, t.entity_id),
- readout: `${qEe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
+ readout: `${KEe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
big: a,
following: t.following,
onPress: () => r.openEntity(n, t.k),
@@ -63022,8 +63007,8 @@ function lZ({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function ZEe({ items: e, layout: t, props: n }) {
- rL();
+function XEe({ items: e, layout: t, props: n }) {
+ aL();
let r = t === "big";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-index-grid": "",
@@ -63086,7 +63071,7 @@ function pZ(e) {
}
return !1;
}
-function QEe() {
+function ZEe() {
let e = document.createElement("div");
e.className = "ui-board-tooltip", e.id = "board-control-tooltip", e.role = "tooltip", e.popover = "manual", e.hidden = !0, document.body.append(e);
let t = null, n = "", r = null, i, a, o = !1, s = () => e.hasAttribute("data-copy-key") && !!document.querySelector("[data-copy-bar]"), c = () => s() && (o || !!e.querySelector("[data-copy-inline],[contenteditable]") || !!document.querySelector("[data-copy-choice],[data-copy-bar][aria-busy=\"true\"]")), l = (t) => {
@@ -63133,11 +63118,11 @@ function mZ(e) {
e.style.setProperty("--board-range-value", `${i}%`);
}
var hZ = /* @__PURE__ */ new WeakSet();
-function $Ee() {
+function QEe() {
if (hZ.has(document)) return;
hZ.add(document);
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(mZ), tDe(e), eDe(e);
+ e.querySelectorAll("input[type=range]").forEach(mZ), eDe(e), $Ee(e);
};
e(document), new MutationObserver((t) => {
for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && mZ(t), e(t));
@@ -63146,9 +63131,9 @@ function $Ee() {
childList: !0
}), document.addEventListener("input", (e) => {
e.target instanceof HTMLInputElement && e.target.type === "range" && mZ(e.target);
- }), QEe();
+ }), ZEe();
}
-function eDe(e) {
+function $Ee(e) {
let t = ".ui-board-local-nav:not([data-section-nav])", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-tabs")) return;
@@ -63173,7 +63158,7 @@ function eDe(e) {
});
}
var gZ = /* @__PURE__ */ new Map();
-function tDe(e) {
+function eDe(e) {
let t = ".iconswitch,.insightswitch,.follow-workspace-switch", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-segments") || e.closest("[data-skeleton]")) return;
@@ -63205,7 +63190,7 @@ function tDe(e) {
});
}
// src/react/photo-lightbox/photo-lightbox.ts
-var _Z = "/vendor/swiper/14.4.0/", vZ = null, nDe = () => vZ ??= Promise.all([new Promise((e, t) => {
+var _Z = "/vendor/swiper/14.4.0/", vZ = null, tDe = () => vZ ??= Promise.all([new Promise((e, t) => {
let n = `${_Z}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
@@ -63224,7 +63209,7 @@ var _Z = "/vendor/swiper/14.4.0/", vZ = null, nDe = () => vZ ??= Promise.all([ne
})]).then(([, e]) => e).catch((e) => {
throw vZ = null, e;
});
-function rDe(e, t, n) {
+function nDe(e, t, n) {
let r = "fit", i = () => t.slides?.[t.activeIndex]?.querySelector("img"), a = () => {
let e = i();
return !e?.naturalWidth || !e.naturalHeight ? 100 : Math.min(100, e.offsetWidth / e.naturalWidth * 100, e.offsetHeight / e.naturalHeight * 100);
@@ -63248,8 +63233,8 @@ function rDe(e, t, n) {
var yZ = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : Xn(t)).replace(" ", "\xA0") : "大小未知";
-}, iDe = (e) => e.asset?.name || e.name || "未命名图片";
-function aDe(e, t) {
+}, rDe = (e) => e.asset?.name || e.name || "未命名图片";
+function iDe(e, t) {
let n = e.asset;
if (n) return [nr[n.location ?? ""] || n.location || "来源未知", yZ(n.size)].join(" · ");
let r = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";
@@ -63260,31 +63245,31 @@ function aDe(e, t) {
].filter(Boolean).join(" · ");
}
// src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var bZ = null, xZ = null, oDe = 0;
-function sDe() {
+var bZ = null, xZ = null, aDe = 0;
+function oDe() {
return xZ && bZ?.isConnected || (xZ?.unmount(), bZ = document.createElement("div"), bZ.className = "peach-react", bZ.dataset.photoLightboxHost = "", document.body.append(bZ), xZ = (0, zt.createRoot)(bZ)), xZ;
}
async function SZ(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await nDe();
+ r = await tDe();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = sDe();
- (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(cDe, {
+ let i = oDe();
+ (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(sDe, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++oDe)));
+ }, ++aDe)));
}
function CZ() {
xZ && (0, Rt.flushSync)(() => xZ.render(null));
}
-function cDe({ slides: e, index: t, Swiper: n, host: r }) {
+function sDe({ slides: e, index: t, Swiper: n, host: r }) {
let i = e.length > 1, a = (0, F.useId)(), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (0, F.useRef)(null), [_, v] = (0, F.useState)(t), [y, b] = (0, F.useState)(100), [x, S] = (0, F.useState)({}), [C, w] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [T, E] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [D, O] = (0, F.useState)(!1), [k, A] = (0, F.useState)({
at: t,
text: ""
@@ -63327,7 +63312,7 @@ function cDe({ slides: e, index: t, Swiper: n, host: r }) {
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = rDe(e, a, b);
+ i(t, 0), h.current = nDe(e, a, b);
let m = il(e, f.current, p.current), _ = (e = !1) => {
m.hide(), f.current?.setAttribute("aria-expanded", "false"), e && f.current && document.contains(f.current) && f.current.focus();
};
@@ -63528,10 +63513,10 @@ function cDe({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: iDe(j)
+ children: rDe(j)
}, _), /* @__PURE__ */ (0, I.jsx)("span", {
"data-photo-detail-meta": "",
- children: aDe(j, x[_])
+ children: iDe(j, x[_])
})]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -63569,17 +63554,17 @@ function cDe({ slides: e, index: t, Swiper: n, host: r }) {
});
}
// src/react/entity-body/entity-body-page.tsx
-function lDe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(uDe, {
+function cDe(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(lDe, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(dDe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(mDe, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(uDe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(pDe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
var wZ = ZX.people;
-function uDe({ roster: e, props: t }) {
+function lDe({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, F.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
@@ -63597,7 +63582,7 @@ function uDe({ roster: e, props: t }) {
enabled: () => !0
}, a) : null] });
}
-function dDe(e) {
+function uDe(e) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-grid": "",
children: /* @__PURE__ */ (0, I.jsx)(HG, {
@@ -63625,14 +63610,14 @@ function dDe(e) {
})
});
}
-var fDe = (e) => Array.from({ length: e.n }, (t, n) => ({
+var dDe = (e) => Array.from({ length: e.n }, (t, n) => ({
sample: !0,
code: e.code,
position: n + 1,
total: e.n,
name: `${e.code} 样张 ${n + 1}`,
source: e.site_label || "官方样张"
-})), TZ = (e) => e.sample === !0, EZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, DZ = (e) => TZ(e) ? `/sample-thumb?${EZ(e)}` : `/photo-thumb?id=${e.id}`, pDe = (e) => TZ(e) ? {
+})), TZ = (e) => e.sample === !0, EZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, DZ = (e) => TZ(e) ? `/sample-thumb?${EZ(e)}` : `/photo-thumb?id=${e.id}`, fDe = (e) => TZ(e) ? {
src: `/sample-image?${EZ(e)}`,
thumb: DZ(e),
name: e.name,
@@ -63644,14 +63629,14 @@ var fDe = (e) => Array.from({ length: e.n }, (t, n) => ({
name: e.name || "",
asset: e
};
-function mDe({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(fDe), ...e.items], [e]), [s, c] = (0, F.useState)(() => /* @__PURE__ */ new Set()), l = (0, F.useCallback)((e) => c((t) => {
+function pDe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(dDe), ...e.items], [e]), [s, c] = (0, F.useState)(() => /* @__PURE__ */ new Set()), l = (0, F.useCallback)((e) => c((t) => {
if (t.has(e)) return t;
let n = new Set(t);
return n.add(e), n;
}), []), u = (0, F.useCallback)((e) => {
- SZ(e, o.map(pDe), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(hDe, {
+ SZ(e, o.map(fDe), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(mDe, {
item: e,
index: t,
lost: s.has(t),
@@ -63714,7 +63699,7 @@ function OZ({ label: e, title: t, meta: n }) {
]
});
}
-function hDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function mDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -63733,9 +63718,9 @@ function hDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
});
}
// src/react/background-job.ts
-var gDe = 2e3, _De = (e) => e, vDe = (e, t) => t;
+var hDe = 2e3, gDe = (e) => e, _De = (e, t) => t;
function kZ(e) {
- let { queryKey: t, jobOf: n = _De, withJob: r = vDe, idlePollMs: i } = e, [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(null), l = (0, F.useRef)(e);
+ let { queryKey: t, jobOf: n = gDe, withJob: r = _De, idlePollMs: i } = e, [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(null), l = (0, F.useRef)(e);
(0, F.useEffect)(() => {
l.current = e;
});
@@ -63744,7 +63729,7 @@ function kZ(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? gDe : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? hDe : i ?? !1;
}
}), d = It({
mutationFn: (e) => l.current.start(e),
@@ -63769,11 +63754,11 @@ function kZ(e) {
}
// src/react/follow-feed/follow-check.ts
var AZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
-function yDe(e, t) {
+function vDe(e, t) {
return t ? AZ(e.filter((e) => e.author_key === t || t.startsWith("entity:") && String(e.entity_id) === t.slice(7)).map((e) => e.id)) : [];
}
// src/react/follow-feed/follow-check-button.tsx
-function bDe({ sources: e, report: t }) {
+function yDe({ sources: e, report: t }) {
let n = AZ(e), [r, i] = (0, F.useState)(""), { running: a, start: o } = kZ({
queryKey: zr,
queryFn: ({ signal: e }) => vi(e),
@@ -63788,19 +63773,19 @@ function bDe({ sources: e, report: t }) {
children: [/* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
disabled: !n.length,
- ...hV(s),
+ ...gV(s),
onClick: () => {
n.length && !s && (i(""), o.mutate(n));
},
children: "检查更新"
- }), r ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ }), r ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
children: r
}) : null]
});
}
// src/react/follow-feed/follow-card.tsx
-var xDe = (e) => Number(e) > 0;
+var bDe = (e) => Number(e) > 0;
function jZ({ name: e, actions: t, children: n, ...r }) {
return /* @__PURE__ */ (0, I.jsx)("a", {
...r,
@@ -63815,7 +63800,7 @@ var MZ = ({ provider: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: gG(e) }
});
-function SDe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
+function xDe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
let [s, c] = (0, F.useState)(!1), [l, u] = (0, F.useState)(!1), [d, f] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
c(!1);
@@ -63838,8 +63823,8 @@ function SDe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a
} : void 0
});
}
-function CDe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = ga(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => hbe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? va(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ba({
+function SDe(e) {
+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = ga(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => mbe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? va(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ba({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@ -63884,7 +63869,7 @@ function CDe(e) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
children: [
- p ? /* @__PURE__ */ (0, I.jsx)(SDe, {
+ p ? /* @__PURE__ */ (0, I.jsx)(xDe, {
src: p,
fallback: m,
width: _?.width,
@@ -63925,7 +63910,7 @@ function CDe(e) {
},
dangerouslySetInnerHTML: { __html: R("check") }
}) : null,
- xDe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ bDe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-duration": "",
children: Jn(u.duration)
}) : null,
@@ -64076,9 +64061,9 @@ function CDe(e) {
]
});
}
-var NZ = (0, F.memo)(CDe);
+var NZ = (0, F.memo)(SDe);
// src/react/components/use-masonry-grid.ts
-function wDe(e, t) {
+function CDe(e, t) {
let n = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
let t = n.current;
@@ -64143,7 +64128,7 @@ function RZ(e, t) {
var zZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), TDe = pV("settings"), BZ = pV("chevron-down"), EDe = pV("history"), DDe = pV("arrow-up"), ODe = pV("arrow-down"), kDe = [[
+}), wDe = mV("settings"), BZ = mV("chevron-down"), TDe = mV("history"), EDe = mV("arrow-up"), DDe = mV("arrow-down"), ODe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -64152,7 +64137,7 @@ var zZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function ADe(e, t, n) {
+function kDe(e, t, n) {
return (0, F.useMemo)(() => {
let r = e?.groups || [], i = e?.counts || {}, a = e?.sources || [], o = e?.facets || {}, s = new Set(o.authors || []), c = new Map(a.map((e) => [e.provider, e.provider_label || e.provider])), l = new Map((o.providers || []).map((e) => [e, c.get(e) || e])), u = new Map(o.tags || []), d = /* @__PURE__ */ new Map();
a.forEach((e) => {
@@ -64200,7 +64185,7 @@ function ADe(e, t, n) {
n
]);
}
-function jDe(e) {
+function ADe(e) {
let { view: t, seed: n, revision: r, actions: i } = e, a = Lt(ra(t, r)), o = Ft({
queryKey: ia,
queryFn: ({ signal: e }) => aa(e)
@@ -64208,7 +64193,7 @@ function jDe(e) {
sources: s?.sources || [],
aliases: s?.author_aliases || [],
credentials: c
- }), [s, c]), u = ADe(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;
+ }), [s, c]), u = kDe(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;
(0, F.useEffect)(() => {
pm(() => location.pathname === "/follow", document.querySelector("#stats [data-filter-frame]"), { pending: d });
}, [
@@ -64242,7 +64227,7 @@ function jDe(e) {
p,
i
]);
- let m = NDe(e, !!s);
+ let m = MDe(e, !!s);
if (!s) return a.isError ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-follow-feed": "",
children: [/* @__PURE__ */ (0, I.jsx)(VZ, {}), /* @__PURE__ */ (0, I.jsx)(VG, {
@@ -64267,7 +64252,7 @@ function jDe(e) {
ref: m.host,
"data-follow-progress": ""
}, m.generation),
- !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "neutral",
title: "检查结果",
children: m.report
@@ -64287,20 +64272,20 @@ function jDe(e) {
dangerouslySetInnerHTML: { __html: Bs("检查中") }
}) : "检查更新"
}) : null }),
- /* @__PURE__ */ (0, I.jsx)(PDe, {
+ /* @__PURE__ */ (0, I.jsx)(NDe, {
facets: u,
pressed: u.author,
context: l,
props: e,
onPick: (e) => h({ author: u.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(FDe, {
+ /* @__PURE__ */ (0, I.jsx)(PDe, {
rows: u.workRows,
pressed: t.work,
props: e,
onPick: (e) => h({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(IDe, {
+ /* @__PURE__ */ (0, I.jsx)(FDe, {
facets: u,
view: t,
total: _,
@@ -64308,7 +64293,7 @@ function jDe(e) {
props: e,
route: h
}),
- /* @__PURE__ */ (0, I.jsx)(LDe, {
+ /* @__PURE__ */ (0, I.jsx)(IDe, {
conditions: g,
onDrop: (e) => i.route(Ea(t, e)),
onClear: () => h({
@@ -64320,8 +64305,8 @@ function jDe(e) {
durMax: 0
})
}),
- u.broken.length ? /* @__PURE__ */ (0, I.jsx)(RDe, { count: u.broken.length }) : null,
- /* @__PURE__ */ (0, I.jsx)(zDe, {
+ u.broken.length ? /* @__PURE__ */ (0, I.jsx)(LDe, { count: u.broken.length }) : null,
+ /* @__PURE__ */ (0, I.jsx)(RDe, {
retryKey: a.dataUpdatedAt,
pending: d,
facets: u,
@@ -64351,7 +64336,7 @@ function jDe(e) {
await a.fetchNextPage({ throwOnError: !0 });
},
children: [/* @__PURE__ */ (0, I.jsx)(BZ, { className: "size-(--icon-inline)" }), "加载更多"]
- }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(MDe, {
+ }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(jDe, {
busy: a.isFetchingNextPage,
error: a.isFetchNextPageError ? xn(a.error) : "",
load: () => {
@@ -64362,7 +64347,7 @@ function jDe(e) {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- leadingIcon: m.olderBusy ? void 0 : EDe,
+ leadingIcon: m.olderBusy ? void 0 : TDe,
"data-follow-older": "",
"aria-busy": m.busy || void 0,
onClick: () => void m.start(!0),
@@ -64388,9 +64373,9 @@ function VZ({ children: e }) {
children: "关注"
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-follow-head-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(vL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(bL, {
variant: "secondary",
- leadingIcon: TDe,
+ leadingIcon: wDe,
"data-follow-manage": "",
href: HZ(),
children: "管理关注"
@@ -64398,7 +64383,7 @@ function VZ({ children: e }) {
})]
});
}
-function MDe({ busy: e, error: t, load: n }) {
+function jDe({ busy: e, error: t, load: n }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-entity-more": "",
@@ -64411,7 +64396,7 @@ function MDe({ busy: e, error: t, load: n }) {
onRetry: n
}) : null] });
}
-function NDe(e, t) {
+function MDe(e, t) {
let { helpers: n, actions: r } = e, [i, a] = (0, F.useState)(0), [o, s] = (0, F.useState)(!1), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(""), [f, p] = (0, F.useState)(!1), m = (0, F.useRef)(!1), h = (0, F.useRef)(null), g = (0, F.useRef)({
helpers: n,
actions: r
@@ -64473,7 +64458,7 @@ function NDe(e, t) {
olderBusy: c === "older" || f && o
};
}
-function PDe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function NDe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
let a = (0, F.useRef)(null);
(0, F.useEffect)(() => {
r.helpers.wireDrag(a.current);
@@ -64510,7 +64495,7 @@ function PDe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
})
}) : null;
}
-function FDe({ rows: e, pressed: t, props: n, onPick: r }) {
+function PDe({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -64531,13 +64516,13 @@ function FDe({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function IDe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = gL(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = gL(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+function FDe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
+ let { helpers: o, actions: s } = i, c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = vL(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = vL(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
(0, F.useEffect)(() => {
o.wireDrag(f.current), o.wireDrag(p.current), o.wireScroller(p.current);
}, [o]);
let _ = [...e.providers], v = _.length + e.tagRows.length > 0, y = t.media === "images";
- return /* @__PURE__ */ (0, I.jsx)(dL, {
+ return /* @__PURE__ */ (0, I.jsx)(pL, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -64625,7 +64610,7 @@ function IDe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: gG(t, n) }
}, t)),
_.length && e.tagRows.length ? /* @__PURE__ */ (0, I.jsx)(zZ, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(fL, {
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(mL, {
"data-follow-tag": n,
"data-entity-press": "",
"data-tag-cat": `r34-${Da(e.groups, n)}`,
@@ -64643,12 +64628,12 @@ function IDe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
/* @__PURE__ */ (0, I.jsx)("h3", {
"data-entity-readout": "",
"data-follow-readout": "",
- children: /* @__PURE__ */ (0, I.jsx)(iL, {
+ children: /* @__PURE__ */ (0, I.jsx)(oL, {
text: `${n.toLocaleString()} 项更新 · 显示 ${e.visible.length.toLocaleString()}`,
busy: r
})
}),
- /* @__PURE__ */ (0, I.jsx)(OV, {
+ /* @__PURE__ */ (0, I.jsx)(kV, {
currentHref: () => location.pathname + location.search,
kind: "creator"
}),
@@ -64659,7 +64644,7 @@ function IDe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(PG, {
label: "图片布局",
value: i.photoLayout,
- options: kDe,
+ options: ODe,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
@@ -64690,8 +64675,8 @@ function IDe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
n && a(n);
},
children: [n, r ? /* @__PURE__ */ (0, I.jsx)(dG, {
- a: DDe,
- b: ODe,
+ a: EDe,
+ b: DDe,
state: t.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
@@ -64702,7 +64687,7 @@ function IDe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
] })
});
}
-function LDe({ conditions: e, onDrop: t, onClear: n }) {
+function IDe({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -64727,21 +64712,21 @@ function LDe({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function RDe({ count: e }) {
+function LDe({ count: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-broken": "",
dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${R("alert")}<span>${e} 个来源上次检查失败,去<a class="flink" href="${z(HZ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
});
}
var HZ = () => RZ(window.location.search);
-function zDe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
+function RDe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
let { view: s, helpers: c } = i, l = s.media === "images";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list-body": "",
children: /* @__PURE__ */ (0, I.jsx)(HG, {
pending: e,
skeletonHtml: () => c.listSkeletonHtml(s.media),
- children: e ? null : /* @__PURE__ */ (0, I.jsx)(BDe, {
+ children: e ? null : /* @__PURE__ */ (0, I.jsx)(zDe, {
facets: t,
data: n,
context: r,
@@ -64753,12 +64738,12 @@ function zDe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a
})
});
}
-function BDe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
+function zDe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
let { view: s, actions: c } = r, l = WZ(r), u = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
- } : {}, d = wDe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
+ } : {}, d = CDe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
return f = e.visible.length ? e.visible.map((t) => {
let i = e.byId.get(t.primary?.source_id), o = i?.author_key && e.authorSources.get(i.author_key) || [], u = t.primary.id;
return /* @__PURE__ */ (0, I.jsx)(NZ, {
@@ -64775,7 +64760,7 @@ function BDe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
onStatus: l.status,
onSave: l.save
}, `${u}:${s.media}`);
- }) : /* @__PURE__ */ (0, I.jsx)(VDe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(BDe, {
data: t,
filtered: !!(s.status || e.author || e.provider || s.work || s.tags.length || s.durMin || s.durMax),
checkAction: o,
@@ -64801,19 +64786,19 @@ function BDe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
function UZ(e, t) {
return ga(e, t.media).id;
}
-function VDe({ data: e, filtered: t, clear: n, checkAction: r }) {
+function BDe({ data: e, filtered: t, clear: n, checkAction: r }) {
let i = !!e.groups.length || t, a = !!e.sources.length;
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, I.jsx)(dV, {
- icon: pV(i ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, I.jsx)(fV, {
+ icon: mV(i ? "search-x" : "rss"),
title: i ? "当前筛选下没有更新" : a ? "还没有更新" : "还没有关注任何来源",
actions: i ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: n,
children: "清除筛选"
- }) : a ? r : /* @__PURE__ */ (0, I.jsx)(vL, {
+ }) : a ? r : /* @__PURE__ */ (0, I.jsx)(bL, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -64822,7 +64807,7 @@ function VDe({ data: e, filtered: t, clear: n, checkAction: r }) {
})
});
}
-var HDe = {
+var VDe = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
@@ -64850,7 +64835,7 @@ function WZ(e) {
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(HDe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ u(t, n), d(), r.toast(VDe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
await V(Mr, {
item: t,
to: i
@@ -64895,7 +64880,7 @@ function WZ(e) {
};
}
// src/react/entity-body/entity-online.tsx
-function UDe(e) {
+function HDe(e) {
let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData;
return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(VG, {
message: xn(t.error),
@@ -64908,7 +64893,7 @@ function UDe(e) {
children: /* @__PURE__ */ (0, I.jsxs)(HG, {
pending: a,
skeletonHtml: () => i.listSkeletonHtml(r),
- children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(WDe, {
+ children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(UDe, {
...e,
data: n
}), !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(lY, {
@@ -64921,7 +64906,7 @@ function UDe(e) {
})
});
}
-function WDe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
+function UDe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
let u = WZ({
view: e,
revision: 0,
@@ -64953,11 +64938,11 @@ function WDe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
onStatus: u.status,
onSave: u.save
}, `${e.primary.id}:${t}`);
- }) : /* @__PURE__ */ (0, I.jsx)(GDe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(WDe, {
searched: !!(n.groups || []).length || !!(e.status || e.provider || e.tags.length || e.durMin || e.durMax),
clear: l,
actions: c,
- sources: yDe(n.sources || [], e.author)
+ sources: vDe(n.sources || [], e.author)
});
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list": "",
@@ -64966,21 +64951,21 @@ function WDe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
children: m
});
}
-function GDe({ searched: e, clear: t, actions: n, sources: r }) {
+function WDe({ searched: e, clear: t, actions: n, sources: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, I.jsx)(dV, {
- icon: pV(e ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, I.jsx)(fV, {
+ icon: mV(e ? "search-x" : "rss"),
title: e ? "当前筛选下没有更新" : "还没有抓到更新",
actions: e ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: t,
children: "清除筛选"
- }) : r.length ? /* @__PURE__ */ (0, I.jsx)(bDe, {
+ }) : r.length ? /* @__PURE__ */ (0, I.jsx)(yDe, {
sources: r,
report: n.checkReport
- }) : /* @__PURE__ */ (0, I.jsx)(vL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(bL, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -65026,7 +65011,7 @@ function JZ(e, t) {
y1: a + r
});
}
-function KDe(e, t) {
+function GDe(e, t) {
if (!qZ(e) || !(t > 0)) return GZ(e);
let n = Math.min(e.width, e.height * t);
return KZ({
@@ -65036,7 +65021,7 @@ function KDe(e, t) {
y1: e.height
});
}
-function qDe(e, t, n) {
+function KDe(e, t, n) {
if (!qZ(t) || !(n > 0)) return GZ(t);
let r = YZ(e, t), i = JZ({
width: r.x1 - r.x0,
@@ -65085,7 +65070,7 @@ function ZZ(e, t, n, r = null) {
y1: a + s / 2
}, n, r);
}
-function JDe(e, t, n, r, i = null) {
+function qDe(e, t, n, r, i = null) {
let a = {
x0: e.x0,
y0: e.y0,
@@ -65094,7 +65079,7 @@ function JDe(e, t, n, r, i = null) {
};
return YZ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function YDe(e, t) {
+function JDe(e, t) {
return qZ(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
@@ -65107,7 +65092,7 @@ function YDe(e, t) {
height: 0
};
}
-function XDe(e, t) {
+function YDe(e, t) {
if (!qZ(t)) return {
size: "cover",
position: "50% 50%"
@@ -65118,7 +65103,7 @@ function XDe(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function ZDe(e, t) {
+function XDe(e, t) {
let n = Math.max(1, e.x1 - e.x0), r = Math.max(1, e.y1 - e.y0);
return {
left: `${-e.x0 / n * 100}%`,
@@ -65130,11 +65115,11 @@ function ZDe(e, t) {
function QZ(e, t, n) {
return t > 0 ? e * n / t : 0;
}
-function QDe(e, t) {
+function ZDe(e, t) {
return !t || !(t.width > 0) || !(t.height > 0) ? !1 : Math.min(e.width / 100 * t.width, e.height / 100 * t.height) < 36;
}
// src/react/crop/crop-frame.tsx
-var $De = .02, $Z = 1.08;
+var QDe = .02, $Z = 1.08;
function eQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
let s = (0, F.useRef)(null), c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), [d, f] = (0, F.useState)(null);
(0, F.useEffect)(() => {
@@ -65172,14 +65157,14 @@ function eQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
let n = c.current, a = s.current;
if (!n || !a || !r) return;
let o = p(e.clientX - n.x, e.clientY - n.y);
- n.mode === "move" ? i(XZ(n.box, o.dx, o.dy, r)) : i(JDe(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
+ n.mode === "move" ? i(XZ(n.box, o.dx, o.dy, r)) : i(qDe(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));
}
function g(e) {
c.current && (c.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId));
}
function _(e) {
if (!n || !r) return;
- let a = Math.max(1, (n.x1 - n.x0) * $De), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * QDe), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
@@ -65187,7 +65172,7 @@ function eQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
};
o[e.key] ? (e.preventDefault(), i(XZ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(ZZ(n, e.key === "-" ? 1 / $Z : $Z, r, t)));
}
- let v = n && r ? YDe(YZ(n, r, t), r) : null, y = v ? QDe(v, d) : !1, b = v ? {
+ let v = n && r ? JDe(YZ(n, r, t), r) : null, y = v ? ZDe(v, d) : !1, b = v ? {
"--crop-l": `${v.left}%`,
"--crop-t": `${v.top}%`,
"--crop-w": `${v.width}%`,
@@ -65267,12 +65252,12 @@ function eQ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
});
}
// src/react/avatar-picker/avatar-picker.ts
-var eOe = "/api/avatar-choices", tQ = "/api/avatar-pick", tOe = "/api/avatar-code-cover", nQ = "/api/avatar-frame", nOe = "/avatar-choice", rQ = (e, t) => [
+var $De = "/api/avatar-choices", tQ = "/api/avatar-pick", eOe = "/api/avatar-code-cover", nQ = "/api/avatar-frame", tOe = "/avatar-choice", rQ = (e, t) => [
"avatar-choices",
e,
t
-], iQ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, aQ = (e, t, n, r = "") => `${nOe}${iQ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), oQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", rOe = (e, t, n) => B(eOe + iQ(e, t), n), iOe = (e) => V(tOe, { code: e });
-async function aOe(e, t, n) {
+], iQ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, aQ = (e, t, n, r = "") => `${tOe}${iQ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), oQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", nOe = (e, t, n) => B($De + iQ(e, t), n), rOe = (e) => V(eOe, { code: e });
+async function iOe(e, t, n) {
let r = await V(nQ, {
kind: e,
id: t,
@@ -65286,11 +65271,11 @@ async function aOe(e, t, n) {
bases: r.bases
};
}
-var oOe = (e, t, n) => V(nQ, {
+var aOe = (e, t, n) => V(nQ, {
kind: e,
id: t,
url: n
-}), sOe = (e, t, n) => sQ(`${nQ}${iQ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
+}), oOe = (e, t, n) => sQ(`${nQ}${iQ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
async function sQ(e, t) {
let n = await fetch(e, {
method: "POST",
@@ -65302,13 +65287,13 @@ async function sQ(e, t) {
}
function cQ(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? qDe(e.focus, t, n) : JZ(t, n);
+ return e.focus && r ? KDe(e.focus, t, n) : JZ(t, n);
}
-var cOe = (e) => e.crop && qZ({
+var sOe = (e) => e.crop && qZ({
width: e.width,
height: e.height
});
-async function lOe(e, t, n) {
+async function cOe(e, t, n) {
if (!("file" in n)) {
await V(tQ, {
kind: e,
@@ -65326,16 +65311,16 @@ async function lOe(e, t, n) {
await sQ(`${tQ}${iQ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
}
var lQ = 2;
-function uOe(e, t) {
+function lOe(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
return n.length ? `${e}:图库里按${`「${n.slice(0, lQ).join("」「")}」`}${n.length > lQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
}
-var dOe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function fOe(e) {
- return e?.index_refreshing ? "正在更新图库索引,候选图片会自动显示。" : e?.index_error && e.index_stale ? "图库索引未取得:" + e.index_error : !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${dOe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var uOe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function dOe(e) {
+ return e?.index_refreshing ? "正在更新图库索引,候选图片会自动显示。" : e?.index_error && e.index_stale ? "图库索引未取得:" + e.index_error : !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${uOe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var uQ = (e) => e.cast > 1, pOe = (e) => uQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, mOe = {
+var uQ = (e) => e.cast > 1, fOe = (e) => uQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, pOe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
@@ -65345,7 +65330,7 @@ var uQ = (e) => e.cast > 1, pOe = (e) => uQ(e) ? `${e.label}:${e.cast.toLocale
social: "社媒头像",
online: "在线作品"
};
-function hOe(e) {
+function mOe(e) {
if (e.startsWith("follow:")) {
let t = e.split(":")[2];
return t === "cover" ? "作品封面" : `内容图片 ${Number(t.replace("image", "") || 0) + 1}`;
@@ -65356,19 +65341,19 @@ function hOe(e) {
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var gOe = (e) => `${mOe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (uQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), _Oe = 8, vOe = 3 / 4;
-async function yOe(e, t, n) {
+var hOe = (e) => `${pOe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (uQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), gOe = 8, _Oe = 3 / 4;
+async function vOe(e, t, n) {
switch (n.via) {
- case "choice": return { choice: await aOe(e, t, n.choice) };
- case "code": return { choice: await iOe(n.code) };
- case "url": return { choice: await oOe(e, t, n.url) };
+ case "choice": return { choice: await iOe(e, t, n.choice) };
+ case "code": return { choice: await rOe(n.code) };
+ case "url": return { choice: await aOe(e, t, n.url) };
case "file": return {
- choice: await sOe(e, t, n.file),
+ choice: await oOe(e, t, n.file),
file: n.file
};
}
}
-function bOe({ kind: e, entityId: t, name: n, onPicked: r }) {
+function yOe({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "absolute right-1 bottom-1 z-10",
@@ -65378,17 +65363,17 @@ function bOe({ kind: e, entityId: t, name: n, onPicked: r }) {
"aria-label": `更换${n}的头像`,
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",
- children: /* @__PURE__ */ (0, I.jsx)(Jhe, {
+ children: /* @__PURE__ */ (0, I.jsx)(Khe, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(cV, {
+ }), /* @__PURE__ */ (0, I.jsx)(lV, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, I.jsx)(xOe, {
+ children: /* @__PURE__ */ (0, I.jsx)(bOe, {
kind: e,
entityId: t,
name: n,
@@ -65397,10 +65382,10 @@ function bOe({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function xOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, F.useRef)(null), o = BV(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = rQ(e, t), m = (0, F.useRef)(!1), h = Ft({
+function bOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, F.useRef)(null), o = VV(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = rQ(e, t), m = (0, F.useRef)(!1), h = Ft({
queryKey: p,
- queryFn: ({ signal: n }) => rOe(e, t, n),
+ queryFn: ({ signal: n }) => nOe(e, t, n),
retryOnMount: !0,
refetchOnMount: (e) => e.state.data?.index_stale ? "always" : !1,
refetchInterval: (e) => e.state.data?.index_refreshing && !e.state.error ? 1e3 : !1
@@ -65409,12 +65394,12 @@ function xOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
m.current && H.removeQueries({ queryKey: rQ(e, t) });
}, [e, t]);
let g = It({
- mutationFn: (n) => lOe(e, t, n),
+ mutationFn: (n) => cOe(e, t, n),
onSuccess: () => {
m.current = !0, i(), r();
}
}), _ = It({
- mutationFn: (n) => yOe(e, t, n),
+ mutationFn: (n) => vOe(e, t, n),
onMutate: () => {
g.reset();
},
@@ -65435,39 +65420,39 @@ function xOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
crop: e.crop
} : { file: n }) : g.mutate(e ?? { ref: t.ref });
}
- let x = h.data, S = x?.choices ?? [], C = (g.error ? lr(g.error) : "") || (!d && _.error ? lr(_.error) : "") || (h.error ? lr(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : fOe(x), E = !!C && !!h.error && C === lr(h.error), D = h.isPending || S.length > 0;
+ let x = h.data, S = x?.choices ?? [], C = (g.error ? lr(g.error) : "") || (!d && _.error ? lr(_.error) : "") || (h.error ? lr(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : dOe(x), E = !!C && !!h.error && C === lr(h.error), D = h.isPending || S.length > 0;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, I.jsx)(lV, { children: /* @__PURE__ */ (0, I.jsx)(QB, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, I.jsx)(uV, { children: /* @__PURE__ */ (0, I.jsx)($B, { className: "size-6" }) }),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(BL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(HL, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: d ? "框出头像那一块" : "更换头像"
- }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(KU, {
+ }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(qU, {
color: "soft",
children: [S.length.toLocaleString(), " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: d ? pOe(d.choice) : uOe(n, x)
+ children: d ? fOe(d.choice) : lOe(n, x)
}),
- T ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ T ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "neutral",
children: T
}) : null,
- C ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ C ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
action: E ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...hV(h.isFetching),
+ ...gV(h.isFetching),
onClick: () => {
h.isFetching || h.refetch();
},
@@ -65477,14 +65462,14 @@ function xOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(oL, {
- icon: wB,
+ /* @__PURE__ */ (0, I.jsx)(cL, {
+ icon: EB,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), d ? /* @__PURE__ */ (0, I.jsx)(COe, {
+ }), d ? /* @__PURE__ */ (0, I.jsx)(SOe, {
kind: e,
entityId: t,
choice: d.choice,
@@ -65504,7 +65489,7 @@ function xOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
"aria-busy": h.isPending || void 0,
"data-skeleton": h.isPending ? "avatar-choices" : void 0,
className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",
- children: h.isPending ? Array.from({ length: _Oe }, (e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: h.isPending ? Array.from({ length: gOe }, (e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": !0,
"data-avatar-skeleton": !0,
className: "flex flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-caption-1-regular",
@@ -65517,8 +65502,8 @@ function xOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: gOe(n),
- ...hV(w),
+ title: hOe(n),
+ ...gV(w),
onClick: () => {
w || (n.crop ? (g.reset(), _.reset(), f({ choice: n })) : _.mutate({
via: "choice",
@@ -65527,7 +65512,7 @@ function xOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",
children: [
- /* @__PURE__ */ (0, I.jsx)(SOe, {
+ /* @__PURE__ */ (0, I.jsx)(xOe, {
src: aQ(e, t, n.ref, oQ(n, n.ref)),
choice: n
}),
@@ -65537,7 +65522,7 @@ function xOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
n.current ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, I.jsx)(KU, {
+ children: /* @__PURE__ */ (0, I.jsx)(qU, {
variant: "caption",
color: "gray",
children: "在用"
@@ -65545,7 +65530,7 @@ function xOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null,
uQ(n) ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, I.jsxs)(KU, {
+ children: /* @__PURE__ */ (0, I.jsxs)(qU, {
variant: "caption",
color: "gray",
children: [n.cast.toLocaleString(), " 人"]
@@ -65567,7 +65552,7 @@ function xOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
},
children: [/* @__PURE__ */ (0, I.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, I.jsx)(sV, {
+ children: /* @__PURE__ */ (0, I.jsx)(cV, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -65577,7 +65562,7 @@ function xOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
type: "submit",
variant: "secondary",
disabled: !l.trim(),
- ...hV(v("code")),
+ ...gV(v("code")),
children: "取封面来框"
})]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -65586,7 +65571,7 @@ function xOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: () => a.current?.click(),
- ...hV(v("file")),
+ ...gV(v("file")),
children: "从本机选图片"
}),
/* @__PURE__ */ (0, I.jsx)("input", {
@@ -65606,7 +65591,7 @@ function xOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 basis-56 items-center gap-2",
children: [/* @__PURE__ */ (0, I.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, I.jsx)(sV, {
+ children: /* @__PURE__ */ (0, I.jsx)(cV, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -65616,7 +65601,7 @@ function xOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
disabled: !s.trim(),
- ...hV(v("url")),
+ ...gV(v("url")),
onClick: () => {
w || _.mutate({
via: "url",
@@ -65630,7 +65615,7 @@ function xOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function SOe({ src: e, choice: t }) {
+function xOe({ src: e, choice: t }) {
let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1), [a, o] = (0, F.useState)(!1);
(0, F.useEffect)(() => {
n.current?.complete && n.current.naturalWidth && i(!0);
@@ -65638,7 +65623,7 @@ function SOe({ src: e, choice: t }) {
let s = {
width: t.width,
height: t.height
- }, c = cOe(t) ? ZDe(cQ(t, s, vOe), s) : null, l = r || a ? !0 : void 0;
+ }, c = sOe(t) ? XDe(cQ(t, s, _Oe), s) : null, l = r || a ? !0 : void 0;
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-choice-lost": a || void 0,
className: "relative block w-full aspect-avatar-choice overflow-hidden",
@@ -65664,12 +65649,12 @@ function SOe({ src: e, choice: t }) {
})]
});
}
-function COe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, F.useState)(o[0]), [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(null), p = oQ(n, s), m = aQ(e, t, s, p), h = BV();
+function SOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {
+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, F.useState)(o[0]), [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(null), p = oQ(n, s), m = aQ(e, t, s, p), h = VV();
function g(e) {
c(e), u(null), f(null);
}
- let _ = d && l ? XDe(d, l) : null;
+ let _ = d && l ? YDe(d, l) : null;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
ref: h,
className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",
@@ -65694,7 +65679,7 @@ function COe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
"data-crop-base": !0,
onClick: () => g(e),
className: "cursor-pointer rounded-lg px-2 py-1 text-caption-1-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-checked:bg-background-tertiary-default aria-checked:text-text-primary",
- children: hOe(e)
+ children: mOe(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -65714,12 +65699,12 @@ function COe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: i,
- ...hV(r),
+ ...gV(r),
children: "返回备选图片"
}),
n.crop ? null : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...hV(r),
+ ...gV(r),
onClick: () => {
r || a(null);
},
@@ -65727,7 +65712,7 @@ function COe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}),
/* @__PURE__ */ (0, I.jsx)(J, {
disabled: !d || !l,
- ...hV(r),
+ ...gV(r),
onClick: () => {
d && !r && a({
ref: s,
@@ -65746,13 +65731,13 @@ var dQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${enco
function fQ({ title: e, detail: t, busy: n, onRetry: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-jav-picture-wait": "",
- children: /* @__PURE__ */ (0, I.jsx)(dV, {
+ children: /* @__PURE__ */ (0, I.jsx)(fV, {
size: "compact",
- icon: LB,
+ icon: RB,
title: e,
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
- ...hV(!!n),
+ ...gV(!!n),
onClick: r,
children: "立即重试"
}),
@@ -65760,8 +65745,8 @@ function fQ({ title: e, detail: t, busy: n, onRetry: r }) {
})
});
}
-function wOe({ code: e }) {
- let t = hH(), [n, r] = (0, F.useState)("");
+function COe({ code: e }) {
+ let t = gH(), [n, r] = (0, F.useState)("");
return /* @__PURE__ */ (0, I.jsx)(fQ, {
title: "封面未取得",
detail: t.error || n,
@@ -65795,7 +65780,7 @@ function pQ({ item: e, image: t, thumbnail: n = !1 }) {
src: p,
alt: f
})
- }) : n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "封面未取得" }) : /* @__PURE__ */ (0, I.jsx)(wOe, { code: e.code });
+ }) : n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "封面未取得" }) : /* @__PURE__ */ (0, I.jsx)(COe, { code: e.code });
if (s === p) return n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)(fQ, {
title: "图片未取得",
onRetry: () => i((e) => e + 1)
@@ -65846,7 +65831,7 @@ function pQ({ item: e, image: t, thumbnail: n = !1 }) {
}
// src/react/components/source-avatar.tsx
function mQ({ code: e, person: t, detail: n = !1 }) {
- rL();
+ aL();
let r = (0, F.useRef)(null), [i, a] = (0, F.useState)(n || typeof IntersectionObserver > "u");
(0, F.useEffect)(() => {
if (!r.current || i) return;
@@ -66003,7 +65988,7 @@ function bQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function TOe({ following: e, busy: t, onToggle: n, tip: r }) {
+function wOe({ following: e, busy: t, onToggle: n, tip: r }) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), [s, c] = (0, F.useState)(!1), l = (0, F.useRef)(!1), u = () => {
vQ(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
@@ -66055,29 +66040,29 @@ function TOe({ following: e, busy: t, onToggle: n, tip: r }) {
});
}
// src/react/entity-hero/name-picker.tsx
-function EOe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function TOe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let [i, a] = (0, F.useState)(!1), o = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
o.current?.setAttribute("title", "名字与别名");
- }, []), /* @__PURE__ */ (0, I.jsxs)(_me, {
+ }, []), /* @__PURE__ */ (0, I.jsxs)(hme, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, I.jsx)(RL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(BL, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
children: /* @__PURE__ */ (0, I.jsx)(gQ, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, I.jsx)(dz, {
+ }), /* @__PURE__ */ (0, I.jsx)(pz, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: MV,
+ className: NV,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, I.jsxs)(yme, {
+ children: /* @__PURE__ */ (0, I.jsxs)(_me, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(yz, {
+ /* @__PURE__ */ (0, I.jsx)(xz, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -66085,15 +66070,15 @@ function EOe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
let r = [...t][0];
r && r !== e && n(r);
},
- children: t.map((e) => /* @__PURE__ */ (0, I.jsxs)(xz, {
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsxs)(Cz, {
id: e.value,
textValue: e.label,
"data-namepick-name": e.value,
children: [/* @__PURE__ */ (0, I.jsx)(gQ, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.label })]
}, e.value))
}),
- /* @__PURE__ */ (0, I.jsx)(eme, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, I.jsx)(yz, { children: /* @__PURE__ */ (0, I.jsxs)(xz, {
+ /* @__PURE__ */ (0, I.jsx)(Qpe, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, I.jsx)(xz, { children: /* @__PURE__ */ (0, I.jsxs)(Cz, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
@@ -66105,8 +66090,8 @@ function EOe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
})]
});
}
-var DOe = (e) => e === "studio" || e === "agency", xQ = (e) => e === "performer" || e === "creator", OOe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
-function kOe(e, t = "zh-CN") {
+var EOe = (e) => e === "studio" || e === "agency", xQ = (e) => e === "performer" || e === "creator", DOe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
+function OOe(e, t = "zh-CN") {
return e.name_display ? e.name_display.choices[t] : [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t).map((e) => ({
value: e,
label: e
@@ -66129,7 +66114,7 @@ function CQ(e, t) {
return r && [e.label, n].map(Un).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
var wQ = (e) => ({ site: zn(e) });
-function AOe(e, t) {
+function kOe(e, t) {
let n = SQ(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
@@ -66171,9 +66156,9 @@ function AOe(e, t) {
mark: wQ(e)
};
});
- return [...r, ...jOe(a)];
+ return [...r, ...AOe(a)];
}
-function jOe(e) {
+function AOe(e) {
let t = e.filter((e) => e.type === "private");
return t.length < 2 ? e : [...e.filter((e) => e.type !== "private"), {
type: "private",
@@ -66182,7 +66167,7 @@ function jOe(e) {
}];
}
var TQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function MOe(e) {
+function jOe(e) {
return [
[
"legal_name",
@@ -66238,7 +66223,7 @@ function MOe(e) {
}]
}] : []);
}
-function NOe(e) {
+function MOe(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -66302,7 +66287,7 @@ function EQ(e, t = 4) {
rest: e.length - n
};
}
-function POe(e) {
+function NOe(e) {
if (!e) return null;
let t = e.shown || [], n = [e.reading || "", ...t].filter(Boolean), r = (e.total || 0) - t.length;
return n.length || r > 0 ? {
@@ -66312,7 +66297,7 @@ function POe(e) {
} : null;
}
// src/react/entity-hero/entity-hero-page.tsx
-function FOe(e) {
+function POe(e) {
return go({
id: e.id,
hasImage: e.has_image,
@@ -66323,9 +66308,9 @@ function FOe(e) {
standIn: e.avatar_stand_in
});
}
-function IOe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- rL();
- let s = nn(e, n.canonical_name, Number(n.id)), c = rn(e, n.canonical_name, Number(n.id)), l = xQ(e), u = DOe(e), d = l ? NOe(n.profile) : u ? MOe(n.company_profile) : [], f = AOe(n, e), p = TQ(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, F.useRef)(null), g = (0, F.useRef)(null);
+function FOe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
+ aL();
+ let s = nn(e, n.canonical_name, Number(n.id)), c = rn(e, n.canonical_name, Number(n.id)), l = xQ(e), u = EOe(e), d = l ? MOe(n.profile) : u ? jOe(n.company_profile) : [], f = kOe(n, e), p = TQ(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, F.useRef)(null), g = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
o.wireScroller(h.current);
}, [o, f.length]), (0, F.useEffect)(() => {
@@ -66338,7 +66323,7 @@ function IOe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-entity-portrait-wrap": "",
- children: [/* @__PURE__ */ (0, I.jsx)(LOe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(IOe, {
kind: e,
name: s,
helpers: o,
@@ -66346,7 +66331,7 @@ function IOe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
company: u
}), l && n.id ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-avatar-picker": "",
- children: /* @__PURE__ */ (0, I.jsx)(bOe, {
+ children: /* @__PURE__ */ (0, I.jsx)(yOe, {
kind: e,
entityId: Number(n.id),
name: s || t,
@@ -66361,17 +66346,17 @@ function IOe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
"data-entity-title": "",
children: [
/* @__PURE__ */ (0, I.jsx)("h2", {
- lang: zI(s),
+ lang: VI(s),
title: c || void 0,
children: s
}),
- e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(EOe, {
+ e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(TOe, {
current: n.canonical_name,
- choices: kOe(n, Xt()),
+ choices: OOe(n, Xt()),
onChoose: a.chooseName,
onAddAlias: a.addAlias
}),
- n.id ? /* @__PURE__ */ (0, I.jsx)(DV, { item: {
+ n.id ? /* @__PURE__ */ (0, I.jsx)(OV, { item: {
entity_id: Number(n.id),
kind: e,
name: n.canonical_name || t,
@@ -66385,7 +66370,7 @@ function IOe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
className: "text-caption-1-regular text-text-secondary",
children: c
}) : null,
- /* @__PURE__ */ (0, I.jsx)(ROe, {
+ /* @__PURE__ */ (0, I.jsx)(LOe, {
kind: e,
entity: n,
actions: a
@@ -66406,14 +66391,14 @@ function IOe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
f.length ? /* @__PURE__ */ (0, I.jsx)("div", {
ref: h,
"data-entity-links": "",
- children: f.map((e, t) => /* @__PURE__ */ (0, I.jsx)(WOe, { link: e }, t))
+ children: f.map((e, t) => /* @__PURE__ */ (0, I.jsx)(UOe, { link: e }, t))
}) : null,
- p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(GOe, {
+ p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(WOe, {
entity: n,
actions: a,
helpers: o
}) : null,
- n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(VOe, {
+ n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(BOe, {
follow: n.follow,
displayName: s,
actions: a
@@ -66422,11 +66407,11 @@ function IOe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}),
d.length ? /* @__PURE__ */ (0, I.jsx)("dl", {
"data-entity-facts": "",
- children: d.map((e) => /* @__PURE__ */ (0, I.jsx)(HOe, {
+ children: d.map((e) => /* @__PURE__ */ (0, I.jsx)(VOe, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, I.jsx)(UOe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, I.jsx)(HOe, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,
children: [t ? " " : "", e.text]
}, t))
@@ -66445,7 +66430,7 @@ function IOe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
onClick: () => a.openEntity("performer", e.k),
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-hero-ring": "",
- dangerouslySetInnerHTML: { __html: `<span>${z(er(nn("performer", e.k, e.id)))}</span>${FOe(e)}` }
+ dangerouslySetInnerHTML: { __html: `<span>${z(er(nn("performer", e.k, e.id)))}</span>${POe(e)}` }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-hero-costar-name": "",
children: nn("performer", e.k, e.id)
@@ -66460,7 +66445,7 @@ function IOe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
act: (e, t) => a.feedAction(e, t)
}), i) : null] });
}
-function LOe({ kind: e, name: t, helpers: n, people: r, company: i }) {
+function IOe({ kind: e, name: t, helpers: n, people: r, company: i }) {
let a = (0, F.useRef)(null), [o] = (0, F.useState)(() => `${n.portraitImg()}<span data-portrait-initial="">${z(er(t))}</span>`);
return (0, F.useLayoutEffect)(() => {
let e = a.current?.querySelector("[data-portrait-initial]");
@@ -66474,7 +66459,7 @@ function LOe({ kind: e, name: t, helpers: n, people: r, company: i }) {
dangerouslySetInnerHTML: { __html: o }
});
}
-function ROe({ kind: e, entity: t, actions: n }) {
+function LOe({ kind: e, entity: t, actions: n }) {
let r = SQ(t), i = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, a = r ? r.linked ? /* @__PURE__ */ (0, I.jsx)("a", {
@@ -66484,7 +66469,7 @@ function ROe({ kind: e, entity: t, actions: n }) {
children: r.name
}) : r.name : null, o = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });
if (e === "performer" || e === "creator") {
- let e = t.name_display?.groups[Xt()] ?? t.name_groups, r = POe(e);
+ let e = t.name_display?.groups[Xt()] ?? t.name_groups, r = NOe(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entity-alias": "meta",
children: [
@@ -66494,7 +66479,7 @@ function ROe({ kind: e, entity: t, actions: n }) {
title: "视频",
children: [/* @__PURE__ */ (0, I.jsx)(gQ, { name: "film" }), /* @__PURE__ */ (0, I.jsx)("span", { children: o })]
}),
- t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(BOe, {
+ t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(zOe, {
follow: t.follow,
actions: n
}) : null,
@@ -66511,7 +66496,7 @@ function ROe({ kind: e, entity: t, actions: n }) {
"data-alias-names": "",
title: "别名",
children: r.names.map((e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
- lang: zI(e),
+ lang: VI(e),
children: e
}, t))
}),
@@ -66564,11 +66549,11 @@ function ROe({ kind: e, entity: t, actions: n }) {
children: l.name
})]
}) : null,
- s.length ? /* @__PURE__ */ (0, I.jsx)(zOe, { aliases: s }) : null
+ s.length ? /* @__PURE__ */ (0, I.jsx)(ROe, { aliases: s }) : null
]
});
}
-function zOe({ aliases: e }) {
+function ROe({ aliases: e }) {
let { shown: t, rest: n } = EQ(e, 3);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-meta-item": "names",
@@ -66591,7 +66576,7 @@ function zOe({ aliases: e }) {
]
});
}
-function BOe({ follow: e, actions: t }) {
+function zOe({ follow: e, actions: t }) {
let n = e.providers.join(" · ");
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
@@ -66606,7 +66591,7 @@ function BOe({ follow: e, actions: t }) {
})]
});
}
-function VOe({ follow: e, displayName: t, actions: n }) {
+function BOe({ follow: e, displayName: t, actions: n }) {
let [r, i] = (0, F.useState)(""), a = async (e, t) => {
if (!r) {
i(e);
@@ -66620,12 +66605,12 @@ function VOe({ follow: e, displayName: t, actions: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-held": "",
className: "flex flex-col gap-2",
- children: e.held.map((e) => /* @__PURE__ */ (0, I.jsxs)(uV, {
+ children: e.held.map((e) => /* @__PURE__ */ (0, I.jsxs)(dV, {
tone: "info",
title: `关注里有同名作者 ${e.name}`,
action: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
- ...hV(r === e.key),
+ ...gV(r === e.key),
onClick: () => {
a(e.key, e.name);
},
@@ -66652,19 +66637,19 @@ function OQ({ label: e, names: t }) {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
"data-pop-name": "",
- lang: zI(e.name),
+ lang: VI(e.name),
children: [e.name, e.reading ? /* @__PURE__ */ (0, I.jsx)("small", { children: e.reading }) : null]
}, t))
})] });
}
-function HOe({ glyph: e, label: t, clip: n, children: r }) {
+function VOe({ glyph: e, label: t, clip: n, children: r }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("dt", { children: [/* @__PURE__ */ (0, I.jsx)(gQ, { name: e }), t] }), /* @__PURE__ */ (0, I.jsx)("dd", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function UOe({ tags: e }) {
+function HOe({ tags: e }) {
let { shown: t, rest: n } = EQ(e);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-fact-tag": "",
@@ -66697,7 +66682,7 @@ function kQ({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function WOe({ link: e }) {
+function UOe({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, I.jsx)("a", {
"data-link": "icon",
@@ -66745,7 +66730,7 @@ function WOe({ link: e }) {
});
}
}
-function GOe({ entity: e, actions: t, helpers: n }) {
+function WOe({ entity: e, actions: t, helpers: n }) {
let [r, i] = (0, F.useState)(!!e.feed?.following), [a, o] = (0, F.useState)(!1), s = (0, F.useRef)(!1), c = async (e) => {
if (s.current) return !1;
s.current = !0, o(!0);
@@ -66777,19 +66762,19 @@ function GOe({ entity: e, actions: t, helpers: n }) {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(TOe, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(wOe, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: OOe(r)
+ tip: DOe(r)
}) : null]
});
}
// src/react/entity-page/use-entity-online.ts
-var KOe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
-function qOe(e, t, n) {
+var GOe = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
+function KOe(e, t, n) {
let [r, i] = (0, F.useState)(() => _a(e));
r.author !== e && i(_a(e));
let [a, o] = (0, F.useState)({
@@ -66868,7 +66853,7 @@ function qOe(e, t, n) {
onlineMedia: (e) => c(e),
onlineShuffle: () => T({
sort: ea,
- seed: KOe()
+ seed: GOe()
}),
onlineImagesOnly: (e) => n.setImagesOnly(e),
onlineStatus: (e) => T({ status: e }),
@@ -66898,7 +66883,7 @@ function qOe(e, t, n) {
};
}
// src/react/entity-page/entity-page-view.tsx
-function JOe(e) {
+function qOe(e) {
let { kind: t, name: n } = e, r = Ft(UX(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
kind: t,
name: a
@@ -66922,7 +66907,7 @@ function JOe(e) {
onRetry: () => {
r.refetch();
}
- }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(ZOe, {
+ }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(XOe, {
...e,
entity: r.data
});
@@ -66939,17 +66924,17 @@ function AQ(e) {
};
return n(r), r.n;
}
-var YOe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function XOe(e, t) {
+var JOe = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function YOe(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t.toLocaleString()} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function ZOe(e) {
+function XOe(e) {
let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = Lt(WX(t, n, 0, "")).data?.pages[0], p = f && !f.error ? f : null, m = p ? (p.total || 0) + (p.sample_total || 0) : 0, h = (p?.total || 0) > 0 || GX(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {
media: "online",
set: 0
} : IX, [y, b] = (0, F.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, F.useState)(x);
S !== x && (C(x), b("videos"));
- let w = l && y === "people" && u.length ? "people" : v.media, T = qOe(g, w === "online", {
+ let w = l && y === "people" && u.length ? "people" : v.media, T = KOe(g, w === "online", {
photoLayout: e.photoLayout,
photoLayouts: e.photoLayouts,
imagesOnly: e.followImagesOnly,
@@ -67182,7 +67167,7 @@ function ZOe(e) {
await H.fetchQuery(a).catch(() => null);
return;
}
- let r = YOe(), a = await H.fetchInfiniteQuery(WX(t, n, re, r)).catch(() => null);
+ let r = JOe(), a = await H.fetchInfiniteQuery(WX(t, n, re, r)).catch(() => null);
me.current && a?.pages[0] && !a.pages[0].error && ne((e) => ({
...e,
[re]: r
@@ -67217,7 +67202,7 @@ function ZOe(e) {
k: e.k,
label: Ll(e.k),
n: e.n,
- selected: AEe(i.tag, e.k)
+ selected: kEe(i.tag, e.k)
})), Te = [
u.length,
!_,
@@ -67259,7 +67244,7 @@ function ZOe(e) {
Pe = !A.data;
let e = zX(i.tag).length;
Ne = `视频 · ${(A.data?.work_total ?? A.data?.total ?? 0).toLocaleString()}${e ? ` · 已选 ${e.toLocaleString()} 个标签` : ""}`;
- } else oe && !oe.error ? Ne = De ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : XOe(oe, GX(oe).length) : Pe = ae.isPending;
+ } else oe && !oe.error ? Ne = De ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : YOe(oe, GX(oe).length) : Pe = ae.isPending;
let Fe = (0, F.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -67276,7 +67261,7 @@ function ZOe(e) {
u
]);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(IOe, {
+ /* @__PURE__ */ (0, I.jsx)(FOe, {
kind: t,
name: n,
entity: r,
@@ -67286,7 +67271,7 @@ function ZOe(e) {
actions: be,
helpers: xe
}, D),
- (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(bbe, {
+ (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(ybe, {
kind: t,
name: n,
view: w,
@@ -67303,9 +67288,9 @@ function ZOe(e) {
actions: Se,
helpers: Ce
}), c.filter),
- (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(sbe, {
+ (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(obe, {
enabled: w === "videos",
- children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(UDe, {
+ children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(HDe, {
view: T.view,
media: T.media,
result: T.result,
@@ -67324,11 +67309,11 @@ function ZOe(e) {
onRetry: () => {
A.refetch();
}
- }) : je ? /* @__PURE__ */ (0, I.jsx)(QOe, {
+ }) : je ? /* @__PURE__ */ (0, I.jsx)(ZOe, {
filtered: Ae,
onShowAll: Me,
onOnline: g ? () => Se.setView("online") : void 0
- }) : /* @__PURE__ */ (0, I.jsx)(lDe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(cDe, {
kind: t,
name: n,
view: w,
@@ -67361,9 +67346,9 @@ function ZOe(e) {
}), c.body)
] });
}
-function QOe({ filtered: e, onShowAll: t, onOnline: n }) {
- return e ? /* @__PURE__ */ (0, I.jsx)(dV, {
- icon: pV("search"),
+function ZOe({ filtered: e, onShowAll: t, onOnline: n }) {
+ return e ? /* @__PURE__ */ (0, I.jsx)(fV, {
+ icon: mV("search"),
title: "没有符合条件的视频",
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -67371,14 +67356,14 @@ function QOe({ filtered: e, onShowAll: t, onOnline: n }) {
children: "清除筛选"
}),
children: "清除筛选后查看名下全部视频。"
- }) : /* @__PURE__ */ (0, I.jsx)(dV, {
- icon: pV("film"),
+ }) : /* @__PURE__ */ (0, I.jsx)(fV, {
+ icon: mV("film"),
title: "还没有视频",
actions: n ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: n,
children: "查看在线作品"
- }) : /* @__PURE__ */ (0, I.jsx)(vL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(bL, {
size: "small",
href: "/",
children: "浏览馆藏"
@@ -67388,7 +67373,7 @@ function QOe({ filtered: e, onShowAll: t, onOnline: n }) {
}
// src/react/diagnostics/diagnostics.ts
var jQ = ["diagnostics"], MQ = (e) => B("/api/diagnostics", e);
-async function $Oe(e) {
+async function QOe(e) {
await H.fetchQuery({
queryKey: jQ,
queryFn: () => MQ(e),
@@ -67396,7 +67381,7 @@ async function $Oe(e) {
});
}
// src/react/feed-new/feed-new-page.tsx
-function eke({ host: e, revision: t, helpers: n, actions: r }) {
+function $Oe({ host: e, revision: t, helpers: n, actions: r }) {
let i = Ft(NX(null, n.feedRowHtml)), a = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
a.current !== t && (a.current = t, H.invalidateQueries({ queryKey: MX(null) }));
@@ -67409,7 +67394,7 @@ function eke({ host: e, revision: t, helpers: n, actions: r }) {
}), e);
}
// src/react/index/index-search.tsx
-var tke = pV("search");
+var eke = mV("search");
function NQ({ label: e, value: t, onQuery: n }) {
let [r, i] = (0, F.useState)(t), a = (0, F.useRef)(!1), o = (0, F.useRef)(void 0);
(0, F.useEffect)(() => {
@@ -67427,20 +67412,20 @@ function NQ({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, I.jsx)(iV, {
+ children: /* @__PURE__ */ (0, I.jsx)(aV, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, I.jsx)(oV, {
+ children: /* @__PURE__ */ (0, I.jsx)(sV, {
type: "search",
- leadingIcon: tke,
+ leadingIcon: eke,
spellCheck: !1,
autoComplete: "off",
enterKeyHint: "search",
onKeyDown: (e) => {
- e.key !== "Enter" || a.current || tW(e.nativeEvent) || (e.preventDefault(), clearTimeout(o.current), n(r.trim()));
+ e.key !== "Enter" || a.current || nW(e.nativeEvent) || (e.preventDefault(), clearTimeout(o.current), n(r.trim()));
}
})
})
@@ -67485,7 +67470,7 @@ var IQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
-}), LQ = pV("pencil"), RQ = (e, t) => ({
+}), LQ = mV("pencil"), RQ = (e, t) => ({
kind: "tag",
name: e.k,
favorite: e.favorite,
@@ -67494,7 +67479,7 @@ var IQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
tag_id: e.id || e.k
} : { entity_id: e.entity_id }
});
-function nke({ tag: e, actions: t }) {
+function tke({ tag: e, actions: t }) {
let n = t.picked.has(e.k);
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 items-center gap-1",
@@ -67520,8 +67505,8 @@ function nke({ tag: e, actions: t }) {
})
]
}),
- t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(DV, { item: RQ(e, t.online) }),
- t.edit ? /* @__PURE__ */ (0, I.jsx)(EV, {
+ t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(OV, { item: RQ(e, t.online) }),
+ t.edit ? /* @__PURE__ */ (0, I.jsx)(DV, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
children: /* @__PURE__ */ (0, I.jsx)(LQ, {})
@@ -67535,17 +67520,17 @@ function zQ({ groups: e, actions: t }) {
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, I.jsxs)("section", {
"data-alpha-group": r,
- className: CU({
+ className: wU({
radius: "plain",
padding: "none",
className: "px-5 pt-4 pb-3"
}),
children: [/* @__PURE__ */ (0, I.jsxs)("h3", {
className: "mb-2 flex items-center text-title-2-medium text-text-primary",
- children: [e, /* @__PURE__ */ (0, I.jsx)(gW, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, I.jsx)(_W, { value: n.length })]
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "index-tag-list gap-x-4 gap-y-0.5",
- children: n.map((e) => /* @__PURE__ */ (0, I.jsx)(nke, {
+ children: n.map((e) => /* @__PURE__ */ (0, I.jsx)(tke, {
tag: e,
actions: t
}, e.k))
@@ -67553,7 +67538,7 @@ function zQ({ groups: e, actions: t }) {
}, e))
});
}
-var rke = "\xA0";
+var nke = "\xA0";
function BQ({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-tag-cloud": "",
@@ -67572,7 +67557,7 @@ function BQ({ tags: e, actions: t }) {
className: "inline-flex max-w-full min-w-0 cursor-pointer items-center rounded-lg px-2 py-0.5 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 truncate",
- children: e.label + rke
+ children: e.label + nke
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
@@ -67581,7 +67566,7 @@ function BQ({ tags: e, actions: t }) {
}), t.favorites !== !1 || t.edit ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-tag-actions": "",
className: "inline-flex flex-none items-center gap-1",
- children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(DV, { item: RQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(EV, {
+ children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(OV, { item: RQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(DV, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
children: /* @__PURE__ */ (0, I.jsx)(LQ, {})
@@ -67590,7 +67575,7 @@ function BQ({ tags: e, actions: t }) {
}, e.k))
});
}
-var ike = [[
+var rke = [[
"cloud",
"标签云",
"tags"
@@ -67600,28 +67585,28 @@ var ike = [[
"text-aa"
]];
function VQ({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
- let d = lL();
- return /* @__PURE__ */ (0, I.jsx)(dL, {
+ let d = dL();
+ return /* @__PURE__ */ (0, I.jsx)(pL, {
label: "标签筛选",
topLabel: "标签类型",
top: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [l ? /* @__PURE__ */ (0, I.jsxs)("div", {
role: "group",
"aria-label": "标签状态",
className: "flex flex-none items-center gap-1.75 border-r border-(--glass-low) pr-3",
- children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(fL, {
+ children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(mL, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !l.blocked && l.hidden === e,
onPress: () => l.onChange(!!e),
children: t
- }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, I.jsx)(fL, {
+ }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, I.jsx)(mL, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !!l.blocked,
onPress: l.onBlocked,
children: "已屏蔽内容"
}) : null]
- }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(fL, {
+ }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(mL, {
"data-tag-pill": "",
"data-tag-cat": e === "all" ? "all" : aZ(n, e),
pressed: t === e,
@@ -67647,19 +67632,19 @@ function VQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, I.jsx)(jz, {
+ /* @__PURE__ */ (0, I.jsx)(Nz, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${oU}`,
- children: ike.map(([e, t, n]) => {
- let r = pV(n);
- return /* @__PURE__ */ (0, I.jsx)(Mz, {
+ className: `ml-auto ${sU}`,
+ children: rke.map(([e, t, n]) => {
+ let r = mV(n);
+ return /* @__PURE__ */ (0, I.jsx)(Pz, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: sU,
+ className: cU,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -67671,13 +67656,13 @@ function VQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
] })
});
}
-function ake({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, I.jsxs)(Cj, {
+function ike({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, I.jsxs)(wj, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e.toLocaleString()} 个标签`,
children: [
- /* @__PURE__ */ (0, I.jsx)(zV, {
+ /* @__PURE__ */ (0, I.jsx)(BV, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -67724,7 +67709,7 @@ var qQ = (e, t) => {
UQ = {
host: e,
root: n
- }, n.render(/* @__PURE__ */ (0, I.jsxs)(HV, { children: [/* @__PURE__ */ (0, I.jsx)(XV, {
+ }, n.render(/* @__PURE__ */ (0, I.jsxs)(UV, { children: [/* @__PURE__ */ (0, I.jsx)(ZV, {
id: "receipts",
position: "bottom-right",
closeButton: !0,
@@ -67748,7 +67733,7 @@ var qQ = (e, t) => {
success: HQ(t.success, !0),
error: HQ(t.error, !1)
}
- }), /* @__PURE__ */ (0, I.jsx)(XV, {
+ }), /* @__PURE__ */ (0, I.jsx)(ZV, {
id: "processing",
position: "bottom-right",
gap: 8,
@@ -67769,13 +67754,13 @@ var qQ = (e, t) => {
toastOptions: { closeButtonAriaLabel: "关闭任务提示" },
containerAriaLabel: "后台任务"
})] }));
-}, oke = 6e3, JQ = (e, t) => {
+}, ake = 6e3, JQ = (e, t) => {
if (!String(t.html ?? "").trim()) return;
- let n = t.alert ? GV.error : GV.success, r = t.action;
+ let n = t.alert ? KV.error : KV.success, r = t.action;
n(/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
toasterId: "receipts",
- duration: t.timeout > 0 ? t.timeout : oke,
+ duration: t.timeout > 0 ? t.timeout : ake,
action: r ? {
label: r.label,
onClick: (e) => {
@@ -67854,7 +67839,7 @@ function $Q({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
}), () => {
e.abort(), n.close();
};
- }, []), s ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(ske, {
+ }, []), s ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(oke, {
operation: a.current.operation,
selected: a.current.selected,
dialog: s.dialog,
@@ -67863,7 +67848,7 @@ function $Q({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
}
}), s.host) : null;
}
-function ske({ operation: e, selected: t, dialog: n, update: r }) {
+function oke({ operation: e, selected: t, dialog: n, update: r }) {
let [i, a] = (0, F.useState)(t[0]?.k || ""), [o, s] = (0, F.useState)(t[0] ? YQ(t[0]) : 0);
return (0, F.useEffect)(() => {
r({
@@ -67877,7 +67862,7 @@ function ske({ operation: e, selected: t, dialog: n, update: r }) {
e,
t,
r
- ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(cV, {
autoFocus: !0,
"aria-label": "标签名称",
value: i,
@@ -67891,7 +67876,7 @@ function ske({ operation: e, selected: t, dialog: n, update: r }) {
let n = t.find((t) => String(YQ(t)) === String(e));
n && s(YQ(n));
},
- children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(WU, {
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(GU, {
id: String(YQ(e)),
children: e.k
}, YQ(e)))
@@ -67928,7 +67913,7 @@ function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
(0, F.useEffect)(() => {
O(/* @__PURE__ */ new Map());
}, [S]);
- let k = new Set(D.keys()), [A, j] = (0, F.useState)(null), M = hH(), ee = E.data?.items || [], N = ee, te = (s ? XX : YX).filter(([e]) => e === "all" || e === h || E.isPending || Number(E.data?.categories[e]) > 0), P = N.map((e) => ({
+ let k = new Set(D.keys()), [A, j] = (0, F.useState)(null), M = gH(), ee = E.data?.items || [], N = ee, te = (s ? XX : YX).filter(([e]) => e === "all" || e === h || E.isPending || Number(E.data?.categories[e]) > 0), P = N.map((e) => ({
...e,
label: e.k
})), ne = g === "alphabet" ? oZ(P, (e) => e) : [], re = [...D.values()], ie = (e) => {
@@ -67996,7 +67981,7 @@ function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
} } : {}
},
actions: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, I.jsx)(pL, {
+ E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, I.jsx)(hL, {
busy: M.busy === "repair",
onPress: () => ie({
operation: "repair",
@@ -68004,11 +67989,11 @@ function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}),
children: "整理重复标签"
}) : null,
- N.length ? /* @__PURE__ */ (0, I.jsx)(pL, {
+ N.length ? /* @__PURE__ */ (0, I.jsx)(hL, {
onPress: () => O((e) => new Map([...e, ...N.map((e) => [e.k, e])])),
children: "选择本页"
}) : null,
- k.size ? /* @__PURE__ */ (0, I.jsx)(pL, {
+ k.size ? /* @__PURE__ */ (0, I.jsx)(hL, {
onPress: () => O(/* @__PURE__ */ new Map()),
children: "清空选择"
}) : null
@@ -68017,7 +68002,7 @@ function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
E.isPending ? /* @__PURE__ */ (0, I.jsx)("div", { dangerouslySetInnerHTML: { __html: rc({
mode: g,
pageSize: C.pageSize
- }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -68031,7 +68016,7 @@ function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}) : /* @__PURE__ */ (0, I.jsx)(BQ, {
tags: P,
actions: oe
- }) : /* @__PURE__ */ (0, I.jsx)(uV, {
+ }) : /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "neutral",
children: "没有符合条件的标签。"
}),
@@ -68047,11 +68032,11 @@ function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
pageSizes: nc
})
}) : null,
- M.error ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ M.error ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
children: M.error
}) : null,
- /* @__PURE__ */ (0, I.jsxs)(Cj, {
+ /* @__PURE__ */ (0, I.jsxs)(wj, {
label: "标签管理操作",
count: `已选 ${k.size} 个标签`,
visible: k.size > 0,
@@ -68073,7 +68058,7 @@ function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...hV(!!M.busy),
+ ...gV(!!M.busy),
onClick: () => ie({
operation: v ? "restore" : "hide",
ids: ae
@@ -68083,7 +68068,7 @@ function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
s ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...hV(!!M.busy),
+ ...gV(!!M.busy),
onClick: () => ie({
operation: b ? "unblock" : "block",
ids: ae
@@ -68103,7 +68088,7 @@ function e$({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
});
}
// src/react/index/index-page.tsx
-var cke = [
+var ske = [
{
value: "studios",
label: "厂牌",
@@ -68119,7 +68104,7 @@ var cke = [
label: "系列",
symbol: "list"
}
-], lke = [{
+], cke = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -68127,7 +68112,7 @@ var cke = [
value: "online",
label: "在线",
symbol: "rss"
-}], uke = [
+}], lke = [
{
value: "performers",
label: "艺人",
@@ -68143,7 +68128,7 @@ var cke = [
label: "在线",
symbol: "rss"
}
-], dke = {
+], uke = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -68172,20 +68157,20 @@ var cke = [
"layout-grid"
]]
};
-function fke({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, I.jsx)(rU, {
+function dke({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, I.jsx)(iU, {
"aria-label": `${JX[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none ${iU}`,
- children: dke[e === "series" ? "series" : $X(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = pV(n);
- return /* @__PURE__ */ (0, I.jsx)(Mz, {
+ className: `flex-none ${aU}`,
+ children: uke[e === "series" ? "series" : $X(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = mV(n);
+ return /* @__PURE__ */ (0, I.jsx)(Pz, {
value: e,
"aria-label": t,
- className: vve,
+ className: _ve,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -68195,7 +68180,7 @@ function fke({ kind: e, layout: t, onChange: n }) {
})
});
}
-function pke(e) {
+function fke(e) {
let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => eZ({
kind: e.kind,
q: e.q,
@@ -68244,7 +68229,7 @@ function pke(e) {
getNextPageParam: h === "tags" ? () => void 0 : E.getNextPageParam,
enabled: !(t && h === "tags"),
placeholderData: ke
- }), O = GEe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;
+ }), O = WEe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;
(0, F.useEffect)(() => {
pm(() => window.location.pathname === `/${h}` && !!m.current?.isConnected, m.current?.querySelector("[data-index-body]"), { pending: k });
}, [
@@ -68253,7 +68238,7 @@ function pke(e) {
D.isPlaceholderData,
r
]), FQ(h === "tags" && !D.isPlaceholderData ? j : void 0, w, T);
- let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : KEe(O.length, !!D.hasNextPage), ee = `${h}:${_}:${g}`, N = (0, F.useRef)(null), te = D.data?.pages[0]?.categories;
+ let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : GEe(O.length, !!D.hasNextPage), ee = `${h}:${_}:${g}`, N = (0, F.useRef)(null), te = D.data?.pages[0]?.categories;
te && !D.isPlaceholderData && (N.current = {
key: ee,
counts: te
@@ -68276,8 +68261,8 @@ function pke(e) {
x
]), oe = (t) => {
l(t), e.savePreference({ layout: t });
- }, se = h === "tags" ? /* @__PURE__ */ (0, I.jsx)(_W, {
- tabs: lke,
+ }, se = h === "tags" ? /* @__PURE__ */ (0, I.jsx)(vW, {
+ tabs: cke,
value: _,
label: "词表",
onChange: (e) => {
@@ -68287,8 +68272,8 @@ function pke(e) {
view: e === "online" ? "alphabet" : v
});
}
- }) : $X(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(_W, {
- tabs: cke,
+ }) : $X(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(vW, {
+ tabs: ske,
value: h,
label: "资料类型",
onChange: (e) => C({ kind: e })
@@ -68315,7 +68300,7 @@ function pke(e) {
QX(h) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-index-count": "",
className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums max-board-narrow:order-1 max-board-narrow:basis-full",
- children: /* @__PURE__ */ (0, I.jsx)(iL, {
+ children: /* @__PURE__ */ (0, I.jsx)(oL, {
text: k ? void 0 : D.isError ? "" : M,
busy: k,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -68324,18 +68309,18 @@ function pke(e) {
})
})
}) : null,
- QX(h) ? /* @__PURE__ */ (0, I.jsx)(fke, {
+ QX(h) ? /* @__PURE__ */ (0, I.jsx)(dke, {
kind: h,
layout: c,
onChange: oe
}) : null,
- /* @__PURE__ */ (0, I.jsx)(OV, { kind: h === "tags" ? "tag" : h === "series" ? "series" : h === "studios" ? "studio" : h === "agencies" ? "agency" : h === "creators" ? "creator" : "performer" }),
+ /* @__PURE__ */ (0, I.jsx)(kV, { kind: h === "tags" ? "tag" : h === "series" ? "series" : h === "studios" ? "studio" : h === "agencies" ? "agency" : h === "creators" ? "creator" : "performer" }),
h === "tags" ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: t ? "primary" : "ghost",
iconOnly: !0,
className: "flex-none",
"data-tag-mode": "",
- leadingIcon: pV("pencil"),
+ leadingIcon: mV("pencil"),
"aria-label": t ? "返回标签浏览" : "管理标签",
title: t ? "返回标签浏览" : "管理标签",
"aria-pressed": t,
@@ -68352,8 +68337,8 @@ function pke(e) {
})
]
}),
- h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(_W, {
- tabs: uke,
+ h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(vW, {
+ tabs: lke,
value: S ? "online" : h,
label: "人物名册",
onChange: (t) => {
@@ -68416,8 +68401,8 @@ function pke(e) {
}),
children: (() => {
if (k) return null;
- if (D.isError) return /* @__PURE__ */ (0, I.jsx)(dV, {
- icon: pV("alert"),
+ if (D.isError) return /* @__PURE__ */ (0, I.jsx)(fV, {
+ icon: mV("alert"),
title: `没能读取${b}`,
actions: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -68426,7 +68411,7 @@ function pke(e) {
}),
children: xn(D.error)
});
- if (!O.length) return /* @__PURE__ */ (0, I.jsx)(hke, {
+ if (!O.length) return /* @__PURE__ */ (0, I.jsx)(mke, {
kind: h,
filtered: !!g || y !== "all",
online: x || S,
@@ -68435,7 +68420,7 @@ function pke(e) {
category: "all"
})
});
- if (S) return /* @__PURE__ */ (0, I.jsx)(ZEe, {
+ if (S) return /* @__PURE__ */ (0, I.jsx)(XEe, {
items: O,
layout: c,
props: e
@@ -68488,7 +68473,7 @@ function pke(e) {
}) : null, "载入更多"]
})
}) : null,
- h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(ake, {
+ h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(ike, {
count: u.size,
match: f,
onMatch: p,
@@ -68502,7 +68487,7 @@ function pke(e) {
]
});
}
-var mke = {
+var pke = {
tags: "标签",
performers: "艺人",
creators: "卖家",
@@ -68510,9 +68495,9 @@ var mke = {
agencies: "事务所",
series: "系列"
};
-function hke({ kind: e, filtered: t, online: n, onClear: r }) {
- if (t) return /* @__PURE__ */ (0, I.jsx)(dV, {
- icon: pV("search"),
+function mke({ kind: e, filtered: t, online: n, onClear: r }) {
+ if (t) return /* @__PURE__ */ (0, I.jsx)(fV, {
+ icon: mV("search"),
title: "没有符合条件的内容",
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -68521,16 +68506,16 @@ function hke({ kind: e, filtered: t, online: n, onClear: r }) {
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : mke[e], a = /* @__PURE__ */ (0, I.jsx)(vL, {
+ let i = n && e === "performers" ? "创作者" : pke[e], a = /* @__PURE__ */ (0, I.jsx)(bL, {
size: "small",
variant: n ? "primary" : "secondary",
href: "/subscriptions?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, I.jsx)(dV, {
- icon: pV(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, I.jsx)(fV, {
+ icon: mV(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
- actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(vL, {
+ actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(bL, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -68545,8 +68530,8 @@ var t$ = {
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, gke = (e) => t$[e.junk_kind || "other"] || t$.other;
-function _ke(e) {
+}, hke = (e) => t$[e.junk_kind || "other"] || t$.other;
+function gke(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -68557,21 +68542,21 @@ function _ke(e) {
glyph: "check"
};
}
-var n$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), vke = (e, t) => [
+var n$ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), _ke = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function yke({ kind: e, view: t }) {
+function vke({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function bke(e, t) {
- let n = await B(`/api/ads?${yke(e)}`, t);
+async function yke(e, t) {
+ let n = await B(`/api/ads?${vke(e)}`, t);
return {
...n,
items: n.items || []
@@ -68586,8 +68571,8 @@ function r$({ name: e }) {
});
}
var i$ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function xke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
- let o = (0, F.useRef)(null), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = e.junk_kind || "other", [f, p] = gke(e), m = String(e.name || ""), h = _ke(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
+function bke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {
+ let o = (0, F.useRef)(null), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = e.junk_kind || "other", [f, p] = hke(e), m = String(e.name || ""), h = gke(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
t.target.closest("[data-junk-actions]") || i$(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
}, y = (t) => {
t.stopPropagation(), i$(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
@@ -68717,7 +68702,7 @@ function xke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var Ske = (0, F.memo)(xke);
+var xke = (0, F.memo)(bke);
// src/react/components/collection-summary.tsx
function a$({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -68758,10 +68743,10 @@ function s$({ scope: e, count: t }) {
children: t.toLocaleString()
})] }) : null;
}
-function Cke({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = BV(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = gL(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? IU.map(([e]) => n$(t, e)).join(",") : ""}`), l = zU(s), u = (e) => {
+function Ske({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = VV(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = vL(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? LU.map(([e]) => n$(t, e)).join(",") : ""}`), l = BU(s), u = (e) => {
let t = e.target.closest("a");
- !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || RU()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || zU()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-junk-count": "",
@@ -68769,7 +68754,7 @@ function Cke({ route: e, page: t, failed: n, onNavigate: r }) {
"data-junk-summary": "",
"aria-live": "polite",
children: /* @__PURE__ */ (0, I.jsx)(a$, {
- label: BU(s),
+ label: VU(s),
figure: d,
pending: !t && !n,
flush: !0
@@ -68789,8 +68774,8 @@ function Cke({ route: e, page: t, failed: n, onNavigate: r }) {
onClick: u,
onPointerLeave: c.leave,
children: [
- IU.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {
- href: RU(e, s),
+ LU.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {
+ href: zU(e, s),
"data-junk-kind-link": e,
"aria-current": e === o ? "page" : void 0,
onPointerEnter: c.hover,
@@ -68827,33 +68812,33 @@ function Cke({ route: e, page: t, failed: n, onNavigate: r }) {
});
}
// src/react/junk-queue/junk-queue-page.tsx
-var wke = pV("check"), Tke = (e, t) => e[1] === t.view && e[2] === t.kind;
-function Eke(e) {
+var Cke = mV("check"), wke = (e, t) => e[1] === t.view && e[2] === t.kind;
+function Tke(e) {
let t = {
kind: e.kind,
view: e.view
}, n = Ft({
- queryKey: vke(t, e.revision),
- queryFn: ({ signal: e }) => bke(t, e),
- placeholderData: (e, n) => n && Tke(n.queryKey, t) ? e : void 0
+ queryKey: _ke(t, e.revision),
+ queryFn: ({ signal: e }) => yke(t, e),
+ placeholderData: (e, n) => n && wke(n.queryKey, t) ? e : void 0
});
(0, F.useEffect)(() => {
n.isFetching || e.settled?.(e.revision);
}, [n.isFetching, e.revision]);
- let r = Dke(e.countRow), i = n.isPending;
+ let r = Eke(e.countRow), i = n.isPending;
(0, F.useLayoutEffect)(() => {
let t = e.countRow;
t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, i]), (0, F.useLayoutEffect)(() => {
r && n.data && ec(r, "junk");
}, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Cke, {
+ let { navigate: a } = e.actions, o = r ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Ske, {
route: t,
page: n.data,
failed: n.isError && !n.data,
onNavigate: a
}), r) : null;
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [o, /* @__PURE__ */ (0, I.jsx)(Oke, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [o, /* @__PURE__ */ (0, I.jsx)(Dke, {
props: e,
data: n.data,
pending: i,
@@ -68861,7 +68846,7 @@ function Eke(e) {
retry: () => void n.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function Dke(e) {
+function Eke(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!e) return;
@@ -68871,8 +68856,8 @@ function Dke(e) {
};
}, [e]), t;
}
-function Oke({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = Bbe(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, F.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, F.useCallback)(() => {
+function Dke({ props: e, data: t, pending: n, error: r, retry: i }) {
+ let a = zbe(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, F.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, F.useCallback)(() => {
d?.() !== !1 && c((e) => e + 1);
}, [d]);
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -68886,10 +68871,10 @@ function Oke({ props: e, data: t, pending: n, error: r, retry: i }) {
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, I.jsx)(dV, {
- icon: wke,
+ return /* @__PURE__ */ (0, I.jsx)(fV, {
+ icon: Cke,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
- actions: t ? /* @__PURE__ */ (0, I.jsx)(vL, {
+ actions: t ? /* @__PURE__ */ (0, I.jsx)(bL, {
size: "small",
href: "/junk-files",
children: "查看待判断"
@@ -68902,7 +68887,7 @@ function Oke({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-media-grid": "",
"data-junk-grid": "",
"data-select-mode": e.selectMode ? "" : void 0,
- children: u.map((t) => /* @__PURE__ */ (0, I.jsx)(Ske, {
+ children: u.map((t) => /* @__PURE__ */ (0, I.jsx)(xke, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -68911,7 +68896,7 @@ function Oke({ props: e, data: t, pending: n, error: r, retry: i }) {
actions: e.actions
}, t.id))
}),
- u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(kke, { onMore: f }, s) : null,
+ u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(Oke, { onMore: f }, s) : null,
u.length >= l.length && Number(t.total || 0) > l.length ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-junk-truncated": "",
className: "py-6 text-center text-caption-1-regular text-text-secondary",
@@ -68921,7 +68906,7 @@ function Oke({ props: e, data: t, pending: n, error: r, retry: i }) {
})()]
});
}
-function kke({ onMore: e }) {
+function Oke({ onMore: e }) {
let t = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
let n = t.current;
@@ -68938,7 +68923,7 @@ function kke({ onMore: e }) {
});
}
// src/react/components/fieldset-layout.ts
-var Ake = CU({
+var kke = wU({
padding: "none",
className: "overflow-hidden"
}), c$ = {
@@ -68949,11 +68934,11 @@ var Ake = CU({
stack: "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t border-border-button-default bg-card-footer px-5 py-3 max-cleanup-tight:px-4.5"
};
function u$(e) {
- return `${Ake} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
+ return `${kke} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
}
// src/react/data-cleanup/cleanup-entry.ts
var d$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", f$ = {
- face: CU({
+ face: wU({
padding: "none",
radius: "plain",
interactive: !0,
@@ -68965,26 +68950,26 @@ var d$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", f
summary: "text-body-2-regular tabular-nums text-text-secondary wrap-anywhere",
detail: "text-caption-1-regular text-text-tertiary wrap-anywhere",
arrow: "size-4 shrink-0 self-center text-foreground-icon-tertiary"
-}, jke = [
+}, Ake = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], Mke = [
+], jke = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function Nke(e = {}) {
- return `${CU({
+function Mke(e = {}) {
+ return `${wU({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var Pke = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", Fke = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+var Nke = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", Pke = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
function p$({ interactive: e = !1 } = {}) {
- return CU({
+ return wU({
padding: "none",
radius: "plain",
interactive: e,
@@ -68992,7 +68977,7 @@ function p$({ interactive: e = !1 } = {}) {
});
}
var m$ = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function Ike({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+function Fke({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",
@@ -69025,13 +69010,13 @@ function Ike({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMet
})
] });
}
-function Lke({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function Ike({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3",
children: [t ? /* @__PURE__ */ (0, I.jsx)("i", {
"aria-hidden": !0,
- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${jke[n % 4]} ${Mke[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${Ake[n % 4]} ${jke[n % 4]}`,
children: /* @__PURE__ */ (0, I.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -69052,10 +69037,10 @@ function Lke({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
] });
}
// src/management.ts
-var h$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", g$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", _$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", v$ = "disabled data-skeleton-action", Rke = "aria-disabled=\"true\"", y$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, b$ = (e, t, n) => `<div class="${c$[n]}"><div class="flex flex-col gap-2">
+var h$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", g$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", _$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", v$ = "disabled data-skeleton-action", Lke = "aria-disabled=\"true\"", y$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, b$ = (e, t, n) => `<div class="${c$[n]}"><div class="flex flex-col gap-2">
<h3 class="text-title-2-medium text-text-primary">${e}</h3>
<p class="text-body-2-regular text-text-secondary">${t}</p></div></div>`;
-function zke() {
+function Rke() {
return y$(`<section aria-label="扫描与采集" class="${u$("stack")}" data-cleanup-task data-cleanup-processing>
${b$("扫描与采集", h$, "stack")}
<footer class="${l$.stack}"><a href="/sources" class="inline-flex items-center justify-center gap-1 whitespace-nowrap font-sans rounded-sm text-body-medium text-accent-600"><span>来源和凭证</span>${Ts("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Os({
@@ -69067,19 +69052,19 @@ function zke() {
})}</span></footer>
</section>`);
}
-function Bke() {
+function zke() {
return y$(`<section aria-label="媒体修复" class="${u$("split")}" data-cleanup-task data-cleanup-processing>
${b$("媒体修复", g$, "split")}
<footer class="${l$.split}">${As(_$, {
className: "w-48",
- attrs: Rke
+ attrs: Lke
})}${Os({
label: "开始修复",
attrs: v$
})}</footer>
</section>`);
}
-function Vke() {
+function Bke() {
let e = (e, t, n, r = "") => `<div class="${f$.face}"><span class="${f$.icon}">${Ts(t, "size-5")}</span><span class="${f$.body}"><span class="${f$.title}">${e}</span><span class="${f$.summary}">${n}</span>${r ? `<span class="${f$.detail}">${r}</span>` : ""}</span>${Ts("chevron-right", f$.arrow)}</div>`, t = (e, t) => `<div class="${p$()}"><span class="flex min-w-0 items-center gap-2 text-body-medium text-text-secondary"><i class="flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary">${Ts(t, "size-4")}</i><span>${e}</span></span><strong class="block text-title-1-medium tabular-nums text-text-primary">${_$}</strong><span class="block min-h-4 text-caption-1-regular text-text-tertiary">${_$}</span></div>`, n = (e) => `<h2 class="text-title-2-medium! m-0! text-text-primary">${e}</h2>`, r = (t) => Yf.filter((e) => e.key === "batch-delete" === t).map((t) => e(t.title, t.icon, t.description)).join("");
return `<div class="peach-react" data-skeleton="cleanup" aria-busy="true" role="status" aria-label="正在读取数据管理状态"><div aria-hidden="true" inert class="mx-auto flex w-full max-w-board flex-col gap-8">
<section class="flex flex-col gap-4">${n("待处理事项")}<div class="${m$}">${[
@@ -69089,18 +69074,18 @@ function Vke() {
["高清版", "sparkles"],
["回收站", "trash"]
].map(([e, n]) => t(e, n)).join("")}</div></section>
- <div id="libraryProcessing" class="scroll-mt-20">${zke()}</div>
+ <div id="libraryProcessing" class="scroll-mt-20">${Rke()}</div>
<section class="flex flex-col gap-4">${n("整理与维护")}<div class="${d$}">${r(!1)}</div></section>
<section class="flex flex-col gap-4">${n("清理与删除")}<div class="${d$}">${r(!0)}</div></section>
</div></div>`;
}
// src/react/components/fieldset.tsx
-var Hke = CU({
+var Vke = wU({
padding: "none",
radius: "surface",
className: "overflow-hidden"
-}), Uke = "border-t border-border-button-default p-4 first:border-t-0";
-function Wke({ id: e, children: t }) {
+}), Hke = "border-t border-border-button-default p-4 first:border-t-0";
+function Uke({ id: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
@@ -69151,7 +69136,7 @@ function w$({ title: e, href: t, children: n }) {
});
}
// src/react/components/status-label.tsx
-var Gke = {
+var Wke = {
success: "lime",
progress: "blue",
warning: "yellow",
@@ -69159,15 +69144,15 @@ var Gke = {
neutral: "neutral"
};
function T$({ tone: e = "neutral", ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(KU, {
+ return /* @__PURE__ */ (0, I.jsx)(qU, {
"data-status-tone": e,
variant: "caption",
- color: Gke[e],
+ color: Wke[e],
...t
});
}
// src/react/components/path-line.tsx
-function Kke({ className: e }) {
+function Gke({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -69180,7 +69165,7 @@ function Kke({ className: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-folder-open" })
});
}
-var qke = "打开文件管理器失败,请重试";
+var Kke = "打开文件管理器失败,请重试";
function E$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
let [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(!0);
(0, F.useEffect)(() => () => {
@@ -69192,7 +69177,7 @@ function E$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
try {
await V("/api/reveal", { path: e }), i?.("已在资源管理器中显示");
} catch (e) {
- l.current && c(e instanceof sr ? e.message : qke);
+ l.current && c(e instanceof sr ? e.message : Kke);
} finally {
l.current && o(!1);
}
@@ -69207,12 +69192,12 @@ function E$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
children: [t, e]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(oL, {
- icon: Kke,
+ children: [/* @__PURE__ */ (0, I.jsx)(cL, {
+ icon: Gke,
size: "small",
"aria-label": "在资源管理器中显示",
onClick: () => void u(),
- ...hV(a)
+ ...gV(a)
}), r]
})]
}), s ? /* @__PURE__ */ (0, I.jsx)("p", {
@@ -69222,7 +69207,7 @@ function E$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
});
}
// src/react/library-processing/issue-export.ts
-async function Jke(e, t) {
+async function qke(e, t) {
if (!e.job_id) throw Error("请先选择有问题记录的任务");
let n = [], r = 1, i = "";
for (let a = 0; a < r; a += 200) {
@@ -69245,69 +69230,69 @@ async function Jke(e, t) {
rows: n
}, null, 2);
}
-function Yke(e, t) {
+function Jke(e, t) {
let n = URL.createObjectURL(new Blob([t], { type: "application/json;charset=utf-8" })), r = document.createElement("a");
r.href = n, r.download = `peach-issues-${e}.json`, r.click(), URL.revokeObjectURL(n);
}
// src/react/library-processing/library-processing-card.tsx
-var Xke = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Zke = (e) => {
+var Yke = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Xke = (e) => {
let t = e.performer_aliases || 0, n = e.performer_avatars || 0, r = e.performer_profile_conflicts || 0, i = e.performer_profile_failed || 0;
if (!t && !n && !r && !i) return "";
let a = [`补齐女优资料:别名 ${t} 个,头像 ${n} 张`];
return r && a.push(`${r} 项同名人物资料需要确认是否为同一人`), i && a.push(`${i} 张头像未取得`), `${a.join(",")}。`;
-}, Qke = (e) => e.requested_stage === "previews" ? `已生成 ${e.previews || 0} 部视频预览。` : `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条。` + (e.previews ? `已生成 ${e.previews} 部视频预览。` : "") + Zke(e);
-function $ke({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = F_e(e), o = hH(), s = hH(), [c, l] = (0, F.useState)(""), u = tH(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = M_e(e.notes || {}), p = !!t || !e.archived && e.status === "failed", m = !t && !e.archived && nH(e), h = p || !e.archived && !u && (!!f || !!e.issue_count), g = !u && !!e.job_id && !e.archived, _ = e.issues_log || "", v = $V(e), y = BV(), b = (t) => void s.run(t ? "archive" : "unarchive", (n) => V(ZV, {
+}, Zke = (e) => e.requested_stage === "previews" ? `已生成 ${e.previews || 0} 部视频预览。` : `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,取得 ${e.candidates || 0} 组作品资料,自动保存 ${e.auto_applied || 0} 条。` + (e.previews ? `已生成 ${e.previews} 部视频预览。` : "") + Xke(e);
+function Qke({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = P_e(e), o = gH(), s = gH(), [c, l] = (0, F.useState)(""), u = nH(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = j_e(e.notes || {}), p = !!t || !e.archived && e.status === "failed", m = !t && !e.archived && rH(e), h = p || !e.archived && !u && (!!f || !!e.issue_count), g = !u && !!e.job_id && !e.archived, _ = e.issues_log || "", v = eH(e), y = VV(), b = (t) => void s.run(t ? "archive" : "unarchive", (n) => V(QV, {
action: t ? "archive" : "unarchive",
job_id: e.job_id
}, "POST", n), (n) => {
- H.setQueryData(QV, n), l(t ? e.job_id : "");
+ H.setQueryData($V, n), l(t ? e.job_id : "");
}), x = e.issue_count && !u ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...hV(!!o.busy),
- onClick: () => void o.run("export", (t) => Jke(e, t), (t) => {
- Yke(e.job_id, t), i("已导出问题清单");
+ ...gV(!!o.busy),
+ onClick: () => void o.run("export", (t) => qke(e, t), (t) => {
+ Jke(e.job_id, t), i("已导出问题清单");
}),
children: "导出完整问题清单"
}) : null, S = p ? [
t || e.error || "处理未完成,请重试",
- m ? rH : "",
+ m ? iH : "",
f
].filter(Boolean).join("\n") : f || `这一趟有 ${(e.issue_count || 0).toLocaleString()} 项问题。`;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
children: [
- v ? /* @__PURE__ */ (0, I.jsx)(R_e, {
+ v ? /* @__PURE__ */ (0, I.jsx)(L_e, {
state: e,
slow: v
- }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "warning",
title: "处理较慢",
- children: Xke
+ children: Yke
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "success",
title: "处理完成",
- children: Qke(n)
+ children: Zke(n)
}) : null,
- (n ?? e).status === "cancelled" && !e.archived ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ (n ?? e).status === "cancelled" && !e.archived ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "neutral",
title: "已取消上次任务",
children: "已取得的资料和预览已保留,这一轮不会自动继续,需要时重新同步。"
}) : null,
- h ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ h ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: p ? m ? "warning" : "error" : "neutral",
className: "gap-0 p-3",
title: p ? m ? "处理已结束,部分项目需处理" : "处理未完成" : void 0,
action: /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- m ? /* @__PURE__ */ (0, I.jsx)(mH, {
- href: iH,
+ m ? /* @__PURE__ */ (0, I.jsx)(hH, {
+ href: aH,
size: "small",
- trailingIcon: vB,
+ trailingIcon: bB,
children: "查看全部内容"
}) : null,
d ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -69321,7 +69306,7 @@ function $ke({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
variant: "secondary",
size: "small",
"aria-label": "归档提示",
- ...hV(!!s.busy),
+ ...gV(!!s.busy),
onClick: () => b(!0),
children: "归档"
}) : null
@@ -69329,7 +69314,7 @@ function $ke({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}),
extra: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [a ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "-mx-3 mt-3 border-t border-current/20 px-3 pt-3",
- children: /* @__PURE__ */ (0, I.jsx)(zH, {
+ children: /* @__PURE__ */ (0, I.jsx)(BH, {
summary: a.label,
contentClassName: "gap-0",
children: /* @__PURE__ */ (0, I.jsx)("div", {
@@ -69366,18 +69351,18 @@ function $ke({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : null] }),
children: S
}) : null,
- e.archived && c === e.job_id && !t ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ e.archived && c === e.job_id && !t ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...hV(!!s.busy),
+ ...gV(!!s.busy),
onClick: () => b(!1),
children: "撤销"
}),
children: "已归档上一趟的问题提示,完整记录仍保留。"
}) : null,
- o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "warning",
children: o.error || s.error
}) : null
@@ -69385,16 +69370,16 @@ function $ke({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
});
}
function D$(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = EH(e), o = It({
- mutationFn: (e) => V(ZV, e),
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = DH(e), o = It({
+ mutationFn: (e) => V(QV, e),
onSuccess: (e) => {
- a(), H.setQueryData(QV, e), H.invalidateQueries({ queryKey: QV });
+ a(), H.setQueryData($V, e), H.invalidateQueries({ queryKey: $V });
}
});
(0, F.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = tU(c), u = o.error ? lr(o.error) : r.isError ? r.data ? cH : lr(r.error) : "", d = o.isPending || tH(s), f = async (e) => {
+ let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = nU(c), u = o.error ? lr(o.error) : r.isError ? r.data ? lH : lr(r.error) : "", d = o.isPending || nH(s), f = async (e) => {
d || (o.reset(), await o.mutateAsync(e));
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -69403,33 +69388,33 @@ function D$(e) {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(mH, {
+ /* @__PURE__ */ (0, I.jsx)(hH, {
href: "/sources",
size: "small",
- trailingIcon: vB,
+ trailingIcon: bB,
children: "来源和凭证"
}),
- /* @__PURE__ */ (0, I.jsx)(mH, {
+ /* @__PURE__ */ (0, I.jsx)(hH, {
href: "/settings/diagnostics",
size: "small",
- trailingIcon: vB,
+ trailingIcon: bB,
children: "诊断与日志"
}),
- s.candidates ? /* @__PURE__ */ (0, I.jsx)(mH, {
+ s.candidates ? /* @__PURE__ */ (0, I.jsx)(hH, {
href: "/review",
size: "small",
- trailingIcon: vB,
+ trailingIcon: bB,
children: "复核资料"
}) : null,
/* @__PURE__ */ (0, I.jsx)(PK, {
scan: !0,
busy: o.isPending,
- occupied: tH(s),
+ occupied: nH(s),
metadataOnly: s?.metadata_only,
speedMode: s.speed_mode,
pendingCount: s.new_asset_count,
onRun: f,
- onOccupied: () => t(A_e(s))
+ onOccupied: () => t(k_e(s))
})
] }),
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -69439,7 +69424,7 @@ function D$(e) {
className: "flex flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(x$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, I.jsx)(KU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(x$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, I.jsx)(qU, {
variant: "caption",
color: "blue",
children: /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -69447,10 +69432,10 @@ function D$(e) {
children: [s.new_asset_count.toLocaleString(), " 部待补全"]
})
}) : null]
- }), l && (tH(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(J, {
+ }), l && (nH(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- onClick: () => eU(c, !0),
+ onClick: () => tU(c, !0),
children: "显示进度浮窗"
}) : null]
}),
@@ -69461,17 +69446,17 @@ function D$(e) {
s.status === "paused" && !s.total ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "self-start",
children: /* @__PURE__ */ (0, I.jsx)(T$, { children: "已暂停" })
- }) : tH(s) ? /* @__PURE__ */ (0, I.jsx)(K_e, { state: s }) : null,
- tH(s) ? /* @__PURE__ */ (0, I.jsx)("p", {
+ }) : nH(s) ? /* @__PURE__ */ (0, I.jsx)(G_e, { state: s }) : null,
+ nH(s) ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary tabular-nums",
"data-processing-eta": "",
- children: aH(s)
+ children: oH(s)
}) : null,
- tH(s) ? /* @__PURE__ */ (0, I.jsx)(qH, { traffic: s.traffic }) : null,
- tH(s) ? /* @__PURE__ */ (0, I.jsx)(TH, { state: s }) : null
+ nH(s) ? /* @__PURE__ */ (0, I.jsx)(JH, { traffic: s.traffic }) : null,
+ nH(s) ? /* @__PURE__ */ (0, I.jsx)(EH, { state: s }) : null
]
})
- }), /* @__PURE__ */ (0, I.jsx)($ke, {
+ }), /* @__PURE__ */ (0, I.jsx)(Qke, {
state: s,
problem: u,
settled: i,
@@ -69486,30 +69471,30 @@ function D$(e) {
});
}
// src/react/playlists/playlists.ts
-var eAe = "/api/playlists", O$ = "/api/playlist", k$ = ["playlists"], A$ = (e) => B(eAe, e);
-async function tAe(e) {
+var $ke = "/api/playlists", O$ = "/api/playlist", k$ = ["playlists"], A$ = (e) => B($ke, e);
+async function eAe(e) {
await H.fetchQuery({
queryKey: k$,
queryFn: () => A$(e),
staleTime: 0
});
}
-var nAe = () => H.invalidateQueries({
+var tAe = () => H.invalidateQueries({
queryKey: k$,
exact: !0
-}), rAe = (e) => e.current_asset_id || e.preview_asset_id || null, iAe = (e) => `/poster?id=${e}&c=4`, aAe = (e) => V(O$, {
+}), nAe = (e) => e.current_asset_id || e.preview_asset_id || null, rAe = (e) => `/poster?id=${e}&c=4`, iAe = (e) => V(O$, {
action: "create",
name: e,
asset_ids: []
-}), oAe = (e, t) => V(O$, {
+}), aAe = (e, t) => V(O$, {
action: "rename",
id: e,
name: t
-}), sAe = (e) => V(O$, {
+}), oAe = (e) => V(O$, {
action: "delete",
id: e
-}), cAe = (e) => B(`${O$}?id=${e}`).catch(() => null);
-function lAe(e) {
+}), sAe = (e) => B(`${O$}?id=${e}`).catch(() => null);
+function cAe(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
return V(O$, {
action: "create",
@@ -69520,8 +69505,8 @@ function lAe(e) {
});
}
// src/react/scraping/custom-source-data.ts
-var j$ = "/api/custom-metadata", M$ = ["custom-metadata"], N$ = (e) => B(j$, e), uAe = "/api/scraping", dAe = "/api/scraping/settings", fAe = "/api/scraping/check", P$ = "/api/scraping/cover", pAe = "/api/scraping/amane-bridge", mAe = "/api/scraping/amane-bridge/check", hAe = "/api/scraping/amane-bridge/rebuild", F$ = ["scraping"], I$ = ["scraping", "cover"], L$ = ["scraping", "amane-bridge"], gAe = 262144, R$ = (e) => B(uAe, e), z$ = (e) => B(P$, e), B$ = (e) => B(pAe, e);
-async function _Ae(e) {
+var j$ = "/api/custom-metadata", M$ = ["custom-metadata"], N$ = (e) => B(j$, e), lAe = "/api/scraping", uAe = "/api/scraping/settings", dAe = "/api/scraping/check", P$ = "/api/scraping/cover", fAe = "/api/scraping/amane-bridge", pAe = "/api/scraping/amane-bridge/check", mAe = "/api/scraping/amane-bridge/rebuild", F$ = ["scraping"], I$ = ["scraping", "cover"], L$ = ["scraping", "amane-bridge"], hAe = 262144, R$ = (e) => B(lAe, e), z$ = (e) => B(P$, e), B$ = (e) => B(fAe, e);
+async function gAe(e) {
await Promise.all([
H.fetchQuery({
queryKey: F$,
@@ -69541,7 +69526,7 @@ async function _Ae(e) {
})
]);
}
-function vAe(e, t) {
+function _Ae(e, t) {
return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.elapsed_s === void 0 ? "" : ` · ${e.elapsed_s.toFixed(2)} 秒`) + (e.message ? `。${e.message}` : "");
}
var V$ = /* @__PURE__ */ new Set([
@@ -69568,7 +69553,7 @@ function U$(e) {
};
}
var W$ = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function yAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
+function vAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
let c = 0, l = [], u = (e) => {
let t = {
...e,
@@ -69659,7 +69644,7 @@ function yAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: l
};
}
-function bAe(e, t, n = Math.random) {
+function yAe(e, t, n = Math.random) {
let r = [...e];
for (let e = r.length - 1; e > 0; --e) {
let t = Math.floor(n() * (e + 1));
@@ -69668,7 +69653,7 @@ function bAe(e, t, n = Math.random) {
return r.filter((e) => !t.some((t) => W$(t) === W$(e))).slice(0, 5);
}
// src/react/search/search-page.tsx
-var xAe = () => ({
+var bAe = () => ({
dismissed: !1,
history: [],
pool: [],
@@ -69694,7 +69679,7 @@ var xAe = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), G$ = (e) => yAe({
+}), G$ = (e) => vAe({
query: e.query,
history: e.history,
picks: e.picks,
@@ -69703,8 +69688,8 @@ var xAe = () => ({
tabs: e.tabs,
kind: e.kind,
recommendations: e.recommendations
-}), SAe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), K$ = 4e3, CAe = 5e3, q$ = 1200;
-function wAe(e) {
+}), xAe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), K$ = 4e3, SAe = 5e3, q$ = 1200;
+function CAe(e) {
if (window.requestIdleCallback) {
let t = window.requestIdleCallback(e, { timeout: K$ });
return () => window.cancelIdleCallback(t);
@@ -69717,13 +69702,13 @@ var J$ = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
-function TAe(e) {
+function wAe(e) {
let t = (0, F.useRef)(e);
t.current = e;
let n = (0, F.useRef)(null);
- n.current ??= xAe();
+ n.current ??= bAe();
let r = n.current, i = (0, F.useRef)(null), [, a] = (0, F.useReducer)((e) => e + 1, 0), o = (0, F.useRef)(null);
- o.current ??= DAe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= EAe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
let s = o.current;
(0, F.useLayoutEffect)(() => {
let { input: e } = t.current, n = (e) => s.input(e), i = () => {
@@ -69734,7 +69719,7 @@ function TAe(e) {
e.addEventListener("input", n), e.addEventListener("compositionend", n), e.addEventListener("compositionstart", i), e.addEventListener("keydown", a), e.addEventListener("focus", o), e.addEventListener("click", c);
let l = { close: s.close };
t.current.expose(l), s.warm();
- let u = window.setInterval(s.rotatePlaceholder, CAe);
+ let u = window.setInterval(s.rotatePlaceholder, SAe);
return () => {
e.removeEventListener("input", n), e.removeEventListener("compositionend", n), e.removeEventListener("compositionstart", i), e.removeEventListener("keydown", a), e.removeEventListener("focus", o), e.removeEventListener("click", c), clearTimeout(r.timer), r.cancelIdle(), window.clearInterval(u), r.cancelRoll(), r.recommendationRequest++, t.current.expose(null);
};
@@ -69742,7 +69727,7 @@ function TAe(e) {
let e = i.current?.closest("[data-search-menu]");
r.rewind && e && (e.scrollTop = 0), r.rewind = !1, r.reveal && i.current?.querySelector("[data-search-option][data-active]")?.scrollIntoView({ block: "nearest" }), r.reveal = !1;
});
- let c = G$(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(kAe, {
+ let c = G$(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(OAe, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -69776,7 +69761,7 @@ function TAe(e) {
e.pending ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-search-items": "",
"aria-busy": "true",
- children: EAe(e)
+ children: TAe(e)
}) : e.kind ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-search-items": "",
children: e.options.map(u)
@@ -69790,7 +69775,7 @@ function TAe(e) {
"data-search-recommendations": !r.query && r.recommendations.length ? "" : void 0,
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, I.jsx)(OAe, {
+ c.tabs ? /* @__PURE__ */ (0, I.jsx)(DAe, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -69829,7 +69814,7 @@ function Y$(e, t) {
}
}
var X$ = "\xA0";
-function EAe(e) {
+function TAe(e) {
let t = H$.has(e.kind ?? "");
return Array.from({ length: e.pending ?? 0 }, (e, n) => t ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-search-option": "work",
@@ -69864,7 +69849,7 @@ function EAe(e) {
})]
}, n));
}
-function DAe(e, t, n, r) {
+function EAe(e, t, n, r) {
let i = () => e().input, a = () => document.activeElement === i(), o = () => t.history.slice(0, e().historyLimit), s = (n) => {
t.history = n.slice(0, e().historyLimit);
}, c = async () => {
@@ -69910,7 +69895,7 @@ function DAe(e, t, n, r) {
let n = e().helpers;
n.recommendations && (t.nextRecommendations && (t.recommendations = t.nextRecommendations, t.nextRecommendations = null, Y$(t.recommendations.map(U$), n)), !t.recommendations.length && (t.recommendations = n.pendingRecommendations?.() ?? [], t.recommendationsFilling = !0, p()));
}, h = () => {
- t.cancelIdle(), t.cancelIdle = wAe(() => {
+ t.cancelIdle(), t.cancelIdle = CAe(() => {
t.nextRecommendations || p();
});
}, g = h, _ = (n) => {
@@ -69946,9 +69931,9 @@ function DAe(e, t, n, r) {
i && e().helpers.dismiss(i), t.active = -1, h(), r();
}, x = () => {
if (t.dismissed) return;
- t.query = i().value.trim(), t.picks = t.query ? [] : bAe(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : yAe(t.pool, o()), t.active = -1;
let a = n();
- a && (SAe(G$(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (xAe(G$(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, S = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -69975,10 +69960,10 @@ function DAe(e, t, n, r) {
};
return {
input: (n) => {
- t.cancelRoll(), !tW(n) && (t.dismissed = !1, e().helpers.typed(i()), S());
+ t.cancelRoll(), !nW(n) && (t.dismissed = !1, e().helpers.typed(i()), S());
},
key: (n) => {
- if (tW(n)) return;
+ if (nW(n)) return;
let r = i();
if (n.key === "Escape") {
if (y()) {
@@ -70025,7 +70010,7 @@ function DAe(e, t, n, r) {
rotatePlaceholder: d
};
}
-function OAe({ tabs: e, kind: t, onPick: n, wire: r }) {
+function DAe({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
r(i.current);
@@ -70039,9 +70024,9 @@ function OAe({ tabs: e, kind: t, onPick: n, wire: r }) {
"data-pill-variant": "gray",
onMouseDown: (e) => e.preventDefault(),
onClick: () => n(e),
- children: [r, i ? /* @__PURE__ */ (0, I.jsx)(gW, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, I.jsx)(_W, { value: i }) : null]
}, e || "all");
- return /* @__PURE__ */ (0, I.jsxs)(FI, {
+ return /* @__PURE__ */ (0, I.jsxs)(LI, {
ref: i,
"data-search-tabs": "",
"data-pill-nav": "",
@@ -70051,8 +70036,8 @@ function OAe({ tabs: e, kind: t, onPick: n, wire: r }) {
});
}
var Z$ = (e) => e.preventDefault();
-function kAe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
- rL();
+function OAe({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+ aL();
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -70216,7 +70201,7 @@ function $$({ item: e, kind: t }) {
}
// src/react/settings/configuration.ts
var e1 = ["configuration"], t1 = (e) => B(KY, e);
-async function AAe(e) {
+async function kAe(e) {
await H.fetchQuery({
queryKey: e1,
queryFn: () => t1(e)
@@ -70269,7 +70254,7 @@ function i1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function jAe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function AAe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
let s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)({
onStep: a,
onSettle: o
@@ -70303,7 +70288,7 @@ function jAe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
});
}
// src/react/settings-panel/glow-settings.tsx
-var MAe = [
+var jAe = [
[
"strength",
"强度",
@@ -70330,8 +70315,8 @@ var MAe = [
100
]
];
-function NAe({ host: e, spot: t, index: n, glow: r }) {
- let i = cle[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = BV(), [l, u] = (0, F.useState)("all");
+function MAe({ host: e, spot: t, index: n, glow: r }) {
+ let i = sle[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = VV(), [l, u] = (0, F.useState)("all");
(0, F.useLayoutEffect)(() => {
let [e, t, n] = [
a.current,
@@ -70344,7 +70329,7 @@ function NAe({ host: e, spot: t, index: n, glow: r }) {
}, []);
let d = r[t].color, f = (n) => {
let r = e.store.value.homeGlow;
- r[t].color = Yj(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), os(), o.current?.focus();
+ r[t].color = Xj(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), os(), o.current?.focus();
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-glow-stop": t,
@@ -70369,7 +70354,7 @@ function NAe({ host: e, spot: t, index: n, glow: r }) {
children: d
})]
}),
- /* @__PURE__ */ (0, I.jsx)(VF, { name: "chevron-down" })
+ /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "popmenu",
@@ -70381,7 +70366,7 @@ function NAe({ host: e, spot: t, index: n, glow: r }) {
"data-glow-pills": "",
role: "group",
"aria-label": "色系",
- children: dle.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: ule.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-pill": e,
"aria-pressed": e === l,
@@ -70395,7 +70380,7 @@ function NAe({ host: e, spot: t, index: n, glow: r }) {
"data-glow-palette": "",
role: "radiogroup",
"aria-label": `${i}颜色`,
- children: fle.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: dle.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
role: "radio",
"aria-checked": n === d,
@@ -70412,8 +70397,8 @@ function NAe({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function PAe({ host: e }) {
- let t = e.store.value.homeGlow, n = Hj(t.preset);
+function NAe({ host: e }) {
+ let t = e.store.value.homeGlow, n = Uj(t.preset);
return /* @__PURE__ */ (0, I.jsxs)("section", {
"data-glow-setting": "",
id: "homeGlowControls",
@@ -70432,10 +70417,10 @@ function PAe({ host: e }) {
"data-glow-current": "",
children: ["当前配色", /* @__PURE__ */ (0, I.jsx)("b", {
"data-glow-preset-name": "",
- children: lle(t.preset)
+ children: cle(t.preset)
})]
}),
- /* @__PURE__ */ (0, I.jsx)(zM, {
+ /* @__PURE__ */ (0, I.jsx)(BM, {
store: e.store,
label: "光晕配色"
}),
@@ -70446,7 +70431,7 @@ function PAe({ host: e }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-fields": "",
- children: MAe.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(jAe, {
+ children: jAe.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(AAe, {
field: r,
label: i,
max: a,
@@ -70467,7 +70452,7 @@ function PAe({ host: e }) {
className: "geist-button",
"data-glow-reset": "",
onClick: () => {
- e.store.value.homeGlow = Zj(null), e.store.save(), e.changed("glow");
+ e.store.value.homeGlow = Qj(null), e.store.save(), e.changed("glow");
},
children: "恢复默认"
})
@@ -70486,7 +70471,7 @@ function PAe({ host: e }) {
"data-glow-colour-card": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-stops": "",
- children: zj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(NAe, {
+ children: Bj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(MAe, {
host: e,
spot: n,
index: r,
@@ -70498,7 +70483,7 @@ function PAe({ host: e }) {
});
}
// src/react/settings-panel/number-setting.tsx
-var FAe = {
+var PAe = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -70552,8 +70537,8 @@ function o1(e, t) {
return Number.isInteger(n) ? `${n.toLocaleString()} 天` : `约 ${n.toFixed(1)} 天`;
}
function s1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = FAe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
- d.current ||= Oj(Number(localStorage.getItem(a1(e))), o, s, n && n > 0 ? n : l);
+ let a = PAe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
+ d.current ||= kj(Number(localStorage.getItem(a1(e))), o, s, n && n > 0 ? n : l);
let [f, p] = (0, F.useState)(n ?? 0), [m, h] = (0, F.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, F.useState)(""), v = (0, F.useRef)(null), y = (0, F.useRef)(i);
y.current = i, (0, F.useLayoutEffect)(() => {
n !== null && (p(n), n > 0 && h(String(n)));
@@ -70635,8 +70620,8 @@ function l1(e, t, n, r) {
return o < 0 ? null : (i.splice(o + +!!r, 0, t), i);
}
// src/react/settings-panel/sidebar-order.tsx
-var IAe = "__home__", u1 = (e) => e === "" ? IAe : e;
-function LAe({ host: e }) {
+var FAe = "__home__", u1 = (e) => e === "" ? FAe : e;
+function IAe({ host: e }) {
let t = c1(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(!1), [u, d] = (0, F.useState)(null), [f, p] = (0, F.useState)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = (e, r, i) => {
let a = l1(n, e, r, i);
a && t(a);
@@ -70698,9 +70683,9 @@ function LAe({ host: e }) {
/* @__PURE__ */ (0, I.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(VF, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, I.jsx)(HF, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, I.jsx)(VF, { name: a ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(HF, { name: a ?? "" }),
/* @__PURE__ */ (0, I.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -70714,7 +70699,7 @@ function LAe({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, I.jsx)(VF, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -70724,7 +70709,7 @@ function LAe({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, I.jsx)(VF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -70736,7 +70721,7 @@ function LAe({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, I.jsx)(VF, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, I.jsx)(HF, { name: "eye-off" })
})
]
})]
@@ -70756,13 +70741,13 @@ function LAe({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(VF, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(HF, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, I.jsx)(VF, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(VF, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(HF, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -70780,7 +70765,7 @@ function LAe({ host: e }) {
onClick: () => {
s(u1(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, I.jsx)(VF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
+ children: [/* @__PURE__ */ (0, I.jsx)(HF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
}, u1(e)))
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("button", {
@@ -70803,7 +70788,7 @@ var d1 = [
["JAV 与新作", "jav"],
["搜索与推荐", "ri-search-line"],
["内容显示", "ri-shield-check-line"]
-], RAe = [
+], LAe = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -70812,7 +70797,7 @@ var d1 = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], zAe = [["desc", "降序"], ["asc", "升序"]], BAe = [[
+], RAe = [["desc", "降序"], ["asc", "升序"]], zAe = [[
"cover",
"官方封面",
""
@@ -70820,7 +70805,7 @@ var d1 = [
"thumbnail",
"预览图",
""
-]], VAe = [
+]], BAe = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -70839,32 +70824,32 @@ var d1 = [
"切片",
"隐藏切片"
]
-], HAe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", f1 = null, p1 = {
+], VAe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", f1 = null, p1 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
configurable: null
}, m1 = 0, h1 = null, g1 = /* @__PURE__ */ new Set();
-function UAe(e) {
+function HAe(e) {
return g1.add(e), () => {
g1.delete(e);
};
}
-function WAe() {
+function UAe() {
for (let e of [...g1]) e();
}
function _1(e) {
p1 = {
...p1,
...e
- }, (0, Rt.flushSync)(WAe);
+ }, (0, Rt.flushSync)(UAe);
}
-async function GAe(e) {
+async function WAe(e) {
let t = p1.epoch, n = await e.configurable();
p1.open && p1.epoch === t && _1({ configurable: n });
}
-function KAe(e = "") {
+function GAe(e = "") {
let t = f1;
if (!t) return;
let n = d1.findIndex(([t]) => t === e);
@@ -70873,7 +70858,7 @@ function KAe(e = "") {
return;
}
os(), m1 += 1, h1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let r = OTe();
+ let r = DTe();
_1({
open: !0,
closing: !1,
@@ -70882,7 +70867,7 @@ function KAe(e = "") {
tab: n >= 0 ? n : p1.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), GAe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), WAe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
function v1(e = !0) {
if (!p1.open || p1.closing) return;
@@ -70896,31 +70881,31 @@ function v1(e = !0) {
};
matchMedia("(prefers-reduced-motion: reduce)").matches ? queueMicrotask(n) : (document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 380));
}
-var qAe = {
- open: KAe,
+var KAe = {
+ open: GAe,
close: v1,
isOpen: () => p1.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function JAe(e) {
- return f1 = e, qAe;
+function qAe(e) {
+ return f1 = e, KAe;
}
-function YAe() {
- let e = (0, F.useSyncExternalStore)(UAe, () => p1);
- return f1 ? /* @__PURE__ */ (0, I.jsx)(QAe, {
+function JAe() {
+ let e = (0, F.useSyncExternalStore)(HAe, () => p1);
+ return f1 ? /* @__PURE__ */ (0, I.jsx)(ZAe, {
host: f1,
view: e
}) : null;
}
-function XAe(e) {
+function YAe(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(HAe)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(VAe)].filter((e) => e.getClientRects().length > 0);
if (!t.length) return;
let n = t[0], r = t[t.length - 1];
e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
}
var y1 = (e) => `settings-tab-${e}`, b1 = (e) => `settings-group-${e}`;
-function ZAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
+function XAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
let a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(e), l = (0, F.useRef)([]), u = (e, t) => {
let n = o.current;
if (!n) return;
@@ -70992,7 +70977,7 @@ function ZAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onPointerEnter: (e) => {
e.pointerType !== "touch" && u(e.currentTarget, !0);
},
- children: [n === "jav" ? /* @__PURE__ */ (0, I.jsx)(VF, { name: n }) : /* @__PURE__ */ (0, I.jsx)(Hde, { name: n }), t]
+ children: [n === "jav" ? /* @__PURE__ */ (0, I.jsx)(HF, { name: n }) : /* @__PURE__ */ (0, I.jsx)(Vde, { name: n }), t]
}, t)),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-settings-service": "",
@@ -71003,9 +70988,9 @@ function ZAe({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onClick: r,
title: n === !1 ? "请在运行 Peach 的设备上打开 Peach 配置" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(VF, { name: "folder-cog" }),
+ /* @__PURE__ */ (0, I.jsx)(HF, { name: "folder-cog" }),
"Peach 配置",
- /* @__PURE__ */ (0, I.jsx)(VF, { name: "chevron-right" })
+ /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-right" })
]
})
})
@@ -71020,17 +71005,7 @@ function x1({ index: e, tab: t, children: n, cards: r = !1 }) {
role: "tabpanel",
"aria-labelledby": y1(e),
hidden: e !== t,
- children: [
- /* @__PURE__ */ (0, I.jsx)("h3", { children: d1[e][0] }),
- /* @__PURE__ */ (0, I.jsx)(Uve, { chapter: [
- "appearance",
- "playback",
- "jav-settings",
- "search-settings",
- "content"
- ][e] }),
- n
- ]
+ children: [/* @__PURE__ */ (0, I.jsx)("h3", { children: d1[e][0] }), n]
});
}
function S1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
@@ -71058,7 +71033,7 @@ function C1({ title: e, description: t, kind: n, children: r }) {
children: [/* @__PURE__ */ (0, I.jsxs)("span", { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: e }), typeof t == "string" ? /* @__PURE__ */ (0, I.jsx)("small", { children: t }) : t] }), r]
});
}
-function QAe({ host: e, view: t }) {
+function ZAe({ host: e, view: t }) {
(0, F.useSyncExternalStore)(e.store.subscribe, e.store.version);
let n = e.store.value, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(t.tab), l = () => {
let [e, t] = [i.current, o.current];
@@ -71090,7 +71065,7 @@ function QAe({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: XAe,
+ onKeyDown: YAe,
onClick: (e) => {
e.target === e.currentTarget && v1();
},
@@ -71104,13 +71079,13 @@ function QAe({ host: e, view: t }) {
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
id: "settingsTitle",
children: d1[t.tab][0]
- }), /* @__PURE__ */ (0, I.jsx)(mV, {
+ }), /* @__PURE__ */ (0, I.jsx)(hV, {
id: "settingsClose",
label: "关闭设置",
onPress: () => v1()
})]
}),
- /* @__PURE__ */ (0, I.jsx)(ZAe, {
+ /* @__PURE__ */ (0, I.jsx)(XAe, {
tab: t.tab,
epoch: d,
configurable: t.configurable,
@@ -71179,7 +71154,7 @@ function QAe({ host: e, view: t }) {
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(PAe, { host: e }),
+ /* @__PURE__ */ (0, I.jsx)(NAe, { host: e }),
/* @__PURE__ */ (0, I.jsxs)("section", {
"data-setting-block": "",
"aria-labelledby": "sidebarOrderTitle",
@@ -71191,18 +71166,18 @@ function QAe({ host: e, view: t }) {
"data-setting-card": "",
children: /* @__PURE__ */ (0, I.jsx)("section", {
"data-sidebar-setting": "",
- children: /* @__PURE__ */ (0, I.jsx)(LAe, { host: e })
+ children: /* @__PURE__ */ (0, I.jsx)(IAe, { host: e })
})
})]
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(eje, {
+ /* @__PURE__ */ (0, I.jsx)($Ae, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsx)(tje, {
+ /* @__PURE__ */ (0, I.jsx)(eje, {
host: e,
tab: t.tab,
epoch: d
@@ -71211,7 +71186,7 @@ function QAe({ host: e, view: t }) {
index: 3,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, I.jsx)(aje, {
+ /* @__PURE__ */ (0, I.jsx)(ije, {
host: e,
epoch: d
}),
@@ -71233,7 +71208,7 @@ function QAe({ host: e, view: t }) {
title: "口味与记录",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(vL, {
+ children: /* @__PURE__ */ (0, I.jsx)(bL, {
variant: "secondary",
href: "/taste",
onClick: () => v1(!1),
@@ -71261,7 +71236,7 @@ function QAe({ host: e, view: t }) {
})
});
}
-function $Ae(e, t) {
+function QAe(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = Ks("arrow-up", "arrow-down", "a", {
@@ -71271,7 +71246,7 @@ function $Ae(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function eje({ host: e, tab: t, epoch: n }) {
+function $Ae({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save(), a = r.defaultSort === "seed", o = r.defaultSortDirection === "asc";
return /* @__PURE__ */ (0, I.jsxs)(x1, {
index: 1,
@@ -71303,7 +71278,7 @@ function eje({ host: e, tab: t, epoch: n }) {
children: [/* @__PURE__ */ (0, I.jsx)(i1, {
id: "defaultSortSetting",
label: "默认排序",
- options: RAe,
+ options: LAe,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
@@ -71312,7 +71287,7 @@ function eje({ host: e, tab: t, epoch: n }) {
}), /* @__PURE__ */ (0, I.jsx)(i1, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: zAe,
+ options: RAe,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -71320,7 +71295,7 @@ function eje({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => $Ae(e, o)
+ decorate: (e) => QAe(e, o)
})]
})
}),
@@ -71361,7 +71336,7 @@ function eje({ host: e, tab: t, epoch: n }) {
label: "悬停预览延迟",
value: r.hoverDelaySeconds,
onApply: (t) => {
- r.hoverDelaySeconds = Oj(t, 0, 60, 5), i(), e.changed("hoverDelay");
+ r.hoverDelaySeconds = kj(t, 0, 60, 5), i(), e.changed("hoverDelay");
}
}, n)
})
@@ -71370,14 +71345,14 @@ function eje({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "播放"
}),
- /* @__PURE__ */ (0, I.jsx)(ije, {
+ /* @__PURE__ */ (0, I.jsx)(rje, {
host: e,
epoch: n
})
]
});
}
-function tje({ host: e, tab: t, epoch: n }) {
+function eje({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
return /* @__PURE__ */ (0, I.jsxs)(x1, {
index: 2,
@@ -71387,7 +71362,7 @@ function tje({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品显示"
}),
- /* @__PURE__ */ (0, I.jsx)(nje, {
+ /* @__PURE__ */ (0, I.jsx)(tje, {
host: e,
epoch: n
}),
@@ -71397,7 +71372,7 @@ function tje({ host: e, tab: t, epoch: n }) {
id: "javImageSetting",
name: "jav-image",
legend: "默认图片",
- options: BAe,
+ options: zAe,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
@@ -71421,7 +71396,7 @@ function tje({ host: e, tab: t, epoch: n }) {
label: "新作显示数量",
value: r.feedLimit,
onApply: (t) => {
- r.feedLimit = Oj(t, 1, 100, 12), i(), e.changed("feedLimit");
+ r.feedLimit = kj(t, 1, 100, 12), i(), e.changed("feedLimit");
}
}, n)
})
@@ -71434,7 +71409,7 @@ function tje({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- VAe.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(rje, {
+ BAe.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(nje, {
host: e,
id: t,
settingKey: n,
@@ -71444,7 +71419,7 @@ function tje({ host: e, tab: t, epoch: n }) {
]
});
}
-function nje({ host: e, epoch: t }) {
+function tje({ host: e, epoch: t }) {
let n = Ft({
queryKey: QY,
queryFn: ({ signal: e }) => rX(e),
@@ -71474,12 +71449,12 @@ function nje({ host: e, epoch: t }) {
}));
}
})
- }), n.isError ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ }), n.isError ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
children: "未取得数据库中的名称偏好,请重新打开设置。"
}) : null] });
}
-function rje({ host: e, id: t, settingKey: n, label: r, title: i }) {
+function nje({ host: e, id: t, settingKey: n, label: r, title: i }) {
let a = iX(), [o, s] = (0, F.useState)(null), c = (0, F.useRef)(null), l = e.store.value, u = (t) => {
s(t), Xc(c.current), a.mutate({ [n]: t }, {
onSuccess: (i) => {
@@ -71504,7 +71479,7 @@ function rje({ host: e, id: t, settingKey: n, label: r, title: i }) {
})]
});
}
-function ije({ host: e, epoch: t }) {
+function rje({ host: e, epoch: t }) {
let n = e.store.value, r = () => e.store.save();
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsx)(S1, {
@@ -71539,7 +71514,7 @@ function ije({ host: e, epoch: t }) {
})
] });
}
-function aje({ host: e, epoch: t }) {
+function ije({ host: e, epoch: t }) {
let n = e.store.value, r = iX();
return /* @__PURE__ */ (0, I.jsx)(C1, {
title: "搜索记录数量",
@@ -71550,14 +71525,14 @@ function aje({ host: e, epoch: t }) {
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = Oj(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = kj(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
}
}, t)
})
});
}
// src/react/sidebar/use-sidebar-reorder.ts
-function oje(e, t, n, r) {
+function aje(e, t, n, r) {
let [i, a] = (0, F.useState)(null), [o, s] = (0, F.useState)(""), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(!1), d = (0, F.useRef)({
order: t,
commit: n,
@@ -71693,7 +71668,7 @@ function oje(e, t, n, r) {
};
}
// src/react/sidebar/sidebar-island.tsx
-var w1 = "__home__", sje = {
+var w1 = "__home__", oje = {
creator: 26,
tag: 30,
tech: 16
@@ -71705,7 +71680,7 @@ var w1 = "__home__", sje = {
},
epoch: 0
}, O1 = /* @__PURE__ */ new Set();
-function cje(e) {
+function sje(e) {
return O1.add(e), () => {
O1.delete(e);
};
@@ -71713,7 +71688,7 @@ function cje(e) {
function k1() {
for (let e of [...O1]) e();
}
-var lje = {
+var cje = {
render(e) {
D1 = {
...D1,
@@ -71727,7 +71702,7 @@ var lje = {
}, (0, Rt.flushSync)(k1);
}
};
-function uje(e) {
+function lje(e) {
return E1 = e, D1 = {
...D1,
props: {
@@ -71735,26 +71710,26 @@ function uje(e) {
filters: {},
latest: null
}
- }, lje;
+ }, cje;
}
-function dje() {
- let e = (0, F.useSyncExternalStore)(cje, () => D1);
- return E1 ? /* @__PURE__ */ (0, I.jsx)(fje, {
+function uje() {
+ let e = (0, F.useSyncExternalStore)(sje, () => D1);
+ return E1 ? /* @__PURE__ */ (0, I.jsx)(dje, {
host: E1,
props: e.props,
epoch: e.epoch
}) : null;
}
-function fje({ host: e, props: t, epoch: n }) {
+function dje({ host: e, props: t, epoch: n }) {
let r = (0, F.useSyncExternalStore)(e.store.subscribe, e.store.version);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsx)("div", { "data-sidebar-head": "" }),
- /* @__PURE__ */ (0, I.jsx)(pje, {
+ /* @__PURE__ */ (0, I.jsx)(fje, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, I.jsx)(hje, {
+ t.content ? /* @__PURE__ */ (0, I.jsx)(mje, {
host: e,
content: t.content,
filters: t.filters,
@@ -71762,8 +71737,8 @@ function fje({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function pje({ host: e, epoch: t, version: n }) {
- let r = c1(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = gL(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || w1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function fje({ host: e, epoch: t, version: n }) {
+ let r = c1(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = vL(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || w1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
(0, F.useEffect)(() => {
let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());
[
@@ -71782,7 +71757,7 @@ function pje({ host: e, epoch: t, version: n }) {
i.disconnect(), cancelAnimationFrame(a), document.removeEventListener("board:sidebar", o);
};
}, [e, d]);
- let f = oje(c, i, r, () => requestAnimationFrame(d)), p = e.scroll.parentElement;
+ let f = aje(c, i, r, () => requestAnimationFrame(d)), p = e.scroll.parentElement;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-sidebar-nav": "",
ref: c,
@@ -71818,7 +71793,7 @@ function pje({ host: e, epoch: t, version: n }) {
alt: "",
decoding: "async",
draggable: !1
- }) : /* @__PURE__ */ (0, I.jsx)(VF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ }) : /* @__PURE__ */ (0, I.jsx)(HF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
}, t || w1);
}),
f.hint ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -71841,7 +71816,7 @@ function pje({ host: e, epoch: t, version: n }) {
}), p) : null] });
}
var A1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function mje(e) {
+function pje(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -71855,7 +71830,7 @@ function mje(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function hje({ host: e, content: t, filters: n, latest: r }) {
+function mje({ host: e, content: t, filters: n, latest: r }) {
let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}:${(t.providers || []).map((e) => e.value).join(",")}:${n.provider ?? ""}:${+!!t.duration}:${n.dur_min ?? ""}:${n.dur_max ?? ""}`;
(0, F.useLayoutEffect)(() => {
t.kind === "catalog" && ec(e.scroll, "drawer");
@@ -71864,8 +71839,8 @@ function hje({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? gje(e, t.facets, n, r, i) : _je(e, t, n), o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(vje, {
+ let a = t.kind === "catalog" ? hje(e, t.facets, n, r, i) : gje(e, t, n), o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(_je, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -71874,8 +71849,8 @@ function hje({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function gje(e, t, n, r, i) {
- let a = mje(r), o = (t, r, i) => {
+function hje(e, t, n, r, i) {
+ let a = pje(r), o = (t, r, i) => {
if (!t.length) return null;
let o = A1(n, r);
return /* @__PURE__ */ (0, I.jsx)(N1, {
@@ -71900,12 +71875,12 @@ function gje(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, I.jsx)(bje, {
+ body: /* @__PURE__ */ (0, I.jsx)(yje, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: sje[d],
+ limit: oje[d],
filterKey: l,
selected: f,
counts: a,
@@ -71944,7 +71919,7 @@ function gje(e, t, n, r, i) {
} : null
];
}
-function _je(e, t, n) {
+function gje(e, t, n) {
let r = t.providers || [], i = A1(n, "provider"), a = new Set(t.selected);
return [
r.length ? {
@@ -71991,7 +71966,7 @@ function j1(e, t) {
} catch {}
return n === null ? t : n === "open";
}
-function vje({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+function _je({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(() => j1(e, n)), u = (0, F.useRef)(!1);
(0, F.useLayoutEffect)(() => {
let t = o.current, r = s.current;
@@ -72017,7 +71992,7 @@ function vje({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
"aria-expanded": c,
"aria-controls": f,
onClick: d,
- children: [/* @__PURE__ */ (0, I.jsx)(VF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -72038,8 +72013,8 @@ function vje({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
});
}
var M1 = (0, F.createContext)(() => {});
-function yje({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(VF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
+function vje({ dot: e }) {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(HF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
@@ -72062,7 +72037,7 @@ function N1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
title: e.offline || e.label,
onClick: () => o(t, e.value, n),
children: [
- /* @__PURE__ */ (0, I.jsx)(yje, { dot: e.dot }),
+ /* @__PURE__ */ (0, I.jsx)(vje, { dot: e.dot }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -72077,7 +72052,7 @@ function N1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
})
});
}
-function bje({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+function yje({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
let u = (0, F.useContext)(M1), [d, f] = (0, F.useState)(null), [p, m] = (0, F.useState)(e);
p !== e && (m(e), f(null));
let h = (0, F.useRef)(null), g = (0, F.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;
@@ -72118,7 +72093,7 @@ function bje({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, I.jsx)(VF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(HF, { name: "chevron-down" })
}) : null] });
}
function P1({ rows: e, host: t, selected: n, badges: r }) {
@@ -72227,11 +72202,11 @@ function L1() {
</div></div>`;
}
// src/react/settings/library-policy-copy.ts
-var R1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", xje = [
+var R1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", bje = [
"自动补全",
"仅使用本地资料",
"自定义"
-], Sje = [
+], xje = [
[
"读本地 NFO 和图片",
"✓",
@@ -72262,7 +72237,7 @@ var R1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
"—",
"可选"
]
-], Cje = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", z1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", B1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", V1 = "只填域名,留空用默认地址", wje = [
+], Sje = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", z1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", B1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", V1 = "只填域名,留空用默认地址", Cje = [
{
provider: "coomer",
label: "Coomer",
@@ -72352,7 +72327,7 @@ var R1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
label: "SubscribeStar",
requirement: "none"
}
-], H1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", Tje = "peach.configuration.shape.v1";
+], H1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", wje = "peach.configuration.shape.v1";
function U1() {
try {
let e = JSON.parse(localStorage.getItem("peach.configuration.shape.v1") || "{}");
@@ -72361,11 +72336,11 @@ function U1() {
return {};
}
}
-function Eje(e, t) {
+function Tje(e, t) {
try {
let n = U1();
if (JSON.stringify(n[e]) === JSON.stringify(t)) return;
- localStorage.setItem(Tje, JSON.stringify({
+ localStorage.setItem(wje, JSON.stringify({
...n,
[e]: t
}));
@@ -72376,13 +72351,13 @@ var W1 = (e) => U1()[e], G1 = (e) => e === !0, K1 = (e, t) => Number.isInteger(e
variant: t,
size: n,
attrs: J1
-}), t0 = (e, t = "") => `<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${t ? `<div class="mr-auto min-w-0 text-body-2-regular text-text-secondary">${t}</div>` : ""}${e}</div>`, n0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, Dje = (e, t, n) => {
+}), t0 = (e, t = "") => `<div class="-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3">${t ? `<div class="mr-auto min-w-0 text-body-2-regular text-text-secondary">${t}</div>` : ""}${e}</div>`, n0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, Eje = (e, t, n) => {
let r = `<p class="w-full px-3 text-body-2-medium text-text-secondary">${n ? `<span class="inline-flex items-center gap-1.5">${$1()}${e}</span>` : e}</p>`;
return t ? `<div class="flex w-full flex-wrap items-center justify-between gap-2"><div class="min-w-40 flex-1">${r}</div><div class="flex min-w-0 max-w-full">${t}</div></div>` : r;
-}, r0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${Dje(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? t0(n, i) : ""}</div></section>`, i0 = (e, t, n) => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div>${n}</div>`, a0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => i0(e, t, `<span class="skeleton ${n}"></span>`), o0 = (e, t = "", n = "4em") => i0(e, t, Y1(n)), s0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, c0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, l0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${X1()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, u0 = (e) => `<div class="flex flex-col gap-1">${c0(e)}${As(Y1("8em"))}</div>`, d0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${Z1("16px", "16px")}${e}</span>`, f0 = (e) => `<span class="inline-flex items-center gap-1">${$1()}${e}</span>`, p0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Ts("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, Oje = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), m0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${Oje.has(e) ? Y1("100%") + Y1("80%") + Y1("6em") : Y1("6em")}</dd></div>`).join("")}</dl>`, kje = wje;
-function Aje(e = W1("credentials")) {
+}, r0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${Eje(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? t0(n, i) : ""}</div></section>`, i0 = (e, t, n) => `<div class="flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5 border-b border-separator-border last:border-b-0"><div class="flex min-w-0 flex-col"><p class="text-body-regular text-text-primary">${e}</p>${t ? `<p class="text-body-2-regular text-text-secondary">${t}</p>` : ""}</div>${n}</div>`, a0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => i0(e, t, `<span class="skeleton ${n}"></span>`), o0 = (e, t = "", n = "4em") => i0(e, t, Y1(n)), s0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, c0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, l0 = (e, t = "") => `<div class="flex w-full flex-col items-start gap-1"><span class="flex items-center gap-0.5 text-body-medium text-text-primary">${e}</span>${X1()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, u0 = (e) => `<div class="flex flex-col gap-1">${c0(e)}${As(Y1("8em"))}</div>`, d0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${Z1("16px", "16px")}${e}</span>`, f0 = (e) => `<span class="inline-flex items-center gap-1">${$1()}${e}</span>`, p0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Ts("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, Dje = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), m0 = (e) => `<dl class="ui-settings-facts flex flex-col">${e.map((e) => `<div class="flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0"><dt class="flex max-w-1/2 min-w-0 shrink-0 items-center gap-2 text-body-regular text-text-secondary">${e}</dt><dd class="flex min-w-0 flex-wrap items-center justify-end gap-2 text-body-regular text-text-primary">${Dje.has(e) ? Y1("100%") + Y1("80%") + Y1("6em") : Y1("6em")}</dd></div>`).join("")}</dl>`, Oje = Cje;
+function kje(e = W1("credentials")) {
let t = new Set(q1(e?.done, 64, String));
- return kje.map((e) => {
+ return Oje.map((e) => {
let n = t.has(e.provider);
return {
...e,
@@ -72391,19 +72366,19 @@ function Aje(e = W1("credentials")) {
};
});
}
-function jje(e) {
+function Aje(e) {
let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = Q1() + (n && !e.done ? t.map(() => Q1("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${Z1("14px", "14px")}<b class="min-w-0 text-body-medium wrap-anywhere text-text-primary">${z(e.label)}</b>${r}</span>`;
if (!n) return `<div class="flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}${e.requirement === "blocked" && e.why ? s0(z(e.why)) : ""}</div>`;
let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + s0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? s0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => l0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${e0("保存配置")}</div>${p0("凭据文件")}</div></div>` : "";
return `<div class="flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4">${i}<div>${p0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
}
function h0() {
- let e = Aje(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
+ let e = kje(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
return r0("来源凭据", n0(`<div class="flex flex-col gap-4">${[
["可配置凭据", e.filter((e) => e.requirement !== "none" && e.requirement !== "blocked")],
["不需要凭据", e.filter((e) => e.requirement === "none")],
["暂不支持", e.filter((e) => e.requirement === "blocked")]
- ].filter(([, e]) => e.length).map(([e, t]) => `<div class="flex flex-col gap-2"><h4 class="text-body-medium text-text-secondary">${e}</h4><div class="min-w-0 border border-separator-border bg-background-primary-default rounded-surface flex flex-col overflow-hidden">${t.map(jje).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? Y1("5em") : "" });
+ ].filter(([, e]) => e.length).map(([e, t]) => `<div class="flex flex-col gap-2"><h4 class="text-body-medium text-text-secondary">${e}</h4><div class="min-w-0 border border-separator-border bg-background-primary-default rounded-surface flex flex-col overflow-hidden">${t.map(Aje).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? Y1("5em") : "" });
}
function g0() {
let e = q1(W1("indexers")?.open, 20, G1).map((e) => `<div class="min-w-0 border-t border-separator-border pt-2"><span class="flex w-full min-w-0 items-center gap-1 text-body-2-medium">${Ts("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${Y1("6em")}${Y1("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${l0("名称")}${l0("Torznab 地址")}${l0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${d0("启用")}${e0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
@@ -72418,25 +72393,25 @@ function y0() {
let e = W1("cloudProxy"), t = q1(e?.accounts, 12, (e) => Array.isArray(e) ? [G1(e[0]), G1(e[1])] : [!1, !1]), n = K1(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${c0(f0(Y1("6em")))}${s0(Y1("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${c0(f0(Y1("8em")))}${s0(Y1("50%"))}${v0("数据代理", e)}${v0("API 代理", t)}<div class="flex justify-end">${e0("保存配置")}</div></div>`).join("") : s0(Y1("60%"));
return r0("CloudDrive 代理", n0(`${s0(H1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), e0("重新读取", "secondary"));
}
-var b0 = (e, t, n) => `<div class="flex min-w-0 flex-col gap-1 ${n}"><span class="flex items-center gap-0.5 text-body-medium text-text-primary" aria-hidden="true">${e}</span>${t}</div>`, Mje = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">
+var b0 = (e, t, n) => `<div class="flex min-w-0 flex-col gap-1 ${n}"><span class="flex items-center gap-0.5 text-body-medium text-text-primary" aria-hidden="true">${e}</span>${t}</div>`, jje = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">
<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${X1()}</span>${Os({
glyph: "folder-search",
variant: "secondary",
attrs: J1
})}</div>
<div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${b0("来源", As(Y1("6em")), "w-full @lg:w-60")}${b0("读取策略", As(Y1("4em")), "w-full @lg:w-32")}${e > 1 ? b0("移到媒体库", As(Y1("4em")), "w-full @lg:w-48") : ""}</div></div>
- </div>`, Nje = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
+ </div>`, Mje = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
<div data-library-head>${Os({
label: "自动识别",
variant: "secondary",
attrs: J1
})}${X1()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${As(Y1("4em"), { prefix: "处理方式" })}</div>
- <div data-library-folders>${Mje(t).repeat(e)}<div class="flex">${Os({
+ <div data-library-folders>${jje(t).repeat(e)}<div class="flex">${Os({
label: "添加文件夹",
variant: "secondary",
attrs: J1
-})}</div></div></div>`, Pje = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${R1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, Fje = "<p class=\"text-body-2-regular text-text-secondary\">读取策略选「代理保护」时,会限制自动读取视频。</p><div class=\"flex flex-col gap-3\"><span class=\"flex items-center gap-1 text-body-2-medium text-text-secondary\">CloudDrive 设置帮助</span></div>";
-function Ije(e = W1("media")) {
+})}</div></div></div>`, Nje = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${R1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, Pje = "<p class=\"text-body-2-regular text-text-secondary\">读取策略选「代理保护」时,会限制自动读取视频。</p><div class=\"flex flex-col gap-3\"><span class=\"flex items-center gap-1 text-body-2-medium text-text-secondary\">CloudDrive 设置帮助</span></div>";
+function Fje(e = W1("media")) {
let t = q1(e?.folders, 12, (e) => K1(e, 50)).filter(Boolean);
return t.length ? {
folders: t,
@@ -72446,7 +72421,7 @@ function Ije(e = W1("media")) {
cloud: !1
};
}
-function Lje() {
+function Ije() {
let e = W1("discovery"), t = G1(e?.enabled), n = t && G1(e?.cloud), r = n && G1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${X1()}</span>${As(Y1("4em"), { prefix: "对应目录" })}${Os({
glyph: "trash",
variant: "secondary",
@@ -72454,13 +72429,13 @@ function Lje() {
})}</div>`;
return r0("自动发现新文件", n0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${Q1()}</div>`) + a0("发现新文件后自动入库", t ? Y1("10em") : "") + a0("监视本机文件夹", t && G1(e?.watchLocal) ? Y1("12em") : "") + a0("接收 CloudDrive2 通知", "网盘目录有变化时由 CloudDrive2 推送过来。") + (n ? i0("Webhook 配置", Y1("20em"), "") : "") + (r ? n0(p0("查看配置"), !0) : "") + (n ? n0(`<div class="flex flex-col gap-3">${c0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(K1(e?.prefixes, 20))}</div><div>${e0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? e0("更换密钥", "secondary") : "") + e0("保存配置"));
}
-var Rje = () => {
- let e = Ije();
- return r0("媒体库与目录", n0(`${Pje}<div class="flex flex-col gap-4">${e.folders.map((t) => Nje(t, e.folders.length)).join("")}</div>
+var Lje = () => {
+ let e = Fje();
+ return r0("媒体库与目录", n0(`${Nje}<div class="flex flex-col gap-4">${e.folders.map((t) => Mje(t, e.folders.length)).join("")}</div>
<div class="self-start">${e0("添加媒体库", "secondary")}</div>
<p class="text-body-2-regular text-text-secondary">${z1}</p>
- ${e.cloud ? Fje : ""}<span class="text-body-medium text-text-primary">${Y1("15em")}</span>`), e0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? y0() : "") + Lje() + r0("番号识别规则", n0(`${Y1("90%")}${Y1("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), e0("保存配置")) + r0("视频预览", a0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + a0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + a0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
-}, zje = () => `<div>${e0("采集来源与登录状态", "secondary")}</div>` + h0() + r0("关注采集", i0("自动检查更新", "", "<span class=\"flex items-center gap-2\"><span class=\"skeleton ui-configuration-skeleton-toggle\"></span><span class=\"skeleton ui-configuration-skeleton-input\" style=\"width:96px\"></span></span>") + o0("订阅源拉取") + a0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + o0("头像刷新", "重新获取关注创作者的头像。") + o0("favicon 刷新", "重新获取来源站点的图标。")) + g0() + r0("作品资料站点", n0(`<p class="text-body-2-regular text-text-secondary">${B1}</p>${l0(f0("JavDB 地址"), V1)}${l0(f0("MISSAV 地址"), V1)}`), e0("保存配置")), Bje = () => {
+ ${e.cloud ? Pje : ""}<span class="text-body-medium text-text-primary">${Y1("15em")}</span>`), e0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? y0() : "") + Ije() + r0("番号识别规则", n0(`${Y1("90%")}${Y1("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), e0("保存配置")) + r0("视频预览", a0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + a0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + a0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
+}, Rje = () => `<div>${e0("采集来源与登录状态", "secondary")}</div>` + h0() + r0("关注采集", i0("自动检查更新", "", "<span class=\"flex items-center gap-2\"><span class=\"skeleton ui-configuration-skeleton-toggle\"></span><span class=\"skeleton ui-configuration-skeleton-input\" style=\"width:96px\"></span></span>") + o0("订阅源拉取") + a0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + o0("头像刷新", "重新获取关注创作者的头像。") + o0("favicon 刷新", "重新获取来源站点的图标。")) + g0() + r0("作品资料站点", n0(`<p class="text-body-2-regular text-text-secondary">${B1}</p>${l0(f0("JavDB 地址"), V1)}${l0(f0("MISSAV 地址"), V1)}`), e0("保存配置")), zje = () => {
let e = W1("downloads"), t = G1(e?.pikpak), n = G1(e?.pikpakRoots) ? u0(f0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${c0(f0("PikPak 根目录对应的媒体目录"))}${s0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = G1(e?.cloud) ? r0("云下载", n0(l0("CloudDrive2 地址") + l0("CloudDrive2 API 令牌", "需要离线任务权限。") + (G1(e?.has115) ? l0(f0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? l0(f0("PikPak 目标目录"), "目录要已经存在。") + n : "") + l0("等待上限(小时)", Y1("14em"))), e0("检查连接", "secondary") + e0("保存配置")) : "", i = G1(e?.pikpakLoggedIn);
return r + (t ? r0("PikPak 账号", i ? m0(["账号", Y1("4em")]) : n0(l0("账号") + l0("密码") + d0("保存密码,登录过期时自动重新登录")), i ? e0("登出", "secondary") : (G1(e?.browserLogin) ? e0("用浏览器登录", "secondary") : "") + e0("登录"), {
aside: Q1(),
@@ -72474,24 +72449,24 @@ var Rje = () => {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function Vje(e) {
+function Bje(e) {
let t = e === "locked" ? "" : l0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + l0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
return (x0[e] ? s0(x0[e]) : "") + (e === "open" ? Z1("100%", "64px") : "") + (e === "password" || e === "legacy" ? d0("关闭访问密码") : "") + (e === "password" ? l0("当前访问密码 *") : "") + t;
}
-var Hje = () => {
+var Vje = () => {
let e = W1("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = G1(e?.tunnelNamed), r = (n && G1(e?.tunnelNamedMode) ? s0(S0.named) + l0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + l0("隧道令牌", Y1("16em")) : s0(S0.quick)) + (G1(e?.tunnelNote) ? Z1("100%", "64px") : ""), i = K1(e?.addresses, 3), a = Array.from({ length: i }, (e, t) => `<div class="flex min-w-0 flex-wrap items-end gap-2"><div class="min-w-0 flex-1">${l0([
"本机地址",
"手机连接地址",
"备用 IP 地址"
][t])}</div>${e0("复制地址", "secondary")}</div>`).join("");
- return (i || G1(e?.port) ? r0("访问地址", n0(a + (i ? Z1("100%", "40px") : "") + (G1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${c0("谁可以访问")}${Z1("min(100%, 20em)", "36px")}</div>` + (G1(e?.lan) ? l0("局域网访问地址") : "") : "") + (G1(e?.port) ? l0("端口") : "")), G1(e?.port) ? e0("保存配置") : "", G1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + r0("访问密码", n0(Vje(t)), t === "locked" ? "" : e0("保存配置")) + r0("Cloudflare 公网入口", n0((n ? Z1("10.5em", "36px") : "") + r), e0("启动公网入口", n ? "secondary" : "primary") + (n ? e0("保存配置") : ""), { aside: Q1() }) + r0("Peach 代理", a0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + (G1(e?.proxyAddress) ? n0(l0("代理地址"), !0) : ""), e0("保存配置"));
-}, Uje = [
+ return (i || G1(e?.port) ? r0("访问地址", n0(a + (i ? Z1("100%", "40px") : "") + (G1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${c0("谁可以访问")}${Z1("min(100%, 20em)", "36px")}</div>` + (G1(e?.lan) ? l0("局域网访问地址") : "") : "") + (G1(e?.port) ? l0("端口") : "")), G1(e?.port) ? e0("保存配置") : "", G1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + r0("访问密码", n0(Bje(t)), t === "locked" ? "" : e0("保存配置")) + r0("Cloudflare 公网入口", n0((n ? Z1("10.5em", "36px") : "") + r), e0("启动公网入口", n ? "secondary" : "primary") + (n ? e0("保存配置") : ""), { aside: Q1() }) + r0("Peach 代理", a0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + (G1(e?.proxyAddress) ? n0(l0("代理地址"), !0) : ""), e0("保存配置"));
+}, Hje = [
"版本",
"操作系统",
"数据目录",
"设置文件",
"日志目录"
-], Wje = () => {
+], Uje = () => {
let e = W1("maintenance"), t = [
"当前版本",
"安装方式",
@@ -72502,23 +72477,23 @@ var Hje = () => {
return r0("检查更新", m0(t) + (n ? n0(s0(Y1("50%")).repeat(n), !0) : ""), e0("检查更新"), {
aside: Q1("4em"),
status: Y1("5em")
- }) + r0("自动更新", a0("自动检查新版本") + a0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + a0("检查频率", G1(e?.autoUpdateHelp) ? Y1("12em") : "", "ui-configuration-skeleton-select"), e0("保存配置")) + r0("开机自启", a0("开机后启动 Peach") + a0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + a0("在桌面创建快捷方式", G1(e?.desktopNote) ? Y1("12em") : "") + (G1(e?.startupNote) ? n0(s0(Y1("60%")), !0) : ""), e0("保存配置")) + r0("视频播放", a0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + r0("存储空间", m0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => i0(Y1("6em"), "", Y1("4em"))).join("") : n0(s0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? n0(s0(Y1("80%")).repeat(i), !0) : ""), e0("更改位置", "secondary") + e0(r ? "重新统计" : "统计占用")) + (c || l ? r0("数据上传", c + l) : "") + r0("运行信息", m0(a.length ? a : Uje)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${i0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", e0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? r0("卸载 Peach", (G1(e?.uninstallHelp) ? n0(s0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + a0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + n0(p0("数据目录"), !0), e0("卸载 Peach"), { status: Y1("16em") }) : "");
+ }) + r0("自动更新", a0("自动检查新版本") + a0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + a0("检查频率", G1(e?.autoUpdateHelp) ? Y1("12em") : "", "ui-configuration-skeleton-select"), e0("保存配置")) + r0("开机自启", a0("开机后启动 Peach") + a0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + a0("在桌面创建快捷方式", G1(e?.desktopNote) ? Y1("12em") : "") + (G1(e?.startupNote) ? n0(s0(Y1("60%")), !0) : ""), e0("保存配置")) + r0("视频播放", a0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + r0("存储空间", m0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => i0(Y1("6em"), "", Y1("4em"))).join("") : n0(s0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? n0(s0(Y1("80%")).repeat(i), !0) : ""), e0("更改位置", "secondary") + e0(r ? "重新统计" : "统计占用")) + (c || l ? r0("数据上传", c + l) : "") + r0("运行信息", m0(a.length ? a : Hje)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${i0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", e0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? r0("卸载 Peach", (G1(e?.uninstallHelp) ? n0(s0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + a0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + n0(p0("数据目录"), !0), e0("卸载 Peach"), { status: Y1("16em") }) : "");
};
-function Gje(e) {
+function Wje(e) {
switch (e) {
case "系统诊断": return L1();
- case "来源与订阅": return zje();
- case "下载渠道": return Bje();
- case "网络与访问": return Hje();
- case "应用与维护": return Wje();
- default: return Rje();
+ case "来源与订阅": return Rje();
+ case "下载渠道": return zje();
+ case "网络与访问": return Vje();
+ case "应用与维护": return Uje();
+ default: return Lje();
}
}
-function Kje(e = "媒体库与入库") {
- return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(kf).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${Gje(e)}</div></div></div>`;
+function Gje(e = "媒体库与入库") {
+ return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(kf).map((t) => `<button type="button" tabindex="-1" aria-selected="${t === e}">${t}</button>`).join("")}</div>`}<div class="flex min-w-0 flex-col gap-6">${Wje(e)}</div></div></div>`;
}
// src/filter-controls-skeleton.ts
-var C0 = (e) => e.startsWith("ri-") ? `<svg class="size-4 shrink-0" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><use href="#${e}"/></svg>` : Ts(e, "size-4 shrink-0"), w0 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", T0 = (e, t, n) => `<span data-entity-layout="" class="${oU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${sU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${w0}>${C0(r)}</span>`).join("")}</span>`;
+var C0 = (e) => e.startsWith("ri-") ? `<svg class="size-4 shrink-0" viewBox="0 0 24 24" fill="currentColor" stroke="none" aria-hidden="true"><use href="#${e}"/></svg>` : Ts(e, "size-4 shrink-0"), w0 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", T0 = (e, t, n) => `<span data-entity-layout="" class="${sU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${cU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${w0}>${C0(r)}</span>`).join("")}</span>`;
function E0(e, t, { folders: n = !0 } = {}) {
let r = cG(), i = new URLSearchParams(location.search), a = t && r === "cards" ? T0(t.label, t.value, t.options) : "", o = n ? `<button type="button" data-folder-mode-toggle="" aria-label="文件夹模式" aria-pressed="${i.get("browse") === "folders" || !!i.get("folder")}" ${w0}>${C0("ri-folder-3-line")}</button>` : "";
return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${w0}>${C0("shuffle")}</button>${a}${T0("馆藏显示方式", r, [[
@@ -72537,13 +72512,13 @@ var D0 = 64, O0 = (e) => e.replace(/[&<>"]/g, (e) => ({
"<": "&lt;",
">": "&gt;",
"\"": "&quot;"
-})[e]), qje = (e) => e.repeat(D0), k0 = (e) => qje(`<span data-catalog-placeholder="${e}" aria-hidden="true"><span></span><span>&nbsp;</span></span>`);
-function Jje(e, t, n) {
+})[e]), Kje = (e) => e.repeat(D0), k0 = (e) => Kje(`<span data-catalog-placeholder="${e}" aria-hidden="true"><span></span><span>&nbsp;</span></span>`);
+function qje(e, t, n) {
let r = e.map((e) => `<a href="${O0(e.href)}" data-catalog-view="${O0(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${O0(e.label)}</a>`).join(""), i = LG();
return `<div class="peach-react"><div class="contents" data-catalog-root="" data-loading=""><div data-catalog-tiers="" aria-busy="true"${i.performers || i.studios ? "" : " hidden"}>` + (i.performers ? `<div data-catalog-tier="performers" data-skeleton="tiers">${k0("performer")}</div>` : "") + (i.studios ? `<div data-catalog-tier="studios">${k0("studio")}</div>` : "") + `</div><div role="group" aria-label="筛选与排序" data-filter-glass="" data-glass-pane="" data-filter-frame="" data-catalog-frame="" class="sticky top-topbar z-10 mb-5.5 flex flex-col mx-4"><div role="group" aria-label="视图与标签" data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible"><div data-catalog-scroll=""><div role="group" aria-label="视图" data-catalog-views="">${r}<span data-entity-sep="" aria-hidden="true"></span></div><div data-catalog-tags=""><span data-catalog-placeholder="tag" aria-hidden="true">` + "<span></span>".repeat(D0) + `</span></div></div></div><div data-filter-row="bottom" aria-busy="true" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><span data-catalog-summary=""><span data-catalog-readout=""><span data-skeleton="count" aria-hidden="true" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>${Es()}</span>` + (n ? E0(n.sorts, n.layout) : "") + "</div></div></div></div>";
}
// src/react/jav/release-table-columns.ts
-var A0 = "peach.table.jav-releases.widths.v1", j0 = "peach.table.jav-releases.visibility.v1", Yje = {
+var A0 = "peach.table.jav-releases.widths.v1", j0 = "peach.table.jav-releases.visibility.v1", Jje = {
name: {
width: 300,
min: 240,
@@ -72589,7 +72564,7 @@ var A0 = "peach.table.jav-releases.widths.v1", j0 = "peach.table.jav-releases.vi
min: 112,
max: 320
}
-}, Xje = {
+}, Yje = {
name: "作品",
people: "艺人",
studio: "厂牌",
@@ -72599,7 +72574,7 @@ var A0 = "peach.table.jav-releases.widths.v1", j0 = "peach.table.jav-releases.vi
score: "来源评分",
release: "发行时间",
actions: "操作"
-}, Zje = {
+}, Xje = {
code: "code",
dur: "duration",
score: "source_score",
@@ -72616,17 +72591,17 @@ var A0 = "peach.table.jav-releases.widths.v1", j0 = "peach.table.jav-releases.vi
"code"
].map((e) => ({
id: e,
- label: Xje[e],
- ...Yje[e],
+ label: Yje[e],
+ ...Jje[e],
flex: e === "name",
required: e === "name",
visible: e !== "code"
}));
-function Qje() {
+function Zje() {
return IJ(M0, A0, j0);
}
// src/jav-skeleton.ts
-var N0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, $je = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, P0 = "w-full min-w-0";
+var N0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, Qje = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, P0 = "w-full min-w-0";
function F0() {
return [
"w-20",
@@ -72637,10 +72612,10 @@ function F0() {
"w-24"
].map((e) => `<span data-skeleton="tag" aria-hidden="true" class="skeleton-sheen relative block h-8 flex-none rounded-(--tag-radius) ${e}"></span>`).join("");
}
-function I0(e, t = mM()) {
- if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${N0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${$je("block w-card-cover shrink-0 aspect-card-cover rounded-2lg max-sm:w-24")}<div class="flex min-w-0 flex-1 flex-col gap-3">${N0("80%")}${N0("60%")}${N0("40%")}</div></div>`).join("")}</div>`;
- let n = SM({
- ...xM({
+function I0(e, t = hM()) {
+ if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${N0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${Qje("block w-card-cover shrink-0 aspect-card-cover rounded-2lg max-sm:w-24")}<div class="flex min-w-0 flex-1 flex-col gap-3">${N0("80%")}${N0("60%")}${N0("40%")}</div></div>`).join("")}</div>`;
+ let n = CM({
+ ...SM({
active: !0,
home: !1,
portrait: !1
@@ -72656,24 +72631,24 @@ function I0(e, t = mM()) {
<div data-jav-skeleton-actions class="flex flex-wrap gap-2"><span data-jav-skeleton-action class="skeleton block h-9 w-20 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-12 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-26 rounded-md"></span></div>
</div>`).join("")}</div>`;
}
-var eMe = {
+var $je = {
releases: "筛选新作",
discover: "筛选推荐",
wants: "筛选想要"
};
-function tMe(e) {
- let t = new URLSearchParams(location.search).get("q") || "", n = e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${N0("100%")}</div>${I0(e)}` : e === "releases" ? `<section class="flex min-w-0 flex-col gap-4">${nMe()}${cG() === "list" ? `<div data-catalog-table>${BJ(Qje())}</div>` : I0(e)}</section>` : `<section class="flex min-w-0 flex-col gap-4">${rMe()}${I0(e)}</section>`;
+function eMe(e) {
+ let t = new URLSearchParams(location.search).get("q") || "", n = e === "wants" ? `<div class="rounded-2lg bg-background-secondary-default px-6 py-5"><h3 class="mb-4 text-title-2-medium text-text-primary">按番号添加</h3>${N0("100%")}</div>${I0(e)}` : e === "releases" ? `<section class="flex min-w-0 flex-col gap-4">${tMe()}${cG() === "list" ? `<div data-catalog-table>${BJ(Zje())}</div>` : I0(e)}</section>` : `<section class="flex min-w-0 flex-col gap-4">${nMe()}${I0(e)}</section>`;
return `<div class="peach-react"><div class="flex w-full flex-col gap-6">
- <div class="flex w-full flex-col gap-4"><div class="flex min-w-0 flex-wrap items-center gap-3 max-board-narrow:gap-x-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2><div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", t, eMe[e] || "筛选")}</div>${Os({
+ <div class="flex w-full flex-col gap-4"><div class="flex min-w-0 flex-wrap items-center gap-3 max-board-narrow:gap-x-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2><div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", t, $je[e] || "筛选")}</div>${Os({
variant: "primary",
label: "查找资源",
attrs: "disabled data-skeleton-action"
})}</div>
- <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${cU.map(([t, n]) => `<span class="relative flex flex-none items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular ${t === e ? "bg-background-tertiary-default text-text-primary" : "text-text-secondary"}">${n}</span>`).join("")}</div></div>
+ <div class="relative flex flex-none gap-1 overflow-x-auto max-board-narrow:gap-0">${lU.map(([t, n]) => `<span class="relative flex flex-none items-center whitespace-nowrap rounded-md px-3 py-2 text-body-regular max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular ${t === e ? "bg-background-tertiary-default text-text-primary" : "text-text-secondary"}">${n}</span>`).join("")}</div></div>
${n}</div></div>`;
}
-function nMe() {
- let e = new URLSearchParams(location.search), t = e.get("sort") || "release_date", n = e.get("dir") === "asc" ? "asc" : "desc", r = uW.map(([e, r, i]) => ({
+function tMe() {
+ let e = new URLSearchParams(location.search), t = e.get("sort") || "release_date", n = e.get("dir") === "asc" ? "asc" : "desc", r = dW.map(([e, r, i]) => ({
key: e,
label: r,
ariaLabel: i,
@@ -72690,14 +72665,14 @@ function nMe() {
${E0(r, {
name: "jav-layout",
label: "JAV 卡片版式",
- value: mM(),
- options: lM
+ value: hM(),
+ options: uM
}, { folders: !1 })}
</div>
</div>`;
}
-function rMe() {
- let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${mM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Ts(t, "size-4")}</span>`;
+function nMe() {
+ let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${hM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Ts(t, "size-4")}</span>`;
return `<div data-filter-glass data-glass-pane data-filter-frame data-jav-filter data-catalog-frame class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div data-filter-row="top" class="flex h-12 min-w-0 items-center overscroll-x-contain px-3 py-2 gap-1.5 overflow-visible">
<div data-catalog-scroll><div data-catalog-views>${e("external", "库外发现")}${e("library", "馆藏探索")}<span data-entity-sep aria-hidden="true"></span></div><div data-catalog-tags>${F0()}</div></div>
@@ -72706,14 +72681,14 @@ function rMe() {
<span data-catalog-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>
${Es()}
<span data-entity-sorts><button type="button" data-entity-batch data-filter-action data-skeleton-action data-jav-metadata-update title="更新资料" aria-label="更新资料" disabled>${Ts("refresh-cw", "size-4")}</button><span data-entity-layout class="inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg">${t("big", "maximize")}${t("small", "layout-grid")}</span>
- ${lW.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? Ts("arrow-down", "size-3.5") : ""}</button>`).join("")}
+ ${uW.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? Ts("arrow-down", "size-3.5") : ""}</button>`).join("")}
</span>
</div>
</div>`;
}
// src/management-skeletons.ts
var L0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", R0 = (e = "60%") => `<span class="${L0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, z0 = "disabled data-skeleton-action", B0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
-function iMe() {
+function rMe() {
let e = [
"馆藏视频",
"看过",
@@ -72754,7 +72729,7 @@ function iMe() {
</section>
</div></div>`;
}
-function aMe() {
+function iMe() {
let e = (e) => `<div class="inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto rounded-2lg bg-background-tertiary-default p-1" data-taste-segments>${e.map((e, t) => `<span class="flex min-h-7 flex-none items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover"${t === 0 ? " data-selected=\"true\"" : ""}>${e}</span>`).join("")}</div>`, t = [
"浏览记录",
"口味维度",
@@ -72810,7 +72785,7 @@ function aMe() {
</div>
</div></div>`;
}
-function oMe() {
+function aMe() {
let e = `<div class="duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4">
<span class="${L0} row-span-2 inline-grid aspect-16/10 w-full rounded-2lg"></span>
<span class="text-body-regular max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1">${R0("70%")}</span>
@@ -72838,7 +72813,7 @@ function oMe() {
${t.repeat(2)}
</div></div>`;
}
-function sMe() {
+function oMe() {
let e = `<li class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 p-3">
<div class="flex min-w-0 gap-4"><span class="${L0} inline-grid w-card-cover shrink-0 aspect-card-cover rounded-2lg"></span>
<div class="flex min-w-0 flex-1 flex-col gap-1.5"><h3 class="text-headline-medium">${R0("80%")}</h3><p class="text-body-2-regular">${R0("60%")}</p></div>
@@ -72856,14 +72831,14 @@ function sMe() {
</div></div>`;
}
// src/board-skeleton.ts
-var V0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, cMe = () => `${V0("80%")}${V0("48%")}`, H0 = (e, t) => e.repeat(t), U0 = "disabled data-skeleton-action", W0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, G0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, lMe = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", K0 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
+var V0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, sMe = () => `${V0("80%")}${V0("48%")}`, H0 = (e, t) => e.repeat(t), U0 = "disabled data-skeleton-action", W0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, G0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, cMe = "min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4", K0 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
"关注创作者",
"启用来源",
"检查失败",
"未看更新",
"JAV 订阅",
"未看新作"
-].map((e) => `<div class="${lMe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${W0("3em")}</b></div>`).join("")}</div>`, uMe = (e = "") => PZ.some(([t]) => t === e) ? e : "list", q0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${PZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, J0 = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, dMe = ({ table: e, sort: t, dir: n }) => {
+].map((e) => `<div class="${cMe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${W0("3em")}</b></div>`).join("")}</div>`, lMe = (e = "") => PZ.some(([t]) => t === e) ? e : "list", q0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${PZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, J0 = (e = "") => `<span class="group inline-flex items-center select-none gap-2"><span class="flex shrink-0 items-center justify-center rounded-sm size-4 border bg-background-primary-default shadow-xs border-border-checkbox-default"></span>${e ? `<span class="text-body-medium text-text-primary">${e}</span>` : ""}</span>`, uMe = ({ table: e, sort: t, dir: n }) => {
let r = ur.find(([e]) => e === t)[1];
return `<div data-responsive-toolbar class="ui-follow-skeleton-toolbar"><span data-follow-toolbar-heading data-toolbar-heading><h3 class="text-title-2-medium text-text-primary">关注列表</h3><span class="text-body-2-regular text-text-secondary">${W0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Os({
glyph: "refresh-cw",
@@ -72898,7 +72873,7 @@ var V0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, cMe
size: "small",
glyph: "trash",
attrs: U0
-})}</span>`, fMe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${J0()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${W0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${G0(14, 14)}</span>${G0(48, 24)}<span data-follow-source-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-1.5 max-sm:w-full"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${W0("113px")}</span>${Y0()}</span></div>`, X0 = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${G0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${W0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Os({
+})}</span>`, dMe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${J0()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${W0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${G0(14, 14)}</span>${G0(48, 24)}<span data-follow-source-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-1.5 max-sm:w-full"><span class="shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary max-sm:mr-auto max-sm:text-caption-1-regular">${W0("113px")}</span>${Y0()}</span></div>`, X0 = (e) => `<section class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col overflow-hidden p-2 follow-skeleton-author"><div class="flex flex-wrap items-center gap-3 px-2 py-2.5" data-follow-author-header data-open>${G0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${W0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Os({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
@@ -72915,13 +72890,13 @@ var V0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, cMe
glyph: "chevron-up",
label: "收起",
attrs: U0
-})}</span></span></div><div data-source-divider>${H0(fMe(), e)}</div></section>`, pMe = () => {
+})}</span></span></div><div data-source-divider>${H0(dMe(), e)}</div></section>`, fMe = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
-}, mMe = [
+}, pMe = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@ -72929,13 +72904,13 @@ var V0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, cMe
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
-], hMe = {
+], mMe = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, Z0 = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", gMe = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${mMe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${hMe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${Z0}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${H0(`<tr>${[
+}, Z0 = "<svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\"><path d=\"M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z\" fill=\"currentColor\"/></svg>", hMe = (e, { sort: t, dir: n }) => `<div data-board-data-table data-follow-table class="follow-skeleton-table"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm"><thead><tr>${pMe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${mMe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${Z0}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${H0(`<tr>${[
J0(),
`<span class="flex min-w-0 items-center gap-2">${G0(32, 32, !0)}${W0("5em")}</span>`,
W0("10em"),
@@ -72943,39 +72918,39 @@ var V0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, cMe
G0(48, 24),
W0("113px"),
Y0()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, _Me = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${W0("111px")}</span><div data-toolbar-actions>${As(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${G0(204, 32)}</div></div>`, vMe = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${W0("120px")}</h3>${[
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, gMe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${W0("111px")}</span><div data-toolbar-actions>${As(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${G0(204, 32)}</div></div>`, _Me = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${W0("120px")}</h3>${[
"72%",
"56%",
"64%",
"40%"
-].map((e) => `<span class="text-body-medium">${W0(e)}</span>`).join("")}</div>`, yMe = (e) => {
- let t = uMe(e.followTab);
- if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${K0()}<div class="flex flex-col gap-6">${q0(t)}<div class="flex flex-col gap-4">${vMe()}</div></div></div></div>`;
- let n = e.followLayout === "table", r = mr(e.followSort, e.followDir), i = e.followPageSize || pMe(), a = n ? gMe(i, r) : `${J0("全选本页")}<div class="flex flex-col gap-3">${X0(3)}${X0(4)}${X0(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${K0()}<div class="flex flex-col gap-6">${q0(t)}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${dMe({
+].map((e) => `<span class="text-body-medium">${W0(e)}</span>`).join("")}</div>`, vMe = (e) => {
+ let t = lMe(e.followTab);
+ if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${K0()}<div class="flex flex-col gap-6">${q0(t)}<div class="flex flex-col gap-4">${_Me()}</div></div></div></div>`;
+ let n = e.followLayout === "table", r = mr(e.followSort, e.followDir), i = e.followPageSize || fMe(), a = n ? hMe(i, r) : `${J0("全选本页")}<div class="flex flex-col gap-3">${X0(3)}${X0(4)}${X0(3)}</div>`;
+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${K0()}<div class="flex flex-col gap-6">${q0(t)}<div class="flex flex-col gap-4"><div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface" data-layout="${n ? "table" : "default"}">${uMe({
table: n,
...r
- })}${a}${_Me(n, i)}</div></div></div></div></div>`;
+ })}${a}${gMe(n, i)}</div></div></div></div></div>`;
};
-function bMe() {
- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="ui-skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="ui-skeleton-lines">${V0("85%")}${V0("65%")}${H0(cMe(), 4)}</div></aside></div>`;
+function yMe() {
+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="ui-skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="ui-skeleton-lines">${V0("85%")}${V0("65%")}${H0(sMe(), 4)}</div></aside></div>`;
}
-function xMe(e, t = {}) {
+function bMe(e, t = {}) {
let n = "";
- if (e === "/stats") n = iMe();
+ if (e === "/stats") n = rMe();
else if (e === "/jav") {
- let e = lU(new URLSearchParams(location.search).get("tab"));
- n = tMe(e === "library" ? "discover" : e);
- } else if (e === "/taste") n = aMe();
- else if (e === "/subscriptions") n = yMe(t);
- else if (e.startsWith("/settings/") && e.split("/")[2] in kf) n = Kje(kf[e.split("/")[2]]);
+ let e = uU(new URLSearchParams(location.search).get("tab"));
+ n = eMe(e === "library" ? "discover" : e);
+ } else if (e === "/taste") n = iMe();
+ else if (e === "/subscriptions") n = vMe(t);
+ else if (e.startsWith("/settings/") && e.split("/")[2] in kf) n = Gje(kf[e.split("/")[2]]);
else if (e === "/tasks") n = `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${[
"正在进行",
"本次未执行",
"最近完成"
].map((e) => `<section class="activitysection flex min-w-0 flex-col gap-3"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="min-w-0 rounded-2xl shadow-card bg-background-secondary-default"><div class="flex flex-col gap-1.5 px-5 pt-5 pb-4"><span class="text-title-1-medium">${W0("8em")}</span><span class="text-caption-1-regular">${W0("14em")}</span>${W0("60%")}${W0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${W0("6em")}</div></div></section>`).join("")}</div></div>`;
- else if (e === "/duplicates") n = oMe();
- else if (e === "/quality-goals") n = sMe();
+ else if (e === "/duplicates") n = aMe();
+ else if (e === "/quality-goals") n = oMe();
else if (e === "/playlists") n = `<div class="peach-react"><section class="w-full pt-1 pb-10.5"><header class="mb-4 flex items-start justify-between gap-4.5 max-board-narrow:flex-col max-board-narrow:items-stretch"><div><h2 class="mb-1 text-display-4-medium! text-text-primary">播放列表</h2><p class="text-body-2-regular text-text-secondary">保存 Mix,按自己的顺序继续播放。</p></div><div class="flex flex-wrap items-end gap-2"><div class="min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none"><span class="text-body-medium">新播放列表</span><span class="skeleton ui-configuration-skeleton-input mt-1.5"></span></div>${Os({
label: "新建",
attrs: U0
@@ -72984,7 +72959,7 @@ function xMe(e, t = {}) {
return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${n}</div></div>`;
}
// src/react/components/overlay-host.ts
-function SMe(e) {
+function xMe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
if (t) return t;
let n = e.ownerDocument.createElement("div");
@@ -72992,10 +72967,10 @@ function SMe(e) {
}
function Q0(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return SMe(n ?? t.body);
+ return xMe(n ?? t.body);
}
var $0 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";
-function CMe(e) {
+function SMe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
for (let e = t?.lastElementChild; e; e = e.previousElementSibling) {
let t = e.matches($0) ? e : e.querySelector($0);
@@ -73008,13 +72983,13 @@ function e2(e) {
t && t.parentElement !== n && n.append(t);
}
// src/react/follow-detail/follow-detail.ts
-var t2 = (e) => ["follow-item", e], wMe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, TMe = "/api/follow/save", EMe = "/api/follow/media/hide", n2 = class extends Error {
+var t2 = (e) => ["follow-item", e], CMe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, wMe = "/api/follow/save", TMe = "/api/follow/media/hide", n2 = class extends Error {
constructor() {
super("这条关注内容已不存在");
}
};
async function r2(e, t) {
- let n = await B(wMe(e), t);
+ let n = await B(CMe(e), t);
for (let t of n.groups || []) {
let r = la(t).find((t) => t.id === e);
if (r) return {
@@ -73026,7 +73001,7 @@ async function r2(e, t) {
}
throw new n2();
}
-function DMe(e) {
+function EMe(e) {
for (let [, t] of H.getQueriesData({ queryKey: ["follow-item"] })) {
if (!t?.group) continue;
let n = la(t.group).find((t) => t.id === e);
@@ -73044,13 +73019,13 @@ async function i2(e, t) {
}), a = r ? {
...r,
item: r.item
- } : H.getQueryData(n) ?? DMe(e.id);
+ } : H.getQueryData(n) ?? EMe(e.id);
a ? H.setQueryData(n, a) : await H.fetchQuery({
queryKey: n,
queryFn: () => r2(e.id, t)
}), await i;
}
-function OMe(e, t, n, r) {
+function DMe(e, t, n, r) {
let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && va(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);
return {
embedded: i,
@@ -73065,32 +73040,32 @@ function OMe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var kMe = (e) => la(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), AMe = {
+var OMe = (e) => la(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), kMe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, jMe = {
+}, AMe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function MMe(e) {
+function jMe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return AMe[t] || t;
+ return kMe[t] || t;
} catch {
return "外部文件页";
}
}
function a2(e, t) {
- return jMe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+ return AMe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function NMe(e, t, n = "") {
+function MMe(e, t, n = "") {
let r = n;
!r && e.is_release && (r = t.variant_label || t.variant_kind || ""), r ||= t.variant_kind === "wip" ? "WIP" : t.variant_label || t.variant_kind || "视频";
let i = e.is_release ? t.summary || (t.has_media ? "(仅附件)" : "(无正文)") : t.title;
@@ -73099,16 +73074,16 @@ function NMe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var PMe = (e) => String(e.name || "").trim(), o2 = (e, t) => e.tag_types?.[t] || "unknown", FMe = /* @__PURE__ */ new Set([
+var NMe = (e) => String(e.name || "").trim(), o2 = (e, t) => e.tag_types?.[t] || "unknown", PMe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function IMe(e, t) {
+function FMe(e, t) {
let n = o2(e, t);
- return `r34-${FMe.has(n) ? n : "general"}`;
+ return `r34-${PMe.has(n) ? n : "general"}`;
}
var s2 = [
"copyright",
@@ -73117,7 +73092,7 @@ var s2 = [
"general",
"metadata"
];
-function LMe(e, t) {
+function IMe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
let n = s2.indexOf(o2(e, t));
return n < 0 ? s2.length : n;
@@ -73128,12 +73103,12 @@ function c2(e, t) {
let n = t.find((t) => t.id === e.source_id), r = t.filter((e) => n?.author_key && e.author_key === n.author_key);
return !r.length && n && r.push(n), r;
}
-var RMe = (e, t) => ({
+var LMe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
}), l2 = (e) => e?.size ? { size: e.size } : {};
-function zMe(e, t) {
+function RMe(e, t) {
let { images: n, kind: r, src: i, selected: a } = t;
return n.length ? n.map((t) => ({
src: `/follow-stream?id=${e.id}&media=${t.index}`,
@@ -73154,7 +73129,7 @@ function zMe(e, t) {
source: e.provider_label || e.provider || "在线图片"
}] : [];
}
-var BMe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", u2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", d2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", f2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", p2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", m2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", h2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", g2 = "disabled data-skeleton-action", _2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, v2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, y2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, b2 = (e, { label: t = "", className: n = "" } = {}) => `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1${n ? ` ${n}` : ""}">${t ? `<span class="flex items-center gap-0.5 text-body-medium text-text-primary">${t}</span>` : ""}<div class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0"><span class="flex min-w-0 flex-1 items-center pl-1 font-sans text-body-regular text-text-tertiary">${e}&#8203;</span></div></div></div></div>`, VMe = [
+var zMe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", u2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", d2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", f2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", p2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", m2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", h2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", g2 = "disabled data-skeleton-action", _2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, v2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, y2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, b2 = (e, { label: t = "", className: n = "" } = {}) => `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1${n ? ` ${n}` : ""}">${t ? `<span class="flex items-center gap-0.5 text-body-medium text-text-primary">${t}</span>` : ""}<div class="relative flex w-full items-center rounded-2lg bg-background-tertiary-default text-foreground-icon-tertiary ring-2 ring-inset ring-transparent p-2"><div class="flex w-full items-center gap-2 min-w-0"><div class="flex flex-1 items-center gap-0.5 min-w-0"><span class="flex min-w-0 flex-1 items-center pl-1 font-sans text-body-regular text-text-tertiary">${e}&#8203;</span></div></div></div></div>`, BMe = [
"3em",
"5em",
"5em",
@@ -73164,7 +73139,7 @@ var BMe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", u2
"8em",
"8em",
"10em"
-], HMe = [
+], VMe = [
"5.8em",
"6.4em",
"7em",
@@ -73179,7 +73154,7 @@ var BMe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", u2
size: "small",
label: _2(t)
});
-function UMe() {
+function HMe() {
return `<section class="${u$("stack")}">
<div class="${c$.stack}">${y2("整理", "mb-3")}
<p class="text-body-regular text-text-secondary">${u2}</p>
@@ -73193,9 +73168,9 @@ function UMe() {
</div>
<p class="text-caption-1-regular text-text-secondary">${d2}</p>
${b2(_2("12em"), { label: "文件名模板" })}${b2(_2("8em"), { label: "目录模板" })}
- <div class="flex flex-col gap-2"><p class="text-caption-1-medium text-text-secondary">套用模板</p><div class="flex flex-wrap gap-2">${VMe.map((e) => x2("secondary", e)).join("")}</div></div>
+ <div class="flex flex-col gap-2"><p class="text-caption-1-medium text-text-secondary">套用模板</p><div class="flex flex-wrap gap-2">${BMe.map((e) => x2("secondary", e)).join("")}</div></div>
<p class="text-caption-1-regular text-text-secondary">路径示例:${_2("16em")}</p>
- <div class="flex flex-col gap-2"><p class="text-caption-1-regular text-text-secondary"><strong class="text-caption-1-semibold text-text-primary">插入参数</strong>(到文件名模板)</p><div class="flex flex-wrap gap-1">${HMe.map((e) => x2("ghost", e)).join("")}</div></div>
+ <div class="flex flex-col gap-2"><p class="text-caption-1-regular text-text-secondary"><strong class="text-caption-1-semibold text-text-primary">插入参数</strong>(到文件名模板)</p><div class="flex flex-wrap gap-1">${VMe.map((e) => x2("ghost", e)).join("")}</div></div>
<p class="text-caption-1-regular leading-4.5 text-text-secondary">${f2}</p>
</div>
</div>
@@ -73205,7 +73180,7 @@ function UMe() {
})}</footer>
</section>`;
}
-var WMe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
+var UMe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
<section class="${u$("split")}"><div class="${c$.split}">${y2("资源同步", "mb-2")}
<p class="max-w-190 text-body-2-regular leading-5 text-text-secondary">${p2}</p></div>
<footer class="${l$.split}">${Os({
@@ -73213,7 +73188,7 @@ var WMe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
label: "检查文件",
attrs: g2
})}</footer></section>
-</section>`, S2 = (e, t = !1) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular leading-5 text-text-secondary">${e}</span><b class="text-title-2-semibold font-bold leading-5 tabular-nums text-text-primary">${_2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${_2("14em")}</small>` : ""}</div>`, GMe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
+</section>`, S2 = (e, t = !1) => `<div class="flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular leading-5 text-text-secondary">${e}</span><b class="text-title-2-semibold font-bold leading-5 tabular-nums text-text-primary">${_2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${_2("14em")}</small>` : ""}</div>`, WMe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
<section class="${u$("stack")}"><div class="${c$.stack}">${y2("链接管理", "mb-2")}
<div class="link-stat-grid mt-4 gap-x-8 gap-y-3">${S2("链接总数", !0)}${[
0,
@@ -73233,7 +73208,7 @@ var WMe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
</section>`;
function C2({ title: e, description: t, search: n = "", columns: r, rows: i }) {
let a = r.reduce((e, { width: t }) => e + t, 48), o = `<th style="width:48px"><span class="flex items-center gap-0.5">${J0()}</span></th>${r.map(({ label: e, width: t }, n) => `<th${n ? ` style="width:${t}px"` : ""}><span class="flex items-center gap-0.5">${e}<span data-sort-indicator>${Z0}</span></span></th>`).join("")}<th data-table-space style="width:0"></th>`, s = `<tr><td>${J0()}</td>${r.map(({ cell: e }) => `<td>${e}</td>`).join("")}<td data-table-space></td></tr>`, c = n ? `<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", "", n)}</div>` : "";
- return `<div data-data-table-panel class="${CU({
+ return `<div data-data-table-panel class="${wU({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
})}">
@@ -73255,14 +73230,14 @@ function C2({ title: e, description: t, search: n = "", columns: r, rows: i }) {
<div data-table-pagination class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular tabular-nums text-text-secondary">${_2("8em")}</span><div data-toolbar-actions>${As("每页 20 条", { size: "sm" })}</div></div>
</div>`;
}
-var KMe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${_2(e)}</span><small class="text-caption-1-regular">${_2(t)}</small></span>`, qMe = {
+var GMe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${_2(e)}</span><small class="text-caption-1-regular">${_2(t)}</small></span>`, KMe = {
organize: {
label: "正在读取整理配置",
- body: UMe
+ body: HMe
},
"resource-sync": {
label: "正在读取资源同步状态",
- body: WMe
+ body: UMe
},
"orphan-records": {
label: "正在读取文件已丢失的记录",
@@ -73274,7 +73249,7 @@ var KMe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
{
label: "作品",
width: 480,
- cell: `<span class="flex min-w-0 items-center gap-3"><span class="skeleton flex-none rounded-lg max-cleanup-tight:hidden" style="width:96px;height:60px"></span>${KMe("70%", "40%")}</span>`
+ cell: `<span class="flex min-w-0 items-center gap-3"><span class="skeleton flex-none rounded-lg max-cleanup-tight:hidden" style="width:96px;height:60px"></span>${GMe("70%", "40%")}</span>`
},
{
label: "个人记录",
@@ -73296,11 +73271,11 @@ var KMe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
},
"media-repair": {
label: "正在读取媒体修复状态",
- body: Bke
+ body: zke
},
links: {
label: "正在读取链接统计",
- body: GMe
+ body: WMe
},
"batch-delete": {
label: "正在读取女优列表",
@@ -73335,7 +73310,7 @@ var KMe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
}
};
function w2(e) {
- let { label: t, body: n } = qMe[e];
+ let { label: t, body: n } = KMe[e];
return `<div class="peach-react" data-skeleton="cleanup/${e}" aria-busy="true" role="status" aria-label="${t}"><div aria-hidden="true" inert class="mx-auto flex w-full max-w-board flex-col gap-8">${n()}</div></div>`;
}
// src/management-placeholder.ts
@@ -73347,7 +73322,7 @@ var T2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
...i ? { count: i } : {},
...a === void 0 ? {} : { fill: a },
...o ? { cardRatio: o } : {}
-}), JMe = [
+}), qMe = [
"元数据字段",
"创作者标签",
"厂牌 Logo",
@@ -73357,15 +73332,15 @@ var T2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
"FC2 评论标记",
"FC2 跨号相似",
"片尾/出处证据"
-], YMe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">
+], JMe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">
<div class="reviewcontrols" data-section-nav><h2 class="review-category-title">复核分类</h2>
- <div class="reviewtabs" data-section-items>${JMe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${z(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
+ <div class="reviewtabs" data-section-items>${qMe.map((e, t) => `<button type="button" disabled aria-selected="${t === 0}">${z(e)}<span class="skeleton reviewcountskeleton" aria-hidden="true"></span></button>`).join("")}</div></div>
<div class="reviewbulkbar reviewbulktoolbar" aria-hidden="true">${"<span class=\"skeleton reviewtoolskeleton\"></span>".repeat(3)}</div>
- <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, XMe = {
- "/data-cleanup": () => Vke(),
+ <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, YMe = {
+ "/data-cleanup": () => Bke(),
...Object.fromEntries(Yf.map((e) => [e.path, () => w2(e.key)])),
"/resource-sync": () => w2("resource-sync"),
- "/review": () => YMe(),
+ "/review": () => JMe(),
"/sources": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>
${T2("正在读取采集来源", {
cards: !0,
@@ -73375,13 +73350,13 @@ var T2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
})}</div>`
};
function E2(e, { followLayout: t, followSort: n, followDir: r }) {
- return xMe(e, {
+ return bMe(e, {
followLayout: t,
...e === "/subscriptions" ? {
followSort: n,
followDir: r
} : {}
- }) || (XMe[e] ?? (() => T2("正在读取页面")))();
+ }) || (YMe[e] ?? (() => T2("正在读取页面")))();
}
var D2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
function O2(e, t) {
@@ -73408,11 +73383,11 @@ function k2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
})
}) : r && !n ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, I.jsx)(dV, {
+ children: /* @__PURE__ */ (0, I.jsx)(fV, {
size: "compact",
- icon: $B,
+ icon: eV,
title: "暂无接着看的内容",
- actions: /* @__PURE__ */ (0, I.jsx)(vL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(bL, {
size: "small",
href: o ? "/follow" : "/",
children: o ? "返回关注" : "浏览馆藏"
@@ -73516,7 +73491,7 @@ function j2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
"data-media-thumbnails": "",
role: "group",
"aria-label": "媒体缩略图",
- children: e.map((e, r) => /* @__PURE__ */ (0, I.jsx)(ZMe, {
+ children: e.map((e, r) => /* @__PURE__ */ (0, I.jsx)(XMe, {
item: e,
selected: r === t,
onSelect: n,
@@ -73535,7 +73510,7 @@ function j2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
]
});
}
-function ZMe({ item: e, selected: t, onSelect: n, render: r }) {
+function XMe({ item: e, selected: t, onSelect: n, render: r }) {
let i = (0, F.useRef)(null), [a, o] = (0, F.useState)(typeof IntersectionObserver > "u");
return (0, F.useEffect)(() => {
if (!i.current || a) return;
@@ -73561,7 +73536,7 @@ function ZMe({ item: e, selected: t, onSelect: n, render: r }) {
});
}
// src/react/follow-detail/follow-related.ts
-var QMe = (e, t, n) => [
+var ZMe = (e, t, n) => [
"follow-feed",
"related",
e,
@@ -73583,19 +73558,19 @@ function M2(e, t, n, r) {
};
}).sort((e, t) => Number(t.sameAuthor) - Number(e.sameAuthor) || t.common - e.common || e.order - t.order).slice(0, r).map((e) => e.group);
}
-var $Me = /* @__PURE__ */ new Set(["metadata", "artist"]);
-function eNe(e, t, n) {
+var QMe = /* @__PURE__ */ new Set(["metadata", "artist"]);
+function $Me(e, t, n) {
let r = (e) => e.detail_tags || e.tags || [], i = new Set(r(t.item)), a = t.sources.find((e) => e.id === t.item.source_id)?.author_key, o = new Map(e.flatMap((e) => e.sources || []).map((e) => [e.id, e])), s = /* @__PURE__ */ new Map();
for (let t of e.flatMap((e) => e.groups || [])) for (let e of r(ga(t, n))) s.set(e, (s.get(e) || 0) + 1);
return (e) => {
- let t = ga(e, n), c = t.source_id === void 0 ? void 0 : o.get(t.source_id), l = r(t).filter((e) => i.has(e) && !$Me.has(t.tag_types?.[e] || "")).sort((e, t) => (s.get(e) || 0) - (s.get(t) || 0) || e.localeCompare(t));
+ let t = ga(e, n), c = t.source_id === void 0 ? void 0 : o.get(t.source_id), l = r(t).filter((e) => i.has(e) && !QMe.has(t.tag_types?.[e] || "")).sort((e, t) => (s.get(e) || 0) - (s.get(t) || 0) || e.localeCompare(t));
return {
reasons: a && c?.author_key === a ? ["同创作者"] : [],
tags: l
};
};
}
-async function tNe(e, t, n, r) {
+async function eNe(e, t, n, r) {
let i = e.sources.find((t) => t.id === e.item.source_id)?.author_key || "", a = {
..._a(i),
status: "new",
@@ -73618,13 +73593,13 @@ async function tNe(e, t, n, r) {
var N2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), nNe = 20;
+}), tNe = 20;
function P2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, label: a, onOpen: o, onAdd: s, onRemove: c, busyAttrs: l }) {
let [u, d] = (0, F.useState)(null), [f, p] = (0, F.useState)(!1), m = Ft({
queryKey: ["tag-management", n],
queryFn: ({ signal: e }) => B(`/api/tag-management${n === "online" ? "?scope=online" : ""}`, e),
enabled: f && (n === "online" || !t.length)
- }), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = hH(), _ = (e) => {
+ }), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = gH(), _ = (e) => {
g.run("rename", async (t) => {
let r = (await H.fetchQuery({
queryKey: ["tag-management", n],
@@ -73635,7 +73610,7 @@ function P2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}, (e) => d(e));
}, [v, y] = (0, F.useState)(!1), [b, x] = (0, F.useState)([]), S = (e) => {
x((t) => [...t, Un(e)]), s(e);
- }, C = e.length > 24, w = C && !v ? e.filter((e, t) => t < nNe || b.includes(Un(e.k))) : e;
+ }, C = e.length > 24, w = C && !v ? e.filter((e, t) => t < tNe || b.includes(Un(e.k))) : e;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-tags": "",
@@ -73659,7 +73634,7 @@ function P2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
"data-edit-tag": e.k,
title: "修改标签名称",
"aria-label": `修改标签 ${a(e.k)}`,
- ...hV(!!g.busy),
+ ...gV(!!g.busy),
onClick: () => _(e),
children: /* @__PURE__ */ (0, I.jsx)(N2, { name: "pencil" })
}),
@@ -73679,11 +73654,11 @@ function P2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
size: "small",
"data-tags-more": "",
"aria-expanded": v,
- trailingIcon: v ? bB : _B,
+ trailingIcon: v ? SB : yB,
onClick: () => y(!v),
children: v ? "收起" : `还有 ${e.length - w.length} 个`
}) : null,
- /* @__PURE__ */ (0, I.jsx)(rNe, {
+ /* @__PURE__ */ (0, I.jsx)(nNe, {
tags: e,
candidates: h,
label: a,
@@ -73695,11 +73670,11 @@ function P2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
})
]
}),
- g.error ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ g.error ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
children: g.error
}) : null,
- m.isError ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ m.isError ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -73717,8 +73692,8 @@ function P2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}) : null
] });
}
-function rNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a, onOpen: o, loading: s }) {
- let c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = BV(), d = (0, F.useRef)(null), f = (0, F.useRef)(!1), [p, m] = (0, F.useState)(!1), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), [y, b] = (0, F.useState)(-1), x = (0, F.useRef)({
+function nNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a, onOpen: o, loading: s }) {
+ let c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = VV(), d = (0, F.useRef)(null), f = (0, F.useRef)(!1), [p, m] = (0, F.useState)(!1), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(""), [y, b] = (0, F.useState)(-1), x = (0, F.useRef)({
adding: i,
query: h,
tags: e,
@@ -73763,7 +73738,7 @@ function rNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
_,
t.length
]);
- let w = p ? Jue(_, t, IP()) : {
+ let w = p ? que(_, t, LP()) : {
recent: [],
results: [],
create: ""
@@ -73777,7 +73752,7 @@ function rNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
], E = (e, t) => {
C(), t || r(e.k);
}, D = (t) => {
- if (!tW(t.nativeEvent)) {
+ if (!nW(t.nativeEvent)) {
if (t.key === "Escape") t.preventDefault(), t.stopPropagation(), C(), c.current?.focus();
else if (t.key === "ArrowDown" || t.key === "ArrowUp") {
if (t.preventDefault(), !T.length) return;
@@ -73826,7 +73801,7 @@ function rNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
title: "添加标签",
"aria-label": "添加标签",
"aria-expanded": p,
- ...hV(!!i),
+ ...gV(!!i),
children: /* @__PURE__ */ (0, I.jsx)(N2, { name: "plus" })
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: l,
@@ -73901,8 +73876,8 @@ function rNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
})] });
}
// src/react/follow-detail/follow-tags.tsx
-function iNe({ item: e, label: t, actions: n }) {
- let r = hH(), i = () => H.invalidateQueries({ predicate: (e) => [
+function rNe({ item: e, label: t, actions: n }) {
+ let r = gH(), i = () => H.invalidateQueries({ predicate: (e) => [
"follow-feed",
"follow",
"tag-management"
@@ -73925,7 +73900,7 @@ function iNe({ item: e, label: t, actions: n }) {
}, "POST", t);
a(n), await i();
}, () => {
- o === "add" && LP(s);
+ o === "add" && RP(s);
let r = o === "add" ? "remove" : e.custom_tags?.includes(s) ? "add" : "restore";
n.toast(o === "add" ? `已添加标签「${t(s)}」` : `已删除标签「${t(s)}」`, { undo: async () => {
let t = await V("/api/follow/tag", {
@@ -73942,9 +73917,9 @@ function iNe({ item: e, label: t, actions: n }) {
"data-follow-tag-editor": "",
"data-follow-detail-tags": "",
children: [/* @__PURE__ */ (0, I.jsx)(P2, {
- tags: LMe(e, t).map((t) => ({
+ tags: IMe(e, t).map((t) => ({
k: t,
- cat: IMe(e, t)
+ cat: FMe(e, t)
})),
scope: "online",
adding: !!r.busy,
@@ -73953,19 +73928,19 @@ function iNe({ item: e, label: t, actions: n }) {
onOpen: n.openTag,
onAdd: (e) => o("add", e),
onRemove: (e) => o("remove", e.k),
- busyAttrs: () => hV(!!r.busy)
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ busyAttrs: () => gV(!!r.busy)
+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
children: r.error
}) : null]
});
}
// src/react/follow-detail/follow-detail-page.tsx
-var F2 = (e) => Number(e) > 0, aNe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var F2 = (e) => Number(e) > 0, iNe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
}), I2 = R("external-link", "ui-externalmark");
-function oNe(e) {
+function aNe(e) {
let { id: t, actions: n } = e, r = Ft({
queryKey: t2(t),
queryFn: ({ signal: e }) => r2(t, e)
@@ -73973,10 +73948,10 @@ function oNe(e) {
queryKey: ia,
queryFn: ({ signal: e }) => aa(e)
}), a = (0, F.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, F.useState)(e.mediaIndex);
- return r.data ? /* @__PURE__ */ (0, I.jsx)(lNe, {
+ return r.data ? /* @__PURE__ */ (0, I.jsx)(cNe, {
...e,
data: r.data,
- context: RMe(r.data, a),
+ context: LMe(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, I.jsx)("div", {
@@ -73987,7 +73962,7 @@ function oNe(e) {
"data-follow-detail-media": "none",
children: [/* @__PURE__ */ (0, I.jsx)(L2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? sNe(r.error) ? /* @__PURE__ */ (0, I.jsx)(cNe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(VG, {
+ children: r.isError ? oNe(r.error) ? /* @__PURE__ */ (0, I.jsx)(sNe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(VG, {
message: xn(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -73995,8 +73970,8 @@ function oNe(e) {
})
});
}
-var sNe = (e) => e instanceof n2 || e instanceof sr && e.status === 404;
-function cNe({ onBack: e }) {
+var oNe = (e) => e instanceof n2 || e instanceof sr && e.status === 404;
+function sNe({ onBack: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-gone": "",
onClick: (t) => {
@@ -74014,8 +73989,8 @@ var L2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function lNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
- let { item: c, group: l } = e, u = OMe(c, l, n, i), d = hNe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
+function cNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
+ let { item: c, group: l } = e, u = DMe(c, l, n, i), d = mNe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
key: "",
kind: ""
}), h = {
@@ -74035,7 +74010,7 @@ function lNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
c,
u.kind
]);
- let g = !u.embedded.length && u.collection ? kMe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(V2, {
+ let g = !u.embedded.length && u.collection ? OMe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(V2, {
item: c,
current: u.selected.index,
helpers: o,
@@ -74048,7 +74023,7 @@ function lNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
actions: s,
onMedia: r,
currentId: c.id
- }) : /* @__PURE__ */ (0, I.jsx)(fNe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(dNe, {
group: u.collection,
itemId: c.id,
helpers: o,
@@ -74058,14 +74033,14 @@ function lNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
"data-stage-grid": "",
"data-with-queue": _ ? "" : void 0,
"data-follow-detail": "",
- children: [/* @__PURE__ */ (0, I.jsx)(dNe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(uNe, {
item: c,
media: u,
helpers: o,
actions: s,
onMedia: r,
issues: h
- }, f), /* @__PURE__ */ (0, I.jsx)(pNe, {
+ }, f), /* @__PURE__ */ (0, I.jsx)(fNe, {
item: c,
data: e,
context: t,
@@ -74077,7 +74052,7 @@ function lNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
})]
}), /* @__PURE__ */ (0, I.jsx)(A2, {
queue: _,
- children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(uNe, {
+ children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(lNe, {
data: e,
media: u.kind === "image" ? "images" : u.kind === "video" ? "videos" : i,
limit: a,
@@ -74087,10 +74062,10 @@ function lNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
}) : null
})] });
}
-function uNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
+function lNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
let o = Ft({
- queryKey: QMe(e.item.id, t, n),
- queryFn: ({ signal: r }) => tNe(e, t, n, r)
+ queryKey: ZMe(e.item.id, t, n),
+ queryFn: ({ signal: r }) => eNe(e, t, n, r)
}), [s] = (0, F.useState)(() => T2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
@@ -74098,7 +74073,7 @@ function uNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
openDetail: a.openItem,
openAuthor: a.openAuthor,
canFlip: a.canFlip
- }), [a]), l = M2(o.data?.pages || [], e, t, n), u = eNe(o.data?.pages || [], e, t), d = o.data?.pages.at(-1)?.sources || e.sources, f = {
+ }), [a]), l = M2(o.data?.pages || [], e, t, n), u = $Me(o.data?.pages || [], e, t), d = o.data?.pages.at(-1)?.sources || e.sources, f = {
...r,
sources: d,
aliases: o.data?.pages.at(-1)?.author_aliases || r.aliases
@@ -74131,8 +74106,8 @@ function uNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
})
});
}
-function dNe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
- let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, F.useRef)(null), p = zMe(e, t), m = o?.thumb_url || e.thumb_url || "", h = e.playable && a === "video", g = e.playable && a === "image" ? s : e.thumb_url || "", _ = e.playable && a === "image" && m && m !== s ? m : "", [v, y] = (0, F.useState)(g), b = (0, F.useRef)({
+function uNe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
+ let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, F.useRef)(null), p = RMe(e, t), m = o?.thumb_url || e.thumb_url || "", h = e.playable && a === "video", g = e.playable && a === "image" ? s : e.thumb_url || "", _ = e.playable && a === "image" && m && m !== s ? m : "", [v, y] = (0, F.useState)(g), b = (0, F.useRef)({
item: e,
selected: o
}), x = (0, F.useRef)(i.failed);
@@ -74200,7 +74175,7 @@ function B2(e) {
t && e.wireDrag(t);
}, [e]);
}
-function fNe({ group: e, itemId: t, helpers: n, actions: r }) {
+function dNe({ group: e, itemId: t, helpers: n, actions: r }) {
let i = va(e), a = B2(n);
return /* @__PURE__ */ (0, I.jsx)(wK, {
kind: "collection",
@@ -74210,7 +74185,7 @@ function fNe({ group: e, itemId: t, helpers: n, actions: r }) {
listRef: a,
summary: `${_G(e.primary)} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = NMe(e, n, i ? n.provider_label : ""), o = i ? hG(n.provider, n.provider_label) : "";
+ let i = e.duplicates.includes(n), a = MMe(e, n, i ? n.provider_label : ""), o = i ? hG(n.provider, n.provider_label) : "";
return /* @__PURE__ */ (0, I.jsxs)(TK, {
current: n.id === t,
"data-follow-queue-item": n.id,
@@ -74258,7 +74233,7 @@ function V2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
onClose: i.close,
listRef: s,
summary: `${_G(e)} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(yxe, {
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(vxe, {
label: n.label,
count: n.items.length
}, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(TK, {
@@ -74270,7 +74245,7 @@ function V2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
pic: n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(z2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(R2, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, I.jsx)("b", {
"data-middle-truncate": "",
- children: PMe(n)
+ children: NMe(n)
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -74278,7 +74253,7 @@ function V2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function pNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function fNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
let { kind: c, selected: l, src: u } = r, d = {
primary: e,
variants: [],
@@ -74366,7 +74341,7 @@ function pNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
children: [m ? /* @__PURE__ */ (0, I.jsxs)("span", { children: ["发布者 ", m] }) : null, p.credited ? /* @__PURE__ */ (0, I.jsxs)("span", { children: ["署名含 ", p.credited] }) : null]
}) : null]
}),
- e.summary ? /* @__PURE__ */ (0, I.jsx)(mNe, { text: e.summary }, e.id) : null,
+ e.summary ? /* @__PURE__ */ (0, I.jsx)(pNe, { text: e.summary }, e.id) : null,
h ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-follow-media-issue": "",
children: h
@@ -74389,7 +74364,7 @@ function pNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [MMe(e), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [jMe(e), /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: I2 }
})]
@@ -74491,7 +74466,7 @@ function pNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-label": `恢复显示 ${e.name || ""}`,
...v(`restore:${e.index}`),
onClick: () => i.restore(e.index),
- children: [e.thumb_url ? /* @__PURE__ */ (0, I.jsx)(z2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(aNe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, I.jsx)(z2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(iNe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -74500,7 +74475,7 @@ function pNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-live": "polite",
children: i.failure
}),
- /* @__PURE__ */ (0, I.jsx)(iNe, {
+ /* @__PURE__ */ (0, I.jsx)(rNe, {
item: e,
label: o.tagLabel,
actions: s
@@ -74509,7 +74484,7 @@ function pNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function mNe({ text: e }) {
+function pNe({ text: e }) {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(!1);
return (0, F.useLayoutEffect)(() => {
let e = t.current;
@@ -74522,7 +74497,7 @@ function mNe({ text: e }) {
ref: t,
"data-follow-detail-summary": "",
"data-long-text": "",
- lang: zI(e),
+ lang: VI(e),
"data-clamped": n ? void 0 : "",
children: e
}), i || n ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -74534,7 +74509,7 @@ function mNe({ text: e }) {
children: n ? "收起" : "展开"
}) : null] });
}
-function hNe(e, t, n) {
+function mNe(e, t, n) {
let r = e.id, i = t2(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), l = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
@@ -74554,7 +74529,7 @@ function hNe(e, t, n) {
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && cW(), t.toast(BMe(n), { undo: i === "saved" ? void 0 : async () => {
+ u(n), c(""), n === "ignored" && lW(), t.toast(zMe(n), { undo: i === "saved" ? void 0 : async () => {
await V(Mr, {
item: r,
to: i
@@ -74564,7 +74539,7 @@ function hNe(e, t, n) {
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
}), p = It({
- mutationFn: () => V(TMe, { item: r }),
+ mutationFn: () => V(wMe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到数据库");
},
@@ -74572,7 +74547,7 @@ function hNe(e, t, n) {
onSettled: () => l("save", !1)
}), m = It({
mutationFn: async ({ index: e, hidden: t }) => {
- await V(EMe, {
+ await V(TMe, {
item: r,
media: e,
hidden: t
@@ -74588,12 +74563,12 @@ function hNe(e, t, n) {
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
}), h = Ft({
- queryKey: mye(r),
- queryFn: ({ signal: e }) => _ye(r, e)
+ queryKey: fye(r),
+ queryFn: ({ signal: e }) => hye(r, e)
}).data?.want ?? null, g = It({
- mutationFn: async (e) => (e ? await sW([e.id]) : await oW({ follow: r }), !e),
+ mutationFn: async (e) => (e ? await cW([e.id]) : await sW({ follow: r }), !e),
onSuccess: (e) => {
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), cW();
+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), lW();
},
onError: d,
onSettled: () => l("want", !1)
@@ -74633,7 +74608,7 @@ function hNe(e, t, n) {
}
// src/react/components/identity-cell.tsx
function H2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
- rL();
+ aL();
let o = nn(e, t.name, t.id), s = e === "performer" || e === "creator" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-id-face": "",
dangerouslySetInnerHTML: { __html: `<span>${z(er(o))}</span>` + go({
@@ -74745,7 +74720,7 @@ function G2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
src: c,
alt: "",
onError: () => a(c)
- }) : i === c ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ }) : i === c ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -74763,20 +74738,20 @@ function G2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
}, o);
}
// src/react/jav-detail/jav-detail.ts
-var K2 = (e) => ["jav-detail", e], q2 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), gNe = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), J2 = (e, t) => H.ensureQueryData({
+var K2 = (e) => ["jav-detail", e], q2 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), hNe = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), J2 = (e, t) => H.ensureQueryData({
queryKey: K2(e.code),
queryFn: () => q2(e.code, t),
staleTime: 216e5,
revalidateIfStale: !0
});
-function _Ne(e, t) {
+function gNe(e, t) {
if (!e.ok || !e.more) return;
let n = new Set(t.slice(0, -1).flatMap((e) => e.items.map((e) => e.id)));
return e.items.some((e) => !n.has(e.id)) ? e.page + 1 : void 0;
}
// src/react/item-detail/external-playback.tsx
var Y2 = "peach.playback-target.v1", X2 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];
-function vNe() {
+function _Ne() {
try {
return localStorage.getItem(Y2) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;
} catch {
@@ -74784,7 +74759,7 @@ function vNe() {
}
}
function Z2({ id: e, onOpened: t }) {
- let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(vNe), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = hH();
+ let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(_Ne), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = gH();
(0, F.useEffect)(() => {
let e = new AbortController();
return B("/api/local-players", e.signal).then((t) => {
@@ -74831,12 +74806,12 @@ function Z2({ id: e, onOpened: t }) {
variant: "secondary",
"aria-label": "使用外部播放器打开",
disabled: n === null,
- ...hV(f.busy === "open"),
+ ...gV(f.busy === "open"),
onClick: p,
children: "打开"
})]
}),
- f.error || c ? /* @__PURE__ */ (0, I.jsx)(LH, { children: f.error || c }) : null,
+ f.error || c ? /* @__PURE__ */ (0, I.jsx)(RH, { children: f.error || c }) : null,
c ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
disabled: !!f.busy,
@@ -74845,16 +74820,16 @@ function Z2({ id: e, onOpened: t }) {
},
children: "重新检测播放器"
}) : null,
- o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(sV, {
+ o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(cV, {
label: "网络播放地址",
value: o.url,
isReadOnly: !0
- }), /* @__PURE__ */ (0, I.jsx)(IH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
+ }), /* @__PURE__ */ (0, I.jsx)(LH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
]
});
}
// src/react/boardui/components/base/switch/switch.tsx
-var yNe = NI({
+var vNe = FI({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -74916,8 +74891,8 @@ var yNe = NI({
}
}
});
-function bNe({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = yNe[t];
+function yNe({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = vNe[t];
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: q("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? q("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
@@ -74928,11 +74903,11 @@ function bNe({ state: e, size: t = "md", shape: n = "pill" }) {
});
}
function Q2({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(Hme, {
+ return /* @__PURE__ */ (0, I.jsx)(Bme, {
ref: i,
...a,
className: (t) => q("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(bNe, {
+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(yNe, {
state: e,
size: n,
shape: r
@@ -74943,7 +74918,7 @@ function Q2({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
});
}
// src/react/cover-crop/cover-crop.ts
-var xNe = "/api/cover-crop", SNe = (e, t) => V(xNe, {
+var bNe = "/api/cover-crop", xNe = (e, t) => V(bNe, {
code: e,
box: t
});
@@ -74961,7 +74936,7 @@ function $2({ className: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-crop" })
});
}
-function CNe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function SNe({ code: e, coverUrl: t, box: n, onSaved: r }) {
let [i, a] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -74972,12 +74947,12 @@ function CNe({ code: e, coverUrl: t, box: n, onSaved: r }) {
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: /* @__PURE__ */ (0, I.jsx)($2, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, I.jsx)(cV, {
+ }), /* @__PURE__ */ (0, I.jsx)(lV, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, I.jsx)(wNe, {
+ children: /* @__PURE__ */ (0, I.jsx)(CNe, {
code: e,
coverUrl: t,
box: n,
@@ -74986,9 +74961,9 @@ function CNe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function wNe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
- let [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(null), [l, u] = (0, F.useState)(!0), d = BV(), f = It({
- mutationFn: (t) => SNe(e, t),
+function CNe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
+ let [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(null), [l, u] = (0, F.useState)(!0), d = VV(), f = It({
+ mutationFn: (t) => xNe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -75000,7 +74975,7 @@ function wNe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : KDe(e, no);
+ } : GDe(e, no);
c(YZ(t, e, null));
}
let m = f.isPending;
@@ -75008,11 +74983,11 @@ function wNe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
children: [
- /* @__PURE__ */ (0, I.jsx)(lV, { children: /* @__PURE__ */ (0, I.jsx)($2, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, I.jsx)(uV, { children: /* @__PURE__ */ (0, I.jsx)($2, { className: "size-6" }) }),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(BL, {
+ /* @__PURE__ */ (0, I.jsx)(HL, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -75021,14 +74996,14 @@ function wNe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
className: "text-body-2-regular text-text-secondary",
children: [e, ":框出正封那一块,封面原图不动。拖动方框移动,滚轮或角上那枚方块改大小。"]
}),
- f.error ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ f.error ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
children: lr(f.error)
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(oL, {
- icon: wB,
+ /* @__PURE__ */ (0, I.jsx)(cL, {
+ icon: EB,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -75065,14 +75040,14 @@ function wNe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
className: "flex flex-1 flex-wrap items-center justify-end gap-3",
children: [/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...hV(m),
+ ...gV(m),
onClick: () => {
m || f.mutate(null);
},
children: "恢复默认"
}), /* @__PURE__ */ (0, I.jsx)(J, {
disabled: !s || !a,
- ...hV(m),
+ ...gV(m),
onClick: () => {
s && !m && f.mutate(s);
},
@@ -75090,14 +75065,14 @@ var e4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
}), n4 = (e) => Number(e) > 0 ? Xn(Number(e)) : "大小未知";
-function TNe(e) {
+function wNe(e) {
let { queue: t, actions: n } = e, r = Ft({
- queryKey: t ? _P(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => EP(t, e.helpers, n),
+ queryKey: t ? vP(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => DP(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? kP(i, e.id) : t ? null : e.id, o = Ft({
- queryKey: gP(a ?? 0),
- queryFn: ({ signal: e }) => TP(a, e),
+ }), i = t && r.data || null, a = i ? AP(i, e.id) : t ? null : e.id, o = Ft({
+ queryKey: _P(a ?? 0),
+ queryFn: ({ signal: e }) => EP(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -75120,9 +75095,9 @@ function TNe(e) {
})
});
}
- return /* @__PURE__ */ (0, I.jsx)(ENe, {
+ return /* @__PURE__ */ (0, I.jsx)(TNe, {
...e,
- item: Gue(o.data, i),
+ item: Wue(o.data, i),
queue: i
}, o.data.id);
}
@@ -75135,23 +75110,23 @@ var r4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function ENe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = VNe(t, r, i.tagLabel), o = (0, F.useRef)(t);
+function TNe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = BNe(t, r, i.tagLabel), o = (0, F.useRef)(t);
(0, F.useLayoutEffect)(() => {
r.present(o.current, n);
}, [r]), (0, F.useEffect)(() => {
- n?.kind === "playlist" && V(vP, {
+ n?.kind === "playlist" && V(yP, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = XN() ? "" : tde(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = AP(n, t.id);
+ let s = ZN() ? "" : ede(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = jP(n, t.id);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-grid": "",
"data-with-queue": n ? "" : void 0,
"data-item-detail": "",
- children: [/* @__PURE__ */ (0, I.jsx)(DNe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(ENe, {
item: t,
gate: s,
helpers: i,
@@ -75164,7 +75139,7 @@ function ENe(e) {
autoplay: !0
}, c.id);
}
- }), /* @__PURE__ */ (0, I.jsx)(MNe, {
+ }), /* @__PURE__ */ (0, I.jsx)(jNe, {
item: t,
queue: n,
write: a,
@@ -75173,13 +75148,13 @@ function ENe(e) {
})]
}), /* @__PURE__ */ (0, I.jsx)(A2, {
queueCards: n?.kind === "parts" || n?.kind === "editions" ? n.items.length : void 0,
- queue: n ? /* @__PURE__ */ (0, I.jsx)(kNe, {
+ queue: n ? /* @__PURE__ */ (0, I.jsx)(ONe, {
queue: n,
itemId: t.id,
helpers: i,
actions: r
}) : null,
- children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, I.jsx)(BNe, {
+ children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, I.jsx)(zNe, {
...e,
item: n ? {
...t,
@@ -75188,7 +75163,7 @@ function ENe(e) {
}) : null
})] });
}
-function DNe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
+function ENe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
let [o, s] = (0, F.useState)(t ? "" : "auto"), c = (0, F.useRef)(null), [l, u] = (0, F.useState)(-2), d = (0, F.useRef)(!1), f = Ft({
queryKey: K2(e.code || ""),
queryFn: ({ signal: t }) => {
@@ -75278,7 +75253,7 @@ function DNe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
className: "relative block h-12 w-20 skeleton-sheen"
}) : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...hV(f.isFetching),
+ ...gV(f.isFetching),
title: f.data?.message || xn(f.error),
"aria-label": "立即重试样图",
onClick: () => {
@@ -75287,7 +75262,7 @@ function DNe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: "立即重试"
})
}) : null,
- t === "offline" ? /* @__PURE__ */ (0, I.jsx)(ONe, {
+ t === "offline" ? /* @__PURE__ */ (0, I.jsx)(DNe, {
item: e,
badge: y,
helpers: n,
@@ -75328,7 +75303,7 @@ function DNe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
]
});
}
-function ONe({ item: e, badge: t, helpers: n, actions: r }) {
+function DNe({ item: e, badge: t, helpers: n, actions: r }) {
let [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = async () => {
a(!0);
let t = await r.checkSource(e.location || "").catch(() => !1);
@@ -75353,8 +75328,8 @@ function ONe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function kNe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = Zue(e), a = (0, F.useRef)(null), o = jNe(e, t, r), s = (0, F.useRef)(o);
+function ONe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = Xue(e), a = (0, F.useRef)(null), o = ANe(e, t, r), s = (0, F.useRef)(o);
s.current = o;
let c = (0, F.useCallback)((t) => {
a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {
@@ -75362,7 +75337,7 @@ function kNe({ queue: e, itemId: t, helpers: n, actions: r }) {
attribute: "data-queue-row",
onMove: (e, t, n) => s.current.move(+e, +t, n)
}));
- }, [n, e.kind]), l = ANe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
+ }, [n, e.kind]), l = kNe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -75390,10 +75365,10 @@ function kNe({ queue: e, itemId: t, helpers: n, actions: r }) {
listRef: c,
children: e.items.map((i) => {
let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, I.jsx)("i", {
- className: `javedition ${Yue[i.edition_label] || "censored"}`,
+ className: `javedition ${Jue[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && OP(i);
+ }) : null, s = e.kind === "playlist" && kP(i);
return /* @__PURE__ */ (0, I.jsxs)(TK, {
current: i.id === t,
"data-queue-item": i.id,
@@ -75433,14 +75408,14 @@ function kNe({ queue: e, itemId: t, helpers: n, actions: r }) {
})]
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-truncate-end": "",
- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? RP(i.part_label) : Mo(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? zP(i.part_label) : Mo(i, n.tagLabel)
})]
}, i.id);
})
});
}
-function ANe(e, t) {
- let n = It({ mutationFn: (t) => V(vP, {
+function kNe(e, t) {
+ let n = It({ mutationFn: (t) => V(yP, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -75453,11 +75428,11 @@ function ANe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function jNe(e, t, n) {
- let r = _P({
+function ANe(e, t, n) {
+ let r = vP({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (H.setQueryData(r, DP(e)), e), a = (t) => V(vP, {
+ }), i = (e) => (H.setQueryData(r, OP(e)), e), a = (t) => V(yP, {
id: e.playlistId,
...t
}).then((e) => e.playlist), o = It({
@@ -75473,8 +75448,8 @@ function jNe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = $ue(s, t, r, c);
- if (ede(l, s)) return;
+ let l = Que(s, t, r, c);
+ if ($ue(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -75516,7 +75491,7 @@ function jNe(e, t, n) {
}
};
}
-function MNe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function jNe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-stage-side": "",
@@ -75524,7 +75499,7 @@ function MNe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-side-content": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(NNe, {
+ /* @__PURE__ */ (0, I.jsx)(MNe, {
item: e,
queue: t,
helpers: r,
@@ -75536,7 +75511,7 @@ function MNe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, I.jsx)(FNe, {
+ /* @__PURE__ */ (0, I.jsx)(PNe, {
item: e,
write: n
}),
@@ -75575,12 +75550,12 @@ function MNe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
id: e.id,
onOpened: () => i.toast("已请求打开本地播放器")
}, e.id) : null,
- /* @__PURE__ */ (0, I.jsx)(INe, {
+ /* @__PURE__ */ (0, I.jsx)(FNe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, I.jsx)(LNe, {
+ /* @__PURE__ */ (0, I.jsx)(INe, {
item: e,
write: n,
helpers: r,
@@ -75589,10 +75564,10 @@ function MNe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
/* @__PURE__ */ (0, I.jsx)(IK, {
assetIds: FK([e], r.javImage()),
onComplete: () => {
- H.invalidateQueries({ queryKey: gP(e.id) });
+ H.invalidateQueries({ queryKey: _P(e.id) });
}
}),
- /* @__PURE__ */ (0, I.jsx)(RNe, { item: e }),
+ /* @__PURE__ */ (0, I.jsx)(LNe, { item: e }),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -75686,7 +75661,7 @@ function MNe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(zNe, {
+ /* @__PURE__ */ (0, I.jsx)(RNe, {
item: e,
open: s,
write: n
@@ -75710,8 +75685,8 @@ function MNe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function NNe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
- let { text: a, expanded: o, foldable: s, toggle: c } = W2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Que(e, t);
+function MNe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+ let { text: a, expanded: o, foldable: s, toggle: c } = W2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Zue(e, t);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -75738,23 +75713,23 @@ function NNe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: c,
- children: /* @__PURE__ */ (0, I.jsx)(NH, {})
+ children: /* @__PURE__ */ (0, I.jsx)(PH, {})
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, I.jsx)(CNe, {
+ children: /* @__PURE__ */ (0, I.jsx)(SNe, {
code: e.cover_key || e.code || "",
coverUrl: lo(e),
box: e.poster_box || null,
onSaved: (t) => {
H.invalidateQueries({
- queryKey: gP(e.id),
+ queryKey: _P(e.id),
exact: !0
- }), fP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
+ }), pP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(PNe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(NNe, {
id: e.id,
actions: r,
onStatus: i
@@ -75764,7 +75739,7 @@ function NNe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function PNe({ id: e, actions: t, onStatus: n }) {
+function NNe({ id: e, actions: t, onStatus: n }) {
let [r, i] = (0, F.useState)(""), a = async () => {
r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));
}, o = async () => {
@@ -75797,14 +75772,14 @@ function PNe({ id: e, actions: t, onStatus: n }) {
children: /* @__PURE__ */ (0, I.jsx)(e4, { name: "folder-sync" })
})] });
}
-function FNe({ item: e, write: t }) {
- let n = mP(e.rating);
+function PNe({ item: e, write: t }) {
+ let n = hP(e.rating);
return /* @__PURE__ */ (0, I.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": pP(e.rating),
+ "data-value": mP(e.rating),
children: [/* @__PURE__ */ (0, I.jsx)(ZJ, {
value: n,
onRate: (e) => t.rate(e),
@@ -75819,12 +75794,12 @@ function FNe({ item: e, write: t }) {
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: Vue(e.rating)
+ children: Bue(e.rating)
})]
});
}
-function INe({ item: e, actions: t }) {
- let n = (0, F.useMemo)(() => Kue(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
+function FNe({ item: e, actions: t }) {
+ let n = (0, F.useMemo)(() => Gue(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
let a = e === "performer" && i >= 8 && !r;
return /* @__PURE__ */ (0, I.jsx)(H2, {
kind: e,
@@ -75870,7 +75845,7 @@ function INe({ item: e, actions: t }) {
size: "small",
id: "castMore",
"data-cast-more": "",
- trailingIcon: _B,
+ trailingIcon: yB,
"aria-expanded": !1,
onClick: () => i(!0),
children: [
@@ -75895,12 +75870,12 @@ function INe({ item: e, actions: t }) {
})]
});
}
-function LNe({ item: e, write: t, helpers: n, actions: r }) {
+function INe({ item: e, write: t, helpers: n, actions: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-tags": "",
children: /* @__PURE__ */ (0, I.jsx)(P2, {
id: "detailTags",
- tags: que(e, n),
+ tags: Kue(e, n),
candidates: n.tagCandidates(),
label: n.tagLabel,
adding: [...t.busy].some((e) => e.startsWith("add:")),
@@ -75911,8 +75886,8 @@ function LNe({ item: e, write: t, helpers: n, actions: r }) {
}, e.id)
});
}
-function RNe({ item: e }) {
- let t = nde(e);
+function LNe({ item: e }) {
+ let t = tde(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -75946,7 +75921,7 @@ function RNe({ item: e }) {
})]
});
}
-function zNe({ item: e, open: t, write: n }) {
+function RNe({ item: e, open: t, write: n }) {
let [r, i] = (0, F.useState)(e.like_reason || ""), a = (0, F.useRef)(null);
(0, F.useEffect)(() => {
t && a.current?.focus();
@@ -75985,10 +75960,10 @@ function zNe({ item: e, open: t, write: n }) {
})]
});
}
-function BNe(e) {
+function zNe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Ft({
- queryKey: Hue(t.id, n),
- queryFn: async ({ signal: e }) => (await B(Wue(t.id, n), e)).items || []
+ queryKey: Vue(t.id, n),
+ queryFn: async ({ signal: e }) => (await B(Uue(t.id, n), e)).items || []
}), [o] = (0, F.useState)(() => r.relatedSkeletonHtml());
return /* @__PURE__ */ (0, I.jsx)(k2, {
wireDrag: r.wireDrag,
@@ -76014,8 +75989,8 @@ function BNe(e) {
}) : /* @__PURE__ */ (0, I.jsx)(t4, { html: o })
});
}
-function VNe(e, t, n) {
- let r = e.id, i = gP(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = (e, t) => o((n) => {
+function BNe(e, t, n) {
+ let r = e.id, i = _P(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), f = () => H.getQueryData(i) || e, p = (e) => {
@@ -76031,7 +76006,7 @@ function VNe(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return dP(r, n), t;
+ return fP(r, n), t;
}, m = (e, t) => V(e, {
id: r,
...t
@@ -76046,7 +76021,7 @@ function VNe(e, t, n) {
run: n
}));
}, _ = async (e, t) => {
- let n = await m(yP, t === void 0 ? { kind: e } : {
+ let n = await m(bP, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -76066,21 +76041,21 @@ function VNe(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = hP(n, e);
- await _("rate", r), t.toast(r ? `已评 ${mP(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = gP(n, e);
+ await _("rate", r), t.toast(r ? `已评 ${hP(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(zP(e, r), { undo: async () => {
+ t.toast(BP(e, r), { undo: async () => {
e === "o" ? await _("o-undo") : e === "dispose" ? await _("dispose") : (r.feedback && await _(r.feedback), n.feedback && await _(n.feedback)), await t.trashChanged(f().disposal || null, !0);
} }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);
}),
later: () => g("later", "更新稍后看", async () => {
- let e = await m(xP, {});
+ let e = await m(SP, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(xP, {})).watch_later });
+ p({ watch_later: (await m(SP, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -76090,9 +76065,9 @@ function VNe(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(SP, { wanted: !e.wanted });
+ }), r = await m(CP, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(SP, e));
+ n(await m(CP, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -76106,7 +76081,7 @@ function VNe(e, t, n) {
});
u("保存中…");
try {
- o(await m(CP, {
+ o(await m(wP, {
liked: a,
reason: i
}));
@@ -76116,7 +76091,7 @@ function VNe(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(CP, r));
+ o(await m(wP, r));
} });
});
},
@@ -76125,30 +76100,30 @@ function VNe(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => NP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(bP, {
+ p((t) => PP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(xP, {
operation: "add",
tag: e.k
- }), p((t) => PP(t, e));
+ }), p((t) => FP(t, e));
} });
}),
addTag: (e) => {
let r = e.trim();
r && g(`add:${r}`, "添加标签", async () => {
- let e = await m(bP, {
+ let e = await m(xP, {
operation: "add",
tag: r
});
if (!e.ok) return;
let i = e.tag || r;
- MP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => PP(e, {
+ NP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => FP(e, {
k: i,
cat: "general"
- })), LP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
- await m(bP, {
+ })), RP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
+ await m(xP, {
operation: "remove",
tag: i
- }), p((e) => NP(e, i));
+ }), p((e) => PP(e, i));
} }));
});
}
@@ -76167,12 +76142,12 @@ function o4(e) {
let o = new Date(Date.UTC(n, r + 2, 0)).getUTCDate();
return Date.UTC(n, r + 1, Math.min(i, o));
}
-function HNe(e, t = Date.now()) {
+function VNe(e, t = Date.now()) {
let n = o4(e);
return n !== void 0 && a4(t) > n ? Infinity : i4;
}
function s4(e, t, n = Date.now()) {
- return !Number.isFinite(e) || e <= 0 || e > n ? !1 : HNe(t, n) === Infinity ? a4(e) > o4(t) : n - e < i4;
+ return !Number.isFinite(e) || e <= 0 || e > n ? !1 : VNe(t, n) === Infinity ? a4(e) > o4(t) : n - e < i4;
}
// src/react/wants/resource-cache.ts
var c4 = "peach.want-resources.v2";
@@ -76194,11 +76169,11 @@ function d4() {
return [];
}
}
-function UNe(e, t) {
+function HNe(e, t) {
let n = d4().find((t) => t.code === e);
return n && s4(n.saved, t) ? n : void 0;
}
-function WNe(e) {
+function UNe(e) {
let t = new Map(d4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
for (let r of e) {
if (!r.code) continue;
@@ -76207,7 +76182,7 @@ function WNe(e) {
}
return n;
}
-function GNe(e, t) {
+function WNe(e, t) {
if (t.state === "ready" && l4(t)) try {
let n = d4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
localStorage.setItem(c4, JSON.stringify([{
@@ -76218,11 +76193,11 @@ function GNe(e, t) {
} catch {}
}
// src/react/wants/resource-display.ts
-function KNe(e) {
+function GNe(e) {
let t = (e ?? "").trim(), n = /^([\d,]+)\s*B$/i.exec(t);
return /^[\d,.]+$/.test(t) ? "大小未知" : n ? Xn(Number(n[1].replaceAll(",", ""))) : e || "大小未知";
}
-function qNe(e) {
+function KNe(e) {
return /^更多评论.*(?:VIP|官方 App)/.test(e) ? "来源只返回了部分评论,资源链接可能不完整。" : e;
}
// src/react/wants/want-magnets.tsx
@@ -76237,7 +76212,7 @@ function f4({ icon: e, children: t, title: n }) {
});
}
function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a, queryUrl: o }) {
- let s = (0, F.useRef)(null), [c, l] = (0, F.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, F.useState)([]), f = hH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => UNe(h, e.release_date), [h, e.release_date]);
+ let s = (0, F.useRef)(null), [c, l] = (0, F.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, F.useState)([]), f = gH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => HNe(h, e.release_date), [h, e.release_date]);
(0, F.useEffect)(() => {
if (!s.current || c) return;
let e = new IntersectionObserver((t) => {
@@ -76257,7 +76232,7 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
],
queryFn: async ({ signal: t }) => {
let n = m.current, r = o || `/api/wants/magnets?id=${e.id}`, i = await B(`${r}${n ? `${r.includes("?") ? "&" : "?"}refresh=1` : ""}`, t);
- return m.current = n && i.state === "busy", GNe(h, i), i;
+ return m.current = n && i.state === "busy", WNe(h, i), i;
},
initialData: g?.result,
initialDataUpdatedAt: g?.saved,
@@ -76272,7 +76247,7 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
(0, F.useEffect)(() => {
_.data?.source_url && a?.(_.data.source_url);
}, [_.data?.source_url, a]), (0, F.useEffect)(() => {
- !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && gye(e.id, _.data.items.some((e) => e.protocol === "magnet"));
+ !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && mye(e.id, _.data.items.some((e) => e.protocol === "magnet"));
}, [
_.data,
o,
@@ -76280,7 +76255,7 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
]);
let v = n?.providers.find((e) => e.key === r && e.configured), y = (r) => {
!t && n?.available && v && r.protocol === "magnet" && f.run(r.id, async (t) => {
- let n = await V(JU, {
+ let n = await V(YU, {
magnet: r.uri,
provider: v.key,
target: v.target,
@@ -76291,7 +76266,7 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
if (!n.ok) throw Error(n.task.failure_detail || n.task.failure_label || "添加下载失败");
return n;
}, (e) => {
- d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: YU });
+ d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: XU });
});
}, b = (e) => {
f.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));
@@ -76309,39 +76284,39 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: WB,
- ...hV(x),
+ leadingIcon: GB,
+ ...gV(x),
onClick: () => {
x || (m.current = !0, _.refetch());
},
children: "重新查询"
})]
}),
- x ? /* @__PURE__ */ (0, I.jsx)(DH, { label: "正在查找资源链接" }) : null,
- S ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ x ? /* @__PURE__ */ (0, I.jsx)(OH, { label: "正在查找资源链接" }) : null,
+ S ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
title: "资源链接未取得",
children: S
}) : null,
- _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(uV, {
+ _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "neutral",
- children: qNe(e)
+ children: KNe(e)
}, e)),
- _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(vL, {
+ _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(bL, {
variant: "secondary",
size: "small",
className: "self-start",
- trailingIcon: OB,
+ trailingIcon: AB,
href: _.data.source_url,
target: "_blank",
rel: "noopener noreferrer",
children: "查看来源页"
}) : null,
- _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "neutral",
children: "暂未找到资源链接。"
}) : null,
- f.error ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ f.error ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
title: "操作未完成",
children: f.error
@@ -76356,7 +76331,7 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
className: "flex min-w-0 flex-col gap-1",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(KU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(qU, {
variant: "caption",
color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",
children: e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ED2K" : "网页链接"
@@ -76371,25 +76346,25 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
className: "flex flex-wrap gap-x-2 gap-y-1 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, I.jsx)(f4, {
- icon: bge,
+ icon: yge,
children: e.source
}),
/* @__PURE__ */ (0, I.jsx)(f4, {
- icon: IB,
+ icon: LB,
title: e.size ? `来源大小:${e.size}` : void 0,
- children: KNe(e.size)
+ children: GNe(e.size)
}),
e.files ? /* @__PURE__ */ (0, I.jsx)(f4, {
- icon: lge,
+ icon: cge,
children: e.files.replaceAll("個", "个")
}) : null,
/* @__PURE__ */ (0, I.jsx)(f4, {
- icon: Qhe,
+ icon: Xhe,
title: e.source === "JavDB 评论" ? "评论日期" : "收录日期",
children: e.date ? e.date.slice(0, 10) : "日期未知"
}),
e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, I.jsx)(f4, {
- icon: UB,
+ icon: WB,
children: e
}, e))
]
@@ -76398,11 +76373,11 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
"data-resource-actions": "",
className: "flex flex-wrap gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(vL, {
+ /* @__PURE__ */ (0, I.jsx)(bL, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: OB,
+ trailingIcon: AB,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -76411,18 +76386,18 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: cge,
- ...hV(f.busy === `copy:${e.id}`),
+ leadingIcon: oge,
+ ...gV(f.busy === `copy:${e.id}`),
onClick: () => b(e),
children: "复制链接"
}),
e.protocol === "magnet" ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
size: "small",
- leadingIcon: v ? HH(v.key) : rge,
+ leadingIcon: v ? UH(v.key) : tge,
title: v ? `下载到 ${v.label}` : void 0,
disabled: t || !n?.available || !v || r,
- ...hV(f.busy === e.id),
+ ...gV(f.busy === e.id),
onClick: () => y(e),
children: r ? "已添加" : "添加下载"
}) : null
@@ -76433,7 +76408,7 @@ function p4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
children: e.slice(0, 3)
- }), e.length > 3 ? /* @__PURE__ */ (0, I.jsx)(zH, {
+ }), e.length > 3 ? /* @__PURE__ */ (0, I.jsx)(BH, {
summary: `更多资源(${e.length - 3} 条)`,
children: /* @__PURE__ */ (0, I.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
@@ -76456,7 +76431,7 @@ function h4() {
return [];
}
}
-function JNe(e, t) {
+function qNe(e, t) {
if (t.ok && !t.cache_stale) try {
let n = Date.parse(t.checked_at || ""), r = [{
code: e,
@@ -76466,7 +76441,7 @@ function JNe(e, t) {
i.length <= 2e6 && localStorage.setItem(m4, i);
} catch {}
}
-function YNe(e, t) {
+function JNe(e, t) {
let n = h4(), r = [], i = Infinity;
for (let a = 1; a <= 8; a++) {
let o = n.find((t) => t.code === e && t.result.page === a);
@@ -76478,11 +76453,11 @@ function YNe(e, t) {
saved: i
} : void 0;
}
-function XNe(e, t, n) {
+function YNe(e, t, n) {
return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && s4(Date.parse(e.checked_at || "") || t, n));
}
// src/react/jav-detail/jav-detail-page.tsx
-function ZNe(e) {
+function XNe(e) {
let t = (0, F.useRef)(!1), n = Ft({
queryKey: K2(e.code),
queryFn: ({ signal: n }) => {
@@ -76497,7 +76472,7 @@ function ZNe(e) {
"data-jav-detail": "",
"data-item-detail": "",
"data-stage-grid": "",
- children: n.data ? /* @__PURE__ */ (0, I.jsx)(QNe, {
+ children: n.data ? /* @__PURE__ */ (0, I.jsx)(ZNe, {
...e,
item: n.data,
retry: r,
@@ -76520,7 +76495,7 @@ var g4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function QNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
+function ZNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
(0, F.useEffect)(() => {
n.canonicalCode?.(t.code);
}, [n, t.code]), (0, F.useEffect)(() => {
@@ -76540,13 +76515,13 @@ function QNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
label: "视频预览",
video: !0
}] : []
- ], [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(t.want_id), p = hH(), m = () => {
- p.run("want", async (e) => d ? (await sW([d], e), null) : (await oW({ code: t.code }, e)).want.id, (t) => {
+ ], [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(t.want_id), p = gH(), m = () => {
+ p.run("want", async (e) => d ? (await cW([d], e), null) : (await sW({ code: t.code }, e)).want.id, (t) => {
f(t), H.setQueryData(K2(e), (e) => e && {
...e,
wanted: !!t,
want_id: t
- }), n.receipt(t ? "已加入想要" : "已取消想要"), cW(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
+ }), n.receipt(t ? "已加入想要" : "已取消想要"), lW(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
});
};
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
@@ -76563,7 +76538,7 @@ function QNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
onClick: () => s(o === -2 ? -1 : -2),
children: [/* @__PURE__ */ (0, I.jsx)(_4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
}) : null,
- o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(tPe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(pQ, {
+ o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(ePe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(pQ, {
item: t,
image: o === -1 ? "cover" : String(o)
}, t.code),
@@ -76586,7 +76561,7 @@ function QNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-stage-side-content": "",
"data-jav-info": "",
children: [
- /* @__PURE__ */ (0, I.jsx)($Ne, { item: t }),
+ /* @__PURE__ */ (0, I.jsx)(QNe, { item: t }),
Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(y4, { score: Number(t.score) }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "mono",
@@ -76602,7 +76577,7 @@ function QNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
value: t.duration ? `${t.duration} 分钟` : void 0
})]
}),
- /* @__PURE__ */ (0, I.jsx)(ePe, {
+ /* @__PURE__ */ (0, I.jsx)($Ne, {
item: t,
navigate: n.navigate
}),
@@ -76641,14 +76616,14 @@ function QNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
t.summary ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-jav-summary": "",
"data-long-text": "",
- lang: zI(t.summary),
+ lang: VI(t.summary),
children: t.summary
}) : null,
- t.message ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ t.message ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...hV(a),
+ ...gV(a),
onClick: i,
children: "立即重试"
}),
@@ -76657,10 +76632,10 @@ function QNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-actions": "",
children: [
- t.source_url ? /* @__PURE__ */ (0, I.jsx)(vL, {
+ t.source_url ? /* @__PURE__ */ (0, I.jsx)(bL, {
"data-button-link": "",
variant: "secondary",
- trailingIcon: OB,
+ trailingIcon: AB,
href: t.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -76670,7 +76645,7 @@ function QNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
variant: "secondary",
disabled: r,
"aria-pressed": !!d,
- ...hV(!!p.busy),
+ ...gV(!!p.busy),
onClick: m,
children: d ? "取消想要" : "想要"
}),
@@ -76688,16 +76663,16 @@ function QNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
})
]
}),
- p.error ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ p.error ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "error",
children: p.error
}) : null,
- /* @__PURE__ */ (0, I.jsx)(nPe, {
+ /* @__PURE__ */ (0, I.jsx)(tPe, {
code: t.code,
count: t.comments_count,
released: t.release_date
}),
- /* @__PURE__ */ (0, I.jsx)(rPe, {
+ /* @__PURE__ */ (0, I.jsx)(nPe, {
item: t,
actions: n,
readOnly: r
@@ -76705,7 +76680,7 @@ function QNe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
]
})
}),
- /* @__PURE__ */ (0, I.jsx)(nW, {
+ /* @__PURE__ */ (0, I.jsx)(rW, {
prefill: l,
close: () => u(null),
receipt: n.receipt
@@ -76721,7 +76696,7 @@ var _4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
children: [/* @__PURE__ */ (0, I.jsx)(_4, { name: e }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
}) : null;
-function $Ne({ item: e }) {
+function QNe({ item: e }) {
let { text: t, expanded: n, foldable: r, toggle: i } = W2(e.title), a = e.title === e.code ? "" : e.title;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-title": "",
@@ -76738,7 +76713,7 @@ function $Ne({ item: e }) {
r && !String(getSelection() || "") && i();
},
children: [/* @__PURE__ */ (0, I.jsx)("b", { children: e.code }), a ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [" ", /* @__PURE__ */ (0, I.jsx)("span", {
- lang: zI(a),
+ lang: VI(a),
children: a
})] }) : null]
})
@@ -76752,7 +76727,7 @@ function $Ne({ item: e }) {
"aria-label": n ? "收起标题" : "展开标题",
title: n ? "收起标题" : "展开完整标题",
onClick: i,
- children: /* @__PURE__ */ (0, I.jsx)(NH, {})
+ children: /* @__PURE__ */ (0, I.jsx)(PH, {})
})
})]
});
@@ -76770,7 +76745,7 @@ function y4({ score: e, review: t = !1 }) {
})]
});
}
-function ePe({ item: e, navigate: t }) {
+function $Ne({ item: e, navigate: t }) {
let n = (e, n) => t(Pn(e, n)), r = (t, r, i, a) => i.length ? /* @__PURE__ */ (0, I.jsxs)("section", {
"data-id-group": t,
"data-id-gender": a,
@@ -76812,18 +76787,18 @@ function ePe({ item: e, navigate: t }) {
})]
});
}
-function tPe({ src: e }) {
+function ePe({ src: e }) {
let t = (0, F.useRef)(null), [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(0);
return (0, F.useLayoutEffect)(() => {
let n = t.current, i = document.createElement("video");
- return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), Oue(i, {
+ return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), Due(i, {
src: e,
type: /\.m3u8(?:\?|$)/i.test(e) ? "application/x-mpegURL" : "video/mp4"
}, () => r(!0));
}, [e, i]), /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
"data-jav-video": "",
- children: n ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -76836,8 +76811,8 @@ function tPe({ src: e }) {
}) : null
});
}
-function nPe({ code: e, count: t, released: n }) {
- let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => YNe(e, n), [e, n]), s = (0, F.useRef)(!1), c = Lt({
+function tPe({ code: e, count: t, released: n }) {
+ let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => JNe(e, n), [e, n]), s = (0, F.useRef)(!1), c = Lt({
queryKey: ["jav-reviews", e],
enabled: i,
initialPageParam: 1,
@@ -76846,12 +76821,12 @@ function nPe({ code: e, count: t, released: n }) {
pageParams: o.pageParams
} : void 0,
initialDataUpdatedAt: o?.saved,
- staleTime: (e) => XNe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
+ staleTime: (e) => YNe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
gcTime: 864e5,
refetchOnWindowFocus: !1,
queryFn: async ({ signal: t, pageParam: n }) => {
- let i = await gNe(e, n, t, s.current);
- if (JNe(e, i), !i.ok || i.cache_stale) {
+ let i = await hNe(e, n, t, s.current);
+ if (qNe(e, i), !i.ok || i.cache_stale) {
let t = r.getQueryData(["jav-reviews", e])?.pages.find((e) => e.page === n);
if (t?.ok) return {
...t,
@@ -76861,7 +76836,7 @@ function nPe({ code: e, count: t, released: n }) {
}
return i;
},
- getNextPageParam: _Ne
+ getNextPageParam: gNe
});
(0, F.useEffect)(() => {
c.isFetching || (s.current = !1);
@@ -76869,10 +76844,10 @@ function nPe({ code: e, count: t, released: n }) {
let l = c.data?.pages || [], u = [...new Map(l.flatMap((e) => e.items).map((e) => [e.id, e])).values()], d = c.error ? lr(c.error) : l.find((e) => !e.ok || e.cache_stale)?.message;
return /* @__PURE__ */ (0, I.jsx)("section", {
"data-jav-reviews": "",
- children: /* @__PURE__ */ (0, I.jsxs)(zH, {
+ children: /* @__PURE__ */ (0, I.jsxs)(BH, {
trailing: !0,
summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)($he, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(Zhe, { "aria-hidden": !0 }),
"评论",
t > 0 ? ` · ${t}` : ""
] }),
@@ -76921,28 +76896,28 @@ function nPe({ code: e, count: t, released: n }) {
]
}), /* @__PURE__ */ (0, I.jsx)("p", {
"data-long-text": "",
- lang: zI(e.content),
+ lang: VI(e.content),
children: e.content
})]
}, e.id)),
- d ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ d ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...hV(c.isFetching),
+ ...gV(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
children: "立即重试"
}),
children: d
- }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(uV, {
+ }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(dV, {
tone: "neutral",
children: "暂无评论"
}) : null,
!d && l.length ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...hV(c.isFetching),
+ ...gV(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
@@ -76950,13 +76925,13 @@ function nPe({ code: e, count: t, released: n }) {
}) : null,
c.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...hV(c.isFetchingNextPage),
+ ...gV(c.isFetchingNextPage),
onClick: () => {
c.isFetchingNextPage || c.fetchNextPage();
},
children: "更多评论"
}) : null,
- !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(uV, {
+ !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(dV, {
tone: "neutral",
children: [
"已显示 ",
@@ -76968,15 +76943,15 @@ function nPe({ code: e, count: t, released: n }) {
})
});
}
-function rPe({ item: e, actions: t, readOnly: n }) {
+function nPe({ item: e, actions: t, readOnly: n }) {
let [r, i] = (0, F.useState)(!1), a = Ft({
- queryKey: YU,
+ queryKey: XU,
enabled: r,
- queryFn: ({ signal: e }) => B(`${JU}?limit=50`, e)
+ queryFn: ({ signal: e }) => B(`${YU}?limit=50`, e)
}), o = a.data?.providers.find((e) => e.configured)?.key || "", [s, c] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("section", {
"data-jav-resources": "",
- children: /* @__PURE__ */ (0, I.jsx)(zH, {
+ children: /* @__PURE__ */ (0, I.jsx)(BH, {
trailing: !0,
summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(_4, { name: "link" }), "资源"] }),
onOpenChange: (e) => {
@@ -77000,16 +76975,16 @@ function rPe({ item: e, actions: t, readOnly: n }) {
}
// src/react/stage/stage-player.ts
var b4 = null, x4 = null, S4 = null, C4 = null, w4 = null, T4 = !1, E4 = 0, D4 = null, O4 = () => !1, k4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function iPe(e, t) {
- b4 = e, O4 = () => t.isOpen(), D4 = () => t.requestClose(), Ule({
+function rPe(e, t) {
+ b4 = e, O4 = () => t.isOpen(), D4 = () => t.requestClose(), Hle({
...e.player,
stage: () => document.getElementById("stage")
- }), Wle({
+ }), Ule({
inMiniplayer: (e) => x4?.player === e,
kind: (e) => x4?.player === e ? x4.kind : S4?.kind ?? C4?.kind ?? "item",
expand: () => Y4(),
toMiniplayer: () => X4()
- }), A4 || (A4 = !0, addEventListener("pagehide", () => GN()));
+ }), A4 || (A4 = !0, addEventListener("pagehide", () => KN()));
}
var A4 = !1;
function j4() {
@@ -77019,10 +76994,10 @@ function j4() {
function M4(e) {
C4 = e;
}
-var aPe = () => C4;
+var iPe = () => C4;
function N4(e, t) {
let { kind: n, item: r, media: i = null } = t, a = k4(n, r.id, i?.index ?? null);
- if (x4 && x4.key === a) return sPe(e, x4);
+ if (x4 && x4.key === a) return oPe(e, x4);
x4 && J4();
let o = {
player: null,
@@ -77034,7 +77009,7 @@ function N4(e, t) {
S4 = o;
let s = document.createElement("video");
t.id && (s.id = t.id), s.className = "video-js vjs-big-play-centered", s.controls = !1, s.setAttribute("playsinline", ""), s.preload = "metadata", t.poster && (s.poster = t.poster), t.onError && s.addEventListener("error", t.onError), e.append(s);
- let c = iP(s, {
+ let c = aP(s, {
kind: n,
item: r,
media: i,
@@ -77047,10 +77022,10 @@ function N4(e, t) {
});
return () => {
let e = !!o.player && x4?.player === o.player;
- S4 === o && (S4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), GN());
+ S4 === o && (S4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), KN());
};
}
-async function oPe(e, t, n) {
+async function aPe(e, t, n) {
let r = await Tn(`/api/item?id=${e.id}`, { signal: n });
if (n.throwIfAborted(), !r || r.error) throw Error(r?.error || "作品未取得");
if (r.medium && r.medium !== "video") throw Error("这条作品没有可播放的视频");
@@ -77074,9 +77049,9 @@ async function oPe(e, t, n) {
s || (s = !0, e && C4 === a && F4(!0), o(), C4 === a && M4(null));
};
}
-function sPe(e, t) {
+function oPe(e, t) {
let { player: n } = t;
- K4(t), x4 = null, q4(), n.el().classList.remove("vjs-peach-mini"), nP(e), e.append(n.el()), YM(n);
+ K4(t), x4 = null, q4(), n.el().classList.remove("vjs-peach-mini"), rP(e), e.append(n.el()), XM(n);
let r = {
player: n,
kind: t.kind,
@@ -77085,9 +77060,9 @@ function sPe(e, t) {
key: t.key
};
S4 = r;
- let i = rP(n, e);
- return XM(n), () => {
- S4 === r && (S4 = null), i(), x4?.player !== n && (JM() === n && YM(null), IN(n), GN());
+ let i = iP(n, e);
+ return ZM(n), () => {
+ S4 === r && (S4 = null), i(), x4?.player !== n && (YM() === n && XM(null), LN(n), KN());
};
}
var P4 = () => {
@@ -77100,7 +77075,7 @@ function F4(e) {
let n = S4, r = n?.player, i = C4;
if (!n || !r || r.isDisposed() || !i || !w4) return;
let a = j4().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && dPe({
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && uPe({
player: r,
kind: n.kind,
item: n.item,
@@ -77115,11 +77090,11 @@ function L4(e) {
w4 = e, w4 && W4();
}
var R4 = () => !!x4 && !x4.pending && !x4.player.isDisposed();
-function cPe() {
+function sPe() {
return R4() ? w4?.frame.querySelector("video") ?? null : null;
}
-function lPe() {
- return O4() ? document.getElementById("stage")?.querySelector("video") ?? null : P4()?.el().querySelector("video") ?? cPe();
+function cPe() {
+ return O4() ? document.getElementById("stage")?.querySelector("video") ?? null : P4()?.el().querySelector("video") ?? sPe();
}
function z4(e) {
w4 && (w4.title.textContent = e.title || "", w4.sub.textContent = e.sub || "", w4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
@@ -77168,7 +77143,7 @@ function G4(e) {
function K4(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function uPe() {
+function lPe() {
let e = w4?.root;
if (!e) return;
let t = e.hidden;
@@ -77189,7 +77164,7 @@ function q4() {
e.style.transform = "";
}
}
-function dPe(e, t) {
+function uPe(e, t) {
if (!w4) return;
let n = {
...e,
@@ -77197,13 +77172,13 @@ function dPe(e, t) {
off: [],
pending: !1
};
- x4 = n, E4++, e.player.el().classList.add("vjs-peach-mini"), w4.frame.prepend(e.player.el()), z4(t), G4(n), uPe(), XM(e.player);
+ x4 = n, E4++, e.player.el().classList.add("vjs-peach-mini"), w4.frame.prepend(e.player.el()), z4(t), G4(n), lPe(), ZM(e.player);
}
function J4() {
let e = x4;
e && K4(e), x4 = null, E4++;
let t = e?.player ?? null;
- t && JM() === t && YM(null), IN(t), t && GN(), w4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), KM(), q4();
+ t && YM() === t && XM(null), LN(t), t && KN(), w4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), qM(), q4();
}
function Y4() {
if (!R4() || !x4) return;
@@ -77213,7 +77188,7 @@ function Y4() {
function X4() {
R4() && !O4() ? Y4() : O4() && P4() && D4 && (T4 = !0, D4());
}
-function fPe() {
+function dPe() {
let e = x4?.player;
e && !e.isDisposed() && (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
@@ -77226,7 +77201,7 @@ function Z4(e) {
function Q4(e) {
return !(!R4() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || j4().sourceOffline(String(e.root_id || e.location || "")));
}
-async function pPe(e) {
+async function fPe(e) {
if (!R4() || !x4 || !w4) return;
let t = ++E4, n = await Tn(`/api/item?id=${e}`).catch(() => null);
if (t !== E4 || !R4() || !x4 || !w4 || !n || n.error) return;
@@ -77235,7 +77210,7 @@ async function pPe(e) {
return;
}
let r = x4;
- K4(r), JM() === r.player && YM(null), IN(r.player), GN(), w4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ K4(r), YM() === r.player && XM(null), LN(r.player), KN(), w4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", w4.frame.prepend(i);
let a = {
@@ -77244,14 +77219,14 @@ async function pPe(e) {
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- z4(a), iP(i, {
+ z4(a), aP(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
if (t !== E4) {
- r && JM() === r && YM(null), IN(r);
+ r && YM() === r && XM(null), LN(r);
return;
}
if (!r) {
@@ -77278,9 +77253,9 @@ var $4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
-}), mPe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, e3 = (e) => (t) => {
+}), pPe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, e3 = (e) => (t) => {
t.stopPropagation(), e();
-}, hPe = (0, F.memo)(function() {
+}, mPe = (0, F.memo)(function() {
let e = (0, F.useRef)(null), t = (0, F.useRef)(null), n = (0, F.useRef)(null), r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = (0, F.useRef)(null), l = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => (L4({
root: e.current,
@@ -77292,7 +77267,7 @@ var $4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => L4(null)), []), (0, F.useEffect)(() => vPe(e.current, t.current), []), (0, F.useEffect)(() => gPe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
+ }), () => L4(null)), []), (0, F.useEffect)(() => _Pe(e.current, t.current), []), (0, F.useEffect)(() => hPe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -77342,8 +77317,8 @@ var $4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: e3(fPe),
- dangerouslySetInnerHTML: mPe
+ onClick: e3(dPe),
+ dangerouslySetInnerHTML: pPe
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: o,
@@ -77382,7 +77357,7 @@ var $4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
})
});
});
-function gPe(e) {
+function hPe(e) {
let t = () => {
let t = e.dataset.corner || "";
!e.hidden && t.startsWith("b") && (t === "br" || innerWidth <= 600) ? document.documentElement.style.setProperty("--miniplayer-space", `${Math.ceil(e.offsetHeight + 16 + 12)}px`) : document.documentElement.style.removeProperty("--miniplayer-space");
@@ -77396,7 +77371,7 @@ function gPe(e) {
n.disconnect(), r.disconnect(), window.removeEventListener("resize", t), document.documentElement.style.removeProperty("--miniplayer-space");
};
}
-function _Pe(e, t, n) {
+function gPe(e, t, n) {
let r = e.getBoundingClientRect(), i = (r.top + r.height / 2 < innerHeight / 2 ? "t" : "b") + (r.left + r.width / 2 < innerWidth / 2 ? "l" : "r"), a = parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 56, o = {
left: r.left - t,
top: r.top - n
@@ -77418,7 +77393,7 @@ function _Pe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function vPe(e, t) {
+function _Pe(e, t) {
let n = null, r = (e) => {
if (!(e.button !== 0 || e.target.closest("[data-miniplayer-button],[data-miniplayer-play],[data-miniplayer-seek],.vjs-control-bar"))) {
n = {
@@ -77444,7 +77419,7 @@ function vPe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), _Pe(e, i.dx, i.dy));
+ }, 0), gPe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -77463,25 +77438,25 @@ function u3() {
if (!t3) throw Error("舞台还没有接上宿主(configureStage)");
return t3;
}
-function yPe(e) {
+function vPe(e) {
return i3.add(e), () => {
i3.delete(e);
};
}
-function bPe() {
+function yPe() {
for (let e of [...i3]) e();
}
function d3() {
- (0, Rt.flushSync)(bPe);
+ (0, Rt.flushSync)(yPe);
}
-function xPe({ view: e }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(SPe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(hPe, {})] });
+function bPe({ view: e }) {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(xPe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(mPe, {})] });
}
var f3 = () => /* @__PURE__ */ (0, I.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: bMe() }
+ dangerouslySetInnerHTML: { __html: yMe() }
});
function p3(e) {
let t = e.currentTarget;
@@ -77490,14 +77465,14 @@ function p3(e) {
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
function m3() {
- let e = l3(), t = e && CMe(e);
+ let e = l3(), t = e && SMe(e);
t ? (t.focus({ preventScroll: !0 }), t.dispatchEvent(new KeyboardEvent("keydown", {
key: "Escape",
bubbles: !0,
cancelable: !0
}))) : h3();
}
-function SPe({ view: e }) {
+function xPe({ view: e }) {
let t = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
let e = t.current, n = (t) => {
@@ -77505,7 +77480,7 @@ function SPe({ view: e }) {
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(TNe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(ZNe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(oNe, { ...r.props }, r.props.id);
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(wNe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(XNe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(aNe, { ...r.props }, r.props.id);
return /* @__PURE__ */ (0, I.jsxs)("dialog", {
ref: t,
id: "stage",
@@ -77532,7 +77507,7 @@ function SPe({ view: e }) {
"data-stage-scroll": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(CD, {
+ children: /* @__PURE__ */ (0, I.jsx)(wD, {
getContainer: () => Q0(t.current),
children: i
})
@@ -77625,7 +77600,7 @@ function _3(e) {
}
};
}
-function CPe(e, t) {
+function SPe(e, t) {
let n = e.querySelector(":scope > [data-stage-fade]");
e.setAttribute("data-stage-reveal", ""), e.getBoundingClientRect(), e.setAttribute("data-stage-revealing", "");
let r = 0, i = () => {
@@ -77642,7 +77617,7 @@ function v3(e) {
let t = l3();
return !n3 || n3.content.kind !== e || s3 || !t?.open || t.hasAttribute("data-closing") ? null : t;
}
-async function wPe(e) {
+async function CPe(e) {
!r3 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (r3 = {
left: window.scrollX,
top: window.scrollY,
@@ -77650,7 +77625,7 @@ async function wPe(e) {
});
let t = v3(e.kind);
if (t) {
- await EPe(e, t);
+ await TPe(e, t);
return;
}
n3 && y3({ miniplayer: !1 });
@@ -77663,12 +77638,12 @@ async function wPe(e) {
content: i,
phase: "skeleton"
};
- let a = i.kind === "item" ? jP(i.props, r.signal) : i.kind === "jav" ? J2(i.props, r.signal) : i2(i.props, r.signal);
+ let a = i.kind === "item" ? MP(i.props, r.signal) : i.kind === "jav" ? J2(i.props, r.signal) : i2(i.props, r.signal);
if (n !== a3 || n3?.request !== e) {
await a.catch(() => {});
return;
}
- let o = TPe(i);
+ let o = wPe(i);
n3 = {
...n3,
phase: o ? "content" : "skeleton"
@@ -77689,31 +77664,31 @@ async function wPe(e) {
n3 = {
...n3,
phase: c ? "content" : "reveal"
- }, d3(), c || CPe(s, n), tc(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, d3(), c || SPe(s, n), tc(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let l = document.activeElement;
l !== s && s.contains(l) || s.querySelector("#closeStage")?.focus();
}
-function TPe(e) {
+function wPe(e) {
if (e.kind === "jav") return !!H.getQueryData(K2(e.props.code));
if (e.kind === "follow") return !!H.getQueryData(t2(e.props.id));
- let { queue: t, id: n } = e.props, r = t ? H.getQueryData(_P(t)) : null;
+ let { queue: t, id: n } = e.props, r = t ? H.getQueryData(vP(t)) : null;
if (t && !r) return !1;
- let i = r ? kP(r, n) : n;
- return i != null && !!H.getQueryData(gP(i));
+ let i = r ? AP(r, n) : n;
+ return i != null && !!H.getQueryData(_P(i));
}
-async function EPe(e, t) {
+async function TPe(e, t) {
let n = ++a3;
o3?.abort();
let r = new AbortController();
o3 = r, c3 = !1;
let i = _3(e);
try {
- i.kind === "item" ? await jP(i.props, r.signal) : i.kind === "jav" ? await J2(i.props, r.signal) : await i2(i.props, r.signal);
+ i.kind === "item" ? await MP(i.props, r.signal) : i.kind === "jav" ? await J2(i.props, r.signal) : await i2(i.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
if (n !== a3 || !n3 || v3(e.kind) !== t) return;
- e.kind === "jav" ? J4() : I4(e.kind, e.id ?? NaN), Nl(t), KM(), n3 = {
+ e.kind === "jav" ? J4() : I4(e.kind, e.id ?? NaN), Nl(t), qM(), n3 = {
...n3,
request: e,
content: i,
@@ -77722,7 +77697,7 @@ async function EPe(e, t) {
let a = document.activeElement;
a !== t && t.contains(a) || (t.querySelector("[data-mix-item][aria-current=\"true\"]") || t.querySelector("#closeStage"))?.focus({ preventScroll: !0 });
}
-function DPe() {
+function EPe() {
e2(null);
let e = l3();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
@@ -77737,7 +77712,7 @@ function DPe() {
function y3({ miniplayer: e = !0 } = {}) {
if (a3++, o3?.abort(), o3 = null, F4(e), !n3) return;
let t = l3();
- t && Nl(t), KM(), e2(null), t?.open && t.close(), n3 = null, s3 = !1, c3 = !1, d3(), M4(null), document.body.removeAttribute("data-detail-open");
+ t && Nl(t), qM(), e2(null), t?.open && t.close(), n3 = null, s3 = !1, c3 = !1, d3(), M4(null), document.body.removeAttribute("data-detail-open");
let n = r3;
r3 = null;
let r = () => {
@@ -77749,7 +77724,7 @@ function y3({ miniplayer: e = !0 } = {}) {
};
r(), requestAnimationFrame(r);
}
-function OPe(e) {
+function DPe(e) {
n3 && (n3 = {
...n3,
content: n3.content.kind === "item" ? {
@@ -77767,62 +77742,62 @@ function OPe(e) {
}
}, d3());
}
-function kPe() {
- let e = aPe(), t = e?.kind === "item" ? e.item : null, n = t ? ko(t, u3().player.settings().javImage) : "";
+function OPe() {
+ let e = iPe(), t = e?.kind === "item" ? e.item : null, n = t ? ko(t, u3().player.settings().javImage) : "";
if (!n) return;
let r = P4();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var APe = {
- open: wPe,
- update: OPe,
- exit: DPe,
+var kPe = {
+ open: CPe,
+ update: DPe,
+ exit: EPe,
dispose: y3,
requestClose: h3,
requestEscape: m3,
- repaintPoster: kPe,
+ repaintPoster: OPe,
isOpen: () => !!n3,
showing: () => n3 && v3(n3.content.kind) ? n3.content.kind : null,
- activeVideo: () => lPe(),
- mountWallPlayer: oPe,
+ activeVideo: () => cPe(),
+ mountWallPlayer: aPe,
toggleTheater: () => {
- n3 && CN(!u3().player.settings().theaterMode);
+ n3 && wN(!u3().player.settings().theaterMode);
},
toggleMiniplayer: () => X4(),
closeMiniplayer: () => J4(),
miniplayerActive: () => R4(),
miniplayerTakesCard: (e) => Q4(e),
miniplayerPlay: (e) => {
- pPe(e);
+ fPe(e);
}
};
-function jPe(e) {
- return t3 = e, iPe(e, {
+function APe(e) {
+ return t3 = e, rPe(e, {
isOpen: () => !!n3,
requestClose: h3
- }), APe;
+ }), kPe;
}
-function MPe() {
- let e = (0, F.useSyncExternalStore)(yPe, () => n3);
- return t3 ? /* @__PURE__ */ (0, I.jsx)(xPe, { view: e }) : null;
+function jPe() {
+ let e = (0, F.useSyncExternalStore)(vPe, () => n3);
+ return t3 ? /* @__PURE__ */ (0, I.jsx)(bPe, { view: e }) : null;
}
// src/react/stats/stats.ts
-var NPe = "/api/stats", b3 = ["stats"], x3 = (e) => B(NPe, e);
-async function PPe(e) {
+var MPe = "/api/stats", b3 = ["stats"], x3 = (e) => B(MPe, e);
+async function NPe(e) {
await H.fetchQuery({
queryKey: b3,
queryFn: () => x3(e)
});
}
-var S3 = (e) => e != null && Number.isFinite(e), FPe = (e) => S3(e) ? e.toLocaleString() : "未取得", IPe = (e, t) => S3(e) && S3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, LPe = (e, t) => {
- let n = IPe(e, t);
+var S3 = (e) => e != null && Number.isFinite(e), PPe = (e) => S3(e) ? e.toLocaleString() : "未取得", FPe = (e, t) => S3(e) && S3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, IPe = (e, t) => {
+ let n = FPe(e, t);
return !n && S3(e) && e > 0 && S3(t) && t > 0 ? "<1%" : `${n}%`;
}, C3 = (e) => {
if (!S3(e)) return "未取得";
let t = Math.max(0, e);
return t >= 172800 ? `${(t / 86400).toLocaleString(void 0, { maximumFractionDigits: 1 })} 天` : t >= 3600 ? `${(t / 3600).toFixed(1)} 小时` : `${Math.round(t / 60)} 分钟`;
-}, w3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, T3 = (e) => (e.max_reached || 0) * 100, RPe = (e) => e.kind === "online" ? "在线直接观看" : w3(e) < T3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", zPe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
-function BPe(e, t = 6) {
+}, w3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, T3 = (e) => (e.max_reached || 0) * 100, LPe = (e) => e.kind === "online" ? "在线直接观看" : w3(e) < T3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", RPe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
+function zPe(e, t = 6) {
let n = e.filter((e) => Number.isFinite(e.value) && e.value >= 0);
if (n.length <= t) return n;
let r = [...n].sort((e, t) => t.value - e.value), i = r.slice(t - 1);
@@ -77832,7 +77807,7 @@ function BPe(e, t = 6) {
bytes: i.reduce((e, t) => e + (t.bytes ?? 0), 0)
}];
}
-var VPe = (e) => Math.max(1, ...e) * 1.1, HPe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, UPe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), WPe = {
+var BPe = (e) => Math.max(1, ...e) * 1.1, VPe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, HPe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), UPe = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -77840,10 +77815,10 @@ var VPe = (e) => Math.max(1, ...e) * 1.1, HPe = (e, t) => e > 0 ? Math.max(e, t
audio: "音频",
account: "账号",
other: "其它文件"
-}, GPe = (e) => e.map((e) => ({
- name: WPe[e.k] ?? e.k,
+}, WPe = (e) => e.map((e) => ({
+ name: UPe[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), KPe = {
+})).sort((e, t) => t.value - e.value), GPe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
@@ -77851,7 +77826,7 @@ var VPe = (e) => Math.max(1, ...e) * 1.1, HPe = (e, t) => e > 0 ? Math.max(e, t
}, E3 = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), qPe = (e) => E3(e, KPe), JPe = [
+})), KPe = (e) => E3(e, GPe), qPe = [
[
1,
1,
@@ -77887,7 +77862,7 @@ var VPe = (e) => Math.max(1, ...e) * 1.1, HPe = (e, t) => e > 0 ? Math.max(e, t
Infinity,
"≥10"
]
-], YPe = (e) => JPe.map(([t, n, r]) => ({
+], JPe = (e) => qPe.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
}));
@@ -77922,7 +77897,7 @@ function k3(e, t) {
return n;
}
// node_modules/d3-sankey/src/align.js
-function XPe(e, t) {
+function YPe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
// node_modules/d3-sankey/src/constant.js
@@ -77944,13 +77919,13 @@ function N3(e, t) {
function P3(e) {
return e.value;
}
-function ZPe(e) {
+function XPe(e) {
return e.index;
}
-function QPe(e) {
+function ZPe(e) {
return e.nodes;
}
-function $Pe(e) {
+function QPe(e) {
return e.links;
}
function F3(e, t) {
@@ -77965,8 +77940,8 @@ function I3({ nodes: e }) {
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function eFe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = ZPe, c = XPe, l, u, d = QPe, f = $Pe, p = 6;
+function $Pe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = XPe, c = YPe, l, u, d = ZPe, f = QPe, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
@@ -78151,7 +78126,7 @@ function eFe() {
return m;
}
// node_modules/d3-path/src/path.js
-var L3 = Math.PI, R3 = 2 * L3, z3 = 1e-6, tFe = R3 - z3;
+var L3 = Math.PI, R3 = 2 * L3, z3 = 1e-6, eFe = R3 - z3;
function B3() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
@@ -78192,7 +78167,7 @@ B3.prototype = V3.prototype = {
e = +e, t = +t, n = +n, a = !!a;
var o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
if (n < 0) throw Error("negative radius: " + n);
- this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > z3 || Math.abs(this._y1 - l) > z3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % R3 + R3), d > tFe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > z3 && (this._ += "A" + n + "," + n + ",0," + +(d >= L3) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > z3 || Math.abs(this._y1 - l) > z3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % R3 + R3), d > eFe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > z3 && (this._ += "A" + n + "," + n + ",0," + +(d >= L3) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
},
rect: function(e, t, n, r) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t) + "h" + +n + "v" + +r + "h" + -n + "Z";
@@ -78208,25 +78183,25 @@ function H3(e) {
};
}
// node_modules/d3-shape/src/point.js
-function nFe(e) {
+function tFe(e) {
return e[0];
}
-function rFe(e) {
+function nFe(e) {
return e[1];
}
// node_modules/d3-shape/src/array.js
-var iFe = Array.prototype.slice;
+var rFe = Array.prototype.slice;
// node_modules/d3-shape/src/link/index.js
-function aFe(e) {
+function iFe(e) {
return e.source;
}
-function oFe(e) {
+function aFe(e) {
return e.target;
}
-function sFe(e) {
- var t = aFe, n = oFe, r = nFe, i = rFe, a = null;
+function oFe(e) {
+ var t = iFe, n = aFe, r = tFe, i = nFe, a = null;
function o() {
- var o, s = iFe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ var o, s = rFe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
if (a ||= o = V3(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;
}
return o.source = function(e) {
@@ -78241,54 +78216,54 @@ function sFe(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function cFe(e, t, n, r, i) {
+function sFe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function lFe() {
- return sFe(cFe);
+function cFe() {
+ return oFe(sFe);
}
// node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function uFe(e) {
+function lFe(e) {
return [e.source.x1, e.y0];
}
-function dFe(e) {
+function uFe(e) {
return [e.target.x0, e.y1];
}
-function fFe() {
- return lFe().source(uFe).target(dFe);
+function dFe() {
+ return cFe().source(lFe).target(uFe);
}
// src/react/taste/taste.ts
-var pFe = "/api/taste", U3 = "/api/taste/refresh", mFe = "/api/taste/import", W3 = "/api/taste/source", G3 = (e) => ["taste", e], hFe = ["taste", "refresh"], gFe = [
+var fFe = "/api/taste", U3 = "/api/taste/refresh", pFe = "/api/taste/import", W3 = "/api/taste/source", G3 = (e) => ["taste", e], mFe = ["taste", "refresh"], hFe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], _Fe = 2e3, vFe = (e) => e?.stale && !e.error ? _Fe : !1, yFe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
+], gFe = 2e3, _Fe = (e) => e?.stale && !e.error ? gFe : !1, vFe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
month: "numeric",
day: "numeric",
hour: "2-digit",
minute: "2-digit"
-}) : "—", bFe = (e, t) => V(W3, {
+}) : "—", yFe = (e, t) => V(W3, {
...e,
window: t
-}), K3 = (e, t, n = !1) => B(`${pFe}?window=${e}${n ? "&retry=1" : ""}`, t), xFe = (e) => B(U3, e);
-async function SFe(e, t) {
+}), K3 = (e, t, n = !1) => B(`${fFe}?window=${e}${n ? "&retry=1" : ""}`, t), bFe = (e) => B(U3, e);
+async function xFe(e, t) {
await H.fetchQuery({
queryKey: G3(e),
queryFn: () => K3(e, t)
});
}
-var CFe = (e) => V(U3, {
+var SFe = (e) => V(U3, {
window: e,
background: !0
-}), wFe = (e, t) => V(W3, {
+}), CFe = (e, t) => V(W3, {
operation: "remove",
source_key: e,
window: t
});
-async function TFe(e) {
- let t = await fetch(mFe, {
+async function wFe(e) {
+ let t = await fetch(pFe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -78306,8 +78281,8 @@ async function TFe(e) {
}
return n;
}
-var EFe = 1e4, q3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
-function DFe(e) {
+var TFe = 1e4, q3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
+function EFe(e) {
let t = `${Number(e.history_sources || 0).toLocaleString()} 个数据源`;
if (!e.range_start && !e.range_end) return t;
let n = e.range_start?.slice(0, 4) === e.range_end?.slice(0, 4), r = (e) => e && n ? new Date(e).toLocaleDateString("zh-CN", {
@@ -78316,31 +78291,31 @@ function DFe(e) {
}) : q3(e);
return `${t} · ${r(e.range_start)}–${r(e.range_end)}`;
}
-var OFe = C3, kFe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), AFe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function jFe(e) {
+var DFe = C3, OFe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), kFe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function AFe(e) {
if (e.web_visits == null && !e.web_bookmarks) return Number(e.score || e.visits || 0).toLocaleString();
let t = [], n = Number(e.web_bookmarks || 0), r = Number(e.web_visits ?? e.visits ?? 0) - n;
return r > 0 && t.push(`浏览 ${r.toLocaleString()}`), n && t.push(`书签 ${n.toLocaleString()}`), e.peach_items && t.push(`Peach ${Number(e.peach_items).toLocaleString()}`), t.join(" · ");
}
-function MFe(e) {
- let t = e.map(AFe), n = Math.max(1, ...t);
+function jFe(e) {
+ let t = e.map(kFe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
var J3 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
name: e.name,
value: Number(e.score)
})).sort((e, t) => t.value - e.value).slice(0, t);
-function NFe(e) {
+function MFe(e) {
let t = J3(e, 6);
return t.length < 3 ? [] : t;
}
var Y3 = {
width: 720,
height: 435
-}, PFe = {
+}, NFe = {
source: 145,
target: 545
-}, X3 = 30, FFe = 240;
+}, X3 = 30, PFe = 240;
function Z3(e, t, n) {
let r = /* @__PURE__ */ new Map();
for (let n of e) r.set(n[t], (r.get(n[t]) ?? 0) + n.value);
@@ -78348,7 +78323,7 @@ function Z3(e, t, n) {
let i = [...r].sort((e, t) => t[1] - e[1]).map(([e]) => e), a = new Set(i.slice(0, 11)), o = n(i.length - a.size);
return (e) => a.has(e) ? e : o;
}
-function IFe(e = []) {
+function FFe(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
let n = Z3(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = Z3(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
@@ -78360,7 +78335,7 @@ function IFe(e = []) {
value: e.value
});
}
- let a = [...i.values()], o = [...new Set(a.map((e) => e.source))], s = [...new Set(a.map((e) => e.target))], c = Math.max(o.length, s.length), l = Math.max(404, 16 + (c - 1) * X3 + FFe), u = eFe().nodeId((e) => e.id).nodeWidth(10).nodePadding(X3).extent([[155, 16], [535, l]])({
+ let a = [...i.values()], o = [...new Set(a.map((e) => e.source))], s = [...new Set(a.map((e) => e.target))], c = Math.max(o.length, s.length), l = Math.max(404, 16 + (c - 1) * X3 + PFe), u = $Pe().nodeId((e) => e.id).nodeWidth(10).nodePadding(X3).extent([[155, 16], [535, l]])({
nodes: [...o.map((e) => ({
id: `source:${e}`,
name: e,
@@ -78375,7 +78350,7 @@ function IFe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), d = a.reduce((e, t) => e + t.value, 0), f = fFe();
+ }), d = a.reduce((e, t) => e + t.value, 0), f = dFe();
return {
nodes: u.nodes.map((e) => ({
id: e.id,
@@ -78406,14 +78381,14 @@ function IFe(e = []) {
height: l + Y3.height - 404
};
}
-var LFe = (e) => tr(e, 17), Q3 = {
+var IFe = (e) => tr(e, 17), Q3 = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, RFe = [[
+}, LFe = [[
"big",
"大图 · 竖幅头像",
"maximize"
@@ -78421,7 +78396,7 @@ var LFe = (e) => tr(e, 17), Q3 = {
"compact",
"紧凑 · 圆形头像",
"layout-grid"
-]], zFe = [[
+]], RFe = [[
"big",
"大图 · 完整标识",
"maximize"
@@ -78429,7 +78404,7 @@ var LFe = (e) => tr(e, 17), Q3 = {
"compact",
"紧凑 · 圆形标识",
"layout-grid"
-]], BFe = [[
+]], zFe = [[
"big",
"大图 · 系列图片",
"maximize"
@@ -78437,7 +78412,7 @@ var LFe = (e) => tr(e, 17), Q3 = {
"compact",
"紧凑 · 系列图片",
"layout-grid"
-]], VFe = [
+]], BFe = [
[
"studios",
"厂牌",
@@ -78453,7 +78428,7 @@ var LFe = (e) => tr(e, 17), Q3 = {
"系列",
"file-stack"
]
-], HFe = [[
+], VFe = [[
"local",
"本地",
"hard-drive"
@@ -78461,7 +78436,7 @@ var LFe = (e) => tr(e, 17), Q3 = {
"online",
"在线",
"rss"
-]], UFe = [
+]], HFe = [
[
"performers",
"艺人",
@@ -78477,7 +78452,7 @@ var LFe = (e) => tr(e, 17), Q3 = {
"在线",
"rss"
]
-], WFe = [[
+], UFe = [[
"cloud",
"标签云",
"tags"
@@ -78504,12 +78479,12 @@ var t6 = (e, t, n) => Us(e.map(([e, t, n]) => ({
active: t,
label: n,
className: "indextabs"
-}), GFe = (e) => `<div class="peach-react contents"><div data-filter-glass data-glass-pane class="sticky top-topbar z-10 mb-5.5 flex flex-col">
+}), WFe = (e) => `<div class="peach-react contents"><div data-filter-glass data-glass-pane class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div class="flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2" data-filter-row="top" data-skeleton-tier="filter-pill" aria-label="标签类型"></div>
<div class="flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2" data-filter-row="bottom"><span class="countskeleton"></span>
- <span class="ml-auto">${$c("tag-view", "标签视图", WFe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
-function KFe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
- let o = Q3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? $c("people-layout", o + "索引版式", e === "series" ? BFe : c ? zFe : RFe, a) : "";
+ <span class="ml-auto">${$c("tag-view", "标签视图", UFe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
+function GFe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
+ let o = Q3[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? $c("people-layout", o + "索引版式", e === "series" ? zFe : c ? RFe : LFe, a) : "";
return `<div class="ihead peach-react" data-index-head>
<h2 class="disp indexheading">${o}</h2>
${s ? "<span class=\"mono\" id=\"indexCount\"><span class=\"countskeleton\"></span></span>" : ""}${l}
@@ -78521,24 +78496,24 @@ function KFe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
}) : ""}
<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", t, "过滤" + o)}</div>
</div>
- ${e === "tags" ? t6(HFe, n, "词表") : e === "performers" || e === "creators" ? t6(UFe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? t6(VFe, e, "资料类型") : ""}
- ${e === "tags" ? GFe(r) : ""}
- ${e === "performers" && n !== "online" ? NEe(i) : ""}
+ ${e === "tags" ? t6(VFe, n, "词表") : e === "performers" || e === "creators" ? t6(HFe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? t6(BFe, e, "资料类型") : ""}
+ ${e === "tags" ? WFe(r) : ""}
+ ${e === "performers" && n !== "online" ? MEe(i) : ""}
${oc({
kind: e,
layout: a,
mode: r
})}`;
}
-var qFe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
+var KFe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
function n6(e, t, n) {
- let r = KFe(t, n);
- e.querySelector("[data-skeleton]")?.dataset.skeleton !== qFe(r) && (e.innerHTML = r, pc(e));
+ let r = GFe(t, n);
+ e.querySelector("[data-skeleton]")?.dataset.skeleton !== KFe(r) && (e.innerHTML = r, pc(e));
}
// src/react/router/pages/index-entity.tsx
-var JFe = () => pu, YFe = () => Ql, r6 = () => document.getElementById("index");
+var qFe = () => pu, JFe = () => Ql, r6 = () => document.getElementById("index");
function i6(e, t, n = {}) {
- let r = (0, F.useSyncExternalStore)(Cu, JFe);
+ let r = (0, F.useSyncExternalStore)(Cu, qFe);
ef();
let i = Bf(Op.navigation.location.pathname), a = (0, F.useRef)({
mounted: !0,
@@ -78586,10 +78561,10 @@ function i6(e, t, n = {}) {
i
]);
}
-async function XFe(e, t, n, r) {
+async function YFe(e, t, n, r) {
let i = r6();
if (!i) return;
- let a = `/${t}`, o = e6(t, n), s = $3(rM().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
+ let a = `/${t}`, o = e6(t, n), s = $3(iM().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
c || (e.surfaceChanged("index", a), n6(i, o, s), pm(r, i, { pending: !0 })), await mp(a, {
...o,
layout: s,
@@ -78601,23 +78576,23 @@ async function XFe(e, t, n, r) {
reuse: c
}) && r() && (e.surfaceShown?.("index", a), pm(r, i));
}
-function ZFe(e) {
+function XFe(e) {
let t = r6(), n = t ? lp(t) : null;
return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;
}
-function QFe({ epoch: e }) {
+function ZFe({ epoch: e }) {
let t = (0, F.useContext)($W), n = ef(), r = n.pathname.split("/").filter(Boolean)[0];
return i6(e, (e, i) => {
- t && XFe(t, r, n.search, i);
- }, { shown: () => ZFe(`/${r}`) }), null;
+ t && YFe(t, r, n.search, i);
+ }, { shown: () => XFe(`/${r}`) }), null;
}
-function $Fe() {
- let e = QW(), t = (0, F.useSyncExternalStore)(Cu, YFe), n = (0, F.useRef)(t);
+function QFe() {
+ let e = QW(), t = (0, F.useSyncExternalStore)(Cu, JFe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
n.current !== t && (n.current = t, window.location.pathname === "/tags" && gp(r6(), { selectMode: t }));
- }, [t]), /* @__PURE__ */ (0, I.jsx)(QFe, { epoch: e }, e);
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(ZFe, { epoch: e }, e);
}
-function eIe(e) {
+function $Fe(e) {
let t;
try {
t = decodeURIComponent(e);
@@ -78632,7 +78607,7 @@ function eIe(e) {
} : null;
}
var a6 = /* @__PURE__ */ new WeakMap();
-function tIe(e) {
+function eIe(e) {
let t = a6.get(e);
return t || (t = {
helpers: {
@@ -78649,7 +78624,7 @@ function o6() {
let e = r6(), t = e ? lp(e) : null;
return !!t && t.path.endsWith("/*") && t.host.isConnected;
}
-async function nIe(e, t, n, r, i, a, o) {
+async function tIe(e, t, n, r, i, a, o) {
let s = r6();
if (!s) return;
let { segment: c, kind: l, name: u } = n;
@@ -78673,7 +78648,7 @@ async function nIe(e, t, n, r, i, a, o) {
let g = {
...h,
hosts: m,
- card: tIe(e),
+ card: eIe(e),
resolvedEntity: o,
restoreNavigation: dm(),
actions: {
@@ -78690,7 +78665,7 @@ async function nIe(e, t, n, r, i, a, o) {
place: (e) => (e.replaceChildren(...f), p.firstElementChild)
}) && a() && o6() && (e.surfaceShown?.("entity", r), pm(a, m.filter));
}
-function rIe({ target: e }) {
+function nIe({ target: e }) {
let t = (0, F.useContext)($W), n = QW(), r = ef();
return i6(n, (n, i) => {
let a = t?.entity;
@@ -78723,7 +78698,7 @@ function rIe({ target: e }) {
return;
}
let c = String(s.canonical_name || e.name), l = Pn(e.kind, c, Number(s.id));
- l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? pm(i, r6()?.querySelector("[data-entity-filter]")) : nIe(t, a, {
+ l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? pm(i, r6()?.querySelector("[data-entity-filter]")) : tIe(t, a, {
...e,
name: c
}, r.pathname, r.search, i, s) : kp(l + r.search + r.hash, {
@@ -78733,13 +78708,13 @@ function rIe({ target: e }) {
})();
}, { shown: () => o6() && !r6()?.hidden }), null;
}
-function iIe() {
- let e = eIe(ef().pathname);
- return e ? /* @__PURE__ */ (0, I.jsx)(rIe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
+function rIe() {
+ let e = $Fe(ef().pathname);
+ return e ? /* @__PURE__ */ (0, I.jsx)(nIe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
}
// src/react/router/pages/follow.tsx
-var s6 = () => document.getElementById("stats"), aIe = () => yu;
-async function oIe(e, t) {
+var s6 = () => document.getElementById("stats"), iIe = () => yu;
+async function aIe(e, t) {
let n = s6(), r = e.follow;
if (!n || !r) return;
let i = um("follow"), a = r.refresh(i), o = r.props();
@@ -78755,16 +78730,16 @@ async function oIe(e, t) {
beforePlace: s ? () => e.surfaceChanged("follow", "/follow") : void 0
}), t() && pm(t, n.querySelector("[data-filter-frame]"));
}
-function sIe() {
+function oIe() {
let e = s6(), t = e ? lp(e) : null;
return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;
}
-function cIe() {
+function sIe() {
let e = (0, F.useContext)($W);
return i6(QW(), (t, n) => {
- e && oIe(e, n);
+ e && aIe(e, n);
}, {
- shown: sIe,
+ shown: oIe,
onCovered: () => {
Op.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
}
@@ -78774,7 +78749,7 @@ function c6(e) {
let t = e ? lp(e) : null;
return !!t && t.path === "/playlists" && t.host.isConnected;
}
-async function lIe(e, t) {
+async function cIe(e, t) {
let n = s6();
n && (e.surfaceChanged("playlists", "/playlists"), O2(n, E2("/playlists", {
followLayout: "",
@@ -78785,36 +78760,36 @@ async function lIe(e, t) {
isCurrent: t
}), t() && pm(t));
}
-function uIe() {
- let e = (0, F.useContext)($W), t = (0, F.useSyncExternalStore)(Cu, aIe), n = (0, F.useRef)(t);
+function lIe() {
+ let e = (0, F.useContext)($W), t = (0, F.useSyncExternalStore)(Cu, iIe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
if (n.current === t) return;
n.current = t;
let e = s6();
c6(e) && gp(e, { revision: t });
}, [t]), i6(QW(), (t, n) => {
- e && lIe(e, n);
+ e && cIe(e, n);
}, { shown: () => {
let e = s6();
return c6(e) && !e.hidden;
} }), null;
}
// src/react/router/pages/immerse.tsx
-function dIe() {
+function uIe() {
let e = new URLSearchParams(Op.navigation.location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function fIe() {
+function dIe() {
let e = (0, F.useContext)($W);
return XW(() => {
- e?.openImmerse(dIe());
+ e?.openImmerse(uIe());
}, !0), null;
}
-function pIe() {
- return /* @__PURE__ */ (0, I.jsx)(fIe, {}, QW());
+function fIe() {
+ return /* @__PURE__ */ (0, I.jsx)(dIe, {}, QW());
}
// src/react/router/pages/managed.tsx
-var mIe = () => pu > 0, l6 = () => (0, F.useSyncExternalStore)(Cu, mIe), u6 = () => rM().value.followLayout === "table" ? "table" : "default", d6 = () => new URLSearchParams(window.location.search);
+var pIe = () => pu > 0, l6 = () => (0, F.useSyncExternalStore)(Cu, pIe), u6 = () => iM().value.followLayout === "table" ? "table" : "default", d6 = () => new URLSearchParams(window.location.search);
function f6(e) {
return Tn("/healthz", { signal: e.controller.signal }).catch((e) => {
if (En(e)) return null;
@@ -78828,11 +78803,11 @@ function p6(e, t) {
writerUrl: e?.ledger_writer_origin ? new URL(t, e.ledger_writer_origin).href : ""
};
}
-async function hIe(e, t) {
+async function mIe(e, t) {
if (e === "/jav") {
let e = await f6(t);
return t.live ? {
- tab: lU(d6().get("tab")),
+ tab: uU(d6().get("tab")),
readOnly: !!e?.ledger_read_only
} : null;
}
@@ -78857,7 +78832,7 @@ async function hIe(e, t) {
if (e === "/subscriptions") {
let e = IZ("?" + d6().toString()), n = await f6(t);
if (!t.live) return null;
- let r = rM().value;
+ let r = iM().value;
return {
...e,
pageSize: Number(r.followPageSize) || 20,
@@ -78867,10 +78842,10 @@ async function hIe(e, t) {
}
return {};
}
-async function gIe(e, t, n) {
+async function hIe(e, t, n) {
let r = Op.navigation.seq, i = () => n.live && Op.navigation.seq === r;
- if (e === "/jav" && lU(d6().get("tab")) === "library") {
- Op.replace(yve(window.location.search));
+ if (e === "/jav" && uU(d6().get("tab")) === "library") {
+ Op.replace(vve(window.location.search));
return;
}
if (e === "/subscriptions" && d6().get("tab") === "wants") {
@@ -78902,7 +78877,7 @@ async function gIe(e, t, n) {
q: "",
jav: ""
} }), t.clearSearch());
- let o = await hIe(e, n);
+ let o = await mIe(e, n);
if (!o) return;
let s = await mp(e, o, {
container: a,
@@ -78924,12 +78899,12 @@ function m6({ path: e }) {
let n = Bf(Op.navigation.location.pathname), r = (0, F.useRef)(n ? null : t), i = (0, F.useRef)(n);
n || i.current && r.current !== null || (r.current = t), i.current = n;
let a = e.startsWith("/settings/") ? "/settings/configuration" : e;
- return /* @__PURE__ */ (0, I.jsx)(_Ie, {
+ return /* @__PURE__ */ (0, I.jsx)(gIe, {
path: e,
covered: r.current === null
}, `${a} ${r.current ?? "covered"}`);
}
-function _Ie({ path: e, covered: t }) {
+function gIe({ path: e, covered: t }) {
let n = (0, F.useContext)($W), r = l6(), i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
e.startsWith("/settings/") && gp(document.getElementById("stats"), { section: Af(e) });
@@ -78941,14 +78916,14 @@ function _Ie({ path: e, covered: t }) {
controller: new AbortController()
};
i.current = a, queueMicrotask(() => {
- a.live && gIe(e, n, a);
+ a.live && hIe(e, n, a);
});
}, [r]), (0, F.useEffect)(() => () => {
let e = i.current;
e && (e.live = !1, e.controller.abort());
}, []), null;
}
-function vIe() {
+function _Ie() {
let e = l6(), t = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
if (!e || t.current || Bf(Op.navigation.location.pathname)) return;
@@ -78962,11 +78937,11 @@ function vIe() {
}, [e]), null;
}
// src/react/router/route-chunk.ts
-var h6 = [], g6 = "peach.chunkReloadAt", yIe = 3e4;
-async function bIe() {
+var h6 = [], g6 = "peach.chunkReloadAt", vIe = 3e4;
+async function yIe() {
try {
let e = Number(sessionStorage.getItem(g6) || 0);
- if (Date.now() - e < yIe || !(await fetch("/healthz", {
+ if (Date.now() - e < vIe || !(await fetch("/healthz", {
cache: "no-store",
credentials: "same-origin"
})).ok) return;
@@ -78979,7 +78954,7 @@ function _6(e) {
});
return h6.push(r), {
preload: () => r().catch(async (e) => {
- throw await bIe(), e;
+ throw await yIe(), e;
}),
get: () => {
if (!t) throw Error("页面代码还没装载");
@@ -78987,7 +78962,7 @@ function _6(e) {
}
};
}
-function xIe() {
+function bIe() {
let e = globalThis.requestIdleCallback;
if (typeof e != "function") return;
let t = [...h6], n = () => {
@@ -79011,7 +78986,7 @@ var y6 = _6(() => import("./peach-app.jav-page-CvsnSwyE.js")), b6 = _6(() => imp
DiagnosticsPage: t
};
}), O6 = _6(() => import("./peach-app.activity-page-CDOzqSMm.js")), k6 = _6(() => import("./peach-app.follow-manage-page-ipO0SiYO.js")), A6 = _6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
-function SIe(e, t, n) {
+function xIe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
@@ -79021,7 +78996,7 @@ function SIe(e, t, n) {
}
var j6 = (e) => ({
element: /* @__PURE__ */ (0, I.jsx)(m6, { path: e }),
- prefetch: (t, n) => v6(D6, Promise.all([AAe(n), ...e === "/settings/diagnostics" ? [$Oe(n)] : []]).then(() => {})),
+ prefetch: (t, n) => v6(D6, Promise.all([kAe(n), ...e === "/settings/diagnostics" ? [QOe(n)] : []]).then(() => {})),
page: (t, n) => {
let { ConfigurationPage: r, DiagnosticsPage: i } = D6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
@@ -79037,7 +79012,7 @@ var j6 = (e) => ({
}), M6 = {
...Yf.reduce((e, t) => (e[t.path] = {
element: /* @__PURE__ */ (0, I.jsx)(m6, { path: t.path }),
- prefetch: (e, n) => v6(C6, CEe(t.key, n)),
+ prefetch: (e, n) => v6(C6, SEe(t.key, n)),
page: (e, n) => {
let { DataCleanupToolPage: r } = C6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
@@ -79049,7 +79024,7 @@ var j6 = (e) => ({
}, e), {}),
"/jav": {
element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/jav" }),
- prefetch: (e, t) => v6(y6, Tye(e.tab, t)),
+ prefetch: (e, t) => v6(y6, Cye(e.tab, t)),
page: (e, t) => {
let { JavPage: n } = y6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
@@ -79061,7 +79036,7 @@ var j6 = (e) => ({
},
"/stats": {
element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/stats" }),
- prefetch: (e, t) => v6(b6, PPe(t)),
+ prefetch: (e, t) => v6(b6, NPe(t)),
page: (e, t) => {
let { StatsPage: n } = b6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
@@ -79072,7 +79047,7 @@ var j6 = (e) => ({
},
"/taste": {
element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/taste" }),
- prefetch: (e, t) => v6(x6, SFe("all", t)),
+ prefetch: (e, t) => v6(x6, xFe("all", t)),
page: (e, t, n) => {
let { TastePage: r } = x6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
@@ -79085,7 +79060,7 @@ var j6 = (e) => ({
},
"/review": {
element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/review" }),
- prefetch: (e, t) => v6(S6, pTe(t)),
+ prefetch: (e, t) => v6(S6, fTe(t)),
page: (e, t) => {
let { ReviewPage: n } = S6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
@@ -79100,20 +79075,20 @@ var j6 = (e) => ({
},
"/data-cleanup": {
element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/data-cleanup" }),
- prefetch: (e, t) => v6(C6, SEe(t)),
+ prefetch: (e, t) => v6(C6, xEe(t)),
page: (e, t, n) => {
let { DataCleanupPage: r } = C6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
navigate: n,
failure: t.failure,
- open: (e) => SIe(e, t, n),
+ open: (e) => xIe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
});
}
},
"/duplicates": {
element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/duplicates" }),
- prefetch: (e, t) => v6(w6, kwe(t)),
+ prefetch: (e, t) => v6(w6, Owe(t)),
page: (e, t) => {
let { DuplicatesPage: n } = w6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
@@ -79125,13 +79100,13 @@ var j6 = (e) => ({
},
"/quality-goals": {
element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/quality-goals" }),
- prefetch: (e, t) => v6(T6, Vwe(t)),
+ prefetch: (e, t) => v6(T6, Bwe(t)),
page: (e, t) => {
let { QualityGoalsPage: n } = T6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
openItem: t.openItem,
- javTitleHtml: HI,
- javDisplayName: VI,
+ javTitleHtml: WI,
+ javDisplayName: UI,
toast: (e) => t.receipt(e),
srcBadge: t.srcBadge
});
@@ -79139,7 +79114,7 @@ var j6 = (e) => ({
},
"/sources": {
element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/sources" }),
- prefetch: (e, t) => v6(E6, _Ae(t)),
+ prefetch: (e, t) => v6(E6, gAe(t)),
page: (e, t) => {
let { ScrapingPage: n } = E6.get();
return /* @__PURE__ */ (0, I.jsx)(n, { toast: (e) => t.toast(e) });
@@ -79153,7 +79128,7 @@ var j6 = (e) => ({
"/settings/diagnostics": j6("/settings/diagnostics"),
"/tasks": {
element: /* @__PURE__ */ (0, I.jsx)(m6, { path: "/tasks" }),
- prefetch: (e, t) => v6(O6, ope(t)),
+ prefetch: (e, t) => v6(O6, ipe(t)),
page: () => {
let { ActivityPage: e } = O6.get();
return /* @__PURE__ */ (0, I.jsx)(e, {});
@@ -79173,10 +79148,10 @@ var j6 = (e) => ({
});
}
}
-}, N6 = (e) => Object.hasOwn(M6, e), CIe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(vIe, {}) } }, wIe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(pIe, {}) } }, P6 = {
+}, N6 = (e) => Object.hasOwn(M6, e), SIe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(_Ie, {}) } }, CIe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(fIe, {}) } }, P6 = {
"/playlists": {
- element: /* @__PURE__ */ (0, I.jsx)(uIe, {}),
- prefetch: (e, t) => v6(A6, tAe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(lIe, {}),
+ prefetch: (e, t) => v6(A6, eAe(t)),
page: (e, t) => {
let { PlaylistsPage: n } = A6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
@@ -79189,14 +79164,14 @@ var j6 = (e) => ({
}
},
"/follow": {
- element: /* @__PURE__ */ (0, I.jsx)(cIe, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(sIe, {}),
prefetch: (e, t) => oa(e, t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(jDe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(ADe, { ...e })
}
}, F6 = (e) => Object.hasOwn(P6, e), I6 = {
- element: /* @__PURE__ */ (0, I.jsx)($Fe, {}),
- prefetch: (e, t) => WEe(e, t),
- page: (e, t) => /* @__PURE__ */ (0, I.jsx)(pke, {
+ element: /* @__PURE__ */ (0, I.jsx)(QFe, {}),
+ prefetch: (e, t) => UEe(e, t),
+ page: (e, t) => /* @__PURE__ */ (0, I.jsx)(fke, {
...e,
route: t.routeIndex,
savePreference: t.savePeopleLayout,
@@ -79217,9 +79192,9 @@ var j6 = (e) => ({
"/tags": I6,
"/series": I6
}, R6 = {
- element: /* @__PURE__ */ (0, I.jsx)(iIe, {}),
- prefetch: (e) => MEe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(JOe, { ...e })
+ element: /* @__PURE__ */ (0, I.jsx)(rIe, {}),
+ prefetch: (e) => jEe(e),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(qOe, { ...e })
}, z6 = {
"/performers/*": R6,
"/studios/*": R6,
@@ -79236,53 +79211,53 @@ var j6 = (e) => ({
"/junk-files": {
element: /* @__PURE__ */ (0, I.jsx)(JW, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(Eke, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(Tke, { ...e })
}
-}, V6 = (e) => Object.hasOwn(B6, e), TIe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(lve, { ...e }) : /* @__PURE__ */ (0, I.jsx)(D$, { ...e }), H6 = {
+}, V6 = (e) => Object.hasOwn(B6, e), wIe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(cve, { ...e }) : /* @__PURE__ */ (0, I.jsx)(D$, { ...e }), H6 = {
"catalog-filter": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(Mbe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(jbe, { ...e })
},
"feed-new": {
- prefetch: (e) => OEe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(eke, { ...e })
+ prefetch: (e) => DEe(e),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)($Oe, { ...e })
},
"library-processing": {
- prefetch: (e, t) => sH(t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(TIe, { ...e })
+ prefetch: (e, t) => cH(t),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(wIe, { ...e })
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(TAe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(wAe, { ...e })
}
}, U6 = (e) => Object.hasOwn(H6, e), W6 = {
"batch-dock": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(ale, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(ile, {})
},
"glow-picker": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Vle, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Ble, {})
},
"manage-header": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(zfe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Lfe, {})
},
immerse: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Ide, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Fde, {})
},
"settings-panel": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(YAe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(JAe, {})
},
sidebar: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(dje, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(uje, {})
},
stage: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(MPe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(jPe, {})
}
}, G6 = (e) => Object.hasOwn(W6, e), K6 = [
"/",
@@ -79304,21 +79279,21 @@ var q6 = (e) => N6(e) || F6(e) || Object.hasOwn(L6, e) || Object.hasOwn(z6, e) |
function J6(e) {
return N6(e) ? M6[e] : F6(e) ? P6[e] : V6(e) ? B6[e] : U6(e) ? H6[e] : G6(e) ? W6[e] : Object.hasOwn(L6, e) ? L6[e] : z6[e];
}
-function EIe(e, t, n) {
+function TIe(e, t, n) {
return q6(e) ? J6(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
-function DIe(e, t, n, r) {
+function EIe(e, t, n, r) {
return J6(e).page(t, n, r);
}
// src/react/application-residents.ts
var Y6 = null, X6 = null, Z6 = 0, Q6 = /* @__PURE__ */ new Set();
-function OIe(e) {
+function DIe(e) {
return Y6 = e, X6 && e(X6), () => {
Y6 === e && (Y6 = null);
};
}
-function kIe(e) {
- return Y6 && (X6 = e, Y6(e), cp(Promise.resolve(EIe)), xIe()), Promise.resolve();
+function OIe(e) {
+ return Y6 && (X6 = e, Y6(e), cp(Promise.resolve(TIe)), bIe()), Promise.resolve();
}
async function $6(e, t, n = (e) => e) {
let r = Z6;
@@ -79329,7 +79304,7 @@ async function $6(e, t, n = (e) => e) {
place: () => n(t)
}) || r !== Z6 || !Y6) throw new DOMException("应用已卸载", "AbortError");
}
-function AIe() {
+function kIe() {
Z6 += 1, Y6 = null, X6 = null, e8 = null, t8 = null, i8 = null, a8 = null, s8 = null, c8 = null, u8 = null, d8 = null, p8 = null, m8 = null, g8 = null, _8 = null, y8 = null;
for (let e of Q6) e.remove();
Q6.clear(), KQ();
@@ -79337,49 +79312,49 @@ function AIe() {
var e8 = null, t8 = null;
function n8(e) {
return e8 ??= (async () => {
- let t = jPe(e), n = document.createElement("div");
+ let t = APe(e), n = document.createElement("div");
return n.dataset.stageHost = "", await $6("stage", n, (e) => (document.body.append(e), e)), t8 = t, t;
})(), e8;
}
var r8 = () => t8, i8 = null, a8 = null;
-function jIe(e) {
+function AIe(e) {
return i8 ??= (async () => {
- let t = Fde(e), n = document.createElement("div");
+ let t = Pde(e), n = document.createElement("div");
return n.dataset.immerseHost = "", await $6("immerse", n, (e) => (document.body.append(e), e)), a8 = t, t;
})(), i8;
}
var o8 = () => a8, s8 = null, c8 = null;
-function MIe(e) {
+function jIe(e) {
return s8 ??= (async () => {
- let t = JAe(e), n = document.createElement("div");
+ let t = qAe(e), n = document.createElement("div");
return n.dataset.settingsHost = "", await $6("settings-panel", n, (e) => (document.body.append(e), e)), c8 = t, t;
})(), s8;
}
var l8 = () => c8, u8 = null, d8 = null;
-function NIe(e) {
+function MIe(e) {
return u8 ??= (async () => {
- let t = uje(e);
+ let t = lje(e);
return await $6("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), d8 = t, t;
})(), u8;
}
var f8 = () => d8, p8 = null, m8 = null;
-function PIe(e) {
+function NIe(e) {
return p8 ??= (async () => {
- let t = Rfe(e);
+ let t = Ife(e);
return await $6("manage-header", e.root, (e) => (e.replaceChildren(), e)), m8 = t, t;
})(), p8;
}
var h8 = () => m8, g8 = null, _8 = null;
-function FIe(e) {
+function PIe(e) {
return g8 ??= (async () => {
- let t = ile(e);
+ let t = rle(e);
return await $6("batch-dock", e.root), _8 = t, t;
})(), g8;
}
var v8 = () => _8, y8 = null;
-function IIe(e) {
+function FIe(e) {
return y8 ??= (async () => {
- Ble(e), await $6("glow-picker", e.root);
+ zle(e), await $6("glow-picker", e.root);
})(), y8;
}
function b8(e, t, n, r) {
@@ -79395,7 +79370,7 @@ var x8 = {
rollSeed: void 0,
seededSample: void 0
};
-function LIe() {
+function IIe() {
qQ(L("#toasts"), {
success: R("check"),
error: R("circle-alert")
@@ -79439,7 +79414,7 @@ function LIe() {
};
}
// src/react/catalog-grid/catalog-state.ts
-var RIe = [
+var LIe = [
"loc",
"creator",
"studio",
@@ -79461,9 +79436,9 @@ var RIe = [
"folder_recursive"
];
function S8(e, t, n, r = n.defaultSort) {
- return Rj(e, t, n.defaultSort, n.defaultSortDirection, r);
+ return zj(e, t, n.defaultSort, n.defaultSortDirection, r);
}
-function zIe(e, t, n) {
+function RIe(e, t, n) {
let r = decodeURIComponent(e.pathname), i = new URLSearchParams(e.search), a = jn(r) || r === "/trash", o = (e) => a ? i.get(e) : null;
return {
loc: i.get("loc") ?? "local,115",
@@ -79489,18 +79464,18 @@ function zIe(e, t, n) {
folder_recursive: o("folder_recursive") === "0" ? "0" : ""
};
}
-function BIe(e, t) {
+function zIe(e, t) {
return e.split(",").filter(Boolean).filter((e) => t[e] !== !1).join(",") || e;
}
-function VIe(e) {
+function BIe(e) {
let t = On[e.state ?? ""] || "/", n = new URLSearchParams();
- for (let t of RIe) {
+ for (let t of LIe) {
let r = e[t];
- !r || t === "tag_match" && r === "all" || t === "dir" && r === Fj(e.sort ?? "") || n.set(t, r);
+ !r || t === "tag_match" && r === "all" || t === "dir" && r === Ij(e.sort ?? "") || n.set(t, r);
}
return !On[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");
}
-function HIe(e, t, n) {
+function VIe(e, t, n) {
return {
loc: e.loc ?? "",
creator: "",
@@ -79516,7 +79491,7 @@ function HIe(e, t, n) {
year: "",
state: "",
sort: t.defaultSort,
- dir: Lj(t.defaultSort, t.defaultSort, t.defaultSortDirection),
+ dir: Rj(t.defaultSort, t.defaultSort, t.defaultSortDirection),
seed: n(),
q: "",
jav: "",
@@ -79537,7 +79512,7 @@ function C8(e) {
};
}
// src/react/catalog-grid/catalog-controller.ts
-var UIe = class {
+var HIe = class {
currentRevision = 0;
currentPage = "";
painting = null;
@@ -79582,16 +79557,16 @@ var UIe = class {
let e = [...this.waiters.values()];
this.waiters.clear(), e.forEach((e) => e());
}
-}, w8 = Infinity, T8 = 0, WIe = (e, t = T8) => [
+}, w8 = Infinity, T8 = 0, UIe = (e, t = T8) => [
"facets",
e,
t
-], GIe = (e, t, n = T8) => [
+], WIe = (e, t, n = T8) => [
"tops",
e,
t,
n
-], KIe = (e, t = T8) => [
+], GIe = (e, t = T8) => [
"tops",
e,
t
@@ -79600,20 +79575,20 @@ async function E8(e) {
let t = String(e), n = await Tn(`/api/tops?${t}`), r = new URLSearchParams(t);
return n.performers.length || n.studios.length || !r.has("state") ? n : (r.delete("state"), await Tn(`/api/tops?${r}`));
}
-function qIe(e, t) {
+function KIe(e, t) {
return Promise.all([H.fetchQuery({
- queryKey: WIe(e),
+ queryKey: UIe(e),
queryFn: () => Tn(`/api/facets${e ? `?${e}` : ""}`),
staleTime: w8
}), H.fetchQuery({
- queryKey: GIe(t, e),
+ queryKey: WIe(t, e),
queryFn: () => E8(t),
staleTime: w8
})]);
}
-function JIe(e) {
+function qIe(e) {
return H.fetchQuery({
- queryKey: KIe(e),
+ queryKey: GIe(e),
queryFn: () => E8(e),
staleTime: w8
});
@@ -79734,11 +79709,11 @@ var O8 = [
"follow",
"activity",
"configuration"
-], YIe = (e) => k8.filter(([t]) => A8.includes(t) && (t !== "configuration" || e)), j8 = k8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
+], JIe = (e) => k8.filter(([t]) => A8.includes(t) && (t !== "configuration" || e)), j8 = k8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
e === "follow" ? "follow-manage" : e === "cleanup" ? "data-cleanup" : e,
t,
n
-]]), XIe = [...O8, ...j8], ZIe = {
+]]), YIe = [...O8, ...j8], XIe = {
stats: "stats",
review: "review",
"data-cleanup": "cleanup",
@@ -79774,7 +79749,7 @@ function F8(e) {
let t = String(e.k || ""), n = (t.match(/[A-Za-z0-9]/)?.[0] || Array.from(t)[0] || "?").toUpperCase(), r = e.avatar ? `<img src="${z(e.avatar)}" alt="" loading="lazy" referrerpolicy="no-referrer" ${Va({ fallbacks: [e.avatar_fallback || ""] })}>` : "";
return `<span class="ini">${z(n)}</span>${r}`;
}
-function QIe(e) {
+function ZIe(e) {
let t = (t) => {
e.adoptFollowView(t), e.hideIndex(), e.openPage(ka(t));
};
@@ -79875,11 +79850,11 @@ var I8 = class {
if (e.length) throw AggregateError(e, "应用资源清理未全部完成");
}
}, L8 = new I8();
-function $Ie() {
+function QIe() {
return L8.dispose(), L8 = new I8(), L8;
}
// src/application/source-action.ts
-function eLe(e) {
+function $Ie(e) {
return async (t, n, { button: r = null } = {}) => {
if (r?.getAttribute("aria-busy") === "true") return;
let i = r?.innerHTML ?? "", a = r?.textContent?.trim() ?? "";
@@ -79900,12 +79875,12 @@ function z8(e, t) {
for (let e of FX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
return {
...r,
- ...Rj(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
+ ...zj(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
};
}
function B8(e) {
let t = new URLSearchParams();
- for (let n of FX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Fj(e.sort || "") || t.set(n, e[n]);
+ for (let n of FX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Ij(e.sort || "") || t.set(n, e[n]);
return t.toString();
}
function V8(e) {
@@ -79919,11 +79894,11 @@ function H8(e, t) {
let n = new URLSearchParams(B8(e));
return t?.media === "photos" ? (n.set("media", "photos"), t.set && n.set("set", String(t.set))) : t?.media === "online" && n.set("media", "online"), n.toString();
}
-function tLe(e, t, n, r) {
+function eLe(e, t, n, r) {
let i = H8(n, r);
return Pn(e, t) + (i ? `?${i}` : "");
}
-function nLe() {
+function tLe() {
let e = "";
return {
fresh(t, n) {
@@ -79944,10 +79919,10 @@ function nLe() {
};
}
// src/react/entity-page/photo-surface.ts
-function rLe(e, t) {
+function nLe(e, t) {
return e.entityWall && e.entityCurrent && e.indexVisible || e.pathname === "/follow" && e.followMedia === "images" && e.statsVisible ? !0 : t();
}
-function iLe(e) {
+function rLe(e) {
let t = () => {
let t = e.preferences();
for (let n of e.walls()) n.dataset.size = t.size, n.dataset.layout = "fixed", n.dataset.imagesOnly = String(t.imagesOnly);
@@ -79969,12 +79944,12 @@ function iLe(e) {
};
}
// src/react/entity-page/entity-controller.ts
-function aLe(e, t, n) {
+function iLe(e, t, n) {
let r = (t, n, r, i = {
media: "videos",
set: 0
}, { push: a = !0 } = {}) => {
- if (a && e.route(tLe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
+ if (a && e.route(eLe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
e.releaseBodyPreviews();
let o = e.state();
return e.push({
@@ -80001,7 +79976,7 @@ function aLe(e, t, n) {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let n = c(), i = Ij(e, n.sort || "new", n.dir || "");
+ let n = c(), i = Lj(e, n.sort || "new", n.dir || "");
i && r(t, a, {
...n,
...i
@@ -80052,7 +80027,7 @@ function aLe(e, t, n) {
};
}
// src/react/entity-page/entity-loading.ts
-function oLe(e) {
+function aLe(e) {
return async (t, n, r) => {
e.paintSkeleton(t, n), e.resetView(), e.shapesReady(t, n) || e.waitShapes().then(() => {
r() && e.syncParts(t, n);
@@ -80062,7 +80037,7 @@ function oLe(e) {
};
}
// src/react/entity-page/entity-portrait.ts
-function sLe(e, t) {
+function oLe(e, t) {
let n = e === "studio" || e === "agency", r = t.id ? go({
kind: e,
id: t.id,
@@ -80084,11 +80059,11 @@ function sLe(e, t) {
return r || (i?.avatar ? `<img src="${z(i.avatar)}" alt="${z(t.canonical_name)}" referrerpolicy="no-referrer" ${Va({ fallbacks: [i.avatar_fallback || ""] })}>` : "");
}
// src/react/entity-page/entity-application.ts
-function cLe(e) {
- let t = nLe(), n = {
+function sLe(e) {
+ let t = tLe(), n = {
...e.helpers,
- portraitImg: sLe
- }, r = aLe(e.controller, n, e.actions);
+ portraitImg: oLe
+ }, r = iLe(e.controller, n, e.actions);
return {
...r,
helpers: n,
@@ -80097,12 +80072,12 @@ function cLe(e) {
let { filters: o, media: s } = t.read(n, i, a, e.sortPreference());
return r.props(n, i, o, s);
},
- loading: oLe(e.loading),
- photos: iLe(e.photos)
+ loading: aLe(e.loading),
+ photos: rLe(e.photos)
};
}
// src/card-art/feed-identity.ts
-function lLe(e) {
+function cLe(e) {
let t = e.performer_refs || [], n = [...new Set((e.performers || "").split(/[,,、;/]/).map((e) => e.trim()).filter(Boolean))], r = t.length ? t : n.map((e) => ({ name: e })), i = r.slice(0, 3).map((t) => {
let n = e.code && t.source_actor_id && t.source_avatar && !t.has_image && !t.has_avatar, r = n ? ` data-feed-source-avatar data-code="${z(e.code)}" data-actor="${z(t.source_actor_id)}" data-name="${z(t.name)}"` : "", i = n ? "" : _o(t.name, t, null);
return "id" in t && t.id ? `<a class="mav"${r} href="${z(Pn("performer", t.name, t.id))}" aria-label="打开女优页:${z(t.name)}">${i}</a>` : `<span class="mav"${r} title="${z(t.name)}">${i}</span>`;
@@ -80129,23 +80104,23 @@ var U8 = {
function W8(e) {
return e.has_cover ? So(e, "big") : !e.cover_url || !e.code ? e.cover_fetching ? `<span class="nopic" data-feed-cover-state="fetching">${Hs("抓取中")}</span>` : "<span class=\"nopic\" data-feed-cover-state=\"missing\">无封面</span>" : So(e, "big").replace(/ src="[^"]*"/, ` src="${z(fo(e))}" data-panel-prior="1"`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"nopic\"");
}
-function uLe(e) {
- let t = [e.performers && `<span class="feednewperformers" title="${z(e.performers)}">${z(e.performers)}</span>`, e.release_date && `<span>${z(e.release_date)}</span>`].filter(Boolean).join(""), n = W8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? HI({
+function lLe(e) {
+ let t = [e.performers && `<span class="feednewperformers" title="${z(e.performers)}">${z(e.performers)}</span>`, e.release_date && `<span>${z(e.release_date)}</span>`].filter(Boolean).join(""), n = W8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? WI({
is_jav: !0,
code: e.code,
name: e.code,
display_title: e.title || ""
}) : z(r), a = e.code ? `<a class="feednewopen" href="/works/${encodeURIComponent(e.code)}" aria-label="打开 ${z(r)} 的作品详情"></a>` : "";
return `<article class="card feednewcard${e.read ? " isread" : ""}" data-feed-id="${e.id}">
- ${a}<div class="pic" style="--card-ratio:${fM}">${n}
+ ${a}<div class="pic" style="--card-ratio:${pM}">${n}
<div class="hovertools feednewtools">
<button type="button" data-feed-action="${e.wanted ? "unwant" : "want"}" aria-pressed="${!!e.wanted}" title="${e.wanted ? "取消想要" : "想要"}" aria-label="想要 ${z(r)}">${R("star")}</button>
<button type="button" data-feed-action="ignore" title="不想看" aria-label="不想看 ${z(r)}">${R("x")}</button>
<button type="button" data-feed-action="read" title="标为已看过" aria-label="标为已看过 ${z(r)}">${R("check")}</button></div></div>
- <div class="meta">${lLe(e)}<div class="mtext"><span class="t">${i}</span>
+ <div class="meta">${cLe(e)}<div class="mtext"><span class="t">${i}</span>
<div class="s mono">${t || (e.title ? "" : "资料还没取到")}</div></div></div></article>`;
}
-function dLe() {
+function uLe() {
let e = document.getElementById("peach-entity-shape");
if (e) try {
let t = JSON.parse(e.textContent || "null");
@@ -80164,7 +80139,7 @@ function q8(e) {
localStorage.setItem(K8, e ? "1" : "0");
} catch {}
}
-function fLe() {
+function dLe() {
try {
let e = localStorage.getItem(K8);
return e === "1" || e !== "0" && null;
@@ -80175,7 +80150,7 @@ function fLe() {
function J8(e) {
!e || up(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = U8.feedNewSkeletonHtml())));
}
-function pLe(e, t) {
+function fLe(e, t) {
return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : zs(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
variant: "warning",
className: "feednetwork",
@@ -80184,8 +80159,8 @@ function pLe(e, t) {
});
}
function Y8(e, t = "") {
- let n = e && !e.error && e.items || [], r = t && n.length ? `<a class="feednewall" href="${z(t)}" style="--card-ratio:${fM}">${R("chevron-right")}<span>查看全部新作</span></a>` : "";
- return pLe(e?.cover_network, n) + `<div class="feednewrow srow">${n.map(uLe).join("")}${r}</div>`;
+ let n = e && !e.error && e.items || [], r = t && n.length ? `<a class="feednewall" href="${z(t)}" style="--card-ratio:${pM}">${R("chevron-right")}<span>查看全部新作</span></a>` : "";
+ return fLe(e?.cover_network, n) + `<div class="feednewrow srow">${n.map(lLe).join("")}${r}</div>`;
}
function X8(e) {
e && ($7(e), Z.appSettings.feedAutoScroll && Bc(e));
@@ -80193,7 +80168,7 @@ function X8(e) {
function Z8(e) {
return jn(e) && e !== "/junk-files";
}
-function mLe() {
+function pLe() {
let e = L("#feedNew");
up(e) ? e.hidden = X.homeHasFeed !== !0 : (J8(e), mp("feed-new", {
host: e,
@@ -80212,26 +80187,26 @@ function Q8() {
function $8() {
U8.feedRevision += 1, gp(L("#feedNew"), { revision: U8.feedRevision }), n5({ feedRevision: U8.feedRevision });
}
-function hLe() {
+function mLe() {
document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? Bc(e) : Vc(e));
}
var e5 = 0;
-function gLe([e]) {
+function hLe([e]) {
let t = e.contentRect.width >= U8.HERO_WIDE_PX;
cancelAnimationFrame(e5), e5 = requestAnimationFrame(() => {
e5 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);
});
}
-function _Le() {
- U8.FEED_SKELETON_CARDS = 8, U8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${fM}"></div>
+function gLe() {
+ U8.FEED_SKELETON_CARDS = 8, U8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${pM}"></div>
<div class="meta"><div class="mtext"><span class="t"><span class="skeleton"></span></span>
<div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(U8.FEED_SKELETON_CARDS)}</div>`, U8.entityShapes = null, U8.entityShapesComplete = !1, U8.hasEntityShape = (e, t) => U8.entityShapesComplete || !!U8.entityShapes?.has(`${e}/${Un(t)}`), U8.hasEntityPart = (e, t, n) => !!t && !!U8.entityShapes?.get(`${e}/${Un(t)}`)?.includes(n), U8.feedNewSkeletonSection = () => `<section class="feednew">${U8.feedNewSkeletonHtml()}</section>`, U8.COSTAR_SKELETON_PEOPLE = 12, U8.costarSkeletonFoot = () => `<div class="entityfoot" data-entity-foot><div class="relatedpeople" data-related-people>${"<button type=\"button\" disabled tabindex=\"-1\"><span class=\"skeleton\" data-hero-ring></span><span class=\"skeleton\" data-hero-costar-name>&#8203;</span></button>".repeat(U8.COSTAR_SKELETON_PEOPLE)}</div></div>`, U8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, U8.feedRevision = 0, U8.feedNewHelpers = {
feedRowHtml: Y8,
wireFeedRow: (e) => X8(e)
- }, U8.feedNewActions = { settled: (e) => q8(e) }, U8.HERO_WIDE_PX = 900, L8.resize(gLe).observe(L("#index"));
+ }, U8.feedNewActions = { settled: (e) => q8(e) }, U8.HERO_WIDE_PX = 900, L8.resize(hLe).observe(L("#index"));
}
// src/entity-skeleton.ts
-function vLe(e, t, n, r = "") {
+function _Le(e, t, n, r = "") {
let i = e === "studio" || e === "agency", a = new URLSearchParams(location.search), o = a.get("browse") === "folders" || a.get("folder") ? `<div class="peach-react entity-folder-workspace" data-folder-workspace data-folder-browse><aside data-folder-tree-host><div class="flex flex-col gap-3"><span class="skeleton ui-configuration-skeleton-input"></span>${"<span class=\"skeleton\" style=\"width:75%;height:32px\"></span>".repeat(8)}</div></aside><div class="min-w-0"><div data-folder-header-host><span class="skeleton" style="width:160px;height:32px"></span></div>${n}</div></div>` : n;
return `<section data-skeleton="entity/${e}" role="status" aria-label="正在读取资料">
<span class="sr-only">正在读取资料</span><div aria-hidden="true" inert><div class="peach-react contents">
@@ -80292,14 +80267,14 @@ function r5() {
return Jl;
}
function i5(e, t, n = t7()) {
- return dRe(n).map(([n, r]) => {
- let i = e === n, a = Ij(n, e, t);
+ return uRe(n).map(([n, r]) => {
+ let i = e === n, a = Lj(n, e, t);
return {
key: n,
label: r,
pressed: i,
- dir: i && Pj(n, t) ? t === "asc" ? "asc" : "desc" : "",
- ariaLabel: a ? `按${r}${a.dir ? Pj(a.sort, a.dir) : ""}排序` : ""
+ dir: i && Fj(n, t) ? t === "asc" ? "asc" : "desc" : "",
+ ariaLabel: a ? `按${r}${a.dir ? Fj(a.sort, a.dir) : ""}排序` : ""
};
});
}
@@ -80307,7 +80282,7 @@ function a5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {
return Y.application.route(e, t, n, r, i);
}
function o5() {
- return rLe({
+ return nLe({
entityWall: Y.entityPageWall,
entityCurrent: Y.entityPageCurrent(),
indexVisible: !L("#index").hidden,
@@ -80320,12 +80295,12 @@ function s5() {
Y.photos.sync();
}
function c5() {
- o5() ? Nle(vM()) : jM();
+ o5() ? Mle(yM()) : MM();
}
-function yLe(e) {
+function vLe(e) {
Y.photos.setSize(e);
}
-var l5 = eLe({
+var l5 = $Ie({
request: (e) => Tn("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e })
@@ -80337,7 +80312,7 @@ async function u5(e) {
let t = { textContent: "" };
return await l5(e, t), t.textContent;
}
-async function bLe(e) {
+async function yLe(e) {
let t = { textContent: "" }, n = [];
return await d5(e, t, (e) => {
e.items && (n = e.items.map((e) => e.id));
@@ -80376,17 +80351,17 @@ async function d5(e, t, n) {
t.textContent = Y.sourceHint(e.message), x8.actionFailure("核对目录", e);
}
}
-function xLe(e) {
+function bLe(e) {
return `<div class="srctools">${Y.sourceToolButtons(e)}
<span class="srcstate" aria-live="polite"></span></div>`;
}
-function SLe(e, t) {
+function xLe(e, t) {
let n = e.querySelector(".srcstate");
if (!n) return;
let r = e.querySelector("[data-reveal]"), i = e.querySelector("[data-sync]");
r && L8.handler(r, "onclick", () => l5(Number(r.dataset.reveal), n, { button: r })), i && L8.handler(i, "onclick", () => d5(Number(i.dataset.sync), n, t));
}
-async function CLe(e, t) {
+async function SLe(e, t) {
let n = sl({
title: "添加别名",
description: "图库按名字查找图片,添加别名可能找到更多备选图片;也可以将别名设为统一显示的名称。",
@@ -80428,12 +80403,12 @@ function f5(e, t) {
let n = ["performer", "studio"].includes(e) && U8.hasEntityPart(e, t, "jav"), r = `<div data-filter-row="bottom" class="flex min-w-0 items-center gap-3 px-3 py-2 min-h-12"><h3 data-entity-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"></span></h3>${Es()}${e === "agency" ? "" : E0(i5(U.sort, U.dir, n), n ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: mM(),
- options: lM
- } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${w0}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${w0}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${z(e.k)}" aria-pressed="${U.state === e.k}" ${w0}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = vLe(e, r, e === "agency" ? oc({
+ value: hM(),
+ options: uM
+ } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${w0}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${w0}>${R("pics")}</button></div><span data-entity-sep></span><div data-entity-scroll><div data-entity-states>${X.catalogViews().map((e) => `<button type="button" data-entity-state="${z(e.k)}" aria-pressed="${U.state === e.k}" ${w0}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = _Le(e, r, e === "agency" ? oc({
kind: "performers",
layout: O5.peopleIndexLayout()
- }) : VJ("正在读取作品", SM(xM({
+ }) : VJ("正在读取作品", CM(SM({
active: n,
home: !1,
portrait: !1
@@ -80455,7 +80430,7 @@ function m5(e) {
function h5(e, t) {
_9(Y.application.fresh(e, t));
}
-function wLe() {
+function CLe() {
Y.ENTITY_FILTER_KEYS = [
"loc",
"creator",
@@ -80478,7 +80453,7 @@ function wLe() {
return e.type === "home" ? U : e.filters;
}, L("#q").value = U.q, X.rememberSearchValue();
}
-function TLe() {
+function wLe() {
Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!t5(), Y.entityPageLive = (e, t) => {
let n = t5();
return !!n && !L("#index").hidden && n.props.kind === e && n.props.name === t;
@@ -80496,9 +80471,9 @@ function TLe() {
feedRowHtml: Y8,
receipt: (e, t) => x8.actionReceipt(e, t),
failure: (e, t) => x8.actionFailure(e, t),
- aliasForm: (e, t) => CLe(e, t),
- sourceToolsHtml: (e) => xLe(e),
- wireSourceTools: (e, t) => SLe(e, t),
+ aliasForm: (e, t) => SLe(e, t),
+ sourceToolsHtml: (e) => bLe(e),
+ wireSourceTools: (e, t) => xLe(e, t),
comboItems: (e) => N7(e),
sortKeys: (e, t, n) => i5(e, t, n)
}, Y.entityFollowActions = {
@@ -80523,8 +80498,8 @@ function TLe() {
<button type="button" data-sync="${e}" title="核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失"
aria-label="同步删除">${R("folder-sync")}</button>`;
}
-function ELe() {
- Y.application = cLe({
+function TLe() {
+ Y.application = sLe({
controller: {
context: () => {
let e = r5();
@@ -80547,12 +80522,12 @@ function ELe() {
preferences: () => ({
revision: Y.entityPageRevision,
feedRevision: U8.feedRevision,
- photoSize: vM(),
- photoLayout: yM(),
- photoLayouts: dM,
+ photoSize: yM(),
+ photoLayout: bM(),
+ photoLayouts: fM,
followImagesOnly: !!Z.appSettings.followImagesOnly,
- javLayout: mM(),
- javLayouts: lM,
+ javLayout: hM(),
+ javLayouts: uM,
states: X.VIEW_PILLS,
peopleLayout: O5.peopleIndexLayout(),
layout: U7(),
@@ -80574,8 +80549,8 @@ function ELe() {
U.seed = e, Su();
},
setJavLayout: i7,
- javLayout: mM,
- setPhotoLayout: wM,
+ javLayout: hM,
+ setPhotoLayout: TM,
syncPhotoWalls: s5,
openEntity: h5,
photoViewActive: o5,
@@ -80600,15 +80575,15 @@ function ELe() {
},
photos: {
preferences: () => ({
- size: vM(),
- layout: yM(),
+ size: yM(),
+ layout: bM(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
walls: () => document.querySelectorAll(".followphotowall"),
pushEntity: n5,
pushFollow: S9,
syncDensity: c5,
- storeSize: jle
+ storeSize: Ale
},
helpers: Y.entityPageHelpers,
actions: {
@@ -80624,7 +80599,7 @@ function ELe() {
}
// src/application/playlists.js
var g5 = { playlistWrite: void 0 };
-function DLe(e, t) {
+function ELe(e, t) {
e === "tag" ? (W({ state: {
...U,
tag: t,
@@ -80640,7 +80615,7 @@ function _5(e = "") {
return `<label class="modalfield"><span>名称</span><input class="geist-input" name="name"
maxlength="80" placeholder="输入名称" value="${z(e)}"></label>`;
}
-async function OLe({ title: e, count: t, save: n }) {
+async function DLe({ title: e, count: t, save: n }) {
let r = sl({
title: "保存为播放列表",
description: `这个 Mix 的 ${t} 个视频会存成一份可以继续播放的列表。`,
@@ -80661,7 +80636,7 @@ async function OLe({ title: e, count: t, save: n }) {
}), _9("/playlists");
} }));
}
-async function kLe(e) {
+async function OLe(e) {
let t = ((await Tn("/api/playlists")).items || []).map((e) => `<label class="pickrow">${Gs(`data-pick-playlist="${e.id}"`)}
<span class="pickrowtext"><b>${z(e.name)}</b><small>${e.item_count} 个视频</small></span></label>`).join(""), n = sl({
title: "加入播放列表",
@@ -80710,7 +80685,7 @@ function v5() {
let e = lp(L("#stats"));
e?.path !== "/playlists" || !e.host.isConnected ? W({ pageOpens: pu + 1 }) : (R5({ manage: !1 }), W({ playlistsRevision: yu + 1 }));
}
-function ALe(e) {
+function kLe(e) {
let t = new URLSearchParams(location.search);
for (let n of ["category", "queue"]) e[n] ? t.set(n, e[n]) : t.delete(n);
Q.route("/review" + (t.size ? "?" + t : ""));
@@ -80718,7 +80693,7 @@ function ALe(e) {
function y5(e) {
W({ configurationRequestedSection: e }), Q.navigatePath(Pf(e));
}
-function jLe() {
+function ALe() {
g5.playlistWrite = (e) => Tn("/api/playlist", {
method: "POST",
body: JSON.stringify(e)
@@ -80743,12 +80718,12 @@ function S5(e, t, n, r, i, a = !1) {
...o ? { followLastSelectedId: s } : { lastSelectedId: s }
};
}
-function MLe(e, t, n, r) {
+function jLe(e, t, n, r) {
let i = b5(t);
return {
count: (i === "follow" ? e.followSelected : e.selected).size,
context: i === "catalog" && r === "trash" ? "trash" : i,
- junkDismissed: LU(n).view === "dismissed"
+ junkDismissed: RU(n).view === "dismissed"
};
}
// src/application/selection.js
@@ -80770,7 +80745,7 @@ function w5() {
}), S9({
selected: new Set(Zl),
selectMode: Ql
- }), C5.batchDockProps = HLe(), v8() && (v8().render(C5.batchDockProps), Z.syncGlassOptics());
+ }), C5.batchDockProps = VLe(), v8() && (v8().render(C5.batchDockProps), Z.syncGlassOptics());
}
function T5(e, t = !1) {
W(x5({
@@ -80778,25 +80753,25 @@ function T5(e, t = !1) {
followSelected: Zl
}, D5(), b5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Ql), Ql && Nl(), L("#selectMode").setAttribute("aria-pressed", String(Ql)), w5();
}
-function NLe() {
+function MLe() {
return [...M5.gridCards()].map((e) => +e.dataset.id);
}
function E5(e, t = !1) {
W(S5({
selected: Xl,
followSelected: Zl
- }, D5(), b5(location.pathname), NLe(), e, t)), T5(!0);
+ }, D5(), b5(location.pathname), MLe(), e, t)), T5(!0);
}
-function PLe() {
+function NLe() {
return [...document.querySelectorAll("[data-follow-list] > [data-follow-item]")].map((e) => +e.dataset.followItem);
}
-function FLe(e, t = !1) {
+function PLe(e, t = !1) {
W(S5({
selected: Xl,
followSelected: Zl
- }, D5(), "follow", PLe(), e, t)), T5(!0);
+ }, D5(), "follow", NLe(), e, t)), T5(!0);
}
-async function ILe(e, t) {
+async function FLe(e, t) {
let n = {
like: "喜欢",
seen: "标为看过",
@@ -80865,7 +80840,7 @@ async function ILe(e, t) {
}
});
}
-async function LLe() {
+async function ILe() {
let e = [...Xl];
if (!e.length) return;
let t = sl({
@@ -80897,7 +80872,7 @@ async function LLe() {
let { confirmed: n, result: r } = await t.done;
n && (T5(!1, !0), await o7(), x8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
}
-async function RLe(e, t) {
+async function LLe(e, t) {
let n = [...Zl];
if (!n.length) return;
let r = {
@@ -80932,7 +80907,7 @@ async function RLe(e, t) {
}
});
}
-async function zLe(e, t) {
+async function RLe(e, t) {
let n = [...Xl];
if (!n.length) return;
let r = {
@@ -80978,8 +80953,8 @@ async function zLe(e, t) {
}
});
}
-function BLe() {
- FIe({
+function zLe() {
+ PIe({
root: L("[data-batch-dock]"),
run: (e, t, n) => {
C5.BATCH_RUNNERS[e]?.(t, n);
@@ -80988,7 +80963,7 @@ function BLe() {
e.render(C5.batchDockProps), Z.syncGlassOptics();
}).catch(() => {});
}
-function VLe() {
+function BLe() {
C5.batchDockProps = {
count: 0,
context: "catalog",
@@ -81001,14 +80976,14 @@ function VLe() {
["other", "其他"],
["none", "撤回判定"]
], C5.BATCH_RUNNERS = {
- batch: ILe,
- region: LLe,
- follow: RLe,
- junk: zLe,
+ batch: FLe,
+ region: ILe,
+ follow: LLe,
+ junk: RLe,
clear: () => T5(!1, !0)
}, L8.handler(L("#density"), "onclick", () => {
- o5() ? yLe(vM() === "big" ? "small" : "big") : Mle();
- }), jM(), jl({
+ o5() ? vLe(yM() === "big" ? "small" : "big") : jle();
+ }), MM(), jl({
selecting: () => Ql,
censored: () => X7(),
delaySeconds: () => Z.appSettings.hoverDelaySeconds
@@ -81028,8 +81003,8 @@ function D5() {
followLastSelectedId: eu
};
}
-function HLe() {
- return MLe({
+function VLe() {
+ return jLe({
selected: Xl,
followSelected: Zl
}, location.pathname, location.search, U.state);
@@ -81039,22 +81014,22 @@ var O5 = {
peopleIndexLayout: void 0,
personAvatar: void 0
};
-function ULe() {
+function HLe() {
return Z.appSettings.followLayout === "table" ? "table" : "default";
}
-function WLe() {
+function ULe() {
return IZ(location.search);
}
-function GLe(e) {
+function WLe(e) {
return LZ(e);
}
-function KLe(e) {
- Q.route(GLe(e));
+function GLe(e) {
+ Q.route(WLe(e));
}
-function qLe(e = "") {
+function KLe(e = "") {
return RZ(location.search, e);
}
-function JLe(e) {
+function qLe(e) {
return F8(e);
}
function k5(e) {
@@ -81063,7 +81038,7 @@ function k5(e) {
function A5() {
L("#stats").hidden = !0, L("#index").hidden = !1, L7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
}
-function YLe(e, t) {
+function JLe(e, t) {
W({ state: {
...U,
state: "",
@@ -81074,16 +81049,16 @@ function YLe(e, t) {
function j5(e) {
O5.controller.openFollowAuthor(e);
}
-function XLe(e) {
+function YLe(e) {
O5.controller.openFollowTag(e);
}
-function ZLe() {
+function XLe() {
$.FOLLOW_MANAGE_TABS = FZ, L8.listen(document, "click", (e) => {
e.target.closest?.("[data-empty-settings]") && y5("媒体库与入库");
}), O5.peopleIndexLayout = () => $3(Z.appSettings.peopleLayout), O5.personAvatar = P8;
}
-function QLe() {
- O5.controller = QIe({
+function ZLe() {
+ O5.controller = ZIe({
route: Q.route,
followView: y9,
adoptFollowView: b9,
@@ -81109,7 +81084,7 @@ function N5(e = "正在读取作品") {
return;
}
let t = L("#count"), n = decodeURIComponent(location.pathname) === "/junk-files";
- if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = $ve(LU(location.search)), pc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && S7({
+ if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = Zve(RU(location.search)), pc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && S7({
count: null,
...T7()
})), L("#loadSentinel").hidden = !0, B7()) return;
@@ -81129,13 +81104,13 @@ function F5() {
});
return Promise.race([M5.entityShapesReady ||= G8(), e]);
}
-function $Le() {
+function QLe() {
let e = decodeURIComponent(location.pathname);
- if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), P5(), Lye();
+ if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), P5(), Iye();
else if (/^\/assets\/\d+$/.test(e)) P5();
else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) P5();
else if (e === "/junk-files") N5("正在读取垃圾文件");
- else if (e === "/jav" && lU(new URLSearchParams(location.search).get("tab")) === "library") N5("正在读取馆藏");
+ else if (e === "/jav" && uU(new URLSearchParams(location.search).get("tab")) === "library") N5("正在读取馆藏");
else if (Q.managedPagePath(e)) {
P5();
let t = L("#stats");
@@ -81149,12 +81124,12 @@ function $Le() {
});
} else Q.routeMeta(e) ? N5() : (L7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
}
-function eRe() {
+function $Le() {
$.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => T2(t, {
cards: !0,
className: "follow-content-skeleton postercard-skeleton",
gridClass: e === "images" ? "followlist followphotowall" : "",
- gridSize: vM()
+ gridSize: yM()
}), $.followSkeletonHtml = (e = "正在读取关注内容") => `<div class="peach-react"><div class="follow" data-follow-feed>
<div data-follow-head><h2 data-follow-title>关注</h2></div>
<div class="tier followauthors" data-skeleton-tier="av"></div>
@@ -81165,12 +81140,12 @@ function eRe() {
${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = Hs(Vs), M5.setGridCards = (e) => ic(L("#grid"), () => {
L("#grid").innerHTML = `<div class="grid">${e}</div>`;
}), M5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), M5.managementPlaceholder = (e) => E2(e, {
- followLayout: ULe(),
+ followLayout: HLe(),
...(({ sort: e, dir: t, tab: n }) => ({
followSort: e,
followDir: t,
followTab: n
- }))(WLe())
+ }))(ULe())
}), M5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", M5.entityShapesReady = null, M5.ENTITY_SHAPES_WAIT = 400, M5.syncPageTitle = (e) => {
let t = new URL(e, location.origin), n = ep(decodeURIComponent(t.pathname))?.title;
document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, d9();
@@ -81184,7 +81159,7 @@ var I5 = (e) => e.replace(/[&<>"']/g, (e) => ({
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function tRe(e, t, n) {
+function eRe(e, t, n) {
let r = new Map(t.map((e) => [e[0], e]));
return `<div data-sidebar-head=""></div><div data-sidebar-nav="">${e.map((e) => r.get(e)).filter((e) => e !== void 0).map(([e, t, r]) => {
let i = e === "" ? "<img data-sidebar-home-logo=\"\" src=\"/peach-logo-64.png\" srcset=\"/peach-logo-64.png 64w, /peach-logo-128.png 128w\" sizes=\"24px\" width=\"24\" height=\"24\" alt=\"\" decoding=\"async\">" : `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${I5(r)}"/></svg>`;
@@ -81192,7 +81167,7 @@ function tRe(e, t, n) {
}).join("")}</div>`;
}
// src/application/filter-scroll.js
-function nRe(e, t, n, r = !1) {
+function tRe(e, t, n, r = !1) {
if (t = Math.max(0, t), !e || !n || r || t <= 8) return {
y: t,
origin: t,
@@ -81241,7 +81216,7 @@ function z5() {
function B5() {
L("#javLibraryHeader").hidden = !jn(location.pathname) || !t7(), document.body.classList.remove("entity-open", "index-open"), _p(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, Z8(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", x7(), J5(), X5();
}
-function rRe() {
+function nRe() {
Q.route("/"), B5();
}
function V5({ tags: e = [], providers: t = [], duration: n = !1 }) {
@@ -81269,7 +81244,7 @@ function V5({ tags: e = [], providers: t = [], duration: n = !1 }) {
});
}
function H5(e) {
- rze({
+ nze({
...y9(),
...e
}), f9({ filters: $.followSidebarFilters() });
@@ -81284,7 +81259,7 @@ function W5(e) {
function G5() {
U5() && W5(!1);
}
-function iRe() {
+function rRe() {
du === null && (W({ runtimeConfigurable: !1 }), Tn("/healthz").then((e) => {
W({ runtimeConfigurable: !!e.configurable }), du && q5() && J5();
}).catch(() => {}));
@@ -81302,12 +81277,12 @@ function K5(e = "", t = !1) {
replace: !0,
state: Op.navigation.location.state
});
- return e ||= Nf(location.pathname), MIe(L5.settingsHost()).then((t) => (t.open(e), t));
+ return e ||= Nf(location.pathname), jIe(L5.settingsHost()).then((t) => (t.open(e), t));
}
-function aRe() {
+function iRe() {
Mf(location.pathname) && (Ff(Op.navigation.location.state) ? Op.go(-1) : Q.navigatePath("/", !0));
}
-function oRe() {
+function aRe() {
return {
scroll: L("#drawerScroll"),
store: Z.settingsStore,
@@ -81342,31 +81317,31 @@ function oRe() {
}
};
}
-function sRe() {
+function oRe() {
let e = L("#drawerScroll"), t = [...e.querySelector("[data-sidebar-head]")?.children || []];
- e.innerHTML = tRe(Z.appSettings.sidebarOrder, L5.NAV_CATALOG, c7), e.querySelector("[data-sidebar-head]").append(...t), L8.listen(e, "click", (e) => {
+ e.innerHTML = eRe(Z.appSettings.sidebarOrder, L5.NAV_CATALOG, c7), e.querySelector("[data-sidebar-head]").append(...t), L8.listen(e, "click", (e) => {
if (f8()) return;
let t = e.target.closest?.("[data-nav]");
t && l7(t.dataset.nav);
- }), NIe(oRe()).then((e) => e.render(L5.sidebarProps)).catch(() => {});
+ }), MIe(aRe()).then((e) => e.render(L5.sidebarProps)).catch(() => {});
}
-async function cRe() {
+async function sRe() {
let e = L8, t = null;
try {
t = await Tn("/api/settings", { signal: e.signal });
} catch {
return;
}
- e.isActive && iM(t, (e) => Z.settingsEffects[e]?.());
+ e.isActive && aM(t, (e) => Z.settingsEffects[e]?.());
}
function q5() {
return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (U.state === "ads" ? "cleanup" : "");
}
function J5() {
let e = q5();
- iRe(), e && P5(), L("#count").classList.toggle("no-tagbar", !!e), p9(), e !== "trash" && (C5.trashCount = null), Y5(e);
+ rRe(), e && P5(), L("#count").classList.toggle("no-tagbar", !!e), p9(), e !== "trash" && (C5.trashCount = null), Y5(e);
}
-function lRe(e) {
+function cRe(e) {
return {
section: e,
path: decodeURIComponent(location.pathname),
@@ -81377,16 +81352,16 @@ function lRe(e) {
}
function Y5(e = q5()) {
X5();
- let t = lRe(e), n = h8();
+ let t = cRe(e), n = h8();
if (n) n.render(t);
else {
- let e = Bde(t);
+ let e = zde(t);
e !== L5.manageHeaderSkeleton && (L5.manageHeaderSkeleton = e, L5.manageHeaderRoot().innerHTML = e);
}
- let r = LF(t)?.title || "";
+ let r = RF(t)?.title || "";
r !== L5.lastManagePageLabel && (L5.lastManagePageLabel = r, r && tc(L5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
}
-function uRe() {
+function lRe() {
let e = L5.manageHeaderRoot();
L8.listen(e, "click", (e) => {
if (h8()) return;
@@ -81396,7 +81371,7 @@ function uRe() {
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button) return;
e.preventDefault(), Q.navigatePath("/data-cleanup");
} else e.target.closest?.("[data-empty-trash]") && j7();
- }), PIe({
+ }), NIe({
root: e,
openManage: e7,
openDataCleanup: () => Q.navigatePath("/data-cleanup"),
@@ -81441,35 +81416,35 @@ function $5(e) {
}
function e7(e = "stats") {
let t = Q.routePathOf("section", e);
- t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", Su(), Q.route(RU()), B5(), p9(), A7());
+ t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", Su(), Q.route(zU()), B5(), p9(), A7());
}
function t7() {
let e = decodeURIComponent(location.pathname);
return e === "/" ? U.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? U.jav === "1" || hu : !1;
}
-function dRe(e = t7()) {
- let t = kj.filter(([e]) => e !== "seed");
- return e ? [Aj, ...t] : t;
+function uRe(e = t7()) {
+ let t = Aj.filter(([e]) => e !== "seed");
+ return e ? [jj, ...t] : t;
}
function n7() {
return decodeURIComponent(location.pathname) === "/" && U.jav !== "1";
}
function r7() {
- return hM(n7());
+ return gM(n7());
}
-function fRe(e) {
- kle(e), a7(), L("#grid").hidden || K7();
+function dRe(e) {
+ Ole(e), a7(), L("#grid").hidden || K7();
}
function i7(e) {
- CM(e), a7(), K7();
+ wM(e), a7(), K7();
}
function a7() {
document.querySelectorAll("[data-video-layout]").forEach((e) => {
e.checked = e.value === r7();
}), X.catalogFilterProps && S7({ layout: w7() });
}
-function pRe(e) {
- Ale(e), a7(), K7();
+function fRe(e) {
+ kle(e), a7(), K7();
}
async function o7() {
D8(), X.mixRelatedCache.clear(), await Promise.all([s7(), A7()]);
@@ -81528,11 +81503,11 @@ function u7() {
let n = t.length > 1 && Object.prototype.hasOwnProperty.call(Nn, t[0]), r = jn(e) || e === "/trash", i = r || n || e === "/tags" || e === "/follow", a = r || n || e === "/follow";
L("#selectMode").hidden = !i, L("#density").hidden = !a, s5(), !i && Ql && T5(!1, !0);
}
-function mRe() {
+function pRe() {
let e = [...document.querySelectorAll("[data-filter-frame]")], t = e.find((e) => e.offsetParent !== null);
(t !== L5.mobileFilterHost || location.pathname !== L5.mobileFilterPath) && (L5.mobileFilterScroll = null), L5.mobileFilterHost = t, L5.mobileFilterPath = location.pathname;
let n = Math.max(0, Math.min(scrollY, document.documentElement.scrollHeight - innerHeight)), r = !!t?.querySelector(":focus-visible,input:focus,select:focus,textarea:focus,[aria-expanded=\"true\"]");
- L5.mobileFilterScroll = nRe(L5.mobileFilterScroll, n, innerWidth <= 760, r);
+ L5.mobileFilterScroll = tRe(L5.mobileFilterScroll, n, innerWidth <= 760, r);
for (let n of e) {
let e = n === t && L5.mobileFilterScroll.free;
if (e && n.style.setProperty("--filter-free-top", `${-n.offsetHeight - 12}px`), e === n.hasAttribute("data-filter-free")) continue;
@@ -81546,44 +81521,44 @@ function mRe() {
});
}
}
-function hRe() {
- mRe(), [".board-filter-frame", "#count"].forEach((e) => {
+function mRe() {
+ pRe(), [".board-filter-frame", "#count"].forEach((e) => {
let t = L(e), n = t && getComputedStyle(t), r = n ? parseFloat(n.top) : NaN, i = !!t && n.position === "sticky" && t.offsetParent !== null && window.scrollY > 0 && Number.isFinite(r) && t.getBoundingClientRect().top - (parseFloat(n.translate.split(" ")[1]) || 0) <= r + 1;
t && t.classList.toggle("is-stuck", i), t?.matches(".board-filter-frame") && t.classList.toggle("board-is-stuck", i);
});
}
function d7() {
L5.stickyFrame ||= L8.frame(() => {
- L5.stickyFrame = 0, hRe();
+ L5.stickyFrame = 0, mRe();
});
}
-function gRe() {
+function hRe() {
$.followSidebarFilters = () => ({
provider: [...$.followProviders][0] || "",
dur_min: $.followDurMin || "",
dur_max: $.followDurMax || ""
- }), L8.handler(L("#filterBtn"), "onclick", () => W5(!L("#drawer").classList.contains("open"))), L5.SIDEBAR_ITEMS = O8, L5.MANAGE_SECTIONS = k8, L5.MANAGE_MENU_SECTIONS = A8, L5.manageMenuSections = () => YIe(du === !0), L5.OPTIONAL_SIDEBAR_ITEMS = j8, L5.NAV_CATALOG = XIe, L5.DIRECT_MANAGE_NAV = ZIe, L5.settingsHost = () => ({
+ }), L8.handler(L("#filterBtn"), "onclick", () => W5(!L("#drawer").classList.contains("open"))), L5.SIDEBAR_ITEMS = O8, L5.MANAGE_SECTIONS = k8, L5.MANAGE_MENU_SECTIONS = A8, L5.manageMenuSections = () => JIe(du === !0), L5.OPTIONAL_SIDEBAR_ITEMS = j8, L5.NAV_CATALOG = YIe, L5.DIRECT_MANAGE_NAV = XIe, L5.settingsHost = () => ({
selectSection: (e) => kp(Pf(e), {
replace: !0,
state: Op.navigation.location.state
}),
- closed: aRe,
+ closed: iRe,
store: Z.settingsStore,
changed: (e) => Z.settingsEffects[e]?.(),
sound: (e) => Qo(e),
navCatalog: L5.NAV_CATALOG,
- themeOptions: wle,
- videoLayouts: lM,
+ themeOptions: Cle,
+ videoLayouts: uM,
followInitialRanges: M8,
videoLayout: () => r7(),
- setVideoLayout: pRe,
+ setVideoLayout: fRe,
censored: X7,
setCensored: Q7,
highContrast: () => document.documentElement.classList.contains("board-high-contrast"),
- setHighContrast: LRe,
+ setHighContrast: IRe,
receipt: (e) => x8.actionReceipt(e),
failure: x8.actionFailure,
- syncRemote: (e) => iM(e, (e) => Z.settingsEffects[e]?.()),
+ syncRemote: (e) => aM(e, (e) => Z.settingsEffects[e]?.()),
openConfiguration: () => Q.navigatePath("/settings/library"),
attached: () => Z.syncGlassOptics(),
configurable: () => Tn("/healthz").then((e) => (W({ runtimeConfigurable: !!e.configurable }), du)).catch(() => null)
@@ -81630,22 +81605,22 @@ var X = {
junkQueueHelpers: void 0,
junkQueueActions: void 0
};
-function _Re() {
+function gRe() {
X.initialParams.has("loc") || (U.loc = f7(U.loc), Su());
}
function f7(e) {
- return BIe(e, Z.sourceOnline);
+ return zIe(e, Z.sourceOnline);
}
function p7(e = U) {
- return VIe(e);
+ return BIe(e);
}
-function vRe() {
- W(C8(HIe(U, Z.appSettings, x8.rollSeed)));
+function _Re() {
+ W(C8(VIe(U, Z.appSettings, x8.rollSeed)));
}
function m7(e = null) {
- vRe(), e && (Object.assign(U, e), Su()), Q.route(e ? p7() : "/"), X.clearSearchField(), r9(!1), p9(), A7();
+ _Re(), e && (Object.assign(U, e), Su()), Q.route(e ? p7() : "/"), X.clearSearchField(), r9(!1), p9(), A7();
}
-function yRe(e, t = null) {
+function vRe(e, t = null) {
let n = e.id;
!e.medium || e.medium === "video" ? s9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : E5(n);
}
@@ -81654,13 +81629,13 @@ function h7(e) {
throw X.mixRelatedCache.delete(e), t;
})), X.mixRelatedCache.get(e);
}
-function bRe(e, t) {
+function yRe(e, t) {
r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : g7(e, t);
}
function g7(e, t) {
- e.edition_group ? WRe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? GRe(e.part_group.seed_id, e.id, !0, t) : s9(e.id, !0, null, t);
+ e.edition_group ? URe(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? WRe(e.part_group.seed_id, e.id, !0, t) : s9(e.id, !0, null, t);
}
-async function xRe(e, t) {
+async function bRe(e, t) {
try {
let n = await Tn("/api/watch-later", {
method: "POST",
@@ -81677,7 +81652,7 @@ async function xRe(e, t) {
x8.actionFailure("更新稍后看", e);
}
}
-async function SRe(e, t) {
+async function xRe(e, t) {
try {
await Tn("/api/batch", {
method: "POST",
@@ -81701,8 +81676,8 @@ async function SRe(e, t) {
throw x8.actionFailure("操作", e), e;
}
}
-async function CRe(e, t, n, r) {
- let i = Number(e.rating) || 0, a = hP(i, t), o = async (t, r) => {
+async function SRe(e, t, n, r) {
+ let i = Number(e.rating) || 0, a = gP(i, t), o = async (t, r) => {
let i = (await Tn("/api/feedback", {
method: "POST",
body: JSON.stringify({
@@ -81716,7 +81691,7 @@ async function CRe(e, t, n, r) {
};
try {
let e = await o(a, r);
- x8.actionReceipt(e ? `已评 ${mP(e)} 星` : "已取消评分", { undo: () => o(i) });
+ x8.actionReceipt(e ? `已评 ${hP(e)} 星` : "已取消评分", { undo: () => o(i) });
} catch (e) {
throw r?.aborted || x8.actionFailure("评分", e), e;
}
@@ -81745,7 +81720,7 @@ async function _7(e) {
e[n] && t.set(n, e[n]);
});
}
- return qIe(t.toString(), X.topsQueryParams(e).toString());
+ return KIe(t.toString(), X.topsQueryParams(e).toString());
}
function v7(e) {
r5().type !== "entity" && S7({ tags: E7(e) }), f9({ filters: { ...e } }), P7();
@@ -81771,7 +81746,7 @@ function b7(e) {
} }), Q.route(p7()), B5(), A7();
} else e(U), Su(), Q.route(p7()), v7(U), y7(Jl);
}
-function wRe() {
+function CRe() {
return {
tiers: null,
tiersPending: !1,
@@ -81807,9 +81782,9 @@ function S7(e) {
...e,
offscreen: n
}, X.catalogFilterProps = {
- ...X.catalogFilterProps || wRe(),
+ ...X.catalogFilterProps || CRe(),
...e
- }, !X.catalogFilterMounting && (up(t) ? gp(t, e) : (!t.firstChild && !n && (t.innerHTML = Jje(X.catalogViews(), X.catalogFilterProps.state, T7()), pc(t)), X.catalogFilterMounting = mp("catalog-filter", X.catalogFilterProps, {
+ }, !X.catalogFilterMounting && (up(t) ? gp(t, e) : (!t.firstChild && !n && (t.innerHTML = qje(X.catalogViews(), X.catalogFilterProps.state, T7()), pc(t)), X.catalogFilterMounting = mp("catalog-filter", X.catalogFilterProps, {
container: t,
isCurrent: () => !0
}).then(() => gp(t, X.catalogFilterProps)).finally(() => {
@@ -81834,17 +81809,17 @@ function C7() {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let t = Ij(e, U.sort, U.dir);
+ let t = Lj(e, U.sort, U.dir);
t && (U.sort = t.sort, U.dir = t.dir, Su(), J7());
},
- reshuffle: () => IRe(),
+ reshuffle: () => FRe(),
setLayout: (e) => {
- t7() ? i7(e) : fRe(e);
+ t7() ? i7(e) : dRe(e);
},
moreTops: async (e) => {
let t = X.catalogTopsPages;
if (!t) return [];
- let n = (await JIe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
+ let n = (await qIe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
return e === "performers" ? n.map(D7) : n.map(O7);
}
};
@@ -81853,13 +81828,13 @@ function w7() {
return t7() ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: mM(),
- options: lM
+ value: hM(),
+ options: uM
} : n7() ? {
name: "home-layout",
label: "首页卡片版式",
value: r7(),
- options: lM
+ options: uM
} : null;
}
function T7() {
@@ -81897,7 +81872,7 @@ function O7(e) {
logo: e.has_logo ? po(e.k, "icon", e.logo_version) : ""
};
}
-function TRe(e, t) {
+function wRe(e, t) {
X.barsPendingSeq = t, X.catalogFilterProps?.tiers ? S7({
tiersPending: !0,
state: e.state || ""
@@ -81920,7 +81895,7 @@ async function A7() {
U.seed || "",
t7()
]);
- TRe(n, e);
+ wRe(n, e);
let i;
try {
i = await _7(t);
@@ -81976,7 +81951,7 @@ async function A7() {
latest: null
});
}
-function ERe(e, t) {
+function TRe(e, t) {
e9.total = e, U.state === "trash" && (C5.trashCount = {
total: e9.total,
shown: t
@@ -82045,12 +82020,12 @@ async function F7() {
filters: U
},
detailReturnBarsContext: null
- }), r9(!1), U.state === "ads") return kRe(e);
+ }), r9(!1), U.state === "ads") return ORe(e);
X.controller.page === "/junk-files" && L7(), N5(), B5();
let t = R7(e);
if (Z8(location.pathname) && U.browse !== "folders") {
if (await M5.entityShapesReady, !Q.surfaceCurrent(e)) return;
- mLe();
+ pLe();
} else Q8();
return P7(), L("#count").classList.remove("manage-static", "junkcount"), t;
}
@@ -82062,10 +82037,10 @@ function L7() {
Nl(e), _p(e), X.controller.clear(), e.innerHTML = "";
}
function R7(e) {
- return H7("/", ORe, e, { place: aze });
+ return H7("/", DRe, e, { place: ize });
}
-function DRe(e) {
- return H7("/junk-files", jRe, e);
+function ERe(e) {
+ return H7("/junk-files", ARe, e);
}
function z7() {
return !!lp(L("#grid"));
@@ -82093,7 +82068,7 @@ function H7(e, t, n, r = {}) {
}
function U7() {
let e = n7();
- return xM({
+ return SM({
active: t7() || e,
home: e,
portrait: U.orient === "竖屏"
@@ -82103,7 +82078,7 @@ function W7(e = "正在读取作品") {
return VJ(e, G7());
}
function G7() {
- return U ? SM(U7()) : 16 / 9;
+ return U ? CM(U7()) : 16 / 9;
}
function K7() {
B7() && (Nl(L("#grid")), V7({
@@ -82114,7 +82089,7 @@ function K7() {
seekSeconds: Z.appSettings.seekSeconds
}));
}
-function ORe() {
+function DRe() {
let e = decodeURIComponent(location.pathname), t = jn(e), n = U.state === "trash";
return {
mode: "catalog",
@@ -82137,7 +82112,7 @@ function ORe() {
mix: t && e !== "/wall" && !n && U.browse !== "folders",
shorts: t && e !== "/wall" && !t7() && U.orient !== "竖屏" && !n && U.browse !== "folders",
countRow: L("#count"),
- onCount: ERe,
+ onCount: TRe,
onCountFailed: () => S7({ count: !1 }),
emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : jK({
jav: t7() && !t,
@@ -82147,11 +82122,11 @@ function ORe() {
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function kRe(e) {
+function ORe(e) {
let t = L("#count");
- return X.controller.page === "/junk-files" && z7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (L7(), N5("正在读取垃圾文件")), B5(), P7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), DRe(e);
+ return X.controller.page === "/junk-files" && z7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (L7(), N5("正在读取垃圾文件")), B5(), P7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), ERe(e);
}
-async function ARe(e, t) {
+async function kRe(e, t) {
let n = [e.id], r = t === "dispose", i = t === "reconsider-junk";
try {
await Tn("/api/batch", {
@@ -82176,9 +82151,9 @@ async function ARe(e, t) {
throw x8.actionFailure("操作", e), e;
}
}
-function jRe() {
+function ARe() {
return {
- ...LU(location.search),
+ ...RU(location.search),
helpers: X.junkQueueHelpers,
actions: X.junkQueueActions,
batchSize: Z.appSettings.batchSize,
@@ -82194,8 +82169,8 @@ function jRe() {
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function MRe() {
- X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => S8(e, t, Z.appSettings, n), W(C8(zIe(location, Z.appSettings, x8.rollSeed))), X.searchValueSnapshot = {
+function jRe() {
+ X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => S8(e, t, Z.appSettings, n), W(C8(RIe(location, Z.appSettings, x8.rollSeed))), X.searchValueSnapshot = {
text: "",
scrollLeft: 0
}, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = L("#q")) => {
@@ -82216,21 +82191,21 @@ function MRe() {
};
};
}
-function NRe() {
+function MRe() {
L8.handler(L("#wallBtn"), "onclick", () => {
T5(!1, !0);
let e = r5(), t = {
...Y.activeFilterState(),
jav: t7() ? "1" : ""
};
- e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(xxe(void 0, t));
+ e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(bxe(void 0, t));
}), X.mixRelatedCache = /* @__PURE__ */ new Map(), X.reduceMotion = () => matchMedia("(prefers-reduced-motion:reduce)").matches, X.tagList = (e = U.tag) => String(e || "").split(",").filter(Boolean), X.tagPressed = (e, t) => X.tagList(e).includes(String(t)), X.withTagToggled = (e, t) => {
let n = X.tagList(e), r = n.indexOf(t);
return r >= 0 ? n.splice(r, 1) : n.push(t), n.join(",");
}, X.gridHelpers = {
badgeHtml: (e, t) => Z.srcBadge(e, t),
- titleHtml: (e, t) => HI(e, t),
- displayName: (e, t) => VI(e, t),
+ titleHtml: (e, t) => WI(e, t),
+ displayName: (e, t) => UI(e, t),
tagLabel: (e) => Ll(e)
}, X.gridActions = {
wallPlayer: async (e, t, n) => {
@@ -82238,11 +82213,11 @@ function NRe() {
return n.throwIfAborted(), r.mountWallPlayer(e, t, n);
},
wallDetails: g7,
- open: (e, t) => bRe(e, t),
- openResource: (e, t) => r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : yRe(e, t),
+ open: (e, t) => yRe(e, t),
+ openResource: (e, t) => r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : vRe(e, t),
openShort: (e) => r8()?.miniplayerTakesCard(e) ? r8().miniplayerPlay(e.id) : u9(e.id),
openShorts: () => u9(),
- openMix: (e, t) => URe(e, e, !0, t),
+ openMix: (e, t) => HRe(e, e, !0, t),
openEntity: (e, t) => h5(e, t),
openUnowned: () => m7({ owner: "none" }),
toggleTag: (e) => {
@@ -82251,9 +82226,9 @@ function NRe() {
});
},
toggleSelection: (e, t) => E5(e, t),
- watchLater: (e, t) => xRe(e, t),
- rate: (e, t, n, r) => CRe(e, t, n, r),
- resourceOperation: (e, t) => SRe(e, t),
+ watchLater: (e, t) => bRe(e, t),
+ rate: (e, t, n, r) => SRe(e, t, n, r),
+ resourceOperation: (e, t) => xRe(e, t),
mixRelated: (e) => h7(e),
canFlip: () => !Ql && !X7() && !window.__scrolling && !X.reduceMotion()
}, X.topsQueryParams = (e, t = 0) => {
@@ -82293,7 +82268,7 @@ function NRe() {
X.catalogFilterProps && S7({ comboHidden: !0 });
};
}
-function PRe() {
+function NRe() {
X.junkQueueHelpers = { badgeHtml: (e, t) => Z.srcBadge(e, t) }, X.junkQueueActions = {
navigate: (e) => {
Ql && T5(!1, !0), Q.route(e);
@@ -82310,10 +82285,10 @@ function PRe() {
return Y.sourceHint(e.message);
}
},
- operate: (e, t) => ARe(e, t)
+ operate: (e, t) => kRe(e, t)
};
}
-X.controller = new UIe();
+X.controller = new HIe();
// src/application/preferences.js
var Z = {
sourceOnline: void 0,
@@ -82347,7 +82322,7 @@ async function q7() {
if (!e.isActive) return Z.sourceOnline;
Z.sourceOnline = {}, Z.sourceProblems = {};
}
- return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), _Re(), Z.sourceOnline;
+ return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), gRe(), Z.sourceOnline;
}
function J7() {
let e = Q.surfacePath();
@@ -82358,7 +82333,7 @@ function J7() {
state: Op.navigation.location.state
}), t;
}
-function FRe(e) {
+function PRe(e) {
if (e === "local") return {
kind: "glyph",
name: "hard-drive"
@@ -82390,7 +82365,7 @@ function Y7(e, t) {
value: e.k,
label: nr[e.k] || e.k,
n: e.n ?? null,
- dot: FRe(e.k),
+ dot: PRe(e.k),
...Z.sourceOffline(e.k) ? { offline: Z.OFFLINE_HINT } : {}
})),
regions: n(e.regions),
@@ -82403,7 +82378,7 @@ function Y7(e, t) {
duration: !!e.stats?.duration
};
}
-async function IRe(e = !1) {
+async function FRe(e = !1) {
if (e && (document.hidden || !jn(decodeURIComponent(location.pathname)) || e9.stageOpen() || e9.immerseOpen() || Ql || Xl.size || document.activeElement === L("#q"))) return !1;
if (!L("#stats").hidden) {
let e = decodeURIComponent(location.pathname), t = Q.routeMeta(e)?.route.refresh;
@@ -82438,44 +82413,44 @@ function Z7(e) {
function Q7(e) {
localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), Z7(e), e && Nl();
}
-function LRe(e) {
+function IRe(e) {
localStorage.setItem("peach.high-contrast", String(e)), document.documentElement.classList.toggle("board-high-contrast", e), Z.settingsStore.notify();
}
function $7(e) {
return Ac(e, { drag: !0 });
}
-function RRe() {
+function LRe() {
["#nrow", "#count"].forEach((e) => $7(L(e))), document.querySelectorAll(".tier,.srow").forEach($7);
}
-function zRe() {
+function RRe() {
let e = new URLSearchParams(location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function BRe() {
+function zRe() {
Z.sourceOnline = {}, Z.sourceProblems = {}, Z.sourceOffline = (e) => Z.sourceOnline[e] === !1, Z.OFFLINE_HINT = "媒体目录无法访问,请检查目录、读取权限和网盘挂载状态", Z.OFFLINE_REASON = {
local: "无法读取媒体目录,请检查目录是否存在及读取权限。",
115: "无法读取 115 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。",
pikpak: "无法读取 PikPak 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。"
- }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = rM(), Z.appSettings = Z.settingsStore.value, Zt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Zo(Z.appSettings.uiSounds), rs(), sM(), Dle(), MM(), FM(), IM(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
+ }, Z.offlineReason = (e) => Z.sourceProblems[e] || Z.OFFLINE_REASON[e] || "无法读取这个来源的媒体目录,请检查目录权限及挂载状态。", Z.settingsStore = iM(), Z.appSettings = Z.settingsStore.value, Zt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Zo(Z.appSettings.uiSounds), rs(), cM(), Ele(), NM(), IM(), LM(), Z.catalogLoadWaiters = [], Z.nextCatalogLoad = () => new Promise((e) => Z.catalogLoadWaiters.push(e)), Z.handOff = (e) => (Z.catalogLoadWaiters.splice(0).forEach((t) => t(e)), e), Z.settingsEffects = {
performerNameLanguage: () => {
Zt(Z.appSettings.performerNameLanguage), M5.syncPageTitle(location.href), X.barsRendered = "", A7();
},
- theme: () => sM(),
+ theme: () => cM(),
uiSounds: () => {
Zo(Z.appSettings.uiSounds), Z.appSettings.uiSounds && Qo("toggle-on");
},
- glowFrame: () => PM(),
+ glowFrame: () => FM(),
glow: () => {
- PM(), FM();
+ FM(), IM();
},
batchSize: () => {
location.pathname === "/" && F7();
},
defaultSort: () => {
- U.sort = Z.appSettings.defaultSort, U.dir = Lj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && J7();
+ U.sort = Z.appSettings.defaultSort, U.dir = Rj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && J7();
},
sortDirection: () => {
- U.dir = Lj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && J7();
+ U.dir = Rj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && J7();
},
hoverDelay: () => {
Z.appSettings.hoverDelaySeconds || document.querySelectorAll("[data-previewing],[data-longhover]").forEach((e) => {
@@ -82484,14 +82459,14 @@ function BRe() {
},
seekSeconds: () => K7(),
groupCollapse: () => s7(),
- feedAutoScroll: () => hLe(),
+ feedAutoScroll: () => mLe(),
feedLimit: () => $8(),
feedCompilations: () => $8(),
miniplayer: () => {
Z.appSettings.miniplayer || r8()?.closeMiniplayer();
},
javImage: () => {
- ao(document, Z.appSettings.javImage), K7(), document.querySelectorAll("img[data-jav-image].cover").forEach(fl), HRe();
+ ao(document, Z.appSettings.javImage), K7(), document.querySelectorAll("img[data-jav-image].cover").forEach(fl), VRe();
},
searchHistoryLimit: () => gp(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {
@@ -82502,7 +82477,7 @@ function BRe() {
return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${z(r)}" aria-label="${z(r)}">` + (Z.SRCICON[e] || "") + "</span>";
}, Z.emptyState = Ws;
}
-function VRe() {
+function BRe() {
Z.CENSOR_KEY = "peach-censor", Z7(localStorage.getItem(Z.CENSOR_KEY) === "1");
}
// src/application/media.js
@@ -82538,7 +82513,7 @@ function r9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null
detailReturnNeedsRestore: !1
}), d7(), e && Q.route(nu || "/");
}
-function HRe() {
+function VRe() {
r8()?.repaintPoster();
}
function i9(e, t, n, r, i = null, a = {}) {
@@ -82563,13 +82538,13 @@ function i9(e, t, n, r, i = null, a = {}) {
Q.requestedQueue = () => s9(n == null ? null : +n, !1, s, i, !0, e), W({ queueOpens: mu + 1 });
} else return s9(n == null ? null : +n, !1, s, i, r);
}
-function URe(e, t = e, n = !0, r = null) {
+function HRe(e, t = e, n = !0, r = null) {
return i9("mix", e, t, n, r);
}
-function WRe(e, t = e, n = !0, r = null) {
+function URe(e, t = e, n = !0, r = null) {
return i9("editions", e, t, n, r);
}
-function GRe(e, t = e, n = !0, r = null) {
+function WRe(e, t = e, n = !0, r = null) {
return i9("parts", e, t, n, r);
}
function a9(e, t = null, n = !0) {
@@ -82667,9 +82642,9 @@ async function l9(e, t = !0) {
}), d7());
}
async function u9(e = null, t = !0) {
- t ? (e9.requestedImmerseId = e, Q.route("/immerse")) : (r8()?.closeMiniplayer(), await (await jIe(e9.immerseHost)).open(e));
+ t ? (e9.requestedImmerseId = e, Q.route("/immerse")) : (r8()?.closeMiniplayer(), await (await AIe(e9.immerseHost)).open(e));
}
-function KRe() {
+function GRe() {
e9.total = 0, e9.facets = null, e9.stageHost = {
player: {
settings: () => Z.appSettings,
@@ -82685,11 +82660,11 @@ function KRe() {
openItem: (e) => void s9(e)
}, e9.stageOpen = () => !!r8()?.isOpen();
}
-function qRe() {
+function KRe() {
e9.itemDetailHelpers = {
badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),
- titleHtml: (e) => HI(e),
- displayName: (e) => VI(e),
+ titleHtml: (e) => WI(e),
+ displayName: (e) => UI(e),
javImage: () => Z.appSettings.javImage,
tagLabel: (e) => Ll(e),
isDurationTag: (e) => ar.has(e),
@@ -82738,12 +82713,12 @@ function qRe() {
openTag: (e) => b7((t) => {
t.tag = e;
}),
- addToPlaylist: (e) => kLe(e),
- saveMix: (e) => OLe(e),
+ addToPlaylist: (e) => OLe(e),
+ saveMix: (e) => DLe(e),
editPlaylist: () => _9("/playlists"),
openPlaylists: () => _9("/playlists"),
reveal: (e) => u5(e),
- sync: (e) => bLe(e),
+ sync: (e) => yLe(e),
trashChanged: async (e, t) => {
U.state === "ads" && (t || e === "trash") && (t || (Gf(), r9(!0, !1, { miniplayer: !1 })), await F7());
},
@@ -82753,7 +82728,7 @@ function qRe() {
filters: () => U,
seekSeconds: () => Z.appSettings.seekSeconds,
sourceOffline: (e) => Z.sourceOffline(e),
- displayName: (e) => VI(e),
+ displayName: (e) => UI(e),
route: (e) => Q.route("/immerse?id=" + e, !0),
closed: () => m7(),
openItem: (e) => void s9(e),
@@ -82817,7 +82792,7 @@ function g9() {
function _9(e) {
Q.route(e), W({ pageOpens: pu + 1 });
}
-function JRe() {
+function qRe() {
Q.routeMeta = (e) => {
let t = ep(e);
return t ? { route: t } : null;
@@ -82825,7 +82800,7 @@ function JRe() {
let t = ep(e);
return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !Bf(e) && e !== "/immerse";
}, Q.openRoutePath = (e) => {
- e === "/immerse" ? u9(zRe()) : e === "/follow" ? C9() : e === "/playlists" || Q.catalogPage(e) ? _9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? qLe() : e) : (T5(!1, !0), _9(k5({
+ e === "/immerse" ? u9(RRe()) : e === "/follow" ? C9() : e === "/playlists" || Q.catalogPage(e) ? _9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? KLe() : e) : (T5(!1, !0), _9(k5({
kind: e.slice(1),
q: "",
scope: "local",
@@ -82834,7 +82809,7 @@ function JRe() {
})));
};
}
-function YRe() {
+function JRe() {
Q.surfaceEpoch = 0, Q.surfacePath = () => decodeURIComponent(location.pathname), Q.surfaceRequests = null, Q.surfaceToken = (e) => ({
epoch: Q.surfaceEpoch,
path: e,
@@ -82853,15 +82828,15 @@ function YRe() {
}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;
}
// src/jobs.ts
-function XRe(e, t, n) {
+function YRe(e, t, n) {
if (!Number.isFinite(n) || n <= 0) return "";
let r = Math.max(0, Math.min(n, Number.isFinite(t) ? t : 0)), i = r / n * 100;
return `<div class="ui-board-job-progress" role="progressbar" aria-label="${z(e)}" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="ui-board-job-track" cx="18" cy="18" r="15"/><circle class="ui-board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${z(e)}<small>${Math.round(i)}%</small></span></div>`;
}
-function ZRe(e, t = 0, n = 0) {
- return n > 0 ? XRe(e, t, n) : Hs(e);
+function XRe(e, t = 0, n = 0) {
+ return n > 0 ? YRe(e, t, n) : Hs(e);
}
-async function QRe(e) {
+async function ZRe(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -82876,14 +82851,14 @@ async function QRe(e) {
await t(2e3);
}
}
-function $Re(e) {
+function QRe(e) {
let t = e.note || ((e) => zs(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || Hs, r = e.progress || ((e, t, n) => ZRe(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
+ })), n = e.loading || Hs, r = e.progress || ((e, t, n) => XRe(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
e.host.hidden = !0, a.dataset.followJob = "", a.setAttribute("aria-live", "polite"), e.host.prepend(a);
let o = e.storageKey || "peach-follow-job", s = sessionStorage.getItem(o) || void 0, c = !1;
- QRe({
+ ZRe({
read: e.read,
active: () => !c && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -82932,7 +82907,7 @@ var $ = {
FOLLOW_MANAGE_TABS: void 0,
followSidebarFilters: void 0
};
-function eze(e) {
+function $Re(e) {
let t = (e.results || []).filter((e) => !e.ok).length;
x8.toast({ text: Hi(e) }, {
warn: !!t,
@@ -82947,7 +82922,7 @@ function eze(e) {
function v9() {
return ka(y9());
}
-function tze() {
+function eze() {
return $.controller.read();
}
function y9() {
@@ -82968,17 +82943,17 @@ function y9() {
function b9(e) {
$.followFilter = e.status, $.followMediaView = e.media, $.followAuthors = new Set(e.author ? [e.author] : []), $.followProviders = new Set(e.provider ? [e.provider] : []), $.followWorks = new Set(e.work ? [e.work] : []), $.followTags = new Set(e.tags), $.followDurMin = e.durMin || 0, $.followDurMax = e.durMax || 0, $.followSort = e.sort, $.followDir = e.dir, $.followSeed = e.seed;
}
-function nze() {
+function tze() {
let e = lp(L("#stats"));
return e && e.path === "/follow" && e.host.isConnected ? e : null;
}
function x9() {
- return !!nze();
+ return !!tze();
}
function S9(e) {
x9() && gp(L("#stats"), e);
}
-function rze(e, t = {}) {
+function nze(e, t = {}) {
return $.controller.route(e, t);
}
function C9(e = !1) {
@@ -83002,16 +82977,16 @@ async function w9(e, t = !0, n = null, r = !1) {
resume: t ? null : t9()
}), d7();
}
-async function ize() {
- await n9(), r9(!1, !1, { miniplayer: !1 }), Gf(), Q.route(lu || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && x9() ? (tze(), S9({ view: y9() })) : W({ pageOpens: pu + 1 }));
+async function rze() {
+ await n9(), r9(!1, !1, { miniplayer: !1 }), Gf(), Q.route(lu || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && x9() ? (eze(), S9({ view: y9() })) : W({ pageOpens: pu + 1 }));
}
-function aze(e) {
+function ize(e) {
let t = document.createElement("div");
return t.className = "peach-react", ic(e, () => {
e.textContent = "", e.append(t);
}), t;
}
-function oze() {
+function aze() {
$.followFeedHelpers = zl({
wireDrag: (e) => {
e && $7(e);
@@ -83020,22 +82995,22 @@ function oze() {
e && Ac(e);
},
listSkeletonHtml: (e) => $.followContentSkeletonHtml(e),
- jobProgress: $Re
+ jobProgress: QRe
}), $.followFeedActions = {
loaded: (e) => V5(e),
openDetail: (e) => w9(e),
openAuthor: (e) => Q.navigatePath(Pn("creator", e)),
- toggleSelection: (e, t) => FLe(e, t),
+ toggleSelection: (e, t) => PLe(e, t),
setImagesOnly: (e) => {
Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), s5();
},
setPhotoLayout: (e) => {
- wM(e), s5();
+ TM(e), s5();
},
canFlip: () => !Ql && !X7() && !window.__scrolling && !X.reduceMotion(),
toast: (e, { undo: t } = {}) => x8.actionReceipt(e, { undo: t }),
failure: (e, t) => x8.actionFailure(e, t),
- checkReport: (e) => eze(e)
+ checkReport: (e) => $Re(e)
}, $.followFeedShell = {
skeleton: () => $.followSkeletonHtml("正在读取关注内容"),
ground: () => {
@@ -83045,7 +83020,7 @@ function oze() {
view: y9,
adoptView: b9,
rememberReturn: (e) => W({ followDetailReturnPath: e }),
- close: () => void ize(),
+ close: () => void rze(),
open: (e, t, n) => void w9(e, !0, t, n),
drawer: V5,
openAuthor: (e) => Q.navigatePath(Pn("creator", e))
@@ -83055,7 +83030,7 @@ function oze() {
canFlip: $.followFeedActions.canFlip
});
}
-function sze() {
+function oze() {
$.controller = Ma({
location: () => location,
view: y9,
@@ -83073,8 +83048,8 @@ function sze() {
preferences: () => ({
selectMode: Ql,
selected: Zl,
- photoSize: vM(),
- photoLayout: yM(),
+ photoSize: yM(),
+ photoLayout: bM(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
live: x9,
@@ -83099,8 +83074,8 @@ function sze() {
}, $.followFeedHelpers, $.followFeedActions), $.followFeedActions = $.controller.actions, $.followFeedProps = $.controller.props, $.followFeedShell.refresh = $.controller.refresh, $.followFeedShell.props = $.controller.props;
}
// src/application/lifecycle.js
-function cze() {
- $Ee(), Qc(document), Ro(document.documentElement, { variant: "page" }), Ro(L("#drawerScroll")), L8.own(Yc()), Wa(document.body), X.homeHasFeed = fLe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, L5.sidebarProps = {
+function sze() {
+ QEe(), Qc(document), Ro(document.documentElement, { variant: "page" }), Ro(L("#drawerScroll")), L8.own(Yc()), Wa(document.body), X.homeHasFeed = dLe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, L5.sidebarProps = {
content: null,
filters: {},
latest: null
@@ -83111,12 +83086,12 @@ function cze() {
], $.FOLLOW_RANDOM_SORT = "rand", $.followSort = "new", $.followDir = "desc", $.followSeed = 0, $.followDurMin = 0, $.followDurMax = 0;
}
// src/application/tutorial.js
-async function lze() {
- SU({ reopen: !0 });
+async function cze() {
+ CU({ reopen: !0 });
}
-function uze() {
+function lze() {
let e = new URL(location.href), t = e.searchParams.get("onboarding") === "1";
- W({ cameFromSetup: t }), L8.handler(document.getElementById("tutorialBtn"), "onclick", () => SU()), SU({ invitation: !0 }), t && e.searchParams.delete("onboarding");
+ W({ cameFromSetup: t }), L8.handler(document.getElementById("tutorialBtn"), "onclick", () => CU()), CU({ invitation: !0 }), t && e.searchParams.delete("onboarding");
let n = e.searchParams.get("agentation");
try {
localStorage.removeItem("peach.agentation");
@@ -83178,15 +83153,15 @@ var T9 = [
size: 5
}
];
-function dze() {
+function uze() {
return T9.map((e) => ({
...e,
items: [],
pending: !0
}));
}
-var fze = (e) => e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10), E9 = (e, t = e.length) => t > 1 ? `${e[0]} 等 ${t} 人` : e[0] || "";
-async function pze(e) {
+var dze = (e) => e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10), E9 = (e, t = e.length) => t > 1 ? `${e[0]} 等 ${t} 人` : e[0] || "";
+async function fze(e) {
let t = await e("/api/search/recommendations"), n = (e, t, n, r = "") => ({
value: String(e.code || e.display_title || e.title || e.name || "未命名作品"),
id: e.id,
@@ -83221,7 +83196,7 @@ async function pze(e) {
avatar_focus: n.avatar_focus,
rep: n.has_avatar ? n.rep : null,
works: [e],
- subtitle: r ? `最新作 ${r.code || "无番号"} · ${fze(r.release_date)}` : "最新作未取得"
+ subtitle: r ? `最新作 ${r.code || "无番号"} · ${dze(r.release_date)}` : "最新作未取得"
});
}
a.performer = o && [...s.values()];
@@ -83276,7 +83251,7 @@ async function pze(e) {
};
}
// src/application/search-morph.js
-function mze(e, t, n, r, i, a, o) {
+function pze(e, t, n, r, i, a, o) {
let s = a.startsWith("linear(") ? a.slice(7, -1).split(",").map(Number) : [0, 1];
return s.map((a, c) => {
let l = c / (s.length - 1), u = (e, t) => e + (t - e) * a, d = Math.max(8, Math.min(o - 44, u(e.left, t.left))), f = Math.max(36, Math.min(o - 8 - d, u(e.width, t.width))), p = u(e.height, t.height) + Math.sin(Math.PI * l) * t.height * .12, m = u(e.top + e.height / 2, t.top + t.height / 2);
@@ -83301,7 +83276,7 @@ var D9 = {
function O9() {
D9.searchControl?.close();
}
-function hze(e) {
+function mze(e) {
let t = e ? to({
...e,
is_jav: !!e.code
@@ -83320,7 +83295,7 @@ function A9(e) {
if (t.classList.toggle("open", e), L("#searchBtn").setAttribute("aria-expanded", String(e)), innerWidth > 760 || matchMedia("(prefers-reduced-motion:reduce)").matches) return;
let s = t.getBoundingClientRect(), c = getComputedStyle(t), l = parseFloat(c.paddingLeft), u = t.querySelector("svg").getBoundingClientRect().width, d = Math.max(0, (o.width - u) / 2 - parseFloat(c.borderLeftWidth)), f = r ? i : e ? o : s, p = e ? s : o, m = Uc();
t.classList.add("search-morphing");
- let h = t.animate(mze(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
+ let h = t.animate(pze(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
duration: m.duration,
easing: "linear",
fill: "both"
@@ -83329,13 +83304,13 @@ function A9(e) {
D9.searchMorph === h && k9();
});
}
-function gze() {
+function hze() {
return e9.immerseOpen() ? o8().activeVideo() : r8()?.activeVideo() || null;
}
-function _ze(e) {
+function gze(e) {
return !!e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);
}
-function vze() {
+function _ze() {
D9.searchControl = null, D9.searchActions = {
search: (e) => {
X.rememberSearchValue(), r9(!1), U.q = e, Su(), Q.route(U.jav === "1" ? p7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);
@@ -83347,11 +83322,11 @@ function vze() {
$.followMediaView = t, w9(e, !0, n);
}
}, D9.searchHelpers = {
- pool: () => wxe(U, Tn),
- recommendations: () => pze(Tn),
- pendingRecommendations: dze,
+ pool: () => Cxe(U, Tn),
+ recommendations: () => fze(Tn),
+ pendingRecommendations: uze,
rollPlaceholder: (e, t) => Qs(e, t),
- coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${z(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? W8(e) : hze(e)}</span>`,
+ coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${z(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? W8(e) : mze(e)}</span>`,
present: (e) => cs(e),
dismiss: (e) => ls(e),
wireScroller: (e) => Ac(e),
@@ -83385,7 +83360,7 @@ function vze() {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
});
}
-function yze() {
+function vze() {
D9.searchMorph = null, D9.searchMorphViewport = innerWidth, L8.listen.bind(L8, window)("resize", () => {
innerWidth !== D9.searchMorphViewport && (D9.searchMorphViewport = innerWidth, k9());
}, { passive: !0 }), L8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", k9), L8.handler(L("#searchBtn"), "onclick", () => {
@@ -83427,7 +83402,7 @@ function yze() {
}
return;
}
- if (_ze(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;
+ if (gze(e.target) || e.ctrlKey || e.metaKey || e.altKey) return;
if (e.shiftKey && (e.key === "S" || e.key === "s")) {
e.preventDefault(), Q7(!X7());
return;
@@ -83439,26 +83414,26 @@ function yze() {
return;
}
}
- let t = gze();
+ let t = hze();
if (t) {
if (e.key === "t" || e.key === "T") {
e.preventDefault(), r8()?.toggleTheater();
return;
}
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
- e.preventDefault(), oP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
+ e.preventDefault(), sP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
return;
}
if (e.key === " " || e.key === "k" || e.key === "K") {
- e.preventDefault(), aP(t);
+ e.preventDefault(), oP(t);
return;
}
if (e.key === "m" || e.key === "M") {
- e.preventDefault(), bN(t, ".vjs-mute-control");
+ e.preventDefault(), xN(t, ".vjs-mute-control");
return;
}
if (e.key === "f" || e.key === "F") {
- e.preventDefault(), bN(t, ".vjs-fullscreen-control");
+ e.preventDefault(), xN(t, ".vjs-fullscreen-control");
return;
}
if (e.key === "i" || e.key === "I") {
@@ -83469,7 +83444,7 @@ function yze() {
});
}
// src/history/links.ts
-function bze(e) {
+function yze(e) {
if (e.defaultPrevented || e.button !== 0 || e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) return null;
let t = e.target instanceof Element ? e.target.closest("a[href]") : null;
if (!t || t.hasAttribute("download") || t.target && t.target.toLowerCase() !== "_self") return null;
@@ -83492,23 +83467,23 @@ var j9 = {
shellActions: void 0,
routing: void 0
};
-function xze() {
+function bze() {
let e = L8, t = (e) => {
e.kind === "item" ? s9(e.id, !1) : e.kind === "jav" ? l9(e.code, !1) : e.kind === "follow" ? w9(e.id, !1) : i9(e.queue, e.key, e.item, !1);
};
- if (dLe(), M5.entityShapesReady = G8(), $Le(), location.pathname === "/") {
+ if (uLe(), M5.entityShapesReady = G8(), QLe(), location.pathname === "/") {
let e = new URLSearchParams(location.search);
!e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1, Z5(L("#catalogPageHeading"), e.get("q")));
}
- Z8(decodeURIComponent(location.pathname)) && J8(L("#feedNew")), sRe(), j9.shellActions = {
+ Z8(decodeURIComponent(location.pathname)) && J8(L("#feedNew")), oRe(), j9.shellActions = {
openSettings: (e) => K5(e, !0),
closeSettings: () => l8()?.close(!1),
openItem: (e) => void s9(e),
openEntity: (e, t) => void h5(e, t),
openTag: (e) => {
- rRe(), M7(e);
+ nRe(), M7(e);
},
- openTasteSignal: DLe,
+ openTasteSignal: ELe,
navigate: (e) => {
let n = new URL(e, location.href), r = zf(n.pathname, n.search);
if (r) {
@@ -83527,9 +83502,9 @@ function xze() {
toast: (e, t) => x8.toast(e, t),
failure: x8.actionFailure,
revealSource: u5,
- reopenTutorial: lze,
- routeReview: ALe,
- routeFollowManage: KLe,
+ reopenTutorial: cze,
+ routeReview: kLe,
+ routeFollowManage: GLe,
saveFollowPreference: (e) => {
e.pageSize !== void 0 && (Z.appSettings.followPageSize = e.pageSize), e.layout !== void 0 && (Z.appSettings.followLayout = e.layout), Z.saveSettings();
},
@@ -83540,10 +83515,10 @@ function xze() {
},
exitSelectMode: () => T5(!1, !1),
personAvatar: (e, t, n) => O5.personAvatar(e, t, n),
- authorAvatar: (e) => JLe(e),
- showIndexTags: YLe,
+ authorAvatar: (e) => qLe(e),
+ showIndexTags: JLe,
openFollowAuthor: j5,
- openFollowTag: XLe,
+ openFollowTag: YLe,
openPlaylist: (e, t) => void a9(e, t, !0),
canFlip: () => !Ql && !X7() && !window.__scrolling && !X.reduceMotion(),
surfaceChanged: (e, t) => {
@@ -83604,23 +83579,23 @@ function xze() {
}
}
}, j9.routing = !1, e.listen(document, "click", (e) => {
- let t = bze(e);
+ let t = yze(e);
t && (e.preventDefault(), j9.shellActions.navigate(t));
}), L8.own(Op.listen((e) => {
Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !Bf(e.location.pathname) && r9(!1), j9.routing && !e.claimed && g9();
- })), kIe(j9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), uRe(), BLe(), J5(), Promise.all([
+ })), OIe(j9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), lRe(), zLe(), J5(), Promise.all([
q7(),
- cRe(),
+ sRe(),
M5.entityShapesReady
]).then(() => {
- e.isActive && (M5.wantsDiscoveryBars() && A7().catch((e) => console.error("首页横条装载失败", e)), p9(), RRe(), j9.routing = !0, W({ pageOpens: 1 }), g9(), d7());
+ e.isActive && (M5.wantsDiscoveryBars() && A7().catch((e) => console.error("首页横条装载失败", e)), p9(), LRe(), j9.routing = !0, W({ pageOpens: 1 }), g9(), d7());
}).catch((t) => {
e.isActive && console.error("应用启动失败", t);
});
}
// src/theme-transition.ts
var M9 = !1;
-async function Sze(e, t) {
+async function xze(e, t) {
if (M9) return;
if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
@@ -83642,7 +83617,7 @@ async function Sze(e, t) {
}
}
// src/application/chrome.js
-function Cze() {
+function Sze() {
(() => {
let e = L8, t = [
"#brandHome",
@@ -83742,14 +83717,14 @@ function Cze() {
(document.querySelector(".top") || m.closest("header")).prepend(h), e.own(() => h.remove());
let g = document.createElement("div");
g.className = "board-sidebar-foot", e.own(() => g.remove()), g.innerHTML = `<div class="board-theme-toggle" role="group" aria-label="明暗主题"><span class="board-theme-thumb" aria-hidden="true"></span><button type="button" data-board-theme="light" aria-label="浅色主题">${R("sun")}</button><button type="button" data-board-theme="dark" aria-label="深色主题">${R("moon")}</button></div>`, g.insertAdjacentHTML("beforeend", "<div class=\"board-foot-actions\"><button type=\"button\" class=\"board-glow-toggle\" id=\"boardGlowBtn\" aria-label=\"光晕配色\" aria-haspopup=\"dialog\" aria-expanded=\"false\" aria-controls=\"boardGlowMenu\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#ri-palette-line\"/></svg><span class=\"board-glow-mark\" aria-hidden=\"true\"><span class=\"board-glow-mark-glow\"></span><span class=\"board-glow-mark-accent\"></span></span></button></div>"), g.querySelector(".board-foot-actions").append(document.querySelector("#settingsBtn")), document.querySelector("#drawer").append(g), g.querySelectorAll("[data-board-theme]").forEach((t) => e.handler(t, "onclick", () => {
- t.getAttribute("aria-pressed") !== "true" && Sze(t, () => {
- Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), sM();
+ t.getAttribute("aria-pressed") !== "true" && xze(t, () => {
+ Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), cM();
});
- })), sM();
+ })), cM();
let _ = document.createElement("div");
_.className = "popmenu board-glow-menu", _.id = "boardGlowMenu", _.hidden = !0, _.setAttribute("popover", "manual"), _.setAttribute("role", "dialog"), _.setAttribute("aria-label", "配色"), document.body.append(_), e.own(() => _.remove());
let v = g.querySelector("#boardGlowBtn"), y = fs(g, v, _);
- e.own(y.dispose), e.own(zle(v)), IIe({
+ e.own(y.dispose), e.own(Rle(v)), FIe({
root: _,
store: Z.settingsStore,
openDetails: () => {
@@ -83892,15 +83867,15 @@ function Cze() {
})(), W5(!U5() && sessionStorage.getItem("board.sidebar") !== "closed");
}
// src/application/initialize.js
-function wze() {
- cze(), JRe(), eRe(), YRe(), BRe(), LIe(), MRe(), uze(), wLe(), KRe(), VLe(), NRe(), _Le(), jLe(), oze(), ZLe(), TLe(), sze(), QLe(), ELe(), gRe(), PRe(), vze(), qRe(), yze(), VRe(), xze(), Cze(), L8.own(L7), L8.own(m9);
+function Cze() {
+ sze(), qRe(), $Le(), JRe(), zRe(), IIe(), jRe(), lze(), CLe(), GRe(), BLe(), MRe(), gLe(), ALe(), aze(), XLe(), wLe(), oze(), ZLe(), TLe(), hRe(), NRe(), _ze(), KRe(), vze(), BRe(), bze(), Sze(), L8.own(L7), L8.own(m9);
}
// src/ui-kit/middle-truncate.ts
-var Tze = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, P9 = /* @__PURE__ */ new WeakMap(), F9 = /* @__PURE__ */ new Set(), I9 = 0, L9 = /* @__PURE__ */ new WeakSet(), R9 = null, z9 = null, B9 = (e) => N9 ? [...N9.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), V9 = (e, t) => {
+var wze = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, P9 = /* @__PURE__ */ new WeakMap(), F9 = /* @__PURE__ */ new Set(), I9 = 0, L9 = /* @__PURE__ */ new WeakSet(), R9 = null, z9 = null, B9 = (e) => N9 ? [...N9.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), V9 = (e, t) => {
if (t >= e.length) return e.join("");
let n = Math.ceil(t / 2), r = Math.floor(t / 2);
- return e.slice(0, n).join("") + Tze + (r ? e.slice(-r).join("") : "");
-}, Eze = (e, t) => {
+ return e.slice(0, n).join("") + wze + (r ? e.slice(-r).join("") : "");
+}, Tze = (e, t) => {
if (!e.length || t(e.join(""))) return e.length;
let n = 0, r = e.length - 1, i = 0;
for (; n <= r;) {
@@ -83908,21 +83883,21 @@ var Tze = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
t(V9(e, a)) ? (i = a, n = a + 1) : r = a - 1;
}
return i;
-}, Dze = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-￯]/u, Oze = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, kze = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, Aze = /[＀-￯]/u, jze = (e) => Oze.test(e) ? 1 : kze.test(e) && !Aze.test(e) ? 2 : 0, Mze = (e) => {
+}, Eze = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-￯]/u, Dze = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, Oze = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, kze = /[＀-￯]/u, Aze = (e) => Dze.test(e) ? 1 : Oze.test(e) && !kze.test(e) ? 2 : 0, jze = (e) => {
let t = 0, n = 0;
for (let r of e) {
- let e = jze(r);
+ let e = Aze(r);
n && e && n !== e && t++, n = e;
}
return t;
-}, Nze = null, Pze = (e, t) => {
- let n = getComputedStyle(e), r = (Nze ||= document.createElement("canvas")).getContext("2d");
+}, Mze = null, Nze = (e, t) => {
+ let n = getComputedStyle(e), r = (Mze ||= document.createElement("canvas")).getContext("2d");
if (!r) return () => Infinity;
r.font = n.font || `${n.fontStyle} ${n.fontWeight} ${n.fontSize} ${n.fontFamily}`;
let i = parseFloat(n.letterSpacing), a = parseFloat(n.wordSpacing), o = n.getPropertyValue("text-autospace"), s = t && o && o !== "no-autospace" ? (parseFloat(n.fontSize) || 0) / 8 : 0;
return (e) => {
let t = r.measureText(e).width;
- return Number.isFinite(i) && (t += Math.max(0, B9(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += Mze(e) * s), t;
+ return Number.isFinite(i) && (t += Math.max(0, B9(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += jze(e) * s), t;
};
}, H9 = [
"font-family",
@@ -83949,7 +83924,7 @@ var Tze = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
"text-autospace",
"text-spacing-trim",
"white-space-collapse"
-], U9 = null, Fze = (e) => {
+], U9 = null, Pze = (e) => {
if (!U9) {
let e = document.createElement("div");
e.setAttribute("aria-hidden", "true"), e.dataset.middleTruncateProbe = "", e.style.cssText = "position:fixed;left:0;top:0;width:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none;contain:strict", U9 = {
@@ -83960,8 +83935,8 @@ var Tze = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
U9.box.isConnected || document.documentElement.append(U9.box);
let t = getComputedStyle(e), n = H9.map((e) => t.getPropertyValue(e)), r = e.closest("[lang]")?.getAttribute("lang") || "", i = n.join("\n") + "\n" + r, a = U9.groups.get(i);
return a || (a = document.createElement("div"), n.forEach((e, t) => a.style.setProperty(H9[t], e)), a.lang = r, U9.box.append(a), U9.groups.set(i, a)), a;
-}, Ize = 8, Lze = (e) => {
- for (let t = 0; e.length && t < Ize; t++) {
+}, Fze = 8, Ize = (e) => {
+ for (let t = 0; e.length && t < Fze; t++) {
let t = e.map((e) => e.tries.map((t) => {
let n = document.createElement("span");
return n.style.cssText = "display:block;width:max-content;text-wrap-mode:nowrap", n.textContent = V9(e.fit.parts, t), e.group.append(n), n;
@@ -83979,28 +83954,28 @@ var Tze = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
])].filter((t) => t > e.fits && t < e.fails), !0;
});
}
-}, Rze = (e) => {
+}, Lze = (e) => {
let t = [];
for (let n of e) {
- let e = n.state.full, r = Dze.test(e), i = Pze(n.element, r);
- if (n.kept = Eze(n.parts, (e) => i(e) <= n.available), !r) continue;
+ let e = n.state.full, r = Eze.test(e), i = Nze(n.element, r);
+ if (n.kept = Tze(n.parts, (e) => i(e) <= n.available), !r) continue;
let a = [n.kept, n.kept + 1].filter((e) => e > 0 && e <= n.parts.length);
t.push({
fit: n,
- group: Fze(n.element),
+ group: Pze(n.element),
fits: 0,
fails: n.parts.length + 1,
tries: a
});
}
- Lze(t);
-}, zze = (e) => {
+ Ize(t);
+}, Rze = (e) => {
let t = getComputedStyle(e), n = parseFloat(t.width);
if (!Number.isFinite(n)) return e.clientWidth;
let r = t.boxSizing === "border-box" ? n - (parseFloat(t.borderLeftWidth) || 0) - (parseFloat(t.borderRightWidth) || 0) : n + (parseFloat(t.paddingLeft) || 0) + (parseFloat(t.paddingRight) || 0);
return Math.max(e.clientWidth, r + 1 / 64);
-}, Bze = (e) => {
- if (e.dataset.middleTruncateWithin === void 0) return zze(e);
+}, zze = (e) => {
+ if (e.dataset.middleTruncateWithin === void 0) return Rze(e);
let t = e.parentElement;
if (!t) return e.clientWidth;
let n = getComputedStyle(t), r = parseFloat(n.columnGap) || 0, i = 0, a = 0;
@@ -84009,7 +83984,7 @@ var Tze = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
n === e ? a++ : t > 0 && (i += t, a++);
}
return t.getBoundingClientRect().width - (parseFloat(n.paddingLeft) || 0) - (parseFloat(n.paddingRight) || 0) - i - r * Math.max(0, a - 1);
-}, Vze = () => {
+}, Bze = () => {
I9 = 0;
let e = [];
for (let t of F9) {
@@ -84017,12 +83992,12 @@ var Tze = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
n && t.isConnected && e.push({
element: t,
state: n,
- available: Bze(t),
+ available: zze(t),
parts: B9(n.full),
kept: 0
});
}
- F9.clear(), Rze(e.filter((e) => e.available > 0));
+ F9.clear(), Lze(e.filter((e) => e.available > 0));
for (let { element: t, state: n, available: r, parts: i, kept: a } of e) {
let e = r > 0 ? V9(i, a) : n.full;
n.rendered = e, t.textContent !== e && (t.textContent = e);
@@ -84030,7 +84005,7 @@ var Tze = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
t.classList.toggle("middle-truncated", o), t.setAttribute("aria-label", n.full), t.hasAttribute("title") && t.dataset.middleTitle !== "true" || (t.title = n.full, t.dataset.middleTitle = "true");
}
}, W9 = (e) => {
- P9.has(e) && (F9.add(e), I9 ||= requestAnimationFrame(Vze));
+ P9.has(e) && (F9.add(e), I9 ||= requestAnimationFrame(Bze));
}, G9 = (e) => {
e instanceof HTMLElement && (P9.has(e) || P9.set(e, {
full: e.textContent || "",
@@ -84041,7 +84016,7 @@ var Tze = "…", N9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
let t = e;
t.matches("[data-middle-truncate]") && G9(t), t.querySelectorAll("[data-middle-truncate]").forEach(G9);
};
-function Hze(e = document) {
+function Vze(e = document) {
z9?.(), L9 = /* @__PURE__ */ new WeakSet();
let t = !0;
R9 = new ResizeObserver((e) => e.forEach((e) => {
@@ -84108,7 +84083,7 @@ var q9 = [
"jav-detail",
"wants",
"index"
-], Uze = {
+], Hze = {
catalog: [
...q9,
...J9,
@@ -84129,10 +84104,10 @@ var q9 = [
"avatar-choices"
]
};
-function Wze() {
+function Uze() {
let e = /* @__PURE__ */ new Set(), t = null;
return (n, r) => {
- for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of Uze[t] || []) e.add(n);
+ for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of Hze[t] || []) e.add(n);
return !t && e.size && (t = (async () => {
for (; e.size;) {
let t = new Set(e);
@@ -84145,12 +84120,12 @@ function Wze() {
})), t || Promise.resolve();
};
}
-function Gze() {
+function Wze() {
let e = Ft({
- queryKey: WI,
- queryFn: ({ signal: e }) => KI(e),
- refetchInterval: (e) => GI(e.state.data)
- }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(Wze), r = e.data?.result_versions;
+ queryKey: KI,
+ queryFn: ({ signal: e }) => JI(e),
+ refetchInterval: (e) => qI(e.state.data)
+ }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(Uze), r = e.data?.result_versions;
return (0, F.useEffect)(() => {
r && (t.current && n(t.current, r), t.current = r);
}, [r, n]), null;
@@ -84160,52 +84135,52 @@ var X9 = null;
function Z9(e) {
X9 !== e || e.owners || (X9 = null, e.effects.dispose());
}
-function Kze() {
+function Gze() {
if (!X9) {
- let e = $Ie();
+ let e = QIe();
X9 = {
effects: e,
owners: 0
- }, e.own(Hze(document)), e.own(() => {
+ }, e.own(Vze(document)), e.own(() => {
Nl(), H.cancelQueries();
- }), e.own(AIe), e.own(vp), e.own(os);
+ }), e.own(kIe), e.own(vp), e.own(os);
}
return X9.owners += 1, X9.effects.resume(), X9;
}
-function qze() {
+function Kze() {
let [e, t] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
- let e = X9 === null, n = Kze(), r = OIe(t);
+ let e = X9 === null, n = Gze(), r = DIe(t);
if (e) try {
- wze();
+ Cze();
} catch (e) {
throw r(), n.effects.dispose(), X9 = null, e;
}
return () => {
r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => Z9(n)));
};
- }, []), /* @__PURE__ */ (0, I.jsx)(nbe, {
+ }, []), /* @__PURE__ */ (0, I.jsx)(tbe, {
actions: e,
processing: !0,
- background: e ? /* @__PURE__ */ (0, I.jsx)(Gze, {}) : null
+ background: e ? /* @__PURE__ */ (0, I.jsx)(Wze, {}) : null
});
}
var Q9 = /* @__PURE__ */ new WeakMap();
-function Jze(e) {
+function qze(e) {
let t = Q9.get(e);
if (t) return t;
- let n = (0, zt.createRoot)(e, rbe);
+ let n = (0, zt.createRoot)(e, nbe);
Q9.set(e, n);
let r = n.unmount.bind(n);
return n.unmount = () => {
Q9.get(e) === n && (Q9.delete(e), r(), X9 && Z9(X9));
- }, (0, Rt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(qze, {}))), n;
+ }, (0, Rt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(Kze, {}))), n;
}
// src/react/bootstrap.tsx
O();
var $9 = document.getElementById("appRoot");
if (!$9) throw Error("主界面宿主缺失");
-Jze($9);
-export { BL as $2ec61d1d4f780267$export$a8a3e93435678ff9, JL as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, dz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, CD as $72abaeab4d80592f$export$78efe591171d7d45, rB as $76d00c5a4edb230a$export$76ccd210b9029917, eB as $76d00c5a4edb230a$export$816b5d811295e6bc, oB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, cB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, $z as $76d00c5a4edb230a$export$f850895b287ef28e, jhe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Ahe as $b4f18e3395fe64d7$export$3e41faf802a29e71, Dhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, fB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Phe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, uE as $ea3928288112382f$export$439d29a4e110a164, wz as $f2ff30fde7b014be$export$3ddf2d174ce01153, jz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Mz as $fe21c36db05242bb$export$d7b12c4107be0d61, fge as $l, Gj as ACCENTS, mAe as AMANE_BRIDGE_CHECK_URL, L$ as AMANE_BRIDGE_KEY, hAe as AMANE_BRIDGE_REBUILD_URL, sr as ApiError, qU as ArtSlot, h2 as BATCH_DELETE_TEXT, J as Button, vL as ButtonLink, GB as Bx, f$ as CLEANUP_ENTRY, d$ as CLEANUP_ENTRY_GRID, Zf as CLEANUP_HASH_REDIRECTS, Yf as CLEANUP_TOOLS, vn as CLOUD_LOCATIONS, H1 as CLOUD_PROXY_HELP, Kr as COLUMN_SORT, e1 as CONFIGURATION_KEY, KY as CONFIGURATION_URL, gAe as COOKIE_TEXT_LIMIT, I$ as COVER_JOB_KEY, Yi as CREDENTIAL_STATE, M$ as CUSTOM_SOURCES_KEY, j$ as CUSTOM_SOURCES_URL, uG as CatalogViewToggle, zV as Checkbox, RV as CheckboxGlyph, kV as ChevronSortDown, KU as Chip, nW as CloudDownloadDialog, NH as CollapseChevron, MH as CollapseRegion, a$ as CollectionSummary, qwe as DEFAULT_CATEGORY, dr as DEFAULT_SORT, jQ as DIAGNOSTICS_KEY, KTe as DIRECTORY_TEMPLATE_ERROR, lW as DISCOVERY_SORTS, YU as DOWNLOADS_KEY, JU as DOWNLOADS_URL, fY as DUPLICATES_KEY, KJ as DataTableFooter, HJ as DataTableFrame, GJ as DataTableSort, zH as Disclosure, oye as DownloadsPanel, ige as E3, Jwe as ENTITY_REVIEW_KINDS, B1 as ENTRY_LINKS_HELP, V1 as ENTRY_LINKS_HINT, LB as Ea, Lge as EmptyFocusButton, dV as EmptyState, LH as ErrorText, $_e as ExternalLink, Vr as FEEDS_KEY, eX as FEED_SCHEDULE_KEY, l$ as FIELDSET_FOOT, PFe as FLOW_LABEL_X, Y3 as FLOW_VIEWBOX, zr as FOLLOW_CHECK_KEY, Rr as FOLLOW_CREDENTIALS_KEY, M8 as FOLLOW_INITIAL_RANGE_OPTIONS, Lr as FOLLOW_MANAGE_KEY, PZ as FOLLOW_MANAGE_NAV, Br as FOLLOW_RESOLVE_KEY, $Y as FOLLOW_SCHEDULE_KEY, nve as Fact, tve as FactList, RH as FieldLabel, S$ as Fieldset, x$ as FieldsetTitle, Ope as FilterGlass, dL as FilterGlassRows, uL as FilterIconButton, fL as FilterPill, Q_e as Footer, HB as Gg, pL as GlassPill, YB as HN, IH as Help, nV as HintText, EFe as IDLE_POLL_MS, Iwe as IDLE_REPAIR, oL as IconButton, NQ as IndexSearch, sV as Input, oV as InputBase, w$ as IssueRow, lM as JAV_LAYOUTS, P0 as JAV_RECOMMENDATION_GRID, TX as JUNK_KEY, vW as JavHeader, Awe as KEEP_LABELS, Ur as LAYOUTS, z1 as LIBRARY_FOLDER_HELP, QV as LIBRARY_PROCESSING_KEY, RY as LINKS_KEY, zY as LINK_CHECK_KEY, vTe as LINK_KINDS, BY as LINK_PRUNE_KEY, nr as LOC, tV as Label, D$ as LibraryProcessingCard, OV as LibraryShortcuts, mH as LinkButton, mge as Lo, DH as LoadingDots, age as M6, CTe as MEDIA_PROCESSING_KEY, nX as MEDIA_PROCESSING_URL, _Y as MEDIA_REPAIR_KEY, gY as MEDIA_REPAIR_URL, yr as MEDIA_SOURCES_KEY, _s as MEDIA_SOURCE_ICONS, gn as MEDIA_SOURCE_OPTIONS, NV as MENU_ITEM, PV as MENU_ITEM_INTERACTIVE, MV as MENU_POPOVER_SURFACE, gge as Ma, vH as MenuDialog, bK as MixCard, cV as ModalFrame, bx as MotionConfigContext, $B as NR, C$ as NameLink, uV as Note, Nge as OA, aX as ORGANIZE_KEY, f2 as ORGANIZE_PARAMETER_HINT, d2 as ORGANIZE_SCOPE_HINT, u2 as ORGANIZE_TEXT, cX as ORPHAN_RECORDS_KEY, m2 as ORPHAN_RECORDS_TEXT, BB as OV, wB as P7, SX as PERFORMER_DELETE_KEY, hye as PHASES, qY as PICK_FOLDER_URL, m$ as PLAIN_STAT_STRIP, k$ as PLAYLISTS_KEY, xje as POLICY_COLUMNS, Cje as POLICY_COVER_NOTE, Sje as POLICY_MATRIX, R1 as POLICY_SUMMARY, WJ as Pagination, E$ as PathLine, ZB as Pf, FI as PillTabList, Ike as PlainStat, kH as Progress, SY as QUALITY_GOALS_KEY, XB as RB, j0 as RELEASE_COLUMN_VISIBILITY_KEY, A0 as RELEASE_COLUMN_WIDTHS_KEY, uW as RELEASE_SORTS, Zje as RELEASE_SORT_COLUMNS, g$ as REPAIR_CARD_TEXT, vY as REPAIR_LIBRARIES_KEY, pX as RESOURCE_APPLY_KEY, fX as RESOURCE_SCAN_KEY, p2 as RESOURCE_SYNC_TEXT, Hke as RESULT_PANEL, Uke as RESULT_SECTION, Kwe as REVIEW_CATEGORIES, wX as REVIEW_COUNTS_KEY, Ywe as REVIEW_DECISION_LABELS, TY as REVIEW_KEY, EY as REVIEW_LABELS, OY as REVIEW_QUEUES, kY as REVIEW_QUEUE_LABELS, VG as RetryNote, Mge as Rf, eV as Rk, Y_e as Rows, fAe as SCRAPING_CHECK_URL, P$ as SCRAPING_COVER_URL, F$ as SCRAPING_KEY, dAe as SCRAPING_SETTINGS_URL, aU as SEGMENT, iU as SEGMENTED_TRACK, QY as SETTINGS_KEY, JY as SETTINGS_URL, fr as SORT_DEFAULT_DIR, ur as SORT_OPTIONS, yn as SOURCE_LABELS, b3 as STATS_KEY, Pke as STAT_STRIP, Fke as STAT_STRIP_SIX, J_e as Section, Wke as SectionHeading, Z_e as SectionSkeleton, rU as SegmentedRadioGroup, _ve as SegmentedTabList, PG as Segments, UJ as Select, UU as Select$1, i1 as SelectField, WU as SelectItem, $J as SelectionActions, Cj as SelectionDock, eY as SelectionPopover, PH as SettingsCard, q_e as SettingsRow, FH as SettingsSectionLabel, FG as Shuffle, ove as SiteLabel, fG as SortDirectionIcon, IG as SortKeys, mQ as SourceAvatar, UH as SourceLabel, BH as SourceMark, X_e as Stack, Lke as StatCard, T$ as StatusLabel, kge as Su, Q2 as Switch, WI as TASKS_KEY, hFe as TASTE_REFRESH_KEY, gFe as TASTE_WINDOWS, tX as THUMBNAIL_JOBS_KEY, DX as TRASH_KEY, spe as TRIGGER_LABELS, jJ as Table, tY as TableColumnControls, nY as TableColumnResizer, iY as TableSelectionHeader, e$ as TagManager, eve as TaskCenterLink, AH as TaskProgress, iV as TextField, rV as TextFieldContext, RB as Un, iW as WANTS_KEY, p4 as WantMagnets, Gg as WithPromise, OB as Wt, IB as Xc, QB as Xf, jB as Xl, kB as Xt, EB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, jge as aB, Ei as addAlias, Ti as addSource, oW as addWant, lS as animate, B as apiGet, V as apiSend, rM as appSettingsStore, dEe as applyConfirmText, xX as applyLeftovers, uEe as applyPlanText, pEe as applyText, sM as applyTheme, _y as asNumber, $Te as attachOrphan, ci as authorAvatar, ui as authorGroups, si as authorInitial, oi as authorName, yq as autoResetPageIndex, _o as avatarInner, E3 as bandRows, qTe as baseName, Fwe as batchOperate, Tue as beginPlayerGuidePreview, Oj as boundedPreference, Mwe as bulkCloudPreferences, hV as busyProps, Age as cB, WNe as cachedMagnetStates, zg as calcGeneratorVelocity, nTe as canApprove, mg as cancelFrame, iEe as candidateText, CU as cardClass, SM as cardRatio, zJ as catalogListSkeletonCellHtml, FB as cc, Gi as checkEvidenceGap, Wi as checkFailures, Fi as checkFeeds, STe as checkLine, Hi as checkReceipt, Ui as checkSummary, vAe as checkText, Ki as checkedText, sK as clickedBlank, G5 as closeDrawerAfterNav, wwe as cloudLocations, y0 as cloudProxySkeleton, UC as clsx, yge as cn, ov as collectMotionValues, zq as columnVisibilityFeature, EJ as column_getCanSort, SJ as column_getSortFn, eTe as commonReviewSources, tW as composingKey, Af as configurationSection, bFe as configureTasteBrowser, ll as confirmModal, ape as controlTask, tq as copyInstancePropertiesWithoutMemos, lo as coverUrl, Aq as createColumnHelper, aAe as createPlaylist, Xi as credentialDone, h0 as credentialsSkeleton, dTe as currentReviewRow, q as cx, WB as dZ, cTe as decisionPayload, lTe as decisionReceipt, sTe as defaultChoice, hEe as deletePerformerVideos, sAe as deletePlaylist, x as diagnosticHeaders, L1 as diagnosticsSkeleton, wye as discoveryArtwork, dW as discoveryKey, xye as discoveryScore, r9 as disposeStage, Owe as distinctName, Bi as dropSources, Oge as du, Nwe as duplicateVictims, ZI as elapsedText, nn as entityDisplayName, go as entityFaceImg, Pn as entityPath, ti as errorHeadline, lr as errorMessage, z as esc, vq as expandRowModel, _B as f1, bo as facePos, ei as feedIntervalText, B$ as fetchAmaneBridge, vi as fetchCheckJob, t1 as fetchConfiguration, z$ as fetchCoverJob, _i as fetchCredentials, N$ as fetchCustomSources, CX as fetchDeletePerformers, mEe as fetchDeletePlan, MQ as fetchDiagnostics, fW as fetchDiscoveries, mY as fetchDuplicates, tpe as fetchEarlier, ETe as fetchFeedSchedule, Mi as fetchFeeds, gi as fetchFollow, TTe as fetchFollowSchedule, kX as fetchJunkSummary, oH as fetchLibraryProcessing, UY as fetchLinkCheck, WY as fetchLinkPrune, HY as fetchLinkStats, wTe as fetchMediaProcessing, yY as fetchMediaRepair, br as fetchMediaSources, oX as fetchOrganize, zTe as fetchOrganizeExample, lX as fetchOrphanRecords, ji as fetchPending, A$ as fetchPlaylists, CY as fetchQualityGoals, hW as fetchReleases, bY as fetchRepairLibraries, yi as fetchResolveJob, hX as fetchResourceApply, mX as fetchResourceScan, FY as fetchReview, OX as fetchReviewCounts, rX as fetchSettings, R$ as fetchSources, x3 as fetchStats, bi as fetchSuggestions, KI as fetchTasks, K3 as fetchTaste, xFe as fetchTasteJob, DTe as fetchThumbnailJobs, AX as fetchTrashSummary, aW as fetchWants, Qwe as filterReviewRows, er as firstGrapheme, LK as flexRender, IFe as flowGraph, LFe as flowLabel, FPe as fmtCount, Jn as fmtDur, Xn as fmtSize, epe as foldByKind, _pe as foldRoutine, Li as followFeedByName, Hr as followSuggestKey, ype as followupDetail, $fe as followupTally, pg as frame, SB as g4, Hq as getDefaultPaginationState, xM as gridLayout, li as groupByAuthor, gpe as groupFollowups, MY as groupReviewRows, cEe as hasChanges, gX as hasResourceRoots, JI as hasResultProblems, DFe as historySpan, vB as i2, TFe as importTasteExport, g0 as indexersSkeleton, Fg as interpolate, cW as invalidateWants, XI as isActive, $r as isBroken, qr as isLayout, _v as isMotionValue, DY as isReviewCategory, vpe as isRoutine, _0 as javBrowserSkeleton, I0 as javContentSkeleton, mM as javLayout, F0 as javTagSkeleton, bEe as junkBreakdown, cAe as keepPlaylist, ke as keepPreviousData, pi as keepSelected, S3 as known, ege as l7, hpe as latestOfKind, $n as leadingGraphemes, qPe as lengthRows, Cr as localTime, po as logoUrl, Ii as lookupFeedActor, CB as m7, UB as mM, Dn as mapLimit, Ai as markItem, D3 as max, GPe as mediumRows, npe as mergeFinished, O3 as min, gTe as mirrorText, zwe as missingToolText, hY as mixedCloudPreferences, tL as momentText, uS as motion, cv as motionValue, rn as nameFallback, Ue as notifyManager, oge as oe, YTe as organizeOutcome, Q0 as overlayHost, Jr as pageSizeOf, fi as pageWindow, hr as paginationRange, zi as patchSource, Op as peachHistory, Op as peachHistory$1, oTe as pendingGenres, LPe as percentText, HTe as pickOrganizeFolder, p$ as plainStatClass, JTe as planSummary, C3 as playedFor, zPe as playedItemUrl, GI as pollInterval, Ys as popCount, iAe as posterUrl, Jbe as previewLibraryColor, VTe as previewOrganize, Hwe as previewUrl, ppe as problemDestination, tH as processingActive, QI as progressText, HH as providerIcon, xTe as pruneText, vX as purgeCount, eEe as purgeOrphan, KB as pv, Dge as qE, H as queryClient, yB as r2, NFe as radarRows, HPe as radialArc, UPe as radialBarSize, VPe as radialCeiling, BPe as radialSlices, LN as randomId, jFe as rankDetail, MFe as rankShares, T3 as reachedShare, $I as readableErrorHeadline, Sye as recommendationScore, fTe as recordGenre, nEe as recordsText, lAe as recreatePlaylist, nAe as refreshPlaylists, El as relayoutCovers, M0 as releaseColumns, pW as releaseFilters, mW as releaseKey, Vi as reloadFollowManage, hTe as reloadReview, Eje as rememberShape, WTe as rememberTemplates, Di as removeAlias, Pi as removeFeed, wi as removeSource, wFe as removeTasteSource, sW as removeWants, Oi as renameAliasGroup, oAe as renamePlaylist, Se as replaceEqualDeep, YPe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, ZK as require_with_selector, vye as resetWants, mr as resolveFollowSort, Hg as resolveStartTime, k_e as restartEffectText, rAe as resumeAssetId, Zwe as reviewGroupingOptions, jY as reviewQueueData, AY as reviewQueueOf, yEe as reviewSummary, $we as reviewWindow, iTe as rowEvidence, PY as rowFieldName, Yq as rowPaginationFeature, gJ as rowSelectionFeature, kJ as rowSortingFeature, NY as rowSubject, aTe as rowTags, rTe as rowTitle, Zhe as s5, ki as saveCredential, lEe as scanLine, MTe as schedulePollInterval, bye as searchNote, tTe as selectReviewRange, mi as selectionState, Ni as setFeedEnabled, Ci as setSourceEnabled, Pf as settingsPath, mTe as settleReviewRows, Dwe as sharedNamePrefix, kp as shellNavigate, b8 as showToast, Bn as siteMarkUrl, lq as skipFirstRun, NI as sortCx, Xr as sortLabel, bn as sourceDefaultCost, Ji as sourceIconUrl, fEe as sourceMeta, Bs as spinnerHtml, Ng as spring, pV as spriteGlyph, xi as startCheck, yTe as startLinkCheck, bTe as startLinkPrune, UTe as startOrganize, Si as startResolve, oEe as startResourceApply, aEe as startResourceScan, CFe as startTasteRefresh, Nke as statCardClass, lpe as statusLabel, Rwe as statusLine, Qr as statusText, CM as storeJavLayout, uTe as submitDecision, nL as summaryItems, jq as tableFeatures, uq as tableMemo, di as tableRows, fpe as taskIssues, mpe as taskSubject, q3 as tasteDate, kFe as tasteDimensions, OFe as tasteHours, G3 as tasteKey, vFe as tasteRefetchInterval, yFe as tasteTime, zI as textLang, k0 as tierPlaceholdersHtml, rh as time, uge as tl, hi as toggleGroup, J3 as topScores, xge as um, hge as uo, hH as useAction, kZ as useBackgroundJob, lG as useCatalogView, FU as useClientUpdates, hm as useConstant, rL as useEntityNames, lL as useHorizontalScroller, gm as useIsomorphicLayoutEffect, oK as useLibraryTints, It as useMutation, BV as useOverlayScrollbar, Ft as useQuery, ae as useQueryClient, Qx as useReducedMotion, jTe as useRunSchedule, kTe as useSaveFollowSchedule, iX as useSaveSettings, NTe as useSaveThumbnailMode, AJ as useTable, YJ as useTablePreferences, gL as useViewGlide, Pwe as victimBytes, dge as vl, yye as wantName, RPe as watchNote, w3 as watchedShare, Ac as wireHorizontalScroller, GTe as withOrganizeJob, Cye as writeJavQuery };
+qze($9);
+export { HL as $2ec61d1d4f780267$export$a8a3e93435678ff9, XL as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, pz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, wD as $72abaeab4d80592f$export$78efe591171d7d45, aB as $76d00c5a4edb230a$export$76ccd210b9029917, nB as $76d00c5a4edb230a$export$816b5d811295e6bc, cB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, uB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, tB as $76d00c5a4edb230a$export$f850895b287ef28e, khe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Ohe as $b4f18e3395fe64d7$export$3e41faf802a29e71, The as $b4f18e3395fe64d7$export$b2539bed5023c21c, mB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Mhe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, dE as $ea3928288112382f$export$439d29a4e110a164, Ez as $f2ff30fde7b014be$export$3ddf2d174ce01153, Nz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Pz as $fe21c36db05242bb$export$d7b12c4107be0d61, dge as $l, Kj as ACCENTS, pAe as AMANE_BRIDGE_CHECK_URL, L$ as AMANE_BRIDGE_KEY, mAe as AMANE_BRIDGE_REBUILD_URL, sr as ApiError, JU as ArtSlot, h2 as BATCH_DELETE_TEXT, J as Button, bL as ButtonLink, KB as Bx, f$ as CLEANUP_ENTRY, d$ as CLEANUP_ENTRY_GRID, Zf as CLEANUP_HASH_REDIRECTS, Yf as CLEANUP_TOOLS, vn as CLOUD_LOCATIONS, H1 as CLOUD_PROXY_HELP, Kr as COLUMN_SORT, e1 as CONFIGURATION_KEY, KY as CONFIGURATION_URL, hAe as COOKIE_TEXT_LIMIT, I$ as COVER_JOB_KEY, Yi as CREDENTIAL_STATE, M$ as CUSTOM_SOURCES_KEY, j$ as CUSTOM_SOURCES_URL, uG as CatalogViewToggle, BV as Checkbox, zV as CheckboxGlyph, AV as ChevronSortDown, qU as Chip, rW as CloudDownloadDialog, PH as CollapseChevron, NH as CollapseRegion, a$ as CollectionSummary, Kwe as DEFAULT_CATEGORY, dr as DEFAULT_SORT, jQ as DIAGNOSTICS_KEY, GTe as DIRECTORY_TEMPLATE_ERROR, uW as DISCOVERY_SORTS, XU as DOWNLOADS_KEY, YU as DOWNLOADS_URL, fY as DUPLICATES_KEY, KJ as DataTableFooter, HJ as DataTableFrame, GJ as DataTableSort, BH as Disclosure, iye as DownloadsPanel, nge as E3, qwe as ENTITY_REVIEW_KINDS, B1 as ENTRY_LINKS_HELP, V1 as ENTRY_LINKS_HINT, RB as Ea, Ige as EmptyFocusButton, fV as EmptyState, RH as ErrorText, Q_e as ExternalLink, Vr as FEEDS_KEY, eX as FEED_SCHEDULE_KEY, l$ as FIELDSET_FOOT, NFe as FLOW_LABEL_X, Y3 as FLOW_VIEWBOX, zr as FOLLOW_CHECK_KEY, Rr as FOLLOW_CREDENTIALS_KEY, M8 as FOLLOW_INITIAL_RANGE_OPTIONS, Lr as FOLLOW_MANAGE_KEY, PZ as FOLLOW_MANAGE_NAV, Br as FOLLOW_RESOLVE_KEY, $Y as FOLLOW_SCHEDULE_KEY, tve as Fact, eve as FactList, zH as FieldLabel, S$ as Fieldset, x$ as FieldsetTitle, Epe as FilterGlass, pL as FilterGlassRows, fL as FilterIconButton, mL as FilterPill, Z_e as Footer, UB as Gg, hL as GlassPill, XB as HN, LH as Help, rV as HintText, TFe as IDLE_POLL_MS, Fwe as IDLE_REPAIR, cL as IconButton, NQ as IndexSearch, cV as Input, sV as InputBase, w$ as IssueRow, uM as JAV_LAYOUTS, P0 as JAV_RECOMMENDATION_GRID, TX as JUNK_KEY, yW as JavHeader, kwe as KEEP_LABELS, Ur as LAYOUTS, z1 as LIBRARY_FOLDER_HELP, $V as LIBRARY_PROCESSING_KEY, RY as LINKS_KEY, zY as LINK_CHECK_KEY, _Te as LINK_KINDS, BY as LINK_PRUNE_KEY, nr as LOC, nV as Label, D$ as LibraryProcessingCard, kV as LibraryShortcuts, hH as LinkButton, pge as Lo, OH as LoadingDots, rge as M6, STe as MEDIA_PROCESSING_KEY, nX as MEDIA_PROCESSING_URL, _Y as MEDIA_REPAIR_KEY, gY as MEDIA_REPAIR_URL, yr as MEDIA_SOURCES_KEY, _s as MEDIA_SOURCE_ICONS, gn as MEDIA_SOURCE_OPTIONS, PV as MENU_ITEM, FV as MENU_ITEM_INTERACTIVE, NV as MENU_POPOVER_SURFACE, hge as Ma, yH as MenuDialog, bK as MixCard, lV as ModalFrame, Sx as MotionConfigContext, eV as NR, C$ as NameLink, dV as Note, Mge as OA, aX as ORGANIZE_KEY, f2 as ORGANIZE_PARAMETER_HINT, d2 as ORGANIZE_SCOPE_HINT, u2 as ORGANIZE_TEXT, cX as ORPHAN_RECORDS_KEY, m2 as ORPHAN_RECORDS_TEXT, VB as OV, EB as P7, SX as PERFORMER_DELETE_KEY, pye as PHASES, qY as PICK_FOLDER_URL, m$ as PLAIN_STAT_STRIP, k$ as PLAYLISTS_KEY, bje as POLICY_COLUMNS, Sje as POLICY_COVER_NOTE, xje as POLICY_MATRIX, R1 as POLICY_SUMMARY, WJ as Pagination, E$ as PathLine, QB as Pf, LI as PillTabList, Fke as PlainStat, AH as Progress, SY as QUALITY_GOALS_KEY, ZB as RB, j0 as RELEASE_COLUMN_VISIBILITY_KEY, A0 as RELEASE_COLUMN_WIDTHS_KEY, dW as RELEASE_SORTS, Xje as RELEASE_SORT_COLUMNS, g$ as REPAIR_CARD_TEXT, vY as REPAIR_LIBRARIES_KEY, pX as RESOURCE_APPLY_KEY, fX as RESOURCE_SCAN_KEY, p2 as RESOURCE_SYNC_TEXT, Vke as RESULT_PANEL, Hke as RESULT_SECTION, Gwe as REVIEW_CATEGORIES, wX as REVIEW_COUNTS_KEY, Jwe as REVIEW_DECISION_LABELS, TY as REVIEW_KEY, EY as REVIEW_LABELS, OY as REVIEW_QUEUES, kY as REVIEW_QUEUE_LABELS, VG as RetryNote, jge as Rf, tV as Rk, J_e as Rows, dAe as SCRAPING_CHECK_URL, P$ as SCRAPING_COVER_URL, F$ as SCRAPING_KEY, uAe as SCRAPING_SETTINGS_URL, oU as SEGMENT, aU as SEGMENTED_TRACK, QY as SETTINGS_KEY, JY as SETTINGS_URL, fr as SORT_DEFAULT_DIR, ur as SORT_OPTIONS, yn as SOURCE_LABELS, b3 as STATS_KEY, Nke as STAT_STRIP, Pke as STAT_STRIP_SIX, q_e as Section, Uke as SectionHeading, X_e as SectionSkeleton, iU as SegmentedRadioGroup, gve as SegmentedTabList, PG as Segments, UJ as Select, WU as Select$1, i1 as SelectField, GU as SelectItem, $J as SelectionActions, wj as SelectionDock, eY as SelectionPopover, FH as SettingsCard, K_e as SettingsRow, IH as SettingsSectionLabel, FG as Shuffle, ave as SiteLabel, fG as SortDirectionIcon, IG as SortKeys, mQ as SourceAvatar, WH as SourceLabel, VH as SourceMark, Y_e as Stack, Ike as StatCard, T$ as StatusLabel, Oge as Su, Q2 as Switch, KI as TASKS_KEY, mFe as TASTE_REFRESH_KEY, hFe as TASTE_WINDOWS, tX as THUMBNAIL_JOBS_KEY, DX as TRASH_KEY, ape as TRIGGER_LABELS, jJ as Table, tY as TableColumnControls, nY as TableColumnResizer, iY as TableSelectionHeader, e$ as TagManager, $_e as TaskCenterLink, jH as TaskProgress, aV as TextField, iV as TextFieldContext, zB as Un, aW as WANTS_KEY, p4 as WantMagnets, Gg as WithPromise, AB as Wt, LB as Xc, $B as Xf, MB as Xl, jB as Xt, OB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, Age as aB, Ei as addAlias, Ti as addSource, sW as addWant, dS as animate, B as apiGet, V as apiSend, iM as appSettingsStore, uEe as applyConfirmText, xX as applyLeftovers, lEe as applyPlanText, fEe as applyText, cM as applyTheme, vy as asNumber, QTe as attachOrphan, ci as authorAvatar, ui as authorGroups, si as authorInitial, oi as authorName, yq as autoResetPageIndex, _o as avatarInner, E3 as bandRows, KTe as baseName, Pwe as batchOperate, wue as beginPlayerGuidePreview, kj as boundedPreference, jwe as bulkCloudPreferences, gV as busyProps, kge as cB, UNe as cachedMagnetStates, zg as calcGeneratorVelocity, tTe as canApprove, mg as cancelFrame, rEe as candidateText, wU as cardClass, CM as cardRatio, zJ as catalogListSkeletonCellHtml, IB as cc, Gi as checkEvidenceGap, Wi as checkFailures, Fi as checkFeeds, xTe as checkLine, Hi as checkReceipt, Ui as checkSummary, _Ae as checkText, Ki as checkedText, sK as clickedBlank, G5 as closeDrawerAfterNav, Cwe as cloudLocations, y0 as cloudProxySkeleton, WC as clsx, vge as cn, ov as collectMotionValues, zq as columnVisibilityFeature, EJ as column_getCanSort, SJ as column_getSortFn, $we as commonReviewSources, nW as composingKey, Af as configurationSection, yFe as configureTasteBrowser, ll as confirmModal, rpe as controlTask, tq as copyInstancePropertiesWithoutMemos, lo as coverUrl, Aq as createColumnHelper, iAe as createPlaylist, Xi as credentialDone, h0 as credentialsSkeleton, uTe as currentReviewRow, q as cx, GB as dZ, sTe as decisionPayload, cTe as decisionReceipt, oTe as defaultChoice, mEe as deletePerformerVideos, oAe as deletePlaylist, x as diagnosticHeaders, L1 as diagnosticsSkeleton, Sye as discoveryArtwork, fW as discoveryKey, yye as discoveryScore, r9 as disposeStage, Dwe as distinctName, Bi as dropSources, Dge as du, Mwe as duplicateVictims, $I as elapsedText, nn as entityDisplayName, go as entityFaceImg, Pn as entityPath, ti as errorHeadline, lr as errorMessage, z as esc, vq as expandRowModel, yB as f1, bo as facePos, ei as feedIntervalText, B$ as fetchAmaneBridge, vi as fetchCheckJob, t1 as fetchConfiguration, z$ as fetchCoverJob, _i as fetchCredentials, N$ as fetchCustomSources, CX as fetchDeletePerformers, pEe as fetchDeletePlan, MQ as fetchDiagnostics, pW as fetchDiscoveries, mY as fetchDuplicates, $fe as fetchEarlier, TTe as fetchFeedSchedule, Mi as fetchFeeds, gi as fetchFollow, wTe as fetchFollowSchedule, kX as fetchJunkSummary, sH as fetchLibraryProcessing, UY as fetchLinkCheck, WY as fetchLinkPrune, HY as fetchLinkStats, CTe as fetchMediaProcessing, yY as fetchMediaRepair, br as fetchMediaSources, oX as fetchOrganize, RTe as fetchOrganizeExample, lX as fetchOrphanRecords, ji as fetchPending, A$ as fetchPlaylists, CY as fetchQualityGoals, gW as fetchReleases, bY as fetchRepairLibraries, yi as fetchResolveJob, hX as fetchResourceApply, mX as fetchResourceScan, FY as fetchReview, OX as fetchReviewCounts, rX as fetchSettings, R$ as fetchSources, x3 as fetchStats, bi as fetchSuggestions, JI as fetchTasks, K3 as fetchTaste, bFe as fetchTasteJob, ETe as fetchThumbnailJobs, AX as fetchTrashSummary, oW as fetchWants, Zwe as filterReviewRows, er as firstGrapheme, LK as flexRender, FFe as flowGraph, IFe as flowLabel, PPe as fmtCount, Jn as fmtDur, Xn as fmtSize, Qfe as foldByKind, hpe as foldRoutine, Li as followFeedByName, Hr as followSuggestKey, _pe as followupDetail, Zfe as followupTally, pg as frame, wB as g4, Hq as getDefaultPaginationState, SM as gridLayout, li as groupByAuthor, mpe as groupFollowups, MY as groupReviewRows, sEe as hasChanges, gX as hasResourceRoots, XI as hasResultProblems, EFe as historySpan, bB as i2, wFe as importTasteExport, g0 as indexersSkeleton, Fg as interpolate, lW as invalidateWants, QI as isActive, $r as isBroken, qr as isLayout, _v as isMotionValue, DY as isReviewCategory, gpe as isRoutine, _0 as javBrowserSkeleton, I0 as javContentSkeleton, hM as javLayout, F0 as javTagSkeleton, yEe as junkBreakdown, sAe as keepPlaylist, ke as keepPreviousData, pi as keepSelected, S3 as known, Qhe as l7, ppe as latestOfKind, $n as leadingGraphemes, KPe as lengthRows, Cr as localTime, po as logoUrl, Ii as lookupFeedActor, TB as m7, WB as mM, Dn as mapLimit, Ai as markItem, D3 as max, WPe as mediumRows, epe as mergeFinished, O3 as min, hTe as mirrorText, Rwe as missingToolText, hY as mixedCloudPreferences, rL as momentText, fS as motion, cv as motionValue, rn as nameFallback, Ue as notifyManager, ige as oe, JTe as organizeOutcome, Q0 as overlayHost, Jr as pageSizeOf, fi as pageWindow, hr as paginationRange, zi as patchSource, Op as peachHistory, Op as peachHistory$1, aTe as pendingGenres, IPe as percentText, VTe as pickOrganizeFolder, p$ as plainStatClass, qTe as planSummary, C3 as playedFor, RPe as playedItemUrl, qI as pollInterval, Ys as popCount, rAe as posterUrl, qbe as previewLibraryColor, BTe as previewOrganize, Vwe as previewUrl, dpe as problemDestination, nH as processingActive, eL as progressText, UH as providerIcon, bTe as pruneText, vX as purgeCount, $Te as purgeOrphan, qB as pv, Ege as qE, H as queryClient, xB as r2, MFe as radarRows, VPe as radialArc, HPe as radialBarSize, BPe as radialCeiling, zPe as radialSlices, RN as randomId, AFe as rankDetail, jFe as rankShares, T3 as reachedShare, tL as readableErrorHeadline, bye as recommendationScore, dTe as recordGenre, tEe as recordsText, cAe as recreatePlaylist, tAe as refreshPlaylists, El as relayoutCovers, M0 as releaseColumns, mW as releaseFilters, hW as releaseKey, Vi as reloadFollowManage, mTe as reloadReview, Tje as rememberShape, UTe as rememberTemplates, Di as removeAlias, Pi as removeFeed, wi as removeSource, CFe as removeTasteSource, cW as removeWants, Oi as renameAliasGroup, aAe as renamePlaylist, Se as replaceEqualDeep, JPe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, ZK as require_with_selector, gye as resetWants, mr as resolveFollowSort, Hg as resolveStartTime, O_e as restartEffectText, nAe as resumeAssetId, Xwe as reviewGroupingOptions, jY as reviewQueueData, AY as reviewQueueOf, vEe as reviewSummary, Qwe as reviewWindow, rTe as rowEvidence, PY as rowFieldName, Yq as rowPaginationFeature, gJ as rowSelectionFeature, kJ as rowSortingFeature, NY as rowSubject, iTe as rowTags, nTe as rowTitle, Yhe as s5, ki as saveCredential, cEe as scanLine, jTe as schedulePollInterval, vye as searchNote, eTe as selectReviewRange, mi as selectionState, Ni as setFeedEnabled, Ci as setSourceEnabled, Pf as settingsPath, pTe as settleReviewRows, Ewe as sharedNamePrefix, kp as shellNavigate, b8 as showToast, Bn as siteMarkUrl, lq as skipFirstRun, FI as sortCx, Xr as sortLabel, bn as sourceDefaultCost, Ji as sourceIconUrl, dEe as sourceMeta, Bs as spinnerHtml, Ng as spring, mV as spriteGlyph, xi as startCheck, vTe as startLinkCheck, yTe as startLinkPrune, HTe as startOrganize, Si as startResolve, aEe as startResourceApply, iEe as startResourceScan, SFe as startTasteRefresh, Mke as statCardClass, spe as statusLabel, Lwe as statusLine, Qr as statusText, wM as storeJavLayout, lTe as submitDecision, iL as summaryItems, jq as tableFeatures, uq as tableMemo, di as tableRows, upe as taskIssues, fpe as taskSubject, q3 as tasteDate, OFe as tasteDimensions, DFe as tasteHours, G3 as tasteKey, _Fe as tasteRefetchInterval, vFe as tasteTime, VI as textLang, k0 as tierPlaceholdersHtml, rh as time, lge as tl, hi as toggleGroup, J3 as topScores, bge as um, mge as uo, gH as useAction, kZ as useBackgroundJob, lG as useCatalogView, IU as useClientUpdates, hm as useConstant, aL as useEntityNames, dL as useHorizontalScroller, gm as useIsomorphicLayoutEffect, oK as useLibraryTints, It as useMutation, VV as useOverlayScrollbar, Ft as useQuery, ae as useQueryClient, eS as useReducedMotion, ATe as useRunSchedule, OTe as useSaveFollowSchedule, iX as useSaveSettings, MTe as useSaveThumbnailMode, AJ as useTable, YJ as useTablePreferences, vL as useViewGlide, Nwe as victimBytes, uge as vl, _ye as wantName, LPe as watchNote, w3 as watchedShare, Ac as wireHorizontalScroller, WTe as withOrganizeJob, xye as writeJavQuery };
-//# debugId=27c5cade-5d65-4e36-96f2-f36f4120d452
\ No newline at end of file
+//# debugId=5209a182-bcf7-4e76-90b8-20984e88c25a
\ No newline at end of file