Skip to content

armgit / peach

Public Imported from GitHub
0

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

fix(web): 目录网格取到首屏再挂载,骨架不再换第二轮

longmeidao21b56b21d22b
diff --git a/frontend/src/react/catalog-grid/catalog-grid.ts b/frontend/src/react/catalog-grid/catalog-grid.ts
index 3a76940b5..20e0f6a52 100644
--- a/frontend/src/react/catalog-grid/catalog-grid.ts
+++ b/frontend/src/react/catalog-grid/catalog-grid.ts
@@ -81,6 +81,22 @@ export function catalogQuery(props: CatalogGridProps) {
};
}
+/** 目录卡片网格的首屏:取到第一页再挂,岛挂上就是最终样子,壳铺的骨架一直留到数据到,不再交接给岛自己的
+ * 另一份骨架。同一个键缓存里还有(回到看过的筛选),或岛会认领上一代分页(恢复导航、沉浸墙)时不取,
+ * 与 `GridBody` 的初值一致。列表视图与资料页各有自己的取数。 */
+export async function prefetchCatalogGrid(props: CatalogGridProps, view: string, signal: AbortSignal): Promise<void> {
+ if (props.mode === 'items' || props.mode === 'entity' || (view === 'list' && !props.wall)) return;
+ const query = catalogQuery(props);
+ if (queryClient.getQueryData(query.queryKey) !== undefined) return;
+ if ((props.restoreNavigation || props.wall) && latestCatalogPages(query.queryKey)) return;
+ await queryClient.fetchInfiniteQuery({
+ queryKey: query.queryKey,
+ queryFn: ({ pageParam }) => query.queryFn({ pageParam: pageParam as number, signal }),
+ initialPageParam: 0,
+ getNextPageParam: query.getNextPageParam,
+ });
+}
+
export function entityQuery(props: CatalogGridProps) {
return {
queryKey: entityKey(props.entityKey || '', props.revision || 0),
diff --git a/frontend/src/react/router/managed-routes.tsx b/frontend/src/react/router/managed-routes.tsx
index dc60c07d8..ce18d187e 100644
--- a/frontend/src/react/router/managed-routes.tsx
+++ b/frontend/src/react/router/managed-routes.tsx
@@ -21,6 +21,8 @@ import { BatchDockSurface } from '../batch-dock/batch-dock-island';
import type { DataCleanupSection, LibraryProcessingProps } from '../bundle';
import { CatalogFilterPage } from '../catalog-filter/catalog-filter-page';
import { CatalogGridPage } from '../catalog-grid/catalog-grid-page';
+import { prefetchCatalogGrid } from '../catalog-grid/catalog-grid';
+import { catalogView } from '../catalog-grid/catalog-view';
import { prefetchDataCleanup, prefetchDataCleanupTool } from '../data-cleanup/data-cleanup';
import { CLEANUP_TOOLS, type CleanupToolPath } from '../../cleanup-tools';
import { prefetchEntityPage, type EntityPageProps } from '../entity-page/entity-page';
@@ -323,13 +325,14 @@ export const ENTITY_ROUTES: EntityRouteTable = {
网格、用 `/junk-files` 打开队列,槽里记的路径说的是画着哪一页、不是地址。按地址分键会在三处出错:网格在
`/trash` 打开之后去 `/` 是就地推,槽里的路径不跟着变;`?state=ads` 落在 `/` 上,画的是垃圾队列;冷启动
落在详情地址上时,网格在 `/assets/:id` 底下补画。
- 网格与队列都不在打开前等,画上即取数并显示各自的骨架。之后换
+ 目录网格在打开前取第一页,壳铺的骨架一直留到数据到,挂上就是卡片:先挂再取的话,岛挂得晚于骨架显示
+ 门槛时,壳那份骨架会再淡出换成岛自己的一份。队列不在打开前等,画上即取数并显示自己的骨架。之后换
筛选或分类、换版式、选择模式与刷新代次都由壳经 `updateManagedRoute` 推进来,页面按新键重取、自己铺
骨架,不重挂。 */
export const CATALOG_ROUTES: CatalogRouteTable = {
'/': {
element: <CatalogMatch />,
- prefetch: async () => {},
+ prefetch: (open, signal) => prefetchCatalogGrid(open, catalogView(), signal),
page: (open) => <CatalogGridPage {...open} />,
},
'/junk-files': {
diff --git a/frontend/test/react/catalog-routes.test.tsx b/frontend/test/react/catalog-routes.test.tsx
index fed582b2c..8f193cd99 100644
--- a/frontend/test/react/catalog-routes.test.tsx
+++ b/frontend/test/react/catalog-routes.test.tsx
@@ -168,20 +168,21 @@ const cards = (grid: Element) => grid.querySelectorAll('.peach-react [data-media
/** 页面画出来的那一块(宿主里的第一个元素):重挂之后就换成另一个。 */
const painted = (grid: Element) => grid.querySelector(':scope > .peach-react > *');
-it('冷启动深链首页由页面立即显示骨架,首屏取齐后交叉呈现内容', async () => {
+it('冷启动深链首页取齐首屏再挂,壳的骨架一直留到数据到,挂上就是内容', async () => {
const r = await load('/');
- const { grid } = gridSurface();
+ const { grid, skeleton } = gridSurface();
await mount(r);
const fetch = catalogFetch({ deferred: true });
const open = catalogOpen({ skeletonHtml: () => GRID_SKELETON });
const opened = r.openManagedRoute('/', open, { container: grid, isCurrent: () => true, place: revealRoutedPage });
await until(() => fetch.calls('/api/items').length > 0, '首屏取数发出去');
- expect(grid.querySelector('[data-content-transition]')?.getAttribute('aria-busy')).toBe('true');
- expect(grid.querySelector('[data-content-skeleton] [data-skeleton]')).not.toBeNull();
- const batches: Array<{ pending: boolean; painted: boolean }> = [];
+ expect(skeleton.isConnected, '取数在途时壳的骨架原样留着').toBe(true);
+ expect(r.managedEntry(grid), '页面还没挂').toBeFalsy();
+ const batches: Array<{ pageSkeleton: boolean; shell: boolean; painted: boolean }> = [];
const observer = new MutationObserver(() => {
batches.push({
- pending: Boolean(grid.querySelector('[data-content-transition][aria-busy="true"] [data-skeleton]')),
+ pageSkeleton: Boolean(grid.querySelector('[data-content-transition][aria-busy="true"] [data-skeleton]')),
+ shell: skeleton.isConnected,
painted: cards(grid).length === 3,
});
});
@@ -191,7 +192,9 @@ it('冷启动深链首页由页面立即显示骨架,首屏取齐后交叉呈
await act(async () => { expect(await opened).toBe(true) });
await until(() => cards(grid).length === 3, '首屏内容就绪');
expect(batches.length).toBeGreaterThan(0);
- expect(batches.every((batch) => batch.pending || batch.painted), '每一批变化都有占位或内容').toBe(true);
+ expect(batches.some((batch) => batch.pageSkeleton), '页面挂上时不再铺第二份骨架').toBe(false);
+ expect(batches.every((batch) => batch.shell || batch.painted), '每一批变化都有占位或内容').toBe(true);
+ expect(grid.querySelector('.skelfade')?.contains(skeleton), '壳的骨架抬成淡出层与内容交叉').toBe(true);
expect(grid.querySelector('[data-content-transition]')?.getAttribute('aria-busy')).toBe('false');
expect(grid.querySelector('[data-content-skeleton]')?.getAttribute('aria-hidden')).toBe('true');
expect(fetch.calls('/api/items'), '首屏只取一次').toHaveLength(1);
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index ab43b6e6f..dba3975b0 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] = "4da45773-833b-4c0d-aaee-0cb9022e79fa", e._sentryDebugIdIdentifier = "sentry-dbid-4da45773-833b-4c0d-aaee-0cb9022e79fa");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "9d01e971-811f-408a-a151-37170638dc5e", e._sentryDebugIdIdentifier = "sentry-dbid-9d01e971-811f-408a-a151-37170638dc5e");
} 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) => {
@@ -1095,9 +1095,9 @@ var k = /* @__PURE__ */ o(((e) => {
switch (xe(we, t), xe(Ce, e), xe(Se, null), t.nodeType) {
case 9:
case 11:
- e = (e = t.documentElement) && (e = e.namespaceURI) ? yp(e) : 0;
+ e = (e = t.documentElement) && (e = e.namespaceURI) ? vp(e) : 0;
break;
- default: if (e = t.tagName, t = t.namespaceURI) t = yp(t), e = bp(t, e);
+ default: if (e = t.tagName, t = t.namespaceURI) t = vp(t), e = yp(t, e);
else switch (e) {
case "svg":
e = 1;
@@ -1115,12 +1115,12 @@ var k = /* @__PURE__ */ o(((e) => {
}
function Oe(e) {
var t = e.memoizedState;
- t !== null && (gh._currentValue = t.memoizedState, xe(Te, e)), t = Se.current;
- var n = bp(t, e.type);
+ t !== null && (hh._currentValue = t.memoizedState, xe(Te, e)), t = Se.current;
+ var n = yp(t, e.type);
t !== n && (xe(Ce, e), xe(Se, n));
}
function ke(e) {
- Ce.current === e && (be(Se), be(Ce)), Te.current === e && (be(Te), gh._currentValue = ge);
+ Ce.current === e && (be(Se), be(Ce)), Te.current === e && (be(Te), hh._currentValue = ge);
}
var Ae, je;
function Me(e) {
@@ -1429,7 +1429,7 @@ var k = /* @__PURE__ */ o(((e) => {
}
function xt() {
var e = he.p;
- return e === 0 ? (e = window.event, e === void 0 ? 32 : Mh(e.type)) : e;
+ return e === 0 ? (e = window.event, e === void 0 ? 32 : jh(e.type)) : e;
}
function St(e, t) {
var n = he.p;
@@ -1448,9 +1448,9 @@ var k = /* @__PURE__ */ o(((e) => {
if (t = e[wt]) return t;
for (var n = e.parentNode; n;) {
if (t = n[Et] || n[wt]) {
- if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = xm(e); e !== null;) {
+ if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = bm(e); e !== null;) {
if (n = e[wt]) return n;
- e = xm(e);
+ e = bm(e);
}
return t;
}
@@ -1815,7 +1815,7 @@ var k = /* @__PURE__ */ o(((e) => {
try {
return e(t);
} finally {
- if (Tn = !1, (wn !== null || L !== null) && (Gd(), wn && (t = wn, e = L, L = wn = null, R(t), e))) for (t = 0; t < e.length; t++) R(e[t]);
+ if (Tn = !1, (wn !== null || L !== null) && (Wd(), wn && (t = wn, e = L, L = wn = null, R(t), e))) for (t = 0; t < e.length; t++) R(e[t]);
}
}
function Dn(e, t) {
@@ -2124,14 +2124,14 @@ var k = /* @__PURE__ */ o(((e) => {
return t === "input" ? !!yr[e.type] : t === "textarea";
}
function xr(e, t, n, r) {
- wn ? L ? L.push(r) : L = [r] : wn = r, t = np(t, "onChange"), 0 < t.length && (n = new zn("onChange", "change", null, n, r), e.push({
+ wn ? L ? L.push(r) : L = [r] : wn = r, t = tp(t, "onChange"), 0 < t.length && (n = new zn("onChange", "change", null, n, r), e.push({
event: n,
listeners: t
}));
}
var Sr = null, Cr = null;
function wr(e) {
- Jf(e, 0);
+ qf(e, 0);
}
function Tr(e) {
if (rn(It(e))) return e;
@@ -2167,28 +2167,28 @@ var k = /* @__PURE__ */ o(((e) => {
function Pr(e) {
if (e === "selectionchange" || e === "keyup" || e === "keydown") return Tr(Cr);
}
- function Fr(e, t) {
+ function eee(e, t) {
if (e === "click") return Tr(t);
}
- function Ir(e, t) {
+ function Fr(e, t) {
if (e === "input" || e === "change") return Tr(t);
}
- function Lr(e, t) {
+ function Ir(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
- var Rr = typeof Object.is == "function" ? Object.is : Lr;
- function zr(e, t) {
- if (Rr(e, t)) return !0;
+ var Lr = typeof Object.is == "function" ? Object.is : Ir;
+ function Rr(e, t) {
+ if (Lr(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
var n = Object.keys(e), r = Object.keys(t);
if (n.length !== r.length) return !1;
for (r = 0; r < n.length; r++) {
var i = n[r];
- if (!Le.call(t, i) || !Rr(e[i], t[i])) return !1;
+ if (!Le.call(t, i) || !Lr(e[i], t[i])) return !1;
}
return !0;
}
- function Br(e) {
+ function zr(e) {
if (e ||= typeof document < "u" ? document : void 0, e === void 0) return null;
try {
return e.activeElement || e.body;
@@ -2196,12 +2196,12 @@ var k = /* @__PURE__ */ o(((e) => {
return e.body;
}
}
- function Vr(e) {
+ function Br(e) {
for (; e && e.firstChild;) e = e.firstChild;
return e;
}
- function Hr(e, t) {
- var n = Vr(e);
+ function Vr(e, t) {
+ var n = Br(e);
e = 0;
for (var r; n;) {
if (n.nodeType === 3) {
@@ -2221,15 +2221,15 @@ var k = /* @__PURE__ */ o(((e) => {
}
n = void 0;
}
- n = Vr(n);
+ n = Br(n);
}
}
- function Ur(e, t) {
- return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? Ur(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1;
+ function Hr(e, t) {
+ return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? Hr(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1;
}
- function Wr(e) {
+ function Ur(e) {
e = e != null && e.ownerDocument != null && e.ownerDocument.defaultView != null ? e.ownerDocument.defaultView : window;
- for (var t = Br(e.document); t instanceof e.HTMLIFrameElement;) {
+ for (var t = zr(e.document); t instanceof e.HTMLIFrameElement;) {
try {
var n = typeof t.contentWindow.location.href == "string";
} catch {
@@ -2237,18 +2237,18 @@ var k = /* @__PURE__ */ o(((e) => {
}
if (n) e = t.contentWindow;
else break;
- t = Br(e.document);
+ t = zr(e.document);
}
return t;
}
- function Gr(e) {
+ function Wr(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true");
}
- var Kr = On && "documentMode" in document && 11 >= document.documentMode, qr = null, Jr = null, Yr = null, Xr = !1;
- function Zr(e, t, n) {
+ var Gr = On && "documentMode" in document && 11 >= document.documentMode, Kr = null, qr = null, Jr = null, Yr = !1;
+ function Xr(e, t, n) {
var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument;
- Xr || qr == null || qr !== Br(r) || (r = qr, "selectionStart" in r && Gr(r) ? r = {
+ Yr || Kr == null || Kr !== zr(r) || (r = Kr, "selectionStart" in r && Wr(r) ? r = {
start: r.selectionStart,
end: r.selectionEnd
} : (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection(), r = {
@@ -2256,48 +2256,48 @@ var k = /* @__PURE__ */ o(((e) => {
anchorOffset: r.anchorOffset,
focusNode: r.focusNode,
focusOffset: r.focusOffset
- }), Yr && zr(Yr, r) || (Yr = r, r = np(Jr, "onSelect"), 0 < r.length && (t = new zn("onSelect", "select", null, t, n), e.push({
+ }), Jr && Rr(Jr, r) || (Jr = r, r = tp(qr, "onSelect"), 0 < r.length && (t = new zn("onSelect", "select", null, t, n), e.push({
event: t,
listeners: r
- }), t.target = qr)));
+ }), t.target = Kr)));
}
- function Qr(e, t) {
+ function Zr(e, t) {
var n = {};
return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + t, n;
}
- var $r = {
- animationend: Qr("Animation", "AnimationEnd"),
- animationiteration: Qr("Animation", "AnimationIteration"),
- animationstart: Qr("Animation", "AnimationStart"),
- transitionrun: Qr("Transition", "TransitionRun"),
- transitionstart: Qr("Transition", "TransitionStart"),
- transitioncancel: Qr("Transition", "TransitionCancel"),
- transitionend: Qr("Transition", "TransitionEnd")
- }, ei = {}, ti = {};
- On && (ti = document.createElement("div").style, "AnimationEvent" in window || (delete $r.animationend.animation, delete $r.animationiteration.animation, delete $r.animationstart.animation), "TransitionEvent" in window || delete $r.transitionend.transition);
- function ni(e) {
- if (ei[e]) return ei[e];
- if (!$r[e]) return e;
- var t = $r[e], n;
- for (n in t) if (t.hasOwnProperty(n) && n in ti) return ei[e] = t[n];
+ var Qr = {
+ animationend: Zr("Animation", "AnimationEnd"),
+ animationiteration: Zr("Animation", "AnimationIteration"),
+ animationstart: Zr("Animation", "AnimationStart"),
+ transitionrun: Zr("Transition", "TransitionRun"),
+ transitionstart: Zr("Transition", "TransitionStart"),
+ transitioncancel: Zr("Transition", "TransitionCancel"),
+ transitionend: Zr("Transition", "TransitionEnd")
+ }, $r = {}, ei = {};
+ On && (ei = document.createElement("div").style, "AnimationEvent" in window || (delete Qr.animationend.animation, delete Qr.animationiteration.animation, delete Qr.animationstart.animation), "TransitionEvent" in window || delete Qr.transitionend.transition);
+ function ti(e) {
+ if ($r[e]) return $r[e];
+ if (!Qr[e]) return e;
+ var t = Qr[e], n;
+ for (n in t) if (t.hasOwnProperty(n) && n in ei) return $r[e] = t[n];
return e;
}
- var ri = ni("animationend"), ii = ni("animationiteration"), ai = ni("animationstart"), oi = ni("transitionrun"), si = ni("transitionstart"), ci = ni("transitioncancel"), li = ni("transitionend"), ui = /* @__PURE__ */ new Map(), di = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
- di.push("scrollEnd");
- function fi(e, t) {
- ui.set(e, t), Ht(t, [e]);
+ var ni = ti("animationend"), ri = ti("animationiteration"), ii = ti("animationstart"), ai = ti("transitionrun"), oi = ti("transitionstart"), si = ti("transitioncancel"), ci = ti("transitionend"), li = /* @__PURE__ */ new Map(), ui = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
+ ui.push("scrollEnd");
+ function di(e, t) {
+ li.set(e, t), Ht(t, [e]);
}
- var pi = 0;
- function mi(e, t) {
+ var fi = 0;
+ function pi(e, t) {
if (e.name != null && e.name !== "auto") return e.name;
if (t.autoName !== null) return t.autoName;
- e = Ed.identifierPrefix;
- var n = pi++;
+ e = Td.identifierPrefix;
+ var n = fi++;
return e = "_" + e + "t_" + n.toString(32) + "_", t.autoName = e;
}
- function hi(e) {
+ function mi(e) {
if (e == null || typeof e == "string") return e;
- var t = null, n = Pd;
+ var t = null, n = Nd;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = e[n[r]];
if (i != null) {
@@ -2307,10 +2307,10 @@ var k = /* @__PURE__ */ o(((e) => {
}
return t ?? e.default;
}
- function gi(e, t) {
- return e = hi(e), t = hi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;
+ function hi(e, t) {
+ return e = mi(e), t = mi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;
}
- var _i = typeof reportError == "function" ? reportError : function(e) {
+ var gi = typeof reportError == "function" ? reportError : function(e) {
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
var t = new window.ErrorEvent("error", {
bubbles: !0,
@@ -2324,62 +2324,62 @@ var k = /* @__PURE__ */ o(((e) => {
return;
}
console.error(e);
- }, vi = [], yi = 0, bi = 0;
- function xi() {
- for (var e = yi, t = bi = yi = 0; t < e;) {
- var n = vi[t];
- vi[t++] = null;
- var r = vi[t];
- vi[t++] = null;
- var i = vi[t];
- vi[t++] = null;
- var a = vi[t];
- if (vi[t++] = null, r !== null && i !== null) {
+ }, _i = [], vi = 0, yi = 0;
+ function bi() {
+ for (var e = vi, t = yi = vi = 0; t < e;) {
+ var n = _i[t];
+ _i[t++] = null;
+ var r = _i[t];
+ _i[t++] = null;
+ var i = _i[t];
+ _i[t++] = null;
+ var a = _i[t];
+ if (_i[t++] = null, r !== null && i !== null) {
var o = r.pending;
o === null ? i.next = i : (i.next = o.next, o.next = i), r.pending = i;
}
- a !== 0 && Ti(n, i, a);
+ a !== 0 && wi(n, i, a);
}
}
- function Si(e, t, n, r) {
- vi[yi++] = e, vi[yi++] = t, vi[yi++] = n, vi[yi++] = r, bi |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);
+ function xi(e, t, n, r) {
+ _i[vi++] = e, _i[vi++] = t, _i[vi++] = n, _i[vi++] = r, yi |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);
}
- function Ci(e, t, n, r) {
- return Si(e, t, n, r), Ei(e);
+ function Si(e, t, n, r) {
+ return xi(e, t, n, r), Ti(e);
}
- function wi(e, t) {
- return Si(e, null, null, t), Ei(e);
+ function Ci(e, t) {
+ return xi(e, null, null, t), Ti(e);
}
- function Ti(e, t, n) {
+ function wi(e, t, n) {
e.lanes |= n;
var r = e.alternate;
r !== null && (r.lanes |= n);
for (var i = !1, a = e.return; a !== null;) a.childLanes |= n, r = a.alternate, r !== null && (r.childLanes |= n), a.tag === 22 && (e = a.stateNode, e === null || e._visibility & 1 || (i = !0)), e = a, a = a.return;
return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - et(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
}
- function Ei(e) {
- if (50 < Fd) throw Fd = 0, Id = null, Error(i(185));
+ function Ti(e) {
+ if (50 < Pd) throw Pd = 0, Fd = null, Error(i(185));
for (var t = e.return; t !== null;) e = t, t = e.return;
return e.tag === 3 ? e.stateNode : null;
}
- var Di = {};
- function Oi(e, t, n, r) {
+ var Ei = {};
+ function Di(e, t, n, r) {
this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null;
}
- function ki(e, t, n, r) {
- return new Oi(e, t, n, r);
+ function Oi(e, t, n, r) {
+ return new Di(e, t, n, r);
}
- function Ai(e) {
+ function ki(e) {
return e = e.prototype, !(!e || !e.isReactComponent);
}
- function ji(e, t) {
+ function Ai(e, t) {
var n = e.alternate;
- return n === null ? (n = ki(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 1206910976, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : {
+ return n === null ? (n = Oi(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 1206910976, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : {
lanes: t.lanes,
firstContext: t.firstContext
}, n.sibling = e.sibling, n.index = e.index, n.ref = e.ref, n.refCleanup = e.refCleanup, n;
}
- function Mi(e, t) {
+ function ji(e, t) {
e.flags &= 1206910978;
var n = e.alternate;
return n === null ? (e.childLanes = 0, e.lanes = t, e.child = null, e.subtreeFlags = 0, e.memoizedProps = null, e.memoizedState = null, e.updateQueue = null, e.dependencies = null, e.stateNode = null) : (e.childLanes = n.childLanes, e.lanes = n.lanes, e.child = n.child, e.subtreeFlags = 0, e.deletions = null, e.memoizedProps = n.memoizedProps, e.memoizedState = n.memoizedState, e.updateQueue = n.updateQueue, e.type = n.type, t = n.dependencies, e.dependencies = t === null ? null : {
@@ -2387,21 +2387,21 @@ var k = /* @__PURE__ */ o(((e) => {
firstContext: t.firstContext
}), e;
}
- function Ni(e, t, n, r, a, o) {
+ function Mi(e, t, n, r, a, o) {
var s = 0;
- if (r = e, typeof r == "function") Ai(r) && (s = 1);
- else if (typeof r == "string") s = nh(e, n, Se.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
+ if (r = e, typeof r == "function") ki(r) && (s = 1);
+ else if (typeof r == "string") s = th(e, n, Se.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
else a: switch (r) {
- case ie: return e = ki(31, n, t, a), e.elementType = ie, e.lanes = o, e;
- case O: return Pi(n.children, a, o, t);
+ case ie: return e = Oi(31, n, t, a), e.elementType = ie, e.lanes = o, e;
+ case O: return Ni(n.children, a, o, t);
case k:
s = 8, a |= 24;
break;
- case j: return e = ki(12, n, t, a | 2), e.elementType = j, e.lanes = o, e;
- case ne: return e = ki(13, n, t, a), e.elementType = ne, e.lanes = o, e;
- case re: return e = ki(19, n, t, a), e.elementType = re, e.lanes = o, e;
+ case j: return e = Oi(12, n, t, a | 2), e.elementType = j, e.lanes = o, e;
+ case ne: return e = Oi(13, n, t, a), e.elementType = ne, e.lanes = o, e;
+ case re: return e = Oi(19, n, t, a), e.elementType = re, e.lanes = o, e;
case ae:
- case se: return e = a | 32, e = ki(30, n, t, e), e.elementType = se, e.lanes = o, e.stateNode = {
+ case se: return e = a | 32, e = Oi(30, n, t, e), e.elementType = se, e.lanes = o, e.stateNode = {
autoName: null,
paired: null,
clones: null,
@@ -2427,34 +2427,34 @@ var k = /* @__PURE__ */ o(((e) => {
}
s = 29, n = Error(i(130, e === null ? "null" : typeof e, "")), r = null;
}
- return t = ki(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;
+ return t = Oi(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;
}
- function Pi(e, t, n, r) {
- return e = ki(7, e, r, t), e.lanes = n, e;
+ function Ni(e, t, n, r) {
+ return e = Oi(7, e, r, t), e.lanes = n, e;
}
- function Fi(e, t, n) {
- return e = ki(6, e, null, t), e.lanes = n, e;
+ function Pi(e, t, n) {
+ return e = Oi(6, e, null, t), e.lanes = n, e;
}
- function Ii(e) {
- var t = ki(18, null, null, 0);
+ function Fi(e) {
+ var t = Oi(18, null, null, 0);
return t.stateNode = e, t;
}
- function Li(e, t, n) {
- return t = ki(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {
+ function Ii(e, t, n) {
+ return t = Oi(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {
containerInfo: e.containerInfo,
pendingChildren: null,
implementation: e.implementation
}, t;
}
- var Ri = /* @__PURE__ */ new WeakMap();
- function zi(e, t) {
+ var Li = /* @__PURE__ */ new WeakMap();
+ function Ri(e, t) {
if (typeof e == "object" && e) {
- var n = Ri.get(e);
+ var n = Li.get(e);
return n === void 0 ? (t = {
value: e,
source: t,
stack: Ie(t)
- }, Ri.set(e, t), t) : n;
+ }, Li.set(e, t), t) : n;
}
return {
value: e,
@@ -2462,124 +2462,124 @@ var k = /* @__PURE__ */ o(((e) => {
stack: Ie(t)
};
}
- var Bi = [], Vi = 0, Hi = null, Ui = 0, Wi = [], Gi = 0, Ki = null, qi = 1, Ji = "";
- function Yi(e, t) {
- Bi[Vi++] = Ui, Bi[Vi++] = Hi, Hi = e, Ui = t;
+ var zi = [], Bi = 0, Vi = null, Hi = 0, Ui = [], Wi = 0, Gi = null, Ki = 1, qi = "";
+ function Ji(e, t) {
+ zi[Bi++] = Hi, zi[Bi++] = Vi, Vi = e, Hi = t;
}
- function Xi(e, t, n) {
- Wi[Gi++] = qi, Wi[Gi++] = Ji, Wi[Gi++] = Ki, Ki = e;
- var r = qi;
- e = Ji;
+ function Yi(e, t, n) {
+ Ui[Wi++] = Ki, Ui[Wi++] = qi, Ui[Wi++] = Gi, Gi = e;
+ var r = Ki;
+ e = qi;
var i = 32 - et(r) - 1;
r &= ~(1 << i), n += 1;
var a = 32 - et(t) + i;
if (30 < a) {
var o = i - i % 5;
- a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, qi = 1 << 32 - et(t) + i | n << i | r, Ji = a + e;
- } else qi = 1 << a | n << i | r, Ji = e;
+ a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Ki = 1 << 32 - et(t) + i | n << i | r, qi = a + e;
+ } else Ki = 1 << a | n << i | r, qi = e;
+ }
+ function Xi(e) {
+ e.return !== null && (Ji(e, 1), Yi(e, 1, 0));
}
function Zi(e) {
- e.return !== null && (Yi(e, 1), Xi(e, 1, 0));
+ for (; e === Vi;) Vi = zi[--Bi], zi[Bi] = null, Hi = zi[--Bi], zi[Bi] = null;
+ for (; e === Gi;) Gi = Ui[--Wi], Ui[Wi] = null, qi = Ui[--Wi], Ui[Wi] = null, Ki = Ui[--Wi], Ui[Wi] = null;
}
- function Qi(e) {
- for (; e === Hi;) Hi = Bi[--Vi], Bi[Vi] = null, Ui = Bi[--Vi], Bi[Vi] = null;
- for (; e === Ki;) Ki = Wi[--Gi], Wi[Gi] = null, Ji = Wi[--Gi], Wi[Gi] = null, qi = Wi[--Gi], Wi[Gi] = null;
+ function Qi(e, t) {
+ Ui[Wi++] = Ki, Ui[Wi++] = qi, Ui[Wi++] = Gi, Ki = t.id, qi = t.overflow, Gi = e;
}
- function $i(e, t) {
- Wi[Gi++] = qi, Wi[Gi++] = Ji, Wi[Gi++] = Ki, qi = t.id, Ji = t.overflow, Ki = e;
+ var $i = null, ea = null, ta = !1, na = null, ra = !1, ia = Error(i(519));
+ function aa(e) {
+ throw da(Ri(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), ia;
}
- var ea = null, ta = null, na = !1, ra = null, ia = !1, aa = Error(i(519));
function oa(e) {
- throw fa(zi(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), aa;
- }
- function sa(e) {
var t = e.stateNode, n = e.type, r = e.memoizedProps;
switch (t[wt] = e, t[Tt] = r, n) {
case "dialog":
- Yf("cancel", t), Yf("close", t);
+ Jf("cancel", t), Jf("close", t);
break;
case "iframe":
case "object":
case "embed":
- Yf("load", t);
+ Jf("load", t);
break;
case "video":
case "audio":
- for (n = 0; n < Kf.length; n++) Yf(Kf[n], t);
+ for (n = 0; n < Gf.length; n++) Jf(Gf[n], t);
break;
case "source":
- Yf("error", t);
+ Jf("error", t);
break;
case "img":
case "image":
case "link":
- Yf("error", t), Yf("load", t);
+ Jf("error", t), Jf("load", t);
break;
case "details":
- Yf("toggle", t);
+ Jf("toggle", t);
break;
case "input":
- Yf("invalid", t), cn(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
+ Jf("invalid", t), cn(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
break;
case "select":
- Yf("invalid", t);
+ Jf("invalid", t);
break;
- case "textarea": Yf("invalid", t), fn(t, r.value, r.defaultValue, r.children);
+ case "textarea": Jf("invalid", t), fn(t, r.value, r.defaultValue, r.children);
}
- n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || cp(t.textContent, n) ? (r.popover != null && (Yf("beforetoggle", t), Yf("toggle", t)), r.onScroll != null && Yf("scroll", t), r.onScrollEnd != null && Yf("scrollend", t), r.onClick != null && (t.onclick = xn), t = !0) : t = !1, t || oa(e, !0);
+ n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || sp(t.textContent, n) ? (r.popover != null && (Jf("beforetoggle", t), Jf("toggle", t)), r.onScroll != null && Jf("scroll", t), r.onScrollEnd != null && Jf("scrollend", t), r.onClick != null && (t.onclick = xn), t = !0) : t = !1, t || aa(e, !0);
}
- function ca(e) {
- for (ea = e.return; ea;) switch (ea.tag) {
+ function sa(e) {
+ for ($i = e.return; $i;) switch ($i.tag) {
case 5:
case 31:
case 13:
- ia = !1;
+ ra = !1;
return;
case 27:
case 3:
- ia = !0;
+ ra = !0;
return;
- default: ea = ea.return;
+ default: $i = $i.return;
}
}
- function la(e) {
- if (e !== ea) return !1;
- if (!na) return ca(e), na = !0, !1;
+ function ca(e) {
+ if (e !== $i) return !1;
+ if (!ta) return sa(e), ta = !0, !1;
var t = e.tag, n;
- if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || Sp(e.type, e.memoizedProps)), n = !n), n && ta && oa(e), ca(e), t === 13) {
+ if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || xp(e.type, e.memoizedProps)), n = !n), n && ea && aa(e), sa(e), t === 13) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
- ta = bm(e);
+ ea = ym(e);
} else if (t === 31) {
if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));
- ta = bm(e);
- } else t === 27 ? (t = ta, jp(e.type) ? (e = ym, ym = null, ta = e) : ta = t) : ta = ea ? vm(e.stateNode.nextSibling) : null;
+ ea = ym(e);
+ } else t === 27 ? (t = ea, Ap(e.type) ? (e = vm, vm = null, ea = e) : ea = t) : ea = $i ? _m(e.stateNode.nextSibling) : null;
return !0;
}
- function ua() {
- ta = ea = null, na = !1;
+ function la() {
+ ea = $i = null, ta = !1;
}
- function da() {
- var e = ra;
- return e !== null && (vd === null ? vd = e : vd.push.apply(vd, e), ra = null), e;
+ function ua() {
+ var e = na;
+ return e !== null && (_d === null ? _d = e : _d.push.apply(_d, e), na = null), e;
}
- function fa(e) {
- ra === null ? ra = [e] : ra.push(e);
+ function da(e) {
+ na === null ? na = [e] : na.push(e);
}
- var pa = ye(null), ma = null, ha = null;
- function ga(e, t, n) {
- xe(pa, t._currentValue), t._currentValue = n;
+ var fa = ye(null), pa = null, ma = null;
+ function ha(e, t, n) {
+ xe(fa, t._currentValue), t._currentValue = n;
}
- function _a(e) {
- e._currentValue = pa.current, be(pa);
+ function ga(e) {
+ e._currentValue = fa.current, be(fa);
}
- function va(e, t, n) {
+ function _a(e, t, n) {
for (; e !== null;) {
var r = e.alternate;
if ((e.childLanes & t) === t ? r !== null && (r.childLanes & t) !== t && (r.childLanes |= t) : (e.childLanes |= t, r !== null && (r.childLanes |= t)), e === n) break;
e = e.return;
}
}
- function ya(e, t, n, r) {
+ function va(e, t, n, r) {
var a = e.child;
for (a !== null && (a.return = e); a !== null;) {
var o = a.dependencies;
@@ -2590,15 +2590,15 @@ var k = /* @__PURE__ */ o(((e) => {
var c = o;
o = a;
for (var l = 0; l < t.length; l++) if (c.context === t[l]) {
- o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), va(o.return, n, e), r || (s = null);
+ o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), _a(o.return, n, e), r || (s = null);
break a;
}
o = c.next;
}
} else if (a.tag === 18) {
if (s = a.return, s === null) throw Error(i(341));
- s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), va(s, n, e), s = null;
- } else a.tag === 13 && a.memoizedState !== null && a.memoizedState.dehydrated === null ? (a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), va(a.return, n, e), s = a.child, s = s === null ? null : s.sibling) : s = a.child;
+ s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), _a(s, n, e), s = null;
+ } else a.tag === 13 && a.memoizedState !== null && a.memoizedState.dehydrated === null ? (a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), _a(a.return, n, e), s = a.child, s = s === null ? null : s.sibling) : s = a.child;
if (s !== null) s.return = a;
else for (s = a; s !== null;) {
if (s === e) {
@@ -2614,7 +2614,7 @@ var k = /* @__PURE__ */ o(((e) => {
a = s;
}
}
- function ba(e, t, n, r) {
+ function ya(e, t, n, r) {
e = null;
for (var a = t, o = !1; a !== null;) {
if (!o) {
@@ -2626,48 +2626,48 @@ var k = /* @__PURE__ */ o(((e) => {
if (s === null) throw Error(i(387));
if (s = s.memoizedProps, s !== null) {
var c = a.type;
- Rr(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));
+ Lr(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));
}
} else if (a === Te.current) {
if (s = a.alternate, s === null) throw Error(i(387));
- s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [gh] : e.push(gh));
+ s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [hh] : e.push(hh));
}
a = a.return;
}
- return e !== null && ya(t, e, n, r), t.flags |= 262144, e !== null;
+ return e !== null && va(t, e, n, r), t.flags |= 262144, e !== null;
}
- function xa(e) {
+ function ba(e) {
for (e = e.firstContext; e !== null;) {
- if (!Rr(e.context._currentValue, e.memoizedValue)) return !0;
+ if (!Lr(e.context._currentValue, e.memoizedValue)) return !0;
e = e.next;
}
return !1;
}
+ function xa(e) {
+ pa = e, ma = null, e = e.dependencies, e !== null && (e.firstContext = null);
+ }
function Sa(e) {
- ma = e, ha = null, e = e.dependencies, e !== null && (e.firstContext = null);
+ return wa(pa, e);
}
- function Ca(e) {
- return Ta(ma, e);
+ function Ca(e, t) {
+ return pa === null && xa(e), wa(e, t);
}
function wa(e, t) {
- return ma === null && Sa(e), Ta(e, t);
- }
- function Ta(e, t) {
var n = t._currentValue;
if (t = {
context: t,
memoizedValue: n,
next: null
- }, ha === null) {
+ }, ma === null) {
if (e === null) throw Error(i(308));
- ha = t, e.dependencies = {
+ ma = t, e.dependencies = {
lanes: 0,
firstContext: t
}, e.flags |= 524288;
- } else ha = ha.next = t;
+ } else ma = ma.next = t;
return n;
}
- var Ea = typeof AbortController < "u" ? AbortController : function() {
+ var Ta = typeof AbortController < "u" ? AbortController : function() {
var e = [], t = this.signal = {
aborted: !1,
addEventListener: function(t, n) {
@@ -2679,7 +2679,7 @@ var k = /* @__PURE__ */ o(((e) => {
return e();
});
};
- }, Da = t.unstable_scheduleCallback, Oa = t.unstable_NormalPriority, ka = {
+ }, Ea = t.unstable_scheduleCallback, Da = t.unstable_NormalPriority, Oa = {
$$typeof: te,
Consumer: null,
Provider: null,
@@ -2687,19 +2687,19 @@ var k = /* @__PURE__ */ o(((e) => {
_currentValue2: null,
_threadCount: 0
};
- function Aa() {
+ function ka() {
return {
- controller: new Ea(),
+ controller: new Ta(),
data: /* @__PURE__ */ new Map(),
refCount: 0
};
}
- function ja(e) {
- e.refCount--, e.refCount === 0 && Da(Oa, function() {
+ function Aa(e) {
+ e.refCount--, e.refCount === 0 && Ea(Da, function() {
e.controller.abort();
});
}
- function Ma(e, t) {
+ function ja(e, t) {
if (e.pendingLanes & 4194048) {
var n = e.transitionTypes;
for (n === null && (n = e.transitionTypes = []), e = 0; e < t.length; e++) {
@@ -2708,16 +2708,16 @@ var k = /* @__PURE__ */ o(((e) => {
}
}
}
- var Na = null;
- function Pa(e) {
+ var Ma = null;
+ function Na(e) {
var t = e.transitionTypes;
return e.transitionTypes = null, t;
}
- var Fa = null, Ia = 0, La = 0, Ra = null;
- function za(e, t) {
- if (Fa === null) {
- var n = Fa = [];
- Ia = 0, La = Vf(), Ra = {
+ var Pa = null, Fa = 0, Ia = 0, La = null;
+ function Ra(e, t) {
+ if (Pa === null) {
+ var n = Pa = [];
+ Fa = 0, Ia = Bf(), La = {
status: "pending",
value: void 0,
then: function(e) {
@@ -2725,17 +2725,17 @@ var k = /* @__PURE__ */ o(((e) => {
}
};
}
- return Ia++, t.then(Ba, Ba), t;
+ return Fa++, t.then(za, za), t;
}
- function Ba() {
- if (--Ia === 0 && (Na = null, Fa !== null)) {
- Ra !== null && (Ra.status = "fulfilled");
- var e = Fa;
- Fa = null, La = 0, Ra = null;
+ function za() {
+ if (--Fa === 0 && (Ma = null, Pa !== null)) {
+ La !== null && (La.status = "fulfilled");
+ var e = Pa;
+ Pa = null, Ia = 0, La = null;
for (var t = 0; t < e.length; t++) (0, e[t])();
}
}
- function Va(e, t) {
+ function Ba(e, t) {
var n = [], r = {
status: "pending",
value: null,
@@ -2751,48 +2751,48 @@ var k = /* @__PURE__ */ o(((e) => {
for (r.status = "rejected", r.reason = e, e = 0; e < n.length; e++) (0, n[e])(void 0);
}), r;
}
- var Ha = me.S;
+ var Va = me.S;
me.S = function(e, t) {
- if (xd = He(), typeof t == "object" && t && typeof t.then == "function" && za(e, t), Na !== null) for (var n = Df; n !== null;) Ma(n, Na), n = n.next;
+ if (bd = He(), typeof t == "object" && t && typeof t.then == "function" && Ra(e, t), Ma !== null) for (var n = Ef; n !== null;) ja(n, Ma), n = n.next;
if (n = e.types, n !== null) {
- for (var r = Df; r !== null;) Ma(r, n), r = r.next;
- if (La !== 0) {
- r = Na, r === null && (r = Na = []);
+ for (var r = Ef; r !== null;) ja(r, n), r = r.next;
+ if (Ia !== 0) {
+ r = Ma, r === null && (r = Ma = []);
for (var i = 0; i < n.length; i++) {
var a = n[i];
r.indexOf(a) === -1 && r.push(a);
}
}
}
- Ha !== null && Ha(e, t);
+ Va !== null && Va(e, t);
};
- var Ua = ye(null);
- function Wa() {
- var e = Ua.current;
- return e === null ? nd.pooledCache : e;
+ var Ha = ye(null);
+ function Ua() {
+ var e = Ha.current;
+ return e === null ? td.pooledCache : e;
}
- function Ga(e, t) {
- t === null ? xe(Ua, Ua.current) : xe(Ua, t.pool);
+ function Wa(e, t) {
+ t === null ? xe(Ha, Ha.current) : xe(Ha, t.pool);
}
- function Ka() {
- var e = Wa();
+ function Ga() {
+ var e = Ua();
return e === null ? null : {
- parent: ka._currentValue,
+ parent: Oa._currentValue,
pool: e
};
}
- var qa = Error(i(460)), Ja = Error(i(474)), Ya = Error(i(542)), Xa = { then: function() {} };
- function Za(e) {
+ var Ka = Error(i(460)), qa = Error(i(474)), Ja = Error(i(542)), Ya = { then: function() {} };
+ function Xa(e) {
return e = e.status, e === "fulfilled" || e === "rejected";
}
- function Qa(e, t, n) {
+ function Za(e, t, n) {
switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(xn, xn), t = n), t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, no(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
+ case "rejected": throw e = t.reason, to(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
default:
if (typeof t.status == "string") t.then(xn, xn);
else {
- if (e = nd, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));
+ if (e = td, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));
e = t, e.status = "pending", e.then(function(e) {
if (t.status === "pending") {
var n = t;
@@ -2807,40 +2807,40 @@ var k = /* @__PURE__ */ o(((e) => {
}
switch (t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, no(e), e;
+ case "rejected": throw e = t.reason, to(e), e;
}
- throw eo = t, qa;
+ throw $a = t, Ka;
}
}
- function $a(e) {
+ function Qa(e) {
try {
var t = e._init;
return t(e._payload);
} catch (e) {
- throw typeof e == "object" && e && typeof e.then == "function" ? (eo = e, qa) : e;
+ throw typeof e == "object" && e && typeof e.then == "function" ? ($a = e, Ka) : e;
}
}
- var eo = null;
- function to() {
- if (eo === null) throw Error(i(459));
- var e = eo;
- return eo = null, e;
+ var $a = null;
+ function eo() {
+ if ($a === null) throw Error(i(459));
+ var e = $a;
+ return $a = null, e;
}
- function no(e) {
- if (e === qa || e === Ya) throw Error(i(483));
+ function to(e) {
+ if (e === Ka || e === Ja) throw Error(i(483));
}
- var ro = null, io = 0;
- function ao(e) {
- var t = io;
- return io += 1, ro === null && (ro = []), Qa(ro, e, t);
+ var no = null, ro = 0;
+ function io(e) {
+ var t = ro;
+ return ro += 1, no === null && (no = []), Za(no, e, t);
}
- function oo(e, t) {
+ function ao(e, t) {
t = t.props.ref, e.ref = t === void 0 ? null : t;
}
- function so(e, t) {
+ function oo(e, t) {
throw t.$$typeof === T ? Error(i(525)) : (e = Object.prototype.toString.call(t), Error(i(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)));
}
- function co(e) {
+ function so(e) {
function t(t, n) {
if (e) {
var r = t.deletions;
@@ -2857,7 +2857,7 @@ var k = /* @__PURE__ */ o(((e) => {
return t;
}
function a(e, t) {
- return e = ji(e, t), e.index = 0, e.sibling = null, e;
+ return e = Ai(e, t), e.index = 0, e.sibling = null, e;
}
function o(t, n, r) {
return t.index = r, e ? (r = t.alternate, r === null ? (t.flags |= 134217730, n) : (r = r.index, r < n ? (t.flags |= 2, n) : r)) : (t.flags |= 1048576, n);
@@ -2866,30 +2866,30 @@ var k = /* @__PURE__ */ o(((e) => {
return e && t.alternate === null && (t.flags |= 134217730), t;
}
function c(e, t, n, r) {
- return t === null || t.tag !== 6 ? (t = Fi(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);
+ return t === null || t.tag !== 6 ? (t = Pi(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);
}
function l(e, t, n, r) {
var i = n.type;
- return i === O ? (e = d(e, t, n.props.children, r, n.key), oo(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === I && $a(i) === t.type) ? (t = a(t, n.props), oo(t, n), t.return = e, t) : (t = Ni(n.type, n.key, n.props, null, e.mode, r), oo(t, n), t.return = e, t);
+ return i === O ? (e = d(e, t, n.props.children, r, n.key), ao(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === I && Qa(i) === t.type) ? (t = a(t, n.props), ao(t, n), t.return = e, t) : (t = Mi(n.type, n.key, n.props, null, e.mode, r), ao(t, n), t.return = e, t);
}
function u(e, t, n, r) {
- return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = Li(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);
+ return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = Ii(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);
}
function d(e, t, n, r, i) {
- return t === null || t.tag !== 7 ? (t = Pi(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);
+ return t === null || t.tag !== 7 ? (t = Ni(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);
}
function f(e, t, n) {
- if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Fi("" + t, e.mode, n), t.return = e, t;
+ if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Pi("" + t, e.mode, n), t.return = e, t;
if (typeof t == "object" && t) {
switch (t.$$typeof) {
- case E: return n = Ni(t.type, t.key, t.props, null, e.mode, n), oo(n, t), n.return = e, n;
- case D: return t = Li(t, e.mode, n), t.return = e, t;
- case I: return t = $a(t), f(e, t, n);
+ case E: return n = Mi(t.type, t.key, t.props, null, e.mode, n), ao(n, t), n.return = e, n;
+ case D: return t = Ii(t, e.mode, n), t.return = e, t;
+ case I: return t = Qa(t), f(e, t, n);
}
- if (pe(t) || ue(t)) return t = Pi(t, e.mode, n, null), t.return = e, t;
- if (typeof t.then == "function") return f(e, ao(t), n);
- if (t.$$typeof === te) return f(e, wa(e, t), n);
- so(e, t);
+ if (pe(t) || ue(t)) return t = Ni(t, e.mode, n, null), t.return = e, t;
+ if (typeof t.then == "function") return f(e, io(t), n);
+ if (t.$$typeof === te) return f(e, Ca(e, t), n);
+ oo(e, t);
}
return null;
}
@@ -2900,12 +2900,12 @@ var k = /* @__PURE__ */ o(((e) => {
switch (n.$$typeof) {
case E: return n.key === i ? l(e, t, n, r) : null;
case D: return n.key === i ? u(e, t, n, r) : null;
- case I: return n = $a(n), p(e, t, n, r);
+ case I: return n = Qa(n), p(e, t, n, r);
}
if (pe(n) || ue(n)) return i === null ? d(e, t, n, r, null) : null;
- if (typeof n.then == "function") return p(e, t, ao(n), r);
- if (n.$$typeof === te) return p(e, t, wa(e, n), r);
- so(e, n);
+ if (typeof n.then == "function") return p(e, t, io(n), r);
+ if (n.$$typeof === te) return p(e, t, Ca(e, n), r);
+ oo(e, n);
}
return null;
}
@@ -2915,12 +2915,12 @@ var k = /* @__PURE__ */ o(((e) => {
switch (r.$$typeof) {
case E: return e = e.get(r.key === null ? n : r.key) || null, l(t, e, r, i);
case D: return e = e.get(r.key === null ? n : r.key) || null, u(t, e, r, i);
- case I: return r = $a(r), m(e, t, n, r, i);
+ case I: return r = Qa(r), m(e, t, n, r, i);
}
if (pe(r) || ue(r)) return e = e.get(n) || null, d(t, e, r, i, null);
- if (typeof r.then == "function") return m(e, t, n, ao(r), i);
- if (r.$$typeof === te) return m(e, t, n, wa(t, r), i);
- so(t, r);
+ if (typeof r.then == "function") return m(e, t, n, io(r), i);
+ if (r.$$typeof === te) return m(e, t, n, Ca(t, r), i);
+ oo(t, r);
}
return null;
}
@@ -2934,15 +2934,15 @@ var k = /* @__PURE__ */ o(((e) => {
}
e && d && _.alternate === null && t(i, d), a = o(_, a, h), u === null ? l = _ : u.sibling = _, u = _, d = g;
}
- if (h === s.length) return n(i, d), na && Yi(i, h), l;
+ if (h === s.length) return n(i, d), ta && Ji(i, h), l;
if (d === null) {
for (; h < s.length; h++) d = f(i, s[h], c), d !== null && (a = o(d, a, h), u === null ? l = d : u.sibling = d, u = d);
- return na && Yi(i, h), l;
+ return ta && Ji(i, h), l;
}
for (d = r(d); h < s.length; h++) g = m(d, i, h, s[h], c), g !== null && (e && (_ = g.alternate, _ !== null && d.delete(_.key === null ? h : _.key)), a = o(g, a, h), u === null ? l = g : u.sibling = g, u = g);
return e && d.forEach(function(e) {
return t(i, e);
- }), na && Yi(i, h), l;
+ }), ta && Ji(i, h), l;
}
function g(a, s, c, l) {
if (c == null) throw Error(i(151));
@@ -2955,15 +2955,15 @@ var k = /* @__PURE__ */ o(((e) => {
}
e && h && y.alternate === null && t(a, h), s = o(y, s, g), d === null ? u = y : d.sibling = y, d = y, h = _;
}
- if (v.done) return n(a, h), na && Yi(a, g), u;
+ if (v.done) return n(a, h), ta && Ji(a, g), u;
if (h === null) {
for (; !v.done; g++, v = c.next()) v = f(a, v.value, l), v !== null && (s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);
- return na && Yi(a, g), u;
+ return ta && Ji(a, g), u;
}
for (h = r(h); !v.done; g++, v = c.next()) v = m(h, a, g, v.value, l), v !== null && (e && (_ = v.alternate, _ !== null && h.delete(_.key === null ? g : _.key)), s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);
return e && h.forEach(function(e) {
return t(a, e);
- }), na && Yi(a, g), u;
+ }), ta && Ji(a, g), u;
}
function _(e, r, o, c) {
if (typeof o == "object" && o && o.type === O && o.key === null && o.props.ref === void 0 && (o = o.props.children), typeof o == "object" && o) {
@@ -2974,11 +2974,11 @@ var k = /* @__PURE__ */ o(((e) => {
if (r.key === l) {
if (l = o.type, l === O) {
if (r.tag === 7) {
- n(e, r.sibling), c = a(r, o.props.children), oo(c, o), c.return = e, e = c;
+ n(e, r.sibling), c = a(r, o.props.children), ao(c, o), c.return = e, e = c;
break a;
}
- } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === I && $a(l) === r.type) {
- n(e, r.sibling), c = a(r, o.props), oo(c, o), c.return = e, e = c;
+ } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === I && Qa(l) === r.type) {
+ n(e, r.sibling), c = a(r, o.props), ao(c, o), c.return = e, e = c;
break a;
}
n(e, r);
@@ -2986,7 +2986,7 @@ var k = /* @__PURE__ */ o(((e) => {
}
t(e, r), r = r.sibling;
}
- o.type === O ? (c = Pi(o.props.children, e.mode, c, o.key), oo(c, o), c.return = e, e = c) : (c = Ni(o.type, o.key, o.props, null, e.mode, c), oo(c, o), c.return = e, e = c);
+ o.type === O ? (c = Ni(o.props.children, e.mode, c, o.key), ao(c, o), c.return = e, e = c) : (c = Mi(o.type, o.key, o.props, null, e.mode, c), ao(c, o), c.return = e, e = c);
}
return s(e);
case D:
@@ -3002,36 +3002,36 @@ var k = /* @__PURE__ */ o(((e) => {
}
t(e, r), r = r.sibling;
}
- c = Li(o, e.mode, c), c.return = e, e = c;
+ c = Ii(o, e.mode, c), c.return = e, e = c;
}
return s(e);
- case I: return o = $a(o), _(e, r, o, c);
+ case I: return o = Qa(o), _(e, r, o, c);
}
if (pe(o)) return h(e, r, o, c);
if (ue(o)) {
if (l = ue(o), typeof l != "function") throw Error(i(150));
return o = l.call(o), g(e, r, o, c);
}
- if (typeof o.then == "function") return _(e, r, ao(o), c);
- if (o.$$typeof === te) return _(e, r, wa(e, o), c);
- so(e, o);
+ if (typeof o.then == "function") return _(e, r, io(o), c);
+ if (o.$$typeof === te) return _(e, r, Ca(e, o), c);
+ oo(e, o);
}
- return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = Fi(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);
+ return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = Pi(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);
}
return function(e, t, n, r) {
try {
- io = 0;
+ ro = 0;
var i = _(e, t, n, r);
- return ro = null, i;
+ return no = null, i;
} catch (t) {
- if (t === qa || t === Ya) throw t;
- var a = ki(29, t, null, e.mode);
+ if (t === Ka || t === Ja) throw t;
+ var a = Oi(29, t, null, e.mode);
return a.lanes = r, a.return = e, a;
}
};
}
- var lo = co(!0), uo = co(!1), fo = !1;
- function po(e) {
+ var co = so(!0), lo = so(!1), uo = !1;
+ function fo(e) {
e.updateQueue = {
baseState: e.memoizedState,
firstBaseUpdate: null,
@@ -3044,7 +3044,7 @@ var k = /* @__PURE__ */ o(((e) => {
callbacks: null
};
}
- function mo(e, t) {
+ function po(e, t) {
e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {
baseState: e.baseState,
firstBaseUpdate: e.firstBaseUpdate,
@@ -3053,7 +3053,7 @@ var k = /* @__PURE__ */ o(((e) => {
callbacks: null
});
}
- function ho(e) {
+ function mo(e) {
return {
lane: e,
tag: 0,
@@ -3062,22 +3062,22 @@ var k = /* @__PURE__ */ o(((e) => {
next: null
};
}
- function go(e, t, n) {
+ function ho(e, t, n) {
var r = e.updateQueue;
if (r === null) return null;
- if (r = r.shared, td & 2) {
+ if (r = r.shared, ed & 2) {
var i = r.pending;
- return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Ei(e), Ti(e, null, n), t;
+ return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Ti(e), wi(e, null, n), t;
}
- return Si(e, r, t, n), Ei(e);
+ return xi(e, r, t, n), Ti(e);
}
- function _o(e, t, n) {
+ function go(e, t, n) {
if (t = t.updateQueue, t !== null && (t = t.shared, n & 4194048)) {
var r = t.lanes;
r &= e.pendingLanes, n |= r, t.lanes = n, _t(e, n);
}
}
- function vo(e, t) {
+ function _o(e, t) {
var n = e.updateQueue, r = e.alternate;
if (r !== null && (r = r.updateQueue, n === r)) {
var i = null, a = null;
@@ -3103,17 +3103,17 @@ var k = /* @__PURE__ */ o(((e) => {
}, e.updateQueue = n;
} else e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t;
}
- var yo = !1;
- function bo() {
- if (yo) {
- var e = Ra;
+ var vo = !1;
+ function yo() {
+ if (vo) {
+ var e = La;
if (e !== null) throw e;
}
}
- function xo(e, t, n, r) {
- yo = !1;
+ function bo(e, t, n, r) {
+ vo = !1;
var i = e.updateQueue;
- fo = !1;
+ uo = !1;
var a = i.firstBaseUpdate, o = i.lastBaseUpdate, s = i.shared.pending;
if (s !== null) {
i.shared.pending = null;
@@ -3127,8 +3127,8 @@ var k = /* @__PURE__ */ o(((e) => {
o = 0, u = l = c = null, s = a;
do {
var f = s.lane & -536870913, p = f !== s.lane;
- if (p ? (id & f) === f : (r & f) === f) {
- f !== 0 && f === La && (yo = !0), u !== null && (u = u.next = {
+ if (p ? (rd & f) === f : (r & f) === f) {
+ f !== 0 && f === Ia && (vo = !0), u !== null && (u = u.next = {
lane: 0,
tag: s.tag,
payload: s.payload,
@@ -3152,7 +3152,7 @@ var k = /* @__PURE__ */ o(((e) => {
if (m = h.payload, f = typeof m == "function" ? m.call(g, d, f) : m, f == null) break a;
d = w({}, d, f);
break a;
- case 2: fo = !0;
+ case 2: uo = !0;
}
}
f = s.callback, f !== null && (e.flags |= 64, p && (e.flags |= 8192), p = i.callbacks, p === null ? i.callbacks = [f] : p.push(f));
@@ -3168,56 +3168,56 @@ var k = /* @__PURE__ */ o(((e) => {
p = s, s = p.next, p.next = null, i.lastBaseUpdate = p, i.shared.pending = null;
}
} while (1);
- u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), fd |= o, e.lanes = o, e.memoizedState = d;
+ u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), dd |= o, e.lanes = o, e.memoizedState = d;
}
}
- function So(e, t) {
+ function xo(e, t) {
if (typeof e != "function") throw Error(i(191, e));
e.call(t);
}
- function Co(e, t) {
+ function So(e, t) {
var n = e.callbacks;
- if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) So(n[e], t);
+ if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) xo(n[e], t);
+ }
+ var Co = ye(null), wo = ye(0);
+ function To(e, t) {
+ e = ld, xe(wo, e), xe(Co, t), ld = e | t.baseLanes;
}
- var wo = ye(null), To = ye(0);
- function Eo(e, t) {
- e = ud, xe(To, e), xe(wo, t), ud = e | t.baseLanes;
+ function Eo() {
+ xe(wo, ld), xe(Co, Co.current);
}
function Do() {
- xe(To, ud), xe(wo, wo.current);
+ ld = wo.current, be(Co), be(wo);
}
- function Oo() {
- ud = To.current, be(wo), be(To);
+ var Oo = ye(null), ko = null;
+ function Ao(e) {
+ var t = e.alternate;
+ xe(Fo, Fo.current & 1), xe(Oo, e), ko === null && (t === null || Co.current !== null || t.memoizedState !== null) && (ko = e);
}
- var ko = ye(null), Ao = null;
function jo(e) {
- var t = e.alternate;
- xe(Io, Io.current & 1), xe(ko, e), Ao === null && (t === null || wo.current !== null || t.memoizedState !== null) && (Ao = e);
+ xe(Fo, Fo.current), xe(Oo, e), ko === null && (ko = e);
}
function Mo(e) {
- xe(Io, Io.current), xe(ko, e), Ao === null && (Ao = e);
+ e.tag === 22 ? (xe(Fo, Fo.current), xe(Oo, e), ko === null && (ko = e)) : No();
}
- function No(e) {
- e.tag === 22 ? (xe(Io, Io.current), xe(ko, e), Ao === null && (Ao = e)) : Po();
+ function No() {
+ xe(Fo, Fo.current), xe(Oo, Oo.current);
}
- function Po() {
- xe(Io, Io.current), xe(ko, ko.current);
+ function Po(e) {
+ be(Oo), ko === e && (ko = null), be(Fo);
}
- function Fo(e) {
- be(ko), Ao === e && (Ao = null), be(Io);
+ var Fo = ye(0);
+ function Io(e, t) {
+ xe(Oo, Oo.current), xe(Fo, t);
}
- var Io = ye(0);
- function Lo(e, t) {
- xe(ko, ko.current), xe(Io, t);
+ function Lo(e) {
+ be(Fo), be(Oo), ko === e && (ko = null);
}
function Ro(e) {
- be(Io), be(ko), Ao === e && (Ao = null);
- }
- function zo(e) {
for (var t = e; t !== null;) {
if (t.tag === 13) {
var n = t.memoizedState;
- if (n !== null && (n = n.dehydrated, n === null || hm(n) || gm(n))) return t;
+ if (n !== null && (n = n.dehydrated, n === null || mm(n) || hm(n))) return t;
} else if (t.tag === 19 && t.memoizedProps.revealOrder !== "independent") {
if (t.flags & 128) return t;
} else if (t.child !== null) {
@@ -3233,59 +3233,59 @@ var k = /* @__PURE__ */ o(((e) => {
}
return null;
}
- var Bo = 0, Vo = null, Ho = null, Uo = null, Wo = !1, Go = !1, Ko = !1, qo = 0, Jo = 0, Yo = null, Xo = 0;
- function Zo() {
+ var zo = 0, Bo = null, Vo = null, Ho = null, Uo = !1, Wo = !1, Go = !1, Ko = 0, qo = 0, Jo = null, Yo = 0;
+ function Xo() {
throw Error(i(321));
}
- function Qo(e, t) {
+ function Zo(e, t) {
if (t === null) return !1;
- for (var n = 0; n < t.length && n < e.length; n++) if (!Rr(e[n], t[n])) return !1;
+ for (var n = 0; n < t.length && n < e.length; n++) if (!Lr(e[n], t[n])) return !1;
return !0;
}
- function $o(e, t, n, r, i, a) {
- return Bo = a, Vo = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, me.H = e === null || e.memoizedState === null ? gc : _c, Ko = !1, a = n(r, i), Ko = !1, Go && (a = ts(t, n, r, i)), es(e), a;
+ function Qo(e, t, n, r, i, a) {
+ return zo = a, Bo = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, me.H = e === null || e.memoizedState === null ? hc : gc, Go = !1, a = n(r, i), Go = !1, Wo && (a = es(t, n, r, i)), $o(e), a;
}
- function es(e) {
- me.H = hc;
- var t = Ho !== null && Ho.next !== null;
- if (Bo = 0, Uo = Ho = Vo = null, Wo = !1, Jo = 0, Yo = null, t) throw Error(i(300));
- e === null || Pc || (e = e.dependencies, e !== null && xa(e) && (Pc = !0));
+ function $o(e) {
+ me.H = mc;
+ var t = Vo !== null && Vo.next !== null;
+ if (zo = 0, Ho = Vo = Bo = null, Uo = !1, qo = 0, Jo = null, t) throw Error(i(300));
+ e === null || Nc || (e = e.dependencies, e !== null && ba(e) && (Nc = !0));
}
- function ts(e, t, n, r) {
- Vo = e;
+ function es(e, t, n, r) {
+ Bo = e;
var a = 0;
do {
- if (Go && (Yo = null), Jo = 0, Go = !1, 25 <= a) throw Error(i(301));
- if (a += 1, Uo = Ho = null, e.updateQueue != null) {
+ if (Wo && (Jo = null), qo = 0, Wo = !1, 25 <= a) throw Error(i(301));
+ if (a += 1, Ho = Vo = null, e.updateQueue != null) {
var o = e.updateQueue;
o.lastEffect = null, o.events = null, o.stores = null, o.memoCache != null && (o.memoCache.index = 0);
}
- me.H = vc, o = t(n, r);
- } while (Go);
+ me.H = _c, o = t(n, r);
+ } while (Wo);
return o;
}
- function ns() {
+ function ts() {
var e = me.H, t = e.useState()[0];
- return t = typeof t.then == "function" ? ls(t) : t, e = e.useState()[0], (Ho === null ? null : Ho.memoizedState) !== e && (Vo.flags |= 1024), t;
+ return t = typeof t.then == "function" ? cs(t) : t, e = e.useState()[0], (Vo === null ? null : Vo.memoizedState) !== e && (Bo.flags |= 1024), t;
}
- function rs() {
- var e = qo !== 0;
- return qo = 0, e;
+ function ns() {
+ var e = Ko !== 0;
+ return Ko = 0, e;
}
- function is(e, t, n) {
+ function rs(e, t, n) {
t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~n;
}
- function as(e) {
- if (Wo) {
+ function is(e) {
+ if (Uo) {
for (e = e.memoizedState; e !== null;) {
var t = e.queue;
t !== null && (t.pending = null), e = e.next;
}
- Wo = !1;
+ Uo = !1;
}
- Bo = 0, Uo = Ho = Vo = null, Go = !1, Jo = qo = 0, Yo = null;
+ zo = 0, Ho = Vo = Bo = null, Wo = !1, qo = Ko = 0, Jo = null;
}
- function os() {
+ function as() {
var e = {
memoizedState: null,
baseState: null,
@@ -3293,28 +3293,28 @@ var k = /* @__PURE__ */ o(((e) => {
queue: null,
next: null
};
- return Uo === null ? Vo.memoizedState = Uo = e : Uo = Uo.next = e, Uo;
+ return Ho === null ? Bo.memoizedState = Ho = e : Ho = Ho.next = e, Ho;
}
- function ss() {
- if (Ho === null) {
- var e = Vo.alternate;
+ function os() {
+ if (Vo === null) {
+ var e = Bo.alternate;
e = e === null ? null : e.memoizedState;
- } else e = Ho.next;
- var t = Uo === null ? Vo.memoizedState : Uo.next;
- if (t !== null) Uo = t, Ho = e;
+ } else e = Vo.next;
+ var t = Ho === null ? Bo.memoizedState : Ho.next;
+ if (t !== null) Ho = t, Vo = e;
else {
- if (e === null) throw Vo.alternate === null ? Error(i(467)) : Error(i(310));
- Ho = e, e = {
- memoizedState: Ho.memoizedState,
- baseState: Ho.baseState,
- baseQueue: Ho.baseQueue,
- queue: Ho.queue,
+ if (e === null) throw Bo.alternate === null ? Error(i(467)) : Error(i(310));
+ Vo = e, e = {
+ memoizedState: Vo.memoizedState,
+ baseState: Vo.baseState,
+ baseQueue: Vo.baseQueue,
+ queue: Vo.queue,
next: null
- }, Uo === null ? Vo.memoizedState = Uo = e : Uo = Uo.next = e;
+ }, Ho === null ? Bo.memoizedState = Ho = e : Ho = Ho.next = e;
}
- return Uo;
+ return Ho;
}
- function cs() {
+ function ss() {
return {
lastEffect: null,
events: null,
@@ -3322,22 +3322,22 @@ var k = /* @__PURE__ */ o(((e) => {
memoCache: null
};
}
- function ls(e) {
- var t = Jo;
- return Jo += 1, Yo === null && (Yo = []), e = Qa(Yo, e, t), t = Vo, (Uo === null ? t.memoizedState : Uo.next) === null && (t = t.alternate, me.H = t === null || t.memoizedState === null ? gc : _c), e;
+ function cs(e) {
+ var t = qo;
+ return qo += 1, Jo === null && (Jo = []), e = Za(Jo, e, t), t = Bo, (Ho === null ? t.memoizedState : Ho.next) === null && (t = t.alternate, me.H = t === null || t.memoizedState === null ? hc : gc), e;
}
- function us(e) {
+ function ls(e) {
if (typeof e == "object" && e) {
- if (typeof e.then == "function") return ls(e);
+ if (typeof e.then == "function") return cs(e);
if (e.$$typeof === ce) return;
- if (e.$$typeof === te) return Ca(e);
+ if (e.$$typeof === te) return Sa(e);
}
throw Error(i(438, String(e)));
}
- function ds(e) {
- var t = null, n = Vo.updateQueue;
+ function us(e) {
+ var t = null, n = Bo.updateQueue;
if (n !== null && (t = n.memoCache), t == null) {
- var r = Vo.alternate;
+ var r = Bo.alternate;
r !== null && (r = r.updateQueue, r !== null && (r = r.memoCache, r != null && (t = {
data: r.data.map(function(e) {
return e.slice();
@@ -3348,16 +3348,16 @@ var k = /* @__PURE__ */ o(((e) => {
if (t ??= {
data: [],
index: 0
- }, n === null && (n = cs(), Vo.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = oe;
+ }, n === null && (n = ss(), Bo.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = oe;
return t.index++, n;
}
- function fs(e, t) {
+ function ds(e, t) {
return typeof t == "function" ? t(e) : t;
}
- function ps(e) {
- return ms(ss(), Ho, e);
+ function fs(e) {
+ return ps(os(), Vo, e);
}
- function ms(e, t, n) {
+ function ps(e, t, n) {
var r = e.queue;
if (r === null) throw Error(i(311));
r.lastRenderedReducer = n;
@@ -3375,7 +3375,7 @@ var k = /* @__PURE__ */ o(((e) => {
var c = s = null, l = null, u = t, d = !1;
do {
var f = u.lane & -536870913;
- if (f === u.lane ? (Bo & f) === f : (id & f) === f) {
+ if (f === u.lane ? (zo & f) === f : (rd & f) === f) {
var p = u.revertLane;
if (p === 0) l !== null && (l = l.next = {
lane: 0,
@@ -3385,9 +3385,9 @@ var k = /* @__PURE__ */ o(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }), f === La && (d = !0);
- else if ((Bo & p) === p) {
- u = u.next, p === La && (d = !0);
+ }), f === Ia && (d = !0);
+ else if ((zo & p) === p) {
+ u = u.next, p === Ia && (d = !0);
continue;
} else f = {
lane: 0,
@@ -3397,8 +3397,8 @@ var k = /* @__PURE__ */ o(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = f, s = o) : l = l.next = f, Vo.lanes |= p, fd |= p;
- f = u.action, Ko && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
+ }, l === null ? (c = l = f, s = o) : l = l.next = f, Bo.lanes |= p, dd |= p;
+ f = u.action, Go && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
} else p = {
lane: f,
revertLane: u.revertLane,
@@ -3407,16 +3407,16 @@ var k = /* @__PURE__ */ o(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = p, s = o) : l = l.next = p, Vo.lanes |= f, fd |= f;
+ }, l === null ? (c = l = p, s = o) : l = l.next = p, Bo.lanes |= f, dd |= f;
u = u.next;
} while (u !== null && u !== t);
- if (l === null ? s = o : l.next = c, !Rr(o, e.memoizedState) && (Pc = !0, d && (n = Ra, n !== null))) throw n;
+ if (l === null ? s = o : l.next = c, !Lr(o, e.memoizedState) && (Nc = !0, d && (n = La, n !== null))) throw n;
e.memoizedState = o, e.baseState = s, e.baseQueue = l, r.lastRenderedState = o;
}
return a === null && (r.lanes = 0), [e.memoizedState, r.dispatch];
}
- function hs(e) {
- var t = ss(), n = t.queue;
+ function ms(e) {
+ var t = os(), n = t.queue;
if (n === null) throw Error(i(311));
n.lastRenderedReducer = e;
var r = n.dispatch, a = n.pending, o = t.memoizedState;
@@ -3426,56 +3426,56 @@ var k = /* @__PURE__ */ o(((e) => {
do
o = e(o, s.action), s = s.next;
while (s !== a);
- Rr(o, t.memoizedState) || (Pc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
+ Lr(o, t.memoizedState) || (Nc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
}
return [o, r];
}
- function gs(e, t, n) {
- var r = Vo, a = ss(), o = na;
+ function hs(e, t, n) {
+ var r = Bo, a = os(), o = ta;
if (o) {
if (n === void 0) throw Error(i(407));
n = n();
} else n = t();
- var s = !Rr((Ho || a).memoizedState, n);
- if (s && (a.memoizedState = n, Pc = !0), a = a.queue, Vs(ys.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Uo !== null && !!(Uo.memoizedState.tag & 1), Is(e ? 9 : 8, { destroy: void 0 }, vs.bind(null, r, a, n, t), null), e) {
- if (r.flags |= 2048, nd === null) throw Error(i(349));
- o || Bo & 127 || _s(r, t, n);
+ var s = !Lr((Vo || a).memoizedState, n);
+ if (s && (a.memoizedState = n, Nc = !0), a = a.queue, Bs(vs.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Ho !== null && !!(Ho.memoizedState.tag & 1), Fs(e ? 9 : 8, { destroy: void 0 }, _s.bind(null, r, a, n, t), null), e) {
+ if (r.flags |= 2048, td === null) throw Error(i(349));
+ o || zo & 127 || gs(r, t, n);
}
return n;
}
- function _s(e, t, n) {
+ function gs(e, t, n) {
e.flags |= 16384, e = {
getSnapshot: t,
value: n
- }, t = Vo.updateQueue, t === null ? (t = cs(), Vo.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
+ }, t = Bo.updateQueue, t === null ? (t = ss(), Bo.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
}
- function vs(e, t, n, r) {
- t.value = n, t.getSnapshot = r, bs(t) && xs(e);
+ function _s(e, t, n, r) {
+ t.value = n, t.getSnapshot = r, ys(t) && bs(e);
}
- function ys(e, t, n) {
+ function vs(e, t, n) {
return n(function() {
- bs(t) && xs(e);
+ ys(t) && bs(e);
});
}
- function bs(e) {
+ function ys(e) {
var t = e.getSnapshot;
e = e.value;
try {
var n = t();
- return !Rr(e, n);
+ return !Lr(e, n);
} catch {
return !0;
}
}
- function xs(e) {
- var t = wi(e, 2);
- t !== null && Bd(t, e, 2);
+ function bs(e) {
+ var t = Ci(e, 2);
+ t !== null && zd(t, e, 2);
}
- function Ss(e) {
- var t = os();
+ function xs(e) {
+ var t = as();
if (typeof e == "function") {
var n = e;
- if (e = n(), Ko) {
+ if (e = n(), Go) {
$e(!0);
try {
n();
@@ -3488,15 +3488,15 @@ var k = /* @__PURE__ */ o(((e) => {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: fs,
+ lastRenderedReducer: ds,
lastRenderedState: e
}, t;
}
- function Cs(e, t, n, r) {
- return e.baseState = n, ms(e, Ho, typeof r == "function" ? r : fs);
+ function Ss(e, t, n, r) {
+ return e.baseState = n, ps(e, Vo, typeof r == "function" ? r : ds);
}
- function ws(e, t, n, r, a) {
- if (fc(e)) throw Error(i(485));
+ function Cs(e, t, n, r, a) {
+ if (dc(e)) throw Error(i(485));
if (e = t.action, e !== null) {
var o = {
payload: a,
@@ -3511,124 +3511,124 @@ var k = /* @__PURE__ */ o(((e) => {
o.listeners.push(e);
}
};
- me.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, Ts(t, o)) : (o.next = n.next, t.pending = n.next = o);
+ me.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, ws(t, o)) : (o.next = n.next, t.pending = n.next = o);
}
}
- function Ts(e, t) {
+ function ws(e, t) {
var n = t.action, r = t.payload, i = e.state;
if (t.isTransition) {
var a = me.T, o = {};
o.types = a === null ? null : a.types, me.T = o;
try {
var s = n(i, r), c = me.S;
- c !== null && c(o, s), Es(e, t, s);
+ c !== null && c(o, s), Ts(e, t, s);
} catch (n) {
- Os(e, t, n);
+ Ds(e, t, n);
} finally {
a !== null && o.types !== null && (a.types = o.types), me.T = a;
}
} else try {
- a = n(i, r), Es(e, t, a);
+ a = n(i, r), Ts(e, t, a);
} catch (n) {
- Os(e, t, n);
+ Ds(e, t, n);
}
}
- function Es(e, t, n) {
+ function Ts(e, t, n) {
typeof n == "object" && n && typeof n.then == "function" ? n.then(function(n) {
- Ds(e, t, n);
+ Es(e, t, n);
}, function(n) {
- return Os(e, t, n);
- }) : Ds(e, t, n);
+ return Ds(e, t, n);
+ }) : Es(e, t, n);
}
- function Ds(e, t, n) {
- t.status = "fulfilled", t.value = n, ks(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, Ts(e, n)));
+ function Es(e, t, n) {
+ t.status = "fulfilled", t.value = n, Os(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, ws(e, n)));
}
- function Os(e, t, n) {
+ function Ds(e, t, n) {
var r = e.pending;
if (e.pending = null, r !== null) {
r = r.next;
do
- t.status = "rejected", t.reason = n, ks(t), t = t.next;
+ t.status = "rejected", t.reason = n, Os(t), t = t.next;
while (t !== r);
}
e.action = null;
}
- function ks(e) {
+ function Os(e) {
e = e.listeners;
for (var t = 0; t < e.length; t++) (0, e[t])();
}
- function As(e, t) {
+ function ks(e, t) {
return t;
}
- function js(e, t) {
- if (na) {
- var n = nd.formState;
+ function As(e, t) {
+ if (ta) {
+ var n = td.formState;
if (n !== null) {
a: {
- var r = Vo;
- if (na) {
- if (ta) {
+ var r = Bo;
+ if (ta) {
+ if (ea) {
b: {
- for (var i = ta, a = ia; i.nodeType !== 8;) if (!a || (i = vm(i.nextSibling), i === null)) {
+ for (var i = ea, a = ra; i.nodeType !== 8;) if (!a || (i = _m(i.nextSibling), i === null)) {
i = null;
break b;
}
a = i.data, i = a === "F!" || a === "F" ? i : null;
}
if (i) {
- ta = vm(i.nextSibling), r = i.data === "F!";
+ ea = _m(i.nextSibling), r = i.data === "F!";
break a;
}
}
- oa(r);
+ aa(r);
}
r = !1;
}
r && (t = n[0]);
}
}
- return n = os(), n.memoizedState = n.baseState = t, r = {
+ return n = as(), n.memoizedState = n.baseState = t, r = {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: As,
+ lastRenderedReducer: ks,
lastRenderedState: t
- }, n.queue = r, n = lc.bind(null, Vo, r), r.dispatch = n, r = Ss(!1), a = dc.bind(null, Vo, !1, r.queue), r = os(), i = {
+ }, n.queue = r, n = cc.bind(null, Bo, r), r.dispatch = n, r = xs(!1), a = uc.bind(null, Bo, !1, r.queue), r = as(), i = {
state: t,
dispatch: null,
action: e,
pending: null
- }, r.queue = i, n = ws.bind(null, Vo, i, a, n), i.dispatch = n, r.memoizedState = e, [
+ }, r.queue = i, n = Cs.bind(null, Bo, i, a, n), i.dispatch = n, r.memoizedState = e, [
t,
n,
!1
];
}
- function Ms(e) {
- return Ns(ss(), Ho, e);
+ function js(e) {
+ return Ms(os(), Vo, e);
}
- function Ns(e, t, n) {
- if (t = ms(e, t, As)[0], e = ps(fs)[0], typeof t == "object" && t && typeof t.then == "function") try {
- var r = ls(t);
+ function Ms(e, t, n) {
+ if (t = ps(e, t, ks)[0], e = fs(ds)[0], typeof t == "object" && t && typeof t.then == "function") try {
+ var r = cs(t);
} catch (e) {
- throw e === qa ? Ya : e;
+ throw e === Ka ? Ja : e;
}
else r = t;
- t = ss();
+ t = os();
var i = t.queue, a = i.dispatch;
- return n !== t.memoizedState && (Vo.flags |= 2048, Is(9, { destroy: void 0 }, Ps.bind(null, i, n), null)), [
+ return n !== t.memoizedState && (Bo.flags |= 2048, Fs(9, { destroy: void 0 }, Ns.bind(null, i, n), null)), [
r,
a,
e
];
}
- function Ps(e, t) {
+ function Ns(e, t) {
e.action = t;
}
- function Fs(e) {
- var t = ss(), n = Ho;
- if (n !== null) return Ns(t, n, e);
- ss(), t = t.memoizedState, n = ss();
+ function Ps(e) {
+ var t = os(), n = Vo;
+ if (n !== null) return Ms(t, n, e);
+ os(), t = t.memoizedState, n = os();
var r = n.queue.dispatch;
return n.memoizedState = e, [
t,
@@ -3636,60 +3636,60 @@ var k = /* @__PURE__ */ o(((e) => {
!1
];
}
- function Is(e, t, n, r) {
+ function Fs(e, t, n, r) {
return e = {
tag: e,
create: n,
deps: r,
inst: t,
next: null
- }, t = Vo.updateQueue, t === null && (t = cs(), Vo.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;
+ }, t = Bo.updateQueue, t === null && (t = ss(), Bo.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;
+ }
+ function Is() {
+ return os().memoizedState;
}
- function Ls() {
- return ss().memoizedState;
+ function Ls(e, t, n, r) {
+ var i = as();
+ Bo.flags |= e, i.memoizedState = Fs(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
}
function Rs(e, t, n, r) {
var i = os();
- Vo.flags |= e, i.memoizedState = Is(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
- }
- function zs(e, t, n, r) {
- var i = ss();
r = r === void 0 ? null : r;
var a = i.memoizedState.inst;
- Ho !== null && r !== null && Qo(r, Ho.memoizedState.deps) ? i.memoizedState = Is(t, a, n, r) : (Vo.flags |= e, i.memoizedState = Is(1 | t, a, n, r));
+ Vo !== null && r !== null && Zo(r, Vo.memoizedState.deps) ? i.memoizedState = Fs(t, a, n, r) : (Bo.flags |= e, i.memoizedState = Fs(1 | t, a, n, r));
}
- function Bs(e, t) {
- Rs(8390656, 8, e, t);
+ function zs(e, t) {
+ Ls(8390656, 8, e, t);
}
- function Vs(e, t) {
- zs(2048, 8, e, t);
+ function Bs(e, t) {
+ Rs(2048, 8, e, t);
}
- function Hs(e) {
- Vo.flags |= 4;
- var t = Vo.updateQueue;
- if (t === null) t = cs(), Vo.updateQueue = t, t.events = [e];
+ function Vs(e) {
+ Bo.flags |= 4;
+ var t = Bo.updateQueue;
+ if (t === null) t = ss(), Bo.updateQueue = t, t.events = [e];
else {
var n = t.events;
n === null ? t.events = [e] : n.push(e);
}
}
- function Us(e) {
- var t = ss().memoizedState;
- return Hs({
+ function Hs(e) {
+ var t = os().memoizedState;
+ return Vs({
ref: t,
nextImpl: e
}), function() {
- if (td & 2) throw Error(i(440));
+ if (ed & 2) throw Error(i(440));
return t.impl.apply(void 0, arguments);
};
}
+ function Us(e, t) {
+ return Rs(4, 2, e, t);
+ }
function Ws(e, t) {
- return zs(4, 2, e, t);
+ return Rs(4, 4, e, t);
}
function Gs(e, t) {
- return zs(4, 4, e, t);
- }
- function Ks(e, t) {
if (typeof t == "function") {
e = e();
var n = t(e);
@@ -3701,22 +3701,22 @@ var k = /* @__PURE__ */ o(((e) => {
t.current = null;
};
}
- function qs(e, t, n) {
- n = n == null ? null : n.concat([e]), zs(4, 4, Ks.bind(null, t, e), n);
+ function Ks(e, t, n) {
+ n = n == null ? null : n.concat([e]), Rs(4, 4, Gs.bind(null, t, e), n);
}
- function Js() {}
- function Ys(e, t) {
- var n = ss();
+ function qs() {}
+ function Js(e, t) {
+ var n = os();
t = t === void 0 ? null : t;
var r = n.memoizedState;
- return t !== null && Qo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
+ return t !== null && Zo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
}
- function Xs(e, t) {
- var n = ss();
+ function Ys(e, t) {
+ var n = os();
t = t === void 0 ? null : t;
var r = n.memoizedState;
- if (t !== null && Qo(t, r[1])) return r[0];
- if (r = e(), Ko) {
+ if (t !== null && Zo(t, r[1])) return r[0];
+ if (r = e(), Go) {
$e(!0);
try {
e();
@@ -3726,39 +3726,39 @@ var k = /* @__PURE__ */ o(((e) => {
}
return n.memoizedState = [r, t], r;
}
- function Zs(e, t, n) {
- return n === void 0 || Bo & 1073741824 && !(id & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Rd(), Vo.lanes |= e, fd |= e, n);
+ function Xs(e, t, n) {
+ return n === void 0 || zo & 1073741824 && !(rd & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Ld(), Bo.lanes |= e, dd |= e, n);
}
- function Qs(e, t, n, r) {
- return Rr(n, t) ? n : wo.current === null ? !(Bo & 106) || Bo & 1073741824 && !(id & 261930) ? (Pc = !0, e.memoizedState = n) : (e = Rd(), Vo.lanes |= e, fd |= e, t) : (e = Zs(e, n, r), Rr(e, t) || (Pc = !0), e);
+ function Zs(e, t, n, r) {
+ return Lr(n, t) ? n : Co.current === null ? !(zo & 106) || zo & 1073741824 && !(rd & 261930) ? (Nc = !0, e.memoizedState = n) : (e = Ld(), Bo.lanes |= e, dd |= e, t) : (e = Xs(e, n, r), Lr(e, t) || (Nc = !0), e);
}
- function $s(e, t, n, r, i) {
+ function Qs(e, t, n, r, i) {
var a = he.p;
he.p = a !== 0 && 8 > a ? a : 8;
var o = me.T, s = {};
- s.types = o === null ? null : o.types, me.T = s, dc(e, !1, t, n);
+ s.types = o === null ? null : o.types, me.T = s, uc(e, !1, t, n);
try {
var c = i(), l = me.S;
- l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? uc(e, t, Va(c, r), Ld(e)) : uc(e, t, r, Ld(e));
+ l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? lc(e, t, Ba(c, r), Id(e)) : lc(e, t, r, Id(e));
} catch (n) {
- uc(e, t, {
+ lc(e, t, {
then: function() {},
status: "rejected",
reason: n
- }, Ld());
+ }, Id());
} finally {
he.p = a, o !== null && s.types !== null && (o.types = s.types), me.T = o;
}
}
- function ec() {}
- function tc(e, t, n, r) {
+ function $s() {}
+ function ec(e, t, n, r) {
if (e.tag !== 5) throw Error(i(476));
- var a = nc(e).queue;
- $s(e, a, t, ge, n === null ? ec : function() {
- return rc(e), n(r);
+ var a = tc(e).queue;
+ Qs(e, a, t, ge, n === null ? $s : function() {
+ return nc(e), n(r);
});
}
- function nc(e) {
+ function tc(e) {
var t = e.memoizedState;
if (t !== null) return t;
t = {
@@ -3769,7 +3769,7 @@ var k = /* @__PURE__ */ o(((e) => {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: fs,
+ lastRenderedReducer: ds,
lastRenderedState: ge
},
next: null
@@ -3783,41 +3783,41 @@ var k = /* @__PURE__ */ o(((e) => {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: fs,
+ lastRenderedReducer: ds,
lastRenderedState: n
},
next: null
}, e.memoizedState = t, e = e.alternate, e !== null && (e.memoizedState = t), t;
}
- function rc(e) {
- var t = nc(e);
- t.next === null && (t = e.alternate.memoizedState), uc(e, t.next.queue, {}, Ld());
+ function nc(e) {
+ var t = tc(e);
+ t.next === null && (t = e.alternate.memoizedState), lc(e, t.next.queue, {}, Id());
+ }
+ function rc() {
+ return Sa(hh);
}
function ic() {
- return Ca(gh);
+ return os().memoizedState;
}
function ac() {
- return ss().memoizedState;
- }
- function oc() {
- return ss().memoizedState;
+ return os().memoizedState;
}
- function sc(e) {
+ function oc(e) {
for (var t = e.return; t !== null;) {
switch (t.tag) {
case 24:
case 3:
- var n = Ld();
- e = ho(n);
- var r = go(t, e, n);
- r !== null && (Bd(r, t, n), _o(r, t, n)), t = { cache: Aa() }, e.payload = t;
+ var n = Id();
+ e = mo(n);
+ var r = ho(t, e, n);
+ r !== null && (zd(r, t, n), go(r, t, n)), t = { cache: ka() }, e.payload = t;
return;
}
t = t.return;
}
}
- function cc(e, t, n) {
- var r = Ld();
+ function sc(e, t, n) {
+ var r = Id();
n = {
lane: r,
revertLane: 0,
@@ -3826,12 +3826,12 @@ var k = /* @__PURE__ */ o(((e) => {
hasEagerState: !1,
eagerState: null,
next: null
- }, fc(e) ? pc(t, n) : (n = Ci(e, t, n, r), n !== null && (Bd(n, e, r), mc(n, t, r)));
+ }, dc(e) ? fc(t, n) : (n = Si(e, t, n, r), n !== null && (zd(n, e, r), pc(n, t, r)));
}
- function lc(e, t, n) {
- uc(e, t, n, Ld());
+ function cc(e, t, n) {
+ lc(e, t, n, Id());
}
- function uc(e, t, n, r) {
+ function lc(e, t, n, r) {
var i = {
lane: r,
revertLane: 0,
@@ -3841,92 +3841,92 @@ var k = /* @__PURE__ */ o(((e) => {
eagerState: null,
next: null
};
- if (fc(e)) pc(t, i);
+ if (dc(e)) fc(t, i);
else {
var a = e.alternate;
if (e.lanes === 0 && (a === null || a.lanes === 0) && (a = t.lastRenderedReducer, a !== null)) try {
var o = t.lastRenderedState, s = a(o, n);
- if (i.hasEagerState = !0, i.eagerState = s, Rr(s, o)) return Si(e, t, i, 0), nd === null && xi(), !1;
+ if (i.hasEagerState = !0, i.eagerState = s, Lr(s, o)) return xi(e, t, i, 0), td === null && bi(), !1;
} catch {}
- if (n = Ci(e, t, i, r), n !== null) return Bd(n, e, r), mc(n, t, r), !0;
+ if (n = Si(e, t, i, r), n !== null) return zd(n, e, r), pc(n, t, r), !0;
}
return !1;
}
- function dc(e, t, n, r) {
+ function uc(e, t, n, r) {
if (r = {
lane: 2,
- revertLane: Vf(),
+ revertLane: Bf(),
gesture: null,
action: r,
hasEagerState: !1,
eagerState: null,
next: null
- }, fc(e)) {
+ }, dc(e)) {
if (t) throw Error(i(479));
- } else t = Ci(e, n, r, 2), t !== null && Bd(t, e, 2);
+ } else t = Si(e, n, r, 2), t !== null && zd(t, e, 2);
}
- function fc(e) {
+ function dc(e) {
var t = e.alternate;
- return e === Vo || t !== null && t === Vo;
+ return e === Bo || t !== null && t === Bo;
}
- function pc(e, t) {
- Go = Wo = !0;
+ function fc(e, t) {
+ Wo = Uo = !0;
var n = e.pending;
n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t;
}
- function mc(e, t, n) {
+ function pc(e, t, n) {
if (n & 4194048) {
var r = t.lanes;
r &= e.pendingLanes, n |= r, t.lanes = n, _t(e, n);
}
}
- var hc = {
- readContext: Ca,
- use: us,
- useCallback: Zo,
- useContext: Zo,
- useEffect: Zo,
- useImperativeHandle: Zo,
- useLayoutEffect: Zo,
- useInsertionEffect: Zo,
- useMemo: Zo,
- useReducer: Zo,
- useRef: Zo,
- useState: Zo,
- useDebugValue: Zo,
- useDeferredValue: Zo,
- useTransition: Zo,
- useSyncExternalStore: Zo,
- useId: Zo,
- useHostTransitionStatus: Zo,
- useFormState: Zo,
- useActionState: Zo,
- useOptimistic: Zo,
- useMemoCache: Zo,
- useCacheRefresh: Zo,
- useEffectEvent: Zo
- }, gc = {
- readContext: Ca,
- use: us,
+ var mc = {
+ readContext: Sa,
+ use: ls,
+ useCallback: Xo,
+ useContext: Xo,
+ useEffect: Xo,
+ useImperativeHandle: Xo,
+ useLayoutEffect: Xo,
+ useInsertionEffect: Xo,
+ useMemo: Xo,
+ useReducer: Xo,
+ useRef: Xo,
+ useState: Xo,
+ useDebugValue: Xo,
+ useDeferredValue: Xo,
+ useTransition: Xo,
+ useSyncExternalStore: Xo,
+ useId: Xo,
+ useHostTransitionStatus: Xo,
+ useFormState: Xo,
+ useActionState: Xo,
+ useOptimistic: Xo,
+ useMemoCache: Xo,
+ useCacheRefresh: Xo,
+ useEffectEvent: Xo
+ }, hc = {
+ readContext: Sa,
+ use: ls,
useCallback: function(e, t) {
- return os().memoizedState = [e, t === void 0 ? null : t], e;
+ return as().memoizedState = [e, t === void 0 ? null : t], e;
},
- useContext: Ca,
- useEffect: Bs,
+ useContext: Sa,
+ useEffect: zs,
useImperativeHandle: function(e, t, n) {
- n = n == null ? null : n.concat([e]), Rs(4194308, 4, Ks.bind(null, t, e), n);
+ n = n == null ? null : n.concat([e]), Ls(4194308, 4, Gs.bind(null, t, e), n);
},
useLayoutEffect: function(e, t) {
- return Rs(4194308, 4, e, t);
+ return Ls(4194308, 4, e, t);
},
useInsertionEffect: function(e, t) {
- Rs(4, 2, e, t);
+ Ls(4, 2, e, t);
},
useMemo: function(e, t) {
- var n = os();
+ var n = as();
t = t === void 0 ? null : t;
var r = e();
- if (Ko) {
+ if (Go) {
$e(!0);
try {
e();
@@ -3937,10 +3937,10 @@ var k = /* @__PURE__ */ o(((e) => {
return n.memoizedState = [r, t], r;
},
useReducer: function(e, t, n) {
- var r = os();
+ var r = as();
if (n !== void 0) {
var i = n(t);
- if (Ko) {
+ if (Go) {
$e(!0);
try {
n(t);
@@ -3955,54 +3955,54 @@ var k = /* @__PURE__ */ o(((e) => {
dispatch: null,
lastRenderedReducer: e,
lastRenderedState: i
- }, r.queue = e, e = e.dispatch = cc.bind(null, Vo, e), [r.memoizedState, e];
+ }, r.queue = e, e = e.dispatch = sc.bind(null, Bo, e), [r.memoizedState, e];
},
useRef: function(e) {
- var t = os();
+ var t = as();
return e = { current: e }, t.memoizedState = e;
},
useState: function(e) {
- e = Ss(e);
- var t = e.queue, n = lc.bind(null, Vo, t);
+ e = xs(e);
+ var t = e.queue, n = cc.bind(null, Bo, t);
return t.dispatch = n, [e.memoizedState, n];
},
- useDebugValue: Js,
+ useDebugValue: qs,
useDeferredValue: function(e, t) {
- return Zs(os(), e, t);
+ return Xs(as(), e, t);
},
useTransition: function() {
- var e = Ss(!1);
- return e = $s.bind(null, Vo, e.queue, !0, !1), os().memoizedState = e, [!1, e];
+ var e = xs(!1);
+ return e = Qs.bind(null, Bo, e.queue, !0, !1), as().memoizedState = e, [!1, e];
},
useSyncExternalStore: function(e, t, n) {
- var r = Vo, a = os();
- if (na) {
+ var r = Bo, a = as();
+ if (ta) {
if (n === void 0) throw Error(i(407));
n = n();
} else {
- if (n = t(), nd === null) throw Error(i(349));
- id & 127 || _s(r, t, n);
+ if (n = t(), td === null) throw Error(i(349));
+ rd & 127 || gs(r, t, n);
}
a.memoizedState = n;
var o = {
value: n,
getSnapshot: t
};
- return a.queue = o, Bs(ys.bind(null, r, o, e), [e]), r.flags |= 2048, Is(9, { destroy: void 0 }, vs.bind(null, r, o, n, t), null), n;
+ return a.queue = o, zs(vs.bind(null, r, o, e), [e]), r.flags |= 2048, Fs(9, { destroy: void 0 }, _s.bind(null, r, o, n, t), null), n;
},
useId: function() {
- var e = os(), t = nd.identifierPrefix;
- if (na) {
- var n = Ji, r = qi;
- n = (r & ~(1 << 32 - et(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = qo++, 0 < n && (t += "H" + n.toString(32)), t += "_";
- } else n = Xo++, t = "_" + t + "r_" + n.toString(32) + "_";
+ var e = as(), t = td.identifierPrefix;
+ if (ta) {
+ var n = qi, r = Ki;
+ n = (r & ~(1 << 32 - et(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Ko++, 0 < n && (t += "H" + n.toString(32)), t += "_";
+ } else n = Yo++, t = "_" + t + "r_" + n.toString(32) + "_";
return e.memoizedState = t;
},
- useHostTransitionStatus: ic,
- useFormState: js,
- useActionState: js,
+ useHostTransitionStatus: rc,
+ useFormState: As,
+ useActionState: As,
useOptimistic: function(e) {
- var t = os();
+ var t = as();
t.memoizedState = t.baseState = e;
var n = {
pending: null,
@@ -4011,132 +4011,132 @@ var k = /* @__PURE__ */ o(((e) => {
lastRenderedReducer: null,
lastRenderedState: null
};
- return t.queue = n, t = dc.bind(null, Vo, !0, n), n.dispatch = t, [e, t];
+ return t.queue = n, t = uc.bind(null, Bo, !0, n), n.dispatch = t, [e, t];
},
- useMemoCache: ds,
+ useMemoCache: us,
useCacheRefresh: function() {
- return os().memoizedState = sc.bind(null, Vo);
+ return as().memoizedState = oc.bind(null, Bo);
},
useEffectEvent: function(e) {
- var t = os(), n = { impl: e };
+ var t = as(), n = { impl: e };
return t.memoizedState = n, function() {
- if (td & 2) throw Error(i(440));
+ if (ed & 2) throw Error(i(440));
return n.impl.apply(void 0, arguments);
};
}
- }, _c = {
- readContext: Ca,
- use: us,
- useCallback: Ys,
- useContext: Ca,
- useEffect: Vs,
- useImperativeHandle: qs,
- useInsertionEffect: Ws,
- useLayoutEffect: Gs,
- useMemo: Xs,
- useReducer: ps,
- useRef: Ls,
+ }, gc = {
+ readContext: Sa,
+ use: ls,
+ useCallback: Js,
+ useContext: Sa,
+ useEffect: Bs,
+ useImperativeHandle: Ks,
+ useInsertionEffect: Us,
+ useLayoutEffect: Ws,
+ useMemo: Ys,
+ useReducer: fs,
+ useRef: Is,
useState: function() {
- return ps(fs);
+ return fs(ds);
},
- useDebugValue: Js,
+ useDebugValue: qs,
useDeferredValue: function(e, t) {
- return Qs(ss(), Ho.memoizedState, e, t);
+ return Zs(os(), Vo.memoizedState, e, t);
},
useTransition: function() {
- var e = ps(fs)[0], t = ss().memoizedState;
- return [typeof e == "boolean" ? e : ls(e), t];
+ var e = fs(ds)[0], t = os().memoizedState;
+ return [typeof e == "boolean" ? e : cs(e), t];
},
- useSyncExternalStore: gs,
- useId: ac,
- useHostTransitionStatus: ic,
- useFormState: Ms,
- useActionState: Ms,
+ useSyncExternalStore: hs,
+ useId: ic,
+ useHostTransitionStatus: rc,
+ useFormState: js,
+ useActionState: js,
useOptimistic: function(e, t) {
- return Cs(ss(), Ho, e, t);
+ return Ss(os(), Vo, e, t);
},
- useMemoCache: ds,
- useCacheRefresh: oc,
- useEffectEvent: Us
- }, vc = {
- readContext: Ca,
- use: us,
- useCallback: Ys,
- useContext: Ca,
- useEffect: Vs,
- useImperativeHandle: qs,
- useInsertionEffect: Ws,
- useLayoutEffect: Gs,
- useMemo: Xs,
- useReducer: hs,
- useRef: Ls,
+ useMemoCache: us,
+ useCacheRefresh: ac,
+ useEffectEvent: Hs
+ }, _c = {
+ readContext: Sa,
+ use: ls,
+ useCallback: Js,
+ useContext: Sa,
+ useEffect: Bs,
+ useImperativeHandle: Ks,
+ useInsertionEffect: Us,
+ useLayoutEffect: Ws,
+ useMemo: Ys,
+ useReducer: ms,
+ useRef: Is,
useState: function() {
- return hs(fs);
+ return ms(ds);
},
- useDebugValue: Js,
+ useDebugValue: qs,
useDeferredValue: function(e, t) {
- var n = ss();
- return Ho === null ? Zs(n, e, t) : Qs(n, Ho.memoizedState, e, t);
+ var n = os();
+ return Vo === null ? Xs(n, e, t) : Zs(n, Vo.memoizedState, e, t);
},
useTransition: function() {
- var e = hs(fs)[0], t = ss().memoizedState;
- return [typeof e == "boolean" ? e : ls(e), t];
+ var e = ms(ds)[0], t = os().memoizedState;
+ return [typeof e == "boolean" ? e : cs(e), t];
},
- useSyncExternalStore: gs,
- useId: ac,
- useHostTransitionStatus: ic,
- useFormState: Fs,
- useActionState: Fs,
+ useSyncExternalStore: hs,
+ useId: ic,
+ useHostTransitionStatus: rc,
+ useFormState: Ps,
+ useActionState: Ps,
useOptimistic: function(e, t) {
- var n = ss();
- return Ho === null ? (n.baseState = e, [e, n.queue.dispatch]) : Cs(n, Ho, e, t);
+ var n = os();
+ return Vo === null ? (n.baseState = e, [e, n.queue.dispatch]) : Ss(n, Vo, e, t);
},
- useMemoCache: ds,
- useCacheRefresh: oc,
- useEffectEvent: Us
+ useMemoCache: us,
+ useCacheRefresh: ac,
+ useEffectEvent: Hs
};
- function yc(e, t, n, r) {
+ function vc(e, t, n, r) {
t = e.memoizedState, n = n(r, t), n = n == null ? t : w({}, t, n), e.memoizedState = n, e.lanes === 0 && (e.updateQueue.baseState = n);
}
- var bc = {
+ var yc = {
enqueueSetState: function(e, t, n) {
e = e._reactInternals;
- var r = Ld(), i = ho(r);
- i.payload = t, n != null && (i.callback = n), t = go(e, i, r), t !== null && (Bd(t, e, r), _o(t, e, r));
+ var r = Id(), i = mo(r);
+ i.payload = t, n != null && (i.callback = n), t = ho(e, i, r), t !== null && (zd(t, e, r), go(t, e, r));
},
enqueueReplaceState: function(e, t, n) {
e = e._reactInternals;
- var r = Ld(), i = ho(r);
- i.tag = 1, i.payload = t, n != null && (i.callback = n), t = go(e, i, r), t !== null && (Bd(t, e, r), _o(t, e, r));
+ var r = Id(), i = mo(r);
+ i.tag = 1, i.payload = t, n != null && (i.callback = n), t = ho(e, i, r), t !== null && (zd(t, e, r), go(t, e, r));
},
enqueueForceUpdate: function(e, t) {
e = e._reactInternals;
- var n = Ld(), r = ho(n);
- r.tag = 2, t != null && (r.callback = t), t = go(e, r, n), t !== null && (Bd(t, e, n), _o(t, e, n));
+ var n = Id(), r = mo(n);
+ r.tag = 2, t != null && (r.callback = t), t = ho(e, r, n), t !== null && (zd(t, e, n), go(t, e, n));
}
};
- function xc(e, t, n, r, i, a, o) {
- return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !zr(n, r) || !zr(i, a) : !0;
+ function bc(e, t, n, r, i, a, o) {
+ return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !Rr(n, r) || !Rr(i, a) : !0;
}
- function Sc(e, t, n, r) {
- e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && bc.enqueueReplaceState(t, t.state, null);
+ function xc(e, t, n, r) {
+ e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && yc.enqueueReplaceState(t, t.state, null);
}
- function Cc(e, t) {
+ function Sc(e, t) {
var n = t;
if ("ref" in t) for (var r in n = {}, t) r !== "ref" && (n[r] = t[r]);
if (e = e.defaultProps) for (var i in n === t && (n = w({}, n)), e) n[i] === void 0 && (n[i] = e[i]);
return n;
}
- function wc(e) {
- _i(e);
+ function Cc(e) {
+ gi(e);
}
- function Tc(e) {
+ function wc(e) {
console.error(e);
}
- function Ec(e) {
- _i(e);
+ function Tc(e) {
+ gi(e);
}
- function Dc(e, t) {
+ function Ec(e, t) {
try {
var n = e.onUncaughtError;
n(t.value, { componentStack: t.stack });
@@ -4146,7 +4146,7 @@ var k = /* @__PURE__ */ o(((e) => {
});
}
}
- function Oc(e, t, n) {
+ function Dc(e, t, n) {
try {
var r = e.onCaughtError;
r(n.value, {
@@ -4159,57 +4159,57 @@ var k = /* @__PURE__ */ o(((e) => {
});
}
}
- function kc(e, t, n) {
- return n = ho(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
- Dc(e, t);
+ function Oc(e, t, n) {
+ return n = mo(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
+ Ec(e, t);
}, n;
}
- function Ac(e) {
- return e = ho(e), e.tag = 3, e;
+ function kc(e) {
+ return e = mo(e), e.tag = 3, e;
}
- function jc(e, t, n, r) {
+ function Ac(e, t, n, r) {
var i = n.type.getDerivedStateFromError;
if (typeof i == "function") {
var a = r.value;
e.payload = function() {
return i(a);
}, e.callback = function() {
- Oc(t, n, r);
+ Dc(t, n, r);
};
}
var o = n.stateNode;
o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {
- Oc(t, n, r), typeof i != "function" && (wd === null ? wd = /* @__PURE__ */ new Set([this]) : wd.add(this));
+ Dc(t, n, r), typeof i != "function" && (Cd === null ? Cd = /* @__PURE__ */ new Set([this]) : Cd.add(this));
var e = r.stack;
this.componentDidCatch(r.value, { componentStack: e === null ? "" : e });
});
}
- function Mc(e, t, n, r, a) {
+ function jc(e, t, n, r, a) {
if (n.flags |= 32768, typeof r == "object" && r && typeof r.then == "function") {
- if (t = n.alternate, t !== null && ba(t, n, a, !0), n = ko.current, n !== null) {
+ if (t = n.alternate, t !== null && ya(t, n, a, !0), n = Oo.current, n !== null) {
switch (n.tag) {
case 31:
case 13:
- case 19: return Ao === null ? Qd() : n.alternate === null && dd === 0 && (dd = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Xa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), xf(e, r, a)), !1;
- case 22: return n.flags |= 65536, r === Xa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
+ case 19: return ko === null ? Zd() : n.alternate === null && ud === 0 && (ud = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Ya ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), bf(e, r, a)), !1;
+ case 22: return n.flags |= 65536, r === Ya ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
transitions: null,
markerInstances: null,
retryQueue: /* @__PURE__ */ new Set([r])
- }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), xf(e, r, a)), !1;
+ }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), bf(e, r, a)), !1;
}
throw Error(i(435, n.tag));
}
- return xf(e, r, a), Qd(), !1;
+ return bf(e, r, a), Zd(), !1;
}
- if (na) return t = ko.current, t === null ? (r !== aa && (t = Error(i(423), { cause: r }), fa(zi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = zi(r, n), a = kc(e.stateNode, r, a), vo(e, a), dd !== 4 && (dd = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== aa && (e = Error(i(422), { cause: r }), fa(zi(e, n)))), !1;
+ if (ta) return t = Oo.current, t === null ? (r !== ia && (t = Error(i(423), { cause: r }), da(Ri(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = Ri(r, n), a = Oc(e.stateNode, r, a), _o(e, a), ud !== 4 && (ud = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== ia && (e = Error(i(422), { cause: r }), da(Ri(e, n)))), !1;
var o = Error(i(520), { cause: r });
- if (o = zi(o, n), _d === null ? _d = [o] : _d.push(o), dd !== 4 && (dd = 2), t === null) return !0;
- r = zi(r, n), n = t;
+ if (o = Ri(o, n), gd === null ? gd = [o] : gd.push(o), ud !== 4 && (ud = 2), t === null) return !0;
+ r = Ri(r, n), n = t;
do {
switch (n.tag) {
- case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = kc(n.stateNode, r, e), vo(n, e), !1;
+ case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Oc(n.stateNode, r, e), _o(n, e), !1;
case 1:
- if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (wd === null || !wd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Ac(a), jc(a, e, n, r), vo(n, a), !1;
+ if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (Cd === null || !Cd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = kc(a), Ac(a, e, n, r), _o(n, a), !1;
break;
case 22: if (n.memoizedState !== null) return n.flags |= 65536, !1;
}
@@ -4217,41 +4217,41 @@ var k = /* @__PURE__ */ o(((e) => {
} while (n !== null);
return !1;
}
- var Nc = Error(i(461)), Pc = !1;
- function Fc(e, t, n, r) {
- t.child = e === null ? uo(t, null, n, r) : lo(t, e.child, n, r);
+ var Mc = Error(i(461)), Nc = !1;
+ function Pc(e, t, n, r) {
+ t.child = e === null ? lo(t, null, n, r) : co(t, e.child, n, r);
}
- function Ic(e, t, n, r, i) {
+ function Fc(e, t, n, r, i) {
n = n.render;
var a = t.ref;
if ("ref" in r) {
var o = {};
for (var s in r) s !== "ref" && (o[s] = r[s]);
} else o = r;
- return Sa(t), r = $o(e, t, n, o, a, i), s = rs(), e !== null && !Pc ? (is(e, t, i), ul(e, t, i)) : (na && s && Zi(t), t.flags |= 1, Fc(e, t, r, i), t.child);
+ return xa(t), r = Qo(e, t, n, o, a, i), s = ns(), e !== null && !Nc ? (rs(e, t, i), ll(e, t, i)) : (ta && s && Xi(t), t.flags |= 1, Pc(e, t, r, i), t.child);
}
- function Lc(e, t, n, r, i) {
+ function Ic(e, t, n, r, i) {
if (e === null) {
var a = n.type;
- return typeof a == "function" && !Ai(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Rc(e, t, a, r, i)) : (e = Ni(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
+ return typeof a == "function" && !ki(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Lc(e, t, a, r, i)) : (e = Mi(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
}
- if (a = e.child, !dl(e, i)) {
+ if (a = e.child, !ul(e, i)) {
var o = a.memoizedProps;
- if (n = n.compare, n = n === null ? zr : n, n(o, r) && e.ref === t.ref) return ul(e, t, i);
+ if (n = n.compare, n = n === null ? Rr : n, n(o, r) && e.ref === t.ref) return ll(e, t, i);
}
- return t.flags |= 1, e = ji(a, r), e.ref = t.ref, e.return = t, t.child = e;
+ return t.flags |= 1, e = Ai(a, r), e.ref = t.ref, e.return = t, t.child = e;
}
- function Rc(e, t, n, r, i) {
+ function Lc(e, t, n, r, i) {
if (e !== null) {
var a = e.memoizedProps;
- if (zr(a, r) && e.ref === t.ref) {
- if (Pc = !1, t.pendingProps = r = a, dl(e, i)) e.flags & 131072 && (Pc = !0);
- else return t.lanes = e.lanes, ul(e, t, i);
+ if (Rr(a, r) && e.ref === t.ref) {
+ if (Nc = !1, t.pendingProps = r = a, ul(e, i)) e.flags & 131072 && (Nc = !0);
+ else return t.lanes = e.lanes, ll(e, t, i);
}
}
- return Kc(e, t, n, r, i);
+ return Gc(e, t, n, r, i);
}
- function zc(e, t, n, r) {
+ function Rc(e, t, n, r) {
var i = r.children, a = e === null ? null : e.memoizedState;
if (e === null && t.stateNode === null && (t.stateNode = {
_visibility: 1,
@@ -4264,17 +4264,17 @@ var k = /* @__PURE__ */ o(((e) => {
for (r = t.child = e.child, i = 0; r !== null;) i = i | r.lanes | r.childLanes, r = r.sibling;
r = i & ~a;
} else r = 0, t.child = null;
- return Vc(e, t, a, n, r);
+ return Bc(e, t, a, n, r);
}
if (n & 536870912) t.memoizedState = {
baseLanes: 0,
cachePool: null
- }, e !== null && Ga(t, a === null ? null : a.cachePool), a === null ? Do() : Eo(t, a), No(t);
- else return r = t.lanes = 536870912, Vc(e, t, a === null ? n : a.baseLanes | n, n, r);
- } else a === null ? (e !== null && Ga(t, null), Do(), Po()) : (Ga(t, a.cachePool), Eo(t, a), Po(), t.memoizedState = null);
- return Fc(e, t, i, n), t.child;
+ }, e !== null && Wa(t, a === null ? null : a.cachePool), a === null ? Eo() : To(t, a), Mo(t);
+ else return r = t.lanes = 536870912, Bc(e, t, a === null ? n : a.baseLanes | n, n, r);
+ } else a === null ? (e !== null && Wa(t, null), Eo(), No()) : (Wa(t, a.cachePool), To(t, a), No(), t.memoizedState = null);
+ return Pc(e, t, i, n), t.child;
}
- function Bc(e, t) {
+ function zc(e, t) {
return e !== null && e.tag === 22 || t.stateNode !== null || (t.stateNode = {
_visibility: 1,
_pendingMarkers: null,
@@ -4282,68 +4282,68 @@ var k = /* @__PURE__ */ o(((e) => {
_transitions: null
}), t.sibling;
}
- function Vc(e, t, n, r, i) {
- var a = Wa();
+ function Bc(e, t, n, r, i) {
+ var a = Ua();
return a = a === null ? null : {
- parent: ka._currentValue,
+ parent: Oa._currentValue,
pool: a
}, t.memoizedState = {
baseLanes: n,
cachePool: a
- }, e !== null && Ga(t, null), Do(), No(t), e !== null && ba(e, t, r, !0), t.childLanes = i, null;
+ }, e !== null && Wa(t, null), Eo(), Mo(t), e !== null && ya(e, t, r, !0), t.childLanes = i, null;
}
- function Hc(e, t) {
- return t = tl({
+ function Vc(e, t) {
+ return t = el({
mode: t.mode,
children: t.children
}, e.mode), t.ref = e.ref, e.child = t, t.return = e, t;
}
- function Uc(e, t, n) {
- return lo(t, e.child, null, n), e = Hc(t, t.pendingProps), e.flags |= 2, Fo(t), t.memoizedState = null, e;
+ function Hc(e, t, n) {
+ return co(t, e.child, null, n), e = Vc(t, t.pendingProps), e.flags |= 2, Po(t), t.memoizedState = null, e;
}
- function Wc(e, t, n) {
+ function Uc(e, t, n) {
var r = t.pendingProps, a = !!(t.flags & 128);
if (t.flags &= -129, e === null) {
- if (na) {
- if (r.mode === "hidden") return e = Hc(t, r), t.lanes = 536870912, e.memoizedState = {
+ if (ta) {
+ if (r.mode === "hidden") return e = Vc(t, r), t.lanes = 536870912, e.memoizedState = {
baseLanes: 0,
cachePool: null
- }, Bc(null, e);
- if (Mo(t), (e = ta) ? (e = mm(e, ia), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
+ }, zc(null, e);
+ if (jo(t), (e = ea) ? (e = pm(e, ra), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
- treeContext: Ki === null ? null : {
- id: qi,
- overflow: Ji
+ treeContext: Gi === null ? null : {
+ id: Ki,
+ overflow: qi
},
retryLane: 536870912,
hydrationErrors: null
- }, n = Ii(e), n.return = t, t.child = n, ea = t, ta = null)) : e = null, e === null) throw oa(t);
+ }, n = Fi(e), n.return = t, t.child = n, $i = t, ea = null)) : e = null, e === null) throw aa(t);
return t.lanes = 536870912, null;
}
- return Hc(t, r);
+ return Vc(t, r);
}
var o = e.memoizedState;
if (o !== null) {
var s = o.dehydrated;
- if (Mo(t), a) {
- if (t.flags & 256) t.flags &= -257, t = Uc(e, t, n);
+ if (jo(t), a) {
+ if (t.flags & 256) t.flags &= -257, t = Hc(e, t, n);
else if (t.memoizedState !== null) t.child = e.child, t.flags |= 128, t = null;
else throw Error(i(558));
- } else if (Pc || ba(e, t, n, !1), a = (n & e.childLanes) !== 0, Pc || a) {
- if (wo.current === null) {
- if (r = nd, r !== null && (s = vt(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, wi(e, s), Bd(r, e, s), Nc;
- Qd();
+ } else if (Nc || ya(e, t, n, !1), a = (n & e.childLanes) !== 0, Nc || a) {
+ if (Co.current === null) {
+ if (r = td, r !== null && (s = vt(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Ci(e, s), zd(r, e, s), Mc;
+ Zd();
}
- t = Uc(e, t, n);
- } else e = o.treeContext, ta = vm(s.nextSibling), ea = t, na = !0, ra = null, ia = !1, e !== null && $i(t, e), t = Hc(t, r), t.flags |= 134221824;
+ t = Hc(e, t, n);
+ } else e = o.treeContext, ea = _m(s.nextSibling), $i = t, ta = !0, na = null, ra = !1, e !== null && Qi(t, e), t = Vc(t, r), t.flags |= 134221824;
return t;
}
- return e = ji(e.child, {
+ return e = Ai(e.child, {
mode: r.mode,
children: r.children
}), e.ref = t.ref, t.child = e, e.return = t, e;
}
- function Gc(e, t) {
+ function Wc(e, t) {
var n = t.ref;
if (n === null) e !== null && e.ref !== null && (t.flags |= 4194816);
else {
@@ -4351,135 +4351,135 @@ var k = /* @__PURE__ */ o(((e) => {
(e === null || e.ref !== n) && (t.flags |= 4194816);
}
}
- function Kc(e, t, n, r, i) {
- return Sa(t), n = $o(e, t, n, r, void 0, i), r = rs(), e !== null && !Pc ? (is(e, t, i), ul(e, t, i)) : (na && r && Zi(t), t.flags |= 1, Fc(e, t, n, i), t.child);
+ function Gc(e, t, n, r, i) {
+ return xa(t), n = Qo(e, t, n, r, void 0, i), r = ns(), e !== null && !Nc ? (rs(e, t, i), ll(e, t, i)) : (ta && r && Xi(t), t.flags |= 1, Pc(e, t, n, i), t.child);
}
- function qc(e, t, n, r, i, a) {
- return Sa(t), t.updateQueue = null, n = ts(t, r, n, i), es(e), r = rs(), e !== null && !Pc ? (is(e, t, a), ul(e, t, a)) : (na && r && Zi(t), t.flags |= 1, Fc(e, t, n, a), t.child);
+ function Kc(e, t, n, r, i, a) {
+ return xa(t), t.updateQueue = null, n = es(t, r, n, i), $o(e), r = ns(), e !== null && !Nc ? (rs(e, t, a), ll(e, t, a)) : (ta && r && Xi(t), t.flags |= 1, Pc(e, t, n, a), t.child);
}
- function Jc(e, t, n, r, i) {
- if (Sa(t), t.stateNode === null) {
- var a = Di, o = n.contextType;
- typeof o == "object" && o && (a = Ca(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = bc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, po(t), o = n.contextType, a.context = typeof o == "object" && o ? Ca(o) : Di, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (yc(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && bc.enqueueReplaceState(a, a.state, null), xo(t, r, a, i), bo(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;
+ function qc(e, t, n, r, i) {
+ if (xa(t), t.stateNode === null) {
+ var a = Ei, o = n.contextType;
+ typeof o == "object" && o && (a = Sa(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = yc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, fo(t), o = n.contextType, a.context = typeof o == "object" && o ? Sa(o) : Ei, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (vc(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && yc.enqueueReplaceState(a, a.state, null), bo(t, r, a, i), yo(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;
} else if (e === null) {
a = t.stateNode;
- var s = t.memoizedProps, c = Cc(n, s);
+ var s = t.memoizedProps, c = Sc(n, s);
a.props = c;
var l = a.context, u = n.contextType;
- o = Di, typeof u == "object" && u && (o = Ca(u));
+ o = Ei, typeof u == "object" && u && (o = Sa(u));
var d = n.getDerivedStateFromProps;
- u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && Sc(t, a, r, o), fo = !1;
+ u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && xc(t, a, r, o), uo = !1;
var f = t.memoizedState;
- a.state = f, xo(t, r, a, i), bo(), l = t.memoizedState, s || f !== l || fo ? (typeof d == "function" && (yc(t, n, d, r), l = t.memoizedState), (c = fo || xc(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);
+ a.state = f, bo(t, r, a, i), yo(), l = t.memoizedState, s || f !== l || uo ? (typeof d == "function" && (vc(t, n, d, r), l = t.memoizedState), (c = uo || bc(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);
} else {
- a = t.stateNode, mo(e, t), o = t.memoizedProps, u = Cc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Di, typeof l == "object" && l && (c = Ca(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && Sc(t, a, r, c), fo = !1, f = t.memoizedState, a.state = f, xo(t, r, a, i), bo();
+ a = t.stateNode, po(e, t), o = t.memoizedProps, u = Sc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Ei, typeof l == "object" && l && (c = Sa(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && xc(t, a, r, c), uo = !1, f = t.memoizedState, a.state = f, bo(t, r, a, i), yo();
var p = t.memoizedState;
- o !== d || f !== p || fo || e !== null && e.dependencies !== null && xa(e.dependencies) ? (typeof s == "function" && (yc(t, n, s, r), p = t.memoizedState), (u = fo || xc(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && xa(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);
+ o !== d || f !== p || uo || e !== null && e.dependencies !== null && ba(e.dependencies) ? (typeof s == "function" && (vc(t, n, s, r), p = t.memoizedState), (u = uo || bc(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && ba(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);
}
- return a = r, Gc(e, t), r = !!(t.flags & 128), a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = lo(t, e.child, null, i), t.child = lo(t, null, n, i)) : Fc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = ul(e, t, i), e;
+ return a = r, Wc(e, t), r = !!(t.flags & 128), a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = co(t, e.child, null, i), t.child = co(t, null, n, i)) : Pc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = ll(e, t, i), e;
}
- function Yc(e, t, n, r) {
- return ua(), t.flags |= 256, Fc(e, t, n, r), t.child;
+ function Jc(e, t, n, r) {
+ return la(), t.flags |= 256, Pc(e, t, n, r), t.child;
}
- var Xc = {
+ var Yc = {
dehydrated: null,
treeContext: null,
retryLane: 0,
hydrationErrors: null
};
- function Zc(e) {
+ function Xc(e) {
return {
baseLanes: e,
- cachePool: Ka()
+ cachePool: Ga()
};
}
- function Qc(e, t, n) {
- return e = e === null ? 0 : e.childLanes & ~n, t && (e |= hd), e;
+ function Zc(e, t, n) {
+ return e = e === null ? 0 : e.childLanes & ~n, t && (e |= md), e;
}
- function $c(e, t, n) {
+ function Qc(e, t, n) {
var r = t.pendingProps, i = !1, a = !!(t.flags & 128), o;
- if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Io.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
- if (na) {
- if (i ? jo(t) : Po(), (e = ta) ? (e = mm(e, ia), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
+ if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Fo.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
+ if (ta) {
+ if (i ? Ao(t) : No(), (e = ea) ? (e = pm(e, ra), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
- treeContext: Ki === null ? null : {
- id: qi,
- overflow: Ji
+ treeContext: Gi === null ? null : {
+ id: Ki,
+ overflow: qi
},
retryLane: 536870912,
hydrationErrors: null
- }, n = Ii(e), n.return = t, t.child = n, ea = t, ta = null)) : e = null, e === null) throw oa(t);
- return t.lanes = gm(e) ? 32 : 536870912, null;
+ }, n = Fi(e), n.return = t, t.child = n, $i = t, ea = null)) : e = null, e === null) throw aa(t);
+ return t.lanes = hm(e) ? 32 : 536870912, null;
}
- return a = r.children, r = r.fallback, i ? (Po(), i = t.mode, a = tl({
+ return a = r.children, r = r.fallback, i ? (No(), i = t.mode, a = el({
mode: "hidden",
children: a
- }, i), r = Pi(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Zc(n), r.childLanes = Qc(e, o, n), t.memoizedState = Xc, Bc(null, r)) : (jo(t), el(t, a));
+ }, i), r = Ni(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Xc(n), r.childLanes = Zc(e, o, n), t.memoizedState = Yc, zc(null, r)) : (Ao(t), $c(t, a));
}
var s = e.memoizedState;
if (s !== null) {
var c = s.dehydrated;
- if (c !== null) return rl(e, t, a, o, r, c, s, n);
+ if (c !== null) return nl(e, t, a, o, r, c, s, n);
}
- return i ? (Po(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = ji(s, {
+ return i ? (No(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = Ai(s, {
mode: "hidden",
children: r.children
- }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Pi(i, a, n, null), i.flags |= 2) : i = ji(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Bc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Zc(n) : (a = i.cachePool, a === null ? a = Ka() : (s = ka._currentValue, a = a.parent === s ? a : {
+ }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Ni(i, a, n, null), i.flags |= 2) : i = Ai(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, zc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Xc(n) : (a = i.cachePool, a === null ? a = Ga() : (s = Oa._currentValue, a = a.parent === s ? a : {
parent: s,
pool: s
}), i = {
baseLanes: i.baseLanes | n,
cachePool: a
- }), r.memoizedState = i, r.childLanes = Qc(e, o, n), t.memoizedState = Xc, Bc(e.child, r)) : (jo(t), n = e.child, e = n.sibling, n = ji(n, {
+ }), r.memoizedState = i, r.childLanes = Zc(e, o, n), t.memoizedState = Yc, zc(e.child, r)) : (Ao(t), n = e.child, e = n.sibling, n = Ai(n, {
mode: "visible",
children: r.children
}), n.return = t, n.sibling = null, e !== null && (o = t.deletions, o === null ? (t.deletions = [e], t.flags |= 16) : o.push(e)), t.child = n, t.memoizedState = null, n);
}
- function el(e, t) {
- return t = tl({
+ function $c(e, t) {
+ return t = el({
mode: "visible",
children: t
}, e.mode), t.return = e, e.child = t;
}
- function tl(e, t) {
- return e = ki(22, e, null, t), e.lanes = 0, e;
+ function el(e, t) {
+ return e = Oi(22, e, null, t), e.lanes = 0, e;
}
- function nl(e, t, n) {
- return lo(t, e.child, null, n), e = el(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
+ function tl(e, t, n) {
+ return co(t, e.child, null, n), e = $c(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
}
- function rl(e, t, n, r, a, o, s, c) {
- if (n) return t.flags & 256 ? (jo(t), t.flags &= -257, nl(e, t, c)) : t.memoizedState === null ? (Po(), o = a.fallback, s = t.mode, a = tl({
+ function nl(e, t, n, r, a, o, s, c) {
+ if (n) return t.flags & 256 ? (Ao(t), t.flags &= -257, tl(e, t, c)) : t.memoizedState === null ? (No(), o = a.fallback, s = t.mode, a = el({
mode: "visible",
children: a.children
- }, s), o = Pi(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, lo(t, e.child, null, c), a = t.child, a.memoizedState = Zc(c), a.childLanes = Qc(e, r, c), t.memoizedState = Xc, Bc(null, a)) : (Po(), t.child = e.child, t.flags |= 128, null);
- if (jo(t), gm(o)) {
+ }, s), o = Ni(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, co(t, e.child, null, c), a = t.child, a.memoizedState = Xc(c), a.childLanes = Zc(e, r, c), t.memoizedState = Yc, zc(null, a)) : (No(), t.child = e.child, t.flags |= 128, null);
+ if (Ao(t), hm(o)) {
if (r = o.nextSibling && o.nextSibling.dataset, r) var l = r.dgst;
- return r = l, r !== "" && (a = Error(i(419)), a.stack = "", a.digest = r, fa({
+ return r = l, r !== "" && (a = Error(i(419)), a.stack = "", a.digest = r, da({
value: a,
source: null,
stack: null
- })), nl(e, t, c);
+ })), tl(e, t, c);
}
- if (Pc || ba(e, t, c, !1), r = (c & e.childLanes) !== 0, Pc || r) {
- if (wo.current !== null) return nl(e, t, c);
- if (r = nd, r !== null && (a = vt(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, wi(e, a), Bd(r, e, a), Nc;
- return hm(o) || Qd(), nl(e, t, c);
+ if (Nc || ya(e, t, c, !1), r = (c & e.childLanes) !== 0, Nc || r) {
+ if (Co.current !== null) return tl(e, t, c);
+ if (r = td, r !== null && (a = vt(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Ci(e, a), zd(r, e, a), Mc;
+ return mm(o) || Zd(), tl(e, t, c);
}
- return hm(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, ta = vm(o.nextSibling), ea = t, na = !0, ra = null, ia = !1, e !== null && $i(t, e), t = el(t, a.children), t.flags |= 134221824, t);
+ return mm(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, ea = _m(o.nextSibling), $i = t, ta = !0, na = null, ra = !1, e !== null && Qi(t, e), t = $c(t, a.children), t.flags |= 134221824, t);
}
- function il(e, t, n) {
+ function rl(e, t, n) {
e.lanes |= t;
var r = e.alternate;
- r !== null && (r.lanes |= t), va(e.return, t, n);
+ r !== null && (r.lanes |= t), _a(e.return, t, n);
}
- function al(e) {
+ function il(e) {
for (var t = null; e !== null;) {
var n = e.alternate;
- n !== null && zo(n) === null && (t = e), e = e.sibling;
+ n !== null && Ro(n) === null && (t = e), e = e.sibling;
}
return t;
}
- function ol(e, t, n, r, i, a) {
+ function al(e, t, n, r, i, a) {
var o = e.memoizedState;
o === null ? e.memoizedState = {
isBackwards: t,
@@ -4491,22 +4491,22 @@ var k = /* @__PURE__ */ o(((e) => {
treeForkCount: a
} : (o.isBackwards = t, o.rendering = null, o.renderingStartTime = 0, o.last = r, o.tail = n, o.tailMode = i, o.treeForkCount = a);
}
- function sl(e) {
+ function ol(e) {
var t = e.child;
for (e.child = null; t !== null;) {
var n = t.sibling;
t.sibling = e.child, e.child = t, t = n;
}
}
- function cl(e, t, n) {
+ function sl(e, t, n) {
var r = t.pendingProps, i = r.revealOrder, a = r.tail;
r = r.children;
- var o = Io.current;
- if (t.flags & 128) return Lo(t, o), null;
+ var o = Fo.current;
+ if (t.flags & 128) return Io(t, o), null;
var s = !!(o & 2);
- if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, Lo(t, o), i === "backwards" && e !== null ? (sl(e), Fc(e, t, r, n), sl(e)) : Fc(e, t, r, n), r = na ? Ui : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
- if (e.tag === 13) e.memoizedState !== null && il(e, n, t);
- else if (e.tag === 19) il(e, n, t);
+ if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, Io(t, o), i === "backwards" && e !== null ? (ol(e), Pc(e, t, r, n), ol(e)) : Pc(e, t, r, n), r = ta ? Hi : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
+ if (e.tag === 13) e.memoizedState !== null && rl(e, n, t);
+ else if (e.tag === 19) rl(e, n, t);
else if (e.child !== null) {
e.child.return = e, e = e.child;
continue;
@@ -4520,52 +4520,52 @@ var k = /* @__PURE__ */ o(((e) => {
}
switch (i) {
case "backwards":
- n = al(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, sl(t)), ol(t, !0, i, null, a, r);
+ n = il(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, ol(t)), al(t, !0, i, null, a, r);
break;
case "unstable_legacy-backwards":
for (n = null, i = t.child, t.child = null; i !== null;) {
- if (e = i.alternate, e !== null && zo(e) === null) {
+ if (e = i.alternate, e !== null && Ro(e) === null) {
t.child = i;
break;
}
e = i.sibling, i.sibling = n, n = i, i = e;
}
- ol(t, !0, n, null, a, r);
+ al(t, !0, n, null, a, r);
break;
case "together":
- ol(t, !1, null, null, void 0, r);
+ al(t, !1, null, null, void 0, r);
break;
case "independent":
t.memoizedState = null;
break;
- default: n = al(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), ol(t, !1, i, n, a, r);
+ default: n = il(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), al(t, !1, i, n, a, r);
}
return t.child;
}
- function ll(e, t, n) {
+ function cl(e, t, n) {
var r = t.pendingProps;
- return ga(t, t.type, r.value), Fc(e, t, r.children, n), t.child;
+ return ha(t, t.type, r.value), Pc(e, t, r.children, n), t.child;
}
- function ul(e, t, n) {
- if (e !== null && (t.dependencies = e.dependencies), fd |= t.lanes, (n & t.childLanes) === 0) {
+ function ll(e, t, n) {
+ if (e !== null && (t.dependencies = e.dependencies), dd |= t.lanes, (n & t.childLanes) === 0) {
if (e !== null) {
- if (ba(e, t, n, !1), (n & t.childLanes) === 0) return null;
+ if (ya(e, t, n, !1), (n & t.childLanes) === 0) return null;
} else return null;
}
if (e !== null && t.child !== e.child) throw Error(i(153));
if (t.child !== null) {
- for (e = t.child, n = ji(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = ji(e, e.pendingProps), n.return = t;
+ for (e = t.child, n = Ai(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = Ai(e, e.pendingProps), n.return = t;
n.sibling = null;
}
return t.child;
}
- function dl(e, t) {
- return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && xa(e)));
+ function ul(e, t) {
+ return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && ba(e)));
}
- function fl(e, t, n) {
+ function dl(e, t, n) {
switch (t.tag) {
case 3:
- Ee(t, t.stateNode.containerInfo), ga(t, ka, e.memoizedState.cache), ua();
+ Ee(t, t.stateNode.containerInfo), ha(t, Oa, e.memoizedState.cache), la();
break;
case 27:
case 5:
@@ -4575,60 +4575,60 @@ var k = /* @__PURE__ */ o(((e) => {
Ee(t, t.stateNode.containerInfo);
break;
case 10:
- ga(t, t.type, t.memoizedProps.value);
+ ha(t, t.type, t.memoizedProps.value);
break;
case 31:
- if (t.memoizedState !== null) return t.flags |= 128, Mo(t), null;
+ if (t.memoizedState !== null) return t.flags |= 128, jo(t), null;
break;
case 13:
var r = t.memoizedState;
if (r !== null) {
- if (r.dehydrated !== null) return jo(t), t.flags |= 128, null;
- r = ba(e, t, n, !1);
+ if (r.dehydrated !== null) return Ao(t), t.flags |= 128, null;
+ r = ya(e, t, n, !1);
var i = t.child.childLanes;
- return r || (n & i) !== 0 ? $c(e, t, n) : (jo(t), e = ul(e, t, n), e === null ? null : e.sibling);
+ return r || (n & i) !== 0 ? Qc(e, t, n) : (Ao(t), e = ll(e, t, n), e === null ? null : e.sibling);
}
- jo(t);
+ Ao(t);
break;
case 19:
- if (t.flags & 128) return cl(e, t, n);
- if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (ba(e, t, n, !1), (n & t.childLanes) !== 0), i) {
- if (r) return cl(e, t, n);
+ if (t.flags & 128) return sl(e, t, n);
+ if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (ya(e, t, n, !1), (n & t.childLanes) !== 0), i) {
+ if (r) return sl(e, t, n);
t.flags |= 128;
}
- if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), Lo(t, Io.current), r) break;
+ if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), Io(t, Fo.current), r) break;
return null;
- case 22: return t.lanes = 0, zc(e, t, n, t.pendingProps);
- case 24: ga(t, ka, e.memoizedState.cache);
+ case 22: return t.lanes = 0, Rc(e, t, n, t.pendingProps);
+ case 24: ha(t, Oa, e.memoizedState.cache);
}
- return ul(e, t, n);
+ return ll(e, t, n);
}
- function pl(e, t, n) {
+ function fl(e, t, n) {
if (e !== null) {
- if (e.memoizedProps !== t.pendingProps) Pc = !0;
+ if (e.memoizedProps !== t.pendingProps) Nc = !0;
else {
- if (!dl(e, n) && !(t.flags & 128)) return Pc = !1, fl(e, t, n);
- Pc = !!(e.flags & 131072);
+ if (!ul(e, n) && !(t.flags & 128)) return Nc = !1, dl(e, t, n);
+ Nc = !!(e.flags & 131072);
}
- } else Pc = !1, na && t.flags & 1048576 && Xi(t, Ui, t.index);
+ } else Nc = !1, ta && t.flags & 1048576 && Yi(t, Hi, t.index);
switch (t.lanes = 0, t.tag) {
case 16:
a: {
var r = t.pendingProps;
- if (e = $a(t.elementType), t.type = e, typeof e == "function") Ai(e) ? (r = Cc(e, r), t.tag = 1, t = Jc(null, t, e, r, n)) : (t.tag = 0, t = Kc(null, t, e, r, n));
+ if (e = Qa(t.elementType), t.type = e, typeof e == "function") ki(e) ? (r = Sc(e, r), t.tag = 1, t = qc(null, t, e, r, n)) : (t.tag = 0, t = Gc(null, t, e, r, n));
else {
if (e != null) {
var a = e.$$typeof;
if (a === P) {
- t.tag = 11, t = Ic(null, t, e, r, n);
+ t.tag = 11, t = Fc(null, t, e, r, n);
break a;
}
if (a === F) {
- t.tag = 14, t = Lc(null, t, e, r, n);
+ t.tag = 14, t = Ic(null, t, e, r, n);
break a;
}
if (a === te) {
- t.tag = 10, t.type = e, t = ll(null, t, n);
+ t.tag = 10, t.type = e, t = cl(null, t, n);
break a;
}
}
@@ -4636,26 +4636,26 @@ var k = /* @__PURE__ */ o(((e) => {
}
}
return t;
- case 0: return Kc(e, t, t.type, t.pendingProps, n);
- case 1: return r = t.type, a = Cc(r, t.pendingProps), Jc(e, t, r, a, n);
+ case 0: return Gc(e, t, t.type, t.pendingProps, n);
+ case 1: return r = t.type, a = Sc(r, t.pendingProps), qc(e, t, r, a, n);
case 3:
a: {
if (Ee(t, t.stateNode.containerInfo), e === null) throw Error(i(387));
r = t.pendingProps;
var o = t.memoizedState;
- a = o.element, mo(e, t), xo(t, r, null, n);
+ a = o.element, po(e, t), bo(t, r, null, n);
var s = t.memoizedState;
- if (r = s.cache, ga(t, ka, r), r !== o.cache && ya(t, [ka], n, !0), bo(), r = s.element, o.isDehydrated) {
+ if (r = s.cache, ha(t, Oa, r), r !== o.cache && va(t, [Oa], n, !0), yo(), r = s.element, o.isDehydrated) {
if (o = {
element: r,
isDehydrated: !1,
cache: s.cache
}, t.updateQueue.baseState = o, t.memoizedState = o, t.flags & 256) {
- t = Yc(e, t, r, n);
+ t = Jc(e, t, r, n);
break a;
}
if (r !== a) {
- a = zi(Error(i(424)), t), fa(a), t = Yc(e, t, r, n);
+ a = Ri(Error(i(424)), t), da(a), t = Jc(e, t, r, n);
break a;
}
switch (e = t.stateNode.containerInfo, e.nodeType) {
@@ -4664,76 +4664,76 @@ var k = /* @__PURE__ */ o(((e) => {
break;
default: e = e.nodeName === "HTML" ? e.ownerDocument.body : e;
}
- for (ta = vm(e.firstChild), ea = t, na = !0, ra = null, ia = !0, n = uo(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
+ for (ea = _m(e.firstChild), $i = t, ta = !0, na = null, ra = !0, n = lo(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
} else {
- if (ua(), r === a) {
- t = ul(e, t, n);
+ if (la(), r === a) {
+ t = ll(e, t, n);
break a;
}
- Fc(e, t, r, n);
+ Pc(e, t, r, n);
}
t = t.child;
}
return t;
- case 26: return Gc(e, t), e === null ? (n = Hm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : na || (t.stateNode = xp(t.type, t.pendingProps, we.current, t)) : t.memoizedState = Hm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
- case 27: return Oe(t), e === null && na && (r = t.stateNode = wm(t.type, t.pendingProps, we.current), ea = t, ia = !0, a = ta, jp(t.type) ? (ym = a, ta = vm(r.firstChild)) : ta = a), Fc(e, t, t.pendingProps.children, n), Gc(e, t), e === null && (t.flags |= 4194304), t.child;
- case 5: return e === null && na && ((a = r = ta) && (r = fm(r, t.type, t.pendingProps, ia), r === null ? a = !1 : (t.stateNode = r, ea = t, ta = vm(r.firstChild), ia = !1, a = !0)), a || oa(t)), Oe(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, Sp(a, o) ? r = null : s !== null && Sp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = $o(e, t, ns, null, null, n), gh._currentValue = a), Gc(e, t), Fc(e, t, r, n), t.child;
- case 6: return e === null && na && ((e = n = ta) && (n = pm(n, t.pendingProps, ia), n === null ? e = !1 : (t.stateNode = n, ea = t, ta = null, e = !0)), e || oa(t)), null;
- case 13: return $c(e, t, n);
- case 4: return Ee(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = lo(t, null, r, n) : Fc(e, t, r, n), t.child;
- case 11: return Ic(e, t, t.type, t.pendingProps, n);
- case 7: return r = t.pendingProps, Gc(e, t), Fc(e, t, r, n), t.child;
- case 8: return Fc(e, t, t.pendingProps.children, n), t.child;
- case 12: return Fc(e, t, t.pendingProps.children, n), t.child;
- case 10: return ll(e, t, n);
- case 9: return a = t.type._context, r = t.pendingProps.children, Sa(t), a = Ca(a), r = r(a), t.flags |= 1, Fc(e, t, r, n), t.child;
- case 14: return Lc(e, t, t.type, t.pendingProps, n);
- case 15: return Rc(e, t, t.type, t.pendingProps, n);
- case 19: return cl(e, t, n);
- case 31: return Wc(e, t, n);
- case 22: return zc(e, t, n, t.pendingProps);
- case 24: return Sa(t), r = Ca(ka), e === null ? (a = Wa(), a === null && (a = nd, o = Aa(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
+ case 26: return Wc(e, t), e === null ? (n = Vm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : ta || (t.stateNode = bp(t.type, t.pendingProps, we.current, t)) : t.memoizedState = Vm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
+ case 27: return Oe(t), e === null && ta && (r = t.stateNode = Cm(t.type, t.pendingProps, we.current), $i = t, ra = !0, a = ea, Ap(t.type) ? (vm = a, ea = _m(r.firstChild)) : ea = a), Pc(e, t, t.pendingProps.children, n), Wc(e, t), e === null && (t.flags |= 4194304), t.child;
+ case 5: return e === null && ta && ((a = r = ea) && (r = dm(r, t.type, t.pendingProps, ra), r === null ? a = !1 : (t.stateNode = r, $i = t, ea = _m(r.firstChild), ra = !1, a = !0)), a || aa(t)), Oe(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, xp(a, o) ? r = null : s !== null && xp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = Qo(e, t, ts, null, null, n), hh._currentValue = a), Wc(e, t), Pc(e, t, r, n), t.child;
+ case 6: return e === null && ta && ((e = n = ea) && (n = fm(n, t.pendingProps, ra), n === null ? e = !1 : (t.stateNode = n, $i = t, ea = null, e = !0)), e || aa(t)), null;
+ case 13: return Qc(e, t, n);
+ case 4: return Ee(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = co(t, null, r, n) : Pc(e, t, r, n), t.child;
+ case 11: return Fc(e, t, t.type, t.pendingProps, n);
+ case 7: return r = t.pendingProps, Wc(e, t), Pc(e, t, r, n), t.child;
+ case 8: return Pc(e, t, t.pendingProps.children, n), t.child;
+ case 12: return Pc(e, t, t.pendingProps.children, n), t.child;
+ case 10: return cl(e, t, n);
+ case 9: return a = t.type._context, r = t.pendingProps.children, xa(t), a = Sa(a), r = r(a), t.flags |= 1, Pc(e, t, r, n), t.child;
+ case 14: return Ic(e, t, t.type, t.pendingProps, n);
+ case 15: return Lc(e, t, t.type, t.pendingProps, n);
+ case 19: return sl(e, t, n);
+ case 31: return Uc(e, t, n);
+ case 22: return Rc(e, t, n, t.pendingProps);
+ case 24: return xa(t), r = Sa(Oa), e === null ? (a = Ua(), a === null && (a = td, o = ka(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
parent: r,
cache: a
- }, po(t), ga(t, ka, a)) : ((e.lanes & n) !== 0 && (mo(e, t), xo(t, null, null, n), bo()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, ga(t, ka, r), r !== a.cache && ya(t, [ka], n, !0)) : (a = {
+ }, fo(t), ha(t, Oa, a)) : ((e.lanes & n) !== 0 && (po(e, t), bo(t, null, null, n), yo()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, ha(t, Oa, r), r !== a.cache && va(t, [Oa], n, !0)) : (a = {
parent: r,
cache: r
- }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), ga(t, ka, r))), Fc(e, t, t.pendingProps.children, n), t.child;
+ }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), ha(t, Oa, r))), Pc(e, t, t.pendingProps.children, n), t.child;
case 30: return t.stateNode === null && (t.stateNode = {
autoName: null,
paired: null,
clones: null,
ref: null
- }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : na && Zi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Gc(e, t), Fc(e, t, r.children, n), t.child;
+ }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : ta && Xi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Wc(e, t), Pc(e, t, r.children, n), t.child;
case 29: throw t.pendingProps;
}
throw Error(i(156, t.tag));
}
- function ml(e) {
+ function pl(e) {
e.flags |= 4;
}
- function hl(e, t, n, r, i) {
+ function ml(e, t, n, r, i) {
var a;
- if ((a = !!(e.mode & 32)) && (a = n === null ? rh(t, r) : rh(t, r) && (r.src !== n.src || r.srcSet !== n.srcSet)), a) {
+ if ((a = !!(e.mode & 32)) && (a = n === null ? nh(t, r) : nh(t, r) && (r.src !== n.src || r.srcSet !== n.srcSet)), a) {
if (e.flags |= 16777216, (i & 335544128) === i) {
if (e.stateNode.complete) e.flags |= 8192;
- else if (Yd()) e.flags |= 8192;
- else throw eo = Xa, Ja;
+ else if (Jd()) e.flags |= 8192;
+ else throw $a = Ya, qa;
}
} else e.flags &= -16777217;
}
- function gl(e, t) {
+ function hl(e, t) {
if (t.type !== "stylesheet" || t.state.loading & 4) e.flags &= -16777217;
- else if (e.flags |= 16777216, !ih(t)) {
- if (Yd()) e.flags |= 8192;
- else throw eo = Xa, Ja;
+ else if (e.flags |= 16777216, !rh(t)) {
+ if (Jd()) e.flags |= 8192;
+ else throw $a = Ya, qa;
}
}
- function _l(e, t) {
- t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : ft(), e.lanes |= t, gd |= t);
+ function gl(e, t) {
+ t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : ft(), e.lanes |= t, hd |= t);
}
- function vl(e, t) {
- if (!na) switch (e.tailMode) {
+ function _l(e, t) {
+ if (!ta) switch (e.tailMode) {
case "visible": break;
case "collapsed":
for (var n = e.tail, r = null; n !== null;) n.alternate !== null && (r = n), n = n.sibling;
@@ -4744,15 +4744,15 @@ var k = /* @__PURE__ */ o(((e) => {
n === null ? e.tail = null : n.sibling = null;
}
}
- function yl(e) {
+ function vl(e) {
var t = e.alternate !== null && e.alternate.child === e.child, n = 0, r = 0;
if (t) for (var i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags & 1206910976, r |= i.flags & 1206910976, i.return = e, i = i.sibling;
else for (i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags, r |= i.flags, i.return = e, i = i.sibling;
return e.subtreeFlags |= r, e.childLanes = n, t;
}
- function bl(e, t, n) {
+ function yl(e, t, n) {
var r = t.pendingProps;
- switch (Qi(t), t.tag) {
+ switch (Zi(t), t.tag) {
case 16:
case 15:
case 0:
@@ -4761,32 +4761,32 @@ var k = /* @__PURE__ */ o(((e) => {
case 8:
case 12:
case 9:
- case 14: return yl(t), null;
- case 1: return yl(t), null;
- case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), _a(ka), De(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (la(t) ? ml(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, da())), yl(t), null;
+ case 14: return vl(t), null;
+ case 1: return vl(t), null;
+ case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), ga(Oa), De(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (ca(t) ? pl(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, ua())), vl(t), null;
case 26:
var a = t.type, o = t.memoizedState;
- return e === null ? (ml(t), o === null ? (yl(t), hl(t, a, null, r, n)) : (yl(t), gl(t, o))) : o ? o === e.memoizedState ? (yl(t), t.flags &= -16777217) : (ml(t), yl(t), gl(t, o)) : (e = e.memoizedProps, e !== r && ml(t), yl(t), hl(t, a, e, r, n)), null;
+ return e === null ? (pl(t), o === null ? (vl(t), ml(t, a, null, r, n)) : (vl(t), hl(t, o))) : o ? o === e.memoizedState ? (vl(t), t.flags &= -16777217) : (pl(t), vl(t), hl(t, o)) : (e = e.memoizedProps, e !== r && pl(t), vl(t), ml(t, a, e, r, n)), null;
case 27:
- if (ke(t), n = we.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ml(t);
+ if (ke(t), n = we.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && pl(t);
else {
if (!r) {
if (t.stateNode === null) throw Error(i(166));
- return yl(t), t.subtreeFlags &= -33554433, null;
+ return vl(t), t.subtreeFlags &= -33554433, null;
}
- e = Se.current, la(t) ? sa(t, e) : (e = wm(a, r, n), t.stateNode = e, ml(t));
+ e = Se.current, ca(t) ? oa(t, e) : (e = Cm(a, r, n), t.stateNode = e, pl(t));
}
- return yl(t), t.subtreeFlags &= -33554433, null;
+ return vl(t), t.subtreeFlags &= -33554433, null;
case 5:
- if (ke(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ml(t);
+ if (ke(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && pl(t);
else {
if (!r) {
if (t.stateNode === null) throw Error(i(166));
- return yl(t), t.subtreeFlags &= -33554433, null;
+ return vl(t), t.subtreeFlags &= -33554433, null;
}
- if (o = Se.current, la(t)) sa(t, o);
+ if (o = Se.current, ca(t)) oa(t, o);
else {
- var s = vp(we.current);
+ var s = _p(we.current);
switch (o) {
case 1:
o = s.createElementNS("http://www.w3.org/2000/svg", a);
@@ -4825,7 +4825,7 @@ var k = /* @__PURE__ */ o(((e) => {
s.sibling.return = s.return, s = s.sibling;
}
t.stateNode = o;
- a: switch (dp(o, a, r), a) {
+ a: switch (up(o, a, r), a) {
case "button":
case "input":
case "select":
@@ -4837,71 +4837,71 @@ var k = /* @__PURE__ */ o(((e) => {
break a;
default: r = !1;
}
- r && ml(t);
+ r && pl(t);
}
}
- return yl(t), t.subtreeFlags &= -33554433, hl(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
+ return vl(t), t.subtreeFlags &= -33554433, ml(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
case 6:
- if (e && t.stateNode != null) e.memoizedProps !== r && ml(t);
+ if (e && t.stateNode != null) e.memoizedProps !== r && pl(t);
else {
if (typeof r != "string" && t.stateNode === null) throw Error(i(166));
- if (e = we.current, la(t)) {
- if (e = t.stateNode, n = t.memoizedProps, r = null, a = ea, a !== null) switch (a.tag) {
+ if (e = we.current, ca(t)) {
+ if (e = t.stateNode, n = t.memoizedProps, r = null, a = $i, a !== null) switch (a.tag) {
case 27:
case 5: r = a.memoizedProps;
}
- e[wt] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || cp(e.nodeValue, n)), e || oa(t, !0);
- } else e = vp(e).createTextNode(r), e[wt] = t, t.stateNode = e;
+ e[wt] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || sp(e.nodeValue, n)), e || aa(t, !0);
+ } else e = _p(e).createTextNode(r), e[wt] = t, t.stateNode = e;
}
- return yl(t), null;
+ return vl(t), null;
case 31:
if (n = t.memoizedState, e === null || e.memoizedState !== null) {
- if (r = la(t), n !== null) {
+ if (r = ca(t), n !== null) {
if (e === null) {
if (!r) throw Error(i(318));
if (e = t.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(557));
e[wt] = t;
- } else ua(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- yl(t), e = !1;
- } else n = da(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
- if (!e) return t.flags & 256 ? (Fo(t), t) : (Fo(t), null);
+ } else la(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
+ vl(t), e = !1;
+ } else n = ua(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
+ if (!e) return t.flags & 256 ? (Po(t), t) : (Po(t), null);
if (t.flags & 128) throw Error(i(558));
}
- return yl(t), null;
+ return vl(t), null;
case 13:
if (r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
- if (a = la(t), r !== null && r.dehydrated !== null) {
+ if (a = ca(t), r !== null && r.dehydrated !== null) {
if (e === null) {
if (!a) throw Error(i(318));
if (a = t.memoizedState, a = a === null ? null : a.dehydrated, !a) throw Error(i(317));
a[wt] = t;
- } else ua(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- yl(t), a = !1;
- } else a = da(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;
- if (!a) return t.flags & 256 ? (Fo(t), t) : (Fo(t), null);
+ } else la(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
+ vl(t), a = !1;
+ } else a = ua(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;
+ if (!a) return t.flags & 256 ? (Po(t), t) : (Po(t), null);
}
- return Fo(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), _l(t, t.updateQueue), yl(t), null);
- case 4: return De(), e === null && Qf(t.stateNode.containerInfo), t.flags |= 67108864, yl(t), null;
- case 10: return _a(t.type), yl(t), null;
+ return Po(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), gl(t, t.updateQueue), vl(t), null);
+ case 4: return De(), e === null && Zf(t.stateNode.containerInfo), t.flags |= 67108864, vl(t), null;
+ case 10: return ga(t.type), vl(t), null;
case 19:
- if (Ro(t), r = t.memoizedState, r === null) return yl(t), null;
+ if (Lo(t), r = t.memoizedState, r === null) return vl(t), null;
if (a = !!(t.flags & 128), o = r.rendering, o === null) {
- if (a) vl(r, !1);
+ if (a) _l(r, !1);
else {
- if (dd !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
- if (o = zo(e), o !== null) {
- for (t.flags |= 128, vl(r, !1), e = o.updateQueue, t.updateQueue = e, _l(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) Mi(n, e), n = n.sibling;
- return Lo(t, Io.current & 1 | 2), na && Yi(t, r.treeForkCount), t.child;
+ if (ud !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
+ if (o = Ro(e), o !== null) {
+ for (t.flags |= 128, _l(r, !1), e = o.updateQueue, t.updateQueue = e, gl(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) ji(n, e), n = n.sibling;
+ return Io(t, Fo.current & 1 | 2), ta && Ji(t, r.treeForkCount), t.child;
}
e = e.sibling;
}
- r.tail !== null && He() > Sd && (t.flags |= 128, a = !0, vl(r, !1), t.lanes = 4194304);
+ r.tail !== null && He() > xd && (t.flags |= 128, a = !0, _l(r, !1), t.lanes = 4194304);
}
} else {
if (!a) {
- if (e = zo(o), e !== null) {
- if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, _l(t, e), vl(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !na) return yl(t), null;
- } else 2 * He() - r.renderingStartTime > Sd && n !== 536870912 && (t.flags |= 128, a = !0, vl(r, !1), t.lanes = 4194304);
+ if (e = Ro(o), e !== null) {
+ if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, gl(t, e), _l(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !ta) return vl(t), null;
+ } else 2 * He() - r.renderingStartTime > xd && n !== 536870912 && (t.flags |= 128, a = !0, _l(r, !1), t.lanes = 4194304);
}
r.isBackwards ? (o.sibling = t.child, t.child = o) : (e = r.last, e === null ? t.child = o : e.sibling = o, r.last = o);
}
@@ -4917,50 +4917,50 @@ var k = /* @__PURE__ */ o(((e) => {
}
n = !0;
}
- return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = He(), e.sibling = null, o = Io.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || na ? Lo(t, o) : (n = o, xe(ko, t), xe(Io, n), Ao === null && (Ao = t)), na && Yi(t, r.treeForkCount), e;
+ return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = He(), e.sibling = null, o = Fo.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || ta ? Io(t, o) : (n = o, xe(Oo, t), xe(Fo, n), ko === null && (ko = t)), ta && Ji(t, r.treeForkCount), e;
}
- return yl(t), null;
+ return vl(t), null;
case 22:
- case 23: return Fo(t), Oo(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (yl(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : yl(t), n = t.updateQueue, n !== null && _l(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && be(Ua), null;
- case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), _a(ka), yl(t), null;
+ case 23: return Po(t), Do(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (vl(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : vl(t), n = t.updateQueue, n !== null && gl(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && be(Ha), null;
+ case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), ga(Oa), vl(t), null;
case 25: return null;
- case 30: return t.flags |= 33554432, yl(t), null;
+ case 30: return t.flags |= 33554432, vl(t), null;
}
throw Error(i(156, t.tag));
}
- function xl(e, t) {
- switch (Qi(t), t.tag) {
+ function bl(e, t) {
+ switch (Zi(t), t.tag) {
case 1: return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 3: return _a(ka), De(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
+ case 3: return ga(Oa), De(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
case 26:
case 27:
case 5: return ke(t), null;
case 31:
if (t.memoizedState !== null) {
- if (Fo(t), t.alternate === null) throw Error(i(340));
- ua();
+ if (Po(t), t.alternate === null) throw Error(i(340));
+ la();
}
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
case 13:
- if (Fo(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
+ if (Po(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
if (t.alternate === null) throw Error(i(340));
- ua();
+ la();
}
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 19: return Ro(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;
+ case 19: return Lo(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;
case 4: return De(), null;
- case 10: return _a(t.type), null;
+ case 10: return ga(t.type), null;
case 22:
- case 23: return Fo(t), Oo(), e !== null && be(Ua), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 24: return _a(ka), null;
+ case 23: return Po(t), Do(), e !== null && be(Ha), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
+ case 24: return ga(Oa), null;
case 25: return null;
default: return null;
}
}
- function Sl(e, t) {
- switch (Qi(t), t.tag) {
+ function xl(e, t) {
+ switch (Zi(t), t.tag) {
case 3:
- _a(ka), De();
+ ga(Oa), De();
break;
case 26:
case 27:
@@ -4971,25 +4971,25 @@ var k = /* @__PURE__ */ o(((e) => {
De();
break;
case 31:
- t.memoizedState !== null && Fo(t);
+ t.memoizedState !== null && Po(t);
break;
case 13:
- Fo(t);
+ Po(t);
break;
case 19:
- Ro(t);
+ Lo(t);
break;
case 10:
- _a(t.type);
+ ga(t.type);
break;
case 22:
case 23:
- Fo(t), Oo(), e !== null && be(Ua);
+ Po(t), Do(), e !== null && be(Ha);
break;
- case 24: _a(ka);
+ case 24: ga(Oa);
}
}
- function Cl(e, t) {
+ function Sl(e, t) {
try {
var n = t.updateQueue, r = n === null ? null : n.lastEffect;
if (r !== null) {
@@ -5005,10 +5005,10 @@ var k = /* @__PURE__ */ o(((e) => {
} while (n !== i);
}
} catch (e) {
- bf(t, t.return, e);
+ yf(t, t.return, e);
}
}
- function wl(e, t, n) {
+ function Cl(e, t, n) {
try {
var r = t.updateQueue, i = r === null ? null : r.lastEffect;
if (i !== null) {
@@ -5023,7 +5023,7 @@ var k = /* @__PURE__ */ o(((e) => {
try {
l();
} catch (e) {
- bf(i, c, e);
+ yf(i, c, e);
}
}
}
@@ -5031,29 +5031,29 @@ var k = /* @__PURE__ */ o(((e) => {
} while (r !== a);
}
} catch (e) {
- bf(t, t.return, e);
+ yf(t, t.return, e);
}
}
- function Tl(e) {
+ function wl(e) {
var t = e.updateQueue;
if (t !== null) {
var n = e.stateNode;
try {
- Co(t, n);
+ So(t, n);
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
}
}
- function El(e, t, n) {
- n.props = Cc(e.type, e.memoizedProps), n.state = e.memoizedState;
+ function Tl(e, t, n) {
+ n.props = Sc(e.type, e.memoizedProps), n.state = e.memoizedState;
try {
n.componentWillUnmount();
} catch (n) {
- bf(e, t, n);
+ yf(e, t, n);
}
}
- function Dl(e, t) {
+ function El(e, t) {
try {
var n = e.ref;
if (n !== null) {
@@ -5064,13 +5064,13 @@ var k = /* @__PURE__ */ o(((e) => {
var r = e.stateNode;
break;
case 30:
- var i = e.stateNode, a = mi(e.memoizedProps, i);
- (i.ref === null || i.ref.name !== a) && (i.ref = Up(a)), r = i.ref;
+ var i = e.stateNode, a = pi(e.memoizedProps, i);
+ (i.ref === null || i.ref.name !== a) && (i.ref = Hp(a)), r = i.ref;
break;
case 7:
if (e.stateNode === null) {
- var o = new Wp(e);
- f(e.child, !1, sm, o, void 0, void 0), e.stateNode = o;
+ var o = new Up(e);
+ f(e.child, !1, om, o, void 0, void 0), e.stateNode = o;
}
r = e.stateNode;
break;
@@ -5079,43 +5079,43 @@ var k = /* @__PURE__ */ o(((e) => {
typeof n == "function" ? e.refCleanup = n(r) : n.current = r;
}
} catch (n) {
- bf(e, t, n);
+ yf(e, t, n);
}
}
- function Ol(e, t) {
+ function Dl(e, t) {
var n = e.ref, r = e.refCleanup;
if (n !== null) {
if (typeof r == "function") try {
r();
} catch (n) {
- bf(e, t, n);
+ yf(e, t, n);
} finally {
e.refCleanup = null, e = e.alternate, e != null && (e.refCleanup = null);
}
else if (typeof n == "function") try {
n(null);
} catch (n) {
- bf(e, t, n);
+ yf(e, t, n);
}
else n.current = null;
}
}
- function kl(e, t) {
- if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && e.alternate === null && t !== null) for (var n = 0; n < t.length; n++) lm(e.stateNode, t[n]);
+ function Ol(e, t) {
+ if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && e.alternate === null && t !== null) for (var n = 0; n < t.length; n++) cm(e.stateNode, t[n]);
+ }
+ function kl(e) {
+ for (var t = e.return; t !== null && (Ml(t) && cm(e.stateNode, t.stateNode), !jl(t));) t = t.return;
}
function Al(e) {
- for (var t = e.return; t !== null && (Nl(t) && lm(e.stateNode, t.stateNode), !Ml(t));) t = t.return;
+ for (var t = e.return; t !== null && (Ml(t) && lm(e.stateNode, t.stateNode), !jl(t));) t = t.return;
}
function jl(e) {
- for (var t = e.return; t !== null && (Nl(t) && um(e.stateNode, t.stateNode), !Ml(t));) t = t.return;
- }
- function Ml(e) {
return e.tag === 5 || e.tag === 3 || e.tag === 27;
}
- function Nl(e) {
+ function Ml(e) {
return e && e.tag === 7 && e.stateNode !== null;
}
- function Pl(e) {
+ function Nl(e) {
var t = e.type, n = e.memoizedProps, r = e.stateNode;
try {
a: switch (t) {
@@ -5128,103 +5128,103 @@ var k = /* @__PURE__ */ o(((e) => {
case "img": n.src ? r.src = n.src : n.srcSet && (r.srcset = n.srcSet);
}
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
}
- function Fl(e, t, n) {
+ function Pl(e, t, n) {
try {
var r = e.stateNode;
- pp(r, e.type, n, t), r[Tt] = t;
+ fp(r, e.type, n, t), r[Tt] = t;
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
}
- function Il(e) {
- return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && jp(e.type) || e.tag === 4;
+ function Fl(e) {
+ return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Ap(e.type) || e.tag === 4;
}
- function Ll(e) {
+ function Il(e) {
a: for (;;) {
for (; e.sibling === null;) {
- if (e.return === null || Il(e.return)) return null;
+ if (e.return === null || Fl(e.return)) return null;
e = e.return;
}
for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18;) {
- if (e.tag === 27 && jp(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;
+ if (e.tag === 27 && Ap(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;
e.child.return = e, e = e.child;
}
if (!(e.flags & 2)) return e.stateNode;
}
}
- function Rl(e, t, n, r) {
+ function Ll(e, t, n, r) {
var i = e.tag;
- if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = xn)), kl(e, r), Jt = !0;
- else if (i !== 4 && (i === 27 && (kl(e, r), r = null, jp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Rl(e, t, n, r), e = e.sibling; e !== null;) Rl(e, t, n, r), e = e.sibling;
+ if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = xn)), Ol(e, r), Jt = !0;
+ else if (i !== 4 && (i === 27 && (Ol(e, r), r = null, Ap(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Ll(e, t, n, r), e = e.sibling; e !== null;) Ll(e, t, n, r), e = e.sibling;
}
- function zl(e, t, n, r) {
+ function Rl(e, t, n, r) {
var i = e.tag;
- if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), kl(e, r), Jt = !0;
- else if (i !== 4 && (i === 27 && (kl(e, r), r = null, jp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (zl(e, t, n, r), e = e.sibling; e !== null;) zl(e, t, n, r), e = e.sibling;
+ if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), Ol(e, r), Jt = !0;
+ else if (i !== 4 && (i === 27 && (Ol(e, r), r = null, Ap(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Rl(e, t, n, r), e = e.sibling; e !== null;) Rl(e, t, n, r), e = e.sibling;
}
- function Bl(e) {
+ function zl(e) {
var t = e.stateNode, n = e.memoizedProps;
try {
for (var r = e.type, i = t.attributes; i.length;) t.removeAttributeNode(i[0]);
- dp(t, r, n), t[wt] = e, t[Tt] = n;
+ up(t, r, n), t[wt] = e, t[Tt] = n;
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
}
- var Vl = !1, Hl = null;
- function Ul(e) {
- (e.tag === 30 || e.subtreeFlags & 33554432) && (Vl = !0);
+ var Bl = !1, Vl = null;
+ function Hl(e) {
+ (e.tag === 30 || e.subtreeFlags & 33554432) && (Bl = !0);
}
- var Wl = null;
- function Gl() {
- var e = Wl;
- return Wl = null, e;
+ var Ul = null;
+ function Wl() {
+ var e = Ul;
+ return Ul = null, e;
}
- var Kl = 0;
- function ql(e, t, n, r, i) {
- return Kl = 0, Jl(e.child, t, n, r, i);
+ var Gl = 0;
+ function Kl(e, t, n, r, i) {
+ return Gl = 0, ql(e.child, t, n, r, i);
}
- function Jl(e, t, n, r, i) {
+ function ql(e, t, n, r, i) {
for (var a = !1; e !== null;) {
if (e.tag === 5) {
var o = e.stateNode;
if (r !== null) {
- var s = Lp(o);
+ var s = Ip(o);
r.push(s), s.view && (a = !0);
- } else a || Lp(o).view && (a = !0);
- Vl = !0, Pp(o, Kl === 0 ? t : t + "_" + Kl, n), Kl++;
- } else e.tag === 22 && e.memoizedState !== null || e.tag === 30 && i || Jl(e.child, t, n, r, i) && (a = !0);
+ } else a || Ip(o).view && (a = !0);
+ Bl = !0, Np(o, Gl === 0 ? t : t + "_" + Gl, n), Gl++;
+ } else e.tag === 22 && e.memoizedState !== null || e.tag === 30 && i || ql(e.child, t, n, r, i) && (a = !0);
e = e.sibling;
}
return a;
}
function U(e, t) {
- for (; e !== null;) e.tag === 5 ? Fp(e.stateNode, e.memoizedProps) : e.tag === 22 && e.memoizedState !== null || e.tag === 30 && t || U(e.child, t), e = e.sibling;
+ for (; e !== null;) e.tag === 5 ? Pp(e.stateNode, e.memoizedProps) : e.tag === 22 && e.memoizedState !== null || e.tag === 30 && t || U(e.child, t), e = e.sibling;
}
- function Yl(e) {
+ function Jl(e) {
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
- if ((e.tag !== 22 || e.memoizedState === null) && (Yl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {
+ if ((e.tag !== 22 || e.memoizedState === null) && (Jl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {
var t = e.memoizedProps;
if (t.name == null || t.name === "auto") throw Error(i(544));
var n = t.name;
- t = gi(t.default, t.share), t !== "none" && (ql(e, n, t, null, !1) || U(e.child, !1));
+ t = hi(t.default, t.share), t !== "none" && (Kl(e, n, t, null, !1) || U(e.child, !1));
}
e = e.sibling;
}
}
- function Xl(e, t) {
+ function Yl(e, t) {
if (e.tag === 30) {
- var n = e.stateNode, r = e.memoizedProps, i = mi(r, n), a = gi(r.default, n.paired ? r.share : r.enter);
- a === "none" ? Yl(e) : ql(e, i, a, null, !1) ? (Yl(e), n.paired || t || zd(e, r.onEnter)) : U(e.child, !1);
- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Xl(e, t), e = e.sibling;
- else Yl(e);
- }
- function Zl(e) {
- if (Hl !== null && Hl.size !== 0) {
- var t = Hl;
+ var n = e.stateNode, r = e.memoizedProps, i = pi(r, n), a = hi(r.default, n.paired ? r.share : r.enter);
+ a === "none" ? Jl(e) : Kl(e, i, a, null, !1) ? (Jl(e), n.paired || t || Rd(e, r.onEnter)) : U(e.child, !1);
+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Yl(e, t), e = e.sibling;
+ else Jl(e);
+ }
+ function Xl(e) {
+ if (Vl !== null && Vl.size !== 0) {
+ var t = Vl;
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
if (e.tag !== 22 || e.memoizedState === null) {
if (e.tag === 30 && e.flags & 18874368) {
@@ -5232,59 +5232,59 @@ var k = /* @__PURE__ */ o(((e) => {
if (r != null && r !== "auto") {
var i = t.get(r);
if (i !== void 0) {
- var a = gi(n.default, n.share);
- if (a !== "none" && (ql(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, zd(e, n.onShare)) : U(e.child, !1)), t.delete(r), t.size === 0) break;
+ var a = hi(n.default, n.share);
+ if (a !== "none" && (Kl(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, Rd(e, n.onShare)) : U(e.child, !1)), t.delete(r), t.size === 0) break;
}
}
}
- Zl(e);
+ Xl(e);
}
e = e.sibling;
}
}
}
- function Ql(e) {
+ function Zl(e) {
if (e.tag === 30) {
- var t = e.memoizedProps, n = mi(t, e.stateNode), r = Hl === null ? void 0 : Hl.get(n), i = gi(t.default, r === void 0 ? t.exit : t.share);
- i !== "none" && (ql(e, n, i, null, !1) ? r === void 0 ? zd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Hl.delete(n), zd(e, t.onShare)) : U(e.child, !1)), Hl !== null && Zl(e);
- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Ql(e), e = e.sibling;
- else Hl !== null && Zl(e);
+ var t = e.memoizedProps, n = pi(t, e.stateNode), r = Vl === null ? void 0 : Vl.get(n), i = hi(t.default, r === void 0 ? t.exit : t.share);
+ i !== "none" && (Kl(e, n, i, null, !1) ? r === void 0 ? Rd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Vl.delete(n), Rd(e, t.onShare)) : U(e.child, !1)), Vl !== null && Xl(e);
+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Zl(e), e = e.sibling;
+ else Vl !== null && Xl(e);
}
- function $l(e) {
+ function Ql(e) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
- var t = e.memoizedProps, n = mi(t, e.stateNode);
- t = gi(t.default, t.update), e.flags &= -5, t !== "none" && ql(e, n, t, e.memoizedState = [], !1);
- } else e.subtreeFlags & 33554432 && $l(e);
+ var t = e.memoizedProps, n = pi(t, e.stateNode);
+ t = hi(t.default, t.update), e.flags &= -5, t !== "none" && Kl(e, n, t, e.memoizedState = [], !1);
+ } else e.subtreeFlags & 33554432 && Ql(e);
e = e.sibling;
}
}
- function eu(e) {
+ function $l(e) {
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
if (e.tag !== 22 || e.memoizedState === null) {
if (e.tag === 30 && e.flags & 18874368) {
var t = e.stateNode;
t.paired !== null && (t.paired = null, U(e.child, !1));
}
- eu(e);
+ $l(e);
}
e = e.sibling;
}
}
- function tu(e) {
- if (e.tag === 30) e.stateNode.paired = null, U(e.child, !1), eu(e);
- else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) tu(e), e = e.sibling;
- else eu(e);
+ function eu(e) {
+ if (e.tag === 30) e.stateNode.paired = null, U(e.child, !1), $l(e);
+ else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) eu(e), e = e.sibling;
+ else $l(e);
}
- function nu(e) {
- for (e = e.child; e !== null;) e.tag === 30 ? U(e.child, !1) : e.subtreeFlags & 33554432 && nu(e), e = e.sibling;
+ function tu(e) {
+ for (e = e.child; e !== null;) e.tag === 30 ? U(e.child, !1) : e.subtreeFlags & 33554432 && tu(e), e = e.sibling;
}
- function ru(e, t, n, r, i, a, o) {
+ function nu(e, t, n, r, i, a, o) {
for (var s = !1; t !== null;) {
if (t.tag === 5) {
var c = t.stateNode;
- if (a !== null && Kl < a.length) {
- var l = a[Kl], u = Lp(c);
+ if (a !== null && Gl < a.length) {
+ var l = a[Gl], u = Ip(c);
(l.view || u.view) && (s = !0);
var d;
if (d = !(e.flags & 4)) {
@@ -5297,30 +5297,30 @@ var k = /* @__PURE__ */ o(((e) => {
}
d && (e.flags |= 4), u.abs ? u = !l.abs : (l = l.rect, u = u.rect, u = l.height !== u.height || l.width !== u.width), u && (e.flags |= 32);
} else e.flags |= 32;
- e.flags & 4 && Pp(c, Kl === 0 ? n : n + "_" + Kl, i), s && e.flags & 4 || (Wl === null && (Wl = []), Wl.push(c, Kl === 0 ? r : r + "_" + Kl, t.memoizedProps)), Kl++;
- } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : ru(e, t.child, n, r, i, a, o) && (s = !0));
+ e.flags & 4 && Np(c, Gl === 0 ? n : n + "_" + Gl, i), s && e.flags & 4 || (Ul === null && (Ul = []), Ul.push(c, Gl === 0 ? r : r + "_" + Gl, t.memoizedProps)), Gl++;
+ } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : nu(e, t.child, n, r, i, a, o) && (s = !0));
t = t.sibling;
}
return s;
}
- function iu(e, t) {
+ function ru(e, t) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
- var n = e.memoizedProps, r = e.stateNode, i = mi(n, r), a = gi(n.default, n.update);
+ var n = e.memoizedProps, r = e.stateNode, i = pi(n, r), a = hi(n.default, n.update);
if (t) {
r = r.clones;
- var o = r === null ? null : r.map(Rp);
+ var o = r === null ? null : r.map(Lp);
} else o = e.memoizedState, e.memoizedState = null;
r = e;
var s = e.child;
- Kl = 0, i = ru(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || zd(e, n.onUpdate));
- } else e.subtreeFlags & 33554432 && iu(e, t);
+ Gl = 0, i = nu(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || Rd(e, n.onUpdate));
+ } else e.subtreeFlags & 33554432 && ru(e, t);
e = e.sibling;
}
}
- var au = !1, ou = !1, su = !1, cu = !1, lu = typeof WeakSet == "function" ? WeakSet : Set, uu = null, du = !1, fu = !1, pu = !1, mu = !1;
- function hu(e, t, n) {
- if (e = e.containerInfo, gp = Th, e = Wr(e), Gr(e)) {
+ var iu = !1, au = !1, ou = !1, su = !1, cu = typeof WeakSet == "function" ? WeakSet : Set, lu = null, uu = !1, du = !1, fu = !1, pu = !1;
+ function mu(e, t, n) {
+ if (e = e.containerInfo, hp = wh, e = Ur(e), Wr(e)) {
if ("selectionStart" in e) var r = {
start: e.selectionStart,
end: e.selectionEnd
@@ -5359,31 +5359,31 @@ var k = /* @__PURE__ */ o(((e) => {
end: 0
};
} else r = null;
- for (_p = {
+ for (gp = {
focusedElem: e,
selectionRange: r
- }, Th = !1, n = (n & 335544064) === n, uu = t, t = n ? 9270 : 1024; uu !== null;) {
- if (e = uu, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && Ql(r[a]);
- if (e.alternate === null && e.flags & 2) n && Ul(e), gu(n);
+ }, wh = !1, n = (n & 335544064) === n, lu = t, t = n ? 9270 : 1024; lu !== null;) {
+ if (e = lu, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && Zl(r[a]);
+ if (e.alternate === null && e.flags & 2) n && Hl(e), hu(n);
else {
if (e.tag === 22) {
if (r = e.alternate, e.memoizedState !== null) {
- r !== null && r.memoizedState === null && n && Ql(r), gu(n);
+ r !== null && r.memoizedState === null && n && Zl(r), hu(n);
continue;
}
if (r !== null && r.memoizedState !== null) {
- n && Ul(e), gu(n);
+ n && Hl(e), hu(n);
continue;
}
}
- r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, uu = r) : (n && $l(e), gu(n));
+ r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, lu = r) : (n && Ql(e), hu(n));
}
}
- Hl = null;
+ Vl = null;
}
- function gu(e) {
- for (; uu !== null;) {
- var t = uu, n = e, r = t.alternate, a = t.flags;
+ function hu(e) {
+ for (; lu !== null;) {
+ var t = lu, n = e, r = t.alternate, a = t.flags;
switch (t.tag) {
case 0:
case 11:
@@ -5393,21 +5393,21 @@ var k = /* @__PURE__ */ o(((e) => {
n = void 0, a = r.memoizedProps, r = r.memoizedState;
var o = t.stateNode;
try {
- var s = Cc(t.type, a);
+ var s = Sc(t.type, a);
n = o.getSnapshotBeforeUpdate(s, r), o.__reactInternalSnapshotBeforeUpdate = n;
} catch (e) {
- bf(t, t.return, e);
+ yf(t, t.return, e);
}
}
break;
case 3:
if (a & 1024) {
- if (r = t.stateNode.containerInfo, n = r.nodeType, n === 9) dm(r);
+ if (r = t.stateNode.containerInfo, n = r.nodeType, n === 9) um(r);
else if (n === 1) switch (r.nodeName) {
case "HEAD":
case "HTML":
case "BODY":
- dm(r);
+ um(r);
break;
default: r.textContent = "";
}
@@ -5420,46 +5420,46 @@ var k = /* @__PURE__ */ o(((e) => {
case 4:
case 17: break;
case 30:
- n && r !== null && (n = mi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = gi(a.default, a.update), a !== "none" && ql(r, n, a, r.memoizedState = [], !0));
+ n && r !== null && (n = pi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = hi(a.default, a.update), a !== "none" && Kl(r, n, a, r.memoizedState = [], !0));
break;
default: if (a & 1024) throw Error(i(163));
}
if (r = t.sibling, r !== null) {
- r.return = t.return, uu = r;
+ r.return = t.return, lu = r;
break;
}
- uu = t.return;
+ lu = t.return;
}
}
- function _u(e, t, n) {
+ function gu(e, t, n) {
var r = n.flags;
switch (n.tag) {
case 0:
case 11:
case 15:
- Iu(e, n), r & 4 && Cl(5, n);
+ Fu(e, n), r & 4 && Sl(5, n);
break;
case 1:
- if (Iu(e, n), r & 4) {
+ if (Fu(e, n), r & 4) {
if (e = n.stateNode, t === null) try {
e.componentDidMount();
} catch (e) {
- bf(n, n.return, e);
+ yf(n, n.return, e);
}
else {
- var i = Cc(n.type, t.memoizedProps);
+ var i = Sc(n.type, t.memoizedProps);
t = t.memoizedState;
try {
e.componentDidUpdate(i, t, e.__reactInternalSnapshotBeforeUpdate);
} catch (e) {
- bf(n, n.return, e);
+ yf(n, n.return, e);
}
}
}
- r & 64 && Tl(n), r & 512 && Dl(n, n.return);
+ r & 64 && wl(n), r & 512 && El(n, n.return);
break;
case 3:
- if (Iu(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
+ if (Fu(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
if (t = null, n.child !== null) switch (n.child.tag) {
case 27:
case 5:
@@ -5468,43 +5468,43 @@ var k = /* @__PURE__ */ o(((e) => {
case 1: t = n.child.stateNode;
}
try {
- Co(e, t);
+ So(e, t);
} catch (e) {
- bf(n, n.return, e);
+ yf(n, n.return, e);
}
}
break;
- case 27: t === null && r & 4 && Bl(n);
+ case 27: t === null && r & 4 && zl(n);
case 26:
case 5:
- Iu(e, n), t === null && r & 4 && Pl(n), r & 512 && Dl(n, n.return);
+ Fu(e, n), t === null && r & 4 && Nl(n), r & 512 && El(n, n.return);
break;
case 12:
- Iu(e, n);
+ Fu(e, n);
break;
case 31:
- Iu(e, n), r & 4 && Tu(e, n);
+ Fu(e, n), r & 4 && wu(e, n);
break;
case 13:
- Iu(e, n), r & 4 && Eu(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = wf.bind(null, n), _m(e, n))));
+ Fu(e, n), r & 4 && Tu(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = Cf.bind(null, n), gm(e, n))));
break;
case 22:
- if (r = n.memoizedState !== null || au, !r) {
- var a = t !== null && t.memoizedState !== null || ou;
- t = au, i = ou, au = r, (ou = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Ru(e, n, r)) : Iu(e, n), au = t, ou = i;
+ if (r = n.memoizedState !== null || iu, !r) {
+ var a = t !== null && t.memoizedState !== null || au;
+ t = iu, i = au, iu = r, (au = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Lu(e, n, r)) : Fu(e, n), iu = t, au = i;
}
break;
case 30:
- Iu(e, n), r & 512 && Dl(n, n.return);
+ Fu(e, n), r & 512 && El(n, n.return);
break;
- case 7: r & 512 && Dl(n, n.return);
- default: Iu(e, n);
+ case 7: r & 512 && El(n, n.return);
+ default: Fu(e, n);
}
}
- function vu(e, t) {
- for (e = e.child; e !== null;) yu(e, t), e = e.sibling;
+ function _u(e, t) {
+ for (e = e.child; e !== null;) vu(e, t), e = e.sibling;
}
- function yu(e, t) {
+ function vu(e, t) {
switch (e.tag) {
case 5:
case 26:
@@ -5518,182 +5518,182 @@ var k = /* @__PURE__ */ o(((e) => {
i.style.display = o == null || typeof o == "boolean" ? "" : ("" + o).trim();
}
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
- bu(e, t);
+ yu(e, t);
break;
case 6:
try {
e.stateNode.nodeValue = t ? "" : e.memoizedProps, Jt = !0;
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
break;
case 18:
try {
var s = e.stateNode;
- t ? Np(s, !0) : Np(e.stateNode, !1);
+ t ? Mp(s, !0) : Mp(e.stateNode, !1);
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
break;
case 22:
case 23:
- e.memoizedState === null && vu(e, t);
+ e.memoizedState === null && _u(e, t);
break;
- default: vu(e, t);
+ default: _u(e, t);
}
}
- function bu(e, t) {
+ function yu(e, t) {
if (e.subtreeFlags & 67108864) for (e = e.child; e !== null;) {
a: {
var n = e, r = t;
switch (n.tag) {
case 4:
- yu(n, r);
+ vu(n, r);
break a;
case 22:
- n.memoizedState === null && bu(n, r);
+ n.memoizedState === null && yu(n, r);
break a;
- default: bu(n, r);
+ default: yu(n, r);
}
}
e = e.sibling;
}
}
- function xu(e) {
+ function bu(e) {
var t = e.alternate;
- t !== null && (e.alternate = null, xu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && Nt(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;
+ t !== null && (e.alternate = null, bu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && Nt(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;
}
- var Su = null, W = !1;
- function Cu(e, t, n) {
- for (n = n.child; n !== null;) wu(e, t, n), n = n.sibling;
+ var xu = null, W = !1;
+ function Su(e, t, n) {
+ for (n = n.child; n !== null;) Cu(e, t, n), n = n.sibling;
}
- function wu(e, t, n) {
+ function Cu(e, t, n) {
if (Qe && typeof Qe.onCommitFiberUnmount == "function") try {
Qe.onCommitFiberUnmount(Ze, n);
} catch {}
switch (n.tag) {
case 26:
- ou || Ol(n, t), Cu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !ou && (n = n.stateNode, n.parentNode.removeChild(n));
+ au || Dl(n, t), Su(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !au && (n = n.stateNode, n.parentNode.removeChild(n));
break;
case 27:
- ou || Ol(n, t), jl(n);
- var r = Su, i = W;
- jp(n.type) && (Su = n.stateNode, W = !1), Cu(e, t, n), Tm(n.stateNode, n.type, n.memoizedProps), Su = r, W = i;
+ au || Dl(n, t), Al(n);
+ var r = xu, i = W;
+ Ap(n.type) && (xu = n.stateNode, W = !1), Su(e, t, n), wm(n.stateNode, n.type, n.memoizedProps), xu = r, W = i;
break;
- case 5: ou || Ol(n, t), jl(n);
+ case 5: au || Dl(n, t), Al(n);
case 6:
- if (n.tag === 6 && jl(n), r = Su, i = W, Su = null, Cu(e, t, n), Su = r, W = i, Su !== null) {
+ if (n.tag === 6 && Al(n), r = xu, i = W, xu = null, Su(e, t, n), xu = r, W = i, xu !== null) {
if (W) try {
- (Su.nodeType === 9 ? Su.body : Su.nodeName === "HTML" ? Su.ownerDocument.body : Su).removeChild(n.stateNode), Jt = !0;
+ (xu.nodeType === 9 ? xu.body : xu.nodeName === "HTML" ? xu.ownerDocument.body : xu).removeChild(n.stateNode), Jt = !0;
} catch (e) {
- bf(n, t, e);
+ yf(n, t, e);
}
else try {
- Su.removeChild(n.stateNode), Jt = !0;
+ xu.removeChild(n.stateNode), Jt = !0;
} catch (e) {
- bf(n, t, e);
+ yf(n, t, e);
}
}
break;
case 18:
- Su !== null && (W ? (e = Su, Mp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Xh(e)) : Mp(Su, n.stateNode));
+ xu !== null && (W ? (e = xu, jp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Yh(e)) : jp(xu, n.stateNode));
break;
case 4:
- r = Su, i = W, Su = n.stateNode.containerInfo, W = !0, Cu(e, t, n), Su = r, W = i;
+ r = xu, i = W, xu = n.stateNode.containerInfo, W = !0, Su(e, t, n), xu = r, W = i;
break;
case 0:
case 11:
case 14:
case 15:
- wl(2, n, t), ou || wl(4, n, t), Cu(e, t, n);
+ Cl(2, n, t), au || Cl(4, n, t), Su(e, t, n);
break;
case 1:
- ou || (Ol(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && El(n, t, r)), Cu(e, t, n);
+ au || (Dl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && Tl(n, t, r)), Su(e, t, n);
break;
case 21:
- Cu(e, t, n);
+ Su(e, t, n);
break;
case 22:
- ou = (r = ou) || n.memoizedState !== null, Cu(e, t, n), ou = r;
+ au = (r = au) || n.memoizedState !== null, Su(e, t, n), au = r;
break;
case 30:
- Ol(n, t), Cu(e, t, n);
+ Dl(n, t), Su(e, t, n);
break;
case 7:
- ou || Ol(n, t), Cu(e, t, n);
+ au || Dl(n, t), Su(e, t, n);
break;
- default: Cu(e, t, n);
+ default: Su(e, t, n);
}
}
- function Tu(e, t) {
+ function wu(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {
e = e.dehydrated;
try {
- Xh(e);
+ Yh(e);
} catch (e) {
- bf(t, t.return, e);
+ yf(t, t.return, e);
}
}
}
- function Eu(e, t) {
+ function Tu(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {
- Xh(e);
+ Yh(e);
} catch (e) {
- bf(t, t.return, e);
+ yf(t, t.return, e);
}
}
- function Du(e) {
+ function Eu(e) {
switch (e.tag) {
case 31:
case 13:
case 19:
var t = e.stateNode;
- return t === null && (t = e.stateNode = new lu()), t;
- case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new lu()), t;
+ return t === null && (t = e.stateNode = new cu()), t;
+ case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new cu()), t;
default: throw Error(i(435, e.tag));
}
}
- function Ou(e, t) {
- var n = Du(e);
+ function Du(e, t) {
+ var n = Eu(e);
t.forEach(function(t) {
if (!n.has(t)) {
n.add(t);
- var r = Tf.bind(null, e, t);
+ var r = wf.bind(null, e, t);
t.then(r, r);
}
});
}
- function ku(e, t, n) {
+ function Ou(e, t, n) {
var r = t.deletions;
if (r !== null) for (var a = 0; a < r.length; a++) {
var o = r[a], s = e, c = t, l = c;
a: for (; l !== null;) {
switch (l.tag) {
case 27:
- if (jp(l.type)) {
- Su = l.stateNode, W = !1;
+ if (Ap(l.type)) {
+ xu = l.stateNode, W = !1;
break a;
}
break;
case 5:
- Su = l.stateNode, W = !1;
+ xu = l.stateNode, W = !1;
break a;
case 3:
case 4:
- Su = l.stateNode.containerInfo, W = !0;
+ xu = l.stateNode.containerInfo, W = !0;
break a;
}
l = l.return;
}
- if (Su === null) throw Error(i(160));
- wu(s, c, o), Su = null, W = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
+ if (xu === null) throw Error(i(160));
+ Cu(s, c, o), xu = null, W = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
}
- if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) ju(t, e, n), t = t.sibling;
+ if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Au(t, e, n), t = t.sibling;
}
- var Au = null;
- function ju(e, t, n) {
+ var ku = null;
+ function Au(e, t, n) {
var r = e.alternate, a = e.flags;
switch (e.tag) {
case 0:
@@ -5704,41 +5704,41 @@ var k = /* @__PURE__ */ o(((e) => {
var s = r[o];
s.ref.impl = s.nextImpl;
}
- ku(t, e, n), Mu(e), a & 4 && (wl(3, e, e.return), Cl(3, e), wl(5, e, e.return));
+ Ou(t, e, n), ju(e), a & 4 && (Cl(3, e, e.return), Sl(3, e), Cl(5, e, e.return));
break;
case 1:
- ku(t, e, n), Mu(e), a & 512 && (ou || r === null || Ol(r, r.return)), a & 64 && au && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));
+ Ou(t, e, n), ju(e), a & 512 && (au || r === null || Dl(r, r.return)), a & 64 && iu && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));
break;
case 26:
- if (o = Au, ku(t, e, n), Mu(e), a & 512 && (ou || r === null || Ol(r, r.return)), a & 4) {
+ if (o = ku, Ou(t, e, n), ju(e), a & 512 && (au || r === null || Dl(r, r.return)), a & 4) {
if (a = r === null ? null : r.memoizedState, n = e.memoizedState, r === null) {
if (n === null) {
if (e.stateNode === null) {
- if (au) e.stateNode = xp(e.type, e.memoizedProps, t.containerInfo, e);
+ if (iu) e.stateNode = bp(e.type, e.memoizedProps, t.containerInfo, e);
else {
a: {
t = e.type, n = e.memoizedProps, a = o.ownerDocument || o;
b: switch (t) {
case "title":
- r = a.getElementsByTagName("title")[0], (!r || r[jt] || r[wt] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), dp(r, t, n), r[wt] = e, Rt(r), t = r;
+ r = a.getElementsByTagName("title")[0], (!r || r[jt] || r[wt] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), up(r, t, n), r[wt] = e, Rt(r), t = r;
break a;
case "link":
- if (o = eh("link", "href", a).get(t + (n.href || ""))) {
+ if (o = $m("link", "href", a).get(t + (n.href || ""))) {
for (s = 0; s < o.length; s++) if (r = o[s], r.getAttribute("href") === (n.href == null || n.href === "" ? null : n.href) && r.getAttribute("rel") === (n.rel == null ? null : n.rel) && r.getAttribute("title") === (n.title == null ? null : n.title) && r.getAttribute("crossorigin") === (n.crossOrigin == null ? null : n.crossOrigin)) {
o.splice(s, 1);
break b;
}
}
- r = a.createElement(t), dp(r, t, n), a.head.appendChild(r);
+ r = a.createElement(t), up(r, t, n), a.head.appendChild(r);
break;
case "meta":
- if (o = eh("meta", "content", a).get(t + (n.content || ""))) {
+ if (o = $m("meta", "content", a).get(t + (n.content || ""))) {
for (s = 0; s < o.length; s++) if (r = o[s], r.getAttribute("content") === (n.content == null ? null : "" + n.content) && r.getAttribute("name") === (n.name == null ? null : n.name) && r.getAttribute("property") === (n.property == null ? null : n.property) && r.getAttribute("http-equiv") === (n.httpEquiv == null ? null : n.httpEquiv) && r.getAttribute("charset") === (n.charSet == null ? null : n.charSet)) {
o.splice(s, 1);
break b;
}
}
- r = a.createElement(t), dp(r, t, n), a.head.appendChild(r);
+ r = a.createElement(t), up(r, t, n), a.head.appendChild(r);
break;
default: throw Error(i(468, t));
}
@@ -5746,78 +5746,78 @@ var k = /* @__PURE__ */ o(((e) => {
}
e.stateNode = t;
}
- } else au || th(o, e.type, e.stateNode);
- } else e.stateNode = Ym(o, n, e.memoizedProps);
- } else a === n ? n === null && e.stateNode !== null && Fl(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || ou || t.parentNode.removeChild(t)) : a.count--, n === null ? au || th(o, e.type, e.stateNode) : Ym(o, n, e.memoizedProps));
+ } else iu || eh(o, e.type, e.stateNode);
+ } else e.stateNode = Jm(o, n, e.memoizedProps);
+ } else a === n ? n === null && e.stateNode !== null && Pl(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || au || t.parentNode.removeChild(t)) : a.count--, n === null ? iu || eh(o, e.type, e.stateNode) : Jm(o, n, e.memoizedProps));
}
break;
case 27:
- ku(t, e, n), Mu(e), a & 512 && (ou || r === null || Ol(r, r.return)), r !== null && a & 4 && Fl(e, e.memoizedProps, r.memoizedProps);
+ Ou(t, e, n), ju(e), a & 512 && (au || r === null || Dl(r, r.return)), r !== null && a & 4 && Pl(e, e.memoizedProps, r.memoizedProps);
break;
case 5:
- if (o = su, su = !1, ku(t, e, n), su = o, Mu(e), a & 512 && (ou || r === null || Ol(r, r.return)), e.flags & 32) {
+ if (o = ou, ou = !1, Ou(t, e, n), ou = o, ju(e), a & 512 && (au || r === null || Dl(r, r.return)), e.flags & 32) {
t = e.stateNode;
try {
pn(t, ""), Jt = !0;
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
}
- a & 4 && e.stateNode != null && (t = e.memoizedProps, Fl(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (cu = !0);
+ a & 4 && e.stateNode != null && (t = e.memoizedProps, Pl(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (su = !0);
break;
case 6:
- if (ku(t, e, n), Mu(e), a & 4) {
+ if (Ou(t, e, n), ju(e), a & 4) {
if (e.stateNode === null) throw Error(i(162));
t = e.memoizedProps, n = e.stateNode;
try {
n.nodeValue = t, Jt = !0;
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
}
break;
case 3:
- if (Jt = !1, $m = null, o = Au, Au = km(t.containerInfo), ku(t, e, n), Au = o, Mu(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
- Xh(t.containerInfo);
+ if (Jt = !1, Qm = null, o = ku, ku = Om(t.containerInfo), Ou(t, e, n), ku = o, ju(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
+ Yh(t.containerInfo);
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
- cu && (cu = !1, Nu(e)), Jt = !1;
+ su && (su = !1, Mu(e)), Jt = !1;
break;
case 4:
- a = su, su = au, r = Yt(), o = Au, Au = km(e.stateNode.containerInfo), ku(t, e, n), Mu(e), Au = o, Jt && fu && (pu = !0), Jt = r, su = a;
+ a = ou, ou = iu, r = Yt(), o = ku, ku = Om(e.stateNode.containerInfo), Ou(t, e, n), ju(e), ku = o, Jt && du && (fu = !0), Jt = r, ou = a;
break;
case 12:
- ku(t, e, n), Mu(e);
+ Ou(t, e, n), ju(e);
break;
case 31:
- ku(t, e, n), Mu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Ou(e, t)));
+ Ou(t, e, n), ju(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Du(e, t)));
break;
case 13:
- ku(t, e, n), Mu(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (bd = He()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Ou(e, t)));
+ Ou(t, e, n), ju(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (yd = He()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Du(e, t)));
break;
case 22:
o = e.memoizedState !== null, s = r !== null && r.memoizedState !== null;
- var c = au, l = ou, u = su;
- au = c || o, su = u || o, ou = l || s, ku(t, e, n), ou = l, su = u, au = c, Mu(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || au || ou || (t = s || ou, n = au, r = ou, au = o || au, ou = t, Lu(e, 2), au = n, ou = r), !o && su || vu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Ou(e, n))));
+ var c = iu, l = au, u = ou;
+ iu = c || o, ou = u || o, au = l || s, Ou(t, e, n), au = l, ou = u, iu = c, ju(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || iu || au || (t = s || au, n = iu, r = au, iu = o || iu, au = t, Iu(e, 2), iu = n, au = r), !o && ou || _u(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Du(e, n))));
break;
case 19:
- ku(t, e, n), Mu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Ou(e, t)));
+ Ou(t, e, n), ju(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Du(e, t)));
break;
case 30:
- a & 512 && (ou || r === null || Ol(r, r.return)), a = Yt(), o = fu, s = (n & 335544064) === n, c = e.memoizedProps, fu = s && gi(c.default, c.update) !== "none", ku(t, e, n), Mu(e), s && r !== null && Jt && (e.flags |= 4), fu = o, Jt = a;
+ a & 512 && (au || r === null || Dl(r, r.return)), a = Yt(), o = du, s = (n & 335544064) === n, c = e.memoizedProps, du = s && hi(c.default, c.update) !== "none", Ou(t, e, n), ju(e), s && r !== null && Jt && (e.flags |= 4), du = o, Jt = a;
break;
case 21: break;
- case 7: a & 512 && (ou || r === null || Ol(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
- default: ku(t, e, n), Mu(e);
+ case 7: a & 512 && (au || r === null || Dl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
+ default: Ou(t, e, n), ju(e);
}
}
- function Mu(e) {
+ function ju(e) {
var t = e.flags;
if (t & 2) {
try {
for (var n, r = e.return; r !== null;) {
- if (Il(r)) {
+ if (Fl(r)) {
n = r;
break;
}
@@ -5825,11 +5825,11 @@ var k = /* @__PURE__ */ o(((e) => {
}
r = null;
for (var a = e.return; a !== null;) {
- if (Nl(a)) {
+ if (Ml(a)) {
var o = a.stateNode;
r === null ? r = [o] : r.push(o);
}
- if (Ml(a)) break;
+ if (jl(a)) break;
a = a.return;
}
var s = r;
@@ -5837,46 +5837,46 @@ var k = /* @__PURE__ */ o(((e) => {
switch (n.tag) {
case 27:
var c = n.stateNode;
- zl(e, Ll(e), c, s);
+ Rl(e, Il(e), c, s);
break;
case 5:
var l = n.stateNode;
- n.flags & 32 && (pn(l, ""), n.flags &= -33), zl(e, Ll(e), l, s);
+ n.flags & 32 && (pn(l, ""), n.flags &= -33), Rl(e, Il(e), l, s);
break;
case 3:
case 4:
var u = n.stateNode.containerInfo;
- Rl(e, Ll(e), u, s);
+ Ll(e, Il(e), u, s);
break;
default: throw Error(i(161));
}
} catch (t) {
- bf(e, e.return, t);
+ yf(e, e.return, t);
}
e.flags &= -3;
}
t & 4096 && (e.flags &= -4097);
}
- function Nu(e) {
+ function Mu(e) {
if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {
var t = e;
- Nu(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, Th = !0, t.reset(), Th = !1), e = e.sibling;
+ Mu(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, wh = !0, t.reset(), wh = !1), e = e.sibling;
}
}
- function Pu(e, t) {
- if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Fu(t, e), t = t.sibling;
- else iu(t, !1);
+ function Nu(e, t) {
+ if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Pu(t, e), t = t.sibling;
+ else ru(t, !1);
}
- function Fu(e, t) {
+ function Pu(e, t) {
var n = e.alternate;
- if (n === null) Xl(e, !1);
+ if (n === null) Yl(e, !1);
else switch (e.tag) {
case 3:
- if (mu = du = !1, Gl(), Pu(t, e), !du && !pu) {
- if (e = Wl, e !== null) for (var r = 0; r < e.length; r += 3) {
+ if (pu = uu = !1, Wl(), Nu(t, e), !uu && !fu) {
+ if (e = Ul, e !== null) for (var r = 0; r < e.length; r += 3) {
n = e[r];
var i = e[r + 1];
- Fp(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({
+ Pp(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({
opacity: [0, 0],
pointerEvents: ["none", "none"]
}, {
@@ -5899,33 +5899,33 @@ var k = /* @__PURE__ */ o(((e) => {
duration: 0,
fill: "forwards",
pseudoElement: "::view-transition"
- })), mu = !0;
+ })), pu = !0;
}
- Wl = null;
+ Ul = null;
break;
case 5:
- Pu(t, e);
+ Nu(t, e);
break;
case 4:
- r = du, du = !1, Pu(t, e), du && (pu = !0), du = r;
+ r = uu, uu = !1, Nu(t, e), uu && (fu = !0), uu = r;
break;
case 22:
- e.memoizedState === null && (n.memoizedState === null ? Pu(t, e) : Xl(e, !1));
+ e.memoizedState === null && (n.memoizedState === null ? Nu(t, e) : Yl(e, !1));
break;
case 30:
- r = du, i = Gl(), du = !1, Pu(t, e), du && (e.flags |= 4);
+ r = uu, i = Wl(), uu = !1, Nu(t, e), uu && (e.flags |= 4);
var a = e.memoizedProps, o = e.stateNode;
- t = mi(a, o), o = mi(n.memoizedProps, o);
- var s = gi(a.default, a.update);
- s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Kl = 0, t = ru(e, n, t, o, s, a, !0), Kl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (zd(e, e.memoizedProps.onUpdate), Wl = i) : i !== null && (i.push.apply(i, Wl), Wl = i), du = e.flags & 32 ? !0 : r;
+ t = pi(a, o), o = pi(n.memoizedProps, o);
+ var s = hi(a.default, a.update);
+ s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Gl = 0, t = nu(e, n, t, o, s, a, !0), Gl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (Rd(e, e.memoizedProps.onUpdate), Ul = i) : i !== null && (i.push.apply(i, Ul), Ul = i), uu = e.flags & 32 ? !0 : r;
break;
- default: Pu(t, e);
+ default: Nu(t, e);
}
}
- function Iu(e, t) {
- if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) _u(e, t.alternate, t), t = t.sibling;
+ function Fu(e, t) {
+ if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) gu(e, t.alternate, t), t = t.sibling;
}
- function Lu(e, t) {
+ function Iu(e, t) {
for (e = e.child; e !== null;) {
var n = e, r = t;
switch (n.tag) {
@@ -5933,218 +5933,218 @@ var k = /* @__PURE__ */ o(((e) => {
case 11:
case 14:
case 15:
- wl(4, n, n.return), Lu(n, r);
+ Cl(4, n, n.return), Iu(n, r);
break;
case 1:
- Ol(n, n.return);
+ Dl(n, n.return);
var i = n.stateNode;
- typeof i.componentWillUnmount == "function" && El(n, n.return, i), Lu(n, r);
+ typeof i.componentWillUnmount == "function" && Tl(n, n.return, i), Iu(n, r);
break;
- case 27: r & 2 && Tm(n.stateNode, n.type, n.memoizedProps);
+ case 27: r & 2 && wm(n.stateNode, n.type, n.memoizedProps);
case 5:
- Ol(n, n.return), n.tag !== 5 && n.tag !== 27 || jl(n), Lu(n, r);
+ Dl(n, n.return), n.tag !== 5 && n.tag !== 27 || Al(n), Iu(n, r);
break;
case 6:
- jl(n);
+ Al(n);
break;
case 26:
- Ol(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || ou || i.parentNode.removeChild(i), Lu(n, r);
+ Dl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || au || i.parentNode.removeChild(i), Iu(n, r);
break;
case 22:
- n.memoizedState === null && Lu(n, r);
+ n.memoizedState === null && Iu(n, r);
break;
case 30:
- Ol(n, n.return), Lu(n, r);
+ Dl(n, n.return), Iu(n, r);
break;
- case 7: Ol(n, n.return);
- default: Lu(n, r);
+ case 7: Dl(n, n.return);
+ default: Iu(n, r);
}
e = e.sibling;
}
}
- function Ru(e, t, n) {
+ function Lu(e, t, n) {
for (n = t.subtreeFlags & 8772 ? n : n & -2, t = t.child; t !== null;) {
var r = t.alternate, i = e, a = t, o = a.flags, s = !!(n & 1);
switch (a.tag) {
case 0:
case 11:
case 15:
- Ru(i, a, n), Cl(4, a);
+ Lu(i, a, n), Sl(4, a);
break;
case 1:
- if (Ru(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
+ if (Lu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
i.componentDidMount();
} catch (e) {
- bf(r, r.return, e);
+ yf(r, r.return, e);
}
if (r = a, i = r.updateQueue, i !== null) {
var c = r.stateNode;
try {
var l = i.shared.hiddenCallbacks;
- if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) So(l[i], c);
+ if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) xo(l[i], c);
} catch (e) {
- bf(r, r.return, e);
+ yf(r, r.return, e);
}
}
- s && o & 64 && Tl(a), Dl(a, a.return);
+ s && o & 64 && wl(a), El(a, a.return);
break;
- case 27: n & 2 && Bl(a);
+ case 27: n & 2 && zl(a);
case 5:
- a.tag !== 5 && a.tag !== 27 || Al(a), Ru(i, a, n), s && r === null && o & 4 && Pl(a), Dl(a, a.return);
+ a.tag !== 5 && a.tag !== 27 || kl(a), Lu(i, a, n), s && r === null && o & 4 && Nl(a), El(a, a.return);
break;
case 6:
- Al(a);
+ kl(a);
break;
case 26:
- c = a.stateNode, a.memoizedState !== null || c === null || au || th(km(c.ownerDocument), a.type, c), Ru(i, a, n), s && r === null && o & 4 && Pl(a), Dl(a, a.return);
+ c = a.stateNode, a.memoizedState !== null || c === null || iu || eh(Om(c.ownerDocument), a.type, c), Lu(i, a, n), s && r === null && o & 4 && Nl(a), El(a, a.return);
break;
case 12:
- Ru(i, a, n);
+ Lu(i, a, n);
break;
case 31:
- Ru(i, a, n), s && o & 4 && Tu(i, a);
+ Lu(i, a, n), s && o & 4 && wu(i, a);
break;
case 13:
- Ru(i, a, n), s && o & 4 && Eu(i, a);
+ Lu(i, a, n), s && o & 4 && Tu(i, a);
break;
case 22:
- a.memoizedState === null && Ru(i, a, n), Dl(a, a.return);
+ a.memoizedState === null && Lu(i, a, n), El(a, a.return);
break;
case 30:
- Ru(i, a, n), Dl(a, a.return);
+ Lu(i, a, n), El(a, a.return);
break;
- case 7: Dl(a, a.return);
- default: Ru(i, a, n);
+ case 7: El(a, a.return);
+ default: Lu(i, a, n);
}
t = t.sibling;
}
}
- function zu(e, t) {
+ function Ru(e, t) {
var n = null;
- e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && e.refCount++, n != null && ja(n));
+ e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && e.refCount++, n != null && Aa(n));
}
- function Bu(e, t) {
- e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && ja(e));
+ function zu(e, t) {
+ e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Aa(e));
}
- function Vu(e, t, n, r) {
+ function Bu(e, t, n, r) {
var i = (n & 335544064) === n;
- if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Hu(e, t, n, r), t = t.sibling;
- else i && nu(t);
+ if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Vu(e, t, n, r), t = t.sibling;
+ else i && tu(t);
}
- function Hu(e, t, n, r) {
+ function Vu(e, t, n, r) {
var i = (n & 335544064) === n;
- i && t.alternate === null && t.return !== null && t.return.alternate !== null && tu(t);
+ i && t.alternate === null && t.return !== null && t.return.alternate !== null && eu(t);
var a = t.flags;
switch (t.tag) {
case 0:
case 11:
case 15:
- Vu(e, t, n, r), a & 2048 && Cl(9, t);
+ Bu(e, t, n, r), a & 2048 && Sl(9, t);
break;
case 1:
- Vu(e, t, n, r);
+ Bu(e, t, n, r);
break;
case 3:
- Vu(e, t, n, r), i && mu && (e = e.containerInfo, e = e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, e.style.viewTransitionName === "root" && (e.style.viewTransitionName = ""), e = e.ownerDocument.documentElement, e !== null && e.style.viewTransitionName === "none" && (e.style.viewTransitionName = "")), a & 2048 && (a = null, t.alternate !== null && (a = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== a && (t.refCount++, a != null && ja(a)));
+ Bu(e, t, n, r), i && pu && (e = e.containerInfo, e = e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, e.style.viewTransitionName === "root" && (e.style.viewTransitionName = ""), e = e.ownerDocument.documentElement, e !== null && e.style.viewTransitionName === "none" && (e.style.viewTransitionName = "")), a & 2048 && (a = null, t.alternate !== null && (a = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== a && (t.refCount++, a != null && Aa(a)));
break;
case 12:
if (a & 2048) {
- Vu(e, t, n, r), a = t.stateNode;
+ Bu(e, t, n, r), a = t.stateNode;
try {
var o = t.memoizedProps, s = o.id, c = o.onPostCommit;
typeof c == "function" && c(s, t.alternate === null ? "mount" : "update", a.passiveEffectDuration, -0);
} catch (e) {
- bf(t, t.return, e);
+ yf(t, t.return, e);
}
- } else Vu(e, t, n, r);
+ } else Bu(e, t, n, r);
break;
case 31:
- Vu(e, t, n, r);
+ Bu(e, t, n, r);
break;
case 13:
- Vu(e, t, n, r);
+ Bu(e, t, n, r);
break;
case 23: break;
case 22:
- o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && tu(t), o._visibility & 2 ? Vu(e, t, n, r) : (o._visibility |= 2, Uu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && tu(s), o._visibility & 2 ? Vu(e, t, n, r) : Wu(e, t)), a & 2048 && zu(s, t);
+ o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && eu(t), o._visibility & 2 ? Bu(e, t, n, r) : (o._visibility |= 2, Hu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && eu(s), o._visibility & 2 ? Bu(e, t, n, r) : Uu(e, t)), a & 2048 && Ru(s, t);
break;
case 24:
- Vu(e, t, n, r), a & 2048 && Bu(t.alternate, t);
+ Bu(e, t, n, r), a & 2048 && zu(t.alternate, t);
break;
case 30:
- i && (a = t.alternate, a !== null && (U(a.child, !0), U(t.child, !0))), Vu(e, t, n, r);
+ i && (a = t.alternate, a !== null && (U(a.child, !0), U(t.child, !0))), Bu(e, t, n, r);
break;
- default: Vu(e, t, n, r);
+ default: Bu(e, t, n, r);
}
}
- function Uu(e, t, n, r, i) {
+ function Hu(e, t, n, r, i) {
for (i &&= !!(t.subtreeFlags & 10256) || !1, t = t.child; t !== null;) {
var a = e, o = t, s = n, c = r, l = o.flags;
switch (o.tag) {
case 0:
case 11:
case 15:
- Uu(a, o, s, c, i), Cl(8, o);
+ Hu(a, o, s, c, i), Sl(8, o);
break;
case 23: break;
case 22:
var u = o.stateNode;
- o.memoizedState === null ? (u._visibility |= 2, Uu(a, o, s, c, i)) : u._visibility & 2 ? Uu(a, o, s, c, i) : Wu(a, o), i && l & 2048 && zu(o.alternate, o);
+ o.memoizedState === null ? (u._visibility |= 2, Hu(a, o, s, c, i)) : u._visibility & 2 ? Hu(a, o, s, c, i) : Uu(a, o), i && l & 2048 && Ru(o.alternate, o);
break;
case 24:
- Uu(a, o, s, c, i), i && l & 2048 && Bu(o.alternate, o);
+ Hu(a, o, s, c, i), i && l & 2048 && zu(o.alternate, o);
break;
- default: Uu(a, o, s, c, i);
+ default: Hu(a, o, s, c, i);
}
t = t.sibling;
}
}
- function Wu(e, t) {
+ function Uu(e, t) {
if (t.subtreeFlags & 10256) for (t = t.child; t !== null;) {
var n = e, r = t, i = r.flags;
switch (r.tag) {
case 22:
- Wu(n, r), i & 2048 && zu(r.alternate, r);
+ Uu(n, r), i & 2048 && Ru(r.alternate, r);
break;
case 24:
- Wu(n, r), i & 2048 && Bu(r.alternate, r);
+ Uu(n, r), i & 2048 && zu(r.alternate, r);
break;
- default: Wu(n, r);
+ default: Uu(n, r);
}
t = t.sibling;
}
}
- var Gu = 8192;
- function Ku(e, t, n) {
- if (e.subtreeFlags & Gu) for (e = e.child; e !== null;) qu(e, t, n), e = e.sibling;
+ var Wu = 8192;
+ function Gu(e, t, n) {
+ if (e.subtreeFlags & Wu) for (e = e.child; e !== null;) Ku(e, t, n), e = e.sibling;
}
- function qu(e, t, n) {
+ function Ku(e, t, n) {
switch (e.tag) {
case 26:
- Ku(e, t, n), e.flags & Gu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && oh(n, e)) : sh(n, Au, e.memoizedState, e.memoizedProps));
+ Gu(e, t, n), e.flags & Wu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && ah(n, e)) : oh(n, ku, e.memoizedState, e.memoizedProps));
break;
case 5:
- Ku(e, t, n), e.flags & Gu && (e = e.stateNode, (t & 335544128) === t && oh(n, e));
+ Gu(e, t, n), e.flags & Wu && (e = e.stateNode, (t & 335544128) === t && ah(n, e));
break;
case 3:
case 4:
- var r = Au;
- Au = km(e.stateNode.containerInfo), Ku(e, t, n), Au = r;
+ var r = ku;
+ ku = Om(e.stateNode.containerInfo), Gu(e, t, n), ku = r;
break;
case 22:
- e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Gu, Gu = 16777216, Ku(e, t, n), Gu = r) : Ku(e, t, n));
+ e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Wu, Wu = 16777216, Gu(e, t, n), Wu = r) : Gu(e, t, n));
break;
case 30:
- if ((e.flags & Gu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {
+ if ((e.flags & Wu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {
var i = e.stateNode;
- i.paired = null, Hl === null && (Hl = /* @__PURE__ */ new Map()), Hl.set(r, i);
+ i.paired = null, Vl === null && (Vl = /* @__PURE__ */ new Map()), Vl.set(r, i);
}
- Ku(e, t, n);
+ Gu(e, t, n);
break;
- default: Ku(e, t, n);
+ default: Gu(e, t, n);
}
}
- function Ju(e) {
+ function qu(e) {
var t = e.alternate;
if (t !== null && (e = t.child, e !== null)) {
t.child = null;
@@ -6153,69 +6153,69 @@ var k = /* @__PURE__ */ o(((e) => {
while (e !== null);
}
}
- function Yu(e) {
+ function Ju(e) {
var t = e.deletions;
if (e.flags & 16) {
if (t !== null) for (var n = 0; n < t.length; n++) {
var r = t[n];
- uu = r, Qu(r, e);
+ lu = r, Zu(r, e);
}
- Ju(e);
+ qu(e);
}
- if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Xu(e), e = e.sibling;
+ if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Yu(e), e = e.sibling;
}
- function Xu(e) {
+ function Yu(e) {
switch (e.tag) {
case 0:
case 11:
case 15:
- Yu(e), e.flags & 2048 && wl(9, e, e.return);
+ Ju(e), e.flags & 2048 && Cl(9, e, e.return);
break;
case 3:
- Yu(e);
+ Ju(e);
break;
case 12:
- Yu(e);
+ Ju(e);
break;
case 22:
var t = e.stateNode;
- e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Zu(e)) : Yu(e);
+ e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Xu(e)) : Ju(e);
break;
- default: Yu(e);
+ default: Ju(e);
}
}
- function Zu(e) {
+ function Xu(e) {
var t = e.deletions;
if (e.flags & 16) {
if (t !== null) for (var n = 0; n < t.length; n++) {
var r = t[n];
- uu = r, Qu(r, e);
+ lu = r, Zu(r, e);
}
- Ju(e);
+ qu(e);
}
for (e = e.child; e !== null;) {
switch (t = e, t.tag) {
case 0:
case 11:
case 15:
- wl(8, t, t.return), Zu(t);
+ Cl(8, t, t.return), Xu(t);
break;
case 22:
- n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Zu(t));
+ n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Xu(t));
break;
- default: Zu(t);
+ default: Xu(t);
}
e = e.sibling;
}
}
- function Qu(e, t) {
- for (; uu !== null;) {
- var n = uu;
+ function Zu(e, t) {
+ for (; lu !== null;) {
+ var n = lu;
switch (n.tag) {
case 0:
case 11:
case 15:
- wl(8, n, t);
+ Cl(8, n, t);
break;
case 23:
case 22:
@@ -6224,63 +6224,63 @@ var k = /* @__PURE__ */ o(((e) => {
r != null && r.refCount++;
}
break;
- case 24: ja(n.memoizedState.cache);
+ case 24: Aa(n.memoizedState.cache);
}
- if (r = n.child, r !== null) r.return = n, uu = r;
- else a: for (n = e; uu !== null;) {
- r = uu;
+ if (r = n.child, r !== null) r.return = n, lu = r;
+ else a: for (n = e; lu !== null;) {
+ r = lu;
var i = r.sibling, a = r.return;
- if (xu(r), r === n) {
- uu = null;
+ if (bu(r), r === n) {
+ lu = null;
break a;
}
if (i !== null) {
- i.return = a, uu = i;
+ i.return = a, lu = i;
break a;
}
- uu = a;
+ lu = a;
}
}
}
- var $u = {
+ var Qu = {
getCacheForType: function(e) {
- var t = Ca(ka), n = t.data.get(e);
+ var t = Sa(Oa), n = t.data.get(e);
return n === void 0 && (n = e(), t.data.set(e, n)), n;
},
cacheSignal: function() {
- return Ca(ka).controller.signal;
+ return Sa(Oa).controller.signal;
}
- }, ed = typeof WeakMap == "function" ? WeakMap : Map, td = 0, nd = null, rd = null, id = 0, ad = 0, od = null, sd = !1, cd = !1, ld = !1, ud = 0, dd = 0, fd = 0, pd = 0, md = 0, hd = 0, gd = 0, _d = null, vd = null, yd = !1, bd = 0, xd = 0, Sd = Infinity, Cd = null, wd = null, Td = 0, Ed = null, Dd = null, Od = 0, kd = 0, Ad = null, jd = null, Md = null, Nd = null, Pd = null, Fd = 0, Id = null;
- function Ld() {
- return td & 2 && id !== 0 ? id & -id : me.T === null ? xt() : Vf();
+ }, $u = typeof WeakMap == "function" ? WeakMap : Map, ed = 0, td = null, nd = null, rd = 0, id = 0, ad = null, od = !1, sd = !1, cd = !1, ld = 0, ud = 0, dd = 0, fd = 0, pd = 0, md = 0, hd = 0, gd = null, _d = null, vd = !1, yd = 0, bd = 0, xd = Infinity, Sd = null, Cd = null, wd = 0, Td = null, Ed = null, Dd = 0, Od = 0, kd = null, Ad = null, jd = null, Md = null, Nd = null, Pd = 0, Fd = null;
+ function Id() {
+ return ed & 2 && rd !== 0 ? rd & -rd : me.T === null ? xt() : Bf();
}
- function Rd() {
- if (hd === 0) {
- if (!(id & 536870912) || na) {
+ function Ld() {
+ if (md === 0) {
+ if (!(rd & 536870912) || ta) {
var e = at;
- at <<= 1, !(at & 3932160) && (at = 262144), hd = e;
- } else hd = 536870912;
+ at <<= 1, !(at & 3932160) && (at = 262144), md = e;
+ } else md = 536870912;
}
- return e = ko.current, e !== null && (e.flags |= 32), hd;
+ return e = Oo.current, e !== null && (e.flags |= 32), md;
}
- function zd(e, t) {
+ function Rd(e, t) {
if (t != null) {
var n = e.stateNode, r = n.ref;
- r === null && (r = n.ref = Up(mi(e.memoizedProps, n))), Nd === null && (Nd = []), Nd.push(t.bind(null, r));
+ r === null && (r = n.ref = Hp(pi(e.memoizedProps, n))), Md === null && (Md = []), Md.push(t.bind(null, r));
}
}
- function Bd(e, t, n) {
- (e === nd && (ad === 2 || ad === 9) || e.cancelPendingCommit !== null) && (qd(e, 0), Wd(e, id, hd, !1)), mt(e, n), td & 2 && e === nd || (e === nd && (!(td & 2) && (pd |= n), dd === 4 && Wd(e, id, hd, !1)), Nf(e));
+ function zd(e, t, n) {
+ (e === td && (id === 2 || id === 9) || e.cancelPendingCommit !== null) && (Kd(e, 0), Ud(e, rd, md, !1)), mt(e, n), ed & 2 && e === td || (e === td && (!(ed & 2) && (fd |= n), ud === 4 && Ud(e, rd, md, !1)), Mf(e));
}
- function Vd(e, t, n) {
- if (td & 6) throw Error(i(327));
- var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || lt(e, t), a = r ? tf(e, t) : $d(e, t, !0), o = r;
+ function Bd(e, t, n) {
+ if (ed & 6) throw Error(i(327));
+ var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || lt(e, t), a = r ? ef(e, t) : Qd(e, t, !0), o = r;
do {
if (a === 0) {
- cd && !r && Wd(e, t, 0, !1);
+ sd && !r && Ud(e, t, 0, !1);
break;
}
- if (n = e.current.alternate, o && !Ud(n)) a = $d(e, t, !1), o = !1;
+ if (n = e.current.alternate, o && !Hd(n)) a = Qd(e, t, !1), o = !1;
else {
if (a === 2) {
if (o = t, e.errorRecoveryDisabledLanes & o) var s = 0;
@@ -6289,14 +6289,14 @@ var k = /* @__PURE__ */ o(((e) => {
t = s;
a: {
var c = e;
- a = _d;
+ a = gd;
var l = c.current.memoizedState.isDehydrated;
- if (l && (qd(c, s).flags |= 256), s = $d(c, s, !1), s !== 2 && s !== 6) {
- if (ld && !l) {
- c.errorRecoveryDisabledLanes |= o, pd |= o, a = 4;
+ if (l && (Kd(c, s).flags |= 256), s = Qd(c, s, !1), s !== 2 && s !== 6) {
+ if (cd && !l) {
+ c.errorRecoveryDisabledLanes |= o, fd |= o, a = 4;
break a;
}
- o = vd, vd = a, o !== null && (vd === null ? vd = o : vd.push.apply(vd, o));
+ o = _d, _d = a, o !== null && (_d === null ? _d = o : _d.push.apply(_d, o));
}
a = s;
}
@@ -6304,7 +6304,7 @@ var k = /* @__PURE__ */ o(((e) => {
}
}
if (a === 1) {
- qd(e, 0), Wd(e, t, 0, !0);
+ Kd(e, 0), Ud(e, t, 0, !0);
break;
}
a: {
@@ -6313,28 +6313,28 @@ var k = /* @__PURE__ */ o(((e) => {
case 1: throw Error(i(345));
case 4: if ((t & 4194048) !== t && (t & 62914560) !== t) break;
case 6:
- Wd(r, t, hd, !sd);
+ Ud(r, t, md, !od);
break a;
case 2:
- vd = null;
+ _d = null;
break;
case 3:
case 5: break;
default: throw Error(i(329));
}
- if ((t & 62914560) === t && (a = bd + 300 - He(), 10 < a)) {
- if (Wd(r, t, hd, !sd), ct(r, 0, !0) !== 0) break a;
- Od = t, r.timeoutHandle = Tp(Hd.bind(null, r, n, vd, Cd, yd, t, hd, pd, gd, sd, o, "Throttled", -0, 0), a);
+ if ((t & 62914560) === t && (a = yd + 300 - He(), 10 < a)) {
+ if (Ud(r, t, md, !od), ct(r, 0, !0) !== 0) break a;
+ Dd = t, r.timeoutHandle = wp(Vd.bind(null, r, n, _d, Sd, vd, t, md, fd, hd, od, o, "Throttled", -0, 0), a);
break a;
}
- Hd(r, n, vd, Cd, yd, t, hd, pd, gd, sd, o, null, -0, 0);
+ Vd(r, n, _d, Sd, vd, t, md, fd, hd, od, o, null, -0, 0);
}
break;
}
} while (1);
- Nf(e);
+ Mf(e);
}
- function Hd(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
+ function Vd(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
e.timeoutHandle = -1;
var m = t.subtreeFlags, h = (a & 335544064) === a;
d = null, (h || m & 8192 || (m & 16785408) == 16785408) && (d = {
@@ -6346,16 +6346,16 @@ var k = /* @__PURE__ */ o(((e) => {
waitingForImages: !0,
waitingForViewTransition: !1,
unsuspend: xn
- }, Hl = null, qu(t, a, d), h && (m = d, h = e.containerInfo, h = (h.nodeType === 9 ? h : h.ownerDocument).__reactViewTransition, h != null && (m.count++, m.waitingForViewTransition = !0, m = dh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? bd - He() : (a & 4194048) === a ? xd - He() : 0, m = lh(d, m), m !== null) ? (Od = a, e.cancelPendingCommit = m(lf.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Wd(e, a, o, !l)) : lf(e, t, a, n, r, i, o, s, c, l, u, d);
+ }, Vl = null, Ku(t, a, d), h && (m = d, h = e.containerInfo, h = (h.nodeType === 9 ? h : h.ownerDocument).__reactViewTransition, h != null && (m.count++, m.waitingForViewTransition = !0, m = uh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? yd - He() : (a & 4194048) === a ? bd - He() : 0, m = ch(d, m), m !== null) ? (Dd = a, e.cancelPendingCommit = m(cf.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Ud(e, a, o, !l)) : cf(e, t, a, n, r, i, o, s, c, l, u, d);
}
- function Ud(e) {
+ function Hd(e) {
for (var t = e;;) {
var n = t.tag;
if ((n === 0 || n === 11 || n === 15) && t.flags & 16384 && (n = t.updateQueue, n !== null && (n = n.stores, n !== null))) for (var r = 0; r < n.length; r++) {
var i = n[r], a = i.getSnapshot;
i = i.value;
try {
- if (!Rr(a(), i)) return !1;
+ if (!Lr(a(), i)) return !1;
} catch {
return !1;
}
@@ -6372,281 +6372,281 @@ var k = /* @__PURE__ */ o(((e) => {
}
return !0;
}
- function Wd(e, t, n, r) {
- t = ut(e, t), t &= ~md, t &= ~pd, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
+ function Ud(e, t, n, r) {
+ t = ut(e, t), t &= ~pd, t &= ~fd, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
for (var i = t; 0 < i;) {
var a = 31 - et(i), o = 1 << a;
r[a] = -1, i &= ~o;
}
n !== 0 && gt(e, n, t);
}
- function Gd() {
- return td & 6 ? !0 : (Pf(0, !1), !1);
+ function Wd() {
+ return ed & 6 ? !0 : (Nf(0, !1), !1);
}
- function Kd() {
- if (rd !== null) {
- if (ad === 0) var e = rd.return;
- else e = rd, ha = ma = null, as(e), ro = null, io = 0, e = rd;
- for (; e !== null;) Sl(e.alternate, e), e = e.return;
- rd = null;
+ function Gd() {
+ if (nd !== null) {
+ if (id === 0) var e = nd.return;
+ else e = nd, ma = pa = null, is(e), no = null, ro = 0, e = nd;
+ for (; e !== null;) xl(e.alternate, e), e = e.return;
+ nd = null;
}
}
- function qd(e, t) {
+ function Kd(e, t) {
var n = e.timeoutHandle;
- return n !== -1 && (e.timeoutHandle = -1, Ep(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), Od = 0, Kd(), nd = e, rd = n = ji(e.current, null), id = t, ad = 0, od = null, sd = !1, cd = lt(e, t), ld = !1, gd = hd = md = pd = fd = dd = 0, vd = _d = null, yd = !1, ud = ut(e, t), xi(), n;
+ return n !== -1 && (e.timeoutHandle = -1, Tp(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), Dd = 0, Gd(), td = e, nd = n = Ai(e.current, null), rd = t, id = 0, ad = null, od = !1, sd = lt(e, t), cd = !1, hd = md = pd = fd = dd = ud = 0, _d = gd = null, vd = !1, ld = ut(e, t), bi(), n;
+ }
+ function qd(e, t) {
+ Bo = null, me.H = mc, t === Ka || t === Ja ? (t = eo(), id = 3) : t === qa ? (t = eo(), id = 4) : id = t === Mc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, ad = t, nd === null && (ud = 1, Ec(e, Ri(t, e.current)));
}
- function Jd(e, t) {
- Vo = null, me.H = hc, t === qa || t === Ya ? (t = to(), ad = 3) : t === Ja ? (t = to(), ad = 4) : ad = t === Nc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, od = t, rd === null && (dd = 1, Dc(e, zi(t, e.current)));
+ function Jd() {
+ var e = Oo.current;
+ return e === null ? !0 : (rd & 4194048) === rd ? ko === null : (rd & 62914560) === rd || rd & 536870912 ? e === ko : !1;
}
function Yd() {
- var e = ko.current;
- return e === null ? !0 : (id & 4194048) === id ? Ao === null : (id & 62914560) === id || id & 536870912 ? e === Ao : !1;
- }
- function Xd() {
var e = me.H;
- return me.H = hc, e === null ? hc : e;
+ return me.H = mc, e === null ? mc : e;
}
- function Zd() {
+ function Xd() {
var e = me.A;
- return me.A = $u, e;
- }
- function Qd() {
- dd = 4, sd || (id & 4194048) !== id && ko.current !== null || (cd = !0), !(fd & 134217727) && !(pd & 134217727) || nd === null || Wd(nd, id, hd, !1);
+ return me.A = Qu, e;
}
- function $d(e, t, n) {
- var r = td;
- td |= 2;
- var i = Xd(), a = Zd();
- (nd !== e || id !== t) && (Cd = null, qd(e, t)), t = !1;
- var o = dd;
+ function Zd() {
+ ud = 4, od || (rd & 4194048) !== rd && Oo.current !== null || (sd = !0), !(dd & 134217727) && !(fd & 134217727) || td === null || Ud(td, rd, md, !1);
+ }
+ function Qd(e, t, n) {
+ var r = ed;
+ ed |= 2;
+ var i = Yd(), a = Xd();
+ (td !== e || rd !== t) && (Sd = null, Kd(e, t)), t = !1;
+ var o = ud;
a: do
try {
- if (ad !== 0 && rd !== null) {
- var s = rd, c = od;
- switch (ad) {
+ if (id !== 0 && nd !== null) {
+ var s = nd, c = ad;
+ switch (id) {
case 8:
- Kd(), o = 6;
+ Gd(), o = 6;
break a;
case 3:
case 2:
case 9:
case 6:
- ko.current === null && (t = !0);
- var l = ad;
- if (ad = 0, od = null, of(e, s, c, l), n && cd) {
+ Oo.current === null && (t = !0);
+ var l = id;
+ if (id = 0, ad = null, af(e, s, c, l), n && sd) {
o = 0;
break a;
}
break;
- default: l = ad, ad = 0, od = null, of(e, s, c, l);
+ default: l = id, id = 0, ad = null, af(e, s, c, l);
}
}
- ef(), o = dd;
+ $d(), o = ud;
break;
} catch (t) {
- Jd(e, t);
+ qd(e, t);
}
while (1);
- return t && e.shellSuspendCounter++, ha = ma = null, td = r, me.H = i, me.A = a, rd === null && (nd = null, id = 0, xi()), o;
+ return t && e.shellSuspendCounter++, ma = pa = null, ed = r, me.H = i, me.A = a, nd === null && (td = null, rd = 0, bi()), o;
}
- function ef() {
- for (; rd !== null;) rf(rd);
+ function $d() {
+ for (; nd !== null;) nf(nd);
}
- function tf(e, t) {
- var n = td;
- td |= 2;
- var r = Xd(), a = Zd();
- nd !== e || id !== t ? (Cd = null, Sd = He() + 500, qd(e, t)) : cd = lt(e, t);
+ function ef(e, t) {
+ var n = ed;
+ ed |= 2;
+ var r = Yd(), a = Xd();
+ td !== e || rd !== t ? (Sd = null, xd = He() + 500, Kd(e, t)) : sd = lt(e, t);
a: do
try {
- if (ad !== 0 && rd !== null) {
- t = rd;
- var o = od;
- b: switch (ad) {
+ if (id !== 0 && nd !== null) {
+ t = nd;
+ var o = ad;
+ b: switch (id) {
case 1:
- ad = 0, od = null, of(e, t, o, 1);
+ id = 0, ad = null, af(e, t, o, 1);
break;
case 2:
case 9:
- if (Za(o)) {
- ad = 0, od = null, af(t);
+ if (Xa(o)) {
+ id = 0, ad = null, rf(t);
break;
}
t = function() {
- ad !== 2 && ad !== 9 || nd !== e || (ad = 7), Nf(e);
+ id !== 2 && id !== 9 || td !== e || (id = 7), Mf(e);
}, o.then(t, t);
break a;
case 3:
- ad = 7;
+ id = 7;
break a;
case 4:
- ad = 5;
+ id = 5;
break a;
case 7:
- Za(o) ? (ad = 0, od = null, af(t)) : (ad = 0, od = null, of(e, t, o, 7));
+ Xa(o) ? (id = 0, ad = null, rf(t)) : (id = 0, ad = null, af(e, t, o, 7));
break;
case 5:
var s = null;
- switch (rd.tag) {
- case 26: s = rd.memoizedState;
+ switch (nd.tag) {
+ case 26: s = nd.memoizedState;
case 5:
case 27:
- var c = rd;
- if (s ? ih(s) : c.stateNode.complete) {
- ad = 0, od = null;
+ var c = nd;
+ if (s ? rh(s) : c.stateNode.complete) {
+ id = 0, ad = null;
var l = c.sibling;
- if (l !== null) rd = l;
+ if (l !== null) nd = l;
else {
var u = c.return;
- u === null ? rd = null : (rd = u, sf(u));
+ u === null ? nd = null : (nd = u, of(u));
}
break b;
}
}
- ad = 0, od = null, of(e, t, o, 5);
+ id = 0, ad = null, af(e, t, o, 5);
break;
case 6:
- ad = 0, od = null, of(e, t, o, 6);
+ id = 0, ad = null, af(e, t, o, 6);
break;
case 8:
- Kd(), dd = 6;
+ Gd(), ud = 6;
break a;
default: throw Error(i(462));
}
}
- nf();
+ tf();
break;
} catch (t) {
- Jd(e, t);
+ qd(e, t);
}
while (1);
- return ha = ma = null, me.H = r, me.A = a, td = n, rd === null ? (nd = null, id = 0, xi(), dd) : 0;
+ return ma = pa = null, me.H = r, me.A = a, ed = n, nd === null ? (td = null, rd = 0, bi(), ud) : 0;
}
- function nf() {
- for (; rd !== null && !Be();) rf(rd);
+ function tf() {
+ for (; nd !== null && !Be();) nf(nd);
}
- function rf(e) {
- var t = pl(e.alternate, e, ud);
- e.memoizedProps = e.pendingProps, t === null ? sf(e) : rd = t;
+ function nf(e) {
+ var t = fl(e.alternate, e, ld);
+ e.memoizedProps = e.pendingProps, t === null ? of(e) : nd = t;
}
- function af(e) {
+ function rf(e) {
var t = e, n = t.alternate;
switch (t.tag) {
case 15:
case 0:
- t = qc(n, t, t.pendingProps, t.type, void 0, id);
+ t = Kc(n, t, t.pendingProps, t.type, void 0, rd);
break;
case 11:
- t = qc(n, t, t.pendingProps, t.type.render, t.ref, id);
+ t = Kc(n, t, t.pendingProps, t.type.render, t.ref, rd);
break;
case 5:
- as(t);
+ is(t);
var r = t;
- r === ea && (na ? (ca(r), r.tag === 5 && r.stateNode != null && (ta = r.stateNode)) : (ca(r), na = !0));
- default: Sl(n, t), t = rd = Mi(t, ud), t = pl(n, t, ud);
+ r === $i && (ta ? (sa(r), r.tag === 5 && r.stateNode != null && (ea = r.stateNode)) : (sa(r), ta = !0));
+ default: xl(n, t), t = nd = ji(t, ld), t = fl(n, t, ld);
}
- e.memoizedProps = e.pendingProps, t === null ? sf(e) : rd = t;
+ e.memoizedProps = e.pendingProps, t === null ? of(e) : nd = t;
}
- function of(e, t, n, r) {
- ha = ma = null, as(t), ro = null, io = 0;
+ function af(e, t, n, r) {
+ ma = pa = null, is(t), no = null, ro = 0;
var i = t.return;
try {
- if (Mc(e, i, t, n, id)) {
- dd = 1, Dc(e, zi(n, e.current)), rd = null;
+ if (jc(e, i, t, n, rd)) {
+ ud = 1, Ec(e, Ri(n, e.current)), nd = null;
return;
}
} catch (t) {
- if (i !== null) throw rd = i, t;
- dd = 1, Dc(e, zi(n, e.current)), rd = null;
+ if (i !== null) throw nd = i, t;
+ ud = 1, Ec(e, Ri(n, e.current)), nd = null;
return;
}
- t.flags & 32768 ? (na || r === 1 ? e = !0 : cd || id & 536870912 ? e = !1 : (sd = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = ko.current, r !== null && r.tag === 13 && (r.flags |= 16384))), cf(t, e)) : sf(t);
+ t.flags & 32768 ? (ta || r === 1 ? e = !0 : sd || rd & 536870912 ? e = !1 : (od = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Oo.current, r !== null && r.tag === 13 && (r.flags |= 16384))), sf(t, e)) : of(t);
}
- function sf(e) {
+ function of(e) {
var t = e;
do {
if (t.flags & 32768) {
- cf(t, sd);
+ sf(t, od);
return;
}
e = t.return;
- var n = bl(t.alternate, t, ud);
+ var n = yl(t.alternate, t, ld);
if (n !== null) {
- rd = n;
+ nd = n;
return;
}
if (t = t.sibling, t !== null) {
- rd = t;
+ nd = t;
return;
}
- rd = t = e;
+ nd = t = e;
} while (t !== null);
- dd === 0 && (dd = 5);
+ ud === 0 && (ud = 5);
}
- function cf(e, t) {
+ function sf(e, t) {
do {
- var n = xl(e.alternate, e);
+ var n = bl(e.alternate, e);
if (n !== null) {
- n.flags &= 32767, rd = n;
+ n.flags &= 32767, nd = n;
return;
}
if (n = e.return, n !== null && (n.flags |= 32768, n.subtreeFlags = 0, n.deletions = null), !t && (e = e.sibling, e !== null)) {
- rd = e;
+ nd = e;
return;
}
- rd = e = n;
+ nd = e = n;
} while (e !== null);
- dd = 6, rd = null;
+ ud = 6, nd = null;
}
- function lf(e, t, n, r, a, o, s, c, l, u, d, f) {
+ function cf(e, t, n, r, a, o, s, c, l, u, d, f) {
e.cancelPendingCommit = null;
do
- _f();
- while (Td !== 0);
- if (td & 6) throw Error(i(327));
+ gf();
+ while (wd !== 0);
+ if (ed & 6) throw Error(i(327));
if (t !== null) {
if (t === e.current) throw Error(i(177));
- e === nd && (rd = nd = null, id = 0), Dd = t, Ed = e, Od = n, Ad = a, jd = r, uf(e, t, n, s, c, l, f);
+ e === td && (nd = td = null, rd = 0), Ed = t, Td = e, Dd = n, kd = a, Ad = r, lf(e, t, n, s, c, l, f);
}
}
- function uf(e, t, n, r, i, a, o) {
+ function lf(e, t, n, r, i, a, o) {
var s = t.lanes | t.childLanes;
- if (kd = s, s |= bi, ht(e, n, s, r, i, a), Nd = null, (n & 335544064) === n ? (Pd = Pa(e), r = 10262) : (Pd = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, Ef(Ke, function() {
- return vf(), null;
- })) : (e.callbackNode = null, e.callbackPriority = 0), Vl = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
- r = me.T, me.T = null, i = he.p, he.p = 2, a = td, td |= 4;
+ if (Od = s, s |= yi, ht(e, n, s, r, i, a), Md = null, (n & 335544064) === n ? (Nd = Na(e), r = 10262) : (Nd = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, Tf(Ke, function() {
+ return _f(), null;
+ })) : (e.callbackNode = null, e.callbackPriority = 0), Bl = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
+ r = me.T, me.T = null, i = he.p, he.p = 2, a = ed, ed |= 4;
try {
- hu(e, t, n);
+ mu(e, t, n);
} finally {
- td = a, he.p = i, me.T = r;
+ ed = a, he.p = i, me.T = r;
}
}
- Td = 1, Vl ? Md = Vp(o, e.containerInfo, Pd, pf, mf, ff, hf, vf, df, null, null) : (pf(), mf(), hf());
+ wd = 1, Bl ? jd = Bp(o, e.containerInfo, Nd, ff, pf, df, mf, _f, uf, null, null) : (ff(), pf(), mf());
}
- function df(e) {
- if (Td !== 0) {
- var t = Ed.onRecoverableError;
+ function uf(e) {
+ if (wd !== 0) {
+ var t = Td.onRecoverableError;
t(e, { componentStack: null });
}
}
- function ff() {
- Td === 3 && (Td = 0, Fu(Dd, Ed), Td = 4);
+ function df() {
+ wd === 3 && (wd = 0, Pu(Ed, Td), wd = 4);
}
- function pf() {
- if (Td === 1) {
- Td = 0;
- var e = Ed, t = Dd, n = Od, r = !!(t.flags & 13878);
+ function ff() {
+ if (wd === 1) {
+ wd = 0;
+ var e = Td, t = Ed, n = Dd, r = !!(t.flags & 13878);
if (t.subtreeFlags & 13878 || r) {
r = me.T, me.T = null;
var i = he.p;
he.p = 2;
- var a = td;
- td |= 4;
+ var a = ed;
+ ed |= 4;
try {
- fu = pu = !1, ju(t, e, n), n = _p;
- var o = Wr(e.containerInfo), s = n.focusedElem, c = n.selectionRange;
- if (o !== s && s && s.ownerDocument && Ur(s.ownerDocument.documentElement, s)) {
- if (c !== null && Gr(s)) {
+ du = fu = !1, Au(t, e, n), n = gp;
+ var o = Ur(e.containerInfo), s = n.focusedElem, c = n.selectionRange;
+ if (o !== s && s && s.ownerDocument && Hr(s.ownerDocument.documentElement, s)) {
+ if (c !== null && Wr(s)) {
var l = c.start, u = c.end;
if (u === void 0 && (u = l), "selectionStart" in s) s.selectionStart = l, s.selectionEnd = Math.min(u, s.value.length);
else {
@@ -6654,7 +6654,7 @@ var k = /* @__PURE__ */ o(((e) => {
if (f.getSelection) {
var p = f.getSelection(), m = s.textContent.length, h = Math.min(c.start, m), g = c.end === void 0 ? h : Math.min(c.end, m);
!p.extend && h > g && (o = g, g = h, h = o);
- var _ = Hr(s, h), v = Hr(s, g);
+ var _ = Vr(s, h), v = Vr(s, g);
if (_ && v && (p.rangeCount !== 1 || p.anchorNode !== _.node || p.anchorOffset !== _.offset || p.focusNode !== v.node || p.focusOffset !== v.offset)) {
var y = d.createRange();
y.setStart(_.node, _.offset), p.removeAllRanges(), h > g ? (p.addRange(y), p.extend(v.node, v.offset)) : (y.setEnd(v.node, v.offset), p.addRange(y));
@@ -6672,40 +6672,40 @@ var k = /* @__PURE__ */ o(((e) => {
b.element.scrollLeft = b.left, b.element.scrollTop = b.top;
}
}
- Th = !!gp, _p = gp = null;
+ wh = !!hp, gp = hp = null;
} finally {
- td = a, he.p = i, me.T = r;
+ ed = a, he.p = i, me.T = r;
}
}
- e.current = t, Td = 2;
+ e.current = t, wd = 2;
}
}
- function mf() {
- if (Td === 2) {
- Td = 0;
- var e = Ed, t = Dd, n = !!(t.flags & 8772);
+ function pf() {
+ if (wd === 2) {
+ wd = 0;
+ var e = Td, t = Ed, n = !!(t.flags & 8772);
if (t.subtreeFlags & 8772 || n) {
n = me.T, me.T = null;
var r = he.p;
he.p = 2;
- var i = td;
- td |= 4;
+ var i = ed;
+ ed |= 4;
try {
- _u(e, t.alternate, t);
+ gu(e, t.alternate, t);
} finally {
- td = i, he.p = r, me.T = n;
+ ed = i, he.p = r, me.T = n;
}
}
- Td = 3;
+ wd = 3;
}
}
- function hf() {
- if (Td === 4 || Td === 3) {
- Td = 0;
- var e = Md;
- Md = null, Ve();
- var t = Ed, n = Dd, r = Od, i = jd, a = (r & 335544064) === r ? 10262 : 10256;
- if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? Td = 5 : (Td = 0, Dd = Ed = null, gf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (wd = null), bt(r), n = n.stateNode, Qe && typeof Qe.onCommitFiberRoot == "function") try {
+ function mf() {
+ if (wd === 4 || wd === 3) {
+ wd = 0;
+ var e = jd;
+ jd = null, Ve();
+ var t = Td, n = Ed, r = Dd, i = Ad, a = (r & 335544064) === r ? 10262 : 10256;
+ if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? wd = 5 : (wd = 0, Ed = Td = null, hf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (Cd = null), bt(r), n = n.stateNode, Qe && typeof Qe.onCommitFiberRoot == "function") try {
Qe.onCommitFiberRoot(Ze, n, void 0, (n.current.flags & 128) == 128);
} catch {}
if (i !== null) {
@@ -6719,75 +6719,75 @@ var k = /* @__PURE__ */ o(((e) => {
me.T = n, he.p = a;
}
}
- if (i = Nd, o = Pd, Pd = null, i !== null && (Nd = null, o === null && (o = []), e !== null)) for (c = 0; c < i.length; c++) n = (0, i[c])(o), n !== void 0 && e.finished.finally(n);
- Od & 3 && _f(), Nf(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Id ? Fd++ : (Fd = 0, Id = t) : (Fd = 0, Id = null), Pf(0, !1);
+ if (i = Md, o = Nd, Nd = null, i !== null && (Md = null, o === null && (o = []), e !== null)) for (c = 0; c < i.length; c++) n = (0, i[c])(o), n !== void 0 && e.finished.finally(n);
+ Dd & 3 && gf(), Mf(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Fd ? Pd++ : (Pd = 0, Fd = t) : (Pd = 0, Fd = null), Nf(0, !1);
}
}
- function gf(e, t) {
- (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, ja(t)));
+ function hf(e, t) {
+ (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Aa(t)));
}
- function _f() {
- return Md !== null && (Md.skipTransition(), Md = null), pf(), mf(), hf(), vf();
+ function gf() {
+ return jd !== null && (jd.skipTransition(), jd = null), ff(), pf(), mf(), _f();
}
- function vf() {
- if (Td !== 5) return !1;
- var e = Ed, t = kd;
- kd = 0;
- var n = bt(Od), r = me.T, a = he.p;
+ function _f() {
+ if (wd !== 5) return !1;
+ var e = Td, t = Od;
+ Od = 0;
+ var n = bt(Dd), r = me.T, a = he.p;
try {
- he.p = 32 > n ? 32 : n, me.T = null, n = Ad, Ad = null;
- var o = Ed, s = Od;
- if (Td = 0, Dd = Ed = null, Od = 0, td & 6) throw Error(i(331));
- var c = td;
- if (td |= 4, Xu(o.current), Hu(o, o.current, s, n), td = c, Pf(0, !1), Qe && typeof Qe.onPostCommitFiberRoot == "function") try {
+ he.p = 32 > n ? 32 : n, me.T = null, n = kd, kd = null;
+ var o = Td, s = Dd;
+ if (wd = 0, Ed = Td = null, Dd = 0, ed & 6) throw Error(i(331));
+ var c = ed;
+ if (ed |= 4, Yu(o.current), Vu(o, o.current, s, n), ed = c, Nf(0, !1), Qe && typeof Qe.onPostCommitFiberRoot == "function") try {
Qe.onPostCommitFiberRoot(Ze, o);
} catch {}
return !0;
} finally {
- he.p = a, me.T = r, gf(e, t);
+ he.p = a, me.T = r, hf(e, t);
}
}
- function yf(e, t, n) {
- t = zi(n, t), t = kc(e.stateNode, t, 2), e = go(e, t, 2), e !== null && (mt(e, 2), Nf(e));
+ function vf(e, t, n) {
+ t = Ri(n, t), t = Oc(e.stateNode, t, 2), e = ho(e, t, 2), e !== null && (mt(e, 2), Mf(e));
}
- function bf(e, t, n) {
- if (e.tag === 3) yf(e, e, n);
+ function yf(e, t, n) {
+ if (e.tag === 3) vf(e, e, n);
else for (; t !== null;) {
if (t.tag === 3) {
- yf(t, e, n);
+ vf(t, e, n);
break;
}
if (t.tag === 1) {
var r = t.stateNode;
- if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (wd === null || !wd.has(r))) {
- e = zi(n, e), n = Ac(2), r = go(t, n, 2), r !== null && (jc(n, r, t, e), mt(r, 2), Nf(r));
+ if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (Cd === null || !Cd.has(r))) {
+ e = Ri(n, e), n = kc(2), r = ho(t, n, 2), r !== null && (Ac(n, r, t, e), mt(r, 2), Mf(r));
break;
}
}
t = t.return;
}
}
- function xf(e, t, n) {
+ function bf(e, t, n) {
var r = e.pingCache;
if (r === null) {
- r = e.pingCache = new ed();
+ r = e.pingCache = new $u();
var i = /* @__PURE__ */ new Set();
r.set(t, i);
} else i = r.get(t), i === void 0 && (i = /* @__PURE__ */ new Set(), r.set(t, i));
- i.has(n) || (ld = !0, i.add(n), e = Sf.bind(null, e, t, n), t.then(e, e));
+ i.has(n) || (cd = !0, i.add(n), e = xf.bind(null, e, t, n), t.then(e, e));
}
- function Sf(e, t, n) {
+ function xf(e, t, n) {
var r = e.pingCache;
- r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, nd === e && (id & n) === n && (dd === 4 || dd === 3 && (id & 62914560) === id && 300 > He() - bd ? td & 2 ? md |= n : qd(e, 0) : md |= n, gd === id && (gd = 0)), Nf(e);
+ r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, td === e && (rd & n) === n && (ud === 4 || ud === 3 && (rd & 62914560) === rd && 300 > He() - yd ? ed & 2 ? pd |= n : Kd(e, 0) : pd |= n, hd === rd && (hd = 0)), Mf(e);
}
- function Cf(e, t) {
- t === 0 && (t = ft()), e = wi(e, t), e !== null && (mt(e, t), Nf(e));
+ function Sf(e, t) {
+ t === 0 && (t = ft()), e = Ci(e, t), e !== null && (mt(e, t), Mf(e));
}
- function wf(e) {
+ function Cf(e) {
var t = e.memoizedState, n = 0;
- t !== null && (n = t.retryLane), Cf(e, n);
+ t !== null && (n = t.retryLane), Sf(e, n);
}
- function Tf(e, t) {
+ function wf(e, t) {
var n = 0;
switch (e.tag) {
case 31:
@@ -6803,20 +6803,20 @@ var k = /* @__PURE__ */ o(((e) => {
break;
default: throw Error(i(314));
}
- r !== null && r.delete(t), Cf(e, n);
+ r !== null && r.delete(t), Sf(e, n);
}
- function Ef(e, t) {
+ function Tf(e, t) {
return Re(e, t);
}
- var Df = null, Of = null, kf = !1, Af = !1, jf = !1, Mf = 0;
- function Nf(e) {
- e !== Of && e.next === null && (Of === null ? Df = Of = e : Of = Of.next = e), Af = !0, kf || (kf = !0, Bf());
+ var Ef = null, Df = null, Of = !1, kf = !1, Af = !1, jf = 0;
+ function Mf(e) {
+ e !== Df && e.next === null && (Df === null ? Ef = Df = e : Df = Df.next = e), kf = !0, Of || (Of = !0, zf());
}
- function Pf(e, t) {
- if (!jf && Af) {
- jf = !0;
+ function Nf(e, t) {
+ if (!Af && kf) {
+ Af = !0;
do
- for (var n = !1, r = Df; r !== null;) {
+ for (var n = !1, r = Ef; r !== null;) {
if (!t) {
if (e !== 0) {
var i = r.pendingLanes;
@@ -6825,34 +6825,34 @@ var k = /* @__PURE__ */ o(((e) => {
var o = r.suspendedLanes, s = r.pingedLanes;
a = (1 << 31 - et(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
}
- a !== 0 && (n = !0, zf(r, a));
- } else a = id, a = ct(r, r === nd ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || lt(r, a) || (n = !0, zf(r, a));
+ a !== 0 && (n = !0, Rf(r, a));
+ } else a = rd, a = ct(r, r === td ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || lt(r, a) || (n = !0, Rf(r, a));
}
r = r.next;
}
while (n);
- jf = !1;
+ Af = !1;
}
}
- function Ff() {
- If();
+ function Pf() {
+ Ff();
}
- function If() {
- Af = kf = !1;
+ function Ff() {
+ kf = Of = !1;
var e = 0;
- Mf !== 0 && wp() && (e = Mf);
- for (var t = He(), n = null, r = Df; r !== null;) {
- var i = r.next, a = Lf(r, t);
- a === 0 ? (r.next = null, n === null ? Df = i : n.next = i, i === null && (Of = n)) : (n = r, (e !== 0 || a & 3) && (Af = !0)), r = i;
+ jf !== 0 && Cp() && (e = jf);
+ for (var t = He(), n = null, r = Ef; r !== null;) {
+ var i = r.next, a = If(r, t);
+ a === 0 ? (r.next = null, n === null ? Ef = i : n.next = i, i === null && (Df = n)) : (n = r, (e !== 0 || a & 3) && (kf = !0)), r = i;
}
- Td !== 0 && Td !== 5 || Pf(e, !1), Mf !== 0 && (Mf = 0);
+ wd !== 0 && wd !== 5 || Nf(e, !1), jf !== 0 && (jf = 0);
}
- function Lf(e, t) {
+ function If(e, t) {
for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes & -62914561; 0 < a;) {
var o = 31 - et(a), s = 1 << o, c = i[o];
c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = dt(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
}
- if (t = nd, n = id, n = ct(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (ad === 2 || ad === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && ze(r), e.callbackNode = null, e.callbackPriority = 0;
+ if (t = td, n = rd, n = ct(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (id === 2 || id === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && ze(r), e.callbackNode = null, e.callbackPriority = 0;
if (!(n & 3) || lt(e, n)) {
if (t = n & -n, t === e.callbackPriority) return t;
switch (r !== null && ze(r), bt(n)) {
@@ -6868,40 +6868,40 @@ var k = /* @__PURE__ */ o(((e) => {
break;
default: n = Ke;
}
- return r = Rf.bind(null, e), n = Re(n, r), e.callbackPriority = t, e.callbackNode = n, t;
+ return r = Lf.bind(null, e), n = Re(n, r), e.callbackPriority = t, e.callbackNode = n, t;
}
return r !== null && r !== null && ze(r), e.callbackPriority = 2, e.callbackNode = null, 2;
}
- function Rf(e, t) {
- if (Td !== 0 && Td !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
+ function Lf(e, t) {
+ if (wd !== 0 && wd !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
var n = e.callbackNode;
- if (_f() && e.callbackNode !== n) return null;
- var r = id;
- return r = ct(e, e === nd ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Vd(e, r, t), Lf(e, He()), e.callbackNode != null && e.callbackNode === n ? Rf.bind(null, e) : null);
+ if (gf() && e.callbackNode !== n) return null;
+ var r = rd;
+ return r = ct(e, e === td ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Bd(e, r, t), If(e, He()), e.callbackNode != null && e.callbackNode === n ? Lf.bind(null, e) : null);
}
- function zf(e, t) {
- if (_f()) return null;
- Vd(e, t, !0);
+ function Rf(e, t) {
+ if (gf()) return null;
+ Bd(e, t, !0);
}
- function Bf() {
- kp(function() {
- td & 6 ? Re(We, Ff) : If();
+ function zf() {
+ Op(function() {
+ ed & 6 ? Re(We, Pf) : Ff();
});
}
- function Vf() {
- if (Mf === 0) {
- var e = La;
- e === 0 && (e = it, it <<= 1, !(it & 261888) && (it = 256)), Mf = e;
+ function Bf() {
+ if (jf === 0) {
+ var e = Ia;
+ e === 0 && (e = it, it <<= 1, !(it & 261888) && (it = 256)), jf = e;
}
- return Mf;
+ return jf;
}
- function Hf(e) {
+ function Vf(e) {
return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : bn(e);
}
- function Uf(e, t, n, r, i) {
+ function Hf(e, t, n, r, i) {
if (t === "submit" && n && n.stateNode === i) {
- var a = Hf((i[Tt] || null).action), o = r.submitter;
- o && (t = (t = o[Tt] || null) ? Hf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
+ var a = Vf((i[Tt] || null).action), o = r.submitter;
+ o && (t = (t = o[Tt] || null) ? Vf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
var s = new zn("action", "action", null, r, i);
e.push({
event: s,
@@ -6909,16 +6909,16 @@ var k = /* @__PURE__ */ o(((e) => {
instance: null,
listener: function() {
if (r.defaultPrevented) {
- if (Mf !== 0) {
+ if (jf !== 0) {
var e = new FormData(i, o);
- tc(n, {
+ ec(n, {
pending: !0,
data: e,
method: i.method,
action: a
}, null, e);
}
- } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), tc(n, {
+ } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), ec(n, {
pending: !0,
data: e,
method: i.method,
@@ -6930,18 +6930,18 @@ var k = /* @__PURE__ */ o(((e) => {
});
}
}
- for (var Wf = 0; Wf < di.length; Wf++) {
- var Gf = di[Wf];
- fi(Gf.toLowerCase(), "on" + (Gf[0].toUpperCase() + Gf.slice(1)));
+ for (var Uf = 0; Uf < ui.length; Uf++) {
+ var Wf = ui[Uf];
+ di(Wf.toLowerCase(), "on" + (Wf[0].toUpperCase() + Wf.slice(1)));
}
- fi(ri, "onAnimationEnd"), fi(ii, "onAnimationIteration"), fi(ai, "onAnimationStart"), fi("dblclick", "onDoubleClick"), fi("focusin", "onFocus"), fi("focusout", "onBlur"), fi(oi, "onTransitionRun"), fi(si, "onTransitionStart"), fi(ci, "onTransitionCancel"), fi(li, "onTransitionEnd"), Ut("onMouseEnter", ["mouseout", "mouseover"]), Ut("onMouseLeave", ["mouseout", "mouseover"]), Ut("onPointerEnter", ["pointerout", "pointerover"]), Ut("onPointerLeave", ["pointerout", "pointerover"]), Ht("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), Ht("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), Ht("onBeforeInput", [
+ di(ni, "onAnimationEnd"), di(ri, "onAnimationIteration"), di(ii, "onAnimationStart"), di("dblclick", "onDoubleClick"), di("focusin", "onFocus"), di("focusout", "onBlur"), di(ai, "onTransitionRun"), di(oi, "onTransitionStart"), di(si, "onTransitionCancel"), di(ci, "onTransitionEnd"), Ut("onMouseEnter", ["mouseout", "mouseover"]), Ut("onMouseLeave", ["mouseout", "mouseover"]), Ut("onPointerEnter", ["pointerout", "pointerover"]), Ut("onPointerLeave", ["pointerout", "pointerover"]), Ht("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), Ht("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), Ht("onBeforeInput", [
"compositionend",
"keypress",
"textInput",
"paste"
]), Ht("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), Ht("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), Ht("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
- var Kf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), qf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kf));
- function Jf(e, t) {
+ var Gf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), Kf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Gf));
+ function qf(e, t) {
t = !!(t & 4);
for (var n = 0; n < e.length; n++) {
var r = e[n], i = r.event;
@@ -6955,7 +6955,7 @@ var k = /* @__PURE__ */ o(((e) => {
try {
a(i);
} catch (e) {
- _i(e);
+ gi(e);
}
i.currentTarget = null, a = c;
}
@@ -6965,49 +6965,49 @@ var k = /* @__PURE__ */ o(((e) => {
try {
a(i);
} catch (e) {
- _i(e);
+ gi(e);
}
i.currentTarget = null, a = c;
}
}
}
}
- function Yf(e, t) {
+ function Jf(e, t) {
var n = t[Dt];
n === void 0 && (n = t[Dt] = /* @__PURE__ */ new Set());
var r = e + "__bubble";
- n.has(r) || ($f(t, e, 2, !1), n.add(r));
+ n.has(r) || (Qf(t, e, 2, !1), n.add(r));
}
- function Xf(e, t, n) {
+ function Yf(e, t, n) {
var r = 0;
- t && (r |= 4), $f(n, e, r, t);
+ t && (r |= 4), Qf(n, e, r, t);
}
- var Zf = "_reactListening" + Math.random().toString(36).slice(2);
- function Qf(e) {
- if (!e[Zf]) {
- e[Zf] = !0, Bt.forEach(function(t) {
- t !== "selectionchange" && (qf.has(t) || Xf(t, !1, e), Xf(t, !0, e));
+ var Xf = "_reactListening" + Math.random().toString(36).slice(2);
+ function Zf(e) {
+ if (!e[Xf]) {
+ e[Xf] = !0, Bt.forEach(function(t) {
+ t !== "selectionchange" && (Kf.has(t) || Yf(t, !1, e), Yf(t, !0, e));
});
var t = e.nodeType === 9 ? e : e.ownerDocument;
- t === null || t[Zf] || (t[Zf] = !0, Xf("selectionchange", !1, t));
+ t === null || t[Xf] || (t[Xf] = !0, Yf("selectionchange", !1, t));
}
}
- function $f(e, t, n, r) {
- switch (Mh(t)) {
+ function Qf(e, t, n, r) {
+ switch (jh(t)) {
case 2:
- var i = Eh;
+ var i = Th;
break;
case 8:
- i = Dh;
+ i = Eh;
break;
- default: i = Oh;
+ default: i = Dh;
}
n = i.bind(null, t, n, e), i = void 0, !kn || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (i = !0), r ? i === void 0 ? e.addEventListener(t, n, !0) : e.addEventListener(t, n, {
capture: !0,
passive: i
}) : i === void 0 ? e.addEventListener(t, n, !1) : e.addEventListener(t, n, { passive: i });
}
- function ep(e, t, n, r, i) {
+ function $f(e, t, n, r, i) {
var a = r;
if (!(t & 1) && !(t & 2) && r !== null) a: for (;;) {
if (r === null) return;
@@ -7034,7 +7034,7 @@ var k = /* @__PURE__ */ o(((e) => {
En(function() {
var r = a, i = Cn(n), s = [];
a: {
- var c = ui.get(e);
+ var c = li.get(e);
if (c !== void 0) {
var l = zn, u = e;
switch (e) {
@@ -7080,12 +7080,12 @@ var k = /* @__PURE__ */ o(((e) => {
case "touchstart":
l = or;
break;
+ case ni:
case ri:
case ii:
- case ai:
l = Yn;
break;
- case li:
+ case ci:
l = sr;
break;
case "scroll":
@@ -7120,7 +7120,7 @@ var k = /* @__PURE__ */ o(((e) => {
d = [];
for (var m = r, h; m !== null;) {
var g = m;
- if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = Dn(m, p), g != null && d.push(tp(m, g, h))), f) break;
+ if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = Dn(m, p), g != null && d.push(ep(m, g, h))), f) break;
m = m.return;
}
0 < d.length && (c = new l(c, u, null, n, i), s.push({
@@ -7132,17 +7132,17 @@ var k = /* @__PURE__ */ o(((e) => {
if (!(t & 7)) {
a: {
if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== Sn && (u = n.relatedTarget || n.fromElement) && (Pt(u) || u[Et])) break a;
- (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? Pt(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Kn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = ir, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : It(c), h = l == null ? u : It(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, Pt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? C(c, l, rp) : null, c !== null && ip(s, u, c, d, !1), l !== null && f !== null && ip(s, f, l, d, !0)));
+ (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? Pt(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Kn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = ir, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : It(c), h = l == null ? u : It(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, Pt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? C(c, l, np) : null, c !== null && rp(s, u, c, d, !1), l !== null && f !== null && rp(s, f, l, d, !0)));
}
a: {
if (c = r ? It(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Er;
else if (br(c)) {
- if (Dr) _ = Ir;
+ if (Dr) _ = Fr;
else {
_ = Pr;
var v = Nr;
}
- } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && _n(r.elementType) && (_ = Er) : _ = Fr;
+ } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && _n(r.elementType) && (_ = Er) : _ = eee;
if (_ &&= _(e, r)) {
xr(s, _, n, i);
break a;
@@ -7151,22 +7151,22 @@ var k = /* @__PURE__ */ o(((e) => {
}
switch (v = r ? It(r) : window, e) {
case "focusin":
- (br(v) || v.contentEditable === "true") && (qr = v, Jr = r, Yr = null);
+ (br(v) || v.contentEditable === "true") && (Kr = v, qr = r, Jr = null);
break;
case "focusout":
- Yr = Jr = qr = null;
+ Jr = qr = Kr = null;
break;
case "mousedown":
- Xr = !0;
+ Yr = !0;
break;
case "contextmenu":
case "mouseup":
case "dragend":
- Xr = !1, Zr(s, n, i);
+ Yr = !1, Xr(s, n, i);
break;
- case "selectionchange": if (Kr) break;
+ case "selectionchange": if (Gr) break;
case "keydown":
- case "keyup": Zr(s, n, i);
+ case "keyup": Xr(s, n, i);
}
var y;
if (V) b: {
@@ -7184,58 +7184,58 @@ var k = /* @__PURE__ */ o(((e) => {
b = void 0;
}
else _r ? hr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
- b && (fr && n.locale !== "ko" && (_r || b !== "onCompositionStart" ? b === "onCompositionEnd" && _r && (y = Pn()) : (jn = i, Mn = "value" in jn ? jn.value : jn.textContent, _r = !0)), v = np(r, b), 0 < v.length && (b = new Zn(b, e, null, n, i), s.push({
+ b && (fr && n.locale !== "ko" && (_r || b !== "onCompositionStart" ? b === "onCompositionEnd" && _r && (y = Pn()) : (jn = i, Mn = "value" in jn ? jn.value : jn.textContent, _r = !0)), v = tp(r, b), 0 < v.length && (b = new Zn(b, e, null, n, i), s.push({
event: b,
listeners: v
- }), y ? b.data = y : (y = gr(n), y !== null && (b.data = y)))), (y = dr ? H(e, n) : vr(e, n)) && (b = np(r, "onBeforeInput"), 0 < b.length && (v = new Zn("onBeforeInput", "beforeinput", null, n, i), s.push({
+ }), y ? b.data = y : (y = gr(n), y !== null && (b.data = y)))), (y = dr ? H(e, n) : vr(e, n)) && (b = tp(r, "onBeforeInput"), 0 < b.length && (v = new Zn("onBeforeInput", "beforeinput", null, n, i), s.push({
event: v,
listeners: b
- }), v.data = y)), Uf(s, e, r, n, i);
+ }), v.data = y)), Hf(s, e, r, n, i);
}
- Jf(s, t);
+ qf(s, t);
});
}
- function tp(e, t, n) {
+ function ep(e, t, n) {
return {
instance: e,
listener: t,
currentTarget: n
};
}
- function np(e, t) {
+ function tp(e, t) {
for (var n = t + "Capture", r = []; e !== null;) {
var i = e, a = i.stateNode;
- if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = Dn(e, n), i != null && r.unshift(tp(e, i, a)), i = Dn(e, t), i != null && r.push(tp(e, i, a))), e.tag === 3) return r;
+ if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = Dn(e, n), i != null && r.unshift(ep(e, i, a)), i = Dn(e, t), i != null && r.push(ep(e, i, a))), e.tag === 3) return r;
e = e.return;
}
return [];
}
- function rp(e) {
+ function np(e) {
if (e === null) return null;
do
e = e.return;
while (e && e.tag !== 5 && e.tag !== 27);
return e || null;
}
- function ip(e, t, n, r, i) {
+ function rp(e, t, n, r, i) {
for (var a = t._reactName, o = []; n !== null && n !== r;) {
var s = n, c = s.alternate, l = s.stateNode;
if (s = s.tag, c !== null && c === r) break;
- s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = Dn(n, a), l != null && o.unshift(tp(n, l, c))) : i || (l = Dn(n, a), l != null && o.push(tp(n, l, c)))), n = n.return;
+ s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = Dn(n, a), l != null && o.unshift(ep(n, l, c))) : i || (l = Dn(n, a), l != null && o.push(ep(n, l, c)))), n = n.return;
}
o.length !== 0 && e.push({
event: t,
listeners: o
});
}
- var ap = /\r\n?/g, op = /\u0000|\uFFFD/g;
- function sp(e) {
- return (typeof e == "string" ? e : "" + e).replace(ap, "\n").replace(op, "");
+ var ip = /\r\n?/g, ap = /\u0000|\uFFFD/g;
+ function op(e) {
+ return (typeof e == "string" ? e : "" + e).replace(ip, "\n").replace(ap, "");
}
- function cp(e, t) {
- return t = sp(t), sp(e) === t;
+ function sp(e, t) {
+ return t = op(t), op(e) === t;
}
- function lp(e, t, n, r, a, o) {
+ function cp(e, t, n, r, a, o) {
switch (n) {
case "children":
if (typeof r == "string") t === "body" || t === "textarea" && r === "" || pn(e, r);
@@ -7276,7 +7276,7 @@ var k = /* @__PURE__ */ o(((e) => {
e.setAttribute(n, "javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");
break;
}
- if (typeof o == "function" && (n === "formAction" ? (t !== "input" && lp(e, t, "name", a.name, a, null), lp(e, t, "formEncType", a.formEncType, a, null), lp(e, t, "formMethod", a.formMethod, a, null), lp(e, t, "formTarget", a.formTarget, a, null)) : (lp(e, t, "encType", a.encType, a, null), lp(e, t, "method", a.method, a, null), lp(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {
+ if (typeof o == "function" && (n === "formAction" ? (t !== "input" && cp(e, t, "name", a.name, a, null), cp(e, t, "formEncType", a.formEncType, a, null), cp(e, t, "formMethod", a.formMethod, a, null), cp(e, t, "formTarget", a.formTarget, a, null)) : (cp(e, t, "encType", a.encType, a, null), cp(e, t, "method", a.method, a, null), cp(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {
e.removeAttribute(n);
break;
}
@@ -7286,10 +7286,10 @@ var k = /* @__PURE__ */ o(((e) => {
r != null && (e.onclick = xn);
return;
case "onScroll":
- r != null && Yf("scroll", e);
+ r != null && Jf("scroll", e);
return;
case "onScrollEnd":
- r != null && Yf("scrollend", e);
+ r != null && Jf("scrollend", e);
return;
case "dangerouslySetInnerHTML":
if (r != null) {
@@ -7371,7 +7371,7 @@ var k = /* @__PURE__ */ o(((e) => {
r == null || typeof r == "function" || typeof r == "symbol" || isNaN(r) ? e.removeAttribute(n) : e.setAttribute(n, r);
break;
case "popover":
- Yf("beforetoggle", e), Yf("toggle", e), Xt(e, "popover", r);
+ Jf("beforetoggle", e), Jf("toggle", e), Xt(e, "popover", r);
break;
case "xlinkActuate":
Qt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
@@ -7410,7 +7410,7 @@ var k = /* @__PURE__ */ o(((e) => {
}
Jt = !0;
}
- function up(e, t, n, r, a, o) {
+ function lp(e, t, n, r, a, o) {
switch (n) {
case "style":
gn(e, r, o);
@@ -7430,10 +7430,10 @@ var k = /* @__PURE__ */ o(((e) => {
else return;
break;
case "onScroll":
- r != null && Yf("scroll", e);
+ r != null && Jf("scroll", e);
return;
case "onScrollEnd":
- r != null && Yf("scrollend", e);
+ r != null && Jf("scrollend", e);
return;
case "onClick":
r != null && (e.onclick = xn);
@@ -7456,7 +7456,7 @@ var k = /* @__PURE__ */ o(((e) => {
}
Jt = !0;
}
- function dp(e, t, n) {
+ function up(e, t, n) {
switch (t) {
case "div":
case "span":
@@ -7467,7 +7467,7 @@ var k = /* @__PURE__ */ o(((e) => {
case "p":
case "li": break;
case "img":
- Yf("error", e), Yf("load", e);
+ Jf("error", e), Jf("load", e);
var r = !1, a = !1, o;
for (o in n) if (n.hasOwnProperty(o)) {
var s = n[o];
@@ -7480,13 +7480,13 @@ var k = /* @__PURE__ */ o(((e) => {
break;
case "children":
case "dangerouslySetInnerHTML": throw Error(i(137, t));
- default: lp(e, t, o, s, n, null);
+ default: cp(e, t, o, s, n, null);
}
}
- a && lp(e, t, "srcSet", n.srcSet, n, null), r && lp(e, t, "src", n.src, n, null);
+ a && cp(e, t, "srcSet", n.srcSet, n, null), r && cp(e, t, "src", n.src, n, null);
return;
case "input":
- Yf("invalid", e);
+ Jf("invalid", e);
var c = o = s = a = null, l = null, u = null;
for (r in n) if (n.hasOwnProperty(r)) {
var d = n[r];
@@ -7513,13 +7513,13 @@ var k = /* @__PURE__ */ o(((e) => {
case "dangerouslySetInnerHTML":
if (d != null) throw Error(i(137, t));
break;
- default: lp(e, t, r, d, n, null);
+ default: cp(e, t, r, d, n, null);
}
}
cn(e, o, c, l, u, s, a, !1);
return;
case "select":
- for (a in Yf("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
+ for (a in Jf("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
case "value":
o = c;
break;
@@ -7527,12 +7527,12 @@ var k = /* @__PURE__ */ o(((e) => {
s = c;
break;
case "multiple": r = c;
- default: lp(e, t, a, c, n, null);
+ default: cp(e, t, a, c, n, null);
}
t = o, n = s, e.multiple = !!r, t == null ? n != null && un(e, !!r, n, !0) : un(e, !!r, t, !1);
return;
case "textarea":
- for (s in Yf("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
+ for (s in Jf("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
case "value":
r = c;
break;
@@ -7545,7 +7545,7 @@ var k = /* @__PURE__ */ o(((e) => {
case "dangerouslySetInnerHTML":
if (c != null) throw Error(i(91));
break;
- default: lp(e, t, s, c, n, null);
+ default: cp(e, t, s, c, n, null);
}
fn(e, r, a, o);
return;
@@ -7554,29 +7554,29 @@ var k = /* @__PURE__ */ o(((e) => {
case "selected":
e.selected = r && typeof r != "function" && typeof r != "symbol";
break;
- default: lp(e, t, l, r, n, null);
+ default: cp(e, t, l, r, n, null);
}
return;
case "dialog":
- Yf("beforetoggle", e), Yf("toggle", e), Yf("cancel", e), Yf("close", e);
+ Jf("beforetoggle", e), Jf("toggle", e), Jf("cancel", e), Jf("close", e);
break;
case "iframe":
case "object":
- Yf("load", e);
+ Jf("load", e);
break;
case "video":
case "audio":
- for (r = 0; r < Kf.length; r++) Yf(Kf[r], e);
+ for (r = 0; r < Gf.length; r++) Jf(Gf[r], e);
break;
case "image":
- Yf("error", e), Yf("load", e);
+ Jf("error", e), Jf("load", e);
break;
case "details":
- Yf("toggle", e);
+ Jf("toggle", e);
break;
case "embed":
case "source":
- case "link": Yf("error", e), Yf("load", e);
+ case "link": Jf("error", e), Jf("load", e);
case "area":
case "base":
case "br":
@@ -7591,18 +7591,18 @@ var k = /* @__PURE__ */ o(((e) => {
for (u in n) if (n.hasOwnProperty(u) && (r = n[u], r != null)) switch (u) {
case "children":
case "dangerouslySetInnerHTML": throw Error(i(137, t));
- default: lp(e, t, u, r, n, null);
+ default: cp(e, t, u, r, n, null);
}
return;
default: if (_n(t)) {
- for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && up(e, t, d, r, n, void 0));
+ for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && lp(e, t, d, r, n, void 0));
return;
}
}
- for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && lp(e, t, c, r, n, null));
+ for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && cp(e, t, c, r, n, null));
}
- var fp = {};
- function pp(e, t, n, r) {
+ var dp = {};
+ function fp(e, t, n, r) {
switch (t) {
case "div":
case "span":
@@ -7620,7 +7620,7 @@ var k = /* @__PURE__ */ o(((e) => {
case "checked": break;
case "value": break;
case "defaultValue": l = f;
- default: r.hasOwnProperty(m) || lp(e, t, m, null, r, f);
+ default: r.hasOwnProperty(m) || cp(e, t, m, null, r, f);
}
}
for (var p in r) {
@@ -7648,7 +7648,7 @@ var k = /* @__PURE__ */ o(((e) => {
case "dangerouslySetInnerHTML":
if (m != null) throw Error(i(137, t));
break;
- default: m !== f && lp(e, t, p, m, r, f);
+ default: m !== f && cp(e, t, p, m, r, f);
}
}
sn(e, s, c, l, u, d, o, a);
@@ -7657,7 +7657,7 @@ var k = /* @__PURE__ */ o(((e) => {
for (o in m = s = c = p = null, n) if (l = n[o], n.hasOwnProperty(o) && l != null) switch (o) {
case "value": break;
case "multiple": m = l;
- default: r.hasOwnProperty(o) || lp(e, t, o, null, r, l);
+ default: r.hasOwnProperty(o) || cp(e, t, o, null, r, l);
}
for (a in r) if (o = r[a], l = n[a], r.hasOwnProperty(a) && (o != null || l != null)) switch (a) {
case "value":
@@ -7667,7 +7667,7 @@ var k = /* @__PURE__ */ o(((e) => {
o !== l && (Jt = !0), c = o;
break;
case "multiple": o !== l && (Jt = !0), s = o;
- default: o !== l && lp(e, t, a, o, r, l);
+ default: o !== l && cp(e, t, a, o, r, l);
}
t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? un(e, !!n, n ? [] : "", !1) : un(e, !!n, t, !0)) : un(e, !!n, p, !1);
return;
@@ -7675,7 +7675,7 @@ var k = /* @__PURE__ */ o(((e) => {
for (c in m = p = null, n) if (a = n[c], n.hasOwnProperty(c) && a != null && !r.hasOwnProperty(c)) switch (c) {
case "value": break;
case "children": break;
- default: lp(e, t, c, null, r, a);
+ default: cp(e, t, c, null, r, a);
}
for (s in r) if (a = r[s], o = n[s], r.hasOwnProperty(s) && (a != null || o != null)) switch (s) {
case "value":
@@ -7688,7 +7688,7 @@ var k = /* @__PURE__ */ o(((e) => {
case "dangerouslySetInnerHTML":
if (a != null) throw Error(i(91));
break;
- default: a !== o && lp(e, t, s, a, r, o);
+ default: a !== o && cp(e, t, s, a, r, o);
}
dn(e, p, m);
return;
@@ -7697,13 +7697,13 @@ var k = /* @__PURE__ */ o(((e) => {
case "selected":
e.selected = !1;
break;
- default: lp(e, t, h, null, r, p);
+ default: cp(e, t, h, null, r, p);
}
for (l in r) if (p = r[l], m = n[l], r.hasOwnProperty(l) && p !== m && (p != null || m != null)) switch (l) {
case "selected":
p !== m && (Jt = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";
break;
- default: lp(e, t, l, p, r, m);
+ default: cp(e, t, l, p, r, m);
}
return;
case "img":
@@ -7721,25 +7721,25 @@ var k = /* @__PURE__ */ o(((e) => {
case "track":
case "wbr":
case "menuitem":
- for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && lp(e, t, g, null, r, p);
+ for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && cp(e, t, g, null, r, p);
for (u in r) if (p = r[u], m = n[u], r.hasOwnProperty(u) && p !== m && (p != null || m != null)) switch (u) {
case "children":
case "dangerouslySetInnerHTML":
if (p != null) throw Error(i(137, t));
break;
- default: lp(e, t, u, p, r, m);
+ default: cp(e, t, u, p, r, m);
}
return;
default: if (_n(t)) {
- for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && up(e, t, _, void 0, r, p);
- for (d in r) p = r[d], m = n[d], !r.hasOwnProperty(d) || p === m || p === void 0 && m === void 0 || up(e, t, d, p, r, m);
+ for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && lp(e, t, _, void 0, r, p);
+ for (d in r) p = r[d], m = n[d], !r.hasOwnProperty(d) || p === m || p === void 0 && m === void 0 || lp(e, t, d, p, r, m);
return;
}
}
- for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && lp(e, t, v, null, r, p);
- for (f in r) p = r[f], m = n[f], !r.hasOwnProperty(f) || p === m || p == null && m == null || lp(e, t, f, p, r, m);
+ for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && cp(e, t, v, null, r, p);
+ for (f in r) p = r[f], m = n[f], !r.hasOwnProperty(f) || p === m || p == null && m == null || cp(e, t, f, p, r, m);
}
- function mp(e) {
+ function pp(e) {
switch (e) {
case "css":
case "script":
@@ -7751,16 +7751,16 @@ var k = /* @__PURE__ */ o(((e) => {
default: return !1;
}
}
- function hp() {
+ function mp() {
if (typeof performance.getEntriesByType == "function") {
for (var e = 0, t = 0, n = performance.getEntriesByType("resource"), r = 0; r < n.length; r++) {
var i = n[r], a = i.transferSize, o = i.initiatorType, s = i.duration;
- if (a && s && mp(o)) {
+ if (a && s && pp(o)) {
for (o = 0, s = i.responseEnd, r += 1; r < n.length; r++) {
var c = n[r], l = c.startTime;
if (l > s) break;
var u = c.transferSize, d = c.initiatorType;
- u && mp(d) && (c = c.responseEnd, o += u * (c < s ? 1 : (s - l) / (c - l)));
+ u && pp(d) && (c = c.responseEnd, o += u * (c < s ? 1 : (s - l) / (c - l)));
}
if (--r, t += 8 * (a + o) / (i.duration / 1e3), e++, 10 < e) break;
}
@@ -7769,18 +7769,18 @@ var k = /* @__PURE__ */ o(((e) => {
}
return navigator.connection && (e = navigator.connection.downlink, typeof e == "number") ? e : 5;
}
- var gp = null, _p = null;
- function vp(e) {
+ var hp = null, gp = null;
+ function _p(e) {
return e.nodeType === 9 ? e : e.ownerDocument;
}
- function yp(e) {
+ function vp(e) {
switch (e) {
case "http://www.w3.org/2000/svg": return 1;
case "http://www.w3.org/1998/Math/MathML": return 2;
default: return 0;
}
}
- function bp(e, t) {
+ function yp(e, t) {
if (e === 0) switch (t) {
case "svg": return 1;
case "math": return 2;
@@ -7788,54 +7788,54 @@ var k = /* @__PURE__ */ o(((e) => {
}
return e === 1 && t === "foreignObject" ? 0 : e;
}
- function xp(e, t, n, r) {
- return n = vp(n).createElement(e), n[wt] = r, n[Tt] = t, dp(n, e, t), Rt(n), n;
+ function bp(e, t, n, r) {
+ return n = _p(n).createElement(e), n[wt] = r, n[Tt] = t, up(n, e, t), Rt(n), n;
}
- function Sp(e, t) {
+ function xp(e, t) {
return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.children == "bigint" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null;
}
- var Cp = null;
- function wp() {
+ var Sp = null;
+ function Cp() {
var e = window.event;
- return e && e.type === "popstate" ? e !== Cp && (Cp = e, !0) : (Cp = null, !1);
+ return e && e.type === "popstate" ? e !== Sp && (Sp = e, !0) : (Sp = null, !1);
}
- var Tp = typeof setTimeout == "function" ? setTimeout : void 0, Ep = typeof clearTimeout == "function" ? clearTimeout : void 0, Dp = typeof Promise == "function" ? Promise : void 0, Op = typeof requestAnimationFrame == "function" ? requestAnimationFrame : Tp, kp = typeof queueMicrotask == "function" ? queueMicrotask : Dp === void 0 ? Tp : function(e) {
- return Dp.resolve(null).then(e).catch(Ap);
+ var wp = typeof setTimeout == "function" ? setTimeout : void 0, Tp = typeof clearTimeout == "function" ? clearTimeout : void 0, Ep = typeof Promise == "function" ? Promise : void 0, Dp = typeof requestAnimationFrame == "function" ? requestAnimationFrame : wp, Op = typeof queueMicrotask == "function" ? queueMicrotask : Ep === void 0 ? wp : function(e) {
+ return Ep.resolve(null).then(e).catch(kp);
};
- function Ap(e) {
+ function kp(e) {
setTimeout(function() {
throw e;
});
}
- function jp(e) {
+ function Ap(e) {
return e === "head";
}
- function Mp(e, t) {
+ function jp(e, t) {
var n = t, r = 0;
do {
var i = n.nextSibling;
if (e.removeChild(n), i && i.nodeType === 8) {
if (n = i.data, n === "/$" || n === "/&") {
if (r === 0) {
- e.removeChild(i), Xh(t);
+ e.removeChild(i), Yh(t);
return;
}
r--;
} else if (n === "$" || n === "$?" || n === "$~" || n === "$!" || n === "&") r++;
- else if (n === "html") Em(e.ownerDocument.documentElement);
+ else if (n === "html") Tm(e.ownerDocument.documentElement);
else if (n === "head") {
- n = e.ownerDocument.head, Em(n);
+ n = e.ownerDocument.head, Tm(n);
for (var a = n.firstChild; a;) {
var o = a.nextSibling, s = a.nodeName;
a[jt] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;
}
- } else n === "body" && Em(e.ownerDocument.body);
+ } else n === "body" && Tm(e.ownerDocument.body);
}
n = i;
} while (n);
- Xh(t);
+ Yh(t);
}
- function Np(e, t) {
+ function Mp(e, t) {
var n = e;
e = 0;
do {
@@ -7849,7 +7849,7 @@ var k = /* @__PURE__ */ o(((e) => {
n = r;
} while (n);
}
- function Pp(e, t, n) {
+ function Np(e, t, n) {
if (t = CSS.escape(t) === t ? t : "r-" + btoa(t).replace(/=/g, ""), e.style.viewTransitionName = t, n != null && (e.style.viewTransitionClass = n), n = getComputedStyle(e), n.display === "inline") {
if (t = e.getClientRects(), t.length === 1) var r = 1;
else for (var i = r = 0; i < t.length; i++) {
@@ -7859,12 +7859,12 @@ var k = /* @__PURE__ */ o(((e) => {
r === 1 && (e = e.style, e.display = t.length === 1 ? "inline-block" : "block", e.marginTop = "-" + n.paddingTop, e.marginBottom = "-" + n.paddingBottom);
}
}
- function Fp(e, t) {
+ function Pp(e, t) {
e = e.style, t = t.style;
var n = t == null ? null : t.hasOwnProperty("viewTransitionName") ? t.viewTransitionName : t.hasOwnProperty("view-transition-name") ? t["view-transition-name"] : null;
e.viewTransitionName = n == null || typeof n == "boolean" ? "" : ("" + n).trim(), n = t == null ? null : t.hasOwnProperty("viewTransitionClass") ? t.viewTransitionClass : t.hasOwnProperty("view-transition-class") ? t["view-transition-class"] : null, e.viewTransitionClass = n == null || typeof n == "boolean" ? "" : ("" + n).trim(), e.display === "inline-block" && (t == null ? e.display = e.margin = "" : (n = t.display, e.display = n == null || typeof n == "boolean" ? "" : n, n = t.margin, n == null ? (n = t.hasOwnProperty("marginTop") ? t.marginTop : t["margin-top"], e.marginTop = n == null || typeof n == "boolean" ? "" : n, t = t.hasOwnProperty("marginBottom") ? t.marginBottom : t["margin-bottom"], e.marginBottom = t == null || typeof t == "boolean" ? "" : t) : e.margin = n));
}
- function Ip(e, t, n) {
+ function Fp(e, t, n) {
return n = n.ownerDocument.defaultView, {
rect: e,
abs: t.position === "absolute" || t.position === "fixed",
@@ -7872,22 +7872,22 @@ var k = /* @__PURE__ */ o(((e) => {
view: 0 <= e.bottom && 0 <= e.right && e.top <= n.innerHeight && e.left <= n.innerWidth
};
}
- function Lp(e) {
- return Ip(e.getBoundingClientRect(), getComputedStyle(e), e);
+ function Ip(e) {
+ return Fp(e.getBoundingClientRect(), getComputedStyle(e), e);
}
- function Rp(e) {
+ function Lp(e) {
var t = e.getBoundingClientRect();
t = new DOMRect(t.x + 2e4, t.y + 2e4, t.width, t.height);
var n = getComputedStyle(e);
- return Ip(t, n, e);
+ return Fp(t, n, e);
}
- function zp(e) {
+ function Rp(e) {
return e.documentElement.clientHeight;
}
- function Bp(e) {
+ function zp(e) {
this.addEventListener("load", e), this.addEventListener("error", e);
}
- function Vp(e, t, n, r, i, a, o, s, c) {
+ function Bp(e, t, n, r, i, a, o, s, c) {
var l = t.nodeType === 9 ? t : t.ownerDocument;
try {
var u = l.startViewTransition({
@@ -7895,16 +7895,16 @@ var k = /* @__PURE__ */ o(((e) => {
var t = l.defaultView, n = t.navigation && t.navigation.transition, o = l.fonts.status;
r();
var s = [];
- if (o === "loaded" && (zp(l), l.fonts.status === "loading" && s.push(l.fonts.ready)), o = s.length, e !== null) for (var c = e.suspenseyImages, u = 0, d = 0; d < c.length; d++) {
+ if (o === "loaded" && (Rp(l), l.fonts.status === "loading" && s.push(l.fonts.ready)), o = s.length, e !== null) for (var c = e.suspenseyImages, u = 0, d = 0; d < c.length; d++) {
var f = c[d];
if (!f.complete) {
var p = f.getBoundingClientRect();
if (0 < p.bottom && 0 < p.right && p.top < t.innerHeight && p.left < t.innerWidth) {
- if (u += ah(f), u > ch) {
+ if (u += ih(f), u > sh) {
s.length = o;
break;
}
- f = new Promise(Bp.bind(f)), s.push(f);
+ f = new Promise(zp.bind(f)), s.push(f);
}
}
}
@@ -7959,86 +7959,86 @@ var k = /* @__PURE__ */ o(((e) => {
return r(), i(), o(), null;
}
}
- function Hp(e, t) {
+ function Vp(e, t) {
this._scope = document.documentElement, this._selector = "::view-transition-" + e + "(" + t + ")";
}
- Hp.prototype.animate = function(e, t) {
+ Vp.prototype.animate = function(e, t) {
return t = typeof t == "number" ? { duration: t } : w({}, t), t.pseudoElement = this._selector, this._scope.animate(e, t);
- }, Hp.prototype.getAnimations = function() {
+ }, Vp.prototype.getAnimations = function() {
for (var e = this._scope, t = this._selector, n = e.getAnimations({ subtree: !0 }), r = [], i = 0; i < n.length; i++) {
var a = n[i].effect;
a !== null && a.target === e && a.pseudoElement === t && r.push(n[i]);
}
return r;
- }, Hp.prototype.getComputedStyle = function() {
+ }, Vp.prototype.getComputedStyle = function() {
return getComputedStyle(this._scope, this._selector);
};
- function Up(e) {
+ function Hp(e) {
return {
name: e,
- group: new Hp("group", e),
- imagePair: new Hp("image-pair", e),
- old: new Hp("old", e),
- new: new Hp("new", e)
+ group: new Vp("group", e),
+ imagePair: new Vp("image-pair", e),
+ old: new Vp("old", e),
+ new: new Vp("new", e)
};
}
- function Wp(e) {
+ function Up(e) {
this._fragmentFiber = e, this._observers = this._eventListeners = null;
}
- Wp.prototype.addEventListener = function(e, t, n) {
+ Up.prototype.addEventListener = function(e, t, n) {
var r = null, i = null;
if (!(n != null && typeof n != "boolean" && (r = n.signal || null, r !== null && r.aborted))) {
this._eventListeners === null && (this._eventListeners = []);
var a = this._eventListeners;
- if (Yp(a, e, t, n) === -1) {
+ if (Jp(a, e, t, n) === -1) {
var o = this, s = t;
n != null && typeof n != "boolean" && !0 === n.once && (s = function(r) {
o.removeEventListener(e, t, n), typeof t == "function" ? t.call(this, r) : t.handleEvent(r);
- }), r !== null && (i = o.removeEventListener.bind(o, e, t, n), r.addEventListener("abort", i, { once: !0 }), i = r.removeEventListener.bind(r, "abort", i)), r = qp(n), a.push({
+ }), r !== null && (i = o.removeEventListener.bind(o, e, t, n), r.addEventListener("abort", i, { once: !0 }), i = r.removeEventListener.bind(r, "abort", i)), r = Kp(n), a.push({
type: e,
listener: t,
optionsOrUseCapture: n,
attachedListener: s,
cleanup: i
- }), f(this._fragmentFiber.child, !1, Gp, e, s, r);
+ }), f(this._fragmentFiber.child, !1, Wp, e, s, r);
}
this._eventListeners = a;
}
};
- function Gp(e, t, n, r) {
+ function Wp(e, t, n, r) {
return _(e).addEventListener(t, n, r), !1;
}
- Wp.prototype.removeEventListener = function(e, t, n) {
+ Up.prototype.removeEventListener = function(e, t, n) {
var r = this._eventListeners;
- if (r !== null && (t = Yp(r, e, t, n), t !== -1)) {
+ if (r !== null && (t = Jp(r, e, t, n), t !== -1)) {
var i = r[t];
n = i.attachedListener;
var a = i.cleanup;
- i = qp(i.optionsOrUseCapture), f(this._fragmentFiber.child, !1, Kp, e, n, i), r.splice(t, 1), a !== null && a();
+ i = Kp(i.optionsOrUseCapture), f(this._fragmentFiber.child, !1, Gp, e, n, i), r.splice(t, 1), a !== null && a();
}
};
- function Kp(e, t, n, r) {
+ function Gp(e, t, n, r) {
return _(e).removeEventListener(t, n, r), !1;
}
- function qp(e) {
+ function Kp(e) {
return e != null && typeof e != "boolean" && (!0 === e.once || e.signal instanceof AbortSignal) ? {
capture: e.capture,
passive: e.passive
} : e;
}
- function Jp(e) {
+ function qp(e) {
return e == null ? "c=0" : typeof e == "boolean" ? "c=" + (e ? "1" : "0") : "c=" + (e.capture ? "1" : "0");
}
- function Yp(e, t, n, r) {
+ function Jp(e, t, n, r) {
if (e.length === 0) return -1;
- r = Jp(r);
+ r = qp(r);
for (var i = 0; i < e.length; i++) {
var a = e[i];
- if (a.type === t && a.listener === n && Jp(a.optionsOrUseCapture) === r) return i;
+ if (a.type === t && a.listener === n && qp(a.optionsOrUseCapture) === r) return i;
}
return -1;
}
- Wp.prototype.dispatchEvent = function(e) {
+ Up.prototype.dispatchEvent = function(e) {
var t = p(this._fragmentFiber);
if (t === null) return !0;
t = _(t);
@@ -8047,74 +8047,74 @@ var k = /* @__PURE__ */ o(((e) => {
var r = t.nodeType === 9 ? t.createComment("") : document.createTextNode("");
if (n) for (var i = 0; i < n.length; i++) {
var a = n[i];
- r.addEventListener(a.type, a.attachedListener, qp(a.optionsOrUseCapture));
+ r.addEventListener(a.type, a.attachedListener, Kp(a.optionsOrUseCapture));
}
- if (t.appendChild(r), e = r.dispatchEvent(e), n) for (i = 0; i < n.length; i++) a = n[i], r.removeEventListener(a.type, a.attachedListener, qp(a.optionsOrUseCapture));
+ if (t.appendChild(r), e = r.dispatchEvent(e), n) for (i = 0; i < n.length; i++) a = n[i], r.removeEventListener(a.type, a.attachedListener, Kp(a.optionsOrUseCapture));
return t.removeChild(r), e;
}
return t.dispatchEvent(e);
- }, Wp.prototype.focus = function(e) {
- f(this._fragmentFiber.child, !0, Xp, e, void 0, void 0);
+ }, Up.prototype.focus = function(e) {
+ f(this._fragmentFiber.child, !0, Yp, e, void 0, void 0);
};
- function Xp(e, t) {
- return e.tag !== 6 && (e = _(e), Sm(e, t));
+ function Yp(e, t) {
+ return e.tag !== 6 && (e = _(e), xm(e, t));
}
- Wp.prototype.focusLast = function(e) {
+ Up.prototype.focusLast = function(e) {
var t = [];
- f(this._fragmentFiber.child, !0, Zp, t, void 0, void 0);
- for (var n = t.length - 1; 0 <= n && !Xp(t[n], e); n--);
+ f(this._fragmentFiber.child, !0, Xp, t, void 0, void 0);
+ for (var n = t.length - 1; 0 <= n && !Yp(t[n], e); n--);
};
- function Zp(e, t) {
+ function Xp(e, t) {
return t.push(e), !1;
}
- Wp.prototype.blur = function() {
+ Up.prototype.blur = function() {
var e = p(this._fragmentFiber);
- e !== null && (e = _(e), e = vp(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, Qp, e, void 0, void 0));
+ e !== null && (e = _(e), e = _p(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, Zp, e, void 0, void 0));
};
- function Qp(e, t) {
+ function Zp(e, t) {
return e.tag !== 6 && (e = _(e), e === t || e.contains(t) ? (t.blur(), !0) : !1);
}
- Wp.prototype.observeUsing = function(e) {
- this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(e), f(this._fragmentFiber.child, !1, $p, e, void 0, void 0);
+ Up.prototype.observeUsing = function(e) {
+ this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(e), f(this._fragmentFiber.child, !1, Qp, e, void 0, void 0);
};
- function $p(e, t) {
+ function Qp(e, t) {
return e.tag === 6 || (e = _(e), t.observe(e)), !1;
}
- Wp.prototype.unobserveUsing = function(e) {
+ Up.prototype.unobserveUsing = function(e) {
var t = this._observers;
if (t !== null && t.has(e)) {
- t.delete(e), f(this._fragmentFiber.child, !1, em, e, void 0, void 0);
- for (var n = t = 0; n < tm.length; n++) {
- var r = tm[n];
- r.fragmentInstance === this && r.observer === e ? e.unobserve(r.instance) : tm[t++] = r;
+ t.delete(e), f(this._fragmentFiber.child, !1, $p, e, void 0, void 0);
+ for (var n = t = 0; n < em.length; n++) {
+ var r = em[n];
+ r.fragmentInstance === this && r.observer === e ? e.unobserve(r.instance) : em[t++] = r;
}
- tm.length = t;
+ em.length = t;
}
};
- function em(e, t) {
+ function $p(e, t) {
return e.tag === 6 || (e = _(e), t.unobserve(e)), !1;
}
- var tm = [], nm = !1;
- function rm(e, t, n) {
- tm.push({
+ var em = [], tm = !1;
+ function nm(e, t, n) {
+ em.push({
fragmentInstance: e,
observer: t,
instance: n
- }), nm || (nm = !0, Cm(function() {
- nm = !1;
- var e = tm;
- tm = [];
+ }), tm || (tm = !0, Sm(function() {
+ tm = !1;
+ var e = em;
+ em = [];
for (var t = 0; t < e.length; t++) {
var n = e[t];
n.observer.unobserve(n.instance);
}
}));
}
- Wp.prototype.getClientRects = function() {
+ Up.prototype.getClientRects = function() {
var e = [];
- return f(this._fragmentFiber.child, !1, im, e, void 0, void 0), e;
+ return f(this._fragmentFiber.child, !1, rm, e, void 0, void 0), e;
};
- function im(e, t) {
+ function rm(e, t) {
if (e.tag === 6) {
e = e.stateNode;
var n = e.ownerDocument.createRange();
@@ -8122,14 +8122,14 @@ var k = /* @__PURE__ */ o(((e) => {
} else e = _(e), t.push.apply(t, e.getClientRects());
return !1;
}
- Wp.prototype.getRootNode = function(e) {
+ Up.prototype.getRootNode = function(e) {
var t = p(this._fragmentFiber);
return t === null ? this : _(t).getRootNode(e);
- }, Wp.prototype.compareDocumentPosition = function(e) {
+ }, Up.prototype.compareDocumentPosition = function(e) {
var t = p(this._fragmentFiber);
if (t === null) return Node.DOCUMENT_POSITION_DISCONNECTED;
var n = [];
- f(this._fragmentFiber.child, !1, Zp, n, void 0, void 0);
+ f(this._fragmentFiber.child, !1, Xp, n, void 0, void 0);
var r = _(t);
if (n.length === 0) {
if (n = r, m(this._fragmentFiber)) {
@@ -8155,9 +8155,9 @@ var k = /* @__PURE__ */ o(((e) => {
if (a == null) return Node.DOCUMENT_POSITION_DISCONNECTED;
r = a.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_CONTAINED_BY, a = a.compareDocumentPosition(i) & Node.DOCUMENT_POSITION_CONTAINED_BY;
var o = t.compareDocumentPosition(e), s = i.compareDocumentPosition(e), c = o & Node.DOCUMENT_POSITION_CONTAINED_BY || s & Node.DOCUMENT_POSITION_CONTAINED_BY;
- return s = r && a && o & Node.DOCUMENT_POSITION_FOLLOWING && s & Node.DOCUMENT_POSITION_PRECEDING, t = r && t === e || a && i === e || c || s ? Node.DOCUMENT_POSITION_CONTAINED_BY : !r && t === e || !a && i === e ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : o, t & Node.DOCUMENT_POSITION_DISCONNECTED || t & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC || am(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
+ return s = r && a && o & Node.DOCUMENT_POSITION_FOLLOWING && s & Node.DOCUMENT_POSITION_PRECEDING, t = r && t === e || a && i === e || c || s ? Node.DOCUMENT_POSITION_CONTAINED_BY : !r && t === e || !a && i === e ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : o, t & Node.DOCUMENT_POSITION_DISCONNECTED || t & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC || im(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
};
- function am(e, t, n, r, i) {
+ function im(e, t, n, r, i) {
var a = Pt(i);
if (e & Node.DOCUMENT_POSITION_CONTAINED_BY) {
if (n = !!a) a: {
@@ -8188,20 +8188,20 @@ var k = /* @__PURE__ */ o(((e) => {
}
return e & Node.DOCUMENT_POSITION_PRECEDING ? ((t = !!a) && !(t = a === n) && (t = C(n, a, S), t === null ? t = !1 : (f(t, !0, b, a, n), a = v, v = null, t = a !== null)), t) : e & Node.DOCUMENT_POSITION_FOLLOWING ? ((t = !!a) && !(t = a === r) && (t = C(r, a, S), t === null ? t = !1 : (f(t, !0, x, a, r), a = v, y = v = null, t = a !== null)), t) : !1;
}
- function om(e, t) {
+ function am(e, t) {
var n = e.ownerDocument.createRange();
n.selectNodeContents(e), e = n.getBoundingClientRect(), window.scrollTo(window.scrollX + e.left, t ? window.scrollY + e.top : window.scrollY + e.bottom - window.innerHeight);
}
- Wp.prototype.scrollIntoView = function(e) {
+ Up.prototype.scrollIntoView = function(e) {
if (typeof e == "object") throw Error(i(566));
var t = [];
- f(this._fragmentFiber.child, !1, Zp, t, void 0, void 0);
+ f(this._fragmentFiber.child, !1, Xp, t, void 0, void 0);
var n = !1 !== e;
if (t.length === 0) {
var r = h(this._fragmentFiber);
if (r = n ? r[1] || r[0] || p(this._fragmentFiber) : r[0] || r[1], r === null) return;
if (r.tag === 6) {
- e = _(r), om(e, n);
+ e = _(r), am(e, n);
return;
}
if (r = _(r), r.nodeType !== 9) {
@@ -8214,40 +8214,40 @@ var k = /* @__PURE__ */ o(((e) => {
}
for (r = n ? t.length - 1 : 0; r !== (n ? -1 : t.length);) {
var a = t[r];
- a.tag === 6 ? (a = _(a), om(a, n)) : _(a).scrollIntoView(e), r += n ? -1 : 1;
+ a.tag === 6 ? (a = _(a), am(a, n)) : _(a).scrollIntoView(e), r += n ? -1 : 1;
}
};
- function sm(e, t) {
- return e = _(e), cm(e, t), !1;
+ function om(e, t) {
+ return e = _(e), sm(e, t), !1;
}
- function cm(e, t) {
+ function sm(e, t) {
e.reactFragments ??= /* @__PURE__ */ new Set(), e.reactFragments.add(t);
}
- function lm(e, t) {
+ function cm(e, t) {
var n = t._eventListeners;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = n[r];
- e.addEventListener(i.type, i.attachedListener, qp(i.optionsOrUseCapture));
+ e.addEventListener(i.type, i.attachedListener, Kp(i.optionsOrUseCapture));
}
e.nodeType !== 3 && (n = t._observers, n !== null && n.forEach(function(n) {
- for (var r = 0, i = 0; i < tm.length; i++) {
- var a = tm[i];
- (a.fragmentInstance !== t || a.observer !== n || a.instance !== e) && (tm[r++] = a);
+ for (var r = 0, i = 0; i < em.length; i++) {
+ var a = em[i];
+ (a.fragmentInstance !== t || a.observer !== n || a.instance !== e) && (em[r++] = a);
}
- tm.length = r, n.observe(e);
- }), cm(e, t));
+ em.length = r, n.observe(e);
+ }), sm(e, t));
}
- function um(e, t) {
+ function lm(e, t) {
var n = t._eventListeners;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = n[r];
- e.removeEventListener(i.type, i.attachedListener, qp(i.optionsOrUseCapture));
+ e.removeEventListener(i.type, i.attachedListener, Kp(i.optionsOrUseCapture));
}
e.nodeType !== 3 && (n = t._observers, n !== null && n.forEach(function(n) {
- typeof n.rootMargin == "string" ? rm(t, n, e) : n.unobserve(e);
+ typeof n.rootMargin == "string" ? nm(t, n, e) : n.unobserve(e);
}), e.reactFragments != null && e.reactFragments.delete(t));
}
- function dm(e) {
+ function um(e) {
var t = e.firstChild;
for (t && t.nodeType === 10 && (t = t.nextSibling); t;) {
var n = t;
@@ -8255,7 +8255,7 @@ var k = /* @__PURE__ */ o(((e) => {
case "HTML":
case "HEAD":
case "BODY":
- dm(n), Nt(n);
+ um(n), Nt(n);
continue;
case "SCRIPT":
case "STYLE": continue;
@@ -8264,7 +8264,7 @@ var k = /* @__PURE__ */ o(((e) => {
e.removeChild(n);
}
}
- function fm(e, t, n, r) {
+ function dm(e, t, n, r) {
for (; e.nodeType === 1;) {
var i = n;
if (e.nodeName.toLowerCase() !== t.toLowerCase()) {
@@ -8289,26 +8289,26 @@ var k = /* @__PURE__ */ o(((e) => {
return e;
default: return e;
}
- if (e = vm(e.nextSibling), e === null) break;
+ if (e = _m(e.nextSibling), e === null) break;
}
return null;
}
- function pm(e, t, n) {
+ function fm(e, t, n) {
if (t === "") return null;
- for (; e.nodeType !== 3;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !n || (e = vm(e.nextSibling), e === null)) return null;
+ for (; e.nodeType !== 3;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !n || (e = _m(e.nextSibling), e === null)) return null;
return e;
}
- function mm(e, t) {
- for (; e.nodeType !== 8;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !t || (e = vm(e.nextSibling), e === null)) return null;
+ function pm(e, t) {
+ for (; e.nodeType !== 8;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !t || (e = _m(e.nextSibling), e === null)) return null;
return e;
}
- function hm(e) {
+ function mm(e) {
return e.data === "$?" || e.data === "$~";
}
- function gm(e) {
+ function hm(e) {
return e.data === "$!" || e.data === "$?" && e.ownerDocument.readyState !== "loading";
}
- function _m(e, t) {
+ function gm(e, t) {
var n = e.ownerDocument;
if (e.data === "$~") e._reactRetry = t;
else if (e.data !== "$?" || n.readyState !== "loading") t();
@@ -8319,7 +8319,7 @@ var k = /* @__PURE__ */ o(((e) => {
n.addEventListener("DOMContentLoaded", r), e._reactRetry = r;
}
}
- function vm(e) {
+ function _m(e) {
for (; e != null; e = e.nextSibling) {
var t = e.nodeType;
if (t === 1 || t === 3) break;
@@ -8330,14 +8330,14 @@ var k = /* @__PURE__ */ o(((e) => {
}
return e;
}
- var ym = null;
- function bm(e) {
+ var vm = null;
+ function ym(e) {
e = e.nextSibling;
for (var t = 0; e;) {
if (e.nodeType === 8) {
var n = e.data;
if (n === "/$" || n === "/&") {
- if (t === 0) return vm(e.nextSibling);
+ if (t === 0) return _m(e.nextSibling);
t--;
} else n !== "$" && n !== "$!" && n !== "$?" && n !== "$~" && n !== "&" || t++;
}
@@ -8345,7 +8345,7 @@ var k = /* @__PURE__ */ o(((e) => {
}
return null;
}
- function xm(e) {
+ function bm(e) {
e = e.previousSibling;
for (var t = 0; e;) {
if (e.nodeType === 8) {
@@ -8359,7 +8359,7 @@ var k = /* @__PURE__ */ o(((e) => {
}
return null;
}
- function Sm(e, t) {
+ function xm(e, t) {
function n() {
r = !0;
}
@@ -8372,15 +8372,15 @@ var k = /* @__PURE__ */ o(((e) => {
}
return r;
}
- function Cm(e) {
- Op(function() {
- Op(function(t) {
+ function Sm(e) {
+ Dp(function() {
+ Dp(function(t) {
return e(t);
});
});
}
- function wm(e, t, n) {
- switch (t = vp(n), e) {
+ function Cm(e, t, n) {
+ switch (t = _p(n), e) {
case "html":
if (e = t.documentElement, !e) throw Error(i(452));
return e;
@@ -8393,91 +8393,91 @@ var k = /* @__PURE__ */ o(((e) => {
default: throw Error(i(451));
}
}
- function Tm(e, t, n) {
+ function wm(e, t, n) {
for (var r in n) {
var i = n[r];
- n.hasOwnProperty(r) && i != null && lp(e, t, r, null, fp, i);
+ n.hasOwnProperty(r) && i != null && cp(e, t, r, null, dp, i);
}
n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === xn && (e.onclick = null), Nt(e);
}
- function Em(e) {
+ function Tm(e) {
for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);
Nt(e);
}
- var Dm = /* @__PURE__ */ new Map(), Om = /* @__PURE__ */ new Set();
- function km(e) {
+ var Em = /* @__PURE__ */ new Map(), Dm = /* @__PURE__ */ new Set();
+ function Om(e) {
if (typeof e.getRootNode == "function") {
var t = e.getRootNode();
if (t.nodeType === 9 || t.nodeType === 11) return t;
}
return e.nodeType === 9 ? e : e.ownerDocument;
}
- var Am = he.d;
+ var km = he.d;
he.d = {
- f: jm,
- r: Mm,
- D: Fm,
- C: Im,
- L: Lm,
- m: Rm,
- X: Bm,
- S: zm,
- M: Vm
- };
- function jm() {
- var e = Am.f(), t = Gd();
+ f: Am,
+ r: jm,
+ D: Pm,
+ C: Fm,
+ L: Im,
+ m: Lm,
+ X: zm,
+ S: Rm,
+ M: Bm
+ };
+ function Am() {
+ var e = km.f(), t = Wd();
return e || t;
}
- function Mm(e) {
+ function jm(e) {
var t = Ft(e);
- t !== null && t.tag === 5 && t.type === "form" ? rc(t) : Am.r(e);
+ t !== null && t.tag === 5 && t.type === "form" ? nc(t) : km.r(e);
}
- var Nm = typeof document > "u" ? null : document;
- function Pm(e, t, n) {
- var r = Nm;
+ var Mm = typeof document > "u" ? null : document;
+ function Nm(e, t, n) {
+ var r = Mm;
if (r && typeof t == "string" && t) {
var i = on(t);
- i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), Om.has(i) || (Om.add(i), e = {
+ i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), Dm.has(i) || (Dm.add(i), e = {
rel: e,
crossOrigin: n,
href: t
- }, r.querySelector(i) === null && (t = r.createElement("link"), dp(t, "link", e), Rt(t), r.head.appendChild(t)));
+ }, r.querySelector(i) === null && (t = r.createElement("link"), up(t, "link", e), Rt(t), r.head.appendChild(t)));
}
}
- function Fm(e) {
- Am.D(e), Pm("dns-prefetch", e, null);
+ function Pm(e) {
+ km.D(e), Nm("dns-prefetch", e, null);
}
- function Im(e, t) {
- Am.C(e, t), Pm("preconnect", e, t);
+ function Fm(e, t) {
+ km.C(e, t), Nm("preconnect", e, t);
}
- function Lm(e, t, n) {
- Am.L(e, t, n);
- var r = Nm;
+ function Im(e, t, n) {
+ km.L(e, t, n);
+ var r = Mm;
if (r && e && t) {
var i = "link[rel=\"preload\"][as=\"" + on(t) + "\"]";
t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + on(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + on(n.imageSizes) + "\"]")) : i += "[href=\"" + on(e) + "\"]";
var a = i;
switch (t) {
case "style":
- a = Um(e);
+ a = Hm(e);
break;
- case "script": a = qm(e);
+ case "script": a = Km(e);
}
- if (!(Dm.has(a) || (e = w({
+ if (!(Em.has(a) || (e = w({
rel: "preload",
href: t === "image" && n && n.imageSrcSet ? void 0 : e,
as: t
- }, n), Dm.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Wm(a)) || t === "script" && r.querySelector(Jm(a))))) {
+ }, n), Em.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Um(a)) || t === "script" && r.querySelector(qm(a))))) {
var o = r.createElement("link");
- dp(o, "link", e), t === "style" && (o[Mt] = !0, o.onload = o.onerror = function() {
+ up(o, "link", e), t === "style" && (o[Mt] = !0, o.onload = o.onerror = function() {
zt(o);
}), Rt(o), r.head.appendChild(o);
}
}
}
- function Rm(e, t) {
- Am.m(e, t);
- var n = Nm;
+ function Lm(e, t) {
+ km.m(e, t);
+ var n = Mm;
if (n && e) {
var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + on(r) + "\"][href=\"" + on(e) + "\"]", a = i;
switch (r) {
@@ -8486,29 +8486,29 @@ var k = /* @__PURE__ */ o(((e) => {
case "serviceworker":
case "sharedworker":
case "worker":
- case "script": a = qm(e);
+ case "script": a = Km(e);
}
- if (!Dm.has(a) && (e = w({
+ if (!Em.has(a) && (e = w({
rel: "modulepreload",
href: e
- }, t), Dm.set(a, e), n.querySelector(i) === null)) {
+ }, t), Em.set(a, e), n.querySelector(i) === null)) {
switch (r) {
case "audioworklet":
case "paintworklet":
case "serviceworker":
case "sharedworker":
case "worker":
- case "script": if (n.querySelector(Jm(a))) return;
+ case "script": if (n.querySelector(qm(a))) return;
}
- r = n.createElement("link"), dp(r, "link", e), Rt(r), n.head.appendChild(r);
+ r = n.createElement("link"), up(r, "link", e), Rt(r), n.head.appendChild(r);
}
}
}
- function zm(e, t, n) {
- Am.S(e, t, n);
- var r = Nm;
+ function Rm(e, t, n) {
+ km.S(e, t, n);
+ var r = Mm;
if (r && e) {
- var i = Lt(r).hoistableStyles, a = Um(e);
+ var i = Lt(r).hoistableStyles, a = Hm(e);
t ||= "default";
var o = i.get(a);
if (!o) {
@@ -8516,21 +8516,21 @@ var k = /* @__PURE__ */ o(((e) => {
loading: 0,
preload: null
};
- if (o = r.querySelector(Wm(a))) s.loading = 5;
+ if (o = r.querySelector(Um(a))) s.loading = 5;
else {
e = w({
rel: "stylesheet",
href: e,
"data-precedence": t
- }, n), (n = Dm.get(a)) && Zm(e, n);
+ }, n), (n = Em.get(a)) && Xm(e, n);
var c = o = r.createElement("link");
- Rt(c), dp(c, "link", e), c._p = new Promise(function(e, t) {
+ Rt(c), up(c, "link", e), c._p = new Promise(function(e, t) {
c.onload = e, c.onerror = t;
}), c.addEventListener("load", function() {
s.loading |= 1;
}), c.addEventListener("error", function() {
s.loading |= 2;
- }), s.loading |= 4, Xm(o, t, r);
+ }), s.loading |= 4, Ym(o, t, r);
}
o = {
type: "stylesheet",
@@ -8541,15 +8541,15 @@ var k = /* @__PURE__ */ o(((e) => {
}
}
}
- function Bm(e, t) {
- Am.X(e, t);
- var n = Nm;
+ function zm(e, t) {
+ km.X(e, t);
+ var n = Mm;
if (n && e) {
- var r = Lt(n).hoistableScripts, i = qm(e), a = r.get(i);
- a || (a = n.querySelector(Jm(i)), a || (e = w({
+ var r = Lt(n).hoistableScripts, i = Km(e), a = r.get(i);
+ a || (a = n.querySelector(qm(i)), a || (e = w({
src: e,
async: !0
- }, t), (t = Dm.get(i)) && Qm(e, t), a = n.createElement("script"), Rt(a), dp(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = Em.get(i)) && Zm(e, t), a = n.createElement("script"), Rt(a), up(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -8557,16 +8557,16 @@ var k = /* @__PURE__ */ o(((e) => {
}, r.set(i, a));
}
}
- function Vm(e, t) {
- Am.M(e, t);
- var n = Nm;
+ function Bm(e, t) {
+ km.M(e, t);
+ var n = Mm;
if (n && e) {
- var r = Lt(n).hoistableScripts, i = qm(e), a = r.get(i);
- a || (a = n.querySelector(Jm(i)), a || (e = w({
+ var r = Lt(n).hoistableScripts, i = Km(e), a = r.get(i);
+ a || (a = n.querySelector(qm(i)), a || (e = w({
src: e,
async: !0,
type: "module"
- }, t), (t = Dm.get(i)) && Qm(e, t), a = n.createElement("script"), Rt(a), dp(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = Em.get(i)) && Zm(e, t), a = n.createElement("script"), Rt(a), up(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -8574,13 +8574,13 @@ var k = /* @__PURE__ */ o(((e) => {
}, r.set(i, a));
}
}
- function Hm(e, t, n, r) {
- var a = (a = we.current) ? km(a) : null;
+ function Vm(e, t, n, r) {
+ var a = (a = we.current) ? Om(a) : null;
if (!a) throw Error(i(446));
switch (e) {
case "meta":
case "title": return null;
- case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Um(n.href), t = Lt(a).hoistableStyles, r = t.get(n), r || (r = {
+ case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Hm(n.href), t = Lt(a).hoistableStyles, r = t.get(n), r || (r = {
type: "style",
instance: null,
count: 0,
@@ -8593,7 +8593,7 @@ var k = /* @__PURE__ */ o(((e) => {
};
case "link":
if (n.rel === "stylesheet" && typeof n.href == "string" && typeof n.precedence == "string") {
- e = Um(n.href);
+ e = Hm(n.href);
var o = Lt(a).hoistableStyles, s = o.get(e);
if (s || (a = a.ownerDocument || a, s = {
type: "stylesheet",
@@ -8603,7 +8603,7 @@ var k = /* @__PURE__ */ o(((e) => {
loading: 0,
preload: null
}
- }, o.set(e, s), (o = a.querySelector(Wm(e))) ? o._p || (s.instance = o, s.state.loading = 5) : (o = Dm.get(e), o || (o = {
+ }, o.set(e, s), (o = a.querySelector(Um(e))) ? o._p || (s.instance = o, s.state.loading = 5) : (o = Em.get(e), o || (o = {
rel: "preload",
as: "style",
href: n.href,
@@ -8612,12 +8612,12 @@ var k = /* @__PURE__ */ o(((e) => {
media: n.media,
hrefLang: n.hrefLang,
referrerPolicy: n.referrerPolicy
- }, Dm.set(e, o)), Km(a, e, o, s.state))), t && r === null) throw Error(i(528, ""));
+ }, Em.set(e, o)), Gm(a, e, o, s.state))), t && r === null) throw Error(i(528, ""));
return s;
}
if (t && r !== null) throw Error(i(529, ""));
return null;
- case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (n = qm(n), t = Lt(a).hoistableScripts, r = t.get(n), r || (r = {
+ case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (n = Km(n), t = Lt(a).hoistableScripts, r = t.get(n), r || (r = {
type: "script",
instance: null,
count: 0,
@@ -8631,38 +8631,38 @@ var k = /* @__PURE__ */ o(((e) => {
default: throw Error(i(444, e));
}
}
- function Um(e) {
+ function Hm(e) {
return "href=\"" + on(e) + "\"";
}
- function Wm(e) {
+ function Um(e) {
return "link[rel=\"stylesheet\"][" + e + "]";
}
- function Gm(e) {
+ function Wm(e) {
return w({}, e, {
"data-precedence": e.precedence,
precedence: null
});
}
- function Km(e, t, n, r) {
+ function Gm(e, t, n, r) {
if (t = e.querySelector("link[rel=\"preload\"][as=\"style\"][" + t + "]")) {
if (!0 !== t[Mt]) {
r.loading = 1;
return;
}
- } else t = e.createElement("link"), t[Mt] = !0, t.onload = t.onerror = zt.bind(null, t), dp(t, "link", n), Rt(t), e.head.appendChild(t);
+ } else t = e.createElement("link"), t[Mt] = !0, t.onload = t.onerror = zt.bind(null, t), up(t, "link", n), Rt(t), e.head.appendChild(t);
r.preload = t, t.addEventListener("load", function() {
return r.loading |= 1;
}), t.addEventListener("error", function() {
return r.loading |= 2;
});
}
- function qm(e) {
+ function Km(e) {
return "[src=\"" + on(e) + "\"]";
}
- function Jm(e) {
+ function qm(e) {
return "script[async]" + e;
}
- function Ym(e, t, n) {
+ function Jm(e, t, n) {
if (t.count++, t.instance === null) switch (t.type) {
case "style":
var r = e.querySelector("style[data-href~=\"" + on(n.href) + "\"]");
@@ -8673,24 +8673,24 @@ var k = /* @__PURE__ */ o(((e) => {
href: null,
precedence: null
});
- return r = (e.ownerDocument || e).createElement("style"), Rt(r), dp(r, "style", a), Xm(r, n.precedence, e), t.instance = r;
+ return r = (e.ownerDocument || e).createElement("style"), Rt(r), up(r, "style", a), Ym(r, n.precedence, e), t.instance = r;
case "stylesheet":
- a = Um(n.href);
- var o = e.querySelector(Wm(a));
+ a = Hm(n.href);
+ var o = e.querySelector(Um(a));
if (o) return t.state.loading |= 4, t.instance = o, Rt(o), o;
- r = Gm(n), (a = Dm.get(a)) && Zm(r, a), o = (e.ownerDocument || e).createElement("link"), Rt(o);
+ r = Wm(n), (a = Em.get(a)) && Xm(r, a), o = (e.ownerDocument || e).createElement("link"), Rt(o);
var s = o;
return s._p = new Promise(function(e, t) {
s.onload = e, s.onerror = t;
- }), dp(o, "link", r), t.state.loading |= 4, Xm(o, n.precedence, e), t.instance = o;
- case "script": return o = qm(n.src), (a = e.querySelector(Jm(o))) ? (t.instance = a, Rt(a), a) : (r = n, (a = Dm.get(o)) && (r = w({}, n), Qm(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Rt(a), dp(a, "link", r), e.head.appendChild(a), t.instance = a);
+ }), up(o, "link", r), t.state.loading |= 4, Ym(o, n.precedence, e), t.instance = o;
+ case "script": return o = Km(n.src), (a = e.querySelector(qm(o))) ? (t.instance = a, Rt(a), a) : (r = n, (a = Em.get(o)) && (r = w({}, n), Zm(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Rt(a), up(a, "link", r), e.head.appendChild(a), t.instance = a);
case "void": return null;
default: throw Error(i(443, t.type));
}
- else t.type === "stylesheet" && !(t.state.loading & 4) && (r = t.instance, t.state.loading |= 4, Xm(r, n.precedence, e));
+ else t.type === "stylesheet" && !(t.state.loading & 4) && (r = t.instance, t.state.loading |= 4, Ym(r, n.precedence, e));
return t.instance;
}
- function Xm(e, t, n) {
+ function Ym(e, t, n) {
for (var r = n.querySelectorAll("link[rel=\"stylesheet\"][data-precedence],style[data-precedence]"), i = r.length ? r[r.length - 1] : null, a = i, o = 0; o < r.length; o++) {
var s = r[o];
if (s.dataset.precedence === t) a = s;
@@ -8698,18 +8698,18 @@ var k = /* @__PURE__ */ o(((e) => {
}
a ? a.parentNode.insertBefore(e, a.nextSibling) : (t = n.nodeType === 9 ? n.head : n, t.insertBefore(e, t.firstChild));
}
- function Zm(e, t) {
+ function Xm(e, t) {
e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.title ??= t.title;
}
- function Qm(e, t) {
+ function Zm(e, t) {
e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.integrity ??= t.integrity;
}
- var $m = null;
- function eh(e, t, n) {
- if ($m === null) {
- var r = /* @__PURE__ */ new Map(), i = $m = /* @__PURE__ */ new Map();
+ var Qm = null;
+ function $m(e, t, n) {
+ if (Qm === null) {
+ var r = /* @__PURE__ */ new Map(), i = Qm = /* @__PURE__ */ new Map();
i.set(n, r);
- } else i = $m, r = i.get(n), r || (r = /* @__PURE__ */ new Map(), i.set(n, r));
+ } else i = Qm, r = i.get(n), r || (r = /* @__PURE__ */ new Map(), i.set(n, r));
if (r.has(e)) return r;
for (r.set(e, null), n = n.getElementsByTagName(e), i = 0; i < n.length; i++) {
var a = n[i];
@@ -8722,10 +8722,10 @@ var k = /* @__PURE__ */ o(((e) => {
}
return r;
}
- function th(e, t, n) {
+ function eh(e, t, n) {
e = e.ownerDocument || e, e.head.insertBefore(n, t === "title" ? e.querySelector("head > title") : null);
}
- function nh(e, t, n) {
+ function th(e, t, n) {
if (n === 1 || t.itemProp != null) return !1;
switch (e) {
case "meta":
@@ -8743,91 +8743,91 @@ var k = /* @__PURE__ */ o(((e) => {
}
return !1;
}
- function rh(e, t) {
+ function nh(e, t) {
return e === "img" && t.src != null && t.src !== "" && t.onLoad == null && t.loading !== "lazy";
}
- function ih(e) {
+ function rh(e) {
return !(e.type === "stylesheet" && !(e.state.loading & 3));
}
- function ah(e) {
+ function ih(e) {
return (e.width || 100) * (e.height || 100) * (typeof devicePixelRatio == "number" ? devicePixelRatio : 1) * .25;
}
- function oh(e, t) {
- typeof t.decode == "function" && (e.imgCount++, t.complete || (e.imgBytes += ah(t), e.suspenseyImages.push(t)), e = fh.bind(e), t.decode().then(e, e));
+ function ah(e, t) {
+ typeof t.decode == "function" && (e.imgCount++, t.complete || (e.imgBytes += ih(t), e.suspenseyImages.push(t)), e = dh.bind(e), t.decode().then(e, e));
}
- function sh(e, t, n, r) {
+ function oh(e, t, n, r) {
if (n.type === "stylesheet" && (typeof r.media != "string" || !1 !== matchMedia(r.media).matches) && !(n.state.loading & 4)) {
if (n.instance === null) {
- var i = Um(r.href), a = t.querySelector(Wm(i));
+ var i = Hm(r.href), a = t.querySelector(Um(i));
if (a) {
- t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = dh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Rt(a);
+ t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = uh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Rt(a);
return;
}
- a = t.ownerDocument || t, r = Gm(r), (i = Dm.get(i)) && Zm(r, i), a = a.createElement("link"), Rt(a);
+ a = t.ownerDocument || t, r = Wm(r), (i = Em.get(i)) && Xm(r, i), a = a.createElement("link"), Rt(a);
var o = a;
o._p = new Promise(function(e, t) {
o.onload = e, o.onerror = t;
- }), dp(a, "link", r), n.instance = a;
+ }), up(a, "link", r), n.instance = a;
}
- e.stylesheets === null && (e.stylesheets = /* @__PURE__ */ new Map()), e.stylesheets.set(n, t), (t = n.state.preload) && !(n.state.loading & 3) && (e.count++, n = dh.bind(e), t.addEventListener("load", n), t.addEventListener("error", n));
+ e.stylesheets === null && (e.stylesheets = /* @__PURE__ */ new Map()), e.stylesheets.set(n, t), (t = n.state.preload) && !(n.state.loading & 3) && (e.count++, n = uh.bind(e), t.addEventListener("load", n), t.addEventListener("error", n));
}
}
- var ch = 0;
- function lh(e, t) {
- return e.stylesheets && e.count === 0 && mh(e, e.stylesheets), 0 < e.count || 0 < e.imgCount ? function(n) {
+ var sh = 0;
+ function ch(e, t) {
+ return e.stylesheets && e.count === 0 && ph(e, e.stylesheets), 0 < e.count || 0 < e.imgCount ? function(n) {
var r = setTimeout(function() {
- if (e.stylesheets && mh(e, e.stylesheets), e.unsuspend) {
+ if (e.stylesheets && ph(e, e.stylesheets), e.unsuspend) {
var t = e.unsuspend;
e.unsuspend = null, t();
}
}, 6e4 + t);
- 0 < e.imgBytes && ch === 0 && (ch = 62500 * hp());
+ 0 < e.imgBytes && sh === 0 && (sh = 62500 * mp());
var i = setTimeout(function() {
- if (e.waitingForImages = !1, e.count === 0 && (e.stylesheets && mh(e, e.stylesheets), e.unsuspend)) {
+ if (e.waitingForImages = !1, e.count === 0 && (e.stylesheets && ph(e, e.stylesheets), e.unsuspend)) {
var t = e.unsuspend;
e.unsuspend = null, t();
}
- }, (e.imgBytes > ch ? 50 : 800) + t);
+ }, (e.imgBytes > sh ? 50 : 800) + t);
return e.unsuspend = n, function() {
e.unsuspend = null, clearTimeout(r), clearTimeout(i);
};
} : null;
}
- function uh(e) {
+ function lh(e) {
if (e.count === 0 && (e.imgCount === 0 || !e.waitingForImages)) {
- if (e.stylesheets) mh(e, e.stylesheets);
+ if (e.stylesheets) ph(e, e.stylesheets);
else if (e.unsuspend) {
var t = e.unsuspend;
e.unsuspend = null, t();
}
}
}
+ function uh() {
+ this.count--, lh(this);
+ }
function dh() {
- this.count--, uh(this);
+ this.imgCount--, lh(this);
}
- function fh() {
- this.imgCount--, uh(this);
+ var fh = null;
+ function ph(e, t) {
+ e.stylesheets = null, e.unsuspend !== null && (e.count++, fh = /* @__PURE__ */ new Map(), t.forEach(mh, e), fh = null, uh.call(e));
}
- var ph = null;
function mh(e, t) {
- e.stylesheets = null, e.unsuspend !== null && (e.count++, ph = /* @__PURE__ */ new Map(), t.forEach(hh, e), ph = null, dh.call(e));
- }
- function hh(e, t) {
if (!(t.state.loading & 4)) {
- var n = ph.get(e);
+ var n = fh.get(e);
if (n) var r = n.get(null);
else {
- n = /* @__PURE__ */ new Map(), ph.set(e, n);
+ n = /* @__PURE__ */ new Map(), fh.set(e, n);
for (var i = e.querySelectorAll("link[data-precedence],style[data-precedence]"), a = 0; a < i.length; a++) {
var o = i[a];
(o.nodeName === "LINK" || o.getAttribute("media") !== "not all") && (n.set(o.dataset.precedence, o), r = o);
}
r && n.set(null, r);
}
- i = t.instance, o = i.getAttribute("data-precedence"), a = n.get(o) || r, a === r && n.set(null, i), n.set(o, i), this.count++, r = dh.bind(this), i.addEventListener("load", r), i.addEventListener("error", r), a ? a.parentNode.insertBefore(i, a.nextSibling) : (e = e.nodeType === 9 ? e.head : e, e.insertBefore(i, e.firstChild)), t.state.loading |= 4;
+ i = t.instance, o = i.getAttribute("data-precedence"), a = n.get(o) || r, a === r && n.set(null, i), n.set(o, i), this.count++, r = uh.bind(this), i.addEventListener("load", r), i.addEventListener("error", r), a ? a.parentNode.insertBefore(i, a.nextSibling) : (e = e.nodeType === 9 ? e.head : e, e.insertBefore(i, e.firstChild)), t.state.loading |= 4;
}
}
- var gh = {
+ var hh = {
$$typeof: te,
Provider: null,
Consumer: null,
@@ -8835,72 +8835,72 @@ var k = /* @__PURE__ */ o(((e) => {
_currentValue2: ge,
_threadCount: 0
};
- function _h(e, t, n, r, i, a, o, s, c) {
+ function gh(e, t, n, r, i, a, o, s, c) {
this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = pt(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = pt(0), this.hiddenUpdates = pt(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.transitionTypes = null, this.incompleteTransitions = /* @__PURE__ */ new Map();
}
- function vh(e, t, n, r, i, a, o, s, c, l, u, d) {
- return e = new _h(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = ki(3, null, null, t), e.current = a, a.stateNode = e, t = Aa(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
+ function _h(e, t, n, r, i, a, o, s, c, l, u, d) {
+ return e = new gh(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = Oi(3, null, null, t), e.current = a, a.stateNode = e, t = ka(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
element: r,
isDehydrated: n,
cache: t
- }, po(a), e;
+ }, fo(a), e;
}
- function yh(e) {
- return e ? (e = Di, e) : Di;
+ function vh(e) {
+ return e ? (e = Ei, e) : Ei;
}
- function bh(e, t, n, r, i, a) {
- i = yh(i), r.context === null ? r.context = i : r.pendingContext = i, r = ho(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = go(e, r, t), n !== null && (Bd(n, e, t), _o(n, e, t));
+ function yh(e, t, n, r, i, a) {
+ i = vh(i), r.context === null ? r.context = i : r.pendingContext = i, r = mo(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = ho(e, r, t), n !== null && (zd(n, e, t), go(n, e, t));
}
- function xh(e, t) {
+ function bh(e, t) {
if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
var n = e.retryLane;
e.retryLane = n !== 0 && n < t ? n : t;
}
}
- function Sh(e, t) {
- xh(e, t), (e = e.alternate) && xh(e, t);
+ function xh(e, t) {
+ bh(e, t), (e = e.alternate) && bh(e, t);
}
- function Ch(e) {
+ function Sh(e) {
if (e.tag === 13 || e.tag === 31) {
- var t = wi(e, 67108864);
- t !== null && Bd(t, e, 67108864), Sh(e, 67108864);
+ var t = Ci(e, 67108864);
+ t !== null && zd(t, e, 67108864), xh(e, 67108864);
}
}
- function wh(e) {
+ function Ch(e) {
if (e.tag === 13 || e.tag === 31) {
- var t = Ld();
+ var t = Id();
t = yt(t);
- var n = wi(e, t);
- n !== null && Bd(n, e, t), Sh(e, t);
+ var n = Ci(e, t);
+ n !== null && zd(n, e, t), xh(e, t);
}
}
- var Th = !0;
- function Eh(e, t, n, r) {
+ var wh = !0;
+ function Th(e, t, n, r) {
var i = me.T;
me.T = null;
var a = he.p;
try {
- he.p = 2, Oh(e, t, n, r);
+ he.p = 2, Dh(e, t, n, r);
} finally {
he.p = a, me.T = i;
}
}
- function Dh(e, t, n, r) {
+ function Eh(e, t, n, r) {
var i = me.T;
me.T = null;
var a = he.p;
try {
- he.p = 8, Oh(e, t, n, r);
+ he.p = 8, Dh(e, t, n, r);
} finally {
he.p = a, me.T = i;
}
}
- function Oh(e, t, n, r) {
- if (Th) {
- var i = kh(r);
- if (i === null) ep(e, t, r, Ah, n), Bh(e, r);
- else if (Hh(i, e, t, n, r)) r.stopPropagation();
- else if (Bh(e, r), t & 4 && -1 < zh.indexOf(e)) {
+ function Dh(e, t, n, r) {
+ if (wh) {
+ var i = Oh(r);
+ if (i === null) $f(e, t, r, kh, n), zh(e, r);
+ else if (Vh(i, e, t, n, r)) r.stopPropagation();
+ else if (zh(e, r), t & 4 && -1 < Rh.indexOf(e)) {
for (; i !== null;) {
var a = Ft(i);
if (a !== null) switch (a.tag) {
@@ -8913,26 +8913,26 @@ var k = /* @__PURE__ */ o(((e) => {
var c = 1 << 31 - et(o);
s.entanglements[1] |= c, o &= ~c;
}
- Nf(a), !(td & 6) && (Sd = He() + 500, Pf(0, !1));
+ Mf(a), !(ed & 6) && (xd = He() + 500, Nf(0, !1));
}
}
break;
case 31:
- case 13: s = wi(a, 2), s !== null && Bd(s, a, 2), Gd(), Sh(a, 2);
+ case 13: s = Ci(a, 2), s !== null && zd(s, a, 2), Wd(), xh(a, 2);
}
- if (a = kh(r), a === null && ep(e, t, r, Ah, n), a === i) break;
+ if (a = Oh(r), a === null && $f(e, t, r, kh, n), a === i) break;
i = a;
}
i !== null && r.stopPropagation();
- } else ep(e, t, r, null, n);
+ } else $f(e, t, r, null, n);
}
}
- function kh(e) {
- return e = Cn(e), jh(e);
+ function Oh(e) {
+ return e = Cn(e), Ah(e);
}
- var Ah = null;
- function jh(e) {
- if (Ah = null, e = Pt(e), e !== null) {
+ var kh = null;
+ function Ah(e) {
+ if (kh = null, e = Pt(e), e !== null) {
var t = o(e);
if (t === null) e = null;
else {
@@ -8949,9 +8949,9 @@ var k = /* @__PURE__ */ o(((e) => {
} else t !== e && (e = null);
}
}
- return Ah = e, null;
+ return kh = e, null;
}
- function Mh(e) {
+ function jh(e) {
switch (e) {
case "beforetoggle":
case "cancel":
@@ -9036,8 +9036,8 @@ var k = /* @__PURE__ */ o(((e) => {
default: return 32;
}
}
- var Nh = !1, G = null, Ph = null, Fh = null, Ih = /* @__PURE__ */ new Map(), Lh = /* @__PURE__ */ new Map(), Rh = [], zh = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");
- function Bh(e, t) {
+ var Mh = !1, G = null, Nh = null, Ph = null, Fh = /* @__PURE__ */ new Map(), Ih = /* @__PURE__ */ new Map(), Lh = [], Rh = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");
+ function zh(e, t) {
switch (e) {
case "focusin":
case "focusout":
@@ -9045,42 +9045,42 @@ var k = /* @__PURE__ */ o(((e) => {
break;
case "dragenter":
case "dragleave":
- Ph = null;
+ Nh = null;
break;
case "mouseover":
case "mouseout":
- Fh = null;
+ Ph = null;
break;
case "pointerover":
case "pointerout":
- Ih.delete(t.pointerId);
+ Fh.delete(t.pointerId);
break;
case "gotpointercapture":
- case "lostpointercapture": Lh.delete(t.pointerId);
+ case "lostpointercapture": Ih.delete(t.pointerId);
}
}
- function Vh(e, t, n, r, i, a) {
+ function Bh(e, t, n, r, i, a) {
return e === null || e.nativeEvent !== a ? (e = {
blockedOn: t,
domEventName: n,
eventSystemFlags: r,
nativeEvent: a,
targetContainers: [i]
- }, t !== null && (t = Ft(t), t !== null && Ch(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);
+ }, t !== null && (t = Ft(t), t !== null && Sh(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);
}
- function Hh(e, t, n, r, i) {
+ function Vh(e, t, n, r, i) {
switch (t) {
- case "focusin": return G = Vh(G, e, t, n, r, i), !0;
- case "dragenter": return Ph = Vh(Ph, e, t, n, r, i), !0;
- case "mouseover": return Fh = Vh(Fh, e, t, n, r, i), !0;
+ case "focusin": return G = Bh(G, e, t, n, r, i), !0;
+ case "dragenter": return Nh = Bh(Nh, e, t, n, r, i), !0;
+ case "mouseover": return Ph = Bh(Ph, e, t, n, r, i), !0;
case "pointerover":
var a = i.pointerId;
- return Ih.set(a, Vh(Ih.get(a) || null, e, t, n, r, i)), !0;
- case "gotpointercapture": return a = i.pointerId, Lh.set(a, Vh(Lh.get(a) || null, e, t, n, r, i)), !0;
+ return Fh.set(a, Bh(Fh.get(a) || null, e, t, n, r, i)), !0;
+ case "gotpointercapture": return a = i.pointerId, Ih.set(a, Bh(Ih.get(a) || null, e, t, n, r, i)), !0;
}
return !1;
}
- function Uh(e) {
+ function Hh(e) {
var t = Pt(e.target);
if (t !== null) {
var n = o(t);
@@ -9088,14 +9088,14 @@ var k = /* @__PURE__ */ o(((e) => {
if (t = n.tag, t === 13) {
if (t = s(n), t !== null) {
e.blockedOn = t, St(e.priority, function() {
- wh(n);
+ Ch(n);
});
return;
}
} else if (t === 31) {
if (t = c(n), t !== null) {
e.blockedOn = t, St(e.priority, function() {
- wh(n);
+ Ch(n);
});
return;
}
@@ -9107,40 +9107,40 @@ var k = /* @__PURE__ */ o(((e) => {
}
e.blockedOn = null;
}
- function Wh(e) {
+ function Uh(e) {
if (e.blockedOn !== null) return !1;
for (var t = e.targetContainers; 0 < t.length;) {
- var n = kh(e.nativeEvent);
+ var n = Oh(e.nativeEvent);
if (n === null) {
n = e.nativeEvent;
var r = new n.constructor(n.type, n);
Sn = r, n.target.dispatchEvent(r), Sn = null;
- } else return t = Ft(n), t !== null && Ch(t), e.blockedOn = n, !1;
+ } else return t = Ft(n), t !== null && Sh(t), e.blockedOn = n, !1;
t.shift();
}
return !0;
}
- function Gh(e, t, n) {
- Wh(e) && n.delete(t);
+ function Wh(e, t, n) {
+ Uh(e) && n.delete(t);
}
- function Kh() {
- Nh = !1, G !== null && Wh(G) && (G = null), Ph !== null && Wh(Ph) && (Ph = null), Fh !== null && Wh(Fh) && (Fh = null), Ih.forEach(Gh), Lh.forEach(Gh);
+ function Gh() {
+ Mh = !1, G !== null && Uh(G) && (G = null), Nh !== null && Uh(Nh) && (Nh = null), Ph !== null && Uh(Ph) && (Ph = null), Fh.forEach(Wh), Ih.forEach(Wh);
}
- function qh(e, n) {
- e.blockedOn === n && (e.blockedOn = null, Nh || (Nh = !0, t.unstable_scheduleCallback(t.unstable_NormalPriority, Kh)));
+ function Kh(e, n) {
+ e.blockedOn === n && (e.blockedOn = null, Mh || (Mh = !0, t.unstable_scheduleCallback(t.unstable_NormalPriority, Gh)));
}
- var Jh = null;
- function Yh(e) {
- Jh !== e && (Jh = e, t.unstable_scheduleCallback(t.unstable_NormalPriority, function() {
- Jh === e && (Jh = null);
+ var qh = null;
+ function Jh(e) {
+ qh !== e && (qh = e, t.unstable_scheduleCallback(t.unstable_NormalPriority, function() {
+ qh === e && (qh = null);
for (var t = 0; t < e.length; t += 3) {
var n = e[t], r = e[t + 1], i = e[t + 2];
if (typeof r != "function") {
- if (jh(r || n) === null) continue;
+ if (Ah(r || n) === null) continue;
break;
}
var a = Ft(n);
- a !== null && (e.splice(t, 3), t -= 3, tc(a, {
+ a !== null && (e.splice(t, 3), t -= 3, ec(a, {
pending: !0,
data: i,
method: n.method,
@@ -9149,30 +9149,30 @@ var k = /* @__PURE__ */ o(((e) => {
}
}));
}
- function Xh(e) {
+ function Yh(e) {
function t(t) {
- return qh(t, e);
+ return Kh(t, e);
}
- G !== null && qh(G, e), Ph !== null && qh(Ph, e), Fh !== null && qh(Fh, e), Ih.forEach(t), Lh.forEach(t);
- for (var n = 0; n < Rh.length; n++) {
- var r = Rh[n];
+ G !== null && Kh(G, e), Nh !== null && Kh(Nh, e), Ph !== null && Kh(Ph, e), Fh.forEach(t), Ih.forEach(t);
+ for (var n = 0; n < Lh.length; n++) {
+ var r = Lh[n];
r.blockedOn === e && (r.blockedOn = null);
}
- for (; 0 < Rh.length && (n = Rh[0], n.blockedOn === null);) Uh(n), n.blockedOn === null && Rh.shift();
+ for (; 0 < Lh.length && (n = Lh[0], n.blockedOn === null);) Hh(n), n.blockedOn === null && Lh.shift();
if (n = (e.ownerDocument || e).$$reactFormReplay, n != null) for (r = 0; r < n.length; r += 3) {
var i = n[r], a = n[r + 1], o = i[Tt] || null;
- if (typeof a == "function") o || Yh(n);
+ if (typeof a == "function") o || Jh(n);
else if (o) {
var s = null;
if (a && a.hasAttribute("formAction")) {
if (i = a, o = a[Tt] || null) s = o.formAction;
- else if (jh(i) !== null) continue;
+ else if (Ah(i) !== null) continue;
} else s = o.action;
- typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Yh(n);
+ typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Jh(n);
}
}
}
- function Zh() {
+ function Xh() {
function e(e) {
e.canIntercept && e.info === "react-transition" && e.intercept({
handler: function() {
@@ -9204,26 +9204,26 @@ var k = /* @__PURE__ */ o(((e) => {
};
}
}
- function Qh(e) {
+ function Zh(e) {
this._internalRoot = e;
}
- $h.prototype.render = Qh.prototype.render = function(e) {
+ Qh.prototype.render = Zh.prototype.render = function(e) {
var t = this._internalRoot;
if (t === null) throw Error(i(409));
var n = t.current;
- bh(n, Ld(), e, t, null, null);
- }, $h.prototype.unmount = Qh.prototype.unmount = function() {
+ yh(n, Id(), e, t, null, null);
+ }, Qh.prototype.unmount = Zh.prototype.unmount = function() {
var e = this._internalRoot;
if (e !== null) {
this._internalRoot = null;
var t = e.containerInfo;
- bh(e.current, 2, null, e, null, null), Gd(), t[Et] = null;
+ yh(e.current, 2, null, e, null, null), Wd(), t[Et] = null;
}
};
- function $h(e) {
+ function Qh(e) {
this._internalRoot = e;
}
- $h.prototype.unstable_scheduleHydration = function(e) {
+ Qh.prototype.unstable_scheduleHydration = function(e) {
if (e) {
var t = xt();
e = {
@@ -9231,18 +9231,18 @@ var k = /* @__PURE__ */ o(((e) => {
target: e,
priority: t
};
- for (var n = 0; n < Rh.length && t !== 0 && t < Rh[n].priority; n++);
- Rh.splice(n, 0, e), n === 0 && Uh(e);
+ for (var n = 0; n < Lh.length && t !== 0 && t < Lh[n].priority; n++);
+ Lh.splice(n, 0, e), n === 0 && Hh(e);
}
};
- var eg = n.version;
- if (eg !== "19.3.1") throw Error(i(527, eg, "19.3.1"));
+ var $h = n.version;
+ if ($h !== "19.3.1") throw Error(i(527, $h, "19.3.1"));
he.findDOMNode = function(e) {
var t = e._reactInternals;
if (t === void 0) throw typeof e.render == "function" ? Error(i(188)) : (e = Object.keys(e).join(","), Error(i(268, e)));
return e = u(t), e = e === null ? null : d(e), e = e === null ? null : e.stateNode, e;
};
- var tg = {
+ var eg = {
bundleType: 0,
version: "19.3.1",
rendererPackageName: "react-dom",
@@ -9250,15 +9250,15 @@ var k = /* @__PURE__ */ o(((e) => {
reconcilerVersion: "19.3.1"
};
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
- var ng = __REACT_DEVTOOLS_GLOBAL_HOOK__;
- if (!ng.isDisabled && ng.supportsFiber) try {
- Ze = ng.inject(tg), Qe = ng;
+ var tg = __REACT_DEVTOOLS_GLOBAL_HOOK__;
+ if (!tg.isDisabled && tg.supportsFiber) try {
+ Ze = tg.inject(eg), Qe = tg;
} catch {}
}
e.createRoot = function(e, t) {
if (!a(e)) throw Error(i(299));
- var n = !1, r = "", o = wc, s = Tc, c = Ec;
- return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = vh(e, 1, !1, null, null, n, r, null, o, s, c, Zh), e[Et] = t.current, Qf(e), new Qh(t);
+ var n = !1, r = "", o = Cc, s = wc, c = Tc;
+ return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = _h(e, 1, !1, null, null, n, r, null, o, s, c, Xh), e[Et] = t.current, Zf(e), new Zh(t);
};
})), P = /* @__PURE__ */ o(((e, t) => {
function n() {
@@ -11702,22 +11702,22 @@ function Cr(e) {
return `${n.getFullYear()}-${r(n.getMonth() + 1)}-${r(n.getDate())} ${r(n.getHours())}:${r(n.getMinutes())}`;
}
// src/react/follow-manage/follow-manage.ts
-var wr = "/api/follow", Tr = "/api/follow/credentials", Er = "/api/follow/check", Dr = "/api/follow/source", Or = "/api/follow/resolve", kr = "/api/follow/suggest", Ar = "/api/follow/author-alias", jr = "/api/follow/credential", Mr = "/api/follow/status", Nr = "/api/feeds", Pr = "/api/feeds/source", Fr = "/api/feeds/check", Ir = "/api/feeds/lookup", Lr = ["follow-manage"], Rr = ["follow-manage", "credentials"], zr = ["follow-manage", "check"], Br = ["follow-manage", "resolve"], Vr = ["follow-manage", "feeds"], Hr = (e) => [
+var wr = "/api/follow", Tr = "/api/follow/credentials", Er = "/api/follow/check", Dr = "/api/follow/source", Or = "/api/follow/resolve", kr = "/api/follow/suggest", Ar = "/api/follow/author-alias", jr = "/api/follow/credential", Mr = "/api/follow/status", Nr = "/api/feeds", Pr = "/api/feeds/source", eee = "/api/feeds/check", Fr = "/api/feeds/lookup", Ir = ["follow-manage"], Lr = ["follow-manage", "credentials"], Rr = ["follow-manage", "check"], zr = ["follow-manage", "resolve"], Br = ["follow-manage", "feeds"], Vr = (e) => [
"follow-manage",
"suggest",
e
-], Ur = [["default", "默认视图"], ["table", "表格视图"]], Wr = [
+], Hr = [["default", "默认视图"], ["table", "表格视图"]], Ur = [
10,
20,
50,
100
-], Gr = Object.fromEntries(ur), Kr = {
+], Wr = Object.fromEntries(ur), Gr = {
author: "name",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, qr = (e) => Ur.some(([t]) => t === e), Jr = (e) => Wr.includes(Number(e)) ? Number(e) : 20, Yr = {
+}, Kr = (e) => Hr.some(([t]) => t === e), qr = (e) => Ur.includes(Number(e)) ? Number(e) : 20, Jr = {
checked: ["从近到远", "从远到近"],
added: ["从近到远", "从远到近"],
name: ["倒序", "正序"],
@@ -11725,34 +11725,34 @@ var wr = "/api/follow", Tr = "/api/follow/credentials", Er = "/api/follow/check"
source: ["倒序", "正序"],
provider: ["倒序", "正序"],
status: ["倒序", "正序"]
-}, Xr = (e, t) => `按${Gr[e]}${Yr[e][t === "asc" ? 0 : 1]}排序`;
-function Zr(e) {
+}, Yr = (e, t) => `按${Wr[e]}${Jr[e][t === "asc" ? 0 : 1]}排序`;
+function Xr(e) {
let t = e.last_status;
return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;
}
-function Qr(e) {
+function Zr(e) {
return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";
}
-var $r = (e) => e.last_status === "error" || e.last_status === "unauthorized";
-function ei(e) {
+var Qr = (e) => e.last_status === "error" || e.last_status === "unauthorized";
+function $r(e) {
let t = Number(e) || 0;
return t >= 2880 ? `每 ${Math.round(t / 1440).toLocaleString()} 天` : t >= 60 ? `每 ${Math.round(t / 60)} 小时` : `每 ${t} 分钟`;
}
-function ti(e) {
+function ei(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] : "";
}
-var ni = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), ri = {
- source: ni,
- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || ni(e, t),
- status: (e, t) => Zr(e) - Zr(t) || ni(e, t)
-}, ii = (e) => Date.parse(e || "") || 0, ai = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
-function oi(e, t = []) {
+var ti = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), ni = {
+ source: ti,
+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || ti(e, t),
+ status: (e, t) => Xr(e) - Xr(t) || ti(e, t)
+}, ri = (e) => Date.parse(e || "") || 0, ii = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
+function ai(e, t = []) {
if (!e.length) return "";
- let n = (e) => String(e.author_name || "").trim() || ai(e.label), r = e.find((e) => e.entity_name);
+ let n = (e) => String(e.author_name || "").trim() || ii(e.label), r = e.find((e) => e.entity_name);
if (r) return r.entity_name;
let i = t.find((t) => `name:${t.canonical_key}` === e[0]?.author_key);
- if (i) return ai(i.canonical_name);
+ if (i) return ii(i.canonical_name);
let a = e.find((e) => e.official_avatar_url);
if (a && n(a)) return n(a);
let o = e.map(n).filter(Boolean);
@@ -11760,18 +11760,18 @@ function oi(e, t = []) {
let s = (e) => (e.match(/[A-Z]/g) || []).length;
return o.reduce((e, t) => s(t) > s(e) ? t : e, o[0]);
}
-function si(e) {
+function oi(e) {
let t = e.trim().match(/[A-Za-z0-9]/);
return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();
}
-function ci(e) {
+function si(e) {
let t = e.find((e) => e.official_avatar_url), n = e.find((e) => e.avatar_url), r = t?.official_avatar_url || n?.avatar_url || "";
return {
src: r,
fallback: t && n && n.avatar_url !== r && n.avatar_url || ""
};
}
-function li(e) {
+function ci(e) {
let t = [], n = /* @__PURE__ */ new Map();
for (let r of e) {
let e = r.author_key || `source:${r.id}`;
@@ -11779,31 +11779,31 @@ function li(e) {
}
return t.map((e) => n.get(e));
}
-function ui(e, t, n, r = []) {
- let i = li(e), a = n === fr[t] ? 1 : -1, o = (e) => oi(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = ri[t];
+function li(e, t, n, r = []) {
+ let i = ci(e), a = n === fr[t] ? 1 : -1, o = (e) => ai(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = ni[t];
if (c) {
for (let e of i) e.sort((e, t) => a * c(e, t));
return i.sort((e, t) => a * c(e[0], t[0]) || s(e, t));
}
- let l = (e) => Math.max(...e.map((e) => ii(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => ii(e.created_at)));
+ let l = (e) => Math.max(...e.map((e) => ri(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => ri(e.created_at)));
return i.sort((e, n) => t === "name" ? a * s(e, n) : t === "sources" ? a * (n.length - e.length) || s(e, n) : t === "added" ? a * (u(n) - u(e)) || s(e, n) : a * (l(n) - l(e)) || s(e, n));
}
-function di(e, t, n, r = []) {
+function ui(e, t, n, r = []) {
let i = e.flatMap((e) => {
- let t = oi(e, r);
+ let t = ai(e, r);
return e.map((n) => ({
source: n,
group: e,
author: t
}));
- }), a = ri[t];
+ }), a = ni[t];
if (a) {
let e = n === fr[t] ? 1 : -1;
i.sort((t, n) => e * a(t.source, n.source));
}
return i;
}
-function fi(e, t, n) {
+function di(e, t, n) {
let r = gr(e, t), i = _r(n, r), a = (i - 1) * t;
return {
page: i,
@@ -11813,99 +11813,99 @@ function fi(e, t, n) {
end: Math.min(a + t, e)
};
}
-function pi(e, t) {
+function fi(e, t) {
let n = new Set(t.map((e) => e.id));
return new Set([...e].filter((e) => n.has(e)));
}
-function mi(e, t) {
+function pi(e, t) {
let n = t.filter((t) => e.has(t)).length;
return {
all: t.length > 0 && n === t.length,
some: n > 0 && n < t.length
};
}
-function hi(e, t, n) {
+function mi(e, t, n) {
let r = new Set(e);
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var gi = (e) => B(`${wr}?summary=1`, e), _i = (e) => B(Tr, e), vi = (e) => B(Er, e), yi = (e) => B(Or, e), bi = (e, t) => B(`${kr}?q=${encodeURIComponent(e)}`, t), xi = (e) => V(Er, {
+var hi = (e) => B(`${wr}?summary=1`, e), gi = (e) => B(Tr, e), _i = (e) => B(Er, e), vi = (e) => B(Or, e), yi = (e, t) => B(`${kr}?q=${encodeURIComponent(e)}`, t), bi = (e) => V(Er, {
...e?.length ? { sources: e } : {},
background: !0
-}), Si = (e) => V(Or, {
+}), xi = (e) => V(Or, {
lines: e,
background: !0
-}), Ci = (e, t) => V(Dr, {
+}), Si = (e, t) => V(Dr, {
action: "enabled",
id: e,
enabled: t
-}), wi = (e) => V(Dr, {
+}), Ci = (e) => V(Dr, {
action: "remove",
id: e
-}), Ti = (e) => V(Dr, {
+}), wi = (e) => V(Dr, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), Ei = (e, t) => V(Ar, {
+}), Ti = (e, t) => V(Ar, {
action: "add",
canonical: e,
alias: t
-}), Di = (e) => V(Ar, {
+}), Ei = (e) => V(Ar, {
action: "remove",
alias: e
-}), Oi = (e, t, n) => V(Ar, {
+}), Di = (e, t, n) => V(Ar, {
action: "rename",
canonical_key: e,
canonical: t
-}, "POST", n), ki = (e, t) => V(jr, {
+}, "POST", n), Oi = (e, t) => V(jr, {
provider: e,
values: t
-}), Ai = (e, t) => V(Mr, {
+}), ki = (e, t) => V(Mr, {
item: e,
to: t
-}), ji = () => B(`${wr}?status=new&limit=1000`);
-async function Mi(e) {
+}), Ai = () => B(`${wr}?status=new&limit=1000`);
+async function ji(e) {
let t = await B(Nr, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
-var Ni = (e, t, n) => V(Pr, {
+var Mi = (e, t, n) => V(Pr, {
action: "enabled",
id: e,
enabled: t
-}, "POST", n), Pi = (e, t) => V(Pr, {
+}, "POST", n), Ni = (e, t) => V(Pr, {
action: "remove",
id: e
-}, "POST", t), Fi = (e, t) => V(Fr, t?.length ? { sources: t } : { all: !0 }, "POST", e), Ii = (e, t) => B(`${Ir}?q=${encodeURIComponent(e)}`, t), Li = (e, t, n) => V(Pr, {
+}, "POST", t), Pi = (e, t) => V(eee, t?.length ? { sources: t } : { all: !0 }, "POST", e), Fi = (e, t) => B(`${Fr}?q=${encodeURIComponent(e)}`, t), Ii = (e, t, n) => V(Pr, {
action: "follow-name",
name: e,
ids: t
-}, "POST", n), Ri = (e, t) => V(Pr, {
+}, "POST", n), Li = (e, t) => V(Pr, {
action: "follow",
entity_id: e,
enabled: !0
}, "POST", t);
-async function zi(e) {
+async function Ri(e) {
await Promise.all([
H.fetchQuery({
- queryKey: Lr,
- queryFn: () => gi(e)
+ queryKey: Ir,
+ queryFn: () => hi(e)
}),
H.fetchQuery({
- queryKey: Rr,
- queryFn: () => _i(e)
+ queryKey: Lr,
+ queryFn: () => gi(e)
}),
H.fetchQuery({
- queryKey: Vr,
- queryFn: () => Mi(e)
+ queryKey: Br,
+ queryFn: () => ji(e)
})
]);
}
-function Bi(e, t) {
- H.setQueryData(Lr, (n) => n && {
+function zi(e, t) {
+ H.setQueryData(Ir, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -11913,28 +11913,28 @@ function Bi(e, t) {
} : n)
});
}
-function Vi(e) {
+function Bi(e) {
let t = new Set(e);
- H.setQueryData(Lr, (e) => e && {
+ H.setQueryData(Ir, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var Hi = () => H.invalidateQueries({
- queryKey: Lr,
+var Vi = () => H.invalidateQueries({
+ queryKey: Ir,
exact: !0
});
-function Ui(e) {
+function Hi(e) {
let t = e.results || [], n = t.reduce((e, t) => e + (t.added || 0), 0), r = t.reduce((e, t) => e + (t.updated || 0), 0), i = t.filter((e) => !e.ok).length, a = [];
return n && a.push(`新增 ${n} 条`), r && a.push(`更新 ${r} 条`), !a.length && i < t.length && a.push("没有更新"), i && a.push(`${i} 个失败`), a.length || a.push("没有更新"), `已检查 ${t.length} 个来源:${a.join(" · ")}`;
}
-function Wi(e) {
+function Ui(e) {
let t = e.results || [], n = (e) => t.reduce((t, n) => t + (e(n) || 0), 0), r = n((e) => e.added), i = n((e) => e.updated), a = n((e) => e.skipped_compilations), o = n((e) => e.skipped) - a, s = n((e) => e.history_skipped), c = n((e) => e.probed), l = t.filter((e) => e.ok && !e.added && !e.updated).length, u = t.filter((e) => !e.ok).length, d = [];
r && d.push(`新增 ${r} 条`), i && d.push(`更新 ${i} 条`), o && d.push(`跳过 ${o} 条无资源`), a && d.push(`排除 ${a} 个超大合集`), s && d.push(`跳过 ${s} 条超出首次采集范围的历史内容`), c && d.push(`回查 ${c} 条`), l && d.push(`${l} 个来源没有更新`), d.length || d.push("没有任何更新");
let f = t.filter((e) => e.exhausted).length;
return f && d.push(`${f} 个没有更多内容`), u && d.push(`${u} 个失败`), `检查了 ${t.length} 个来源:${d.join(" · ")}`;
}
-var Gi = (e) => (e?.results || []).filter((e) => !e.ok), Ki = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", qi = (e) => e.last_checked_at ? Cr(e.last_checked_at) : "未检查", Ji = /* @__PURE__ */ new Set([
+var Wi = (e) => (e?.results || []).filter((e) => !e.ok), Gi = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", Ki = (e) => e.last_checked_at ? Cr(e.last_checked_at) : "未检查", qi = /* @__PURE__ */ new Set([
"fanbox",
"patreon",
"subscribestar",
@@ -11948,49 +11948,49 @@ var Gi = (e) => (e?.results || []).filter((e) => !e.ok), Ki = (e) => (e?.results
"gofile",
"f95zone",
"simpcity"
-]), Yi = (e) => Ji.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Xi = {
+]), Ji = (e) => qi.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", Yi = {
required: "需要",
optional: "可选",
none: "不需要",
blocked: "暂时无法连接"
-}, Zi = (e) => !!e.present && !e.missing.length, Qi = [
+}, Xi = (e) => !!e.present && !e.missing.length, Zi = [
["", "全部"],
["new", "未看"],
["saved", "已保存"],
["ignored", "已忽略"]
-], $i = [
+], Qi = [
["new", "更新时间"],
["hot", "热度"],
["dur", "时长"]
-], ea = {
+], $i = {
new: ["从新到旧", "从旧到新"],
hot: ["从高到低", "从低到高"],
dur: ["从长到短", "从短到长"]
-}, ta = "rand";
-function na(e, t) {
+}, ea = "rand";
+function ta(e, t) {
let n = (e) => encodeURIComponent(e.join(","));
return `/api/follow?limit=100&offset=${t}` + (e.status ? `&status=${e.status}` : "") + (e.author ? `&author=${n([e.author])}` : "") + (e.provider ? `&provider=${n([e.provider])}` : "") + (e.tags.length ? `&tag=${n(e.tags)}` : "") + (e.work ? `&work=${n([e.work])}` : "") + (e.durMin ? `&dur_min=${e.durMin}` : "") + (e.durMax ? `&dur_max=${e.durMax}` : "") + (e.sort === "new" ? "" : `&sort=${e.sort}`) + (e.sort === "rand" ? `&seed=${e.seed}` : "") + (e.dir === "desc" ? "" : `&dir=${e.dir}`);
}
-var ra = Infinity;
-function ia(e, t) {
+var na = Infinity;
+function ra(e, t) {
return {
queryKey: [
"follow-feed",
- na(e, 0),
+ ta(e, 0),
t
],
- queryFn: ({ pageParam: t, signal: n }) => B(na(e, t), n),
+ queryFn: ({ pageParam: t, signal: n }) => B(ta(e, t), n),
initialPageParam: 0,
getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 100 : void 0,
placeholderData: ke,
- gcTime: ra
+ gcTime: na
};
}
-var aa = ["follow-feed", "credentials"], oa = (e) => B(Tr, e).catch(() => ({ providers: [] }));
-async function sa(e, t) {
- let n = ia(e.view, e.revision);
+var ia = ["follow-feed", "credentials"], aa = (e) => B(Tr, e).catch(() => ({ providers: [] }));
+async function oa(e, t) {
+ let n = ra(e.view, e.revision);
H.removeQueries({
- queryKey: aa,
+ queryKey: ia,
exact: !0
});
let r = H.getQueryData(n.queryKey) !== void 0;
@@ -12002,13 +12002,13 @@ async function sa(e, t) {
}),
initialPageParam: 0,
getNextPageParam: n.getNextPageParam,
- gcTime: ra
+ gcTime: na
}), H.fetchQuery({
- queryKey: aa,
- queryFn: () => oa(t)
+ queryKey: ia,
+ queryFn: () => aa(t)
})]);
}
-function ca(e) {
+function sa(e) {
if (!e?.pages.length) return null;
let t = e.pages, n = t[t.length - 1];
return {
@@ -12017,10 +12017,10 @@ function ca(e) {
groups: t.flatMap((e) => e.groups || [])
};
}
-function la(e, t, n) {
+function ca(e, t, n) {
return [...e].sort((e, r) => rr(n, t(e)) - rr(n, t(r)) || String(t(e)).localeCompare(String(t(r))));
}
-function ua(e) {
+function la(e) {
let t = /* @__PURE__ */ new Set();
return [
e.primary,
@@ -12028,14 +12028,14 @@ function ua(e) {
...e.duplicates
].filter((e) => !e || t.has(e.id) ? !1 : (t.add(e.id), !0));
}
-function da(e) {
+function ua(e) {
let t = H.getQueryCache().findAll({ queryKey: ["follow-feed"] }).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt);
for (let n of t) {
let t = n.state.data;
if (!Array.isArray(t?.pages) || !t.pages.length) continue;
let r = t.pages[t.pages.length - 1];
for (let n of t.pages) for (let t of n.groups || []) {
- let n = ua(t).find((t) => t.id === e);
+ let n = la(t).find((t) => t.id === e);
if (n) return {
item: n,
group: t,
@@ -12046,7 +12046,7 @@ function da(e) {
}
return null;
}
-function fa(e) {
+function da(e) {
H.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
@@ -12056,7 +12056,7 @@ function fa(e) {
...t,
groups: (t.groups || []).map((t) => {
let n = (t) => t.id === e.id ? e : t;
- return ua(t).some((t) => t.id === e.id) ? {
+ return la(t).some((t) => t.id === e.id) ? {
...t,
primary: n(t.primary),
variants: t.variants.map(n),
@@ -12066,30 +12066,30 @@ function fa(e) {
}))
});
}
-function pa(e, t) {
+function fa(e, t) {
H.setQueriesData({
queryKey: ["follow-feed"],
predicate: (e) => Array.isArray(e.state.data?.pages)
- }, (n) => n && Ta(n, null, e, t));
+ }, (n) => n && wa(n, null, e, t));
}
-function ma(e) {
- return ua(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
+function pa(e) {
+ return la(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
}
-function ha(e) {
+function ma(e) {
let t = /* @__PURE__ */ new Set(), n = e.media_items || [];
return n.length ? n.forEach((e) => {
(e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind);
}) : (e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind), t;
}
-function ga(e) {
+function ha(e) {
let t = /* @__PURE__ */ new Set();
- return ua(e).forEach((e) => ha(e).forEach((e) => t.add(e))), t;
+ return la(e).forEach((e) => ma(e).forEach((e) => t.add(e))), t;
}
-function _a(e, t) {
+function ga(e, t) {
let n = t === "images" ? "image" : "video";
- return ma(e).find((e) => ha(e).has(n)) || e.primary;
+ return pa(e).find((e) => ma(e).has(n)) || e.primary;
}
-function va(e) {
+function _a(e) {
return {
status: "",
media: "videos",
@@ -12104,16 +12104,16 @@ function va(e) {
seed: 0
};
}
-function ya(e) {
- return ma(e).filter((e) => e.playable && e.media_kind === "video");
+function va(e) {
+ return pa(e).filter((e) => e.playable && e.media_kind === "video");
}
-var ba = {
+var ya = {
video: "个视频",
image: "张图片",
mixed: "个媒体"
};
-function xa({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {
- let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${ba[s] || ba.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
+function ba({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {
+ let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${ya[s] || ya.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
for (let t of n?.faces || []) r && t.media_kind !== "image" || t.thumb_url && t.thumb_url !== e && !u.has(t.face) && (u.add(t.face), d.push(t.thumb_url));
return {
isMix: !!c,
@@ -12122,14 +12122,14 @@ function xa({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r
faces: d.length > 1 ? d.slice(0, i) : []
};
}
-function Sa(e) {
+function xa(e) {
let t = e.filter((e) => e.can_backfill).map((e) => (e.backfill_page || 0) + 1);
if (!t.length) return "";
let n = Math.max(...t), r = Math.min(...t);
return n <= 1 ? "每个来源都只抓了第 1 页" : r === n ? `每个来源都抓到第 ${n} 页` : `已抓到第 ${r}–${n} 页`;
}
-function Ca(e, t, n) {
- return e === t ? ea[e] ? {
+function Sa(e, t, n) {
+ return e === t ? $i[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
@@ -12137,13 +12137,13 @@ function Ca(e, t, n) {
dir: "desc"
};
}
-function wa(e, t, n, r) {
- let i = Ca(e, n, r);
+function Ca(e, t, n, r) {
+ let i = Sa(e, n, r);
if (!i) return "";
- let a = ea[i.sort];
+ let a = $i[i.sort];
return `按${t}${a ? a[+(i.dir === "asc")] : ""}排序`;
}
-function Ta(e, t, n, r) {
+function wa(e, t, n, r) {
let i = "", a = e.pages.map((e) => ({
...e,
groups: (e.groups || []).flatMap((e) => {
@@ -12173,7 +12173,7 @@ function Ta(e, t, n, r) {
})
};
}
-function Ea(e, t) {
+function Ta(e, t) {
let n = [];
return e.author && n.push({
kind: "创作者",
@@ -12193,7 +12193,7 @@ function Ea(e, t) {
label: e
})), n;
}
-function Da(e, t) {
+function Ea(e, t) {
return t.kind === "创作者" ? {
...e,
author: ""
@@ -12208,7 +12208,7 @@ function Da(e, t) {
tags: e.tags.filter((e) => e !== t.key)
};
}
-function Oa(e, t) {
+function Da(e, t) {
for (let n of e) {
let e = n.primary?.tag_types?.[t];
if (e) return e;
@@ -12216,13 +12216,13 @@ function Oa(e, t) {
return "general";
}
// src/react/follow-feed/follow-view.ts
-function ka(e, t, n) {
+function Oa(e, t, n) {
let r = new URLSearchParams(e), i = (e) => [...new Set((r.get(e) || "").split(",").filter(Boolean))], a = (e) => {
let t = Number(r.get(e));
return t > 0 ? t : 0;
}, o = r.get("status"), s = r.get("sort");
return {
- status: Qi.find(([e]) => e && e === o)?.[0] || "",
+ status: Zi.find(([e]) => e && e === o)?.[0] || "",
media: r.get("media") === "images" ? "images" : "videos",
author: i("author")[0] || "",
provider: i("provider")[0] || "",
@@ -12230,16 +12230,16 @@ function ka(e, t, n) {
tags: i("tag"),
durMin: a("dur_min"),
durMax: a("dur_max"),
- sort: s === "rand" ? s : $i.find(([e]) => e === s)?.[0] || "new",
+ sort: s === "rand" ? s : Qi.find(([e]) => e === s)?.[0] || "new",
seed: Number(r.get("seed")) >>> 0 || t || n(),
dir: r.get("dir") === "asc" ? "asc" : "desc"
};
}
-function Aa(e) {
+function ka(e) {
let t = new URLSearchParams();
return e.author && t.set("author", e.author), e.provider && t.set("provider", e.provider), e.tags.length && t.set("tag", e.tags.join(",")), e.work && t.set("work", e.work), e.durMin && t.set("dur_min", String(e.durMin)), e.durMax && t.set("dur_max", String(e.durMax)), e.status && t.set("status", e.status), e.media === "images" && t.set("media", e.media), e.sort !== "new" && t.set("sort", e.sort), e.sort === "rand" && t.set("seed", String(e.seed)), e.dir !== "desc" && t.set("dir", e.dir), "/follow" + (t.size ? `?${t}` : "");
}
-function ja(e, t) {
+function Aa(e, t) {
return {
...e,
author: t,
@@ -12252,7 +12252,7 @@ function ja(e, t) {
status: ""
};
}
-function Ma(e, t) {
+function ja(e, t) {
return {
...e,
author: "",
@@ -12265,14 +12265,14 @@ function Ma(e, t) {
};
}
// src/react/follow-feed/follow-controller.ts
-function Na(e, t, n) {
+function Ma(e, t, n) {
let r = () => {
- let t = ka(e.location().search, e.view().seed, e.rollSeed);
+ let t = Oa(e.location().search, e.view().seed, e.rollSeed);
return e.adoptView(t), t;
}, i = (t) => {
e.live() && e.push(t);
}, a = (t, n = {}) => {
- e.adoptView(t), e.route(Aa(t)), i({
+ e.adoptView(t), e.route(ka(t)), i({
...n,
view: e.view()
}), e.syncPhotoWalls();
@@ -12281,7 +12281,7 @@ function Na(e, t, n) {
e.writeSession({ discoverySeed: t }), a({
...e.view(),
seed: t,
- sort: ta
+ sort: ea
}, { seed: e.session().discoverySeed });
}, s = {
...n,
@@ -12322,25 +12322,25 @@ function Na(e, t, n) {
discoverySeed: e.enterSeed(),
scrollY: 0,
revision: e.session().revision + 1
- }), e.openPage("/follow")) : e.location().pathname !== "/follow" && e.openPage(Aa(e.view()));
+ }), e.openPage("/follow")) : e.location().pathname !== "/follow" && e.openPage(ka(e.view()));
}
};
}
// src/card-art/face-frame.ts
-var Pa = .32, Fa = .6;
-function Ia(e) {
+var Na = .32, Pa = .6;
+function Fa(e) {
return e ? Number.isFinite(e.cx) && Number.isFinite(e.cy) && Number(e.faceW) > 0 && Number(e.imgW) > 0 && Number(e.imgH) > 0 : !1;
}
-function La(e, t, n = 1, r = Pa, i = Fa) {
- if (!Ia(e) || !(t && t.w > 0 && t.h > 0)) return 1;
+function Ia(e, t, n = 1, r = Na, i = Pa) {
+ if (!Fa(e) || !(t && t.w > 0 && t.h > 0)) return 1;
let a = n > 0 ? n : 1, o = Math.max(t.w / e.imgW, t.h / e.imgH), s = e.faceW * o;
if (!(s > 0)) return 1;
let c = Math.min(t.w, t.h), l = Math.max(r, 13 / c) * c / s, u = Math.max(t.w / (2 * Math.min(e.cx, 1 - e.cx) * e.imgW * o), t.h / (2 * Math.min(e.cy, 1 - e.cy) * e.imgH * o)), d = e.faceW / (s * a);
return Math.max(1, Math.min(Math.max(l, Math.min(u, i * c / s)), d));
}
-function Ra(e, t, n = 1, r = Pa, i = Fa) {
- let a = La(e, t, n, r, i);
- if (a <= 1 || !Ia(e) || !t) return null;
+function La(e, t, n = 1, r = Na, i = Pa) {
+ let a = Ia(e, t, n, r, i);
+ if (a <= 1 || !Fa(e) || !t) return null;
let o = Math.max(t.w / e.imgW, t.h / e.imgH) * a, s = e.imgW * o, c = e.imgH * o, l = Math.min(0, Math.max(t.w - s, t.w / 2 - e.cx * s)), u = Math.min(0, Math.max(t.h - c, t.h / 2 - e.cy * c)), d = (e, t) => Math.round(e / t * 1e4) / 100;
return {
zoom: Math.round(a * 1e3) / 1e3,
@@ -12351,48 +12351,48 @@ function Ra(e, t, n = 1, r = Pa, i = Fa) {
};
}
// src/card-art/image-fallback.ts
-var za = "|", Ba = "closest:";
-function Va(e) {
- return String(e ?? "").split(za).map((e) => e.trim()).filter(Boolean);
+var Ra = "|", za = "closest:";
+function Ba(e) {
+ return String(e ?? "").split(Ra).map((e) => e.trim()).filter(Boolean);
}
-function Ha({ drop: e = "self", fallbacks: t = [], initial: n = "", dropClass: r = "", dropStyle: i = !1 } = {}) {
+function Va({ drop: e = "self", fallbacks: t = [], initial: n = "", dropClass: r = "", dropStyle: i = !1 } = {}) {
let a = (Array.isArray(t) ? t : [t]).filter(Boolean);
return [
`data-drop="${z(e)}"`,
- a.length ? `data-fallbacks="${z(a.join(za))}"` : "",
+ a.length ? `data-fallbacks="${z(a.join(Ra))}"` : "",
n ? `data-initial="${z(n)}"` : "",
r ? `data-drop-class="${z(r)}"` : "",
i ? "data-drop-style" : ""
].filter(Boolean).join(" ");
}
-function Ua(e) {
+function Ha(e) {
if (!e || !e.dataset || !e.dataset.drop) return "";
- let t = Va(e.dataset.fallbacks);
+ let t = Ba(e.dataset.fallbacks);
if (t.length) {
let [n = "", ...r] = t;
- return "dropStyle" in e.dataset && e.removeAttribute("style"), delete e.dataset.facebox, r.length ? e.dataset.fallbacks = r.join(za) : delete e.dataset.fallbacks, n === e.dataset.fallbackNoteSrc && e.dataset.fallbackNote && (e.title = e.dataset.fallbackNote, e.setAttribute("aria-label", e.dataset.fallbackNote)), e.src = n, "retry";
+ return "dropStyle" in e.dataset && e.removeAttribute("style"), delete e.dataset.facebox, r.length ? e.dataset.fallbacks = r.join(Ra) : delete e.dataset.fallbacks, n === e.dataset.fallbackNoteSrc && e.dataset.fallbackNote && (e.title = e.dataset.fallbackNote, e.setAttribute("aria-label", e.dataset.fallbackNote)), e.src = n, "retry";
}
let n = e.dataset.drop;
- if (n.startsWith(Ba)) return (e.closest(n.slice(8)) || e).remove(), "drop";
+ if (n.startsWith(za)) return (e.closest(n.slice(8)) || e).remove(), "drop";
if (n === "initial") {
let t = document.createElement("span");
return t.className = e.dataset.dropClass || "", t.textContent = e.dataset.initial || "", e.replaceWith(t), "drop";
}
return e.remove(), "drop";
}
-var Wa = /* @__PURE__ */ new WeakSet();
-function Ga(e) {
- Wa.has(e) || (Wa.add(e), e.addEventListener("error", (e) => {
- e.target instanceof HTMLImageElement && Ua(e.target);
+var Ua = /* @__PURE__ */ new WeakSet();
+function Wa(e) {
+ Ua.has(e) || (Ua.add(e), e.addEventListener("error", (e) => {
+ e.target instanceof HTMLImageElement && Ha(e.target);
}, !0));
}
// src/card-art/native-image.ts
-function Ka(e, t, n, r) {
+function Ga(e, t, n, r) {
if (!(e > 0 && t > 0 && n > 0 && r > 0)) return 0;
let i = e / n, a = t / r;
return i > 1.001 || a > 1.001 || Math.abs(i - a) > Math.max(i, a) * .01 ? 0 : i;
}
-function qa(e, t, n, r, i = 1) {
+function Ka(e, t, n, r, i = 1) {
let a = Number.isFinite(i) && i > 0 ? i : 1;
e /= a, t /= a;
let o = [
@@ -12407,15 +12407,15 @@ function qa(e, t, n, r, i = 1) {
height: t * c
};
}
-var Ja = .1;
-function Ya(e, t, n, r) {
+var qa = .1;
+function Ja(e, t, n, r) {
if (![
e,
t,
n,
r
].every((e) => Number.isFinite(e) && e > 0)) return null;
- let i = Math.min(n / e, r / t), a = e * i, o = t * i, s = Math.min(n, r) * Ja;
+ let i = Math.min(n / e, r / t), a = e * i, o = t * i, s = Math.min(n, r) * qa;
return Math.min(a, o) >= s ? null : o < a ? {
width: a,
height: s
@@ -12425,37 +12425,37 @@ function Ya(e, t, n, r) {
};
}
// src/card-art/representatives.ts
-var Xa = /* @__PURE__ */ new Map();
-function Za(e) {
+var Ya = /* @__PURE__ */ new Map();
+function Xa(e) {
(e || []).forEach((e) => {
- e.rep && e.has_avatar && Xa.set(e.k, e.rep);
+ e.rep && e.has_avatar && Ya.set(e.k, e.rep);
});
}
-function Qa(e) {
- return Xa.get(e);
+function Za(e) {
+ return Ya.get(e);
}
// src/jav-artwork.ts
-function $a(e) {
+function Qa(e) {
return [
"small",
"sleeve",
"preview"
].includes(String(e)) ? "small" : "big";
}
-function eo(e) {
+function $a(e) {
return {
- javLayout: $a(e.javLayout),
- javImage: to(e.javLayout === "preview" ? "thumbnail" : e.javImage)
+ javLayout: Qa(e.javLayout),
+ javImage: eo(e.javLayout === "preview" ? "thumbnail" : e.javImage)
};
}
-function to(e) {
+function eo(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function no(e, t) {
- return e.is_jav && e.code && e.has_cover && (to(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
+function to(e, t) {
+ return e.is_jav && e.code && e.has_cover && (eo(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
}
-var ro = .704, io = .85;
-function ao(e, t, n = !1) {
+var no = .704, ro = .85;
+function io(e, t, n = !1) {
let r = Number(e?.px?.[0]), i = Number(e?.px?.[1]), a = Number(e?.x0);
if (!(r > 0 && i > 0 && t > 0) || !Number.isFinite(a)) return null;
let o = (e, t, n) => Math.min(n, Math.max(0, Number.isFinite(Number(e)) ? Number(e) : t)), s = o(a, 0, r), c = Math.max(s, o(e?.x1, r, r)), l = o(e?.y0, 0, i), u = Math.max(l, o(e?.y1, i, i)), d = c - s, f = u - l;
@@ -12475,38 +12475,38 @@ function ao(e, t, n = !1) {
height: g(i / f * m)
};
}
-function oo(e, t) {
+function ao(e, t) {
e.querySelectorAll("img[data-jav-image]").forEach((e) => {
- let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !(!n || to(t) !== "cover" && r), a = i ? n : r;
+ let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !(!n || eo(t) !== "cover" && r), a = i ? n : r;
e.classList.toggle("cover", i), e.classList.toggle("whole", i && e.dataset.javImageLayout !== "big"), e.classList.toggle("front", i && e.dataset.javImageLayout === "big"), e.classList.remove("panel"), e.removeAttribute("style"), e.closest(".pic,[data-media-pic]")?.style.removeProperty("--cover-blur"), a && e.getAttribute("src") !== a && (e.src = a);
});
}
-function so(e, t) {
+function oo(e, t) {
let n = [];
return e.querySelectorAll("img[data-jav-image]").forEach((e) => {
e.dataset.javImageLayout !== t && (e.dataset.javImageLayout = t, e.classList.contains("cover") && (e.classList.toggle("whole", t !== "big"), e.classList.toggle("front", t === "big"), e.classList.remove("panel"), e.removeAttribute("style"), e.closest(".pic,[data-media-pic]")?.style.removeProperty("--cover-blur"), e.complete && e.naturalWidth && n.push(e)));
}), n;
}
// src/card-art/markup.ts
-var co = "代表作画面,非本人", lo = (e, t) => t ? `${e}&v=${encodeURIComponent(t)}` : e, uo = (e, t = !1) => {
+var so = "代表作画面,非本人", co = (e, t) => t ? `${e}&v=${encodeURIComponent(t)}` : e, lo = (e, t = !1) => {
let n = t === !0 ? 1 : t || 0;
- return lo(`/cover?code=${encodeURIComponent(e.cover_key || e.code || "")}${n ? `&thumb=${n}` : ""}`, e.cover_version);
-}, fo = (e) => uo(e, (window.devicePixelRatio || 1) <= 1.5 ? 2 : 1), po = (e) => `/cover-image?code=${encodeURIComponent(e.code || "")}`, mo = (e, t, n) => lo(`/logo?studio=${encodeURIComponent(e)}&variant=${t}`, n), ho = (e) => e && typeof e == "object" ? e : null;
-function go(e) {
+ return co(`/cover?code=${encodeURIComponent(e.cover_key || e.code || "")}${n ? `&thumb=${n}` : ""}`, e.cover_version);
+}, uo = (e) => lo(e, (window.devicePixelRatio || 1) <= 1.5 ? 2 : 1), fo = (e) => `/cover-image?code=${encodeURIComponent(e.code || "")}`, po = (e, t, n) => co(`/logo?studio=${encodeURIComponent(e)}&variant=${t}`, n), mo = (e) => e && typeof e == "object" ? e : null;
+function ho(e) {
return e && e.is_jav ? "女优" : "艺人";
}
-function _o({ kind: e = "performer", id: t = null, hasImage: n = !1, version: r = "", rep: i = null, mark: a = null, logo: o = "", logoVersion: s = "", logoVariant: c = "logo", alt: l = "", lazy: u = !0, style: d = "", dropStyle: f = !1, focus: p = null, thumb: m = !0, standIn: h = !1 } = {}) {
- let g = !!(t && n), _ = g ? lo(`/entity-image?kind=${e}&id=${t}${m ? "&thumb=1" : ""}`, r) : "", v = i ? `/avatar?id=${i}` : "", y = !!o, b = y ? mo(o, c, s) : _ || v || (a ? `/link-mark?id=${a}` : "");
+function go({ kind: e = "performer", id: t = null, hasImage: n = !1, version: r = "", rep: i = null, mark: a = null, logo: o = "", logoVersion: s = "", logoVariant: c = "logo", alt: l = "", lazy: u = !0, style: d = "", dropStyle: f = !1, focus: p = null, thumb: m = !0, standIn: h = !1 } = {}) {
+ let g = !!(t && n), _ = g ? co(`/entity-image?kind=${e}&id=${t}${m ? "&thumb=1" : ""}`, r) : "", v = i ? `/avatar?id=${i}` : "", y = !!o, b = y ? po(o, c, s) : _ || v || (a ? `/link-mark?id=${a}` : "");
if (!b) return "";
- let x = y ? [_, v].filter(Boolean) : g && v ? [v] : [], S = g && !y, C = S ? So(p) : "", w = d || xo(p);
- return `<img src="${b}" width="128" height="128" alt="${l}"${h && b === v ? ` title="${co}" aria-label="${co}"` : ""}${h && x.includes(v) ? ` data-fallback-note-src="${z(v)}" data-fallback-note="${co}"` : ""}${u ? " loading=\"lazy\"" : ""} decoding="async"${S ? w : ""} ${C}${Ha({
+ let x = y ? [_, v].filter(Boolean) : g && v ? [v] : [], S = g && !y, C = S ? xo(p) : "", w = d || bo(p);
+ return `<img src="${b}" width="128" height="128" alt="${l}"${h && b === v ? ` title="${so}" aria-label="${so}"` : ""}${h && x.includes(v) ? ` data-fallback-note-src="${z(v)}" data-fallback-note="${so}"` : ""}${u ? " loading=\"lazy\"" : ""} decoding="async"${S ? w : ""} ${C}${Va({
dropStyle: (f || !!C || !!w) && S,
fallbacks: x
})}>`;
}
-function vo(e, t, n, r = "performer", i = null, a = "", o = "icon", s = void 0, c = !0) {
- let l = s === void 0 ? t && t.avatar_focus || null : s, u = !t?.has_image && !a && t?.source_avatar_url ? `<img src="${z(t.source_avatar_url)}" width="128" height="128" alt="" loading="lazy" decoding="async" ${Ha({ fallbacks: t.source_avatar_fallbacks || [] })}>` : "";
- return `<span class="ini">${z(er(nn(r, e, t?.id)))}</span>` + (u || _o({
+function _o(e, t, n, r = "performer", i = null, a = "", o = "icon", s = void 0, c = !0) {
+ let l = s === void 0 ? t && t.avatar_focus || null : s, u = !t?.has_image && !a && t?.source_avatar_url ? `<img src="${z(t.source_avatar_url)}" width="128" height="128" alt="" loading="lazy" decoding="async" ${Va({ fallbacks: t.source_avatar_fallbacks || [] })}>` : "";
+ return `<span class="ini">${z(er(nn(r, e, t?.id)))}</span>` + (u || go({
kind: r,
id: t && t.id,
hasImage: !!(t && t.has_image),
@@ -12521,19 +12521,19 @@ function vo(e, t, n, r = "performer", i = null, a = "", o = "icon", s = void 0,
standIn: !!(t && t.avatar_stand_in)
}));
}
-function yo(e, t, n) {
- return vo(e, t, n ? Qa(e) : null, n || "performer");
+function vo(e, t, n) {
+ return _o(e, t, n ? Za(e) : null, n || "performer");
}
-function bo(e) {
- let t = ho(e);
+function yo(e) {
+ let t = mo(e);
return t && t.axis === "x" ? `${t.pct}% 50%` : t && t.axis === "y" ? `50% ${t.pct}%` : "";
}
-function xo(e) {
- let t = bo(e);
+function bo(e) {
+ let t = yo(e);
return t ? ` style="object-position:${t}"` : "";
}
-function So(e) {
- let t = ho(e)?.box;
+function xo(e) {
+ let t = mo(e)?.box;
return t ? ` data-facebox="${[
t.cx,
t.cy,
@@ -12542,8 +12542,8 @@ function So(e) {
t.imgH
].map(Number).join(" ")}"` : "";
}
-function Co(e, t, n = !1) {
- let r = fo(e), i = /ブルーレイ|blu[\s-]?ray/i.test(String(e.title || e.display_title || e.name || "")), a = e.cover_frame || {}, o = e.poster_box?.method !== "manual" && (a.layout === "still" || /^(IENEE|IENFE|SDHS)-/i.test(String(e.code || "")) || /(?:【|\[|\(|()\s*(?:[48]K\s*)?VR\s*(?:】|\]|\)|))/i.test(String(e.title || e.display_title || e.name || ""))), s = a.cy == null ? null : o ? Math.min(1, Math.max(0, a.cy)) : Math.min(.6, Math.max(.05, a.cy)), c = [a.cx == null ? "" : ` data-cx="${a.cx}"`, s == null ? "" : ` data-cy="${s}"`].join(""), l = e.poster_box, u = l ? ` data-posterbox="${[
+function So(e, t, n = !1) {
+ let r = uo(e), i = /ブルーレイ|blu[\s-]?ray/i.test(String(e.title || e.display_title || e.name || "")), a = e.cover_frame || {}, o = e.poster_box?.method !== "manual" && (a.layout === "still" || /^(IENEE|IENFE|SDHS)-/i.test(String(e.code || "")) || /(?:【|\[|\(|()\s*(?:[48]K\s*)?VR\s*(?:】|\]|\)|))/i.test(String(e.title || e.display_title || e.name || ""))), s = a.cy == null ? null : o ? Math.min(1, Math.max(0, a.cy)) : Math.min(.6, Math.max(.05, a.cy)), c = [a.cx == null ? "" : ` data-cx="${a.cx}"`, s == null ? "" : ` data-cy="${s}"`].join(""), l = e.poster_box, u = l ? ` data-posterbox="${[
l.x0,
(l.px || [])[0],
(l.px || [])[1],
@@ -12554,45 +12554,45 @@ function Co(e, t, n = !1) {
return `<img class="poster cover ${t === "small" ? "whole" : "front"}" src="${r}"
width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}" decoding="async" data-cover-code="${z(e.code || "")}"${i ? " data-wide-sleeve=\"1\"" : ""}${o ? " data-cover-layout=\"still\"" : ""}${c}${u} data-drop="self">`;
}
-var wo = {
+var Co = {
kind: "",
html: ""
};
-function To(e, t, n, r) {
- let i = no(e, r);
- if (!i) return wo;
- let a = e.has_cover && e.code ? fo(e) : "", o = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "", s = Co(e, t, n), c = (s.match(/ data-(?:c[xy]|posterbox)="[^"]*"/g) || []).join(""), l = i === "cover" ? s : `<img class="poster" src="${o}" width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}" decoding="async"${c}>`;
+function wo(e, t, n, r) {
+ let i = to(e, r);
+ if (!i) return Co;
+ let a = e.has_cover && e.code ? uo(e) : "", o = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "", s = So(e, t, n), c = (s.match(/ data-(?:c[xy]|posterbox)="[^"]*"/g) || []).join(""), l = i === "cover" ? s : `<img class="poster" src="${o}" width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}" decoding="async"${c}>`;
return {
kind: i === "cover" ? "cover" : "thumb",
html: l.replace("<img ", `<img data-jav-image="${e.id}" data-jav-cover="${z(a)}" data-jav-thumb="${z(o)}" data-jav-image-layout="${t}" `)
};
}
-function Eo(e, t, n, r) {
- return e.is_jav ? To(e, t, n, r) : e.follow_thumb_url ? {
+function To(e, t, n, r) {
+ return e.is_jav ? wo(e, t, n, r) : e.follow_thumb_url ? {
kind: "thumb",
html: `<img class="poster" src="${z(e.follow_thumb_url)}" width="640" height="360" alt="" loading="${n ? "eager" : "lazy"}" decoding="async" referrerpolicy="no-referrer">`
- } : Do(e, t, n, r);
+ } : Eo(e, t, n, r);
}
-function Do(e, t, n, r) {
- return e.is_jav ? To(e, t, n, r) : e.has_cover && e.cover_key ? {
+function Eo(e, t, n, r) {
+ return e.is_jav ? wo(e, t, n, r) : e.has_cover && e.cover_key ? {
kind: "cover",
- html: Co(e, t, n)
- } : Oo(e, n);
+ html: So(e, t, n)
+ } : Do(e, n);
}
-function Oo(e, t) {
- return !e.has_thumb && !e.has_local_poster ? wo : {
+function Do(e, t) {
+ return !e.has_thumb && !e.has_local_poster ? Co : {
kind: "thumb",
html: `<img class="poster" src="/poster?id=${e.id}&c=4" width="640" height="360" alt="" loading="${t ? "eager" : "lazy"}" decoding="async">`
};
}
-function ko(e, t) {
- return Do(e, "small", !1, t).html || "<span class=\"nopic\">无预览</span>";
+function Oo(e, t) {
+ return Eo(e, "small", !1, t).html || "<span class=\"nopic\">无预览</span>";
}
-function Ao(e, t) {
+function ko(e, t) {
let n = e.has_thumb || e.has_local_poster ? `/poster?id=${e.id}&c=4` : "";
- return e.is_jav ? no(e, t) === "cover" ? uo(e) : n : e.has_cover && e.cover_key ? uo(e) : n;
+ return e.is_jav ? to(e, t) === "cover" ? lo(e) : n : e.has_cover && e.cover_key ? lo(e) : n;
}
-function jo(e) {
+function Ao(e) {
let t = e.performers || [], n = e.performer_entities ?? e.entity_refs?.performer ?? [], r = t[0] || "", i = e.is_jav && r ? "" : e.creator || "";
return {
kind: i ? "creator" : r ? "performer" : "",
@@ -12603,33 +12603,33 @@ function jo(e) {
total: e.performer_total || t.length
};
}
-function Mo(e) {
- let { kind: t, name: n, coStarred: r, performers: i, refs: a } = jo(e);
- return r ? `<div class="mavstack">${i.slice(0, 5).map((e, t) => `<span class="mav">${vo(e, a[t], Qa(e))}</span>`).join("")}</div>` : `<span class="mav">${vo(n, t === "performer" ? a[0] : e.creator_entity ?? e.entity_refs?.creator?.[0], t ? Qa(n) : null, t || "performer")}</span>`;
+function jo(e) {
+ let { kind: t, name: n, coStarred: r, performers: i, refs: a } = Ao(e);
+ return r ? `<div class="mavstack">${i.slice(0, 5).map((e, t) => `<span class="mav">${_o(e, a[t], Za(e))}</span>`).join("")}</div>` : `<span class="mav">${_o(n, t === "performer" ? a[0] : e.creator_entity ?? e.entity_refs?.creator?.[0], t ? Za(n) : null, t || "performer")}</span>`;
}
-function No(e, t) {
+function Mo(e, t) {
let n = (e.performers || [])[0];
return e.is_jav && n ? nn("performer", n) : e.creator ? nn("creator", e.creator) : (n ? nn("performer", n) : "") || e.studio || e.code || t((e.tags || [])[0] || "") || "为你推荐";
}
// src/ui-kit/overlay-scrollbar.ts
-var Po = /* @__PURE__ */ new Map();
-function Fo(e) {
- Po.get(e)?.destroy();
+var No = /* @__PURE__ */ new Map();
+function Po(e) {
+ No.get(e)?.destroy();
}
-function Io() {
- for (let [e, t] of Po) e.isConnected ? t.repair() : t.destroy();
+function Fo() {
+ for (let [e, t] of No) e.isConnected ? t.repair() : t.destroy();
}
-function Lo(e) {
- for (let [t, n] of Po) (t === e || e.contains(t)) && n.destroy();
+function Io(e) {
+ for (let [t, n] of No) (t === e || e.contains(t)) && n.destroy();
}
-function Ro(e) {
- for (let [t, n] of Po) (t === e || e.contains(t)) && n();
+function Lo(e) {
+ for (let [t, n] of No) (t === e || e.contains(t)) && n();
}
-function zo(e, { variant: t = "", axes: n } = {}) {
+function Ro(e, { variant: t = "", axes: n } = {}) {
if (!e) return null;
if (e.dataset.overlayScrollbar) {
if (!n || e.dataset.overlayAxes === n.join("")) return null;
- Fo(e);
+ Po(e);
}
let r = e === document.documentElement, i = r ? ["y"] : n ?? ["y", "x"], a = getComputedStyle(e), o = !r && (a.position === "absolute" || a.position === "fixed" || e.matches("dialog,[popover]")), s = r ? document.body : o ? e : e.parentElement;
if (!s) return null;
@@ -12765,54 +12765,54 @@ function zo(e, { variant: t = "", axes: n } = {}) {
e && T();
},
destroy() {
- Po.get(e) === O && (h = !0, Po.delete(e), l.abort(), E.disconnect(), D?.disconnect(), x !== null && cancelAnimationFrame(x), w !== null && cancelAnimationFrame(w), f.forEach(({ track: e }) => e.remove()), d?.remove(), delete e.dataset.overlayScrollbar, delete e.dataset.overlayAxes, delete e.dataset.scrollEdges, e.style.removeProperty("--scroll-edge-top"), e.style.removeProperty("--scroll-edge-bottom"), u && s.style.position === "relative" && ![...Po.keys()].some((e) => e.parentElement === s) && (s.style.position = c));
+ No.get(e) === O && (h = !0, No.delete(e), l.abort(), E.disconnect(), D?.disconnect(), x !== null && cancelAnimationFrame(x), w !== null && cancelAnimationFrame(w), f.forEach(({ track: e }) => e.remove()), d?.remove(), delete e.dataset.overlayScrollbar, delete e.dataset.overlayAxes, delete e.dataset.scrollEdges, e.style.removeProperty("--scroll-edge-top"), e.style.removeProperty("--scroll-edge-bottom"), u && s.style.position === "relative" && ![...No.keys()].some((e) => e.parentElement === s) && (s.style.position = c));
}
});
- return Po.set(e, O), O;
+ return No.set(e, O), O;
}
// src/ui-kit/collapse.ts
-var Bo = /* @__PURE__ */ new WeakMap();
-function Vo(e, t, n) {
- Uo(t, n, () => e.open, (t) => {
+var zo = /* @__PURE__ */ new WeakMap();
+function Bo(e, t, n) {
+ Ho(t, n, () => e.open, (t) => {
e.open = t;
});
}
-function Ho(e, t) {
- Uo(e, t, () => !e.hidden, (t) => {
+function Vo(e, t) {
+ Ho(e, t, () => !e.hidden, (t) => {
e.hidden = !t;
});
}
-function Uo(e, t, n, r) {
+function Ho(e, t, n, r) {
e.classList.add("ui-fcollapse");
- let i = (Bo.get(e) || 0) + 1;
- Bo.set(e, i);
- let a = () => Bo.get(e) === i;
+ let i = (zo.get(e) || 0) + 1;
+ zo.set(e, i);
+ let a = () => zo.get(e) === i;
if (t) {
e.inert = !1;
let t = n() ? e.getBoundingClientRect().height : 0;
- r(!0), Go(e, t, a);
- } else e.inert = !0, e.classList.remove("ui-fcollapse-settled"), e.style.height = e.getBoundingClientRect().height + "px", e.getBoundingClientRect(), e.style.height = "0px", Wo(e, () => {
+ r(!0), Wo(e, t, a);
+ } else e.inert = !0, e.classList.remove("ui-fcollapse-settled"), e.style.height = e.getBoundingClientRect().height + "px", e.getBoundingClientRect(), e.style.height = "0px", Uo(e, () => {
a() && (r(!1), e.style.height = "");
});
}
-function Wo(e, t) {
+function Uo(e, t) {
let n = !1, r, i = (a) => {
a && a.propertyName !== "height" || n || (n = !0, e.removeEventListener("transitionend", i), clearTimeout(r), t());
};
e.addEventListener("transitionend", i), r = setTimeout(i, 260);
}
-function Go(e, t, n = () => !0) {
- e.classList.remove("ui-fcollapse-settled"), e.style.height = t + "px", e.getBoundingClientRect(), e.style.height = e.scrollHeight + "px", Wo(e, () => {
+function Wo(e, t, n = () => !0) {
+ e.classList.remove("ui-fcollapse-settled"), e.style.height = t + "px", e.getBoundingClientRect(), e.style.height = e.scrollHeight + "px", Uo(e, () => {
n() && (e.style.height = "auto", e.classList.add("ui-fcollapse-settled"));
});
}
// src/ui-kit/sounds.ts
-var Ko = null, qo = !1;
-function Jo() {
+var Go = null, Ko = !1;
+function qo() {
let e = globalThis.AudioContext || globalThis.webkitAudioContext;
- return e ? (Ko ||= new e(), Ko.state === "suspended" && Ko.resume()?.catch?.(() => {}), Ko) : null;
+ return e ? (Go ||= new e(), Go.state === "suspended" && Go.resume()?.catch?.(() => {}), Go) : null;
}
-function Yo(e, t, { type: n = "sine", from: r, to: i = r, duration: a, volume: o, attack: s = 0, start: c = 0, filter: l = null }) {
+function Jo(e, t, { type: n = "sine", from: r, to: i = r, duration: a, volume: o, attack: s = 0, start: c = 0, filter: l = null }) {
let u = t + c, d = e.createOscillator(), f = e.createGain();
d.type = n, d.frequency.setValueAtTime(r, u), i !== r && d.frequency.exponentialRampToValueAtTime(i, u + a), s ? (f.gain.setValueAtTime(.001, u), f.gain.exponentialRampToValueAtTime(o, u + s)) : f.gain.setValueAtTime(o, u), f.gain.exponentialRampToValueAtTime(.001, u + a);
let p = d;
@@ -12822,7 +12822,7 @@ function Yo(e, t, { type: n = "sine", from: r, to: i = r, duration: a, volume: o
}
p.connect(f), f.connect(e.destination), d.start(u), d.stop(u + a + .01);
}
-function Xo(e, t, { duration: n, volume: r, filter: i, sweepTo: a = null, attack: o = 0 }) {
+function Yo(e, t, { duration: n, volume: r, filter: i, sweepTo: a = null, attack: o = 0 }) {
let s = Math.max(1, Math.round(e.sampleRate * n)), c = e.createBuffer(1, s, e.sampleRate), l = c.getChannelData(0);
for (let e = 0; e < s; e++) l[e] = Math.random() * 2 - 1;
let u = e.createBufferSource();
@@ -12834,8 +12834,8 @@ function Xo(e, t, { duration: n, volume: r, filter: i, sweepTo: a = null, attack
u.disconnect(), d.disconnect(), f.disconnect();
}, u.start(t);
}
-var Zo = {
- click: (e, t) => Xo(e, t, {
+var Xo = {
+ click: (e, t) => Yo(e, t, {
duration: .06,
volume: .12,
filter: {
@@ -12843,24 +12843,24 @@ var Zo = {
Q: 1
}
}),
- "toggle-on": (e, t) => Yo(e, t, {
+ "toggle-on": (e, t) => Jo(e, t, {
from: 550,
to: 650,
duration: .08,
volume: .15
}),
- "toggle-off": (e, t) => Yo(e, t, {
+ "toggle-off": (e, t) => Jo(e, t, {
from: 650,
to: 550,
duration: .08,
volume: .15
}),
success: (e, t) => {
- Yo(e, t, {
+ Jo(e, t, {
from: 523,
duration: .12,
volume: .18
- }), Yo(e, t, {
+ }), Jo(e, t, {
from: 653.75,
duration: .12,
volume: .18,
@@ -12868,12 +12868,12 @@ var Zo = {
});
},
warning: (e, t) => {
- Yo(e, t, {
+ Jo(e, t, {
type: "triangle",
from: 600,
duration: .08,
volume: .15
- }), Yo(e, t, {
+ }), Jo(e, t, {
type: "triangle",
from: 600,
duration: .08,
@@ -12881,7 +12881,7 @@ var Zo = {
start: .16
});
},
- error: (e, t) => Yo(e, t, {
+ error: (e, t) => Jo(e, t, {
type: "sawtooth",
from: 400,
to: 200,
@@ -12893,7 +12893,7 @@ var Zo = {
Q: 1
}
}),
- whoosh: (e, t) => Xo(e, t, {
+ whoosh: (e, t) => Yo(e, t, {
duration: .12,
volume: .08,
attack: .036,
@@ -12903,66 +12903,66 @@ var Zo = {
},
sweepTo: 6e3
}),
- pop: (e, t) => Yo(e, t, {
+ pop: (e, t) => Jo(e, t, {
from: 1500,
to: 500,
duration: .04,
volume: .15
})
};
-Object.freeze(Object.keys(Zo));
-function Qo(e) {
- qo = e === !0;
+Object.freeze(Object.keys(Xo));
+function Zo(e) {
+ Ko = e === !0;
}
-function $o(e) {
- let t = Zo[e];
+function Qo(e) {
+ let t = Xo[e];
if (!t) throw Error(`没有「${e}」这种界面音效`);
- if (!qo) return !1;
- let n = Jo();
+ if (!Ko) return !1;
+ let n = qo();
return n ? (t(n, n.currentTime), !0) : !1;
}
-var es = "button,[role=\"button\"],[role=\"tab\"],[role=\"menuitem\"],[role=\"menuitemradio\"],[role=\"menuitemcheckbox\"],[role=\"option\"],summary,a[href]", ts = "input[type=\"checkbox\"][role=\"switch\"]";
-function ns(e) {
+var $o = "button,[role=\"button\"],[role=\"tab\"],[role=\"menuitem\"],[role=\"menuitemradio\"],[role=\"menuitemcheckbox\"],[role=\"option\"],summary,a[href]", es = "input[type=\"checkbox\"][role=\"switch\"]";
+function ts(e) {
return e.disabled === !0 || e.getAttribute("aria-disabled") === "true";
}
-var rs = /* @__PURE__ */ new WeakSet();
-function is(e = document) {
- rs.has(e) || (rs.add(e), e.addEventListener("click", (e) => {
- let t = e.target?.closest?.(es);
- t && !ns(t) && $o("click");
+var ns = /* @__PURE__ */ new WeakSet();
+function rs(e = document) {
+ ns.has(e) || (ns.add(e), e.addEventListener("click", (e) => {
+ let t = e.target?.closest?.($o);
+ t && !ts(t) && Qo("click");
}, { capture: !0 }), e.addEventListener("change", (e) => {
let t = e.target;
- t?.matches?.(ts) && !ns(t) && $o(t.checked ? "toggle-on" : "toggle-off");
+ t?.matches?.(es) && !ts(t) && Qo(t.checked ? "toggle-on" : "toggle-off");
}, { capture: !0 }));
}
// src/ui-kit/anchored-menu.ts
-var as = null, os = globalThis;
-os.__peachMenuCloser || (os.__peachMenuCloser = !0, document.addEventListener("click", (e) => {
- if (!as) return;
+var is = null, as = globalThis;
+as.__peachMenuCloser || (as.__peachMenuCloser = !0, document.addEventListener("click", (e) => {
+ if (!is) return;
let t = e.target;
- as.menu.contains(t) || as.toggle.contains(t) || (!as.mount.contains(t) || t instanceof Element && t.closest("a[href],button,input,select,textarea,summary,[role=button],[role=menuitem],[tabindex]")) && as.setOpen(!1);
+ is.menu.contains(t) || is.toggle.contains(t) || (!is.mount.contains(t) || t instanceof Element && t.closest("a[href],button,input,select,textarea,summary,[role=button],[role=menuitem],[tabindex]")) && is.setOpen(!1);
}, !0));
-function ss() {
- as && as.setOpen(!1);
+function os() {
+ is && is.setOpen(!1);
}
-var cs = /* @__PURE__ */ new WeakMap();
-function ls(e) {
- cs.delete(e), e.classList.remove("leaving"), e.hidden && $o("whoosh"), e.hidden = !1;
+var ss = /* @__PURE__ */ new WeakMap();
+function cs(e) {
+ ss.delete(e), e.classList.remove("leaving"), e.hidden && Qo("whoosh"), e.hidden = !1;
}
-function us(e, t) {
- if (e.hidden || cs.has(e)) return;
+function ls(e, t) {
+ if (e.hidden || ss.has(e)) return;
let n = () => {
- cs.get(e) === n && (cs.delete(e), e.classList.remove("leaving"), e.hidden = !0, t && t());
+ ss.get(e) === n && (ss.delete(e), e.classList.remove("leaving"), e.hidden = !0, t && t());
};
- cs.set(e, n), e.classList.add("leaving"), getComputedStyle(e).animationName === "none" ? n() : (e.addEventListener("animationend", (t) => {
+ ss.set(e, n), e.classList.add("leaving"), getComputedStyle(e).animationName === "none" ? n() : (e.addEventListener("animationend", (t) => {
t.target === e && n();
}, { once: !0 }), setTimeout(n, 240));
}
-var ds = () => 8 + (parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 0);
-function fs(e, t) {
+var us = () => 8 + (parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 0);
+function ds(e, t) {
return e.target instanceof Node && e.target.contains(t);
}
-function ps(e, t, n, { side: r = !1, align: i = "end" } = {}) {
+function fs(e, t, n, { side: r = !1, align: i = "end" } = {}) {
let a = null, o = () => {
let e = t.getBoundingClientRect(), o = n.offsetWidth;
if (a = {
@@ -12972,26 +12972,26 @@ function ps(e, t, n, { side: r = !1, align: i = "end" } = {}) {
n.dataset.placement = "right", n.style.maxHeight = Math.max(0, innerHeight - 32) + "px", n.style.left = Math.max(16, Math.min(e.right + 8, innerWidth - o - 16)) + "px", n.style.top = Math.max(16, Math.min(e.top, innerHeight - n.offsetHeight - 16)) + "px";
return;
}
- let s = ds(), c = innerHeight - 8 - e.bottom - 8, l = e.top - 8 - s, u = n.scrollHeight + n.offsetHeight - n.clientHeight, d = c >= u || c >= l, f = Math.min(u, Math.max(d ? c : l, 0));
+ let s = us(), c = innerHeight - 8 - e.bottom - 8, l = e.top - 8 - s, u = n.scrollHeight + n.offsetHeight - n.clientHeight, d = c >= u || c >= l, f = Math.min(u, Math.max(d ? c : l, 0));
n.dataset.placement = d ? "bottom" : "top", n.style.maxHeight = f + "px";
let p = i === "start" || n.classList.contains("context-card") ? e.left : e.right - o;
n.style.left = Math.max(8, Math.min(p, innerWidth - o - 8)) + "px", n.style.top = (d ? e.bottom + 8 : e.top - 8 - f) + "px";
}, s = (e) => {
- if (!fs(e, t) || !a) return;
+ if (!ds(e, t) || !a) return;
let n = t.getBoundingClientRect();
(e.target === document || e.target === window || Math.abs(n.left - a.left) > .5 || Math.abs(n.top - a.top) > .5) && d(!1);
}, c = n.hasAttribute("popover"), l = !1, u = !1, d = (r) => {
- u || (r ? (as && as.mount !== e && as.setOpen(!1), l = !0, ls(n), c && !n.matches(":popover-open") && n.showPopover(), o(), window.addEventListener("resize", o), window.addEventListener("scroll", s, {
+ u || (r ? (is && is.mount !== e && is.setOpen(!1), l = !0, cs(n), c && !n.matches(":popover-open") && n.showPopover(), o(), window.addEventListener("resize", o), window.addEventListener("scroll", s, {
capture: !0,
passive: !0
- })) : (l = !1, window.removeEventListener("resize", o), window.removeEventListener("scroll", s, !0), us(n, () => {
+ })) : (l = !1, window.removeEventListener("resize", o), window.removeEventListener("scroll", s, !0), ls(n, () => {
n.style.left = "", n.style.top = "", n.style.maxHeight = "", c && n.matches(":popover-open") && n.hidePopover();
- })), t.setAttribute("aria-expanded", String(r)), as = r ? {
+ })), t.setAttribute("aria-expanded", String(r)), is = r ? {
mount: e,
menu: n,
toggle: t,
setOpen: d
- } : as && as.mount === e ? null : as);
+ } : is && is.mount === e ? null : is);
}, f = (e) => {
e.stopPropagation(), d(!l);
}, p = (e) => {
@@ -13001,16 +13001,16 @@ function ps(e, t, n, { side: r = !1, align: i = "end" } = {}) {
setOpen: d,
isOpen: () => l,
dispose: () => {
- u || (u = !0, l = !1, t.removeEventListener("click", f), e.removeEventListener("keydown", p), window.removeEventListener("resize", o), window.removeEventListener("scroll", s, !0), as?.menu === n && (as = null), cs.delete(n), n.classList.remove("leaving"), n.hidden = !0, c && n.matches(":popover-open") && n.hidePopover(), n.style.left = "", n.style.top = "", n.style.maxHeight = "", t.setAttribute("aria-expanded", "false"));
+ u || (u = !0, l = !1, t.removeEventListener("click", f), e.removeEventListener("keydown", p), window.removeEventListener("resize", o), window.removeEventListener("scroll", s, !0), is?.menu === n && (is = null), ss.delete(n), n.classList.remove("leaving"), n.hidden = !0, c && n.matches(":popover-open") && n.hidePopover(), n.style.left = "", n.style.top = "", n.style.maxHeight = "", t.setAttribute("aria-expanded", "false"));
}
};
}
// src/ui-kit/select-field.ts
-function ms(e) {
+function ps(e) {
return e ? e.startsWith("data:image/png;base64,") ? `<img class="gselectmark" src="${z(e)}" alt="" width="16" height="16">` : R(e, "gselectmark") : "";
}
-function hs(e, t, { label: n = "", attr: r = "", className: i = "" } = {}) {
- let a = e.find(([e]) => String(e) === String(t)) || e[0] || ["", ""], o = ([, e, t]) => `${ms(t)}${z(e)}`, s = e.map(([e, t, n]) => `<button type="button" role="option" data-select-option="${z(e)}"
+function ms(e, t, { label: n = "", attr: r = "", className: i = "" } = {}) {
+ let a = e.find(([e]) => String(e) === String(t)) || e[0] || ["", ""], o = ([, e, t]) => `${ps(t)}${z(e)}`, s = e.map(([e, t, n]) => `<button type="button" role="option" data-select-option="${z(e)}"
aria-selected="${String(e) === String(a[0])}" tabindex="-1"><span data-select-content>${o([
e,
t,
@@ -13021,13 +13021,13 @@ function hs(e, t, { label: n = "", attr: r = "", className: i = "" } = {}) {
aria-expanded="false" aria-label="${z(n)}"><span data-select-label>${o(a)}</span>${R("chevron-down")}</button>
<div class="popmenu gselectmenu" role="listbox" aria-label="${z(n)}" popover="manual" data-select-menu hidden>${s}</div></div>`;
}
-function gs(e) {
+function hs(e) {
let t = e.querySelector("[data-select-trigger]"), n = e.querySelector("[data-select-menu]"), r = e.querySelector("[data-select-label]"), i = () => [...n.querySelectorAll("[data-select-option]")], a = () => n.querySelector("[aria-selected=\"true\"]");
t.addEventListener("click", () => {
let r = `${t.getBoundingClientRect().width}px`;
n.style.minWidth = r, e.hasAttribute("data-fixed-width") && (n.style.width = r);
});
- let o = ps(e, t, n);
+ let o = fs(e, t, n);
t.addEventListener("click", () => {
o.isOpen() && a()?.focus();
});
@@ -13062,44 +13062,44 @@ function gs(e) {
}), e;
}
// src/ui-kit/media-source-icons.ts
-var _s = {
+var gs = {
local: "hard-drive",
guangya: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAEWUlEQVR42sWXT2hcVRTGf/fNYCZdNNPGTaHaSUXFVQZSLLowoe3GdpEERHFhYqTQRBATcWlpSly56YQu4ipNZivYxCK46Z9EsBGkHdwItdhXrLixzaASo2bucXHve/feNzOagqQXHnPf/XPOd77z3XPfKLwmkxTZit4lkiEiykQK8wA5+5v0c5i5nNj3ZJ03nwPyKpmvEekFpGNZvV6PE58qdT7BEIoLRKqYOo0g6PtOogQEDkDWeS4DVgQ0MVpNqbGNpRSATDCEcLHJYcAAzWz4QHIqZCcdswwloWr7iBpWJzeWlIxTAq4CJSK7MNmQOhXrSGXeWzj205AGAiiLQAAt0JA6HZ09eRRDCKV0UmGoUsq8SzJoKRS7DgFJxpQxmjhRXsRg5pU4AAKIKvL7xmQeGPVWerJIHBACSX9TQw5EAlB75lLnnm1t18NgHqHsAPjGvCj8KHN27rEuONgPnV3w96/wVx3urZrotefMj0n5DABalfME59CjUXwGPGDlEegbgZ5+mtpmHW5fgusz8NtdF30AwKZCa9AKJeNIYERZ4anM0esuwWvzJurttK8+hLUZY1B5gaUpMIHlW+8Wh0YL7O2BU5dhb4lttxc/sEBmnE3lmba6yrf0re1RE7vj7RbOf1iBWhXqdw1D+3rh8DtQLIUgNuvwzXmaUm3T25yCJA3Kgjg+DS+fcXMPYvjkLYhXw1Ql/YHT0H861MXcs7C5bo+2BCzkpg8x3ZpDZTa8cQE6i274XB/8/K0TVt8oPDcI67FxFq9AYQ/sP2zm8wXIdcDWn7D7AOwuGdZsRWzNQFJMegfh1EU3tjoLy+85oR4agVfnzdydFZg/ZuY6izD1PRSKzXbjFageS2tF1FZEIvD0QDj29aKt41bJHV0Z7YiZ31iH7z5rbfdmFRruTsj/q5K7D4TvP9Ys9fZofXkeuntgz5Nw6X1jNDn363FzjbgyAzeqnhCzKXhmAKauuk2LY7C2YAWJExyJ6CyQ5LL5aMvtvVE1YlWZtBIexTAF9zOonyg7tCn1Ht2JohsCPS+Fe3+quas3eRpi6G9o82hpAWCj7t5fGIVdxRCE9mt5ereb0+C3ezWnCS1eXweAmkW4tuj6nUU4fiZTQPCMmijY1wvPj4a14vaKi1pjhScOsG6VAoArlZCFo5NwIgvCA/JUP5z8NLTxxVnn2Hx8uPUND1TbOnB0El45R1N6Ls8aagEeL5kUZY/qgximD3riU5n7Jbz62xeikQXj4GHa/RhmjxgQqkV5F3sSRKfA2hei6pvw+dntO791DSpH4Jc7nuCyAhT3NWTT0Z6BtBiV4MR0ezZuXTPCvb7Q8jpJo/aveNyF9N8AkrarCPvL7lr+o270kK0dD9mUTHAz/C7cwSbUIoRlHlWLWIwoUEGoPwL3McJSpCrUiRjbcfeKKfUxcQSg5lhCMQzEO5D3OophNcdS8O8YQMYpoRkix+j/LkxFDWGZAhVVcSn/Bw2n+w/oK+fWAAAAAElFTkSuQmCC",
115: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAHB0lEQVR4nO2bbUwURxjH/zN38qIcb4JWoIoHFYumWhDbRquNiSlYC4ZGjVYrotHWD1VTLdY00X7zbA22Na21KWqsUMHYSiygJjaRQDW+VK2YioBarVZBQA9QDm6nedajCuxxHrfH7dX+kiXcvszM8+zO7DPP/JfBzcQmfx4O1jpJEmKUgBTHwUYIIAyAwbYRZtoYUCdBVDLwi5yxCgjfo1Uly2vd2T7mjkJj3vgsUVitcwWkqQxstAv1CAFxnoEfZjpdbvXPq05p1gFxqSZDexuWCIhMCMTDHTBcYGA5+n7YdrEwy6xOkS4yJi07uMliWSGEeB9ACPqGBsbYFwE+PpvP7l/Z6BEHCCFYzDRTBgATBMLhCRhofMiqLsrawRgTvSuiFxinbxjK2pErgAnQAAwoE3rMrTmw5s9eXOscxpSNE5iQ9glgEDQEA24LxtNrij8sc+Y67szJscmmTAjpiNaMJ+Q2CemI3Ea1n4CZM/N1p5pqPoXASngDDNmJAcbVBQWzrI5PfRLjzTX7AKTCuyhMNBjTHTmBOypFvvPeZzyRamt775+A2GRTpgTxHbwYDraoqiQrx2kHGFM2TqBBBYAPvBsLGJ9i7+3AenjPn9DiaN/rV6QeSUpxgl4pwotNMeWqbXw/PceYuAiEBvk7dZ2/Xz8MCQvE2JERGB4ZgteXOt8jyRY5cBPi1a4Ro77rybbwVtUIzzDAF7mmOYiPGexSOZt2Hu31tRS12mzbbvctMCYtO1iO7VVmUXqSy8bX323Bjp9OutoUk81GZQc0WSwr1J7YBAb4IiNtnMvlbCs4jpYHba4VIhAu26jkgLhUk8E2pVWVRenj5S7QWyxtVhQcOoecH0+o0h6ykWztNga0t2GJ2vP5oAA/ZKQldtv/1Q+/Yv8vFWg0P3BYhrm5Fa2WdjWbFWKzdVMnB8iZHJVZ/NZ4BPTvfPfzis64NJipgc1W2QG8I4endhor2OCHd1ITOu27/6AN2btK4XEE4mWbYXMAJTD74u5/f+A07jS2QAt02MzlH5Cmqn/3u/d9vV6HyeOM8nFP02Ezo7y9hPu31MwQr86YjHdnv9zjOTXX7+D4uWsoKv0D5WeuwgMIDv/Belq0gFDP+JBAf8zv0veVMEYNlLc508bir1t3sffw78g/eA5/16mS7X4SGNnOacVG7b4/wN+5CWTk4CAsnzcRh79djPlvOnaeWkhCjOK0XKVmoXWNzdhTchalpy7Ld9YZ+vv5YP2yqfK8YfDAALgbASmOxSRvoGmv67GqHcJCBuDFkRHybC5pdBQSno8EY457XPW1O5i9ajca7t13V9Oo359kxuQNlwFEo494JsyAGVNGYeGMcbJzeuLcxZt4e02e63MA+1yh1+C/cXFfQIPc1vxjmJSxFZt3lcJqleye+0LcEKyYP9GdzTH0uQM6oPj+y9xyzM3Kw83ae3bPmzc9ARGDAt3qAI9ysuI6Zn2wG7X1TYrHfX30WDb7FbfVz23iBI9yo/YeFq/bK88VlJicZHRX1WZNOIA4X3ULuw6cVjwWER6I6Ai3rLybOclSoBFy9p2wO/ePHTpQ9foYUMdJkwONUNvQjIuXlSVBOp36w5UEUclJkAQNcdPOXIDTs6oyjMRYshpLQ1gl5big5nq96nVxxio4SdEeps21QVx0uGJesPKK6mo5QbZz0uGRFA0agMLk4ZGh3faX/XaF9HKqQjZXlSyvlUcW0uFBA9BUWKmvUxZZbTps5vIPnS4XHoZecwsU0mgHyypRUU0JK3XpsJnTH1mByXABHoKySFvWzpAXQrtOiT/aXKx+hQwXOlSn/NE+ZldE4E6GDQlGwaZ5eG4YyYcfcbu+CRkf5+Nuk+PFE2d53Fbe8Q/JT0mBiT6CJjlLZ76Eoq8zMTyq88B36WodFqzdgxu37c8SXaDBZqtMpxEnJsW0XgixDm6CNAKUGaLU+OzkMQgN6t/peLtVwjf5x7Alr1xeE3QHjLFPqouz1ivqAwJ8fDabLa3LXF0hHjEsDBMSoqHjHH4+egwM7g9jVCgS46O69XOC0l6Hyiuxs/CU3VBYFRhqycbOu7pgTNmwEAI5aiyMvjbeiEkJRhifDUXkoCB5qbyt3YrmFguu3mxE5dVaHCq7hPIzV2CV+iAWY8isKV6zvUcHiIcSmVKt6IDV1BNXFWd1k8jwbicyJkh4TMIi/EewiaTmKinKudIFpKYi4bEsMfN+LLKI2o6SnNu7inR1HOw9eDlkQ08Kct7TxbLCkiEb3gpDdk8qUcJhmoVU1yQ8hvdRaGs7XHJAQcEsK6muvepJILn8EyjFCafyTDbx9Nca1g9bqM87euwfhzlbw1P9yQxBFZDwmAILaATbR1NJzhpP/P/ZHFzkqf1wsitP7aezSjyVH0/DDlr/fP4fOwTeE5lpP+gAAAAASUVORK5CYII=",
pikpak: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAACY0lEQVR4nNWXy2tTQRSHv7m5RUWttqlNW1OairhKNbrU+lhE/AOkdCOIIO7arty0QhSxCIIQ7VJwIfgfCIJdFB+rgC32AVIflD5CbFUsoohJRiZzb5Ne05p4kxv94HCTc+bO+c0MM3eOoICD/TJswAAQBdoBH5UhA8wDo1mIv7ojpuyAsH9EBuQgkmuASXVJI4lN3BXDawIifXIQwQ28RDA0ERfDwpr2cQ9G7iSdhcOGteZeJ1eYKreB5DS1I2oiCJba2hDQVA9tjdDaCHMfICuhMwDJz5D8BMtftK9E2s2NttrJMOxvzSdT1rIb6goW69KIXsjr5/K+nxlIWWKWrOebJIxNFhXgK7r20QjcPL+59PllGH8LarDvU3oWFHU+CDZpK+TKA3j88vd+zGKd93av/y8lrKxao7Ls6bROrrj6EE6E9WzZppZKrJ0y0Hu8RAGhZuhohqk5nShp2Y/0+nZqxPaoFQsr2my2mNDSkBe01w/7AvAu9QcB/nrYs0vboU4qSsNOwCHAoMYY/5WAsckNt1NJ8WKY5TS+fF8/E7f/Lu5aQDrjLu5agOlzF3ct4NYFd3HXAk51uYv/k9vQLPeFr9/h4gh0dcCBNu17vaiP7nt9sGNblQVs3wo9x+DZNCRm9aUyFICebh0rF9PpWP22+QvqC3f2qLZyKda34XTMLsGLGSrO8xndtxMR6ZfqQ+tz7uczRyDor0zyxY/6LlDkoMqYVsUSKvSqho8SVB/JglqCUWqF4ImharVcueQ96j4bN3KFoiDmeXpJTOXO7QJVoyEZ8mgm0rm6sLA4talFef4LaurBZfZxNPMAAAAASUVORK5CYII=",
onedrive: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAL30lEQVR42u2aa4xd11XHf2ufez2v6/GMY2dix4nHbRw7tI5TmyZgFToKtCKokitoigT9kAopFEFFGqkSAUrDowiJD614SEj5EEG/VUXllQgQLbQVCNqIokoVQmmVKKiNgELcUGfuPXuvtfiw9z73zPUjduxAC3dJW/uc0Zk7Z/3Xf/3XWvsOzG1uc5vb3OY2t7nNbW5z+/9o8r/xR898Kp1txb7fAriABcTFRAKhafwfhkv6x39/YvSv/2cAuO9J3z92e1cc2E+qcDQFRwNYY1gAGkcChMYhgDQOyLPi/tTyYPArnz2x8MVvSwDuf9L3fyPZB2LgvSpOCpCCowLWOCaONo402WkJEIJDAxKcEEDEIfEUxgc+f3r0Z982ANz3CX+oEf/lFnZHcRIQmwyCBScVELxxJDgyyE5Lk0GQUAABwPKLTvyJke7+iU+dka9+ywJw/5O+P415DOfsRCCKE4EY8m6hx4QGpLEc7WaaCtJAECeII5JZIBgAnnheUvPg586s/Om3HAD3P+n7mwl/m+C21iAaRIGJOFGK00BqsgZ4yfnQGDQZhBp5AgxwRAzBwcm7OO42aV5s3vt3b1l97FrfeXAtv7z5I184mybtXTHGtYWF8Eb5z8mpZrSwlAzcQB1UwUSw4JjJFATL6AfAEYJkB90F3AkGLpLLhIBgeOYA4izYUvqtu//iha9/7q3rn/gfZcDr3/P0Vrvd/kxs49tTG9E2kdrI6fvuYOPIPsYKrcHYYKIwcUgCLZDEu+hbcJpmmvcEp6l6UGkvjpDpL57dF3EcA3FwWraHP/rUD+z+g1edAXc99PxmGp9/PLZxS9XwskyV4/dscui12Xl1SJojnAzUIDrZaYGEYOY0jeA4UiIuQTCdpkEXHvfMBBwozgP5R7bLPf4u8IoBCFfy0KmHn3tA4/YzqrplxWlVRdVYWVvk+OmDRKVbybPjavk6ASlBVMETeBIsgUTBk+MRPDqSBItAufeJl+ctP9M6HgWiY9GxCI7uO/Hx/3jiVQPg1MPPfTi1+rgmRZNiKWFJu3X6rcew0GTBU4gJ2lSA0KwBqmAKnkCTgIJEsOhQQCDle0ngE6AtDreOTwogKe/WgrfgEayFZpf+4Os+9uKbrnsKnHr4Xx5NMT2kMdGtpGjK+8Hb97N6w4hxglaL4zZlQSwMUPLPTMg3ASxkGps6TdEECY4nx7w0QFKoXkpiTQME3Ot9ThPS5HeAk9dNBE89/NwDqdXHNSZScT61CY2R1CaaAdz7rruxpmGSyEszEBOF1qdlMBUg3PILh07ocimQxgjBaapDQQl4LgBiU/HbJcRRwIZCGoVcEsWRVmlaVxo5+/T37nnimgG466HnNy1ufyHFtKYxRzw7n0gxK//xrds5dPsG0XLkdzhveSUvouiQ3EvAHHHPJTA4BMtgBCO4IyEr/hQgx3Y3pBuHxJUGD56X5J6A4ITGGTS5irjxtVab33j2+PJHXrEGxPH5R+MkrqU2kmIktTFHvji/sm+FA0c3mCiMe863Wmjfy301SOqIgpgjmlHxZFhrOd/HuW7aWLGxYxPDJoZHJx1aIt6yTFoa4A5mZTkognnuFays0HBwZSl9+NhXXvzy4S+fv++qGfD69zy9Fdv0V1pErsv7mgYx8YYfOs3u/atoiXasANT8L12gaol86eRwz2Wt7GK9Oi+KeE4HdyesNsjRZXShQcVzIyV5UVkQcq/QlOg3hQ1NGaoEJufHwwefObb0+1csgu1LkwdUFU2l3M0AcPCuwyztXWWSprU+zjifDDSBVmcB8RI29253c0yNxi3X+CJ0zXpgeHyFtgkZM8lR93p+UD4GL52kg5nkaJaOEoQQfGG01P7ekX/e9meOLX30ygCI8WwucZYZkCoASjMUDty5Sau9Gm895S+1XxXMHbMaecsCWJx3s5IOmc+mhRFiNHsDiydHpOK8Ghi5glhxFMkfa5BHZ8tOm+QHpbTM7oIHWNqVHtv8p/G/PXvH4p9fFoDNd3x+K43jmqlianRpkBIalcNvvhMLTaZ26fVrxCsYSXPkO+etPFgTWJ1gjpti5ohqBsCMZhcsn9iND0J21ovzLtNr8XyIUhAwkTw8dYhkyriDhPxnRVgYDNJvAscuK4Jtm7ZSG0mT3ir3owPr7DlyICt8EbtYrqvjnfNaXqgIXq7Tlmt8SSdvDW8TNlG8VaxVll63Qlgdds5Xn1JpsWt36SYkLcJXRdEENcE07911WUG4/dCXxj99WQakNm5qUlwN1ZoCiptx8Lu/IzczpbGpL5WqIpd7M3bkuVh+c1PLlI+V9oZnlcTVWLh5yOJrl0hd1NnJAhNUsg6YFRaY9JTcqwDkHsKliORUG4Zi7wd++5IMGO4dnUiTSJxE0qQltRE3Y+P0bTRroxzxWaX3aTpY763FnGB1IMjC4Mnw0k57zJHXmAiNsX5mT3aUndGv9xXoVKNvsiPyeYF6ibpNo1+vHW7d+OLkxCUBWLp5Yzu1mfamuQNbXF/mhpO35T6/p/qxl/dqWfTEneBO8BxlT1URM1peBgSfGD5J3Qct3znClwc7I06vaFBZJ5l5VgGYgtAtFdTzdQUg9XYxfuySACwc2L96wxuOTu/Xljl473eSpEHNy0Q3zXfX3OR4ysIm6rj6VCBUy6BTqJ4SFhVXxZOirSLBGN2x0jmts9TvpUMqDKiptiPy/Yj3Iz+z3LnlkhrgItujY69h9fhrsrKWipqid9N4fUEtNA21wdGS70WVxLw4bx31iRmM2gWaKnvfsh8fNt1nzgKhfiEIoevfSt57J/54KGcl3SCV9+lvyPFLAiDOE2Z2twbp+nb3DIJJPuaqL9edURj5tKbU90x9R1JWTFfFa+ub8rWWfrnZHVg6OppqyGWiX++dUglKqXMvDZI7Ich0rwDQ2ylHzJdshIRPJvVfysdPUp6u0S/1uNdDS2ly8EL/Uu5ELQtipX6sjZV1OWSq7Nu6EdNpb2/9qPvMz8t1NaueBceLw15HbIHQj/7Ohv/SAHzpfcO/ue1D2980kVH2DlQyG6yjXBYOoUMFJ+e+mGUNKEXbk2OqeOdlLn+WjMVDCyzcskKK03ZBZ5y/GBCznjhCCNM2WQoILl1V7FIBwE0+fdlWOLl90k3OulNg7P1V6VXckiL9eu/JwUtnp9MSWFPAUzlLNGPvvQfQeBHq9523HiPs4sOM1zMWkY4BlQVysTSw8JXLAjAc2iOTl+Ssi2SnKnouID4VE+eCwUaKc7W5ccszgJdGyC0/t+e79iGLA1KaOthh5jPOXyL6s9alpshF6d/tA/7yZQ9Ebv3g+T9xs7d1LdTMVukv3i/UiueWLQteYYAnRaOXBkhpRg03veNwd1DSHZjYzuvovRnjCgC46Kxf1V+69/5Meqe8+WXPBIcj+/H2BXvGYXkHfJUMdebwPM/XMLrV4/J8b2ln5N1g/U03llF5GuHZ6z4DZsXvasx3JjA4H7ziM8HDv/hfPxwn6eNS4KuFIXQlM0deyFG30giZaQEgA2Epa4InY/XkGit3rO8QvB1TZe++32m+Qv9n7dO8W7au6puhm3/h3CO2rb/WTwWRWv58WgatnNJqzf06AOWx19XYtW+B9e85uDPnZ6jfP2Pog3Ed7BsM2OTdcu6qvxq7+WfP/byO4696EZjy/WRHsGCemxGtYpjTAM2nPWbOrj1D9p65CRtMO74+3S/GgrpfF+cbtnhQ/vEVfzd468+d+772m/Fjbra3+6V61GW5AfKy14R2Myw5u9Z2sX7PBtY0OxqdPgizAFQmmF8H5wNb/NTFnb+qL0cPf+jfD0xekF/3l9I73XyRrgvMYEzPAUrumzNcHbL3jTfhPeeNndHvpmW/cL9G+yPgAd53Ie2v6dvhw4+eO9Weiw+mcXq7tWmjdoOUbtDdkUZYvnUPK0fWulbBekPNLAAXsMCu2fGP8H7561f9HyQ2H/n6PZOxnrSJv01dgyBhsDxYWdwYHQnLC0ojLyAyrpOjWk6cVHXSp31TaRhJhvvVAVAdfZZF/vDlIj63uc1tbnOb29zmNre5zW1ucwP+G1ME77lSc/kUAAAAAElFTkSuQmCC"
-}, vs = {
- ...Object.fromEntries(hn.map((e) => [e.id, _s[e.id] || e.icon])),
+}, _s = {
+ ...Object.fromEntries(hn.map((e) => [e.id, gs[e.id] || e.icon])),
online: "rss",
smb: "network"
-}, ys = "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans", bs = {
+}, vs = "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden font-sans", ys = {
medium: "h-9 rounded-2lg p-2 text-body-medium",
small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"
-}, xs = {
- medium: bs.medium,
+}, bs = {
+ medium: ys.medium,
small: "size-8 rounded-lg p-0 text-body-medium"
-}, Ss = {
+}, xs = {
medium: "size-5 shrink-0",
small: "size-[18px] shrink-0"
-}, Cs = "size-(--icon-inline) shrink-0", ws = {
+}, Ss = "size-(--icon-inline) shrink-0", Cs = {
medium: "inline-flex items-center justify-center px-1 shrink-0",
small: "inline-flex items-center justify-center px-0.5 shrink-0"
-}, Ts = {
+}, ws = {
primary: "bg-button-primary text-text-white shadow-xs",
secondary: "bg-background-primary-default text-text-primary border border-border-button-default shadow-xs",
ghost: "bg-button-ghost-background text-button-ghost-foreground"
-}, Es = (e, t) => `<svg class="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><use href="#i-${e}"/></svg>`;
-function Ds(e = "compact") {
- return `<span data-shortcuts-entry class="inline-flex flex-none"><button type="button" data-shortcuts-trigger data-filter-action data-skeleton-action disabled tabindex="-1" aria-label="我的收藏" title="我的收藏" class="inline-grid ${e === "default" ? "size-9" : "size-8"} flex-none place-items-center rounded-(--control-radius) border border-(--border-10) bg-(--surface) text-(--muted)">${Es("star", "size-4")}</button></span>`;
+}, Ts = (e, t) => `<svg class="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><use href="#i-${e}"/></svg>`;
+function Es(e = "compact") {
+ return `<span data-shortcuts-entry class="inline-flex flex-none"><button type="button" data-shortcuts-trigger data-filter-action data-skeleton-action disabled tabindex="-1" aria-label="我的收藏" title="我的收藏" class="inline-grid ${e === "default" ? "size-9" : "size-8"} flex-none place-items-center rounded-(--control-radius) border border-(--border-10) bg-(--surface) text-(--muted)">${Ts("star", "size-4")}</button></span>`;
}
-function Os(e, t = "", n = e) {
- return `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1"><div data-rac 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">${Es("search", "size-5 shrink-0")}<input type="search" enterkeyhint="search" readonly tabindex="-1" aria-label="${z(n)}" value="${z(t)}" placeholder="${z(e)}" class="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"></div></div></div></div>`;
+function Ds(e, t = "", n = e) {
+ return `<div data-input-size="medium" class="group flex h-max w-full flex-col items-start gap-1"><div data-rac 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">${Ts("search", "size-5 shrink-0")}<input type="search" enterkeyhint="search" readonly tabindex="-1" aria-label="${z(n)}" value="${z(t)}" placeholder="${z(e)}" class="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"></div></div></div></div>`;
}
-function ks({ variant: e = "primary", size: t = "medium", glyph: n, label: r, attrs: i = "", compact: a = !1 }) {
- let o = r ? bs[t] : xs[t], s = n ? Es(n, r ? Cs : Ss[t]) : "", c = r ? `<span class="${ws[t]}"${a ? " data-compact-label" : ""}>${r}</span>` : "";
- return `<button type="button" class="${ys} ${o} ${Ts[e]}"${i ? ` ${i}` : ""}>${s}${c}</button>`;
+function Os({ variant: e = "primary", size: t = "medium", glyph: n, label: r, attrs: i = "", compact: a = !1 }) {
+ let o = r ? ys[t] : bs[t], s = n ? Ts(n, r ? Ss : xs[t]) : "", c = r ? `<span class="${Cs[t]}"${a ? " data-compact-label" : ""}>${r}</span>` : "";
+ return `<button type="button" class="${vs} ${o} ${ws[e]}"${i ? ` ${i}` : ""}>${s}${c}</button>`;
}
-var As = {
+var ks = {
md: {
box: "gap-1.5 px-2.5 py-2 text-body-medium",
value: "gap-[5px]",
@@ -13111,66 +13111,66 @@ var As = {
chevron: "size-3.5"
}
};
-function js(e, { size: t = "md", className: n = "", attrs: r = "", prefix: i = "" } = {}) {
- let a = As[t], o = `<span class="flex min-w-0 items-center truncate ${a.value}">${e}</span>`, s = i ? `<span class="flex min-w-0 items-center ${t === "sm" ? "gap-1.5" : "gap-2"}"><span aria-hidden="true" class="shrink-0 text-text-tertiary">${i}</span>${o}</span>` : o;
- return `<div class="group flex flex-col${n ? ` ${n}` : ""}"><button type="button" aria-haspopup="listbox"${r ? ` ${r}` : ""} class="flex w-full items-center justify-between rounded-2lg border border-border-button-default bg-background-primary-default shadow-xs text-text-primary ${a.box}">${s}${Es("chevron-down", `shrink-0 text-text-secondary ${a.chevron}`)}</button></div>`;
+function As(e, { size: t = "md", className: n = "", attrs: r = "", prefix: i = "" } = {}) {
+ let a = ks[t], o = `<span class="flex min-w-0 items-center truncate ${a.value}">${e}</span>`, s = i ? `<span class="flex min-w-0 items-center ${t === "sm" ? "gap-1.5" : "gap-2"}"><span aria-hidden="true" class="shrink-0 text-text-tertiary">${i}</span>${o}</span>` : o;
+ return `<div class="group flex flex-col${n ? ` ${n}` : ""}"><button type="button" aria-haspopup="listbox"${r ? ` ${r}` : ""} class="flex w-full items-center justify-between rounded-2lg border border-border-button-default bg-background-primary-default shadow-xs text-text-primary ${a.box}">${s}${Ts("chevron-down", `shrink-0 text-text-secondary ${a.chevron}`)}</button></div>`;
}
-var Ms = "flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default", Ns = "flex min-w-0 flex-col gap-2", Ps = "text-body-regular text-text-secondary", Fs = "text-display-4-medium tabular-nums text-text-primary", Is = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen";
-function Ls(e) {
- return `<div data-collection-summary="" class="${Ms}"><div class="${Ns}"><span class="${Ps}">${e}</span><strong class="${Fs}"><span data-skeleton="count" aria-hidden="true" class="${Is}"></span></strong></div></div>`;
+var js = "flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default", Ms = "flex min-w-0 flex-col gap-2", Ns = "text-body-regular text-text-secondary", Ps = "text-display-4-medium tabular-nums text-text-primary", Fs = "relative inline-block h-8 w-24 rounded-2lg align-middle skeleton-sheen";
+function Is(e) {
+ return `<div data-collection-summary="" class="${js}"><div class="${Ms}"><span class="${Ns}">${e}</span><strong class="${Ps}"><span data-skeleton="count" aria-hidden="true" class="${Fs}"></span></strong></div></div>`;
}
// src/ui-kit/markup.ts
-var Rs = /* @__PURE__ */ new Set([
+var Ls = /* @__PURE__ */ new Set([
"secondary",
"warning",
"error",
"success"
]);
-function zs({ label: e = "", items: t = [], footnote: n = "" } = {}) {
+function Rs({ label: e = "", items: t = [], footnote: n = "" } = {}) {
return `<details class="geist-note-details"><summary>${z(e)}</summary>
<ul>${t.map((e) => `<li>${e.href ? `<a href="${z(e.href)}">${z(e.label || "")}</a>` : `<b>${z(e.label || "")}</b>`}<span>${z(e.note || "")}</span>${e.hint ? `<code>${z(e.hint)}</code>` : ""}</li>`).join("")}</ul>${n ? `<p>${z(n)}</p>` : ""}</details>`;
}
-function Bs(e, { variant: t = "secondary", label: n = "", className: r = "", size: i = "medium", filled: a = !1, actionLabel: o = "", actionHref: s = "", details: c = null } = {}) {
- let l = Rs.has(t) ? t : "secondary", u = l === "secondary" ? "info" : l === "success" ? "check" : "alert", d = l === "error" ? " role=\"alert\"" : " role=\"note\"", f = o ? s ? `<a class="geist-button" href="${z(s)}" data-note-action>${z(o)}</a>` : `<button type="button" class="geist-button" data-note-action>${z(o)}</button>` : "";
+function zs(e, { variant: t = "secondary", label: n = "", className: r = "", size: i = "medium", filled: a = !1, actionLabel: o = "", actionHref: s = "", details: c = null } = {}) {
+ let l = Ls.has(t) ? t : "secondary", u = l === "secondary" ? "info" : l === "success" ? "check" : "alert", d = l === "error" ? " role=\"alert\"" : " role=\"note\"", f = o ? s ? `<a class="geist-button" href="${z(s)}" data-note-action>${z(o)}</a>` : `<button type="button" class="geist-button" data-note-action>${z(o)}</button>` : "";
return `<div class="geist-note geist-note-${l}${r ? ` ${z(r)}` : ""}${i === "small" ? " geist-note-small" : ""}${a ? " geist-note-filled" : ""}"${d}>
- ${R(u)}<p>${n ? `<b>${z(n)}</b>` : ""}<span>${z(l === "error" ? xn(e) : e)}</span></p>${f}${c ? zs(c) : ""}</div>`;
+ ${R(u)}<p>${n ? `<b>${z(n)}</b>` : ""}<span>${z(l === "error" ? xn(e) : e)}</span></p>${f}${c ? Rs(c) : ""}</div>`;
}
-function Vs(e = "加载中") {
+function Bs(e = "加载中") {
let t = Array.from({ length: 10 }, (e, t) => `<i aria-hidden="true" style="--spinner-angle:${t * 36}deg;--spinner-delay:${t * 100 - 900}ms"></i>`).join("");
return `<span class="ui-geist-spinner" role="status" aria-label="${z(e)}">${t}</span>`;
}
-var Hs = "载入中";
-function Us(e = "正在处理", { className: t = "" } = {}) {
+var Vs = "载入中";
+function Hs(e = "正在处理", { className: t = "" } = {}) {
return `<span class="ui-geist-loading${t ? ` ${z(t)}` : ""}" role="status">
<span class="ui-geist-loading-dots" aria-hidden="true"><i></i><i></i><i></i></span>
<span>${z(e)}</span></span>`;
}
-function Ws(e, { active: t = "", attr: n = "data-tab", label: r = "页面视图", className: i = "", panel: a = "" } = {}) {
+function Us(e, { active: t = "", attr: n = "data-tab", label: r = "页面视图", className: i = "", panel: a = "" } = {}) {
let o = e.map(({ value: e, label: r, count: i, symbol: o }) => {
let s = String(e) === String(t), c = i == null ? "" : `<span class="ui-board-tab-count">${z(Number(i).toLocaleString())}</span>`;
return `<button type="button" role="tab" ${n}="${z(e)}" aria-selected="${s}"${a ? ` aria-controls="${z(a)}"` : ""}>${o ? R(o) : ""}${z(r)}${c}</button>`;
}).join("");
return `<div class="ui-board-local-nav ui-board-tabs${i ? ` ${z(i)}` : ""}" role="tablist" aria-label="${z(r)}">${o}</div>`;
}
-function Gs(e, t, n, { className: r = "", actions: i = "" } = {}) {
+function Ws(e, t, n, { className: r = "", actions: i = "" } = {}) {
return `<div class="ui-emptystate${r ? ` ${z(r)}` : ""}" data-geist-empty-state role="status">
<div class="ui-es-icon" aria-hidden="true">${R(e)}</div>
<div class="ui-es-copy"><h3>${z(t)}</h3><p>${z(n)}</p></div>
${i ? `<div class="ui-es-actions">${i}</div>` : ""}
</div>`;
}
-function Ks(e = "") {
+function Gs(e = "") {
return `<span class="ui-pcheck"><input type="checkbox" ${e}><span aria-hidden="true">${R("check")}</span></span>`;
}
// src/ui-kit/motion.ts
-function qs(e, t, n = "a", { className: r = "", iconClass: i = "", label: a = "" } = {}) {
+function Ks(e, t, n = "a", { className: r = "", iconClass: i = "", label: a = "" } = {}) {
return `<span class="iconswap${r ? " " + z(r) : ""}" data-icon-swap data-icon-state="${n === "b" ? "b" : "a"}"${a ? ` aria-label="${z(a)}"` : ""}><span data-icon="a">${R(e, i)}</span><span data-icon="b">${R(t, i)}</span></span>`;
}
-function Js(e, t) {
+function qs(e, t) {
let n = e && (e.matches?.("[data-icon-swap]") ? e : e.querySelector?.("[data-icon-swap]"));
return n && (n.dataset.iconState = t === "b" || t === !0 ? "b" : "a"), n;
}
-function Ys(e, t, { html: n = !1 } = {}) {
+function Js(e, t, { html: n = !1 } = {}) {
if (!e) return;
let r = String(t ?? ""), i = () => {
n ? e.innerHTML = r : e.textContent = r;
@@ -13190,7 +13190,7 @@ function Ys(e, t, { html: n = !1 } = {}) {
e.classList.contains("leaving") && (e.removeEventListener("transitionend", s), o());
}, 400);
}
-function Xs(e, t) {
+function Ys(e, t) {
if (!e) return;
let n = String(t ?? ""), r = e.dataset.popCount;
if (r === n && e.firstElementChild) return;
@@ -13200,9 +13200,9 @@ function Xs(e, t) {
let a = e.firstElementChild;
a.getBoundingClientRect(), a.classList.add("popping");
}
-function Zs(e, t = e && e.parentElement, { text: n = e && e.value, scrollLeft: r = e && e.scrollLeft || 0 } = {}) {
+function Xs(e, t = e && e.parentElement, { text: n = e && e.value, scrollLeft: r = e && e.scrollLeft || 0 } = {}) {
if (!e || !t || (t.querySelectorAll(":scope > .cleardissolve").forEach((e) => e.remove()), e.classList.remove("dissolving"), e.value = "", !n || !e.isConnected)) return () => {};
- let i = Qs(e, t, "cleardissolve");
+ let i = Zs(e, t, "cleardissolve");
if (!i) return () => {};
let a = document.createElement("span");
a.dataset.dissolveValue = "", a.textContent = n, a.style.transform = `translateX(-${Math.max(0, r)}px)`, i.append(a), e.classList.add("dissolving"), t.append(i);
@@ -13211,7 +13211,7 @@ function Zs(e, t = e && e.parentElement, { text: n = e && e.value, scrollLeft: r
};
return i.addEventListener("animationend", c), s = setTimeout(c, 1e3), c;
}
-function Qs(e, t, n) {
+function Zs(e, t, n) {
let r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
if (!r.width) return null;
let a = document.createElement("span");
@@ -13231,28 +13231,28 @@ function Qs(e, t, n) {
direction: o.direction
}), a;
}
-function $s(e, t, n = e && e.parentElement) {
+function Qs(e, t, n = e && e.parentElement) {
if (!e) return () => {};
let r = e.placeholder;
if (n?.querySelectorAll(":scope > .placeholderroll").forEach((e) => e.remove()), e.classList.remove("placeholderrolling"), e.placeholder = t, !n || !r || r === t || e.value || !e.isConnected || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return () => {};
- let i = Qs(e, n, "placeholderroll");
+ let i = Zs(e, n, "placeholderroll");
if (!i) return () => {};
i.style.color = getComputedStyle(e, "::placeholder").color;
let a = document.createElement("span");
- i.append(a), e.classList.add("placeholderrolling"), n.append(i), Ys(a, r), a.getBoundingClientRect(), Ys(a, t);
+ i.append(a), e.classList.add("placeholderrolling"), n.append(i), Js(a, r), a.getBoundingClientRect(), Js(a, t);
let o = !0, s = () => {
o && (o = !1, clearTimeout(c), i.remove(), n.querySelector(":scope > .placeholderroll") || e.classList.remove("placeholderrolling"));
}, c = setTimeout(s, 900);
return s;
}
-var ec = /* @__PURE__ */ new Map();
-function tc(e, t = "") {
+var $s = /* @__PURE__ */ new Map();
+function ec(e, t = "") {
e && e.querySelectorAll("[data-count-badge]").forEach((e) => {
- let n = `${t}\u0000${e.dataset.countBadge}`, r = e.textContent || "", i = ec.get(n);
- ec.set(n, r), e.classList.add("countbadge"), i !== void 0 && i !== r && (e.classList.add("popped"), e.getBoundingClientRect(), e.classList.remove("popped"));
+ let n = `${t}\u0000${e.dataset.countBadge}`, r = e.textContent || "", i = $s.get(n);
+ $s.set(n, r), e.classList.add("countbadge"), i !== void 0 && i !== r && (e.classList.add("popped"), e.getBoundingClientRect(), e.classList.remove("popped"));
});
}
-function nc(e, t = "[data-reveal-line]") {
+function tc(e, t = "[data-reveal-line]") {
if (!e) return;
let n = [...e.querySelectorAll(t)];
if (!n.length) return;
@@ -13268,12 +13268,12 @@ function nc(e, t = "[data-reveal-line]") {
i.classList.contains("revealline") && (i.removeEventListener("transitionend", a), r());
}, 1200);
}
-var rc = [
+var nc = [
50,
100,
200
];
-function ic({ mode: e = "cloud", pageSize: t = 100 } = {}) {
+function rc({ mode: e = "cloud", pageSize: t = 100 } = {}) {
let n = Math.max(1, Math.min(200, Math.floor(t))), r = Array.from({ length: n }, (e, t) => `<span data-tag-skeleton-cell class="skeleton block rounded-lg" style="height:34px;width:${58 + (Math.imul(t + 1, 2654435761) >>> 0) % 153}px;max-width:100%"></span>`).join(""), i = Array.from({ length: Math.min(2, n) }, (e, t) => {
let r = Math.floor(n / 2) + (t === 0 ? n % 2 : 0);
return `<section class="min-w-0 bg-background-secondary-default rounded-2xl px-5 pt-4 pb-3"><span class="skeleton mb-2 block w-20" style="height:24px"></span><div class="index-tag-list gap-x-4 gap-y-0.5">${Array.from({ length: r }, () => "<span data-tag-skeleton-cell class=\"flex h-9 min-w-0 items-center gap-3 px-2.5\"><span class=\"skeleton w-32 max-w-full rounded-md\" style=\"height:16px\"></span><span class=\"skeleton ml-auto w-8 rounded-md\" style=\"height:12px\"></span></span>").join("")}</div></section>`;
@@ -13281,7 +13281,7 @@ function ic({ mode: e = "cloud", pageSize: t = 100 } = {}) {
return `<div data-skeleton="tags/${e === "alphabet" ? "alphabet" : "cloud"}/${n}" role="status" aria-label="正在读取标签" aria-busy="true"><span class="sr-only">正在读取标签</span><div aria-hidden="true">${e === "alphabet" ? `<div class="flex flex-col gap-4">${i}</div>` : `<div class="flex flex-wrap gap-1.75">${r}</div>`}<div class="mt-5 flex flex-wrap items-center justify-between gap-3" data-tag-pagination-skeleton><span class="skeleton block w-32" style="height:16px"></span><div class="flex items-center gap-2"><span class="skeleton block w-28 rounded-md" style="height:32px"></span><span class="skeleton block w-40 rounded-md" style="height:32px"></span></div></div></div></div>`;
}
// src/ui-kit/skeleton.ts
-function ac(e, t) {
+function ic(e, t) {
if (!e) return;
if (e.querySelector(".skeleton-awaiting") || !e.querySelector(".skeleton,[data-skeleton],.skeletoncard,.countskeleton") || !e.firstChild) {
t();
@@ -13299,7 +13299,7 @@ function ac(e, t) {
n.isConnected && (n.removeEventListener("transitionend", i), r());
}, 1e3);
}
-function oc(e = "正在读取内容", { className: t = "", variant: n = "panel", count: r = 6, fill: i = !0, gridClass: a = "", gridSize: o = "", cardRatio: s = 0 } = {}) {
+function ac(e = "正在读取内容", { className: t = "", variant: n = "panel", count: r = 6, fill: i = !0, gridClass: a = "", gridSize: o = "", cardRatio: s = 0 } = {}) {
let c = (/* @__PURE__ */ new Set([
"panel",
"cards",
@@ -13313,18 +13313,18 @@ function oc(e = "正在读取内容", { className: t = "", variant: n = "panel",
role="status" aria-label="${z(e)}"><span class="sr-only">${z(e)}</span>
<div${a ? ` class="${z(a)}"` : ""}${o ? ` data-size="${z(o)}"` : ""}${c === "cards" && Number(s) > 0 ? ` style="--skeleton-card-ratio:${Number(s)}"` : ""} aria-hidden="true">${l}</div></div>`;
}
-function sc({ kind: e, layout: t = "big", mode: n = "alphabet" } = {}) {
- if (e === "tags") return ic({ mode: n });
+function oc({ kind: e, layout: t = "big", mode: n = "alphabet" } = {}) {
+ if (e === "tags") return rc({ mode: n });
let r = `<div class="igrid" data-cells="${e === "studios" || e === "agencies" || e === "series" ? "company" : "people"}" data-layout="${z(t)}">${"<span class=\"icell\"><span class=\"ring skeleton\"></span><span class=\"nm skeleton\">&nbsp;</span><span class=\"n skeleton\">&nbsp;</span></span>".repeat(12)}</div>`, i = "正在读取索引";
return `<div class="skeletonpanel index-skeleton" data-skeleton="index/${z(e)}/${z(t)}/${z(n)}" data-fill=""
role="status" aria-label="${i}"><span class="sr-only">${i}</span><section aria-hidden="true">${r}</section></div>`;
}
-var cc = {
+var sc = {
av: () => "<span class=\"av avskeleton\"><span class=\"ring\"></span><span class=\"nm\">&nbsp;</span></span>",
brandpill: (e) => `<span class="brandpill brandskeleton" style="width:${e}px"><span class="mk"></span></span>`,
pill: (e) => `<span class="pill tagskeleton" style="width:${e}px"></span>`,
"filter-pill": (e) => `<span class="skeleton" style="width:${e}px;height:var(--control-h-compact);border-radius:8px;flex:none"></span>`
-}, lc = {
+}, cc = {
av: [0],
brandpill: [
132,
@@ -13367,41 +13367,41 @@ var cc = {
76,
84
]
-}, uc = "[data-skeleton],[data-skeleton-tier],.countskeleton";
-function dc(e) {
+}, lc = "[data-skeleton],[data-skeleton-tier],.countskeleton";
+function uc(e) {
if (!e) return;
- let t = [...e.matches?.(uc) ? [e] : [], ...e.querySelectorAll(uc)], n = t.filter((e) => !t.some((t) => t !== e && t.contains(e)));
+ let t = [...e.matches?.(lc) ? [e] : [], ...e.querySelectorAll(lc)], n = t.filter((e) => !t.some((t) => t !== e && t.contains(e)));
for (let e of n) e.closest("[data-page-navigation-pending]") ? (e.dataset.skeletonReveal = "shown", e.classList.remove("skeleton-awaiting")) : e.dataset.skeletonReveal || (e.dataset.skeletonReveal = "pending", e.classList.add("skeleton-awaiting"), setTimeout(() => {
e.isConnected && e.dataset.skeletonReveal === "pending" && (e.dataset.skeletonReveal = "shown", e.classList.remove("skeleton-awaiting"));
}, 180));
}
-var fc = 64;
-function pc(e) {
- e = e.filter((e) => e.row && cc[e.kind] && (!e.row.children.length || e.row.scrollWidth <= e.row.clientWidth)).map((e) => ({
+var dc = 64;
+function fc(e) {
+ e = e.filter((e) => e.row && sc[e.kind] && (!e.row.children.length || e.row.scrollWidth <= e.row.clientWidth)).map((e) => ({
...e,
start: e.row.children.length,
added: 0
}));
let t = (e, t) => {
- let n = cc[e.kind], r = lc[e.kind], i = "";
- for (let a = Math.min(fc, e.added + t); e.added < a; e.added++) i += n(r[e.added % r.length]);
+ let n = sc[e.kind], r = cc[e.kind], i = "";
+ for (let a = Math.min(dc, e.added + t); e.added < a; e.added++) i += n(r[e.added % r.length]);
e.row.insertAdjacentHTML("beforeend", i);
};
- for (let n of e) t(n, lc[n.kind].length);
+ for (let n of e) t(n, cc[n.kind].length);
for (let n = 0; n < 4; n++) {
- let n = e.filter((e) => e.added < fc && e.row.scrollWidth <= e.row.clientWidth).map((e) => {
+ let n = e.filter((e) => e.added < dc && e.row.scrollWidth <= e.row.clientWidth).map((e) => {
let t = e.row.children[e.start].getBoundingClientRect(), n = e.row.lastElementChild.getBoundingClientRect(), r = Math.max(1, (n.right - t.left) / e.added);
return [e, Math.ceil((e.row.getBoundingClientRect().right - n.right) / r) + 1];
});
if (!n.length) break;
for (let [e, r] of n) t(e, Math.max(1, r));
}
- for (let t of e) dc(t.row);
+ for (let t of e) uc(t.row);
}
-function mc(e) {
+function pc(e) {
if (!e) return;
let t = (t) => [...e.matches?.(t) ? [e] : [], ...e.querySelectorAll(t)];
- pc(t("[data-skeleton-tier]").map((e) => ({
+ fc(t("[data-skeleton-tier]").map((e) => ({
row: e,
kind: e.dataset.skeletonTier
})));
@@ -13414,36 +13414,36 @@ function mc(e) {
for (; e.children.length > s;) e.lastElementChild.remove();
for (; e.children.length < s;) e.appendChild(t.cloneNode(!0));
}
- dc(e);
+ uc(e);
}
// src/ui-kit/sweep-gate.ts
-var hc = 1e4, gc = /* @__PURE__ */ new WeakMap(), _c = null;
-function vc() {
- return _c || typeof IntersectionObserver != "function" || (_c = new IntersectionObserver((e) => {
+var mc = 1e4, hc = /* @__PURE__ */ new WeakMap(), gc = null;
+function _c() {
+ return gc || typeof IntersectionObserver != "function" || (gc = new IntersectionObserver((e) => {
for (let { target: t, isIntersecting: n } of e) {
if (!t.isConnected) {
- bc(t);
+ yc(t);
continue;
}
let e = t;
- e.dataset.sweep !== "stalled" && (n ? (delete e.dataset.sweep, gc.has(e) || gc.set(e, setTimeout(() => {
- gc.delete(e), e.isConnected && (e.dataset.sweep = "stalled");
- }, hc))) : (e.dataset.sweep = "idle", clearTimeout(gc.get(e)), gc.delete(e)));
+ e.dataset.sweep !== "stalled" && (n ? (delete e.dataset.sweep, hc.has(e) || hc.set(e, setTimeout(() => {
+ hc.delete(e), e.isConnected && (e.dataset.sweep = "stalled");
+ }, mc))) : (e.dataset.sweep = "idle", clearTimeout(hc.get(e)), hc.delete(e)));
}
- })), _c;
+ })), gc;
}
-function yc(e) {
- vc()?.observe(e);
+function vc(e) {
+ _c()?.observe(e);
}
-function bc(e) {
- _c?.unobserve(e), clearTimeout(gc.get(e)), gc.delete(e), e.dataset?.sweep && delete e.dataset.sweep;
+function yc(e) {
+ gc?.unobserve(e), clearTimeout(hc.get(e)), hc.delete(e), e.dataset?.sweep && delete e.dataset.sweep;
}
// src/ui-kit/scroll.ts
-var xc = /* @__PURE__ */ new Map(), Sc, Cc = 240, wc = 50, Tc = 70, Ec = .55, Dc = .35, Oc = 480;
-function kc(e, t) {
- return !e || !(t > 0) ? 0 : Math.sign(e) * (1 - 1 / (Math.abs(e) * Ec / t + 1)) * t;
+var bc = /* @__PURE__ */ new Map(), xc, Sc = 240, Cc = 50, wc = 70, Tc = .55, Ec = .35, Dc = 480;
+function Oc(e, t) {
+ return !e || !(t > 0) ? 0 : Math.sign(e) * (1 - 1 / (Math.abs(e) * Tc / t + 1)) * t;
}
-function Ac(e) {
+function kc(e) {
let t = null, n = 0, r = () => typeof e.animate != "function" || matchMedia("(prefers-reduced-motion:reduce)").matches, i = () => {
t = null, n || e.classList.remove("edgepull");
}, a = (n, r) => {
@@ -13451,11 +13451,11 @@ function Ac(e) {
};
return {
drag(i) {
- r() || (t?.cancel(), t = null, n = -kc(i, e.clientWidth), e.classList.toggle("edgepull", !!n), n ? e.style.setProperty("--edge-pull", `${n}px`) : e.style.removeProperty("--edge-pull"));
+ r() || (t?.cancel(), t = null, n = -Oc(i, e.clientWidth), e.classList.toggle("edgepull", !!n), n ? e.style.setProperty("--edge-pull", `${n}px`) : e.style.removeProperty("--edge-pull"));
},
release() {
if (!n) return;
- let t = n, r = Wc();
+ let t = n, r = Uc();
n = 0, e.style.removeProperty("--edge-pull"), a([{
"--edge-pull": `${t}px`,
easing: r.easing
@@ -13463,9 +13463,9 @@ function Ac(e) {
},
kick(t) {
if (r() || n) return;
- let i = -kc(t * Dc, Math.min(e.clientWidth, Oc));
+ let i = -Oc(t * Ec, Math.min(e.clientWidth, Dc));
if (!i) return;
- let o = Wc();
+ let o = Uc();
a([
{
"--edge-pull": "0px",
@@ -13481,10 +13481,10 @@ function Ac(e) {
}
};
}
-function jc(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, dragIgnore: a = "" } = {}) {
+function Ac(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, dragIgnore: a = "" } = {}) {
if (!e) return;
n && (e.dataset.scrollGesture = "");
- let o = xc.get(e);
+ let o = bc.get(e);
if (o) return o.options.drag ||= t, o.options.fade ||= n, o.update(), o;
let s = {
drag: t,
@@ -13492,7 +13492,7 @@ function jc(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, dra
wheel: r,
elastic: i,
dragIgnore: a
- }, c = new AbortController(), l = Ac(e), u = null, d = 0, f = 0, p = 0, m = !1, h = 0, g = 0, _ = 0, v = 0, y = (t, n) => {
+ }, c = new AbortController(), l = kc(e), u = null, d = 0, f = 0, p = 0, m = !1, h = 0, g = 0, _ = 0, v = 0, y = (t, n) => {
e.dataset[t] !== n && (e.dataset[t] = n);
}, b = "", x = () => (b ||= getComputedStyle(e).overflowX, [
"auto",
@@ -13518,7 +13518,7 @@ function jc(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, dra
cancelAnimationFrame(h), h = 0, v = 0;
}, O = (t) => {
let n = Math.min(Math.max(t - g, 0), 64);
- if (g = t, _ += (p - _) * (1 - Math.exp(-n / Tc)), Math.abs(p - _) < .5 && (_ = p), e.scrollLeft = _, _ !== p) h = requestAnimationFrame(O);
+ if (g = t, _ += (p - _) * (1 - Math.exp(-n / wc)), Math.abs(p - _) < .5 && (_ = p), e.scrollLeft = _, _ !== p) h = requestAnimationFrame(O);
else if (h = 0, v) {
let e = v;
v = 0, E(e);
@@ -13530,11 +13530,11 @@ function jc(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, dra
if (t.defaultPrevented || !t.cancelable || Math.abs(t.deltaY) <= Math.abs(t.deltaX) || n <= 0 || !x()) return;
t.preventDefault();
let r = performance.now(), i = Math.abs(t.deltaY);
- r > f && (m = !1), f = r + Cc;
+ r > f && (m = !1), f = r + Sc;
let a = h ? p : e.scrollLeft, o = a + t.deltaY;
p = Math.min(n, Math.max(0, o));
let c = o === p ? 0 : t.deltaY;
- i < wc || p === a ? (p !== a && (D(), e.scrollLeft = p), c && !h ? E(c) : c && (v = c)) : (c && (v = c), h ||= (_ = e.scrollLeft, g = performance.now(), requestAnimationFrame(O)));
+ i < Cc || p === a ? (p !== a && (D(), e.scrollLeft = p), c && !h ? E(c) : c && (v = c)) : (c && (v = c), h ||= (_ = e.scrollLeft, g = performance.now(), requestAnimationFrame(O)));
}, { passive: !1 }), T(e, "mousedown", (t) => {
d = 0, !s.drag || t.button !== 0 || e.scrollWidth - e.clientWidth <= 1 || s.dragIgnore && (t.shiftKey || t.ctrlKey || t.metaKey || t.altKey || t.target.closest?.(s.dragIgnore)) || (t.stopPropagation(), D(), u = {
x: t.pageX,
@@ -13572,18 +13572,18 @@ function jc(e, { drag: t = !1, fade: n = !0, wheel: r = !0, elastic: i = !0, dra
b = "", S();
},
destroy() {
- c.abort(), D(), cancelAnimationFrame(C), C = 0, A.disconnect(), M.disconnect(), xc.delete(e), delete e.dataset.scrollGesture, u && delete document.documentElement.dataset.dragScrolling, xc.size || (Sc?.disconnect(), Sc = null);
+ c.abort(), D(), cancelAnimationFrame(C), C = 0, A.disconnect(), M.disconnect(), bc.delete(e), delete e.dataset.scrollGesture, u && delete document.documentElement.dataset.dragScrolling, bc.size || (xc?.disconnect(), xc = null);
}
};
- return xc.set(e, ee), Sc || (Sc = new MutationObserver(() => {
- for (let [e, t] of xc) e.isConnected || t.destroy();
- }), Sc.observe(document.body, {
+ return bc.set(e, ee), xc || (xc = new MutationObserver(() => {
+ for (let [e, t] of bc) e.isConnected || t.destroy();
+ }), xc.observe(document.body, {
childList: !0,
subtree: !0
})), ee;
}
-function Mc(e) {
- return jc(e, {
+function jc(e) {
+ return Ac(e, {
drag: !0,
fade: !1,
wheel: !1,
@@ -13591,9 +13591,9 @@ function Mc(e) {
dragIgnore: "a,button,input,select,textarea,label,[role=\"button\"],[role=\"checkbox\"],[role=\"slider\"],.react-aria-ColumnResizer,thead"
});
}
-var Nc = 24, Pc = 2e3, Fc = 3e3, Ic = /* @__PURE__ */ new Map(), Lc = /* @__PURE__ */ new Set(), Rc = null, zc = null, Bc = /* @__PURE__ */ new Map();
-function Vc(e) {
- if (!e || Ic.has(e) || matchMedia("(prefers-reduced-motion:reduce)").matches) return;
+var Mc = 24, Nc = 2e3, Pc = 3e3, Fc = /* @__PURE__ */ new Map(), Ic = /* @__PURE__ */ new Set(), Lc = null, Rc = null, zc = /* @__PURE__ */ new Map();
+function Bc(e) {
+ if (!e || Fc.has(e) || matchMedia("(prefers-reduced-motion:reduce)").matches) return;
let t = new AbortController(), n = e.scrollLeft, r = 1, i = 0, a = 0, o = !1, s = !1, c = !0, l = 0, u = -1, d = !1, f = (e, n, r) => e.addEventListener(n, r, {
passive: !0,
signal: t.signal
@@ -13605,11 +13605,11 @@ function Vc(e) {
if (!m()) return;
a = requestAnimationFrame(h);
let o = i ? Math.min(t - i, 64) : 0;
- i = t, !(t < l) && (u < 0 && (u = e.scrollWidth - e.clientWidth), d && (d = !1, n = e.scrollLeft), !(u <= 1) && (n = Math.min(u, Math.max(0, n + r * Nc * o / 1e3)), e.scrollLeft = n, (n >= u || n <= 0) && (r = n >= u ? -1 : 1, l = t + Pc)));
+ i = t, !(t < l) && (u < 0 && (u = e.scrollWidth - e.clientWidth), d && (d = !1, n = e.scrollLeft), !(u <= 1) && (n = Math.min(u, Math.max(0, n + r * Mc * o / 1e3)), e.scrollLeft = n, (n >= u || n <= 0) && (r = n >= u ? -1 : 1, l = t + Nc)));
}, g = () => {
e.isConnected ? !a && m() && (i = 0, a = requestAnimationFrame(h)) : b();
}, _ = () => {
- l = performance.now() + Fc;
+ l = performance.now() + Pc;
};
f(e, "pointerenter", () => {
o = !0;
@@ -13629,41 +13629,41 @@ function Vc(e) {
});
y.observe(e, { childList: !0 }), f(document, "visibilitychange", g), g();
function b() {
- cancelAnimationFrame(a), a = 0, t.abort(), v.disconnect(), y.disconnect(), Ic.delete(e), Lc.delete(g), zc?.unobserve(e), Bc.delete(e), Ic.size || (Rc?.disconnect(), Rc = null, zc?.disconnect(), zc = null);
+ cancelAnimationFrame(a), a = 0, t.abort(), v.disconnect(), y.disconnect(), Fc.delete(e), Ic.delete(g), Rc?.unobserve(e), zc.delete(e), Fc.size || (Lc?.disconnect(), Lc = null, Rc?.disconnect(), Rc = null);
}
- Ic.set(e, b), Lc.add(g), Rc || (Rc = new MutationObserver(() => Lc.forEach((e) => e())), Rc.observe(document.body, {
+ Fc.set(e, b), Ic.add(g), Lc || (Lc = new MutationObserver(() => Ic.forEach((e) => e())), Lc.observe(document.body, {
attributes: !0,
attributeFilter: ["data-detail-open", "data-wall-open"]
- })), typeof IntersectionObserver == "function" && (zc ??= new IntersectionObserver((e) => {
- for (let t of e) Bc.get(t.target)?.(t.isIntersecting);
- }), Bc.set(e, (e) => {
+ })), typeof IntersectionObserver == "function" && (Rc ??= new IntersectionObserver((e) => {
+ for (let t of e) zc.get(t.target)?.(t.isIntersecting);
+ }), zc.set(e, (e) => {
c = e, g();
- }), zc.observe(e));
+ }), Rc.observe(e));
}
-function Hc(e) {
- Ic.get(e)?.();
+function Vc(e) {
+ Fc.get(e)?.();
}
-var Uc = null;
-function Wc() {
- if (!Uc) {
+var Hc = null;
+function Uc() {
+ if (!Hc) {
let e = getComputedStyle(document.documentElement);
- Uc = {
+ Hc = {
easing: e.getPropertyValue("--spring-pane").trim() || "ease",
duration: parseFloat(e.getPropertyValue("--spring-pane-ms")) || 300
};
}
- return Uc;
+ return Hc;
}
-function Gc(e, t, n, r = "x") {
- qc(e), e.style.width = `${n.w}px`, e.style.height = `${n.h}px`;
+function Wc(e, t, n, r = "x") {
+ Kc(e), e.style.width = `${n.w}px`, e.style.height = `${n.h}px`;
let i = r === "y" ? "h" : "w", a = r === "y" ? "y" : "x", o = `${n.x}px ${n.y}px`;
if (t && t[a] !== n[a] && !matchMedia("(prefers-reduced-motion:reduce)").matches) {
- let s = Wc(), c = [e.animate([{ translate: r === "y" ? `${n.x}px ${t.y}px` : `${t.x}px ${n.y}px` }, { translate: o }], {
+ let s = Uc(), c = [e.animate([{ translate: r === "y" ? `${n.x}px ${t.y}px` : `${t.x}px ${n.y}px` }, { translate: o }], {
duration: s.duration,
easing: s.easing,
fill: "none"
})];
- Kc.set(e, c);
+ Gc.set(e, c);
let l = 1 + Math.min(Math.abs(n[a] - t[a]) / n[i], 1.5) * .12;
c.push(e.animate([
{
@@ -13686,18 +13686,18 @@ function Gc(e, t, n, r = "x") {
}
e.style.translate = o;
}
-var Kc = /* @__PURE__ */ new WeakMap();
-function qc(e) {
- e && (Kc.get(e)?.forEach((e) => e.cancel()), Kc.delete(e));
+var Gc = /* @__PURE__ */ new WeakMap();
+function Kc(e) {
+ e && (Gc.get(e)?.forEach((e) => e.cancel()), Gc.delete(e));
}
-var Jc = ".reviewtabs,.ftablewrap,.ui-board-local-nav,[data-manage-menu],.follow-workspace-switch,.fmanagenav";
-function Yc(e = document, t = !0) {
+var qc = ".reviewtabs,.ftablewrap,.ui-board-local-nav,[data-manage-menu],.follow-workspace-switch,.fmanagenav";
+function Jc(e = document, t = !0) {
let n = [...e instanceof HTMLElement ? [e] : [], ...t ? e.querySelectorAll("*") : []];
- n.filter((e) => e instanceof HTMLElement && e.matches(Jc)).forEach((e) => jc(e));
- let r = (e) => e.hasAttribute("data-horizontal-scroll") || xc.has(e) && xc.get(e).options.fade !== !1;
+ n.filter((e) => e instanceof HTMLElement && e.matches(qc)).forEach((e) => Ac(e));
+ let r = (e) => e.hasAttribute("data-horizontal-scroll") || bc.has(e) && bc.get(e).options.fade !== !1;
n.flatMap((e) => {
if (!(e instanceof HTMLElement) || e === document.body || e === document.documentElement || e.closest(".ovtrack,.ui-ov-edges")) return [];
- if (e.closest("[data-skeleton],[data-skeleton-tier]")) return Fo(e), [];
+ if (e.closest("[data-skeleton],[data-skeleton-tier]")) return Po(e), [];
if (e.closest("[inert]")) return [];
let t = r(e), n = t ? ["y"] : ["y", "x"];
if (e.dataset.overlayScrollbar && e.dataset.overlayAxes === n.join("")) return [];
@@ -13709,19 +13709,19 @@ function Yc(e = document, t = !0) {
el: e,
axes: []
}] : [];
- }).forEach(({ el: e, axes: t }) => t.length ? zo(e, { axes: t }) : Fo(e));
+ }).forEach(({ el: e, axes: t }) => t.length ? Ro(e, { axes: t }) : Po(e));
}
-function Xc(e = document.body) {
+function Yc(e = document.body) {
let t = 0, n = /* @__PURE__ */ new Map(), r = (e) => !!e.closest(".ovtrack,.ui-ov-edges"), i = () => {
t = 0;
let e = [...n].filter(([e]) => e.isConnected);
n.clear();
- for (let [t, n] of e) e.some(([e, n]) => n && e !== t && e.contains(t)) || Yc(t, n);
- Io();
+ for (let [t, n] of e) e.some(([e, n]) => n && e !== t && e.contains(t)) || Jc(t, n);
+ Fo();
}, a = (e, a = !0) => {
r(e) || (n.set(e, (n.get(e) ?? !1) || a), t ||= requestAnimationFrame(i));
}, o = new MutationObserver((e) => {
- for (let n of e) if (n.type === "attributes") n.target instanceof HTMLElement && (n.attributeName === "data-theater" && Ro(n.target), a(n.target, n.attributeName !== "style"));
+ for (let n of e) if (n.type === "attributes") n.target instanceof HTMLElement && (n.attributeName === "data-theater" && Lo(n.target), a(n.target, n.attributeName !== "style"));
else {
for (let e of n.addedNodes) e instanceof HTMLElement && a(e);
n.removedNodes.length && !t && (t = requestAnimationFrame(i));
@@ -13745,45 +13745,45 @@ function Xc(e = document.body) {
});
let s = () => a(e);
return window.addEventListener("resize", s, { passive: !0 }), a(e), () => {
- o.disconnect(), window.removeEventListener("resize", s), cancelAnimationFrame(t), n.clear(), Lo(e), Io();
+ o.disconnect(), window.removeEventListener("resize", s), cancelAnimationFrame(t), n.clear(), Io(e), Fo();
};
}
// src/ui-kit/controls.ts
-function Zc(e, t = !0) {
+function Xc(e, t = !0) {
e && (t ? (e.setAttribute("aria-busy", "true"), e.setAttribute("aria-disabled", "true")) : (e.removeAttribute("aria-busy"), e.removeAttribute("aria-disabled")));
}
-var Qc = /* @__PURE__ */ new WeakSet();
-function $c(e = document) {
- Qc.has(e) || (Qc.add(e), e.addEventListener("click", (t) => {
+var Zc = /* @__PURE__ */ new WeakSet();
+function Qc(e = document) {
+ Zc.has(e) || (Zc.add(e), e.addEventListener("click", (t) => {
let n = t.target.closest?.("button[aria-busy=\"true\"],[role=\"button\"][aria-busy=\"true\"]");
n && e.contains(n) && (t.preventDefault(), t.stopImmediatePropagation());
}, !0));
}
-function el(e, t, n, r, { attr: i = "", className: a = "", text: o = !1 } = {}) {
+function $c(e, t, n, r, { attr: i = "", className: a = "", text: o = !1 } = {}) {
let s = n.map(([t, n, a]) => `<label title="${z(n)}"><input type="radio" name="${z(e)}" value="${z(t)}" ${i}
${t === r ? "checked" : ""}><span aria-hidden="true">${o ? (a ? R(a) : "") + z(n) : R(a)}</span><span class="sr-only">${z(n)}</span></label>`).join("");
return `<fieldset class="iconswitch${o ? " iconswitch-text" : ""}${a ? ` ${z(a)}` : ""}"><legend class="sr-only">${z(t)}</legend>${s}</fieldset>`;
}
-function tl(e, t, n) {
+function el(e, t, n) {
e?.querySelectorAll(`[${t}]`).forEach((e) => {
e.onchange = () => {
e.checked && n(e.value);
};
});
}
-var nl = 9;
-function rl({ value: e = 0, min: t = 0, max: n = 100, step: r = 1, label: i = "", suffix: a = "%", attr: o = "", className: s = "" } = {}) {
+var tl = 9;
+function nl({ value: e = 0, min: t = 0, max: n = 100, step: r = 1, label: i = "", suffix: a = "%", attr: o = "", className: s = "" } = {}) {
let c = n > t ? (e - t) / (n - t) * 100 : 0, l = `${e}${a}`;
return `<div class="ui-dial${s ? ` ${z(s)}` : ""}" ${o}>
<div class="ui-dial-slider" data-dial-slider role="slider" tabindex="0" aria-label="${z(i)}"
aria-valuemin="${t}" aria-valuemax="${n}" aria-valuenow="${e}" aria-valuetext="${z(l)}"
data-dial-step="${r}" style="--dial-at:${c}%">
<span class="ui-dial-track" aria-hidden="true"><span class="ui-dial-fill"></span></span>
- <span class="ui-dial-ticks" aria-hidden="true">${"<span></span>".repeat(nl)}</span>
+ <span class="ui-dial-ticks" aria-hidden="true">${"<span></span>".repeat(tl)}</span>
<span class="ui-dial-handle" aria-hidden="true"></span>
</div><b class="ui-dial-value mono" data-dial-value>${z(l)}</b></div>`;
}
-function il(e, { onInput: t = () => {}, onChange: n = () => {}, suffix: r = "%" } = {}) {
+function rl(e, { onInput: t = () => {}, onChange: n = () => {}, suffix: r = "%" } = {}) {
let i = e.querySelector("[data-dial-slider]"), a = e.querySelector("[data-dial-value]"), o = e.querySelector(".ui-dial-track"), s = +i.getAttribute("aria-valuemin"), c = +i.getAttribute("aria-valuemax"), l = +i.dataset.dialStep || 1, u = +i.getAttribute("aria-valuenow"), d = (e) => Math.min(c, Math.max(s, Math.round(e / l) * l)), f = () => {
let e = `${u}${r}`;
i.style.setProperty("--dial-at", `${c > s ? (u - s) / (c - s) * 100 : 0}%`), i.setAttribute("aria-valuenow", String(u)), i.setAttribute("aria-valuetext", e), a && (a.textContent = e);
@@ -13831,9 +13831,9 @@ function il(e, { onInput: t = () => {}, onChange: n = () => {}, suffix: r = "%"
}
};
}
-function al(e, t, n) {
+function il(e, t, n) {
n.classList.add("context-card"), n.setAttribute("popover", "manual"), n.setAttribute("role", "dialog"), n.tabIndex = -1, t.setAttribute("aria-haspopup", "dialog"), t.setAttribute("aria-controls", n.id);
- let r = ps(e, t, n), i, a = () => {
+ let r = fs(e, t, n), i, a = () => {
clearTimeout(i), r.setOpen(!1);
}, o = () => {
clearTimeout(i), i = setTimeout(() => {
@@ -13853,7 +13853,7 @@ function al(e, t, n) {
hide: a
};
}
-function ol(e, { selector: t, attribute: n, onMove: r } = {}) {
+function al(e, { selector: t, attribute: n, onMove: r } = {}) {
let i = () => [...e.querySelectorAll(t)], a = () => i().forEach((e) => e.classList.remove("dragging", "drop-before", "drop-after")), o = null;
i().forEach((e) => {
let t = e.getAttribute(n);
@@ -13874,11 +13874,11 @@ function ol(e, { selector: t, attribute: n, onMove: r } = {}) {
});
}
// src/ui-kit/modal.ts
-var sl = 0;
-function cl({ title: e, description: t = "", body: n = "", confirmLabel: r, cancelLabel: i = "取消", onConfirm: a = null, confirmDisabled: o = !1 } = {}) {
+var ol = 0;
+function sl({ title: e, description: t = "", body: n = "", confirmLabel: r, cancelLabel: i = "取消", onConfirm: a = null, confirmDisabled: o = !1 } = {}) {
let s = document.activeElement, c = document.createElement("dialog");
c.className = "ui-geist-modal";
- let l = `geist-form-title-${++sl}`;
+ let l = `geist-form-title-${++ol}`;
c.setAttribute("aria-labelledby", l), c.innerHTML = `<form class="ui-geist-modal-form" novalidate>
<header class="ui-geist-modal-header"><h3 id="${l}"></h3></header>
<div class="ui-geist-modal-scroll"><div class="ui-geist-modal-body">${t ? "<p></p>" : ""}
@@ -13902,31 +13902,31 @@ function cl({ title: e, description: t = "", body: n = "", confirmLabel: r, canc
if (e.preventDefault(), !(m || d.disabled)) {
if (!a) p = { confirmed: !0 }, c.close();
else {
- f.innerHTML = "", m = !0, Zc(d);
+ f.innerHTML = "", m = !0, Xc(d);
try {
p = {
confirmed: !0,
result: await a()
}, c.close();
} catch (e) {
- f.innerHTML = Bs(e.message || "操作未完成", { variant: "error" }), Zc(d, !1);
+ f.innerHTML = zs(e.message || "操作未完成", { variant: "error" }), Xc(d, !1);
} finally {
m = !1;
}
}
}
- }, c.showModal(), zo(c.querySelector(".ui-geist-modal-body")), $o("pop"), (c.querySelector(".ui-geist-modal-fields input:not([type=\"checkbox\"])") || d).focus(), {
+ }, c.showModal(), Ro(c.querySelector(".ui-geist-modal-body")), Qo("pop"), (c.querySelector(".ui-geist-modal-fields input:not([type=\"checkbox\"])") || d).focus(), {
dialog: c,
confirmButton: d,
done: h,
close: () => c.close()
};
}
-var ll = 0;
-function ul({ title: e, body: t, items: n = [], confirmLabel: r, cancelLabel: i = "取消", onConfirm: a = null, danger: o = !1 } = {}) {
+var cl = 0;
+function ll({ title: e, body: t, items: n = [], confirmLabel: r, cancelLabel: i = "取消", onConfirm: a = null, danger: o = !1 } = {}) {
let s = document.activeElement, c = document.createElement("dialog");
c.className = "ui-geist-modal";
- let l = `geist-modal-title-${++ll}`;
+ let l = `geist-modal-title-${++cl}`;
c.setAttribute("aria-labelledby", l), c.setAttribute("aria-describedby", `${l}-body`), o && c.setAttribute("role", "alertdialog"), c.innerHTML = `<header class="ui-geist-modal-header"><h3 id="${l}"></h3></header>
<div class="ui-geist-modal-scroll"><div class="ui-geist-modal-body">
<p id="${l}-body"></p><div data-modal-error></div></div></div>
@@ -13961,25 +13961,25 @@ function ul({ title: e, body: t, items: n = [], confirmLabel: r, cancelLabel: i
if (!n) {
if (!a) t = { confirmed: !0 }, c.close();
else {
- p.innerHTML = "", n = !0, Zc(f);
+ p.innerHTML = "", n = !0, Xc(f);
try {
t = {
confirmed: !0,
result: await a()
}, c.close();
} catch (e) {
- p.innerHTML = Bs(e.message || "操作未完成", { variant: "error" }), Zc(f, !1);
+ p.innerHTML = zs(e.message || "操作未完成", { variant: "error" }), Xc(f, !1);
} finally {
n = !1;
}
}
}
- }, c.showModal(), zo(c.querySelector(".ui-geist-modal-body")), zo(u), $o("pop"), (o ? d : f).focus();
+ }, c.showModal(), Ro(c.querySelector(".ui-geist-modal-body")), Ro(u), Qo("pop"), (o ? d : f).focus();
});
}
// src/card-art/framing.ts
-var dl = () => window.devicePixelRatio || 1;
-function fl(e) {
+var ul = () => window.devicePixelRatio || 1;
+function dl(e) {
let t = e.parentElement;
if (!t || ([
"position",
@@ -13998,17 +13998,17 @@ function fl(e) {
delete e.dataset.faceFramed;
let n = new ResizeObserver(() => {
let r = t.getBoundingClientRect();
- r.width > 0 && r.height > 0 && (n.disconnect(), fl(e));
+ r.width > 0 && r.height > 0 && (n.disconnect(), dl(e));
});
n.observe(t);
return;
}
- let [r = NaN, i = NaN, a = NaN, o = NaN, s = NaN] = String(e.dataset.facebox).split(" ").map(Number), c = Ka(e.naturalWidth, e.naturalHeight, o, s);
+ let [r = NaN, i = NaN, a = NaN, o = NaN, s = NaN] = String(e.dataset.facebox).split(" ").map(Number), c = Ga(e.naturalWidth, e.naturalHeight, o, s);
if (!c) {
e.style.objectPosition = "50% 50%";
return;
}
- let l = Ra({
+ let l = La({
cx: r,
cy: i,
faceW: a * c,
@@ -14017,13 +14017,13 @@ function fl(e) {
}, {
w: n.width,
h: n.height
- }, dl());
+ }, ul());
if (!l) return;
let u = e.style;
u.position = "absolute", u.right = "auto", u.bottom = "auto", u.left = `${l.left}%`, u.top = `${l.top}%`, u.width = `${l.width}%`, u.height = `${l.height}%`, u.maxWidth = "none", u.maxHeight = "none";
}
-function pl(e, t) {
- let n = e.naturalWidth / e.naturalHeight, r = n ? t ?? vl(e) : 0;
+function fl(e, t) {
+ let n = e.naturalWidth / e.naturalHeight, r = n ? t ?? _l(e) : 0;
if (e.closest(".pic,[data-media-pic]")?.style.removeProperty("--cover-blur"), !n) return;
e.classList.remove("panel"), [
"--panel-aspect",
@@ -14035,58 +14035,58 @@ function pl(e, t) {
"--cover-y"
].forEach((t) => e.style.removeProperty(t));
let i = e.dataset.coverCode || new URL(e.currentSrc || e.src, location.href).searchParams.get("code") || "";
- e.dataset.frame = e.dataset.coverLayout === "still" || /^FC2(?:-PPV)?-/i.test(i) ? "still" : gl(e) ? "sleeve" : n >= 1.65 ? "still" : n > 1.2 ? "sleeve" : "front";
+ e.dataset.frame = e.dataset.coverLayout === "still" || /^FC2(?:-PPV)?-/i.test(i) ? "still" : hl(e) ? "sleeve" : n >= 1.65 ? "still" : n > 1.2 ? "sleeve" : "front";
let a = (t, n, r) => {
if (n == null || !(r > 0 && r < 1)) return;
let i = Math.min(1, Math.max(0, (n - r / 2) / (1 - r)));
e.style.setProperty(t, `${Math.round(i * 100)}%`);
};
- a("--cover-x", yl(e, "cx"), r / n), a("--cover-y", yl(e, "cy"), n / r), ml(e, r), e.dataset.frame !== "still" && (e.classList.contains("whole") || e.dataset.frame === "front") && Math.abs(n / r - 1) > .02 && hl(e);
+ a("--cover-x", vl(e, "cx"), r / n), a("--cover-y", vl(e, "cy"), n / r), pl(e, r), e.dataset.frame !== "still" && (e.classList.contains("whole") || e.dataset.frame === "front") && Math.abs(n / r - 1) > .02 && ml(e);
}
-function ml(e, t) {
+function pl(e, t) {
if (e.dataset.frame === "front" || e.dataset.coverLayout === "still") return;
let [n = NaN, r = NaN, i = NaN, a = NaN, o = NaN, s = NaN] = String(e.dataset.posterbox || "").split(" ").map(Number);
- if (!e.dataset.posterbox && e.dataset.frame === "sleeve" && (r = e.naturalWidth, i = e.naturalHeight, n = Math.round(r - (gl(e) ? io : ro) * i), a = 0, o = r, s = i), !Ka(e.naturalWidth, e.naturalHeight, r, i)) return;
- let c = (o - n) / (s - a), l = r / i, u = l >= 1.75 && l < 1.85 && Math.abs(c - .85) <= .02, d = ao({
+ if (!e.dataset.posterbox && e.dataset.frame === "sleeve" && (r = e.naturalWidth, i = e.naturalHeight, n = Math.round(r - (hl(e) ? ro : no) * i), a = 0, o = r, s = i), !Ga(e.naturalWidth, e.naturalHeight, r, i)) return;
+ let c = (o - n) / (s - a), l = r / i, u = l >= 1.75 && l < 1.85 && Math.abs(c - .85) <= .02, d = io({
x0: n,
y0: a,
x1: o,
y1: s,
px: [r, i]
- }, t, gl(e) || u);
- d && (e.style.setProperty("--panel-aspect", `${e.naturalWidth} / ${e.naturalHeight}`), e.classList.add("panel"), e.style.setProperty("--panel-clip", `${d.clip.top}% ${d.clip.right}% ${d.clip.bottom}% ${d.clip.left}%`), e.style.setProperty("--panel-left", `${d.left}%`), e.style.setProperty("--panel-top", `${d.top}%`), e.style.setProperty("--panel-height", `${d.height}%`), e.dataset.frame !== "still" && e.classList.contains("front") && Math.abs(c / t - 1) > .02 && hl(e));
+ }, t, hl(e) || u);
+ d && (e.style.setProperty("--panel-aspect", `${e.naturalWidth} / ${e.naturalHeight}`), e.classList.add("panel"), e.style.setProperty("--panel-clip", `${d.clip.top}% ${d.clip.right}% ${d.clip.bottom}% ${d.clip.left}%`), e.style.setProperty("--panel-left", `${d.left}%`), e.style.setProperty("--panel-top", `${d.top}%`), e.style.setProperty("--panel-height", `${d.height}%`), e.dataset.frame !== "still" && e.classList.contains("front") && Math.abs(c / t - 1) > .02 && ml(e));
}
-function hl(e) {
+function ml(e) {
let t = (e.dataset.thumbSrc || e.currentSrc || e.src).replace(/"/g, "%22");
e.closest(".pic,[data-media-pic]")?.style.setProperty("--cover-blur", `url("${t}")`);
}
-function gl(e) {
+function hl(e) {
let t = e.dataset.coverCode || new URL(e.currentSrc || e.src, location.href).searchParams.get("code") || "", n = e.naturalWidth / e.naturalHeight;
return !/^FC2(?:-PPV)?-/i.test(t) && (e.dataset.wideSleeve === "1" || /^(CWPBD|SMBD)-/i.test(t)) && n >= 1.75 && n < 1.85;
}
-function _l(e) {
+function gl(e) {
let t = /[?&]thumb=([12])(?=&|$)/.exec(e.src)?.[1];
if (!t || !e.naturalWidth) return;
let { width: n, height: r } = e.getBoundingClientRect();
- (getComputedStyle(e).objectFit === "contain" ? Math.min : Math.max)(n / e.naturalWidth, r / e.naturalHeight) * dl() > 1.01 && (e.dataset.thumbSrc ||= e.src, e.src = t === "2" ? e.src.replace(/([?&])thumb=2(?=&|$)/, "$1thumb=1") : e.src.replace(/[?&]thumb=1(?=&|$)/, ""));
+ (getComputedStyle(e).objectFit === "contain" ? Math.min : Math.max)(n / e.naturalWidth, r / e.naturalHeight) * ul() > 1.01 && (e.dataset.thumbSrc ||= e.src, e.src = t === "2" ? e.src.replace(/([?&])thumb=2(?=&|$)/, "$1thumb=1") : e.src.replace(/[?&]thumb=1(?=&|$)/, ""));
}
-function vl(e) {
+function _l(e) {
let t = (e.closest(".pic,[data-media-pic]")?.style.getPropertyValue("--card-ratio").trim() || getComputedStyle(e).getPropertyValue("--card-ratio").trim()).split("/").map(Number), n = t.length === 2 ? Number(t[0]) / Number(t[1]) : Number(t[0]);
return Number.isFinite(n) && n > 0 ? n : 16 / 9;
}
-function yl(e, t) {
+function vl(e, t) {
let n = parseFloat(e.dataset[t] ?? "");
return Number.isFinite(n) ? n : null;
}
-var bl = ".pic>img.poster,[data-media-art]>img,.ring>img,[data-tier-ring]>img,[data-person-ring]>img,[data-entity-portrait]>img,[data-hero-ring]>img", xl = /* @__PURE__ */ new WeakMap();
-function Sl(e) {
- let t = e.matches(bl) ? [e] : e.querySelectorAll(bl);
- for (let e of t) !e.complete && e.parentElement && (e.parentElement.classList.add("imgwait"), xl.set(e.parentElement, performance.now()), yc(e.parentElement));
+var yl = ".pic>img.poster,[data-media-art]>img,.ring>img,[data-tier-ring]>img,[data-person-ring]>img,[data-entity-portrait]>img,[data-hero-ring]>img", bl = /* @__PURE__ */ new WeakMap();
+function xl(e) {
+ let t = e.matches(yl) ? [e] : e.querySelectorAll(yl);
+ for (let e of t) !e.complete && e.parentElement && (e.parentElement.classList.add("imgwait"), bl.set(e.parentElement, performance.now()), vc(e.parentElement));
}
-function Cl(e) {
+function Sl(e) {
let t = e.parentElement;
if (!t?.classList.contains("imgwait")) return;
- if (bc(t), performance.now() - (xl.get(t) ?? NaN) < 180) {
+ if (yc(t), performance.now() - (bl.get(t) ?? NaN) < 180) {
t.classList.remove("imgwait");
return;
}
@@ -14096,90 +14096,90 @@ function Cl(e) {
};
t.addEventListener("transitionend", r), n = setTimeout(r, 1e3);
}
-function wl(e) {
+function Cl(e) {
let t = "img.cover,img[data-facebox]", n = e.matches(t) ? [e] : e.querySelectorAll(t);
for (let e of n) {
let t = e;
- t.complete && t.naturalWidth && (t.classList.contains("cover") ? pl(t) : (Tl(t), fl(t)));
+ t.complete && t.naturalWidth && (t.classList.contains("cover") ? fl(t) : (wl(t), dl(t)));
}
}
-function Tl(e) {
+function wl(e) {
let t = e.closest("[data-fit-native]");
if (!t || !e.naturalWidth) return;
- let n = t.dataset.fitNative === "mark" ? Ya(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight) : null;
+ let n = t.dataset.fitNative === "mark" ? Ja(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight) : null;
if (t.dataset.nativeClamp = String(!!n), n) {
t.dataset.nativeSmall = "false", t.style.setProperty("--markw", n.width + "px"), t.style.setProperty("--markh", n.height + "px"), t.style.setProperty("--markbg", "none");
return;
}
- let { small: r, width: i, height: a } = qa(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight, dl());
+ let { small: r, width: i, height: a } = Ka(e.naturalWidth, e.naturalHeight, t.clientWidth, t.clientHeight, ul());
t.dataset.nativeSmall = String(r), t.style.setProperty("--markw", r ? i + "px" : "100%"), t.style.setProperty("--markh", r ? a + "px" : "100%");
let o = (e.currentSrc || e.src).replace(/"/g, "%22");
t.style.setProperty("--markbg", r ? `url("${o}")` : "none");
}
-function El(e) {
+function Tl(e) {
(e || document).querySelectorAll("[data-fit-native] img").forEach((e) => {
- Tl(e), e.dataset.facebox && fl(e);
+ wl(e), e.dataset.facebox && dl(e);
});
}
-function Dl(e, t) {
- for (let n of so(e, t)) pl(n), _l(n);
+function El(e, t) {
+ for (let n of oo(e, t)) fl(n), gl(n);
}
-var Ol = !1;
-function kl() {
- Ol || (Ol = !0, document.addEventListener("load", (e) => {
+var Dl = !1;
+function Ol() {
+ Dl || (Dl = !0, document.addEventListener("load", (e) => {
let t = e.target;
- t instanceof HTMLImageElement && (Cl(t), Tl(t), t.classList.contains("cover") ? (pl(t), _l(t)) : t.dataset.facebox && fl(t));
+ t instanceof HTMLImageElement && (Sl(t), wl(t), t.classList.contains("cover") ? (fl(t), gl(t)) : t.dataset.facebox && dl(t));
}, !0), new MutationObserver((e) => {
- for (let t of e) for (let e of t.addedNodes) e.nodeType === Node.ELEMENT_NODE && (Sl(e), wl(e));
+ for (let t of e) for (let e of t.addedNodes) e.nodeType === Node.ELEMENT_NODE && (xl(e), Cl(e));
}).observe(document.body, {
childList: !0,
subtree: !0
}), document.addEventListener("error", (e) => {
let t = e.target;
- t instanceof HTMLImageElement && !t.dataset.fallbacks && Cl(t);
+ t instanceof HTMLImageElement && !t.dataset.fallbacks && Sl(t);
}, !0));
}
// src/card-art/hover.ts
-var Al = ".card,[data-media-card],[data-mix-card]", jl = {
+var kl = ".card,[data-media-card],[data-mix-card]", Al = {
selecting: () => !1,
censored: () => !1,
delaySeconds: () => 0
};
-function Ml(e) {
- jl = e;
+function jl(e) {
+ Al = e;
}
-var Nl = () => !!window.__scrolling;
-function Pl(e = document, t = null) {
- e && e.querySelectorAll && (e.querySelectorAll(Al).forEach((e) => {
+var Ml = () => !!window.__scrolling;
+function Nl(e = document, t = null) {
+ e && e.querySelectorAll && (e.querySelectorAll(kl).forEach((e) => {
e !== t && e._stopHover && e._stopHover();
}), e.querySelectorAll("video.hv").forEach((e) => {
- e.closest(Al) !== t && (e._hop && clearInterval(e._hop), e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ e.closest(kl) !== t && (e._hop && clearInterval(e._hop), e.pause(), e.removeAttribute("src"), e.load(), e.remove());
}), e.querySelectorAll("img.ui-hvframes").forEach((e) => {
- e.closest(Al) !== t && (e.removeAttribute("src"), e.remove());
+ e.closest(kl) !== t && (e.removeAttribute("src"), e.remove());
}));
}
-function Fl(e) {
- e._stopHover?.(), Pl(e);
+function Pl(e) {
+ e._stopHover?.(), Nl(e);
}
-function Il(e, t, n) {
+function Fl(e, t, n) {
n ? e.dataset[t] = "" : delete e.dataset[t];
}
-function Ll(e, t) {
+function Il(e, t) {
let n = e, r = e.querySelector("[data-media-pic]");
if (!r) return;
e.dataset.hoverMode = t.location === "local" ? "video" : "frames";
let i, a = () => {
- clearTimeout(i), jl.delaySeconds() && (Il(e, "previewing", !0), i = setTimeout(() => {
- jl.delaySeconds() && Il(e, "longhover", !0);
- }, jl.delaySeconds() * 1e3));
+ clearTimeout(i), Al.delaySeconds() && (Fl(e, "previewing", !0), i = setTimeout(() => {
+ Al.delaySeconds() && Fl(e, "longhover", !0);
+ }, Al.delaySeconds() * 1e3));
}, o = () => {
- clearTimeout(i), Il(e, "previewing", !1), Il(e, "longhover", !1);
+ clearTimeout(i), Fl(e, "previewing", !1), Fl(e, "longhover", !1);
};
if (t.location !== "local") {
if (!t.has_thumb) return;
let i, s = 4, c = null, l = !1;
e.addEventListener("mouseenter", () => {
- if (!(jl.selecting() || jl.censored())) {
+ if (!(Al.selecting() || Al.censored())) {
if (a(), !c) {
c = document.createElement("img"), c.className = "ui-hvframes", c.alt = "";
let e = c;
@@ -14206,9 +14206,9 @@ function Ll(e, t) {
}
let s, c = null;
e.addEventListener("mouseenter", () => {
- jl.selecting() || jl.censored() || Nl() || (s = setTimeout(() => {
- if (Nl() || jl.censored()) return;
- Pl(document, e);
+ Al.selecting() || Al.censored() || Ml() || (s = setTimeout(() => {
+ if (Ml() || Al.censored()) return;
+ Nl(document, e);
let n = document.createElement("video");
c = n, n.className = "hv", n.muted = !0, n.playsInline = !0, n.loop = !0, n.preload = "metadata", n.src = "/stream?id=" + t.id;
let i = [
@@ -14243,20 +14243,20 @@ function Ll(e, t) {
n._stopHover = l, e.addEventListener("mouseleave", l);
}
// src/core/tags.ts
-var Rl = (e) => e;
+var Ll = (e) => e;
// src/react/follow-feed/follow-helpers.ts
-function zl([e, t, , n, r]) {
- return n ? `<img src="/work-icon?work=${encodeURIComponent(e)}" width="128" height="128" alt="" loading="lazy"${xo(r)}${So(r)}>` : z($n(t, 2));
+function Rl([e, t, , n, r]) {
+ return n ? `<img src="/work-icon?work=${encodeURIComponent(e)}" width="128" height="128" alt="" loading="lazy"${bo(r)}${xo(r)}>` : z($n(t, 2));
}
-function Bl(e) {
+function zl(e) {
return {
...e,
- workMark: zl,
- tagLabel: Rl
+ workMark: Rl,
+ tagLabel: Ll
};
}
// src/sidebar.ts
-var Vl = [
+var Bl = [
"",
"follow",
"jav",
@@ -14265,7 +14265,7 @@ var Vl = [
"studios",
"flagged",
"manage"
-], Hl = [
+], Vl = [
"playlists",
"immerse",
"stats",
@@ -14274,12 +14274,12 @@ var Vl = [
"trash",
"follow-manage",
"quality"
-], Ul = /* @__PURE__ */ new Set([...Vl, ...Hl]), Wl = (e) => e === "ads" || e === "dupes" ? "data-cleanup" : e;
-function Gl(e) {
- let t = Array.isArray(e) ? e.filter((e) => typeof e == "string") : [], n = [...new Set(t.map(Wl))].filter((e) => Ul.has(e));
- return n.length ? n : [...Vl];
+], Hl = /* @__PURE__ */ new Set([...Bl, ...Vl]), Ul = (e) => e === "ads" || e === "dupes" ? "data-cleanup" : e;
+function Wl(e) {
+ let t = Array.isArray(e) ? e.filter((e) => typeof e == "string") : [], n = [...new Set(t.map(Ul))].filter((e) => Hl.has(e));
+ return n.length ? n : [...Bl];
}
-function Kl(e) {
+function Gl(e) {
return [
"/",
"/unseen",
@@ -14289,13 +14289,13 @@ function Kl(e) {
"/junk-files"
].includes(e) || /^\/assets\//.test(e) || /^\/(performers|studios|creators|series|agencies|tags)\/.+/.test(e);
}
-function ql(e) {
+function Kl(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) for (let e of new Set(n.tags || [])) t.set(e, (t.get(e) || 0) + 1);
return [...t].sort((e, t) => t[1] - e[1]).slice(0, 30);
}
// src/react/follow-detail/follow-detail-actions.ts
-function Jl(e, t) {
+function ql(e, t) {
return {
...t,
close: () => e.close(),
@@ -14308,40 +14308,40 @@ function Jl(e, t) {
...n,
tags: [...r]
};
- e.adoptView(i), e.rememberReturn(Aa(i)), e.close();
+ e.adoptView(i), e.rememberReturn(ka(i)), e.close();
},
- present: (t) => e.drawer({ tags: ql([{ tags: t.tags || [] }]) })
+ present: (t) => e.drawer({ tags: Kl([{ tags: t.tags || [] }]) })
};
}
// src/shell/index.ts
-var U, Yl, Xl = null, Zl = /* @__PURE__ */ new Set(), Ql = /* @__PURE__ */ new Set(), $l = !1, eu = null, tu = null, nu = "", ru = "/", iu = null, au = !1, ou = !1, su = null, cu = null, lu = null, uu = "/follow", du = "", fu = null, pu = !1, mu = 0, hu = 0, gu = !1, _u = Math.floor(Math.random() * 4294967295), vu = 0, yu = 0, bu = 0, xu = /* @__PURE__ */ new Set(), Su = 0;
+var U, Jl, Yl = null, Xl = /* @__PURE__ */ new Set(), Zl = /* @__PURE__ */ new Set(), Ql = !1, $l = null, eu = null, tu = "", nu = "/", ru = null, iu = !1, au = !1, ou = null, su = null, cu = null, lu = "/follow", uu = "", du = null, fu = !1, pu = 0, mu = 0, hu = !1, gu = Math.floor(Math.random() * 4294967295), _u = 0, vu = 0, yu = 0, bu = /* @__PURE__ */ new Set(), xu = 0;
function W(e) {
let t = (t) => Object.prototype.hasOwnProperty.call(e, t);
- t("state") && (U = e.state), t("barsContext") && (Yl = e.barsContext), t("detailReturnBarsContext") && (Xl = e.detailReturnBarsContext), t("selectMode") && ($l = e.selectMode), t("lastSelectedId") && (eu = e.lastSelectedId), t("followLastSelectedId") && (tu = e.followLastSelectedId), t("selectSurface") && (nu = e.selectSurface), t("detailReturnPath") && (ru = e.detailReturnPath), t("detailOriginAnchor") && (iu = e.detailOriginAnchor), t("detailOriginAbove") && (au = e.detailOriginAbove), t("detailReturnNeedsRestore") && (ou = e.detailReturnNeedsRestore), t("activeQueue") && (su = e.activeQueue), t("pendingQueueRoute") && (cu = e.pendingQueueRoute), t("presentedItem") && (lu = e.presentedItem), t("followDetailReturnPath") && (uu = e.followDetailReturnPath), t("configurationRequestedSection") && (du = e.configurationRequestedSection), t("pageOpens") && (mu = e.pageOpens), t("queueOpens") && (hu = e.queueOpens), t("entityJavLayout") && (gu = e.entityJavLayout), t("followDiscoverySeed") && (_u = e.followDiscoverySeed), t("followRevision") && (vu = e.followRevision), t("followScrollY") && (yu = e.followScrollY), t("playlistsRevision") && (bu = e.playlistsRevision), t("runtimeConfigurable") && (fu = e.runtimeConfigurable), t("cameFromSetup") && (pu = e.cameFromSetup), Cu();
+ t("state") && (U = e.state), t("barsContext") && (Jl = e.barsContext), t("detailReturnBarsContext") && (Yl = e.detailReturnBarsContext), t("selectMode") && (Ql = e.selectMode), t("lastSelectedId") && ($l = e.lastSelectedId), t("followLastSelectedId") && (eu = e.followLastSelectedId), t("selectSurface") && (tu = e.selectSurface), t("detailReturnPath") && (nu = e.detailReturnPath), t("detailOriginAnchor") && (ru = e.detailOriginAnchor), t("detailOriginAbove") && (iu = e.detailOriginAbove), t("detailReturnNeedsRestore") && (au = e.detailReturnNeedsRestore), t("activeQueue") && (ou = e.activeQueue), t("pendingQueueRoute") && (su = e.pendingQueueRoute), t("presentedItem") && (cu = e.presentedItem), t("followDetailReturnPath") && (lu = e.followDetailReturnPath), t("configurationRequestedSection") && (uu = e.configurationRequestedSection), t("pageOpens") && (pu = e.pageOpens), t("queueOpens") && (mu = e.queueOpens), t("entityJavLayout") && (hu = e.entityJavLayout), t("followDiscoverySeed") && (gu = e.followDiscoverySeed), t("followRevision") && (_u = e.followRevision), t("followScrollY") && (vu = e.followScrollY), t("playlistsRevision") && (yu = e.playlistsRevision), t("runtimeConfigurable") && (du = e.runtimeConfigurable), t("cameFromSetup") && (fu = e.cameFromSetup), Su();
}
-function Cu() {
- Su += 1;
- for (let e of [...xu]) e();
+function Su() {
+ xu += 1;
+ for (let e of [...bu]) e();
}
-function wu(e) {
- return xu.add(e), () => {
- xu.delete(e);
+function Cu(e) {
+ return bu.add(e), () => {
+ bu.delete(e);
};
}
// node_modules/react-router/dist/production/lib/router/url.js
-var Tu = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, Eu = /^[\\/]{2}/;
-function Du(e, t) {
+var wu = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, Tu = /^[\\/]{2}/;
+function Eu(e, t) {
return t + e.replace(/\\/g, "/");
}
// node_modules/react-router/dist/production/lib/router/history.js
-var Ou = "popstate";
-function ku(e) {
+var Du = "popstate";
+function Ou(e) {
return typeof e == "object" && !!e && "pathname" in e && "search" in e && "hash" in e && "state" in e && "key" in e;
}
-function Au(e = {}) {
+function ku(e = {}) {
function t(e, t) {
let n = t.state?.masked, { pathname: r, search: i, hash: a } = n || e.location;
- return Fu("", {
+ return Pu("", {
pathname: r,
search: i,
hash: a
@@ -14352,14 +14352,14 @@ function Au(e = {}) {
} : void 0);
}
function n(e, t) {
- return typeof t == "string" ? t : Iu(t);
+ return typeof t == "string" ? t : Fu(t);
}
- return Ru(t, n, null, e);
+ return Lu(t, n, null, e);
}
-function ju(e, t) {
+function Au(e, t) {
if (e === !1 || e == null) throw Error(t);
}
-function Mu(e, t) {
+function ju(e, t) {
if (!e) {
typeof console < "u" && console.warn(t);
try {
@@ -14367,10 +14367,10 @@ function Mu(e, t) {
} catch {}
}
}
-function Nu() {
+function Mu() {
return Math.random().toString(36).substring(2, 10);
}
-function Pu(e, t) {
+function Nu(e, t) {
return {
usr: e.state,
key: e.key,
@@ -14382,21 +14382,21 @@ function Pu(e, t) {
} : void 0
};
}
-function Fu(e, t, n = null, r, i) {
+function Pu(e, t, n = null, r, i) {
return {
pathname: typeof e == "string" ? e : e.pathname,
search: "",
hash: "",
- ...typeof t == "string" ? Lu(t) : t,
+ ...typeof t == "string" ? Iu(t) : t,
state: n,
- key: t && t.key || r || Nu(),
+ key: t && t.key || r || Mu(),
mask: i
};
}
-function Iu({ pathname: e = "/", search: t = "", hash: n = "" }) {
+function Fu({ pathname: e = "/", search: t = "", hash: n = "" }) {
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
}
-function Lu(e) {
+function Iu(e) {
let t = {};
if (e) {
let n = e.indexOf("#");
@@ -14406,7 +14406,7 @@ function Lu(e) {
}
return t;
}
-function Ru(e, t, n, r = {}) {
+function Lu(e, t, n, r = {}) {
let { window: i = document.defaultView, v5Compat: a = !1 } = r, o = i.history, s = "POP", c = null, l = u();
l ?? (l = 0, o.replaceState({
...o.state,
@@ -14426,9 +14426,9 @@ function Ru(e, t, n, r = {}) {
}
function f(e, t) {
s = "PUSH";
- let r = ku(e) ? e : Fu(h.location, e, t);
+ let r = Ou(e) ? e : Pu(h.location, e, t);
n && n(r, e), l = u() + 1;
- let d = Pu(r, l), f = h.createHref(r.mask || r);
+ let d = Nu(r, l), f = h.createHref(r.mask || r);
try {
o.pushState(d, "", f);
} catch (e) {
@@ -14443,9 +14443,9 @@ function Ru(e, t, n, r = {}) {
}
function p(e, t) {
s = "REPLACE";
- let r = ku(e) ? e : Fu(h.location, e, t);
+ let r = Ou(e) ? e : Pu(h.location, e, t);
n && n(r, e), l = u();
- let i = Pu(r, l), d = h.createHref(r.mask || r);
+ let i = Nu(r, l), d = h.createHref(r.mask || r);
o.replaceState(i, "", d), a && c && c({
action: s,
location: h.location,
@@ -14453,7 +14453,7 @@ function Ru(e, t, n, r = {}) {
});
}
function m(e) {
- return zu(i, e);
+ return Ru(i, e);
}
let h = {
get action() {
@@ -14464,8 +14464,8 @@ function Ru(e, t, n, r = {}) {
},
listen(e) {
if (c) throw Error("A history only accepts one active listener");
- return i.addEventListener(Ou, d), c = e, () => {
- i.removeEventListener(Ou, d), c = null;
+ return i.addEventListener(Du, d), c = e, () => {
+ i.removeEventListener(Du, d), c = null;
};
},
createHref(e) {
@@ -14488,28 +14488,28 @@ function Ru(e, t, n, r = {}) {
};
return h;
}
-function zu(e, t, n = !1) {
+function Ru(e, t, n = !1) {
let r = "http://localhost";
- e && (r = e.location.origin === "null" ? e.location.href : e.location.origin), ju(r, "No window.location.(origin|href) available to create URL");
- let i = typeof t == "string" ? t : Iu(t);
- return i = i.replace(/ $/, "%20"), !n && Eu.test(i) && (i = r + i), new URL(i, r);
+ e && (r = e.location.origin === "null" ? e.location.href : e.location.origin), Au(r, "No window.location.(origin|href) available to create URL");
+ let i = typeof t == "string" ? t : Fu(t);
+ return i = i.replace(/ $/, "%20"), !n && Tu.test(i) && (i = r + i), new URL(i, r);
}
// node_modules/react-router/dist/production/lib/router/utils.js
-function Bu(e, t, n = "/") {
- return Vu(e, t, n, !1);
+function zu(e, t, n = "/") {
+ return Bu(e, t, n, !1);
}
-function Vu(e, t, n, r, i) {
- let a = cd((typeof t == "string" ? Lu(t) : t).pathname || "/", n);
+function Bu(e, t, n, r, i) {
+ let a = sd((typeof t == "string" ? Iu(t) : t).pathname || "/", n);
if (a == null) return null;
- let o = i ?? Hu(e), s = null, c = sd(a);
- for (let e = 0; s == null && e < o.length; ++e) s = rd(o[e], c, r);
+ let o = i ?? Vu(e), s = null, c = od(a);
+ for (let e = 0; s == null && e < o.length; ++e) s = nd(o[e], c, r);
return s;
}
-function Hu(e) {
- let t = Uu(e);
- return Gu(t), t;
+function Vu(e) {
+ let t = Hu(e);
+ return Wu(t), t;
}
-function Uu(e, t = [], n = [], r = "", i = !1) {
+function Hu(e, t = [], n = [], r = "", i = !1) {
let a = (e, a, o = i, s) => {
let c = {
relativePath: s === void 0 ? e.path || "" : s,
@@ -14519,14 +14519,14 @@ function Uu(e, t = [], n = [], r = "", i = !1) {
};
if (c.relativePath.startsWith("/")) {
if (!c.relativePath.startsWith(r) && o) return;
- ju(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
+ Au(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
}
- let l = gd([r, c.relativePath]), u = n.concat(c);
- e.children && e.children.length > 0 && (ju(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), Uu(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
+ let l = hd([r, c.relativePath]), u = n.concat(c);
+ e.children && e.children.length > 0 && (Au(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), Hu(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
path: l,
- score: td(l, e.index),
+ score: ed(l, e.index),
routesMeta: u.map((e, t) => {
- let [n, r] = od(e.relativePath, e.caseSensitive, t === u.length - 1);
+ let [n, r] = ad(e.relativePath, e.caseSensitive, t === u.length - 1);
return {
...e,
matcher: n,
@@ -14537,68 +14537,68 @@ function Uu(e, t = [], n = [], r = "", i = !1) {
};
return e.forEach((e, t) => {
if (e.path === "" || !e.path?.includes("?")) a(e, t);
- else for (let n of Wu(e.path)) a(e, t, !0, n);
+ else for (let n of Uu(e.path)) a(e, t, !0, n);
}), t;
}
-function Wu(e) {
+function Uu(e) {
let t = e.split("/");
if (t.length === 0) return [];
let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
if (r.length === 0) return i ? [a, ""] : [a];
- let o = Wu(r.join("/")), s = [];
+ let o = Uu(r.join("/")), s = [];
return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
}
-function Gu(e) {
- e.sort((e, t) => e.score === t.score ? nd(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
+function Wu(e) {
+ e.sort((e, t) => e.score === t.score ? td(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
}
-var Ku = /^:[\w-]+$/, qu = /^:[\w-]+/, Ju = 3.5, Yu = 3, Xu = 2, Zu = 1, Qu = 10, $u = -2, ed = (e) => e === "*";
-function td(e, t) {
+var Gu = /^:[\w-]+$/, Ku = /^:[\w-]+/, qu = 3.5, Ju = 3, Yu = 2, Xu = 1, Zu = 10, Qu = -2, $u = (e) => e === "*";
+function ed(e, t) {
let n = e.split("/"), r = n.length;
- return n.some(ed) && (r += $u), t && (r += Xu), n.filter((e) => !ed(e)).reduce((e, t) => e + (Ku.test(t) ? Yu : qu.test(t) ? Ju : t === "" ? Zu : Qu), r);
+ return n.some($u) && (r += Qu), t && (r += Yu), n.filter((e) => !$u(e)).reduce((e, t) => e + (Gu.test(t) ? Ju : Ku.test(t) ? qu : t === "" ? Xu : Zu), r);
}
-function nd(e, t) {
+function td(e, t) {
return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
}
-function rd(e, t, n = !1) {
+function nd(e, t, n = !1) {
let { routesMeta: r } = e, i = {}, a = "/", o = [];
for (let e = 0; e < r.length; ++e) {
let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: c
- }, d = s.matcher && s.compiledParams ? ad(u, l, s.matcher, s.compiledParams) : id(u, l), f = s.route;
- if (!d && c && n && !r[r.length - 1].route.index && (d = id({
+ }, d = s.matcher && s.compiledParams ? id(u, l, s.matcher, s.compiledParams) : rd(u, l), f = s.route;
+ if (!d && c && n && !r[r.length - 1].route.index && (d = rd({
path: s.relativePath,
caseSensitive: s.caseSensitive,
end: !1
}, l)), !d) return null;
Object.assign(i, d.params), o.push({
params: i,
- pathname: gd([a, d.pathname]),
- pathnameBase: vd(gd([a, d.pathnameBase])),
+ pathname: hd([a, d.pathname]),
+ pathnameBase: _d(hd([a, d.pathnameBase])),
route: f
- }), d.pathnameBase !== "/" && (a = gd([a, d.pathnameBase]));
+ }), d.pathnameBase !== "/" && (a = hd([a, d.pathnameBase]));
}
return o;
}
-function id(e, t) {
+function rd(e, t) {
typeof e == "string" && (e = {
path: e,
caseSensitive: !1,
end: !0
});
- let [n, r] = od(e.path, e.caseSensitive, e.end);
- return ad(e, t, n, r);
+ let [n, r] = ad(e.path, e.caseSensitive, e.end);
+ return id(e, t, n, r);
}
-function ad(e, t, n, r) {
+function id(e, t, n, r) {
let i = t.match(n);
if (!i) return null;
- let a = i[0], o = _d(a, 1), s = i.slice(1);
+ let a = i[0], o = gd(a, 1), s = i.slice(1);
return {
params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
if (t === "*") {
let e = s[r] || "";
- o = _d(a.slice(0, a.length - e.length), 1);
+ o = gd(a.slice(0, a.length - e.length), 1);
}
let i = s[r];
return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
@@ -14608,8 +14608,8 @@ function ad(e, t, n, r) {
pattern: e
};
}
-function od(e, t = !1, n = !0) {
- Mu(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
+function ad(e, t = !1, n = !0) {
+ ju(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
if (r.push({
paramName: t,
@@ -14622,46 +14622,46 @@ function od(e, t = !1, n = !0) {
}).replace(/\/((?:[^/?()[\]*^\\]|\\.)+)\?(?=\/|$|\()/g, "(?:/$1)?");
return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
}
-function sd(e) {
+function od(e) {
try {
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
} catch (t) {
- return Mu(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
+ return ju(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
}
}
-function cd(e, t) {
+function sd(e, t) {
if (t === "/") return e;
if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
return r && r !== "/" ? null : e.slice(n) || "/";
}
-function ld(e, t = "/") {
- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? Lu(e) : e, a;
- return n ? (n = hd(n), a = n.startsWith("/") || n.startsWith("\\") ? ud(n.substring(1), "/") : ud(n, t)) : a = t, {
+function cd(e, t = "/") {
+ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? Iu(e) : e, a;
+ return n ? (n = md(n), a = n.startsWith("/") || n.startsWith("\\") ? ld(n.substring(1), "/") : ld(n, t)) : a = t, {
pathname: a,
- search: yd(r),
- hash: bd(i)
+ search: vd(r),
+ hash: yd(i)
};
}
-function ud(e, t) {
- let n = _d(t).split("/");
+function ld(e, t) {
+ let n = gd(t).split("/");
return e.split("/").forEach((e) => {
e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
}), n.length > 1 ? n.join("/") : "/";
}
-function dd(e, t, n, r) {
+function ud(e, t, n, r) {
return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
}
-function fd(e) {
+function dd(e) {
return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
}
-function pd(e) {
- let t = fd(e);
+function fd(e) {
+ let t = dd(e);
return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
}
-function md(e, t, n, r = !1) {
+function pd(e, t, n, r = !1) {
let i;
- typeof e == "string" ? i = Lu(e) : (i = { ...e }, ju(!i.pathname || !i.pathname.includes("?"), dd("?", "pathname", "search", i)), ju(!i.pathname || !i.pathname.includes("#"), dd("#", "pathname", "hash", i)), ju(!i.search || !i.search.includes("#"), dd("#", "search", "hash", i)));
+ typeof e == "string" ? i = Iu(e) : (i = { ...e }, Au(!i.pathname || !i.pathname.includes("?"), ud("?", "pathname", "search", i)), Au(!i.pathname || !i.pathname.includes("#"), ud("#", "pathname", "hash", i)), Au(!i.search || !i.search.includes("#"), ud("#", "search", "hash", i)));
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
if (o == null) s = n;
else {
@@ -14673,16 +14673,16 @@ function md(e, t, n, r = !1) {
}
s = e >= 0 ? t[e] : "/";
}
- let c = ld(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
+ let c = cd(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
}
-var hd = (e) => e.replace(/[\\/]{2,}/g, "/"), gd = (e) => hd(e.join("/"));
-function _d(e, t = 0) {
+var md = (e) => e.replace(/[\\/]{2,}/g, "/"), hd = (e) => md(e.join("/"));
+function gd(e, t = 0) {
let n = e.length;
for (; n > t && e.charCodeAt(n - 1) === 47;) n--;
return n === e.length ? e : e.slice(0, n);
}
-var vd = (e) => _d(e).replace(/^\/*/, "/"), yd = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, bd = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, xd = class {
+var _d = (e) => gd(e).replace(/^\/*/, "/"), vd = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, yd = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, bd = class {
status;
statusText;
data;
@@ -14692,26 +14692,26 @@ var vd = (e) => _d(e).replace(/^\/*/, "/"), yd = (e) => !e || e === "?" ? "" : e
this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
}
};
-function Sd(e) {
+function xd(e) {
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
}
-function Cd(e) {
- return gd(e.map((e) => e.route.path).filter(Boolean)) || "/";
+function Sd(e) {
+ return hd(e.map((e) => e.route.path).filter(Boolean)) || "/";
}
-var wd = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
-function Td(e, t) {
+var Cd = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
+function wd(e, t) {
let n = e;
- if (typeof n != "string" || !Tu.test(n)) return {
+ if (typeof n != "string" || !wu.test(n)) return {
absoluteURL: void 0,
isExternal: !1,
to: n
};
let r = n, i = !1;
- if (wd) try {
- let e = new URL(window.location.href), r = Eu.test(n) ? new URL(Du(n, e.protocol)) : new URL(n), a = cd(r.pathname, t);
+ if (Cd) try {
+ let e = new URL(window.location.href), r = Tu.test(n) ? new URL(Eu(n, e.protocol)) : new URL(n), a = sd(r.pathname, t);
r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
} catch {
- Mu(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
+ ju(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
}
return {
absoluteURL: r,
@@ -14720,44 +14720,44 @@ function Td(e, t) {
};
}
// node_modules/react-router/dist/production/lib/router/navigation.js
-var Ed = new URL("http://localhost");
-function Dd(e) {
+var Td = new URL("http://localhost");
+function Ed(e) {
if (e.createURL) return e.createURL("/");
try {
- return new URL(e.createHref("/"), Ed);
+ return new URL(e.createHref("/"), Td);
} catch {
- return Ed;
+ return Td;
}
}
-function Od(e, t) {
+function Dd(e, t) {
return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
}
-function kd(e, t) {
+function Od(e, t) {
if (e.startsWith("//")) return !0;
let n = t.protocol.toLowerCase();
return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;
}
-function Ad(e, t, n, r) {
+function kd(e, t, n, r) {
let i = null;
try {
i = e == null ? null : new URL(e, n);
} catch {}
- let a = new URL(t, n), o = i != null && !Od(i, n), s = !Od(a, n);
+ let a = new URL(t, n), o = i != null && !Dd(i, n), s = !Dd(a, n);
if (r === "reject") {
if (o || s) throw Error("External navigation is not allowed");
- } else if (s && (i == null || !kd(e, i) || !Od(i, a))) throw Error("External navigation is not allowed");
+ } else if (s && (i == null || !Od(e, i) || !Dd(i, a))) throw Error("External navigation is not allowed");
}
// node_modules/react-router/dist/production/lib/router/router.js
-var jd = [
+var Ad = [
"POST",
"PUT",
"PATCH",
"DELETE"
];
+new Set(Ad);
+var jd = ["GET", ...Ad];
new Set(jd);
-var Md = ["GET", ...jd];
-new Set(Md);
-var Nd = [
+var Md = [
"about:",
"blob:",
"chrome:",
@@ -14769,82 +14769,82 @@ var Nd = [
"filesystem:",
"javascript:"
];
-function Pd(e) {
+function Nd(e) {
try {
- return Nd.includes(new URL(e).protocol);
+ return Md.includes(new URL(e).protocol);
} catch {
return !1;
}
}
// node_modules/react-router/dist/production/lib/context.js
+var Pd = F.createContext(null);
+Pd.displayName = "DataRouter";
var Fd = F.createContext(null);
-Fd.displayName = "DataRouter";
+Fd.displayName = "DataRouterState";
var Id = F.createContext(null);
-Id.displayName = "DataRouterState";
+Id.displayName = "DataRouterData";
var Ld = F.createContext(null);
-Ld.displayName = "DataRouterData";
-var Rd = F.createContext(null);
-Rd.displayName = "DataRouterNavigation";
-var zd = F.createContext(!1), Bd = F.createContext({ isTransitioning: !1 });
-Bd.displayName = "ViewTransition";
+Ld.displayName = "DataRouterNavigation";
+var Rd = F.createContext(!1), zd = F.createContext({ isTransitioning: !1 });
+zd.displayName = "ViewTransition";
+var Bd = F.createContext(null);
+Bd.displayName = "Fetchers";
var Vd = F.createContext(null);
-Vd.displayName = "Fetchers";
+Vd.displayName = "Await";
var Hd = F.createContext(null);
-Hd.displayName = "Await";
+Hd.displayName = "Navigation";
var Ud = F.createContext(null);
-Ud.displayName = "Navigation";
-var Wd = F.createContext(null);
-Wd.displayName = "Location";
-var Gd = F.createContext({
+Ud.displayName = "Location";
+var Wd = F.createContext({
outlet: null,
matches: [],
isDataRoute: !1
});
-Gd.displayName = "Route";
-var Kd = F.createContext(!1);
-Kd.displayName = "IsDataRoute";
-var qd = F.createContext(void 0);
-qd.displayName = "RouteId";
-var Jd = F.createContext(null);
-Jd.displayName = "RouteError";
+Wd.displayName = "Route";
+var Gd = F.createContext(!1);
+Gd.displayName = "IsDataRoute";
+var Kd = F.createContext(void 0);
+Kd.displayName = "RouteId";
+var qd = F.createContext(null);
+qd.displayName = "RouteError";
// node_modules/react-router/dist/production/lib/errors.js
-var Yd = "REACT_ROUTER_ERROR", Xd = "REDIRECT", Zd = "ROUTE_ERROR_RESPONSE";
-function Qd(e) {
- if (e.startsWith(`${Yd}:${Xd}:{`)) try {
+var Jd = "REACT_ROUTER_ERROR", Yd = "REDIRECT", Xd = "ROUTE_ERROR_RESPONSE";
+function Zd(e) {
+ if (e.startsWith(`${Jd}:${Yd}:{`)) try {
let t = JSON.parse(e.slice(28));
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
} catch {}
}
-function $d(e) {
- if (e.startsWith(`${Yd}:${Zd}:{`)) try {
+function Qd(e) {
+ if (e.startsWith(`${Jd}:${Xd}:{`)) try {
let t = JSON.parse(e.slice(40));
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new xd(t.status, t.statusText, t.data);
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new bd(t.status, t.statusText, t.data);
} catch {}
}
// node_modules/react-router/dist/production/lib/hooks.js
+function $d() {
+ return F.useContext(Ud) != null;
+}
function ef() {
- return F.useContext(Wd) != null;
+ return Au($d(), "useLocation() may be used only in the context of a <Router> component."), F.useContext(Ud).location;
}
-function tf() {
- return ju(ef(), "useLocation() may be used only in the context of a <Router> component."), F.useContext(Wd).location;
+var tf = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
+function nf() {
+ return F.useContext(Gd) ? yf() : rf();
}
-var nf = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
function rf() {
- return F.useContext(Kd) ? bf() : af();
-}
-function af() {
- ju(ef(), "useNavigate() may be used only in the context of a <Router> component.");
- let e = F.useContext(Fd), { basename: t, navigator: n } = F.useContext(Ud), { matches: r } = F.useContext(Gd), { pathname: i } = tf(), a = JSON.stringify(pd(r)), o = F.useRef(!1);
+ Au($d(), "useNavigate() may be used only in the context of a <Router> component.");
+ let e = F.useContext(Pd), { basename: t, navigator: n } = F.useContext(Hd), { matches: r } = F.useContext(Wd), { pathname: i } = ef(), a = JSON.stringify(fd(r)), o = F.useRef(!1);
return F.useLayoutEffect(() => {
o.current = !0;
}), F.useCallback((r, s = {}) => {
- if (Mu(o.current, nf), !o.current) return;
+ if (ju(o.current, tf), !o.current) return;
if (typeof r == "number") {
n.go(r);
return;
}
- let c = md(r, JSON.parse(a), i, s.relative === "path");
- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : gd([t, c.pathname])), Ad(typeof r == "string" ? r : Iu(r), n.createHref(c), Dd(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
+ let c = pd(r, JSON.parse(a), i, s.relative === "path");
+ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : hd([t, c.pathname])), kd(typeof r == "string" ? r : Fu(r), n.createHref(c), Ed(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
}, [
t,
n,
@@ -14854,19 +14854,19 @@ function af() {
]);
}
F.createContext(null);
-function of(e, t) {
- return sf(e, t);
+function af(e, t) {
+ return of(e, t);
}
-function sf(e, t, n) {
- ju(ef(), "useRoutes() may be used only in the context of a <Router> component.");
- let { navigator: r } = F.useContext(Ud), { matches: i } = F.useContext(Gd), a = i[i.length - 1], o = a ? a.params : {};
+function of(e, t, n) {
+ Au($d(), "useRoutes() may be used only in the context of a <Router> component.");
+ let { navigator: r } = F.useContext(Hd), { matches: i } = F.useContext(Wd), a = i[i.length - 1], o = a ? a.params : {};
a && a.pathname;
let s = a ? a.pathnameBase : "/";
a && a.route;
- let c = tf(), l;
+ let c = ef(), l;
if (t) {
- let e = typeof t == "string" ? Lu(t) : t;
- ju(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;
+ let e = typeof t == "string" ? Iu(t) : t;
+ Au(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;
} else l = c;
let u = l.pathname || "/", d = u;
if (s !== "/") {
@@ -14874,13 +14874,13 @@ function sf(e, t, n) {
d = "/" + u.replace(/^\//, "").split("/").slice(e.length).join("/");
}
let f;
- f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : Bu(e, { pathname: d });
- let p = mf(f && f.map((e) => Object.assign({}, e, {
+ f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : zu(e, { pathname: d });
+ let p = pf(f && f.map((e) => Object.assign({}, e, {
params: Object.assign({}, o, e.params),
- pathname: gd([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
- pathnameBase: e.pathnameBase === "/" ? s : gd([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
+ pathname: hd([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
+ pathnameBase: e.pathnameBase === "/" ? s : hd([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
})), i, n);
- return t && p ? /* @__PURE__ */ F.createElement(Wd.Provider, { value: {
+ return t && p ? /* @__PURE__ */ F.createElement(Ud.Provider, { value: {
location: {
pathname: "/",
search: "",
@@ -14893,14 +14893,14 @@ function sf(e, t, n) {
navigationType: "POP"
} }, p) : p;
}
-function cf() {
- let e = yf(), t = Sd(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
+function sf() {
+ let e = vf(), t = xd(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null;
return /* @__PURE__ */ F.createElement(F.Fragment, null, /* @__PURE__ */ F.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ F.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ F.createElement("pre", { style: {
padding: "0.5rem",
backgroundColor: "rgba(200,200,200, 0.5)"
} }, n) : null, null);
}
-var lf = /* @__PURE__ */ F.createElement(cf, null), uf = class extends F.Component {
+var cf = /* @__PURE__ */ F.createElement(sf, null), lf = class extends F.Component {
constructor(e) {
super(e), this.state = {
location: e.location,
@@ -14908,7 +14908,7 @@ var lf = /* @__PURE__ */ F.createElement(cf, null), uf = class extends F.Compone
error: e.error
};
}
- static contextType = zd;
+ static contextType = Rd;
static getDerivedStateFromError(e) {
return { error: e };
}
@@ -14929,30 +14929,30 @@ var lf = /* @__PURE__ */ F.createElement(cf, null), uf = class extends F.Compone
render() {
let e = this.state.error;
if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
- let t = $d(e.digest);
+ let t = Qd(e.digest);
t && (e = t);
}
- let t = e === void 0 ? this.props.children : /* @__PURE__ */ F.createElement(Gd.Provider, { value: this.props.routeContext }, /* @__PURE__ */ F.createElement(Kd.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ F.createElement(qd.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ F.createElement(Jd.Provider, {
+ let t = e === void 0 ? this.props.children : /* @__PURE__ */ F.createElement(Wd.Provider, { value: this.props.routeContext }, /* @__PURE__ */ F.createElement(Gd.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ F.createElement(Kd.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ F.createElement(qd.Provider, {
value: e,
children: this.props.component
}))));
- return this.context ? /* @__PURE__ */ F.createElement(ff, { error: e }, t) : t;
+ return this.context ? /* @__PURE__ */ F.createElement(df, { error: e }, t) : t;
}
-}, df = /* @__PURE__ */ new WeakMap();
-function ff({ children: e, error: t }) {
- let { basename: n, navigator: r } = F.useContext(Ud);
+}, uf = /* @__PURE__ */ new WeakMap();
+function df({ children: e, error: t }) {
+ let { basename: n, navigator: r } = F.useContext(Hd);
if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
- let e = Qd(t.digest);
+ let e = Zd(t.digest);
if (e) {
- let i = df.get(t);
+ let i = uf.get(t);
if (i) throw i;
- let a = Td(e.location, n), o = a.absoluteURL || a.to;
- if (Ad(e.location, o, Dd(r), "allow-explicit"), Pd(o)) throw Error("Invalid redirect location");
- if (wd && !df.get(t)) {
+ let a = wd(e.location, n), o = a.absoluteURL || a.to;
+ if (kd(e.location, o, Ed(r), "allow-explicit"), Nd(o)) throw Error("Invalid redirect location");
+ if (Cd && !uf.get(t)) {
if (a.isExternal || e.reloadDocument) window.location.href = o;
else {
let n = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: e.replace }));
- throw df.set(t, n), n;
+ throw uf.set(t, n), n;
}
}
return /* @__PURE__ */ F.createElement("meta", {
@@ -14963,11 +14963,11 @@ function ff({ children: e, error: t }) {
}
return e;
}
-function pf({ routeContext: e, match: t, children: n }) {
- let r = F.useContext(Fd);
- return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ F.createElement(Gd.Provider, { value: e }, /* @__PURE__ */ F.createElement(Kd.Provider, { value: e.isDataRoute }, /* @__PURE__ */ F.createElement(qd.Provider, { value: t.route.id }, n)));
+function ff({ routeContext: e, match: t, children: n }) {
+ let r = F.useContext(Pd);
+ return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ F.createElement(Wd.Provider, { value: e }, /* @__PURE__ */ F.createElement(Gd.Provider, { value: e.isDataRoute }, /* @__PURE__ */ F.createElement(Kd.Provider, { value: t.route.id }, n)));
}
-function mf(e, t = [], n) {
+function pf(e, t = [], n) {
let r = n?.state;
if (e == null) {
if (!r) return null;
@@ -14978,7 +14978,7 @@ function mf(e, t = [], n) {
let i = e, a = r?.errors;
if (a != null) {
let e = i.findIndex((e) => e.route.id && a?.[e.route.id] !== void 0);
- ju(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
+ Au(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
}
let o = !1, s = -1;
if (n && r) {
@@ -14998,16 +14998,16 @@ function mf(e, t = [], n) {
c(e, {
location: r.location,
params: r.matches?.[0]?.params ?? {},
- pattern: Cd(r.matches),
+ pattern: Sd(r.matches),
errorInfo: t
});
} : void 0;
return i.reduceRight((e, n, c) => {
let u, d = !1, f = null, p = null;
- r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || lf, o && (s < 0 && c === 0 ? (Sf("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
+ r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || cf, o && (s < 0 && c === 0 ? (xf("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
let m = t.concat(i.slice(0, c + 1)), h = () => {
let t;
- return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ F.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ F.createElement(pf, {
+ return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ F.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ F.createElement(ff, {
match: n,
routeContext: {
outlet: e,
@@ -15017,7 +15017,7 @@ function mf(e, t = [], n) {
children: t
});
};
- return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ F.createElement(uf, {
+ return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ F.createElement(lf, {
location: r.location,
revalidation: r.revalidation,
component: f,
@@ -15032,50 +15032,50 @@ function mf(e, t = [], n) {
}) : h();
}, null);
}
-function hf(e) {
+function mf(e) {
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
}
+function hf(e) {
+ let t = F.useContext(Pd);
+ return Au(t, mf(e)), t;
+}
function gf(e) {
- let t = F.useContext(Fd);
- return ju(t, hf(e)), t;
+ let t = F.useContext(Id);
+ return Au(t, mf(e)), t;
}
function _f(e) {
- let t = F.useContext(Ld);
- return ju(t, hf(e)), t;
+ let t = F.useContext(Kd);
+ return Au(t, `${e} can only be used on routes that contain a unique "id"`), t;
}
-function vf(e) {
- let t = F.useContext(qd);
- return ju(t, `${e} can only be used on routes that contain a unique "id"`), t;
-}
-function yf() {
- let e = F.useContext(Jd), t = _f("useRouteError"), n = vf("useRouteError");
+function vf() {
+ let e = F.useContext(qd), t = gf("useRouteError"), n = _f("useRouteError");
return e === void 0 ? t.errors?.[n] : e;
}
-function bf() {
- let { router: e } = gf("useNavigate"), t = vf("useNavigate"), n = F.useRef(!1);
+function yf() {
+ let { router: e } = hf("useNavigate"), t = _f("useNavigate"), n = F.useRef(!1);
return F.useLayoutEffect(() => {
n.current = !0;
}), F.useCallback(async (r, i = {}) => {
- Mu(n.current, nf), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
+ ju(n.current, tf), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
fromRouteId: t,
...i
}));
}, [e, t]);
}
-var xf = {};
-function Sf(e, t, n) {
- !t && !xf[e] && (xf[e] = !0, Mu(!1, n));
+var bf = {};
+function xf(e, t, n) {
+ !t && !bf[e] && (bf[e] = !0, ju(!1, n));
}
// node_modules/react-router/dist/production/lib/dom/ssr/components.js
-var Cf = F.createContext(void 0);
-Cf.displayName = "FrameworkContext", F.memo(wf);
-function wf({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
- let a = F.useContext(Fd);
- ju(a, "You must render this element inside a <DataRouterContext.Provider> element");
- let o = F.useContext(Cf)?.routeDiscoveryRuntime;
+var Sf = F.createContext(void 0);
+Sf.displayName = "FrameworkContext", F.memo(Cf);
+function Cf({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
+ let a = F.useContext(Pd);
+ Au(a, "You must render this element inside a <DataRouterContext.Provider> element");
+ let o = F.useContext(Sf)?.routeDiscoveryRuntime;
return F.useEffect(() => {
n.initialized && o?.markReady();
- }, [n.initialized, o]), sf(e, void 0, {
+ }, [n.initialized, o]), of(e, void 0, {
router: a.router,
manifest: t,
state: n,
@@ -15083,11 +15083,11 @@ function wf({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {
onError: i
});
}
-function Tf(e) {
- ju(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");
+function wf(e) {
+ Au(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");
}
-function Ef({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
- ju(!ef(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
+function Tf({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {
+ Au(!$d(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
let s = e.replace(/^\/*/, "/"), c = F.useMemo(() => ({
basename: s,
navigator: i,
@@ -15100,9 +15100,9 @@ function Ef({ basename: e = "/", children: t = null, location: n, navigationType
a,
o
]);
- typeof n == "string" && (n = Lu(n));
+ typeof n == "string" && (n = Iu(n));
let { pathname: l = "/", search: u = "", hash: d = "", state: f = null, key: p = "default", mask: m } = n, h = F.useMemo(() => {
- let e = cd(l, s);
+ let e = sd(l, s);
return e == null ? null : {
location: {
pathname: e,
@@ -15124,27 +15124,27 @@ function Ef({ basename: e = "/", children: t = null, location: n, navigationType
r,
m
]);
- return Mu(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ F.createElement(Ud.Provider, { value: c }, /* @__PURE__ */ F.createElement(Wd.Provider, {
+ return ju(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ F.createElement(Hd.Provider, { value: c }, /* @__PURE__ */ F.createElement(Ud.Provider, {
children: t,
value: h
}));
}
-function Df({ children: e, location: t }) {
- return of(Of(e), t);
+function Ef({ children: e, location: t }) {
+ return af(Df(e), t);
}
F.Component;
-function Of(e, t = []) {
+function Df(e, t = []) {
let n = [];
return F.Children.forEach(e, (e, r) => {
if (!F.isValidElement(e)) return;
let i = [...t, r];
if (e.type === F.Fragment) {
- n.push.apply(n, Of(e.props.children, i));
+ n.push.apply(n, Df(e.props.children, i));
return;
}
- ju(e.type === Tf, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);
+ Au(e.type === wf, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);
let a = e.props;
- ju(!a.index || !a.children, "An index route cannot have child routes.");
+ Au(!a.index || !a.children, "An index route cannot have child routes.");
let o = {
id: a.id || i.join("-"),
caseSensitive: a.caseSensitive,
@@ -15163,17 +15163,17 @@ function Of(e, t = []) {
handle: a.handle,
lazy: a.lazy
};
- a.children && (o.children = Of(a.children, i)), n.push(o);
+ a.children && (o.children = Df(a.children, i)), n.push(o);
}), n;
}
// src/history/settings-route.ts
-var kf = {
+var Of = {
appearance: "外观与导航",
playback: "浏览与播放",
jav: "JAV 与新作",
search: "搜索与推荐",
content: "内容显示"
-}, Af = {
+}, kf = {
library: "媒体库与入库",
subscriptions: "来源与订阅",
downloads: "下载渠道",
@@ -15181,37 +15181,37 @@ var kf = {
maintenance: "应用与维护",
diagnostics: "系统诊断"
};
-function jf(e) {
- return Af[e.split("/")[2]] || Af.library;
+function Af(e) {
+ return kf[e.split("/")[2]] || kf.library;
}
-var Mf = ["/settings", ...Object.keys(kf).map((e) => `/settings/${e}`)], Nf = (e) => Mf.includes(e);
-function Pf(e) {
- return kf[e.split("/")[2]] || kf.appearance;
+var jf = ["/settings", ...Object.keys(Of).map((e) => `/settings/${e}`)], Mf = (e) => jf.includes(e);
+function Nf(e) {
+ return Of[e.split("/")[2]] || Of.appearance;
}
-function Ff(e) {
+function Pf(e) {
return `/settings/${Object.entries({
- ...kf,
- ...Af
+ ...Of,
+ ...kf
}).find(([, t]) => t === e)?.[0] || "appearance"}`;
}
-var If = (e) => {
+var Ff = (e) => {
let t = e?.settingsBackground;
return t && typeof t.pathname == "string" ? t : null;
-}, Lf = [
+}, If = [
"/assets/:id",
"/posts/:id",
"/works/:code"
-], Rf = [
+], Lf = [
"mix",
"parts",
"editions",
"playlist"
];
-function zf(e, t = "") {
+function Rf(e, t = "") {
let n = new URL(e, "https://peach.invalid");
e = n.pathname, t ||= n.search;
- for (let n of Lf) {
- let r = id(n, e);
+ for (let n of If) {
+ let r = rd(n, e);
if (!r) continue;
if (n === "/works/:code") {
let e = r.params.code || "";
@@ -15228,7 +15228,7 @@ function zf(e, t = "") {
let a = Number(i[0]);
if (!Number.isSafeInteger(a) || a <= 0) return null;
if (n === "/assets/:id") {
- let e = new URLSearchParams(t), r = Rf.filter((t) => e.has(t));
+ let e = new URLSearchParams(t), r = Lf.filter((t) => e.has(t));
if (r.length === 1) {
let t = r[0], i = e.get(t), o = Number(i);
if (/^[1-9]\d*$/.test(i) && Number.isSafeInteger(o)) return {
@@ -15252,8 +15252,8 @@ function zf(e, t = "") {
}
return null;
}
-var Bf = (e, t = "") => zf(e, t)?.target ?? null, Vf = (e) => Nf(e.split(/[?#]/)[0]) || Lf.some((t) => id(t, e.split(/[?#]/)[0]) !== null);
-function Hf(e) {
+var zf = (e, t = "") => Rf(e, t)?.target ?? null, Bf = (e) => Mf(e.split(/[?#]/)[0]) || If.some((t) => rd(t, e.split(/[?#]/)[0]) !== null);
+function Vf(e) {
let t = e?.backgroundLocation;
return typeof t?.pathname == "string" ? {
pathname: t.pathname,
@@ -15261,34 +15261,34 @@ function Hf(e) {
...typeof t.hash == "string" && t.hash ? { hash: t.hash } : {}
} : null;
}
-var Uf = null, Wf = null;
-function Gf() {
+var Hf = null, Uf = null;
+function Wf() {
let { pathname: e, search: t, hash: n } = window.location;
- Vf(e) || (Uf = {
+ Bf(e) || (Hf = {
pathname: e,
search: t,
...n ? { hash: n } : {}
});
}
-function Kf() {
- Uf = null, Wf = null;
+function Gf() {
+ Hf = null, Uf = null;
}
-function qf(e) {
- let t = Hf(e);
- t && (Uf = t, Wf = t.pathname + t.search + (t.hash || ""));
+function Kf(e) {
+ let t = Vf(e);
+ t && (Hf = t, Uf = t.pathname + t.search + (t.hash || ""));
}
-function Jf() {
- let e = Wf;
- return Wf = null, e;
+function qf() {
+ let e = Uf;
+ return Uf = null, e;
}
-function Yf(e) {
- return Uf ? {
- backgroundLocation: { ...Uf },
+function Jf(e) {
+ return Hf ? {
+ backgroundLocation: { ...Hf },
overlay: e
} : void 0;
}
// src/cleanup-tools.ts
-var Xf = [
+var Yf = [
{
key: "organize",
path: "/data-cleanup/organize",
@@ -15331,7 +15331,7 @@ var Xf = [
icon: "trash",
description: "按女优勾选并永久删除关联影片,执行前确认范围与影响。"
}
-], Zf = Object.fromEntries(Xf.map((e) => [e.path, e.title])), Qf = {
+], Xf = Object.fromEntries(Yf.map((e) => [e.path, e.title])), Zf = {
"#organize": "/data-cleanup/organize",
"#mediaRepair": "/data-cleanup/media-repair",
"#link-manager": "/data-cleanup/links",
@@ -15340,7 +15340,7 @@ var Xf = [
"#batch-delete": "/data-cleanup/batch-delete"
};
// src/history/canonical-path.ts
-function $f(e) {
+function Qf(e) {
let t = new URL(e, "https://peach.invalid");
for (let [e, n] of [
[/^\/item\/(\d+)$/, "/assets/"],
@@ -15361,19 +15361,19 @@ function $f(e) {
"/configuration": "/settings/library",
"/diagnostics": "/settings/diagnostics"
}[t.pathname] || t.pathname;
- let r = t.pathname === "/data-cleanup" ? Qf[t.hash] : void 0;
+ let r = t.pathname === "/data-cleanup" ? Zf[t.hash] : void 0;
return r && (t.pathname = r, t.hash = ""), t.pathname + t.search + t.hash;
}
-var ep = {
+var $f = {
"/settings": {
title: "设置",
refresh: "skip"
},
- ...Object.fromEntries(Object.entries(kf).map(([e, t]) => [`/settings/${e}`, {
+ ...Object.fromEntries(Object.entries(Of).map(([e, t]) => [`/settings/${e}`, {
title: t,
refresh: "skip"
}])),
- ...Object.fromEntries(Object.entries(Af).map(([e, t]) => [`/settings/${e}`, {
+ ...Object.fromEntries(Object.entries(kf).map(([e, t]) => [`/settings/${e}`, {
title: t,
section: "configuration",
refresh: "reopen"
@@ -15401,7 +15401,7 @@ var ep = {
section: "cleanup",
title: "数据管理"
},
- ...Object.fromEntries(Object.entries(Zf).map(([e, t]) => [e, {
+ ...Object.fromEntries(Object.entries(Xf).map(([e, t]) => [e, {
section: "cleanup",
title: t,
refresh: "reopen"
@@ -15514,13 +15514,13 @@ var ep = {
title: "播放墙"
}
};
-function tp(e) {
- if (Object.hasOwn(ep, e)) return ep[e];
- let t = zf(e);
- if (t) return ep[t.path];
+function ep(e) {
+ if (Object.hasOwn($f, e)) return $f[e];
+ let t = Rf(e);
+ if (t) return $f[t.path];
let [n, ...r] = e.split("/").filter(Boolean);
if (!n) return null;
- if (!r.length) return Object.hasOwn(ep, `/${n}`) ? ep[`/${n}`] : null;
+ if (!r.length) return Object.hasOwn($f, `/${n}`) ? $f[`/${n}`] : null;
let i = `/${n}/*`, a = {
performers: "performer",
studios: "studio",
@@ -15529,144 +15529,144 @@ function tp(e) {
series: "series",
tags: "tag"
}, o = /^\d+$/.test(r.join("/")) ? un(a[n] || "", Number(r[0])) : r.join("/");
- return Object.hasOwn(ep, i) ? {
- ...ep[i],
+ return Object.hasOwn($f, i) ? {
+ ...$f[i],
title: o ? nn(a[n] || "", o) : "资料"
} : null;
}
// src/history/managed.ts
-var np = () => {}, rp = new Promise((e) => {
- np = e;
+var tp = () => {}, np = new Promise((e) => {
+ tp = e;
});
-rp.catch(() => {});
-var ip = null, ap = /* @__PURE__ */ new Map(), op = /* @__PURE__ */ new Map(), sp = 0, cp = /* @__PURE__ */ new Set(), lp = /* @__PURE__ */ new Set(), up = !1, dp = () => up;
-function fp(e) {
- return lp.add(e), () => {
- lp.delete(e);
+np.catch(() => {});
+var rp = null, ip = /* @__PURE__ */ new Map(), ap = /* @__PURE__ */ new Map(), op = 0, sp = /* @__PURE__ */ new Set(), cp = /* @__PURE__ */ new Set(), lp = !1, up = () => lp;
+function dp(e) {
+ return cp.add(e), () => {
+ cp.delete(e);
};
}
-function pp() {
- let e = [...op.values()].some((e) => e.page);
- if (e !== up) {
- up = e;
- for (let e of [...lp]) e(up);
+function fp() {
+ let e = [...ap.values()].some((e) => e.page);
+ if (e !== lp) {
+ lp = e;
+ for (let e of [...cp]) e(lp);
}
}
+function pp(e) {
+ tp(e);
+}
function mp(e) {
- np(e);
+ return ip.get(e) ?? null;
}
function hp(e) {
- return ap.get(e) ?? null;
+ return !!e && (ip.has(e) || ap.has(e));
}
-function gp(e) {
- return !!e && (ap.has(e) || op.has(e));
-}
-var _p = () => [...ap.values()];
-function vp(e) {
- return cp.add(e), () => {
- cp.delete(e);
+var gp = () => [...ip.values()];
+function _p(e) {
+ return sp.add(e), () => {
+ sp.delete(e);
};
}
-function yp(e) {
- let t = _p();
- for (let n of [...cp]) n(t, e);
+function vp(e) {
+ let t = gp();
+ for (let n of [...sp]) n(t, e);
}
-async function bp(e, t, n) {
+async function yp(e, t, n) {
let { container: r } = n;
- if (op.get(r)?.controller.abort(), op.delete(r), pp(), !n.isCurrent()) return !1;
- let i = ap.get(r);
- if (n.reuse && i?.host.isConnected) return ap.set(r, {
+ if (ap.get(r)?.controller.abort(), ap.delete(r), fp(), !n.isCurrent()) return !1;
+ let i = ip.get(r);
+ if (n.reuse && i?.host.isConnected) return ip.set(r, {
...i,
path: e,
props: t
- }), yp(!0), e.startsWith("/") && hm(`managed:${e}`, !0), !0;
- sp += 1;
+ }), vp(!0), e.startsWith("/") && mm(`managed:${e}`, !0), !0;
+ op += 1;
let a = {
- revision: sp,
+ revision: op,
controller: new AbortController(),
page: e.startsWith("/") && !n.resident
};
- op.set(r, a), pp();
- let o = ip;
- ip = null, o?.();
- let s = await rp;
- if (op.get(r) !== a) return !1;
+ ap.set(r, a), fp();
+ let o = rp;
+ rp = null, o?.();
+ let s = await np;
+ if (ap.get(r) !== a) return !1;
try {
- e.startsWith("/") && gm(`managed:${e}`) || await s(e, t, a.controller.signal);
+ e.startsWith("/") && hm(`managed:${e}`) || await s(e, t, a.controller.signal);
} catch {
if (a.controller.signal.aborted) return !1;
}
- if (op.get(r) !== a || (op.delete(r), pp(), !n.isCurrent())) return !1;
- n.beforePlace?.(), Cp(r);
- let c = n.place ? n.place(r) : xp(r);
- return ap.set(r, {
+ if (ap.get(r) !== a || (ap.delete(r), fp(), !n.isCurrent())) return !1;
+ n.beforePlace?.(), Sp(r);
+ let c = n.place ? n.place(r) : bp(r);
+ return ip.set(r, {
path: e,
props: t,
revision: a.revision,
container: r,
host: c,
resident: !!n.resident
- }), yp(!0), e.startsWith("/") && hm(`managed:${e}`, !0), !0;
+ }), vp(!0), e.startsWith("/") && mm(`managed:${e}`, !0), !0;
}
-function xp(e) {
+function bp(e) {
let t = e.ownerDocument.createElement("div");
return t.className = "peach-react", e.replaceChildren(t), t;
}
-function Sp(e, t) {
- let n = e ? ap.get(e) : void 0;
- n && (ap.set(n.container, {
+function xp(e, t) {
+ let n = e ? ip.get(e) : void 0;
+ n && (ip.set(n.container, {
...n,
props: {
...n.props,
...t
}
- }), yp(!1));
+ }), vp(!1));
}
-function Cp(e, ...t) {
+function Sp(e, ...t) {
let n = [];
for (let r of /* @__PURE__ */ new Set([e, ...t])) {
- let e = op.get(r);
- e && (e.controller.abort(), op.delete(r), pp());
- let t = ap.get(r);
- t && (ap.delete(r), n.push(t));
+ let e = ap.get(r);
+ e && (e.controller.abort(), ap.delete(r), fp());
+ let t = ip.get(r);
+ t && (ip.delete(r), n.push(t));
}
if (n.length) {
- yp(!0);
+ vp(!0);
for (let e of n) e.resident || e.host.remove();
}
}
-function wp() {
- let [e, ...t] = /* @__PURE__ */ new Set([...ap.keys(), ...op.keys()]);
- e && Cp(e, ...t);
+function Cp() {
+ let [e, ...t] = /* @__PURE__ */ new Set([...ip.keys(), ...ap.keys()]);
+ e && Sp(e, ...t);
}
-function Tp(e, t) {
- let n = ap.get(e);
- n?.revision === t && (ap.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {
- yp(!1);
+function wp(e, t) {
+ let n = ip.get(e);
+ n?.revision === t && (ip.delete(e), n.resident || n.host.remove(), queueMicrotask(() => {
+ vp(!1);
}));
}
// src/history/index.ts
-var Ep = Au({ v5Compat: !0 }), Dp = 0, Op = 0, kp = {
- action: Ep.action,
- location: Ep.location,
- seq: Dp,
- openEpoch: Op,
+var Tp = ku({ v5Compat: !0 }), Ep = 0, Dp = 0, Op = {
+ action: Tp.action,
+ location: Tp.location,
+ seq: Ep,
+ openEpoch: Dp,
claimed: !0
-}, Ap = /* @__PURE__ */ new Set(), jp = !1, Mp = !0;
-Ep.listen(({ action: e, location: t }) => {
- let n = t.pathname + t.search + t.hash, r = $f(n);
- r !== n && (window.history.replaceState(window.history.state, "", r), t = Ep.location), Dp += 1, jp || (Op += 1), e !== "REPLACE" && (Mp = !1), kp = {
+}, kp = /* @__PURE__ */ new Set(), Ap = !1, jp = !0;
+Tp.listen(({ action: e, location: t }) => {
+ let n = t.pathname + t.search + t.hash, r = Qf(n);
+ r !== n && (window.history.replaceState(window.history.state, "", r), t = Tp.location), Ep += 1, Ap || (Dp += 1), e !== "REPLACE" && (jp = !1), Op = {
action: e,
location: t,
- seq: Dp,
- openEpoch: Op,
- claimed: jp
+ seq: Ep,
+ openEpoch: Dp,
+ claimed: Ap
};
- for (let e of [...Ap]) e(kp);
+ for (let e of [...kp]) e(Op);
});
-function Np(e) {
- if (typeof e == "string") return $f(new URL(e, window.location.href).href);
- let t = new URL(`${e.pathname ?? window.location.pathname}${e.search || ""}${e.hash || ""}`, window.location.href), n = $f(t.href);
+function Mp(e) {
+ if (typeof e == "string") return Qf(new URL(e, window.location.href).href);
+ let t = new URL(`${e.pathname ?? window.location.pathname}${e.search || ""}${e.hash || ""}`, window.location.href), n = Qf(t.href);
if (n === t.pathname + t.search + t.hash) return e;
let r = new URL(n, window.location.origin);
return {
@@ -15676,42 +15676,42 @@ function Np(e) {
hash: r.hash
};
}
-var Pp = {
+var Np = {
get navigation() {
- return kp;
+ return Op;
},
listen(e) {
- return Ap.add(e), () => {
- Ap.delete(e);
+ return kp.add(e), () => {
+ kp.delete(e);
};
},
- createHref: (e) => Ep.createHref(e),
- createURL: (e) => Ep.createURL(e),
- encodeLocation: (e) => Ep.encodeLocation(e),
- go: (e) => Ep.go(e),
- push: (e, t) => Ep.push(Np(e), t),
- replace: (e, t) => Ep.replace(Np(e), t)
+ createHref: (e) => Tp.createHref(e),
+ createURL: (e) => Tp.createURL(e),
+ encodeLocation: (e) => Tp.encodeLocation(e),
+ go: (e) => Tp.go(e),
+ push: (e, t) => Tp.push(Mp(e), t),
+ replace: (e, t) => Tp.replace(Mp(e), t)
};
-function Fp(e, { replace: t = !1, state: n } = {}) {
- let r = new URL(e, window.location.href), i = $f(`${r.pathname}${r.search}${r.hash}`);
- jp = !0;
+function Pp(e, { replace: t = !1, state: n } = {}) {
+ let r = new URL(e, window.location.href), i = Qf(`${r.pathname}${r.search}${r.hash}`);
+ Ap = !0;
try {
- t ? Ep.replace(i, n) : Ep.push(i, n);
+ t ? Tp.replace(i, n) : Tp.push(i, n);
} finally {
- jp = !1;
+ Ap = !1;
}
}
-var Ip = () => Mp;
-function Lp() {
- if (Nf(kp.location.pathname)) {
- let e = Mp ? null : If(kp.location.state);
- return e ? Hf(e.state) || e : null;
+var Fp = () => jp;
+function Ip() {
+ if (Mf(Op.location.pathname)) {
+ let e = jp ? null : Ff(Op.location.state);
+ return e ? Vf(e.state) || e : null;
}
- return Mp ? null : Hf(kp.location.state);
+ return jp ? null : Vf(Op.location.state);
}
// src/ui-kit/anchor-scroll.ts
-var Rp = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "instant" : "smooth";
-async function zp(e, t) {
+var Lp = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "instant" : "smooth";
+async function Rp(e, t) {
let n;
try {
n = decodeURIComponent(e.slice(1));
@@ -15726,124 +15726,124 @@ async function zp(e, t) {
let r = document.getElementById(n);
r?.getClientRects().length && r.scrollIntoView({
block: "start",
- behavior: Rp()
+ behavior: Lp()
});
}
// src/history/page-navigation.ts
-var Bp = /* @__PURE__ */ new Map(), Vp = /* @__PURE__ */ new Map(), Hp = /* @__PURE__ */ new Map(), Up, Wp, Gp = {
+var zp = /* @__PURE__ */ new Map(), Bp = /* @__PURE__ */ new Map(), Vp = /* @__PURE__ */ new Map(), Hp, Up, Wp = {
left: window.scrollX,
top: window.scrollY
-}, Kp, qp = -1, Jp = -1, Yp = !1, Xp = !1, Zp, Qp, $p = !1, em = !1;
-function tm() {
+}, Gp, Kp = -1, qp = -1, Jp = !1, Yp = !1, Xp, Zp, Qp = !1, $p = !1;
+function em() {
let e = document.documentElement;
- Zp ??= e.style.overflowAnchor, Qp ??= e.style.minHeight, e.style.minHeight = `${e.scrollHeight}px`, $p = !1, em = !1, e.style.overflowAnchor = "none", e.setAttribute("data-page-navigation-pending", ""), window.scrollTo({
+ Xp ??= e.style.overflowAnchor, Zp ??= e.style.minHeight, e.style.minHeight = `${e.scrollHeight}px`, Qp = !1, $p = !1, e.style.overflowAnchor = "none", e.setAttribute("data-page-navigation-pending", ""), window.scrollTo({
left: window.scrollX,
top: window.scrollY,
behavior: "instant"
});
}
-function nm(e) {
- $p && !em && Zp !== void 0 && requestAnimationFrame(() => requestAnimationFrame(() => {
- if (Pp.navigation.seq !== e || !$p || em || Zp === void 0) return;
+function tm(e) {
+ Qp && !$p && Xp !== void 0 && requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (Np.navigation.seq !== e || !Qp || $p || Xp === void 0) return;
let t = document.documentElement;
- t.style.minHeight = Qp, t.style.overflowAnchor = Zp, t.removeAttribute("data-page-navigation-pending"), Qp = void 0, Zp = void 0;
+ t.style.minHeight = Zp, t.style.overflowAnchor = Xp, t.removeAttribute("data-page-navigation-pending"), Zp = void 0, Xp = void 0;
}));
}
-function rm(e) {
- em = e.behavior === "smooth" && (Math.abs((e.top ?? window.scrollY) - window.scrollY) > .5 || Math.abs((e.left ?? window.scrollX) - window.scrollX) > .5), window.scrollTo(e);
+function nm(e) {
+ $p = e.behavior === "smooth" && (Math.abs((e.top ?? window.scrollY) - window.scrollY) > .5 || Math.abs((e.left ?? window.scrollX) - window.scrollX) > .5), window.scrollTo(e);
}
-function im(e) {
+function rm(e) {
if (!e?.getClientRects().length) {
- em = !1;
+ $p = !1;
return;
}
let t = parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop) || 0, n = parseFloat(getComputedStyle(e).scrollMarginTop) || 0, r = Math.max(0, Math.min(e.getBoundingClientRect().top + window.scrollY - t - n, document.documentElement.scrollHeight - window.innerHeight));
- em = Rp() === "smooth" && Math.abs(r - window.scrollY) > .5;
+ $p = Lp() === "smooth" && Math.abs(r - window.scrollY) > .5;
}
-var am = (e) => !Vf(e) && !Nf(e) && e !== "/immerse" && e !== "/wall", om = (e) => {
+var im = (e) => !Bf(e) && !Mf(e) && e !== "/immerse" && e !== "/wall", am = (e) => {
let t = new URLSearchParams(e.search);
return `${e.pathname}:${t.get("jav") === "1"}:${t.get("orient") === "竖屏"}`;
-}, sm = (e) => {
+}, om = (e) => {
let t = new URLSearchParams(e.search);
return t.delete("edit"), t.sort(), e.pathname + (t.size ? `?${t}` : "") + e.hash;
-}, cm = (e) => `${e.key}:${sm(e)}`;
-function lm(e) {
- if (!am(e.pathname)) return [];
+}, sm = (e) => `${e.key}:${om(e)}`;
+function cm(e) {
+ if (!im(e.pathname)) return [];
if (e.pathname === "/") {
let t = new URLSearchParams(e.search);
return [t.get("jav") === "1" ? "jav" : t.get("orient") === "竖屏" ? "shorts" : ""];
}
- let t = tp(e.pathname);
+ let t = ep(e.pathname);
return [...t?.nav ? [t.nav] : [], ...t?.section ? ["manage", t.section] : []];
}
-function um(e) {
+function lm(e) {
let t = e.pathname + e.search + e.hash;
if (e.pathname !== "/") return t;
let n = new URLSearchParams(e.search);
return n.has("q") ? (n.delete("q"), "/" + (n.size ? `?${n}` : "") + e.hash) : t;
}
-function dm() {
- let e = Up.location;
- for (let t of lm(e)) Hp.set(t, um(e));
+function um() {
+ let e = Hp.location;
+ for (let t of cm(e)) Vp.set(t, lm(e));
}
-function fm(e) {
- return mm(), lm(Up.location).includes(e) ? um(Up.location) : Hp.get(e);
+function dm(e) {
+ return pm(), cm(Hp.location).includes(e) ? lm(Hp.location) : Vp.get(e);
}
-function pm() {
- mm(), Yp = !0;
+function fm() {
+ pm(), Jp = !0;
}
-function mm() {
- Xp || (Xp = !0, Up = Pp.navigation, Wp = Up.location, window.history.scrollRestoration = "manual", document.addEventListener("scrollend", (e) => {
- e.target === document && (em = !1, nm(Pp.navigation.seq));
- }), Pp.listen((e) => {
- if (Wp = Up.location, Gp = {
+function pm() {
+ Yp || (Yp = !0, Hp = Np.navigation, Up = Hp.location, window.history.scrollRestoration = "manual", document.addEventListener("scrollend", (e) => {
+ e.target === document && ($p = !1, tm(Np.navigation.seq));
+ }), Np.listen((e) => {
+ if (Up = Hp.location, Wp = {
left: window.scrollX,
top: window.scrollY
- }, am(e.location.pathname) ? tm() : ($p = !0, em = !1, nm(e.seq)), am(Wp.pathname)) {
- let e = Bp.get(cm(Wp)) ?? {
- ...Gp,
+ }, im(e.location.pathname) ? em() : (Qp = !0, $p = !1, tm(e.seq)), im(Up.pathname)) {
+ let e = zp.get(sm(Up)) ?? {
+ ...Wp,
state: /* @__PURE__ */ new Map()
};
- Object.assign(e, Gp), Bp.set(cm(Wp), e), Vp.set(sm(Wp), e), dm();
+ Object.assign(e, Wp), zp.set(sm(Up), e), Bp.set(om(Up), e), um();
}
if (e.action === "REPLACE") {
- let t = Bp.get(cm(Wp));
- t && Bp.set(cm(e.location), {
+ let t = zp.get(sm(Up));
+ t && zp.set(sm(e.location), {
...t,
state: new Map(t.state)
- }), Kp &&= Bp.get(cm(e.location));
- } else Kp = e.action === "POP" ? Bp.get(cm(e.location)) : Vp.get(sm(e.location));
- Yp && (Kp = void 0), Yp = !1, Kp && (Kp = {
- ...Kp,
- state: new Map(Kp.state)
- }, Bp.set(cm(e.location), Kp)), Up = e;
+ }), Gp &&= zp.get(sm(e.location));
+ } else Gp = e.action === "POP" ? zp.get(sm(e.location)) : Bp.get(om(e.location));
+ Jp && (Gp = void 0), Jp = !1, Gp && (Gp = {
+ ...Gp,
+ state: new Map(Gp.state)
+ }, zp.set(sm(e.location), Gp)), Hp = e;
}));
}
-function hm(e, t) {
- if (mm(), !am(Up.location.pathname)) return;
- let n = Bp.get(cm(Up.location)) ?? {
+function mm(e, t) {
+ if (pm(), !im(Hp.location.pathname)) return;
+ let n = zp.get(sm(Hp.location)) ?? {
left: window.scrollX,
top: window.scrollY,
state: /* @__PURE__ */ new Map()
};
- n.state.set(e, t), Bp.set(cm(Up.location), n), dm();
+ n.state.set(e, t), zp.set(sm(Hp.location), n), um();
}
-function gm(e) {
- return mm(), Kp?.state.get(e);
+function hm(e) {
+ return pm(), Gp?.state.get(e);
}
-var _m = () => (mm(), !!Kp);
-function vm() {
- mm(), Jp = Pp.navigation.seq, qp === Jp && (Jp = -1, rm({
+var gm = () => (pm(), !!Gp);
+function _m() {
+ pm(), qp = Np.navigation.seq, Kp === qp && (qp = -1, nm({
top: 0,
- behavior: Rp()
+ behavior: Lp()
}));
}
-async function ym(e, t, { pending: n = !1 } = {}) {
- mm();
- let r = Pp.navigation, i = r.seq, a = () => e() && Pp.navigation.seq === i;
- if (am(r.location.pathname) && a() && (dm(), !(!n && Kp && (await document.fonts?.ready, await new Promise((e) => requestAnimationFrame(() => e())), !a())))) {
- if (n || ($p = !0), qp === i) nm(i);
- else if (!(n && Kp)) {
+async function vm(e, t, { pending: n = !1 } = {}) {
+ pm();
+ let r = Np.navigation, i = r.seq, a = () => e() && Np.navigation.seq === i;
+ if (im(r.location.pathname) && a() && (um(), !(!n && Gp && (await document.fonts?.ready, await new Promise((e) => requestAnimationFrame(() => e())), !a())))) {
+ if (n || (Qp = !0), Kp === i) tm(i);
+ else if (!(n && Gp)) {
if (n && r.location.hash) {
let e;
try {
@@ -15853,83 +15853,83 @@ async function ym(e, t, { pending: n = !1 } = {}) {
}
if (!e?.getClientRects().length || e.closest("[data-skeleton], [data-content-skeleton]")) return;
}
- if (qp = i, Jp === i) Jp = -1, Kp = void 0, rm({
+ if (Kp = i, qp === i) qp = -1, Gp = void 0, nm({
top: 0,
- behavior: Rp()
+ behavior: Lp()
});
- else if (Kp) {
- let e = Rp();
+ else if (Gp) {
+ let e = Lp();
e === "smooth" && window.scrollTo({
- ...Gp,
+ ...Wp,
behavior: "instant"
- }), rm({
- left: Kp.left,
- top: Kp.top,
+ }), nm({
+ left: Gp.left,
+ top: Gp.top,
behavior: e
- }), Kp = void 0;
+ }), Gp = void 0;
} else if (r.location.hash) {
- if (await zp(r.location.hash, a), !a()) return;
+ if (await Rp(r.location.hash, a), !a()) return;
let e = null;
try {
e = document.getElementById(decodeURIComponent(r.location.hash.slice(1)));
} catch {}
- im(e);
- } else if (r.action === "REPLACE" && om(Wp) === om(r.location)) window.scrollTo({
- ...Gp,
+ rm(e);
+ } else if (r.action === "REPLACE" && am(Up) === am(r.location)) window.scrollTo({
+ ...Wp,
behavior: "instant"
});
- else if (t?.getClientRects().length && om(Wp) === om(r.location) && Wp.search !== r.location.search) {
+ else if (t?.getClientRects().length && am(Up) === am(r.location) && Up.search !== r.location.search) {
let e = parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop) || 0;
- t.getBoundingClientRect().top < e && (im(t), t.scrollIntoView({
+ t.getBoundingClientRect().top < e && (rm(t), t.scrollIntoView({
block: "start",
- behavior: Rp()
+ behavior: Lp()
}));
- } else i > 0 && rm({
+ } else i > 0 && nm({
top: 0,
- behavior: Rp()
+ behavior: Lp()
});
- nm(i);
+ tm(i);
}
}
}
// node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs
-var bm = /* @__PURE__ */ (0, F.createContext)({});
+var ym = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/utils/use-constant.mjs
-function xm(e) {
+function bm(e) {
let t = (0, F.useRef)(null);
return t.current === null && (t.current = e()), t.current;
}
// node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
-var Sm = typeof window < "u" ? F.useLayoutEffect : F.useEffect, Cm = /* @__PURE__ */ (0, F.createContext)(null);
+var xm = typeof window < "u" ? F.useLayoutEffect : F.useEffect, Sm = /* @__PURE__ */ (0, F.createContext)(null);
// node_modules/motion-utils/dist/es/array.mjs
-function wm(e, t) {
+function Cm(e, t) {
e.indexOf(t) === -1 && e.push(t);
}
-function Tm(e, t) {
+function wm(e, t) {
let n = e.indexOf(t);
n > -1 && e.splice(n, 1);
}
// node_modules/motion-utils/dist/es/clamp.mjs
-var Em = (e, t, n) => n > t ? t : n < e ? e : n, Dm = {}, Om = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), km = (e) => typeof e == "object" && !!e, Am = (e) => /^0[^.\s]+$/u.test(e);
+var Tm = (e, t, n) => n > t ? t : n < e ? e : n, Em = {}, Dm = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), Om = (e) => typeof e == "object" && !!e, km = (e) => /^0[^.\s]+$/u.test(e);
// node_modules/motion-utils/dist/es/memo.mjs
/*#__NO_SIDE_EFFECTS__*/
-function jm(e) {
+function Am(e) {
let t;
return () => (t === void 0 && (t = e()), t);
}
// node_modules/motion-utils/dist/es/noop.mjs
-var Mm = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Nm = (...e) => e.reduce((e, t) => (n) => t(e(n))), Pm = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
+var jm = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Mm = (...e) => e.reduce((e, t) => (n) => t(e(n))), Nm = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
let r = t - e;
return r ? (n - e) / r : 1;
-}, Fm = class {
+}, Pm = class {
constructor() {
this.subscriptions = [];
}
add(e) {
- return wm(this.subscriptions, e), () => this.remove(e);
+ return Cm(this.subscriptions, e), () => this.remove(e);
}
remove(e) {
- Tm(this.subscriptions, e);
+ wm(this.subscriptions, e);
}
notify(e, t, n) {
let r = this.subscriptions.length;
@@ -15947,146 +15947,146 @@ var Mm = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Nm = (...e) => e.reduce((e, t) =>
clear() {
this.subscriptions.length = 0;
}
-}, Im = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, Lm = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, Rm = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, zm = (e, t, n) => {
+}, Fm = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, Im = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, Lm = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, Rm = (e, t, n) => {
let r = t - e;
return ((n - e) % r + r) % r + e;
-}, Bm = (e, t, n) => e * (3 * (1 - e) * ((1 - e) * t + e * n) + e * e);
+}, zm = (e, t, n) => e * (3 * (1 - e) * ((1 - e) * t + e * n) + e * e);
/*#__NO_SIDE_EFFECTS__*/
-function Vm(e, t, n, r) {
- return e === t && n === r ? Mm : (i) => {
+function Bm(e, t, n, r) {
+ return e === t && n === r ? jm : (i) => {
let a = 0, o = 1, s = i;
for (let t = 0;; t++) {
s >= a && s <= o || (s = (a + o) / 2);
- let r = Bm(s, e, n) - i;
+ let r = zm(s, e, n) - i;
if (r * r < 1e-28 || t === 40) break;
- r > 0 ? o = s : a = s, s -= r * 1e-7 / (Bm(s + 1e-7, e, n) - i - r);
+ r > 0 ? o = s : a = s, s -= r * 1e-7 / (zm(s + 1e-7, e, n) - i - r);
}
- return Bm(s, t, r);
+ return zm(s, t, r);
};
}
// node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
-var Hm = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Um = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), Wm = /*@__PURE__*/ Vm(.33, 1.53, .69, .99), Gm = /*@__PURE__*/ Um(Wm), Km = /*@__PURE__*/ Hm(Gm), qm = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * Gm(e) : .5 * (2 - 2 ** (-10 * (e - 1))), Jm = (e) => 1 - Math.sin(Math.acos(e)), Ym = /* @__PURE__ */ Um(Jm), Xm = /* @__PURE__ */ Hm(Jm), Zm = /*@__PURE__*/ Vm(.42, 0, 1, 1), Qm = /*@__PURE__*/ Vm(0, 0, .58, 1), $m = /*@__PURE__*/ Vm(.42, 0, .58, 1), eh = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number";
+var Vm = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Hm = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), Um = /*@__PURE__*/ Bm(.33, 1.53, .69, .99), Wm = /*@__PURE__*/ Hm(Um), Gm = /*@__PURE__*/ Vm(Wm), Km = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * Wm(e) : .5 * (2 - 2 ** (-10 * (e - 1))), qm = (e) => 1 - Math.sin(Math.acos(e)), Jm = /* @__PURE__ */ Hm(qm), Ym = /* @__PURE__ */ Vm(qm), Xm = /*@__PURE__*/ Bm(.42, 0, 1, 1), Zm = /*@__PURE__*/ Bm(0, 0, .58, 1), Qm = /*@__PURE__*/ Bm(.42, 0, .58, 1), $m = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number";
// node_modules/motion-utils/dist/es/easing/utils/get-easing-for-segment.mjs
/*#__NO_SIDE_EFFECTS__*/
-function th(e, t) {
- return /* @__PURE__ */ eh(e) ? e[zm(0, e.length, t)] : e;
+function eh(e, t) {
+ return /* @__PURE__ */ $m(e) ? e[Rm(0, e.length, t)] : e;
}
// node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs
-var nh = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", rh = {
- linear: Mm,
- easeIn: Zm,
- easeInOut: $m,
- easeOut: Qm,
- circIn: Jm,
- circInOut: Xm,
- circOut: Ym,
- backIn: Gm,
- backInOut: Km,
- backOut: Wm,
- anticipate: qm
-}, ih = (e) => typeof e == "string", ah = (e) => {
- if (/* @__PURE__ */ nh(e)) {
+var th = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", nh = {
+ linear: jm,
+ easeIn: Xm,
+ easeInOut: Qm,
+ easeOut: Zm,
+ circIn: qm,
+ circInOut: Ym,
+ circOut: Jm,
+ backIn: Wm,
+ backInOut: Gm,
+ backOut: Um,
+ anticipate: Km
+}, rh = (e) => typeof e == "string", ih = (e) => {
+ if (/* @__PURE__ */ th(e)) {
let [t, n, r, i] = e;
- return /* @__PURE__ */ Vm(t, n, r, i);
+ return /* @__PURE__ */ Bm(t, n, r, i);
}
- return ih(e) ? rh[e] : e;
-}, oh = {
+ return rh(e) ? nh[e] : e;
+}, ah = {
delta: 0,
timestamp: 0,
isProcessing: !1
-}, sh;
-function ch() {
- sh = void 0;
+}, oh;
+function sh() {
+ oh = void 0;
}
-var lh = {
- now: () => (sh === void 0 && lh.set(oh.isProcessing || Dm.useManualTiming ? oh.timestamp : performance.now()), sh),
+var ch = {
+ now: () => (oh === void 0 && ch.set(ah.isProcessing || Em.useManualTiming ? ah.timestamp : performance.now()), oh),
set: (e) => {
- sh = e, queueMicrotask(ch);
+ oh = e, queueMicrotask(sh);
}
-}, uh = (e) => Math.round(e * 1e5) / 1e5, dh = (e) => (t) => typeof t == "string" && t.startsWith(e), fh = /*@__PURE__*/ dh("--"), ph = /*@__PURE__*/ dh("var(--"), mh = (e) => ph(e) ? hh.test(e.split("/*")[0].trim()) : !1, hh = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
-function gh(e) {
+}, lh = (e) => Math.round(e * 1e5) / 1e5, uh = (e) => (t) => typeof t == "string" && t.startsWith(e), dh = /*@__PURE__*/ uh("--"), fh = /*@__PURE__*/ uh("var(--"), ph = (e) => fh(e) ? mh.test(e.split("/*")[0].trim()) : !1, mh = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
+function hh(e) {
return typeof e == "string" && e.split("/*")[0].includes("var(--");
}
// node_modules/motion-dom/dist/es/value/types/numbers/index.mjs
-var _h = {
+var gh = {
test: (e) => typeof e == "number",
parse: parseFloat,
transform: (e) => e
+}, _h = {
+ ...gh,
+ transform: (e) => Tm(0, 1, e)
}, vh = {
- ..._h,
- transform: (e) => Em(0, 1, e)
-}, yh = {
- ..._h,
+ ...gh,
default: 1
-}, bh = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
+}, yh = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
// node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
-function xh(e) {
+function bh(e) {
return e == null;
}
// node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
-var Sh = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Ch = (e, t) => (n) => !!(typeof n == "string" && Sh.test(n) && n.startsWith(e) || t && !xh(n) && Object.prototype.hasOwnProperty.call(n, t)), wh = (e, t, n) => (r) => {
+var xh = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Sh = (e, t) => (n) => !!(typeof n == "string" && xh.test(n) && n.startsWith(e) || t && !bh(n) && Object.prototype.hasOwnProperty.call(n, t)), Ch = (e, t, n) => (r) => {
if (typeof r != "string") return r;
- let [i, a, o, s] = r.match(bh);
+ let [i, a, o, s] = r.match(yh);
return {
[e]: parseFloat(i),
[t]: parseFloat(a),
[n]: parseFloat(o),
alpha: s === void 0 ? 1 : parseFloat(s)
};
-}, Th = (e) => Em(0, 255, e), Eh = {
- ..._h,
- transform: (e) => Math.round(Th(e))
-}, Dh = {
- test: /*@__PURE__*/ Ch("rgb", "red"),
- parse: /*@__PURE__*/ wh("red", "green", "blue"),
- transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Eh.transform(e) + ", " + Eh.transform(t) + ", " + Eh.transform(n) + ", " + uh(vh.transform(r)) + ")"
-}, Oh = (e, t, n) => {
+}, wh = (e) => Tm(0, 255, e), Th = {
+ ...gh,
+ transform: (e) => Math.round(wh(e))
+}, Eh = {
+ test: /*@__PURE__*/ Sh("rgb", "red"),
+ parse: /*@__PURE__*/ Ch("red", "green", "blue"),
+ transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Th.transform(e) + ", " + Th.transform(t) + ", " + Th.transform(n) + ", " + lh(_h.transform(r)) + ")"
+}, Dh = (e, t, n) => {
let r = e.substring(1 + t * n, 1 + (t + 1) * n);
return n > 1 ? r : r + r;
};
-function kh(e) {
- let t = e.length > 5 ? 2 : 1, n = Oh(e, 3, t);
+function Oh(e) {
+ let t = e.length > 5 ? 2 : 1, n = Dh(e, 3, t);
return {
- red: parseInt(Oh(e, 0, t), 16),
- green: parseInt(Oh(e, 1, t), 16),
- blue: parseInt(Oh(e, 2, t), 16),
+ red: parseInt(Dh(e, 0, t), 16),
+ green: parseInt(Dh(e, 1, t), 16),
+ blue: parseInt(Dh(e, 2, t), 16),
alpha: n ? parseInt(n, 16) / 255 : 1
};
}
-var Ah = {
- test: /*@__PURE__*/ Ch("#"),
- parse: kh,
- transform: Dh.transform
-}, jh = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
+var kh = {
+ test: /*@__PURE__*/ Sh("#"),
+ parse: Oh,
+ transform: Eh.transform
+}, Ah = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
parse: parseFloat,
transform: (t) => `${t}${e}`
-}), Mh = /*@__PURE__*/ jh("deg"), Nh = /*@__PURE__*/ jh("%"), G = /*@__PURE__*/ jh("px"), Ph = /*@__PURE__*/ jh("vh"), Fh = /*@__PURE__*/ jh("vw"), Ih = {
- ...Nh,
- parse: (e) => Nh.parse(e) / 100,
- transform: (e) => Nh.transform(e * 100)
+}), jh = /*@__PURE__*/ Ah("deg"), Mh = /*@__PURE__*/ Ah("%"), G = /*@__PURE__*/ Ah("px"), Nh = /*@__PURE__*/ Ah("vh"), Ph = /*@__PURE__*/ Ah("vw"), Fh = {
+ ...Mh,
+ parse: (e) => Mh.parse(e) / 100,
+ transform: (e) => Mh.transform(e * 100)
+}, Ih = {
+ test: /*@__PURE__*/ Sh("hsl", "hue"),
+ parse: /*@__PURE__*/ Ch("hue", "saturation", "lightness"),
+ transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Mh.transform(lh(t)) + ", " + Mh.transform(lh(n)) + ", " + lh(_h.transform(r)) + ")"
}, Lh = {
- test: /*@__PURE__*/ Ch("hsl", "hue"),
- parse: /*@__PURE__*/ wh("hue", "saturation", "lightness"),
- transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Nh.transform(uh(t)) + ", " + Nh.transform(uh(n)) + ", " + uh(vh.transform(r)) + ")"
-}, Rh = {
- test: (e) => Dh.test(e) || Ah.test(e) || Lh.test(e),
- parse: (e) => Dh.test(e) ? Dh.parse(e) : Lh.test(e) ? Lh.parse(e) : Ah.parse(e),
- transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Dh.transform(e) : Lh.transform(e),
+ test: (e) => Eh.test(e) || kh.test(e) || Ih.test(e),
+ parse: (e) => Eh.test(e) ? Eh.parse(e) : Ih.test(e) ? Ih.parse(e) : kh.parse(e),
+ transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Eh.transform(e) : Ih.transform(e),
getAnimatableNone: (e) => {
- let t = Rh.parse(e);
- return t.alpha = 0, Rh.transform(t);
+ let t = Lh.parse(e);
+ return t.alpha = 0, Lh.transform(t);
}
-}, zh = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, Bh = /*@__PURE__*/ new RegExp(bh.source), Vh = /*@__PURE__*/ new RegExp(zh.source, "i");
-function Hh(e) {
- return isNaN(e) && typeof e == "string" && (Bh.test(e) || Vh.test(e));
+}, Rh = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, zh = /*@__PURE__*/ new RegExp(yh.source), Bh = /*@__PURE__*/ new RegExp(Rh.source, "i");
+function Vh(e) {
+ return isNaN(e) && typeof e == "string" && (zh.test(e) || Bh.test(e));
}
-var Uh = "number", Wh = "color", Gh = "var", Kh = "var(", qh = "${}", Jh = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;
-function Yh(e) {
+var Hh = "number", Uh = "color", Wh = "var", Gh = "var(", Kh = "${}", qh = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;
+function Jh(e) {
let t = e.toString();
- return Bh.test(t) || Vh.test(t);
+ return zh.test(t) || Bh.test(t);
}
-function Xh(e) {
+function Yh(e) {
let t = e.toString(), n = [], r = {
color: [],
number: [],
@@ -16094,50 +16094,50 @@ function Xh(e) {
}, i = [], a = 0;
return {
values: n,
- split: t.replace(Jh, (e) => (Rh.test(e) ? (r.color.push(a), i.push(Wh), n.push(Rh.parse(e))) : e.startsWith(Kh) ? (r.var.push(a), i.push(Gh), n.push(e)) : (r.number.push(a), i.push(Uh), n.push(parseFloat(e))), ++a, qh)).split(qh),
+ split: t.replace(qh, (e) => (Lh.test(e) ? (r.color.push(a), i.push(Uh), n.push(Lh.parse(e))) : e.startsWith(Gh) ? (r.var.push(a), i.push(Wh), n.push(e)) : (r.number.push(a), i.push(Hh), n.push(parseFloat(e))), ++a, Kh)).split(Kh),
indexes: r,
types: i
};
}
-function Zh(e) {
- return Xh(e).values;
+function Xh(e) {
+ return Yh(e).values;
}
-function Qh({ split: e, types: t }) {
+function Zh({ split: e, types: t }) {
let n = e.length;
return (r) => {
let i = "";
for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {
let e = t[a];
- i += e === Uh ? uh(r[a]) : e === Wh ? Rh.transform(r[a]) : r[a];
+ i += e === Hh ? lh(r[a]) : e === Uh ? Lh.transform(r[a]) : r[a];
}
return i;
};
}
-function $h(e) {
- return Qh(Xh(e));
+function Qh(e) {
+ return Zh(Yh(e));
}
-var eg = (e) => typeof e == "number" ? 0 : Rh.test(e) ? Rh.getAnimatableNone(e) : e, tg = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : eg(e);
-function ng(e) {
- let t = Xh(e);
- return Qh(t)(t.values.map((e, n) => tg(e, t.split[n])));
+var $h = (e) => typeof e == "number" ? 0 : Lh.test(e) ? Lh.getAnimatableNone(e) : e, eg = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : $h(e);
+function tg(e) {
+ let t = Yh(e);
+ return Zh(t)(t.values.map((e, n) => eg(e, t.split[n])));
}
-var rg = {
- test: Hh,
- parse: Zh,
- createTransformer: $h,
- getAnimatableNone: ng
+var ng = {
+ test: Vh,
+ parse: Xh,
+ createTransformer: Qh,
+ getAnimatableNone: tg
};
// node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs
-function ig(e, t, n) {
+function rg(e, t, n) {
return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
}
-function eee({ hue: e, saturation: t, lightness: n, alpha: r }) {
+function tee({ hue: e, saturation: t, lightness: n, alpha: r }) {
e /= 360, t /= 100, n /= 100;
let i = 0, a = 0, o = 0;
if (!t) i = a = o = n;
else {
let r = n < .5 ? n * (1 + t) : n + t - n * t, s = 2 * n - r;
- i = ig(s, r, e + 1 / 3), a = ig(s, r, e), o = ig(s, r, e - 1 / 3);
+ i = rg(s, r, e + 1 / 3), a = rg(s, r, e), o = rg(s, r, e - 1 / 3);
}
return {
red: Math.round(i * 255),
@@ -16147,59 +16147,59 @@ function eee({ hue: e, saturation: t, lightness: n, alpha: r }) {
};
}
// node_modules/motion-dom/dist/es/utils/mix/immediate.mjs
-function ag(e, t) {
+function ig(e, t) {
return (n) => n > 0 ? t : e;
}
// node_modules/motion-dom/dist/es/utils/mix/number.mjs
-var og = (e, t, n) => e + (t - e) * n, sg = (e, t, n) => {
+var ag = (e, t, n) => e + (t - e) * n, og = (e, t, n) => {
let r = e * e, i = n * (t * t - r) + r;
return i < 0 ? 0 : Math.sqrt(i);
-}, tee = [
- Ah,
- Dh,
- Lh
-], nee = (e) => tee.find((t) => t.test(e));
-function cg(e) {
- let t = nee(e);
+}, nee = [
+ kh,
+ Eh,
+ Ih
+], ree = (e) => nee.find((t) => t.test(e));
+function sg(e) {
+ let t = ree(e);
if (!t) return !1;
let n = t.parse(e);
- return t === Lh && (n = eee(n)), n;
+ return t === Ih && (n = tee(n)), n;
}
-var lg = (e, t) => {
- let n = cg(e), r = cg(t);
- if (!n || !r) return ag(e, t);
+var cg = (e, t) => {
+ let n = sg(e), r = sg(t);
+ if (!n || !r) return ig(e, t);
let i = { ...n };
- return (e) => (i.red = sg(n.red, r.red, e), i.green = sg(n.green, r.green, e), i.blue = sg(n.blue, r.blue, e), i.alpha = og(n.alpha, r.alpha, e), Dh.transform(i));
-}, ug = /* @__PURE__ */ new Set(["none", "hidden"]);
-function ree(e, t) {
- return ug.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
+ return (e) => (i.red = og(n.red, r.red, e), i.green = og(n.green, r.green, e), i.blue = og(n.blue, r.blue, e), i.alpha = ag(n.alpha, r.alpha, e), Eh.transform(i));
+}, lg = /* @__PURE__ */ new Set(["none", "hidden"]);
+function iee(e, t) {
+ return lg.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
}
// node_modules/motion-dom/dist/es/utils/mix/complex.mjs
-function iee(e, t) {
- return (n) => og(e, t, n);
+function aee(e, t) {
+ return (n) => ag(e, t, n);
}
-function dg(e) {
- return typeof e == "number" ? iee : typeof e == "string" ? mh(e) ? ag : Rh.test(e) ? lg : see : Array.isArray(e) ? fg : typeof e == "object" ? Rh.test(e) ? lg : aee : ag;
+function ug(e) {
+ return typeof e == "number" ? aee : typeof e == "string" ? ph(e) ? ig : Lh.test(e) ? cg : cee : Array.isArray(e) ? dg : typeof e == "object" ? Lh.test(e) ? cg : oee : ig;
}
-function fg(e, t) {
- let n = [...e], r = n.length, i = e.map((e, n) => dg(e)(e, t[n]));
+function dg(e, t) {
+ let n = [...e], r = n.length, i = e.map((e, n) => ug(e)(e, t[n]));
return (e) => {
for (let t = 0; t < r; t++) n[t] = i[t](e);
return n;
};
}
-function aee(e, t) {
+function oee(e, t) {
let n = {
...e,
...t
}, r = {};
- for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = dg(e[i])(e[i], t[i]));
+ for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = ug(e[i])(e[i], t[i]));
return (e) => {
for (let t in r) n[t] = r[t](e);
return n;
};
}
-function oee(e, t) {
+function see(e, t) {
let n = [], r = {
color: 0,
var: 0,
@@ -16211,28 +16211,28 @@ function oee(e, t) {
}
return n;
}
-var see = (e, t) => {
- let n = Xh(e), r = Xh(t);
- return n.indexes.var.length === r.indexes.var.length && n.indexes.color.length === r.indexes.color.length && n.indexes.number.length >= r.indexes.number.length ? ug.has(e) && !r.values.length || ug.has(t) && !n.values.length ? ree(e, t) : Nm(fg(oee(n, r), r.values), Qh(r)) : ag(e, t);
-}, pg = /^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;
-function cee(e, t) {
- let n = pg.exec(e);
+var cee = (e, t) => {
+ let n = Yh(e), r = Yh(t);
+ return n.indexes.var.length === r.indexes.var.length && n.indexes.color.length === r.indexes.color.length && n.indexes.number.length >= r.indexes.number.length ? lg.has(e) && !r.values.length || lg.has(t) && !n.values.length ? iee(e, t) : Mm(dg(see(n, r), r.values), Zh(r)) : ig(e, t);
+}, fg = /^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;
+function lee(e, t) {
+ let n = fg.exec(e);
if (!n) return;
- let r = pg.exec(t);
+ let r = fg.exec(t);
if (!r || n[2] !== r[2]) return;
let i = n[2], a = parseFloat(n[1]), o = parseFloat(r[1]);
- return (e) => uh(og(a, o, e)) + i;
+ return (e) => lh(ag(a, o, e)) + i;
}
-function mg(e, t, n) {
- if (typeof e == "number" && typeof t == "number" && typeof n == "number") return og(e, t, n);
+function pg(e, t, n) {
+ if (typeof e == "number" && typeof t == "number" && typeof n == "number") return ag(e, t, n);
if (typeof e == "string" && typeof t == "string") {
- let n = cee(e, t);
+ let n = lee(e, t);
if (n) return n;
}
- return dg(e)(e, t);
+ return ug(e)(e, t);
}
// node_modules/motion-dom/dist/es/frameloop/order.mjs
-var hg = [
+var mg = [
"setup",
"read",
"resolveKeyframes",
@@ -16243,7 +16243,7 @@ var hg = [
"postRender"
];
// node_modules/motion-dom/dist/es/frameloop/render-step.mjs
-function lee(e) {
+function uee(e) {
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, i = !1, a, o = /* @__PURE__ */ new Set(), s = {
delta: 0,
timestamp: 0,
@@ -16273,117 +16273,117 @@ function lee(e) {
return l;
}
// node_modules/motion-dom/dist/es/frameloop/batcher.mjs
-var uee = 40;
-function gg(e, t, n = {
+var dee = 40;
+function hg(e, t, n = {
delta: 0,
timestamp: 0,
isProcessing: !1
}) {
- let r = !1, i = !0, a = () => r = !0, o = hg.reduce((e, t) => (e[t] = lee(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
- let a = Dm.useManualTiming, o = a ? n.timestamp : performance.now();
- r = !1, a || (n.delta = i ? 1e3 / 60 : Math.max(Math.min(o - n.timestamp, uee), 1)), n.timestamp = o, n.isProcessing = !0, s.process(n), c.process(n), l.process(n), u.process(n), d.process(n), f.process(n), p.process(n), m.process(n), n.isProcessing = !1, r && t && (i = !1, e(h));
+ let r = !1, i = !0, a = () => r = !0, o = mg.reduce((e, t) => (e[t] = uee(a), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
+ let a = Em.useManualTiming, o = a ? n.timestamp : performance.now();
+ r = !1, a || (n.delta = i ? 1e3 / 60 : Math.max(Math.min(o - n.timestamp, dee), 1)), n.timestamp = o, n.isProcessing = !0, s.process(n), c.process(n), l.process(n), u.process(n), d.process(n), f.process(n), p.process(n), m.process(n), n.isProcessing = !1, r && t && (i = !1, e(h));
}, g = () => {
r = !0, i = !0, n.isProcessing || e(h);
};
return {
- schedule: hg.reduce((e, t) => {
+ schedule: mg.reduce((e, t) => {
let n = o[t];
return e[t] = (e, t = !1, i = !1) => (r || g(), n.schedule(e, t, i)), e;
}, {}),
cancel: (e) => {
- for (let t = 0; t < hg.length; t++) o[hg[t]].cancel(e);
+ for (let t = 0; t < mg.length; t++) o[mg[t]].cancel(e);
},
state: n,
steps: o
};
}
// node_modules/motion-dom/dist/es/frameloop/frame.mjs
-var { schedule: _g, cancel: vg, steps: yg } = /* @__PURE__ */ gg(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Mm, !0, oh), bg = (e) => {
+var { schedule: gg, cancel: _g, steps: vg } = /* @__PURE__ */ hg(typeof requestAnimationFrame < "u" ? requestAnimationFrame : jm, !0, ah), yg = (e) => {
let t = ({ timestamp: t }) => e(t);
return {
- start: (e = !0) => _g.update(t, e),
- stop: () => vg(t),
- now: () => oh.isProcessing ? oh.timestamp : lh.now()
+ start: (e = !0) => gg.update(t, e),
+ stop: () => _g(t),
+ now: () => ah.isProcessing ? ah.timestamp : ch.now()
};
-}, xg = (e, t, n = 10) => {
+}, bg = (e, t, n = 10) => {
let r = "", i = Math.max(Math.round(t / n), 2);
for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
return `linear(${r.substring(0, r.length - 2)})`;
-}, Sg = 2e4;
-function Cg(e, t = 50, n = Sg, r) {
+}, xg = 2e4;
+function Sg(e, t = 50, n = xg, r) {
let i = 0, a = e.next(i);
for (r?.push(a.value); !a.done && i < n;) i += t, a = e.next(i), r?.push(a.value);
return i >= n ? Infinity : i;
}
// node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
-function wg(e, t = 100, n) {
+function Cg(e, t = 100, n) {
let { keyframes: r, velocity: i } = e, a = r && r[r.length - 1] - r[0], o = n({
...e,
velocity: i && a ? i * t / a : i,
keyframes: [0, t]
- }), s = Math.min(Cg(o), Sg);
+ }), s = Math.min(Sg(o), xg);
return {
type: "keyframes",
ease: (e) => o.next(s * e).value / t,
- duration: /* @__PURE__ */ Lm(s)
+ duration: /* @__PURE__ */ Im(s)
};
}
// node_modules/motion-dom/dist/es/animation/generators/spring.mjs
-var Tg = 100, Eg = 10, dee = 1, fee = 800, Dg = .3, pee = .3, mee = .01, hee = 2, gee = .005, _ee = .5, vee = .01, yee = 10, Og = .05, kg = (e) => e < 0 ? 1 / Math.max(1 + e, Og) : Math.max(1 - e, Og);
-function Ag(e, t) {
+var wg = 100, Tg = 10, fee = 1, pee = 800, Eg = .3, mee = .3, hee = .01, gee = 2, _ee = .005, vee = .5, yee = .01, bee = 10, Dg = .05, Og = (e) => e < 0 ? 1 / Math.max(1 + e, Dg) : Math.max(1 - e, Dg);
+function kg(e, t) {
if (!(e > 1)) return 1;
let n = Math.sqrt(e * e - 1), r = e - n, i = e + n, a = 2 * n * Math.exp(-t) * (1 + t);
- return Mg((e) => i * Math.exp(-r * e) - r * Math.exp(-i * e) - a, (e) => Math.exp(-i * e) - Math.exp(-r * e), t) / t;
+ return jg((e) => i * Math.exp(-r * e) - r * Math.exp(-i * e) - a, (e) => Math.exp(-i * e) - Math.exp(-r * e), t) / t;
}
-function jg(e, t) {
+function Ag(e, t) {
return e * Math.sqrt(1 - t * t);
}
-var bee = 12;
-function Mg(e, t, n) {
+var xee = 12;
+function jg(e, t, n) {
let r = n;
- for (let n = 1; n < bee; n++) r -= e(r) / t(r);
+ for (let n = 1; n < xee; n++) r -= e(r) / t(r);
return r;
}
-var Ng = .001;
-function xee({ duration: e = fee, bounce: t = Dg }) {
- let n, r, i = kg(t);
- e = Em(vee, yee, /* @__PURE__ */ Lm(e)), i < 1 ? (n = (t) => {
- let n = t * i, r = n * e, a = jg(t, i), o = Math.exp(-r);
- return Ng - n / a * o;
+var Mg = .001;
+function See({ duration: e = pee, bounce: t = Eg }) {
+ let n, r, i = Og(t);
+ e = Tm(yee, bee, /* @__PURE__ */ Im(e)), i < 1 ? (n = (t) => {
+ let n = t * i, r = n * e, a = Ag(t, i), o = Math.exp(-r);
+ return Mg - n / a * o;
}, r = (t) => {
- let r = t * i * e, a = i * i * t * t * e, o = Math.exp(-r), s = jg(t * t, i);
- return (-n(t) + Ng > 0 ? -1 : 1) * -a * o / s;
+ let r = t * i * e, a = i * i * t * t * e, o = Math.exp(-r), s = Ag(t * t, i);
+ return (-n(t) + Mg > 0 ? -1 : 1) * -a * o / s;
}) : (n = (t) => -.001 + Math.exp(-t * e) * (t * e + 1), r = (t) => Math.exp(-t * e) * (-t * (e * e)));
- let a = 5 / e, o = Mg(n, r, a), s = o * Ag(i, o * e), c = s * s;
+ let a = 5 / e, o = jg(n, r, a), s = o * kg(i, o * e), c = s * s;
return {
stiffness: c,
damping: i * 2 * Math.sqrt(c),
- duration: /* @__PURE__ */ Im(e)
+ duration: /* @__PURE__ */ Fm(e)
};
}
-var Pg = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;
-function Fg(e, t) {
- if (Pg(e, t)) return e;
+var Ng = (e, t) => (t ? e >= 0 : e > 0) && e < Infinity;
+function Pg(e, t) {
+ if (Ng(e, t)) return e;
}
-function See(e) {
- let t = Fg(e.stiffness), n = Fg(e.damping, !0), r = Fg(e.mass), i = {
+function Cee(e) {
+ let t = Pg(e.stiffness), n = Pg(e.damping, !0), r = Pg(e.mass), i = {
...e,
- stiffness: t ?? Tg,
- damping: n ?? Eg,
- mass: r ?? dee,
+ stiffness: t ?? wg,
+ damping: n ?? Tg,
+ mass: r ?? fee,
isResolvedFromDuration: !1,
isTimeDefined: (t ?? n ?? r) === void 0 && (e.duration !== void 0 || e.bounce !== void 0)
};
if (i.isTimeDefined) {
if (e.visualDuration) {
- let t = kg(e.bounce || 0), n = 2 * Math.PI / (e.visualDuration * 1.2) * Ag(t, 2 * Math.PI / 1.2);
+ let t = Og(e.bounce || 0), n = 2 * Math.PI / (e.visualDuration * 1.2) * kg(t, 2 * Math.PI / 1.2);
i.stiffness = n * n, i.damping = 2 * t * Math.sqrt(i.stiffness);
- } else Object.assign(i, xee(i)), i.isResolvedFromDuration = !0;
- Pg(i.stiffness) && Pg(i.damping, !0) || (i.stiffness = Tg, i.damping = Eg);
+ } else Object.assign(i, See(i)), i.isResolvedFromDuration = !0;
+ Ng(i.stiffness) && Ng(i.damping, !0) || (i.stiffness = wg, i.damping = Tg);
}
return i;
}
-function Ig(e = pee, t = Dg) {
+function Fg(e = mee, t = Eg) {
let n = typeof e == "object" ? e : {
visualDuration: e,
keyframes: [0, 1],
@@ -16391,7 +16391,7 @@ function Ig(e = pee, t = Dg) {
}, r = n.keyframes[0], i = n.keyframes[n.keyframes.length - 1], a = {
done: !1,
value: r
- }, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = See({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ Lm(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ Lm(Math.sqrt(o / c)), h = p * m, g = {
+ }, { stiffness: o, damping: s, mass: c, duration: l, isResolvedFromDuration: u, isTimeDefined: d } = Cee({ ...n }), f = (e) => d ? 0 : -/* @__PURE__ */ Im(e), p = s / (2 * Math.sqrt(o * c)), m = /* @__PURE__ */ Im(Math.sqrt(o / c)), h = p * m, g = {
target: i,
delta: i - r,
velocity: f(n.velocity || 0) || 0,
@@ -16399,12 +16399,12 @@ function Ig(e = pee, t = Dg) {
restDelta: 0
}, _ = () => {
let e = Math.abs(g.delta) < 5;
- g.restSpeed = n.restSpeed || (e ? mee : hee), g.restDelta = n.restDelta || (e ? gee : _ee);
+ g.restSpeed = n.restSpeed || (e ? hee : gee), g.restDelta = n.restDelta || (e ? _ee : vee);
};
_();
let v, y, b;
if (p < 1) {
- let e = jg(m, p), t = {
+ let e = Ag(m, p), t = {
A: 0,
sinC: 0,
cosC: 0,
@@ -16442,30 +16442,30 @@ function Ig(e = pee, t = Dg) {
retarget: (e, t) => {
g.target = e[e.length - 1], g.delta = g.target - e[0], g.velocity = f(t), n.restSpeed && n.restDelta || _(), S.calculatedDuration = x, a.done = !1, b();
},
- velocity: (e) => /* @__PURE__ */ Im(y(e)),
+ velocity: (e) => /* @__PURE__ */ Fm(y(e)),
next: (e) => {
let t = v(e);
if (u) a.done = e >= l;
else {
- let n = /* @__PURE__ */ Im(y(e));
+ let n = /* @__PURE__ */ Fm(y(e));
a.done = Math.abs(n) <= g.restSpeed && Math.abs(g.target - t) <= g.restDelta;
}
return a.value = a.done ? g.target : t, a;
},
toString: () => {
- let e = Math.min(Cg(S), Sg), t = xg((t) => S.next(e * t).value, e, 30);
+ let e = Math.min(Sg(S), xg), t = bg((t) => S.next(e * t).value, e, 30);
return e + "ms " + t;
},
toTransition: () => {}
};
return S;
}
-var Lg = /* @__PURE__ */ Object.assign(Ig, { applyToOptions: (e) => {
- let t = wg(e, 100, Ig);
- return e.ease = t.ease, e.duration = /* @__PURE__ */ Im(t.duration), e.type = "keyframes", e;
+var Ig = /* @__PURE__ */ Object.assign(Fg, { applyToOptions: (e) => {
+ let t = Cg(e, 100, Fg);
+ return e.ease = t.ease, e.duration = /* @__PURE__ */ Fm(t.duration), e.type = "keyframes", e;
} });
// node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
-function Rg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
+function Lg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
let d = e[0], f = {
done: !1,
value: d
@@ -16475,7 +16475,7 @@ function Rg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
let t = v(e);
f.done = Math.abs(t) <= l, f.value = f.done ? _ : e ? _ + t : d;
}, b, x, S = (e) => {
- p(f.value) && (b = e, x = Lg({
+ p(f.value) && (b = e, x = Ig({
keyframes: [f.value, m(f.value)],
velocity: -v(e) / r * 1e3,
damping: i,
@@ -16493,64 +16493,64 @@ function Rg({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
};
}
// node_modules/motion-dom/dist/es/utils/interpolate.mjs
-function Cee(e, t, n) {
- let r = [], i = Dm.mix || mg, a = e.length - 1;
+function wee(e, t, n) {
+ let r = [], i = Em.mix || pg, a = e.length - 1;
for (let o = 0; o < a; o++) {
let a = n?.(e[o], e[o + 1]) || i(e[o], e[o + 1]);
- t && (a = Nm(Array.isArray(t) ? t[o] || Mm : t, a)), r.push(a);
+ t && (a = Mm(Array.isArray(t) ? t[o] || jm : t, a)), r.push(a);
}
return r;
}
-function zg(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
+function Rg(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
let a = e.length;
if (a === 1) return () => t[0];
if (a === 2 && t[0] === t[1]) return () => t[1];
let o = e[0] === e[1];
e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
- let s = Cee(t, r, i), c = s.length, l = (n) => {
+ let s = wee(t, r, i), c = s.length, l = (n) => {
if (o && n < e[0]) return t[0];
let r = 0;
if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
- let i = /* @__PURE__ */ Pm(e[r], e[r + 1], n);
+ let i = /* @__PURE__ */ Nm(e[r], e[r + 1], n);
return s[r](i);
};
- return n ? (t) => l(Em(e[0], e[a - 1], t)) : l;
+ return n ? (t) => l(Tm(e[0], e[a - 1], t)) : l;
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
-function Bg(e, t) {
+function zg(e, t) {
let n = e[e.length - 1];
for (let r = 1; r <= t; r++) {
- let i = /* @__PURE__ */ Pm(0, t, r);
- e.push(og(n, 1, i));
+ let i = /* @__PURE__ */ Nm(0, t, r);
+ e.push(ag(n, 1, i));
}
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
-function Vg(e) {
+function Bg(e) {
let t = [0];
- return Bg(t, e.length - 1), t;
+ return zg(t, e.length - 1), t;
}
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
-function wee(e, t) {
+function Tee(e, t) {
return e.map((e) => e * t);
}
// node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
-function Tee(e, t) {
- return e.map(() => t || $m).splice(0, e.length - 1);
+function Eee(e, t) {
+ return e.map(() => t || Qm).splice(0, e.length - 1);
}
-function Hg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", mixer: i }) {
- let a = typeof t[0] == "number" ? void 0 : i, o = /* @__PURE__ */ eh(r) ? r.map(ah) : ah(r) || $m, s = {
+function Vg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut", mixer: i }) {
+ let a = typeof t[0] == "number" ? void 0 : i, o = /* @__PURE__ */ $m(r) ? r.map(ih) : ih(r) || Qm, s = {
done: !1,
value: t[0]
};
if (!a && t.length === 2 && !Array.isArray(o) && (!n || n.length !== 2 || n[0] === 0 && n[1] === 1)) {
- let [n, r] = t, i = n === r ? void 0 : (Dm.mix || mg)(n, r);
+ let [n, r] = t, i = n === r ? void 0 : (Em.mix || pg)(n, r);
return {
calculatedDuration: e,
- next: (t) => (s.value = i ? i(o(e > 0 ? Em(0, 1, t / e) : 1)) : r, s.done = t >= e, s)
+ next: (t) => (s.value = i ? i(o(e > 0 ? Tm(0, 1, t / e) : 1)) : r, s.done = t >= e, s)
};
}
- let c = zg(wee(n && n.length === t.length ? n : Vg(t), e), t, {
- ease: Array.isArray(o) ? o : Tee(t, o),
+ let c = Rg(Tee(n && n.length === t.length ? n : Bg(t), e), t, {
+ ease: Array.isArray(o) ? o : Eee(t, o),
mixer: a
});
return {
@@ -16559,48 +16559,48 @@ function Hg({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut",
};
}
// node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
-var Eee = 5;
-function Dee(e, t, n) {
- let r = Math.max(t - Eee, 0);
- return /* @__PURE__ */ Rm(n - e(r), t - r);
+var Dee = 5;
+function Oee(e, t, n) {
+ let r = Math.max(t - Dee, 0);
+ return /* @__PURE__ */ Lm(n - e(r), t - r);
}
-function Ug(e, t, n = 0) {
- return t <= 0 ? n : e.velocity ? e.velocity(t) : Dee((t) => e.next(t).value, t, e.next(t).value);
+function Hg(e, t, n = 0) {
+ return t <= 0 ? n : e.velocity ? e.velocity(t) : Oee((t) => e.next(t).value, t, e.next(t).value);
}
// node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
-var Oee = (e) => e !== null;
-function Wg(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
- let a = e.filter(Oee), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
+var kee = (e) => e !== null;
+function Ug(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
+ let a = e.filter(kee), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
return !o || r === void 0 ? a[o] : r;
}
// node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
-var kee = {
- decay: Rg,
- inertia: Rg,
- tween: Hg,
- keyframes: Hg,
- spring: Lg
+var Aee = {
+ decay: Lg,
+ inertia: Lg,
+ tween: Vg,
+ keyframes: Vg,
+ spring: Ig
};
-function Gg(e) {
- typeof e.type == "string" && (e.type = kee[e.type]);
+function Wg(e) {
+ typeof e.type == "string" && (e.type = Aee[e.type]);
}
// node_modules/motion-dom/dist/es/animation/utils/resolve-start-time.mjs
-var Aee = 40, Kg = (e, t) => t - e > Aee && !Dm.useManualTiming ? t : e;
+var jee = 40, Gg = (e, t) => t - e > jee && !Em.useManualTiming ? t : e;
// node_modules/motion-dom/dist/es/animation/utils/notify-inspector.mjs
-function qg(e, t) {
+function Kg(e, t) {
return {
kind: e,
animation: t,
- timestamp: lh.now(),
- frameTimestamp: oh.timestamp,
- frameIsProcessing: oh.isProcessing
+ timestamp: ch.now(),
+ frameTimestamp: ah.timestamp,
+ frameIsProcessing: ah.isProcessing
};
}
-function Jg(e, t, n) {
+function qg(e, t, n) {
let r = globalThis.__MOTION_INSPECT__;
if (r) try {
r({
- ...qg("animation-start", e),
+ ...Kg("animation-start", e),
options: n ? {
...t,
...n
@@ -16608,17 +16608,17 @@ function Jg(e, t, n) {
});
} catch {}
}
-function jee(e, t) {
+function Mee(e, t) {
let n = globalThis.__MOTION_INSPECT__;
if (n) try {
n({
- ...qg("layout-animation-start", e),
+ ...Kg("layout-animation-start", e),
node: t
});
} catch {}
}
// node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
-var Yg = class {
+var Jg = class {
constructor() {
this.isResolved = !1;
}
@@ -16636,21 +16636,21 @@ var Yg = class {
then(e, t) {
return this.finished.then(e, t);
}
-}, Mee = (e) => e / 100, Xg = (e) => Math.round(e * 1e4) / 1e4, Zg = class extends Yg {
+}, Nee = (e) => e / 100, Yg = (e) => Math.round(e * 1e4) / 1e4, Xg = class extends Jg {
constructor(e) {
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
done: !1,
value: void 0
}, this.stop = () => {
let { motionValue: e } = this.options;
- e && e.updatedAt !== lh.now() && this.tick(lh.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
- }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), Jg(this, this.options);
+ e && e.updatedAt !== ch.now() && this.tick(ch.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
+ }, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause(), qg(this, this.options);
}
initAnimation() {
let { options: e } = this;
- Gg(e);
- let { type: t = Hg, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Hg;
- this.mixKeyframes = void 0, s !== Hg && typeof o[0] != "number" && (this.mixKeyframes = Nm(Mee, e.mixer?.(o[0], o[1]) || mg(o[0], o[1])), o = [0, 100]);
+ Wg(e);
+ let { type: t = Vg, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Vg;
+ this.mixKeyframes = void 0, s !== Vg && typeof o[0] != "number" && (this.mixKeyframes = Mm(Nee, e.mixer?.(o[0], o[1]) || pg(o[0], o[1])), o = [0, 100]);
let c = s(o === e.keyframes ? e : {
...e,
keyframes: o
@@ -16659,7 +16659,7 @@ var Yg = class {
...e,
keyframes: [...o].reverse(),
velocity: -a
- })), c.calculatedDuration === null && (c.calculatedDuration = Cg(c));
+ })), c.calculatedDuration === null && (c.calculatedDuration = Sg(c));
let { calculatedDuration: l } = c;
this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
}
@@ -16670,61 +16670,61 @@ var Yg = class {
let { generator: n, totalDuration: r, calculatedDuration: i } = this;
if (this.startTime === null) return n.next(0);
let { delay: a = 0, keyframes: o, type: s, onUpdate: c, finalKeyframe: l } = this.options;
- this.startTime === this.pendingStartTime && (this.startTime = Kg(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
+ this.startTime === this.pendingStartTime && (this.startTime = Gg(this.startTime, e)), this.pendingStartTime = void 0, this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
let u = this.currentTime - a * (this.playbackSpeed >= 0 ? 1 : -1), d = this.playbackSpeed >= 0 ? u < 0 : u > r;
this.currentTime = Math.max(u, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
let f = this.generate(this.currentTime, d), { done: p } = f;
d || (p = this.playbackSpeed >= 0 ? i < Infinity ? this.currentTime >= r : p : this.currentTime <= 0);
let m = this.holdTime === null && (this.state === "finished" || this.state === "running" && p);
- return m && s !== Rg && (f.value = Wg(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
+ return m && s !== Lg && (f.value = Ug(o, this.options, l, this.speed)), c && c(f.value), m && this.finish(), f;
}
at(e) {
- return this.holdTime ?? Xg((e - this.startTime) * this.playbackSpeed);
+ return this.holdTime ?? Yg((e - this.startTime) * this.playbackSpeed);
}
sampleAt(e, t) {
let { options: n, totalDuration: r } = this, i = this.at(e) - (n.delay || 0);
- return i >= r && n.type !== Rg ? Wg(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
+ return i >= r && n.type !== Lg ? Ug(n.keyframes, n, t ? void 0 : n.finalKeyframe) : this.generate(Math.max(i, 0), i < 0).value;
}
generate(e, t) {
let { generator: n, totalDuration: r, mixKeyframes: i, mirroredGenerator: a, resolvedDuration: o } = this, { keyframes: s, repeat: c, repeatType: l, repeatDelay: u } = this.options, d = e, f = n;
if (c) {
let t = Math.min(e, r) / o, n = Math.floor(t), i = t % 1;
- !i && t >= 1 && (i = 1), i === 1 && n--, n = Math.min(n, c + 1), n % 2 && (l === "reverse" ? (i = 1 - i, u && (i -= u / o)) : l === "mirror" && (f = a)), d = Em(0, 1, i) * o;
+ !i && t >= 1 && (i = 1), i === 1 && n--, n = Math.min(n, c + 1), n % 2 && (l === "reverse" ? (i = 1 - i, u && (i -= u / o)) : l === "mirror" && (f = a)), d = Tm(0, 1, i) * o;
}
let p;
return t ? (this.delayState.value = s[0], p = this.delayState) : p = f.next(d), i && !t && (p.value = i(p.value)), p;
}
get duration() {
- return /* @__PURE__ */ Lm(this.calculatedDuration);
+ return /* @__PURE__ */ Im(this.calculatedDuration);
}
get iterationDuration() {
- return this.duration + /* @__PURE__ */ Lm(this.options.delay ?? 0);
+ return this.duration + /* @__PURE__ */ Im(this.options.delay ?? 0);
}
get time() {
- return /* @__PURE__ */ Lm(this.currentTime);
+ return /* @__PURE__ */ Im(this.currentTime);
}
set time(e) {
- e = /* @__PURE__ */ Im(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
+ e = /* @__PURE__ */ Fm(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
}
getGeneratorVelocity() {
- return Ug(this.generator, this.currentTime, this.options.velocity);
+ return Hg(this.generator, this.currentTime, this.options.velocity);
}
get speed() {
return this.playbackSpeed;
}
set speed(e) {
let t = this.playbackSpeed !== e;
- t && this.driver && this.updateTime(lh.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ Lm(this.currentTime));
+ t && this.driver && this.updateTime(ch.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ Im(this.currentTime));
}
play() {
if (this.isStopped) return;
- let { driver: e = bg, startTime: t } = this.options;
+ let { driver: e = yg, startTime: t } = this.options;
this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
let n = this.driver.now();
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? (this.pendingStartTime = n) : this.startTime = n - this.holdTime / (this.playbackSpeed || 1), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
}
pause() {
- this.state = "paused", this.updateTime(lh.now()), this.holdTime = this.currentTime;
+ this.state = "paused", this.updateTime(ch.now()), this.holdTime = this.currentTime;
}
complete() {
this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
@@ -16744,51 +16744,51 @@ var Yg = class {
attachTimeline(e) {
return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
}
-}, Nee = /* @__PURE__ */ new Set([
+}, Pee = /* @__PURE__ */ new Set([
"brightness",
"contrast",
"saturate",
"opacity"
]);
-function Pee(e) {
+function Fee(e) {
let [t, n] = e.slice(0, -1).split("(");
if (t === "drop-shadow") return e;
- let [r] = n.match(bh) || [];
+ let [r] = n.match(yh) || [];
if (!r) return e;
- let i = n.replace(r, ""), a = +!!Nee.has(t);
+ let i = n.replace(r, ""), a = +!!Pee.has(t);
return r !== n && (a *= 100), t + "(" + a + i + ")";
}
-var Fee = /\b([a-z-]*)\(.*?\)/gu, Qg = {
- ...rg,
+var Iee = /\b([a-z-]*)\(.*?\)/gu, Zg = {
+ ...ng,
getAnimatableNone: (e) => {
- let t = e.match(Fee);
- return t ? t.map(Pee).join(" ") : e;
+ let t = e.match(Iee);
+ return t ? t.map(Fee).join(" ") : e;
}
-}, $g = {
- ...rg,
+}, Qg = {
+ ...ng,
getAnimatableNone: (e) => {
- let t = rg.parse(e);
- return rg.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
+ let t = ng.parse(e);
+ return ng.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
...e,
alpha: 1
} : e));
}
-}, e_ = {
- ..._h,
+}, $g = {
+ ...gh,
transform: Math.round
-}, t_ = {
- rotate: Mh,
- pathRotation: Mh,
- rotateX: Mh,
- rotateY: Mh,
- rotateZ: Mh,
- scale: yh,
- scaleX: yh,
- scaleY: yh,
- scaleZ: yh,
- skew: Mh,
- skewX: Mh,
- skewY: Mh,
+}, e_ = {
+ rotate: jh,
+ pathRotation: jh,
+ rotateX: jh,
+ rotateY: jh,
+ rotateZ: jh,
+ scale: vh,
+ scaleX: vh,
+ scaleY: vh,
+ scaleZ: vh,
+ skew: jh,
+ skewX: jh,
+ skewY: jh,
distance: G,
translateX: G,
translateY: G,
@@ -16798,11 +16798,11 @@ var Fee = /\b([a-z-]*)\(.*?\)/gu, Qg = {
z: G,
perspective: G,
transformPerspective: G,
- opacity: vh,
- originX: Ih,
- originY: Ih,
+ opacity: _h,
+ originX: Fh,
+ originY: Fh,
originZ: G
-}, n_ = {
+}, t_ = {
borderWidth: G,
borderTopWidth: G,
borderRightWidth: G,
@@ -16853,38 +16853,38 @@ var Fee = /\b([a-z-]*)\(.*?\)/gu, Qg = {
fontSize: G,
backgroundPositionX: G,
backgroundPositionY: G,
+ ...e_,
+ zIndex: $g,
+ fillOpacity: _h,
+ strokeOpacity: _h,
+ numOctaves: $g
+}, Lee = {
...t_,
- zIndex: e_,
- fillOpacity: vh,
- strokeOpacity: vh,
- numOctaves: e_
-}, Iee = {
- ...n_,
- color: Rh,
- backgroundColor: Rh,
- outlineColor: Rh,
- fill: Rh,
- stroke: Rh,
- borderColor: Rh,
- borderTopColor: Rh,
- borderRightColor: Rh,
- borderBottomColor: Rh,
- borderLeftColor: Rh,
- filter: Qg,
- WebkitFilter: Qg,
- mask: $g,
- WebkitMask: $g
-}, r_ = (e) => Iee[e], Lee = /*@__PURE__*/ new Set([Qg, $g]);
-function i_(e, t) {
- let n = r_(e);
- return Lee.has(n) || (n = rg), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
+ color: Lh,
+ backgroundColor: Lh,
+ outlineColor: Lh,
+ fill: Lh,
+ stroke: Lh,
+ borderColor: Lh,
+ borderTopColor: Lh,
+ borderRightColor: Lh,
+ borderBottomColor: Lh,
+ borderLeftColor: Lh,
+ filter: Zg,
+ WebkitFilter: Zg,
+ mask: Qg,
+ WebkitMask: Qg
+}, n_ = (e) => Lee[e], Ree = /*@__PURE__*/ new Set([Zg, Qg]);
+function r_(e, t) {
+ let n = n_(e);
+ return Ree.has(n) || (n = ng), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
}
// node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
-function a_(e) {
+function i_(e) {
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
}
// node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
-var o_ = (e) => e * 180 / Math.PI, s_ = (e) => c_(o_(Math.atan2(e[1], e[0]))), Ree = {
+var a_ = (e) => e * 180 / Math.PI, o_ = (e) => s_(a_(Math.atan2(e[1], e[0]))), zee = {
x: 4,
y: 5,
translateX: 4,
@@ -16893,44 +16893,44 @@ var o_ = (e) => e * 180 / Math.PI, s_ = (e) => c_(o_(Math.atan2(e[1], e[0]))), R
scaleY: 3,
scaleZ: () => 1,
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
- rotate: s_,
- rotateZ: s_,
- skewX: (e) => o_(Math.atan(e[1])),
- skewY: (e) => o_(Math.atan(e[2])),
+ rotate: o_,
+ rotateZ: o_,
+ skewX: (e) => a_(Math.atan(e[1])),
+ skewY: (e) => a_(Math.atan(e[2])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
-}, c_ = (e) => (e %= 360, e < 0 && (e += 360), e), l_ = s_, u_ = (e) => Math.hypot(e[0], e[1]), d_ = (e) => Math.hypot(e[4], e[5]), zee = {
+}, s_ = (e) => (e %= 360, e < 0 && (e += 360), e), c_ = o_, l_ = (e) => Math.hypot(e[0], e[1]), u_ = (e) => Math.hypot(e[4], e[5]), Bee = {
x: 12,
y: 13,
z: 14,
translateX: 12,
translateY: 13,
translateZ: 14,
- scaleX: u_,
- scaleY: d_,
+ scaleX: l_,
+ scaleY: u_,
scaleZ: (e) => Math.hypot(e[8], e[9], e[10]),
- scale: (e) => (u_(e) + d_(e)) / 2,
- rotateX: (e) => c_(o_(Math.atan2(e[6], e[5]))),
- rotateY: (e) => c_(o_(Math.atan2(-e[2], e[0]))),
- rotateZ: l_,
- rotate: l_,
- skewX: (e) => o_(Math.atan(e[4])),
- skewY: (e) => o_(Math.atan(e[1])),
+ scale: (e) => (l_(e) + u_(e)) / 2,
+ rotateX: (e) => s_(a_(Math.atan2(e[6], e[5]))),
+ rotateY: (e) => s_(a_(Math.atan2(-e[2], e[0]))),
+ rotateZ: c_,
+ rotate: c_,
+ skewX: (e) => a_(Math.atan(e[4])),
+ skewY: (e) => a_(Math.atan(e[1])),
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
};
-function f_(e) {
+function d_(e) {
return +!!e.includes("scale");
}
-function p_(e, t) {
- if (!e || e === "none") return f_(t);
+function f_(e, t) {
+ if (!e || e === "none") return d_(t);
let n = e.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);
- if (!n) return f_(t);
- let r = (n[1] ? zee : Ree)[t], i = n[2].split(",").map((e) => parseFloat(e));
+ if (!n) return d_(t);
+ let r = (n[1] ? Bee : zee)[t], i = n[2].split(",").map((e) => parseFloat(e));
return typeof r == "function" ? r(i) : i[r];
}
-var m_ = (e, t) => {
+var p_ = (e, t) => {
let { transform: n = "none" } = getComputedStyle(e);
- return p_(n, t);
-}, h_ = [
+ return f_(n, t);
+}, m_ = [
"transformPerspective",
"x",
"y",
@@ -16949,14 +16949,14 @@ var m_ = (e, t) => {
"skew",
"skewX",
"skewY"
-], g_ = /* @__PURE__ */ new Set([...h_, "pathRotation"]), __ = (e) => e === _h || e === G, Bee = /* @__PURE__ */ new Set([
+], h_ = /* @__PURE__ */ new Set([...m_, "pathRotation"]), g_ = (e) => e === gh || e === G, Vee = /* @__PURE__ */ new Set([
"x",
"y",
"z"
-]), Vee = /* @__PURE__ */ h_.filter((e) => !Bee.has(e));
-function Hee(e) {
+]), Hee = /* @__PURE__ */ m_.filter((e) => !Vee.has(e));
+function Uee(e) {
let t = [];
- return Vee.forEach((n) => {
+ return Hee.forEach((n) => {
let r = e.getValue(n);
if (r !== void 0) {
let e = r.get(), i = +!!n.startsWith("scale");
@@ -16965,16 +16965,16 @@ function Hee(e) {
}
}), t;
}
-var Uee = /* @__PURE__ */ new Set(["bottom", "right"]);
-function v_(e, t, n, r, i, a) {
+var Wee = /* @__PURE__ */ new Set(["bottom", "right"]);
+function __(e, t, n, r, i, a) {
let o = parseFloat(e);
if (!isNaN(o)) return o;
let { min: s, max: c } = t()[n], l = c - s;
return a === "border-box" ? l : l - parseFloat(r) - parseFloat(i);
}
-var y_ = ({ transform: e }) => p_(e, "x"), b_ = ({ transform: e }) => p_(e, "y"), x_ = {
- width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => v_(e, i, "x", t, n, r),
- height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => v_(e, i, "y", t, n, r),
+var v_ = ({ transform: e }) => f_(e, "x"), y_ = ({ transform: e }) => f_(e, "y"), b_ = {
+ width: ({ width: e, paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }, i) => __(e, i, "x", t, n, r),
+ height: ({ height: e, paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }, i) => __(e, i, "y", t, n, r),
top: ({ top: e }) => parseFloat(e),
left: ({ left: e }) => parseFloat(e),
bottom: ({ top: e }, t) => {
@@ -16985,20 +16985,20 @@ var y_ = ({ transform: e }) => p_(e, "x"), b_ = ({ transform: e }) => p_(e, "y")
let { x: n } = t();
return parseFloat(e) + (n.max - n.min);
},
- x: y_,
- y: b_,
- translateX: y_,
- translateY: b_
-}, S_ = /* @__PURE__ */ new Set(), C_ = !1, w_ = !1, T_ = !1;
-function E_() {
- if (w_) {
+ x: v_,
+ y: y_,
+ translateX: v_,
+ translateY: y_
+}, x_ = /* @__PURE__ */ new Set(), S_ = !1, C_ = !1, w_ = !1;
+function T_() {
+ if (C_) {
let e = [], t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
- S_.forEach((r) => {
- r.needsMeasurement && (e.push(r), t.add(r.element), Uee.has(r.name) && n.add(r.element));
+ x_.forEach((r) => {
+ r.needsMeasurement && (e.push(r), t.add(r.element), Wee.has(r.name) && n.add(r.element));
});
let r = /* @__PURE__ */ new Map();
n.forEach((e) => {
- let t = Hee(e);
+ let t = Uee(e);
t.length && (r.set(e, t), e.render());
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
e.render();
@@ -17010,29 +17010,29 @@ function E_() {
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
});
}
- w_ = !1, C_ = !1, S_.forEach((e) => e.complete(T_)), S_.clear();
+ C_ = !1, S_ = !1, x_.forEach((e) => e.complete(w_)), x_.clear();
}
-function D_() {
- S_.forEach((e) => {
- e.readKeyframes(), e.needsMeasurement && (w_ = !0);
+function E_() {
+ x_.forEach((e) => {
+ e.readKeyframes(), e.needsMeasurement && (C_ = !0);
});
}
-function Wee() {
- T_ = !0, D_(), E_(), T_ = !1;
+function Gee() {
+ w_ = !0, E_(), T_(), w_ = !1;
}
-function Gee(e, t, n) {
+function Kee(e, t, n) {
if (typeof e == "string") {
- if (Om(e) || Am(e)) return parseFloat(e);
- if (!rg.test(e) && rg.test(n)) return i_(t, n);
+ if (Dm(e) || km(e)) return parseFloat(e);
+ if (!ng.test(e) && ng.test(n)) return r_(t, n);
}
return e ?? void 0;
}
-var O_ = class {
+var D_ = class {
constructor(e, t, n, r, i, a = !1) {
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
}
scheduleResolve() {
- this.state = "scheduled", this.isAsync ? (S_.add(this), C_ || (C_ = !0, _g.read(D_), _g.resolveKeyframes(E_))) : (this.readKeyframes(), this.complete());
+ this.state = "scheduled", this.isAsync ? (x_.add(this), S_ || (S_ = !0, gg.read(E_), gg.resolveKeyframes(T_))) : (this.readKeyframes(), this.complete());
}
readKeyframes() {
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
@@ -17040,71 +17040,71 @@ var O_ = class {
let i = r?.get(), a = e[e.length - 1];
if (i !== void 0) e[0] = i;
else if (n && t) {
- let r = Gee(n.readValue(t, a), t, a);
+ let r = Kee(n.readValue(t, a), t, a);
r !== void 0 && (e[0] = r);
}
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
}
- a_(e);
+ i_(e);
}
setFinalKeyframe() {}
measureInitialState() {}
renderEndStyles() {}
measureEndState() {}
complete(e = !1) {
- this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), S_.delete(this);
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), x_.delete(this);
}
cancel() {
- this.state === "scheduled" && (S_.delete(this), this.state = "pending");
+ this.state === "scheduled" && (x_.delete(this), this.state = "pending");
}
resume() {
this.state === "pending" && this.scheduleResolve();
}
-}, k_ = (e) => e.startsWith("--");
+}, O_ = (e) => e.startsWith("--");
// node_modules/motion-dom/dist/es/render/dom/style-set.mjs
-function A_(e, t, n) {
- k_(t) ? e.style.setProperty(t, n) : e.style[t] = n;
+function k_(e, t, n) {
+ O_(t) ? e.style.setProperty(t, n) : e.style[t] = n;
}
// node_modules/motion-dom/dist/es/utils/supports/flags.mjs
-var Kee = {};
+var qee = {};
// node_modules/motion-dom/dist/es/utils/supports/memo.mjs
-function j_(e, t) {
- let n = /* @__PURE__ */ jm(e);
- return () => Kee[t] ?? n();
+function A_(e, t) {
+ let n = /* @__PURE__ */ Am(e);
+ return () => qee[t] ?? n();
}
// node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
-var qee = /* @__PURE__ */ j_(() => window.ScrollTimeline !== void 0, "scrollTimeline"), M_ = /*@__PURE__*/ j_(() => {
+var Jee = /* @__PURE__ */ A_(() => window.ScrollTimeline !== void 0, "scrollTimeline"), j_ = /*@__PURE__*/ A_(() => {
try {
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
} catch {
return !1;
}
return !0;
-}, "linearEasing"), N_ = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, P_ = {
+}, "linearEasing"), M_ = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, N_ = {
linear: "linear",
ease: "ease",
easeIn: "ease-in",
easeOut: "ease-out",
easeInOut: "ease-in-out",
- circIn: /*@__PURE__*/ N_([
+ circIn: /*@__PURE__*/ M_([
0,
.65,
.55,
1
]),
- circOut: /*@__PURE__*/ N_([
+ circOut: /*@__PURE__*/ M_([
.55,
0,
1,
.45
]),
- backIn: /*@__PURE__*/ N_([
+ backIn: /*@__PURE__*/ M_([
.31,
.01,
.66,
-.59
]),
- backOut: /*@__PURE__*/ N_([
+ backOut: /*@__PURE__*/ M_([
.33,
1.53,
.69,
@@ -17112,14 +17112,14 @@ var qee = /* @__PURE__ */ j_(() => window.ScrollTimeline !== void 0, "scrollTime
])
};
// node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
-function F_(e, t) {
- if (e) return typeof e == "function" ? M_() ? xg(e, t) : "ease-out" : /* @__PURE__ */ nh(e) ? N_(e) : Array.isArray(e) ? e.map((e) => F_(e, t) || P_.easeOut) : P_[e];
+function P_(e, t) {
+ if (e) return typeof e == "function" ? j_() ? bg(e, t) : "ease-out" : /* @__PURE__ */ th(e) ? M_(e) : Array.isArray(e) ? e.map((e) => P_(e, t) || N_.easeOut) : N_[e];
}
// node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
-function Jee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
+function Yee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
let u = { [t]: n };
c && (u.offset = c);
- let d = F_(s, i);
+ let d = P_(s, i);
Array.isArray(d) && (u.easing = d);
let f = {
delay: r,
@@ -17132,27 +17132,27 @@ function Jee(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTy
return l && (f.pseudoElement = l), e.animate(u, f);
}
// node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
-function I_(e) {
+function F_(e) {
return typeof e == "function" && "applyToOptions" in e;
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
-function Yee({ type: e, ...t }) {
- return I_(e) && M_() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
+function Xee({ type: e, ...t }) {
+ return F_(e) && j_() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
}
// node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
-var L_ = class extends Yg {
+var I_ = class extends Jg {
constructor(e) {
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e;
- let c = Yee(e);
- this.animation = Jee(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = this.onFinish = () => {
+ let c = Xee(e);
+ this.animation = Yee(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = this.onFinish = () => {
if (this.animation.onfinish = null, this.finishedTime = this.time, !i) {
- let e = Wg(r, this.options, o, this.speed);
- this.updateMotionValue?.(e), A_(t, n, e), this.animation.cancel();
+ let e = Ug(r, this.options, o, this.speed);
+ this.updateMotionValue?.(e), k_(t, n, e), this.animation.cancel();
}
s?.(), this.notifyFinished();
- }, Jg(this, e, c);
+ }, qg(this, e, c);
}
play() {
this.isStopped || (this.manualStartTime = null, this.animation.onfinish = this.onFinish, this.animation.play(), this.state === "finished" && this.updateFinished());
@@ -17178,18 +17178,18 @@ var L_ = class extends Yg {
}
get duration() {
let e = this.animation.effect?.getComputedTiming?.().duration || 0;
- return /* @__PURE__ */ Lm(Number(e));
+ return /* @__PURE__ */ Im(Number(e));
}
get iterationDuration() {
let { delay: e = 0 } = this.options || {};
- return this.duration + /* @__PURE__ */ Lm(e);
+ return this.duration + /* @__PURE__ */ Im(e);
}
get time() {
- return /* @__PURE__ */ Lm(Number(this.animation.currentTime) || 0);
+ return /* @__PURE__ */ Im(Number(this.animation.currentTime) || 0);
}
set time(e) {
let t = this.finishedTime !== null;
- this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ Im(e), t && this.animation.pause();
+ this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ Fm(e), t && this.animation.pause();
}
get speed() {
return this.animation.playbackRate;
@@ -17207,30 +17207,30 @@ var L_ = class extends Yg {
this.manualStartTime = this.animation.startTime = e;
}
attachTimeline({ timeline: e, onAttach: t, observe: n }) {
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = this.onFinish = null, e && qee() ? (this.animation.timeline = e, t?.(this.animation), Mm) : n(this);
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = this.onFinish = null, e && Jee() ? (this.animation.timeline = e, t?.(this.animation), jm) : n(this);
}
-}, R_ = {
- anticipate: qm,
- backInOut: Km,
- circInOut: Xm
+}, L_ = {
+ anticipate: Km,
+ backInOut: Gm,
+ circInOut: Ym
};
-function Xee(e) {
- return e in R_;
-}
function Zee(e) {
- typeof e.ease == "string" && Xee(e.ease) && (e.ease = R_[e.ease]);
+ return e in L_;
}
-var Qee = class extends L_ {
+function Qee(e) {
+ typeof e.ease == "string" && Zee(e.ease) && (e.ease = L_[e.ease]);
+}
+var $ee = class extends I_ {
constructor(e) {
- Zee(e), Gg(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
+ Qee(e), Wg(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
}
elapsed() {
- return this.state === "running" ? (lh.now() - this.startTime) * this.speed : this.time * 1e3;
+ return this.state === "running" ? (ch.now() - this.startTime) * this.speed : this.time * 1e3;
}
sample(e) {
if (!this.sampler) {
let { motionValue: e, onUpdate: t, onComplete: n, onPlay: r, onStop: i, element: a, ...o } = this.options;
- this.sampler = new Zg({
+ this.sampler = new Xg({
...o,
autoplay: !1
}), this.sampler.stop();
@@ -17248,40 +17248,40 @@ var Qee = class extends L_ {
t.set(e);
return;
}
- let { speed: i } = this, a = this.elapsed(), o = this.state === "running" && i ? Em(0, 10, a) : 0, s = this.sample(a);
- n && r && A_(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
+ let { speed: i } = this, a = this.elapsed(), o = this.state === "running" && i ? Tm(0, 10, a) : 0, s = this.sample(a);
+ n && r && k_(n, r, s), t.setWithVelocity(this.sample(a - o * Math.sign(i)), s, o / Math.abs(i || 1));
}
-}, z_ = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (rg.test(e) || e === "0") && !e.startsWith("url("));
+}, R_ = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (ng.test(e) || e === "0") && !e.startsWith("url("));
// node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
-function $ee(e) {
+function ete(e) {
let t = e[0];
if (e.length === 1) return !0;
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
}
-function ete(e, t, n, r) {
+function tte(e, t, n, r) {
let i = e[0];
if (i === null) return !1;
if (t === "display" || t === "visibility") return !0;
- let a = e[e.length - 1], o = z_(i, t), s = z_(a, t);
- return !o || !s ? !1 : $ee(e) || (n === "spring" || I_(n)) && r;
+ let a = e[e.length - 1], o = R_(i, t), s = R_(a, t);
+ return !o || !s ? !1 : ete(e) || (n === "spring" || F_(n)) && r;
}
// node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
-function B_(e) {
+function z_(e) {
e.duration = 0, e.type = "keyframes";
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
-var V_ = /* @__PURE__ */ new Set([
+var B_ = /* @__PURE__ */ new Set([
"opacity",
"clipPath",
"filter",
"transform"
-]), tte = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
-function nte(e) {
- for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && tte.test(e[t])) return !0;
+]), nte = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
+function rte(e) {
+ for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && nte.test(e[t])) return !0;
return !1;
}
// node_modules/motion-dom/dist/es/animation/waapi/utils/needs-mixer.mjs
-var H_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some((n, r) => r && e(t[r - 1], n)), U_ = /* @__PURE__ */ new Set([
+var V_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some((n, r) => r && e(t[r - 1], n)), H_ = /* @__PURE__ */ new Set([
"color",
"backgroundColor",
"outlineColor",
@@ -17292,54 +17292,54 @@ var H_ = ({ mixer: e, keyframes: t }) => e && typeof t[0] != "number" && t.some(
"borderRightColor",
"borderBottomColor",
"borderLeftColor"
-]), W_ = () => !Dm.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");
-function rte(e) {
+]), U_ = () => !Em.useManualTiming && Object.hasOwnProperty.call(Element.prototype, "animate");
+function ite(e) {
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e;
- if (!n || !(V_.has(n) || U_.has(n))) return !1;
+ if (!n || !(B_.has(n) || H_.has(n))) return !1;
let c = t?.owner?.current;
if (!(c instanceof HTMLElement) && !(c instanceof SVGElement)) return !1;
let { onUpdate: l, transformTemplate: u } = t.owner.getProps();
- return W_() && (V_.has(n) || U_.has(n) && nte(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia" && !H_(e);
+ return U_() && (B_.has(n) || H_.has(n) && rte(s)) && (n !== "transform" || !u) && !l && !r && i !== "mirror" && a !== 0 && o !== "inertia" && !V_(e);
}
// node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
-var G_ = (e, t) => t && typeof e == "number" ? t.transform(e) : e, ite = {
+var W_ = (e, t) => t && typeof e == "number" ? t.transform(e) : e, ate = {
x: "translateX",
y: "translateY",
z: "translateZ",
transformPerspective: "perspective"
-}, ate = h_.length, K_ = {}, q_ = (e, t, n = G_(t, t_[e])) => (K_[e] || (K_[e] = (ite[e] || e) + "(")) + n + ")", J_ = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");
-function ote(e, t, n) {
+}, ote = m_.length, G_ = {}, K_ = (e, t, n = W_(t, e_[e])) => (G_[e] || (G_[e] = (ate[e] || e) + "(")) + n + ")", q_ = (e, t) => (typeof t == "number" ? t : parseFloat(t)) === +!!e.startsWith("scale");
+function ste(e, t, n) {
let r = "";
- for (let i = 0; i < ate; i++) {
- let a = h_[i], o = e[a];
+ for (let i = 0; i < ote; i++) {
+ let a = m_[i], o = e[a];
if (o === void 0) continue;
- let s = n && (t[a] = G_(o, n_[a]));
- J_(a, o) || (r += q_(a, o, s || void 0) + " ");
+ let s = n && (t[a] = W_(o, t_[a]));
+ q_(a, o) || (r += K_(a, o, s || void 0) + " ");
}
let i = e.pathRotation;
- return i && (r += q_("rotate", i)), r = r.trim(), n ? n(t, r) : r || "none";
+ return i && (r += K_("rotate", i)), r = r.trim(), n ? n(t, r) : r || "none";
}
// node_modules/motion-dom/dist/es/animation/waapi/transforms/groups.mjs
-var Y_ = /* @__PURE__ */ new WeakMap(), ste = 200, X_ = .001, cte = .1, lte = .001, ute = 100, dte = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), Z_ = (e, t) => Math.abs(e - t) <= X_, Q_ = (e, t) => e - t, $_ = (e, t, n) => Vg(Array(n + 1)).map((n) => og(e, t, n)), ev = (e) => e.motionValue.owner, tv = (e) => Y_.get(e), nv = ({ state: e }) => e === "idle" || e === "finished", rv = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), fte = ({ name: e, motionValue: t }) => e && h_.includes(e) && t?.owner?.current instanceof HTMLElement && W_() && M_();
-function pte(e) {
- let t = ev(e), { onUpdate: n, transformTemplate: r } = t.getProps();
- return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (rv(t, "transform") || "none") === "none" && !rv(t, "pathRotation") && !t.projection?.isProjecting() && !H_(e);
+var J_ = /* @__PURE__ */ new WeakMap(), cte = 200, Y_ = .001, lte = .1, ute = .001, dte = 100, fte = (e) => /^(linear|ease(In|Out|InOut))$/.test(e), X_ = (e, t) => Math.abs(e - t) <= Y_, Z_ = (e, t) => e - t, Q_ = (e, t, n) => Bg(Array(n + 1)).map((n) => ag(e, t, n)), $_ = (e) => e.motionValue.owner, ev = (e) => J_.get(e), tv = ({ state: e }) => e === "idle" || e === "finished", nv = (e, t) => e.latestValues ? e.latestValues[t] : e.getValue(t)?.get(), pte = ({ name: e, motionValue: t }) => e && m_.includes(e) && t?.owner?.current instanceof HTMLElement && U_() && j_();
+function mte(e) {
+ let t = $_(e), { onUpdate: n, transformTemplate: r } = t.getProps();
+ return !e.isHandoff && !n && !e.hasOnUpdate && !r && e.type !== "inertia" && (nv(t, "transform") || "none") === "none" && !nv(t, "pathRotation") && !t.projection?.isProjecting() && !V_(e);
}
-var mte = class extends Zg {
+var hte = class extends Xg {
constructor(e) {
- let t = ev(e).current, { driver: n = bg } = e, r, i = pte(e);
+ let t = $_(e).current, { driver: n = yg } = e, r, i = mte(e);
e.driver = (e) => {
let i = n(e);
return {
js: i,
now: i.now,
start: (e = !0) => {
- let n = tv(t);
+ let n = ev(t);
!n || n.isJS ? i.start(e) : n.schedule(!1, !e);
},
stop: () => {
i.stop();
- let e = tv(t);
+ let e = ev(t);
e && !e.isFinishing && e.release(r);
}
};
@@ -17350,7 +17350,7 @@ var mte = class extends Zg {
};
}
get group() {
- return tv(ev(this.options).current);
+ return ev($_(this.options).current);
}
get js() {
return this.driver?.js;
@@ -17367,11 +17367,11 @@ var mte = class extends Zg {
return e?.tracks.has(this) && !e.isJS && this.canAccelerate && (t === "running" || t === "paused");
}
liveValue() {
- return this.isAccelerated() ? this.sampleAt(lh.now()) : void 0;
+ return this.isAccelerated() ? this.sampleAt(ch.now()) : void 0;
}
tween() {
- let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ nh(n) ? N_(n) : dte(n) && P_[n];
- if (o && !i && !r && e.length === 2 && t === Hg && this.holdTime === null) {
+ let { keyframes: e, type: t, ease: n, times: r, repeat: i, delay: a = 0 } = this.options, o = /* @__PURE__ */ th(n) ? M_(n) : fte(n) && N_[n];
+ if (o && !i && !r && e.length === 2 && t === Vg && this.holdTime === null) {
let e = this.startTime + a / this.speed;
return [
e,
@@ -17381,7 +17381,7 @@ var mte = class extends Zg {
}
}
boundaries(e, t) {
- let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || Hg) === Hg ? u || Vg(d) : [0, 1], m = n + o / r, h = [];
+ let { startTime: n, speed: r, resolvedDuration: i, options: a } = this, { delay: o = 0, repeat: s = 0, repeatDelay: c = 0, repeatType: l, times: u, keyframes: d, type: f } = a, p = (f || Vg) === Vg ? u || Bg(d) : [0, 1], m = n + o / r, h = [];
if (this.holdTime !== null || !(i > 0)) return h;
for (let n = Math.max(0, Math.floor((e - m) * r / i)); n <= s; n++) {
let a = m + n * i / r;
@@ -17397,11 +17397,11 @@ var mte = class extends Zg {
return parseFloat(this.sampleAt(e, !0));
}
sync() {
- let e = lh.now();
+ let e = ch.now();
this.options.motionValue.setWithVelocity(this.sampleAt(e - 10, !0), this.sampleAt(e, !0), 10);
}
play() {
- this.isStopped || ((this.group || hte(ev(this.options))).tracks.add(this), super.play());
+ this.isStopped || ((this.group || gte($_(this.options))).tracks.add(this), super.play());
}
pause() {
super.pause(), this.isAccelerated() && (this.sync(), this.group.schedule(!1));
@@ -17409,10 +17409,10 @@ var mte = class extends Zg {
complete() {
super.complete();
let { group: e } = this;
- e && !e.isJS && this.tick(lh.now());
+ e && !e.isJS && this.tick(ch.now());
}
get time() {
- return this.isAccelerated() ? /* @__PURE__ */ Lm(Em(0, this.totalDuration, this.at(lh.now()) - (this.options.delay || 0))) : super.time;
+ return this.isAccelerated() ? /* @__PURE__ */ Im(Tm(0, this.totalDuration, this.at(ch.now()) - (this.options.delay || 0))) : super.time;
}
set time(e) {
super.time = e, this.isAccelerated() && this.sync();
@@ -17421,13 +17421,13 @@ var mte = class extends Zg {
return this.canAccelerate = !1, this.group?.demote(!0), super.attachTimeline(e);
}
};
-function hte(e) {
+function gte(e) {
let t = e.current, n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), i = {}, a = [], o = /* @__PURE__ */ new Map(), s = [], c = !1, l = !1, u = !1, d = !1, f = -Infinity, p = (e) => {
for (let t of n) if (t.name === e) return !0;
}, m = (t, n) => {
let o = {};
- for (let s of t === void 0 ? h_ : a) {
- let a = r.get(s), c = t === void 0 ? rv(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
+ for (let s of t === void 0 ? m_ : a) {
+ let a = r.get(s), c = t === void 0 ? nv(e, s) : a ? a.sampleAt(n > t && !a.timing()[1] ? n : t) : i[s];
c !== void 0 && (o[s] = c);
}
return o;
@@ -17435,7 +17435,7 @@ function hte(e) {
let n = "";
for (let r in e) {
let i = e[r];
- t && J_(r, i) || (n += q_(r, i) + " ");
+ t && q_(r, i) || (n += K_(r, i) + " ");
}
return (t ? n.trim() : n) || "none";
}, g = (e, t) => h(m(e, t)), _ = (e = m()) => {
@@ -17450,7 +17450,7 @@ function hte(e) {
offset: t,
end: n
};
- e.startTime = lh.now() + t, n < Infinity && (e.onfinish = () => {
+ e.startTime = ch.now() + t, n < Infinity && (e.onfinish = () => {
r.isDone = !0, s.some((e) => e.end === Infinity) && (v(e), s = s.filter((e) => e !== r)), j.schedule(!1);
}), e.oncancel = () => s.includes(r) && j.demote(), s.push(r);
}, S = (e, t, n) => {
@@ -17461,32 +17461,32 @@ function hte(e) {
}
return r(t, n) > i / 2 ? [t, n] : [];
}, C = (e, t, n, r) => {
- let i = Math.min(ste, Math.max(2, Math.ceil((n - t) / 10)));
+ let i = Math.min(cte, Math.max(2, Math.ceil((n - t) / 10)));
if (r.length * 4 > i) return;
- let a = $_(t, n, i).concat(r).sort(Q_), o = (e) => /* @__PURE__ */ Pm(t, n, e), s, c;
+ let a = Q_(t, n, i).concat(r).sort(Z_), o = (e) => /* @__PURE__ */ Nm(t, n, e), s, c;
for (let n of e) {
- let e = n.numberAt(t), r = a.map((t) => n.numberAt(t) - e), i = r[r.length - 1], o = r.some((e) => Math.abs(e) * X_ > Math.abs(i)) ? 0 : i, l = r.map((e) => o ? e / o : e);
+ let e = n.numberAt(t), r = a.map((t) => n.numberAt(t) - e), i = r[r.length - 1], o = r.some((e) => Math.abs(e) * Y_ > Math.abs(i)) ? 0 : i, l = r.map((e) => o ? e / o : e);
if (o && !s) s = l, c = (t) => (n.numberAt(t) - e) / o;
- else if (l.some((e, t) => !Z_(e, o && s[t]))) return;
+ else if (l.some((e, t) => !X_(e, o && s[t]))) return;
}
- if (!s || s.every((e, t) => Z_(e, o(a[t])))) return "linear";
- let l = [], u = (e, t = c(e)) => l.push(Xg(t) + " " + Xg(o(e) * 100) + "%");
+ if (!s || s.every((e, t) => X_(e, o(a[t])))) return "linear";
+ let l = [], u = (e, t = c(e)) => l.push(Yg(t) + " " + Yg(o(e) * 100) + "%");
return s.forEach((e, t) => {
t && Math.abs(e - s[t - 1]) > .2 && S(c, a[t - 1], a[t]).forEach((e) => u(e)), u(a[t], e);
}), "linear(" + l + ")";
}, w = (e, t, n, r) => {
- let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? lte : cte))), o = (t, n, r) => {
+ let i = [t], a = (t, n) => e.every((e) => !(Math.abs(e.numberAt((t + n) / 2) - (e.numberAt(t) + e.numberAt(n)) / 2) > (e.name.startsWith("scale") ? ute : lte))), o = (t, n, r) => {
if (n - t < 1 || a(t, n)) i.push(n);
else if (r < 4) o(t, (t + n) / 2, r + 1), o((t + n) / 2, n, r + 1);
else {
for (let r of e) i.push(...S((e) => r.numberAt(e), t, n));
i.push(n);
}
- }, s = $_(t, n, Math.ceil((n - t) / 100));
+ }, s = Q_(t, n, Math.ceil((n - t) / 100));
for (let e of r) s.push(e, Math.min(e + .01, n));
let c = t;
- for (let e of s.sort(Q_)) e > c && o(c, e, 0), c = e;
- return i.sort(Q_);
+ for (let e of s.sort(Z_)) e > c && o(c, e, 0), c = e;
+ return i.sort(Z_);
}, T = (e) => {
let t;
for (let n of e) {
@@ -17497,7 +17497,7 @@ function hte(e) {
return t;
}, E = (e, t, n, r, i = { fill: "both" }, a) => {
let o = e.flatMap((e) => e.boundaries(t, n)), s = r || C(e, t, n, o), c = s ? [t, n] : w(e, t, n, o), l = c.map((e) => g(e, a)), u = { transform: l };
- return s || (u.offset = c.map((e) => /* @__PURE__ */ Pm(t, n, e))), l.every((e) => e === l[0]) && (_(m(t, a)), u = null), b(u, {
+ return s || (u.offset = c.map((e) => /* @__PURE__ */ Nm(t, n, e))), l.every((e) => e === l[0]) && (_(m(t, a)), u = null), b(u, {
...i,
duration: n - t,
easing: s || "linear"
@@ -17525,10 +17525,10 @@ function hte(e) {
d.push(e), c = Math.max(c, n);
}
}
- i = {}, a = h_.filter((t) => {
+ i = {}, a = m_.filter((t) => {
if (r.has(t)) return !0;
- let n = i[t] = rv(e, t);
- return n !== void 0 && !J_(t, n);
+ let n = i[t] = nv(e, t);
+ return n !== void 0 && !q_(t, n);
}), y(!1);
let m = !l && T(d);
try {
@@ -17574,18 +17574,18 @@ function hte(e) {
r && n.updatePlaybackRate && n.playState === "running" && Math.abs(Number(n.currentTime) - o) < 20 ? n.playbackRate !== r && n.updatePlaybackRate(r) : r ? (n.playbackRate = r, n.startTime = e - o / r) : (n.startTime = null, n.currentTime = o);
}
return !0;
- }, k = () => !n.size && (u = !0, tv(t) === j && Y_.delete(t), j.isJS || y(), !0), A = () => {
- let t = lh.now();
+ }, k = () => !n.size && (u = !0, ev(t) === j && J_.delete(t), j.isJS || y(), !0), A = () => {
+ let t = ch.now();
if (j.isJS || (j.isFinishing = !0, n.forEach((n) => {
let [r, a] = n.timing();
- n.state === "running" && n.speed > 0 && !a && r <= t + 1 && (n.complete(), i[n.name] = rv(e, n.name), o.has(n) || (c = !0));
- }), j.isFinishing = !1), l = !1, u || (n.forEach((e) => nv(e) && n.delete(e)), k())) return;
+ n.state === "running" && n.speed > 0 && !a && r <= t + 1 && (n.complete(), i[n.name] = nv(e, n.name), o.has(n) || (c = !0));
+ }), j.isFinishing = !1), l = !1, u || (n.forEach((e) => tv(e) && n.delete(e)), k())) return;
for (let e of n) if (!e.canAccelerate) return j.demote(!0);
j.isJS && (j.isJS = !1, c = !0, n.forEach((e) => e.js?.stop()));
let r = c, a = d;
if (c = d = !1, r || !O(t)) {
if (a) {
- if (t - f < ute) return j.demote();
+ if (t - f < dte) return j.demote();
f = t;
}
if (!D(t)) return j.demote();
@@ -17595,14 +17595,14 @@ function hte(e) {
isJS: !1,
isFinishing: !1,
schedule(e, t) {
- u || (c ||= e, d ||= !!t, l || (l = !0, oh.isProcessing ? _g.render(A, !1, !0) : queueMicrotask(A)));
+ u || (c ||= e, d ||= !!t, l || (l = !0, ah.isProcessing ? gg.render(A, !1, !0) : queueMicrotask(A)));
},
release(e) {
- nv(e) && n.delete(e), k() || j.schedule(!0);
+ tv(e) && n.delete(e), k() || j.schedule(!0);
},
check() {
if (!j.isJS) {
- for (let t in i) if (rv(e, t) !== i[t] && !p(t)) return j.schedule(!0, !0);
+ for (let t in i) if (nv(e, t) !== i[t] && !p(t)) return j.schedule(!0, !0);
}
},
demote(e) {
@@ -17611,40 +17611,40 @@ function hte(e) {
}), j.isJS = !0, o = /* @__PURE__ */ new Map(), y(), n.forEach((e) => e.state === "running" && e.js?.start()), !0;
}
};
- return Y_.set(t, j), j;
+ return J_.set(t, j), j;
}
// node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
-var gte = class extends Yg {
+var _te = class extends Jg {
constructor(e) {
super(), this.stop = () => {
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
- }, this.createdAt = lh.now();
+ }, this.createdAt = ch.now();
let { keyframes: t, name: n, motionValue: r, element: i } = e, a = e;
a.autoplay ??= !0, a.delay ??= 0, a.type ??= "keyframes", a.repeat ??= 0, a.repeatDelay ??= 0, a.repeatType ??= "loop";
- let o = i?.KeyframeResolver || O_;
+ let o = i?.KeyframeResolver || D_;
this.keyframeResolver = new o(t, (e, t, n) => this.onKeyframesResolved(e, t, a, !n), n, r, i), this.keyframeResolver?.scheduleResolve();
}
onKeyframesResolved(e, t, n, r) {
this.keyframeResolver = void 0;
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
- this.resolvedAt = lh.now();
- let u = ete(e, i, a, o);
- u || ((Dm.instantAnimations || !s) && l?.(Wg(e, n, t)), e[0] = e[e.length - 1], B_(n), n.repeat = 0);
+ this.resolvedAt = ch.now();
+ let u = tte(e, i, a, o);
+ u || ((Em.instantAnimations || !s) && l?.(Ug(e, n, t)), e[0] = e[e.length - 1], z_(n), n.repeat = 0);
let { onComplete: d } = n;
n.finalKeyframe = t, n.keyframes = e, n.onComplete = () => {
d?.(), this.notifyFinished();
};
- let f = u && !c && rte(n), p = !f && fte(n);
- r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Kg(this.createdAt, this.resolvedAt));
+ let f = u && !c && ite(n), p = !f && pte(n);
+ r && (f || p || this.resolvedAt !== this.createdAt) && (n.startTime ??= Gg(this.createdAt, this.resolvedAt));
let m;
if (f) {
n.element = n.motionValue?.owner?.current;
try {
- m = new Qee(n);
+ m = new $ee(n);
} catch {
- m = new Zg(n);
+ m = new Xg(n);
}
- } else m = p ? new mte(n) : new Zg(n);
+ } else m = p ? new hte(n) : new Xg(n);
this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
}
get finished() {
@@ -17657,7 +17657,7 @@ var gte = class extends Yg {
return this._animation?.liveValue?.();
}
get animation() {
- return this._animation || (this.keyframeResolver?.resume(), Wee()), this._animation;
+ return this._animation || (this.keyframeResolver?.resume(), Gee()), this._animation;
}
get duration() {
return this.animation.duration;
@@ -17698,7 +17698,7 @@ var gte = class extends Yg {
cancel() {
this._animation?.cancel(), this.keyframeResolver?.cancel();
}
-}, _te = class {
+}, vte = class {
constructor(e) {
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
}
@@ -17738,10 +17738,10 @@ var gte = class extends Yg {
return this.getAll("startTime");
}
get duration() {
- return iv(this.animations, "duration");
+ return rv(this.animations, "duration");
}
get iterationDuration() {
- return iv(this.animations, "iterationDuration");
+ return rv(this.animations, "iterationDuration");
}
runAll(e) {
this.animations.forEach((t) => t[e]());
@@ -17759,7 +17759,7 @@ var gte = class extends Yg {
this.runAll("complete");
}
};
-function iv(e, t) {
+function rv(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) {
let i = e[r][t];
@@ -17768,30 +17768,30 @@ function iv(e, t) {
return n;
}
// node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
-var av = class extends _te {
+var iv = class extends vte {
then(e, t) {
return this.finished.finally(e).then(() => {});
}
-}, ov = /* @__PURE__ */ new WeakMap(), vte = (e, t = "") => `${e}:${t}`;
-function yte(e) {
- let t = ov.get(e);
- return t || (t = /* @__PURE__ */ new Map(), ov.set(e, t)), t;
+}, av = /* @__PURE__ */ new WeakMap(), yte = (e, t = "") => `${e}:${t}`;
+function bte(e) {
+ let t = av.get(e);
+ return t || (t = /* @__PURE__ */ new Map(), av.set(e, t)), t;
}
// node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
-function sv(e, t, n, r = 0, i = 1) {
+function ov(e, t, n, r = 0, i = 1) {
let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
}
// node_modules/motion-dom/dist/es/value/index.mjs
-var cv = 30, bte = (e) => !isNaN(parseFloat(e)), lv = { current: void 0 }, uv = class {
+var sv = 30, xte = (e) => !isNaN(parseFloat(e)), cv = { current: void 0 }, lv = class {
constructor(e, t = {}) {
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
- let t = lh.now();
+ let t = ch.now();
if (this.updatedAt !== t && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(e), this.current !== this.prev && (this.dirty(), this.dependents)) for (let e of this.dependents) e.dirty();
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
}
setCurrent(e) {
- this.current = e, this.updatedAt = lh.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = bte(this.current));
+ this.current = e, this.updatedAt = ch.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = xte(this.current));
}
setPrevFrameValue(e = this.current) {
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
@@ -17801,16 +17801,16 @@ var cv = 30, bte = (e) => !isNaN(parseFloat(e)), lv = { current: void 0 }, uv =
}
on(e, t) {
var n;
- return e === "change" ? this.onChangeSubscribe(t) : ((n = this.events)[e] || (n[e] = new Fm())).add(t);
+ return e === "change" ? this.onChangeSubscribe(t) : ((n = this.events)[e] || (n[e] = new Pm())).add(t);
}
onChangeSubscribe(e) {
let { events: t } = this;
- return !t.change && !this.changeSubscriber ? this.changeSubscriber = e : (t.change || (t.change = new Fm(), t.change.add(this.changeSubscriber), this.changeSubscriber = void 0), t.change.add(e)), () => {
+ return !t.change && !this.changeSubscriber ? this.changeSubscriber = e : (t.change || (t.change = new Pm(), t.change.add(this.changeSubscriber), this.changeSubscriber = void 0), t.change.add(e)), () => {
this.changeSubscriber === e ? this.changeSubscriber = void 0 : t.change?.remove(e), this.stopIfUnobserved();
};
}
stopIfUnobserved() {
- _g.read(() => {
+ gg.read(() => {
!this.changeSubscriber && !this.events.change?.getSize() && this.stop();
});
}
@@ -17828,7 +17828,7 @@ var cv = 30, bte = (e) => !isNaN(parseFloat(e)), lv = { current: void 0 }, uv =
this.set(t), this.prev = void 0, this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt - n;
}
jump(e, t = !0) {
- t && (this.updatedAt = lh.now(), this.stop()), this.updateAndNotify(e), this.prev = e, this.prevUpdatedAt = this.prevFrameValue = void 0, this.stopPassiveEffect?.();
+ t && (this.updatedAt = ch.now(), this.stop()), this.updateAndNotify(e), this.prev = e, this.prevUpdatedAt = this.prevFrameValue = void 0, this.stopPassiveEffect?.();
}
dirty() {
let { current: e, changeSubscriber: t } = this;
@@ -17841,7 +17841,7 @@ var cv = 30, bte = (e) => !isNaN(parseFloat(e)), lv = { current: void 0 }, uv =
this.dependents?.delete(e);
}
get() {
- lv.current?.push(this);
+ cv.current?.push(this);
let e = this.animation?.liveValue?.();
return e === void 0 ? this.current : e;
}
@@ -17852,10 +17852,10 @@ var cv = 30, bte = (e) => !isNaN(parseFloat(e)), lv = { current: void 0 }, uv =
return this.prev;
}
getVelocity() {
- let e = lh.now();
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > cv) return 0;
- let t = Math.min(this.updatedAt - this.prevUpdatedAt, cv);
- return /* @__PURE__ */ Rm(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
+ let e = ch.now();
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > sv) return 0;
+ let t = Math.min(this.updatedAt - this.prevUpdatedAt, sv);
+ return /* @__PURE__ */ Lm(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
}
start(e) {
return this.stop(), new Promise((t) => {
@@ -17876,11 +17876,11 @@ var cv = 30, bte = (e) => !isNaN(parseFloat(e)), lv = { current: void 0 }, uv =
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect?.();
}
};
-function dv(e, t) {
- return new uv(e, t);
+function uv(e, t) {
+ return new lv(e, t);
}
// node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
-function fv(e, t) {
+function dv(e, t) {
if (e?.inherit && t) {
let { inherit: n, ...r } = e;
return {
@@ -17891,25 +17891,25 @@ function fv(e, t) {
return e;
}
// node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
-function pv(e, t) {
+function fv(e, t) {
let n = e?.[t] ?? e?.default ?? e;
- return n === e ? n : fv(n, e);
+ return n === e ? n : dv(n, e);
}
// node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
-var xte = {
+var Ste = {
type: "spring",
stiffness: 500,
damping: 25,
restSpeed: 10
-}, Ste = (e) => ({
+}, Cte = (e) => ({
type: "spring",
stiffness: 550,
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
restSpeed: 10
-}), Cte = {
+}), wte = {
type: "keyframes",
duration: .8
-}, wte = {
+}, Tte = {
type: "keyframes",
ease: [
.25,
@@ -17918,7 +17918,7 @@ var xte = {
1
],
duration: .3
-}, Tte = (e, { keyframes: t }) => t.length > 2 ? Cte : g_.has(e) ? e.startsWith("scale") ? Ste(t[1]) : xte : wte, Ete = /* @__PURE__ */ new Set([
+}, Ete = (e, { keyframes: t }) => t.length > 2 ? wte : h_.has(e) ? e.startsWith("scale") ? Cte(t[1]) : Ste : Tte, Dte = /* @__PURE__ */ new Set([
"when",
"delay",
"delayChildren",
@@ -17932,14 +17932,14 @@ var xte = {
"out",
"mixer"
]);
-function Dte(e) {
- for (let t in e) if (!Ete.has(t)) return !0;
+function Ote(e) {
+ for (let t in e) if (!Dte.has(t)) return !0;
return !1;
}
// node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
-var mv = (e, t, n, r = {}, i, a) => (o) => {
- let s = pv(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
- l -= /* @__PURE__ */ Im(c);
+var pv = (e, t, n, r = {}, i, a) => (o) => {
+ let s = fv(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
+ l -= /* @__PURE__ */ Fm(c);
let u = {
keyframes: Array.isArray(n) ? n : [null, n],
ease: "easeOut",
@@ -17957,195 +17957,195 @@ var mv = (e, t, n, r = {}, i, a) => (o) => {
element: a ? void 0 : i,
hasOnUpdate: !!s.onUpdate
};
- Dte(s) || Object.assign(u, Tte(e, u)), u.duration &&= /* @__PURE__ */ Im(u.duration), u.repeatDelay &&= /* @__PURE__ */ Im(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
+ Ote(s) || Object.assign(u, Ete(e, u)), u.duration &&= /* @__PURE__ */ Fm(u.duration), u.repeatDelay &&= /* @__PURE__ */ Fm(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
let d = !1;
- if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (B_(u), u.delay === 0 && (d = !0)), (Dm.instantAnimations || Dm.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, B_(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
- let e = Wg(u.keyframes, s);
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (z_(u), u.delay === 0 && (d = !0)), (Em.instantAnimations || Em.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, z_(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
+ let e = Ug(u.keyframes, s);
if (e !== void 0) {
- _g.update(() => {
+ gg.update(() => {
u.onUpdate(e), u.onComplete();
});
return;
}
}
- return s.isSync ? new Zg(u) : new gte(u);
-}, Ote = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
-function kte(e) {
- let t = Ote.exec(e);
+ return s.isSync ? new Xg(u) : new _te(u);
+}, kte = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
+function Ate(e) {
+ let t = kte.exec(e);
if (!t) return [,];
let [, n, r, i] = t;
return [`--${n ?? r}`, i];
}
-function hv(e, t, n = 1) {
- let [r, i] = kte(e);
+function mv(e, t, n = 1) {
+ let [r, i] = Ate(e);
if (!r) return;
let a = window.getComputedStyle(t).getPropertyValue(r);
if (a) {
let e = a.trim();
- return Om(e) ? parseFloat(e) : e;
+ return Dm(e) ? parseFloat(e) : e;
}
- return mh(i) ? hv(i, t, n + 1) : i;
+ return ph(i) ? mv(i, t, n + 1) : i;
}
// node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
-function Ate(e) {
+function jte(e) {
let t = [{}, {}];
return e?.values.forEach((e, n) => {
t[0][n] = e.get(), t[1][n] = e.getVelocity();
}), t;
}
-function gv(e, t, n, r) {
- let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...Ate(r)) : t;
+function hv(e, t, n, r) {
+ let i = (t) => typeof t == "function" ? t(n === void 0 ? e.custom : n, ...jte(r)) : t;
return t = i(t), typeof t == "string" && (t = e.variants && e.variants[t]), i(t);
}
// node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
-function _v(e, t, n) {
- return gv(e.getProps(), t, n, e);
+function gv(e, t, n) {
+ return hv(e.getProps(), t, n, e);
}
-var vv = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, yv = /* @__PURE__ */ new Set([
+var _v = (e, t) => t === "exit" ? e.presenceContext?.custom : void 0, vv = /* @__PURE__ */ new Set([
"width",
"height",
"top",
"left",
"right",
"bottom",
- ...h_
-]), jte = (e) => Array.isArray(e);
+ ...m_
+]), Mte = (e) => Array.isArray(e);
// node_modules/motion-dom/dist/es/render/utils/setters.mjs
-function Mte(e, t, n) {
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, dv(n));
+function Nte(e, t, n) {
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, uv(n));
}
-function Nte(e) {
- return jte(e) ? e[e.length - 1] || 0 : e;
+function Pte(e) {
+ return Mte(e) ? e[e.length - 1] || 0 : e;
}
-function Pte(e, t) {
- let { transitionEnd: n = {}, transition: r = {}, ...i } = _v(e, t) || {};
+function Fte(e, t) {
+ let { transitionEnd: n = {}, transition: r = {}, ...i } = gv(e, t) || {};
i = {
...i,
...n
};
- for (let t in i) Mte(e, t, Nte(i[t]));
+ for (let t in i) Nte(e, t, Pte(i[t]));
}
// node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
-var bv = (e) => !!(e && e.getVelocity);
+var yv = (e) => !!(e && e.getVelocity);
// node_modules/motion-dom/dist/es/value/will-change/is.mjs
-function Fte(e) {
- return !!(bv(e) && e.add);
+function Ite(e) {
+ return !!(yv(e) && e.add);
}
// node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
-function xv(e, t) {
+function bv(e, t) {
let n = e.getValue("willChange");
- if (Fte(n)) return n.add(t);
- if (!n && Dm.WillChange) {
- let n = new Dm.WillChange("auto");
+ if (Ite(n)) return n.add(t);
+ if (!n && Em.WillChange) {
+ let n = new Em.WillChange("auto");
e.addValue("willChange", n), n.add(t);
}
}
// node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.mjs
-var Sv = "data-framer-appear-id";
+var xv = "data-framer-appear-id";
// node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
-function Cv(e) {
- return e.props[Sv];
+function Sv(e) {
+ return e.props[xv];
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
-var Ite = typeof window < "u";
-function Lte({ protectedKeys: e, needsAnimating: t }, n) {
+var Lte = typeof window < "u";
+function Rte({ protectedKeys: e, needsAnimating: t }, n) {
let r = n in e && !t[n];
return t[n] = !1, r;
}
-function wv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
+function Cv(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
- a = a ? fv(a, c) : c;
+ a = a ? dv(a, c) : c;
let l = a?.reduceMotion, u = a?.skipAnimations;
r && (a = r);
let d = [], f = i && e.animationState?.getState()[i], p = a?.path;
p && (p.animateValues ? p.animateValues((t) => e.getValue(t, e.latestValues[t] ?? 0), s, a, n, d) : p.animateVisualElement?.(e, s, a, n, d));
for (let t in s) {
let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
- if (i === void 0 || f && Lte(f, t)) continue;
+ if (i === void 0 || f && Rte(f, t)) continue;
let o = {
delay: n,
- ...pv(f?.out[t] || a || {}, t)
+ ...fv(f?.out[t] || a || {}, t)
};
u && (o.skipAnimations = !0);
let c = r.get();
if (c !== void 0 && !r.isAnimating() && !Array.isArray(i) && i === c && !o.velocity) {
- _g.update(() => r.set(i));
+ gg.update(() => r.set(i));
continue;
}
let p = !1;
- if (Ite && window.MotionHandoffAnimation) {
- let n = Cv(e);
+ if (Lte && window.MotionHandoffAnimation) {
+ let n = Sv(e);
if (n) {
- let e = window.MotionHandoffAnimation(n, t, _g);
+ let e = window.MotionHandoffAnimation(n, t, gg);
e !== null && (o.startTime = e, p = !0);
}
}
- xv(e, t);
+ bv(e, t);
let m = l ?? e.shouldReduceMotion;
- r.start(mv(t, r, i, m && yv.has(t) ? { type: !1 } : o, e, p));
+ r.start(pv(t, r, i, m && vv.has(t) ? { type: !1 } : o, e, p));
let h = r.animation;
h && d.push(h);
}
if (o) {
- let t = () => _g.update(() => {
- o && Pte(e, o);
+ let t = () => gg.update(() => {
+ o && Fte(e, o);
});
d.length ? Promise.all(d).then(t) : t();
}
return d;
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
-function Tv(e, t, n = {}) {
- let r = _v(e, t, vv(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? wv(e, r, n) : []), o = (r = 0) => {
+function wv(e, t, n = {}) {
+ let r = gv(e, t, _v(e, n.type)), i = n.transitionOverride || (r?.transition ?? (e.getDefaultTransition() || {})), a = () => Promise.all(r ? Cv(e, r, n) : []), o = (r = 0) => {
let { variantChildren: a } = e, { delayChildren: o = 0, staggerChildren: s, staggerDirection: c } = i, l = [];
return a?.forEach((e) => {
- e.notify("AnimationStart", t), l.push(Tv(e, t, {
+ e.notify("AnimationStart", t), l.push(wv(e, t, {
...n,
- delay: r + (typeof o == "function" ? 0 : o) + sv(a, e, o, s, c)
+ delay: r + (typeof o == "function" ? 0 : o) + ov(a, e, o, s, c)
}).then(() => e.notify("AnimationComplete", t)));
}), Promise.all(l);
}, { when: s } = i;
return s ? s === "beforeChildren" ? a().then(() => o()) : o().then(a) : Promise.all([a(), o(n.delay)]);
}
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
-function Rte(e, t, n = {}) {
- return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => Tv(e, t, n))) : typeof t == "string" ? Tv(e, t, n) : Promise.all(wv(e, _v(e, t, n.custom), n))).then(() => {
+function zte(e, t, n = {}) {
+ return e.notify("AnimationStart", t), (Array.isArray(t) ? Promise.all(t.map((t) => wv(e, t, n))) : typeof t == "string" ? wv(e, t, n) : Promise.all(Cv(e, gv(e, t, n.custom), n))).then(() => {
e.notify("AnimationComplete", t);
});
}
// node_modules/motion-dom/dist/es/value/types/auto.mjs
-var zte = {
+var Bte = {
test: (e) => e === "auto",
parse: (e) => e
-}, Bte = (e) => (t) => t.test(e), Vte = [
- _h,
+}, Vte = (e) => (t) => t.test(e), Hte = [
+ gh,
G,
- Nh,
Mh,
- Fh,
+ jh,
Ph,
- zte
-], Ev = (e) => Vte.find(Bte(e));
+ Nh,
+ Bte
+], Tv = (e) => Hte.find(Vte(e));
// node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
-function Hte(e) {
- return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || Am(e);
+function Ute(e) {
+ return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || km(e);
}
// node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
-var Ute = /* @__PURE__ */ new Set([
+var Wte = /* @__PURE__ */ new Set([
"auto",
"none",
"0"
]);
-function Wte(e, t, n) {
+function Gte(e, t, n) {
let r = 0, i;
for (; r < e.length && !i;) {
let t = e[r];
- typeof t == "string" && !Ute.has(t) && Yh(t) && (i = e[r]), r++;
+ typeof t == "string" && !Wte.has(t) && Jh(t) && (i = e[r]), r++;
}
- if (i && n) for (let r of t) e[r] !== i && (e[r] = i_(n, i));
+ if (i && n) for (let r of t) e[r] !== i && (e[r] = r_(n, i));
}
// node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
-var Dv = class extends O_ {
+var Ev = class extends D_ {
constructor() {
super(...arguments), this.isAsync = !0;
}
@@ -18156,7 +18156,7 @@ var Dv = class extends O_ {
canReadNow() {
let { unresolvedKeyframes: e, element: t, motionValue: n } = this, r = e[0] ?? n?.get();
if (!t?.current || r === void 0) return !1;
- for (let t = 0; t < e.length; t++) if (gh(t ? e[t] : r)) return !1;
+ for (let t = 0; t < e.length; t++) if (hh(t ? e[t] : r)) return !1;
return !0;
}
readKeyframes() {
@@ -18165,32 +18165,32 @@ var Dv = class extends O_ {
super.readKeyframes();
for (let n = 0; n < e.length; n++) {
let r = e[n];
- if (typeof r == "string" && (r = r.trim(), mh(r))) {
- let i = hv(r, t.current);
+ if (typeof r == "string" && (r = r.trim(), ph(r))) {
+ let i = mv(r, t.current);
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
}
}
- if (this.resolveNoneKeyframes(), !yv.has(n) || e.length !== 2) return;
+ if (this.resolveNoneKeyframes(), !vv.has(n) || e.length !== 2) return;
let [r, i] = e;
if (typeof r == "number" && typeof i == "number") return;
- let a = Ev(r), o = Ev(i);
- if (gh(r) !== gh(i) && x_[n]) this.needsMeasurement = !0;
+ let a = Tv(r), o = Tv(i);
+ if (hh(r) !== hh(i) && b_[n]) this.needsMeasurement = !0;
else if (a !== o) {
- if (__(a) && __(o)) for (let t = 0; t < e.length; t++) {
+ if (g_(a) && g_(o)) for (let t = 0; t < e.length; t++) {
let n = e[t];
typeof n == "string" && (e[t] = parseFloat(n));
}
- else x_[n] && (this.needsMeasurement = !0);
+ else b_[n] && (this.needsMeasurement = !0);
}
}
resolveNoneKeyframes() {
let { unresolvedKeyframes: e, name: t } = this, n = [];
- for (let t = 0; t < e.length; t++) (e[t] === null || Hte(e[t])) && n.push(t);
- n.length && Wte(e, n, t);
+ for (let t = 0; t < e.length; t++) (e[t] === null || Ute(e[t])) && n.push(t);
+ n.length && Gte(e, n, t);
}
measure() {
let { element: e, name: t } = this;
- return x_[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
+ return b_[t](window.getComputedStyle(e.current), () => e.measureViewportBox());
}
measureInitialState() {
let { element: e, unresolvedKeyframes: t, name: n } = this;
@@ -18206,19 +18206,19 @@ var Dv = class extends O_ {
let n = t.length - 1, r = t[n];
t[n] = this.measure(), r !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = r), this.resolveNoneKeyframes();
}
-}, Ov = [
+}, Dv = [
"borderTopLeftRadius",
"borderTopRightRadius",
"borderBottomRightRadius",
"borderBottomLeftRadius"
-], Gte = /* @__PURE__ */ new Set([
+], Kte = /* @__PURE__ */ new Set([
"borderWidth",
"borderTopWidth",
"borderRightWidth",
"borderBottomWidth",
"borderLeftWidth",
"borderRadius",
- ...Ov,
+ ...Dv,
"width",
"maxWidth",
"height",
@@ -18261,21 +18261,21 @@ var Dv = class extends O_ {
"backgroundPositionY"
]);
// node_modules/motion-dom/dist/es/animation/keyframes/utils/apply-px-defaults.mjs
-function Kte(e, t) {
- for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Gte.has(t) && (e[n] = e[n] + "px");
+function qte(e, t) {
+ for (let n = 0; n < e.length; n++) typeof e[n] == "number" && Kte.has(t) && (e[n] = e[n] + "px");
}
// node_modules/motion-dom/dist/es/animation/animate/effects.mjs
-var kv = [];
-function qte(e) {
- Av(e), kv.unshift(e);
+var Ov = [];
+function Jte(e) {
+ kv(e), Ov.unshift(e);
}
-function Av(e) {
- Tm(kv, e);
+function kv(e) {
+ wm(Ov, e);
}
-function Jte(e) {
- return kv.find((t) => t.test(e));
+function Yte(e) {
+ return Ov.find((t) => t.test(e));
}
-function jv(e, t, n = {}, r) {
+function Av(e, t, n = {}, r) {
let i = [], { velocity: a, path: o } = n, s = n.reduceMotion ?? r?.shouldReduceMotion;
o?.animateValues && r && (t = { ...t }, o.animateValues(e, t, n, 0, i));
for (let o in t) {
@@ -18283,62 +18283,62 @@ function jv(e, t, n = {}, r) {
let c = t[o];
if (c === void 0) continue;
let l = e(o), u = l.get();
- u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? _g.update(() => l.set(c)) : (l.start(mv(o, l, c, s && yv.has(o) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
+ u !== void 0 && !l.isAnimating() && !Array.isArray(c) && c === u && !a ? gg.update(() => l.set(c)) : (l.start(pv(o, l, c, s && vv.has(o) ? { type: !1 } : n, r)), l.animation && i.push(l.animation));
}
let { transitionEnd: c } = t;
if (c) {
- let t = () => _g.update(() => {
+ let t = () => gg.update(() => {
for (let t in c) e(t).set(c[t]);
});
i.length ? Promise.all(i).then(t) : t();
}
return i;
}
-function Mv(e, t, n, r, i) {
- return jv((r) => {
+function jv(e, t, n, r, i) {
+ return Av((r) => {
let a = e.get(t, r);
if (!a) {
let o;
if (!i) {
let i = n[r];
- o = Yte(i) ?? e.read(t, r, i);
+ o = Xte(i) ?? e.read(t, r, i);
}
- a = dv(o, { owner: i }), e(t, { [r]: a });
+ a = uv(o, { owner: i }), e(t, { [r]: a });
}
return a;
}, n, r, i);
}
-function Yte(e) {
+function Xte(e) {
let t = Array.isArray(e) ? e[0] : void 0;
return t === null ? void 0 : t;
}
// node_modules/motion-dom/dist/es/utils/is-html-element.mjs
-function Nv(e) {
- return km(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
+function Mv(e) {
+ return Om(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
}
// node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
-function Pv(e) {
- return km(e) && "ownerSVGElement" in e;
+function Nv(e) {
+ return Om(e) && "ownerSVGElement" in e;
}
// node_modules/motion-dom/dist/es/scope/active.mjs
-var Fv = {};
-function Iv(e) {
- return Fv.current?.add(e), e;
+var Pv = {};
+function Fv(e) {
+ return Pv.current?.add(e), e;
}
-var Lv = (e) => Fv.current ? Fv.current.bind(e) : e;
+var Iv = (e) => Pv.current ? Pv.current.bind(e) : e;
// node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
-function Rv(e, t, n) {
+function Lv(e, t, n) {
if (e == null) return [];
if (e instanceof EventTarget) return [e];
if (typeof e == "string") {
- let r = t ? t.current : Fv.current?.root || document, i = n?.[e] ?? r.querySelectorAll(e);
+ let r = t ? t.current : Pv.current?.root || document, i = n?.[e] ?? r.querySelectorAll(e);
return i ? Array.from(i) : [];
}
return Array.from(e).filter((e) => e != null);
}
// node_modules/motion-dom/dist/es/effects/MotionValueState.mjs
-var Xte = class {
- constructor(e = _g.render) {
+var Zte = class {
+ constructor(e = gg.render) {
this.step = e, this.values = /* @__PURE__ */ new Map(), this.pending = [], this.numPending = 0, this.flush = () => {
let { pending: e, numPending: t } = this;
this.numPending = 0;
@@ -18381,10 +18381,10 @@ var Xte = class {
}
};
// node_modules/motion-dom/dist/es/effects/utils/create-effect.mjs
-function zv(e, { step: t, ...n } = {}) {
+function Rv(e, { step: t, ...n } = {}) {
let r = /* @__PURE__ */ new WeakMap();
return Object.assign((n, i) => {
- let a = r.get(n) ?? new Xte(t);
+ let a = r.get(n) ?? new Zte(t);
r.set(n, a);
let o = [];
for (let t in i) {
@@ -18401,83 +18401,83 @@ function zv(e, { step: t, ...n } = {}) {
});
}
// node_modules/motion-dom/dist/es/effects/style/transform.mjs
-function Zte(e) {
+function Qte(e) {
let t = "", { transformKeys: n = [], transformValues: r = {} } = e;
for (let e = 0; e < n.length; e++) {
let i = n[e], a = r[i].getCurrent();
- a !== void 0 && (J_(i, a) || (t += (t && " ") + q_(i, a)));
+ a !== void 0 && (q_(i, a) || (t += (t && " ") + K_(i, a)));
}
let i = e.get("pathRotation")?.get();
- return i && (t += (t && " ") + q_("rotate", i)), t || "none";
+ return i && (t += (t && " ") + K_("rotate", i)), t || "none";
}
// node_modules/motion-dom/dist/es/effects/style/index.mjs
-var Bv = /* @__PURE__ */ new Set([
+var zv = /* @__PURE__ */ new Set([
"originX",
"originY",
"originZ"
-]), Vv = (e, t) => G_(e.get(t)?.get(), n_[t]), Hv = (e, t, n, r) => {
+]), Bv = (e, t) => W_(e.get(t)?.get(), t_[t]), Vv = (e, t, n, r) => {
let i, a;
- if (g_.has(n)) {
+ if (h_.has(n)) {
if (n !== "pathRotation") {
let e = t.transformKeys ??= [];
- (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => h_.indexOf(e) - h_.indexOf(t)));
+ (t.transformValues ??= {})[n] = r, e.includes(n) || (e.push(n), e.sort((e, t) => m_.indexOf(e) - m_.indexOf(t)));
}
- t.get("transform") || (!Nv(e) && !t.get("transformBox") && Hv(e, t, "transformBox", new uv("fill-box")), t.set("transform", new uv("none"), () => {
- Y_.get(e)?.check(), e.style.transform = Zte(t);
+ t.get("transform") || (!Mv(e) && !t.get("transformBox") && Vv(e, t, "transformBox", new lv("fill-box")), t.set("transform", new lv("none"), () => {
+ J_.get(e)?.check(), e.style.transform = Qte(t);
})), a = t.get("transform");
- } else Bv.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new uv(""), () => {
- let n = Vv(t, "originX") ?? "50%", r = Vv(t, "originY") ?? "50%", i = Vv(t, "originZ") ?? 0;
+ } else zv.has(n) ? (t.get("transformOrigin") || t.set("transformOrigin", new lv(""), () => {
+ let n = Bv(t, "originX") ?? "50%", r = Bv(t, "originY") ?? "50%", i = Bv(t, "originZ") ?? 0;
e.style.transformOrigin = `${n} ${r} ${i}`;
- }), a = t.get("transformOrigin")) : i = k_(n) ? () => {
+ }), a = t.get("transformOrigin")) : i = O_(n) ? () => {
e.style.setProperty(n, r.getCurrent());
} : () => {
- e.style[n] = G_(r.getCurrent(), n_[n]);
+ e.style[n] = W_(r.getCurrent(), t_[n]);
};
return t.set(n, r, i, a);
-}, Qte = (e) => Nv(e) || Pv(e), Uv = (e, t) => {
- if (g_.has(t)) return m_(e, t);
- let n = getComputedStyle(e), r = k_(t) ? n.getPropertyValue(t) : n[t];
+}, $te = (e) => Mv(e) || Nv(e), Hv = (e, t) => {
+ if (h_.has(t)) return p_(e, t);
+ let n = getComputedStyle(e), r = O_(t) ? n.getPropertyValue(t) : n[t];
return typeof r == "string" && r.trim() || 0;
-}, $te = /*@__PURE__*/ zv(Hv, {
- test: Qte,
- read: Uv
+}, ene = /*@__PURE__*/ Rv(Vv, {
+ test: $te,
+ read: Hv
});
// node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
-function Wv(e) {
+function Uv(e) {
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
}
// node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
-function Gv(e, t, n) {
+function Wv(e, t, n) {
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
for (let e in t) {
let n = t[e];
- if (g_.has(e)) o = !0;
- else if (fh(e)) i[e] = n;
+ if (h_.has(e)) o = !0;
+ else if (dh(e)) i[e] = n;
else {
- let t = G_(n, n_[e]);
+ let t = W_(n, t_[e]);
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
}
}
- if (t.transform || (o || n ? r.transform = ote(t, e.transform, n) : r.transform &&= "none"), s) {
+ if (t.transform || (o || n ? r.transform = ste(t, e.transform, n) : r.transform &&= "none"), s) {
let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
r.transformOrigin = `${e} ${t} ${n}`;
}
}
// node_modules/motion-dom/dist/es/render/svg/utils/path.mjs
-var ene = {
+var tne = {
offset: "stroke-dashoffset",
array: "stroke-dasharray"
-}, tne = {
+}, nne = {
offset: "strokeDashoffset",
array: "strokeDasharray"
};
-function nne(e, t, n = 1, r = 0, i = !0) {
+function rne(e, t, n = 1, r = 0, i = !0) {
e.pathLength = 1;
- let a = i ? ene : tne;
+ let a = i ? tne : nne;
e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
}
// node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
-var Kv = [
+var Gv = [
"transform",
"opacity",
"clipPath",
@@ -18487,55 +18487,55 @@ var Kv = [
"offsetRotate",
"offsetAnchor"
];
-function qv(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
- if (Gv(e, s, l), c) {
+function Kv(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
+ if (Wv(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 Kv) 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 && nne(d, i, a, o, !1);
+ for (let e of Gv) 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 && rne(d, i, a, o, !1);
}
// node_modules/motion-dom/dist/es/effects/attr/index.mjs
-function rne(e, t) {
+function ine(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 Jv = (e, t, n, r, i = n) => {
- let a = rne(e, i);
- !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Wv(i));
- let o = n_[n] || n_[i], s = a ? () => {
- e[i] = G_(r.get(), n_[n]);
+var qv = (e, t, n, r, i = n) => {
+ let a = ine(e, i);
+ !a && (i.startsWith("data") || i.startsWith("aria")) && (i = Uv(i));
+ let o = t_[n] || t_[i], s = a ? () => {
+ e[i] = W_(r.get(), t_[n]);
} : () => {
- let t = G_(r.get(), o);
+ let t = W_(r.get(), o);
t == null ? e.removeAttribute(i) : e.setAttribute(i, String(t));
};
return t.set(n, r, s);
};
// node_modules/motion-dom/dist/es/effects/svg/index.mjs
-function ine(e, t, n, r) {
- return _g.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {
+function ane(e, t, n, r) {
+ return gg.render(() => e.setAttribute("pathLength", "1")), n === "pathOffset" ? t.set(n, r, () => {
let t = r.get();
e.setAttribute("stroke-dashoffset", `${-t}`);
- }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new uv("1 1"), () => {
+ }) : (t.get("stroke-dasharray") || t.set("stroke-dasharray", new lv("1 1"), () => {
let n = t.get("pathLength")?.get() ?? 1, r = t.get("pathSpacing")?.get();
e.setAttribute("stroke-dasharray", `${n} ${r ?? 1 - Number(n)}`);
}), t.set(n, r, void 0, t.get("stroke-dasharray")));
}
-var ane = /*@__PURE__*/ zv((e, t, n, r) => n.startsWith("path") && !g_.has(n) ? ine(e, t, n, r) : n.startsWith("attr") ? Jv(e, t, n, r, Yv(n)) : n === "d" ? t.set(n, r, () => {
+var one = /*@__PURE__*/ Rv((e, t, n, r) => n.startsWith("path") && !h_.has(n) ? ane(e, t, n, r) : n.startsWith("attr") ? qv(e, t, n, r, Jv(n)) : n === "d" ? t.set(n, r, () => {
let t = r.get()?.replace(/path\(|["')]/g, "");
t === void 0 ? e.removeAttribute(n) : e.setAttribute(n, t);
-}) : (g_.has(n) || Bv.has(n) || k_(n) || n in e.style ? Hv : Jv)(e, t, n, r), {
- test: Pv,
- read: (e, t) => g_.has(t) ? n_[t]?.default || 0 : k_(t) || Kv.includes(t) ? Uv(e, t) || e.getAttribute(Wv(t)) || 0 : (t = Yv(t), e.getAttribute(Wv(t)) ?? e.getAttribute(t) ?? void 0)
+}) : (h_.has(n) || zv.has(n) || O_(n) || n in e.style ? Vv : qv)(e, t, n, r), {
+ test: Nv,
+ read: (e, t) => h_.has(t) ? t_[t]?.default || 0 : O_(t) || Gv.includes(t) ? Hv(e, t) || e.getAttribute(Uv(t)) || 0 : (t = Jv(t), e.getAttribute(Uv(t)) ?? e.getAttribute(t) ?? void 0)
});
-function Yv(e) {
+function Jv(e) {
return e.replace(/^attr([A-Z])/, (e, t) => t.toLowerCase());
}
// node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
-function Xv({ top: e, left: t, right: n, bottom: r }) {
+function Yv({ top: e, left: t, right: n, bottom: r }) {
return {
x: {
min: t,
@@ -18547,7 +18547,7 @@ function Xv({ top: e, left: t, right: n, bottom: r }) {
}
};
}
-function one({ x: e, y: t }) {
+function sne({ x: e, y: t }) {
return {
top: t.min,
right: e.max,
@@ -18555,7 +18555,7 @@ function one({ x: e, y: t }) {
left: e.min
};
}
-function sne(e, t) {
+function cne(e, t) {
if (!t) return e;
let n = t({
x: e.left,
@@ -18572,13 +18572,13 @@ function sne(e, t) {
};
}
// node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
-function Zv(e) {
+function Xv(e) {
return e === void 0 || e === 1;
}
-function Qv({ scale: e, scaleX: t, scaleY: n }) {
- return !Zv(e) || !Zv(t) || !Zv(n);
+function Zv({ scale: e, scaleX: t, scaleY: n }) {
+ return !Xv(e) || !Xv(t) || !Xv(n);
}
-var $v = [
+var Qv = [
"rotate",
"rotateX",
"rotateY",
@@ -18586,67 +18586,67 @@ var $v = [
"skewX",
"skewY"
];
+function $v(e) {
+ return Zv(e) || ty(e) || ey(e);
+}
function ey(e) {
- return Qv(e) || ny(e) || ty(e);
+ return e.z || e.rotate || e.rotateX || e.rotateY || e.rotateZ || e.skewX || e.skewY;
}
function ty(e) {
- return e.z || e.rotate || e.rotateX || e.rotateY || e.rotateZ || e.skewX || e.skewY;
+ return ny(e.x) || ny(e.y);
}
function ny(e) {
- return ry(e.x) || ry(e.y);
-}
-function ry(e) {
return e && e !== "0%";
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
-function iy(e, t, n) {
+function ry(e, t, n) {
return n + t * (e - n);
}
-function ay(e, t, n, r, i) {
- return i !== void 0 && (e = iy(e, i, r)), iy(e, n, r) + t;
+function iy(e, t, n, r, i) {
+ return i !== void 0 && (e = ry(e, i, r)), ry(e, n, r) + t;
}
-function oy(e, t = 0, n = 1, r, i) {
- e.min = ay(e.min, t, n, r, i), e.max = ay(e.max, t, n, r, i);
+function ay(e, t = 0, n = 1, r, i) {
+ e.min = iy(e.min, t, n, r, i), e.max = iy(e.max, t, n, r, i);
}
-function sy(e, { x: t, y: n }) {
- oy(e.x, t.translate, t.scale, t.originPoint), oy(e.y, n.translate, n.scale, n.originPoint);
+function oy(e, { x: t, y: n }) {
+ ay(e.x, t.translate, t.scale, t.originPoint), ay(e.y, n.translate, n.scale, n.originPoint);
}
-var cy = .999999999999, ly = 1.0000000000001;
-function cne(e, t, n, r = !1) {
+var sy = .999999999999, cy = 1.0000000000001;
+function lne(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 && (uy(e.x, -a.scroll.offset.x), uy(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, sy(e, o)), r && (r.path?.[s] || r) !== a && ey(a.latestValues) && py(e, a.latestValues, a.layout?.layoutBox));
- t.x < ly && t.x > cy && (t.x = 1), t.y < ly && t.y > cy && (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 && (ly(e.x, -a.scroll.offset.x), ly(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, oy(e, o)), r && (r.path?.[s] || r) !== a && $v(a.latestValues) && fy(e, a.latestValues, a.layout?.layoutBox));
+ t.x < cy && t.x > sy && (t.x = 1), t.y < cy && t.y > sy && (t.y = 1);
}
-function uy(e, t) {
+function ly(e, t) {
e.min += t, e.max += t;
}
-function dy(e, t, n, r, i = .5) {
- oy(e, t, n, og(e.min, e.max, i), r);
+function uy(e, t, n, r, i = .5) {
+ ay(e, t, n, ag(e.min, e.max, i), r);
}
-function fy(e, t) {
+function dy(e, t) {
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
}
-function py(e, t, n) {
+function fy(e, t, n) {
let r = n ?? e;
- dy(e.x, fy(t.x, r.x), t.scaleX, t.scale, t.originX), dy(e.y, fy(t.y, r.y), t.scaleY, t.scale, t.originY);
+ uy(e.x, dy(t.x, r.x), t.scaleX, t.scale, t.originX), uy(e.y, dy(t.y, r.y), t.scaleY, t.scale, t.originY);
}
// node_modules/motion-dom/dist/es/projection/utils/measure.mjs
-function my(e, t) {
- return Xv(sne(e.getBoundingClientRect(), t));
+function py(e, t) {
+ return Yv(cne(e.getBoundingClientRect(), t));
}
-function lne(e, t, n) {
- let r = my(e, n), { scroll: i } = t;
- return i && (uy(r.x, i.offset.x), uy(r.y, i.offset.y)), r;
+function une(e, t, n) {
+ let r = py(e, n), { scroll: i } = t;
+ return i && (ly(r.x, i.offset.x), ly(r.y, i.offset.y)), r;
}
-var une = () => ({
+var dne = () => ({
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
-}), dne = {}, fne = (e) => Pv(e) ? ane : $te, pne = class {
+}), fne = {}, pne = (e) => Nv(e) ? one : ene, mne = class {
constructor(e, t) {
- this.effect = e, this.current = t, this.KeyframeResolver = Dv;
+ this.effect = e, this.current = t, this.KeyframeResolver = Ev;
}
getValue(e) {
return this.effect.get(this.current, e);
@@ -18658,207 +18658,207 @@ var une = () => ({
this.effect.flush(this.current);
}
measureViewportBox() {
- return my(this.current);
+ return py(this.current);
}
getProps() {
- return dne;
+ return fne;
}
};
-function mne(e, t, n, r) {
- if (Fv.current?.track(e), r) return jv((e) => r.getValue(e, null), t, n, r);
- let i = fne(e);
- return Mv(i, e, t, n, new pne(i, e));
+function hne(e, t, n, r) {
+ if (Pv.current?.track(e), r) return Av((e) => r.getValue(e, null), t, n, r);
+ let i = pne(e);
+ return jv(i, e, t, n, new mne(i, e));
}
// node_modules/motion-dom/dist/es/effects/prop/index.mjs
-var hne = /*@__PURE__*/ zv((e, t, n, r) => t.set(n, r, () => {
+var gne = /*@__PURE__*/ Rv((e, t, n, r) => t.set(n, r, () => {
e[n] = r.get();
}), {
- test: (e) => km(e),
+ test: (e) => Om(e),
read: (e, t) => {
let n = e[t];
return typeof n == "string" || typeof n == "number" ? n : void 0;
}
-}), { schedule: hy, cancel: gne } = /* @__PURE__ */ gg(queueMicrotask, !1);
+}), { schedule: my, cancel: _ne } = /* @__PURE__ */ hg(queueMicrotask, !1);
// node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
-function gy(e, t, n) {
- let r = bv(e) ? e : dv(e);
- return r.start(mv("", r, t, n)), r.animation;
+function hy(e, t, n) {
+ let r = yv(e) ? e : uv(e);
+ return r.start(pv("", r, t, n)), r.animation;
}
// node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs
-var _y = {}, vy = {
+var gy = {}, _y = {
value: null,
addProjectionMetrics: null,
countProjection: void 0
};
// node_modules/motion-dom/dist/es/utils/delay.mjs
-function _ne(e, t) {
- let n = lh.now();
- e = Lv(e);
+function vne(e, t) {
+ let n = ch.now();
+ e = Iv(e);
let r = ({ timestamp: i }) => {
let a = i - n;
- a >= t && (vg(r), e(a - t));
+ a >= t && (_g(r), e(a - t));
};
- return _g.setup(r, !0), Iv(() => vg(r));
+ return gg.setup(r, !0), Fv(() => _g(r));
}
// node_modules/motion-dom/dist/es/utils/is-ref-object.mjs
-function vne(e) {
+function yne(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 yne(e) {
- return Pv(e) && e.tagName === "svg";
+function bne(e) {
+ return Nv(e) && e.tagName === "svg";
}
// node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
-function yy(e) {
- return bv(e) ? e.get() : e;
+function vy(e) {
+ return yv(e) ? e.get() : e;
}
// node_modules/motion-dom/dist/es/value/utils/as-number.mjs
-var by = (e) => typeof e == "number" ? e : parseFloat(e), bne = Ov.length, xy = (e) => typeof e == "number" || G.test(e);
-function xne(e, t, n, r, i, a) {
- i ? (e.opacity = og(0, n.opacity ?? 1, Sne(r)), e.opacityExit = og(t.opacity ?? 1, 0, Cne(r))) : a && (e.opacity = og(t.opacity ?? 1, n.opacity ?? 1, r));
- for (let i = 0; i < bne; i++) {
- let a = Ov[i], o = Sy(t, a), s = Sy(n, a);
- (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || xy(o) === xy(s) ? (e[a] = Math.max(og(by(o), by(s), r), 0), (Nh.test(s) || Nh.test(o)) && (e[a] += "%")) : e[a] = s);
+var yy = (e) => typeof e == "number" ? e : parseFloat(e), xne = Dv.length, by = (e) => typeof e == "number" || G.test(e);
+function Sne(e, t, n, r, i, a) {
+ i ? (e.opacity = ag(0, n.opacity ?? 1, Cne(r)), e.opacityExit = ag(t.opacity ?? 1, 0, wne(r))) : a && (e.opacity = ag(t.opacity ?? 1, n.opacity ?? 1, r));
+ for (let i = 0; i < xne; i++) {
+ let a = Dv[i], o = xy(t, a), s = xy(n, a);
+ (o !== void 0 || s !== void 0) && (o ||= 0, s ||= 0, o === 0 || s === 0 || by(o) === by(s) ? (e[a] = Math.max(ag(yy(o), yy(s), r), 0), (Mh.test(s) || Mh.test(o)) && (e[a] += "%")) : e[a] = s);
}
- for (let i = 0; i < $v.length; i++) {
- let a = $v[i];
- (t[a] || n[a]) && (e[a] = og(t[a] || 0, n[a] || 0, r));
+ for (let i = 0; i < Qv.length; i++) {
+ let a = Qv[i];
+ (t[a] || n[a]) && (e[a] = ag(t[a] || 0, n[a] || 0, r));
}
}
-function Sy(e, t) {
+function xy(e, t) {
return e[t] === void 0 ? e.borderRadius : e[t];
}
-var Sne = /*@__PURE__*/ Cy(0, .5, Ym), Cne = /*@__PURE__*/ Cy(.5, .95, Mm);
-function Cy(e, t, n) {
- return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ Pm(e, t, r));
+var Cne = /*@__PURE__*/ Sy(0, .5, Jm), wne = /*@__PURE__*/ Sy(.5, .95, jm);
+function Sy(e, t, n) {
+ return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ Nm(e, t, r));
}
// node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
-function wy(e, t) {
+function Cy(e, t) {
e.min = t.min, e.max = t.max;
}
-function Ty(e, t) {
- wy(e.x, t.x), wy(e.y, t.y);
+function wy(e, t) {
+ Cy(e.x, t.x), Cy(e.y, t.y);
}
-function Ey(e, t) {
+function Ty(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 wne = .9999, Tne = 1.0001, Ene = -.01, Dne = .01;
-function Dy(e) {
+var Tne = .9999, Ene = 1.0001, Dne = -.01, One = .01;
+function Ey(e) {
return e.max - e.min;
}
-function One(e, t, n) {
+function kne(e, t, n) {
return Math.abs(e - t) <= n;
}
-function Oy(e, t, n, r = .5) {
- e.origin = r, e.originPoint = og(t.min, t.max, e.origin), e.scale = Dy(n) / Dy(t), e.translate = og(n.min, n.max, e.origin) - e.originPoint, (e.scale >= wne && e.scale <= Tne || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Ene && e.translate <= Dne || isNaN(e.translate)) && (e.translate = 0);
+function Dy(e, t, n, r = .5) {
+ e.origin = r, e.originPoint = ag(t.min, t.max, e.origin), e.scale = Ey(n) / Ey(t), e.translate = ag(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Tne && e.scale <= Ene || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Dne && e.translate <= One || isNaN(e.translate)) && (e.translate = 0);
}
-function ky(e, t, n, r) {
- Oy(e.x, t.x, n.x, r?.originX), Oy(e.y, t.y, n.y, r?.originY);
+function Oy(e, t, n, r) {
+ Dy(e.x, t.x, n.x, r?.originX), Dy(e.y, t.y, n.y, r?.originY);
}
-function Ay(e, t, n, r = 0) {
- e.min = (r ? og(n.min, n.max, r) : n.min) + t.min, e.max = e.min + Dy(t);
+function ky(e, t, n, r = 0) {
+ e.min = (r ? ag(n.min, n.max, r) : n.min) + t.min, e.max = e.min + Ey(t);
}
-function kne(e, t, n, r) {
- Ay(e.x, t.x, n.x, r?.x), Ay(e.y, t.y, n.y, r?.y);
+function Ane(e, t, n, r) {
+ ky(e.x, t.x, n.x, r?.x), ky(e.y, t.y, n.y, r?.y);
}
-function jy(e, t, n, r = 0) {
- let i = r ? og(n.min, n.max, r) : n.min;
- e.min = t.min - i, e.max = e.min + Dy(t);
+function Ay(e, t, n, r = 0) {
+ let i = r ? ag(n.min, n.max, r) : n.min;
+ e.min = t.min - i, e.max = e.min + Ey(t);
}
-function My(e, t, n, r) {
- jy(e.x, t.x, n.x, r?.x), jy(e.y, t.y, n.y, r?.y);
+function jy(e, t, n, r) {
+ Ay(e.x, t.x, n.x, r?.x), Ay(e.y, t.y, n.y, r?.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
-function Ny(e, t, n, r, i) {
- return e -= t, e = iy(e, 1 / n, r), i !== void 0 && (e = iy(e, 1 / i, r)), e;
+function My(e, t, n, r, i) {
+ return e -= t, e = ry(e, 1 / n, r), i !== void 0 && (e = ry(e, 1 / i, r)), e;
}
-function Ane(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
- if (Nh.test(t) && (t = parseFloat(t), t = og(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
- let s = og(a.min, a.max, r);
- e === a && (s -= t), e.min = Ny(e.min, t, n, s, i), e.max = Ny(e.max, t, n, s, i);
+function jne(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
+ if (Mh.test(t) && (t = parseFloat(t), t = ag(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
+ let s = ag(a.min, a.max, r);
+ e === a && (s -= t), e.min = My(e.min, t, n, s, i), e.max = My(e.max, t, n, s, i);
}
-function Py(e, t, [n, r, i], a, o) {
- Ane(e, t[n], t[r], t[i], t.scale, a, o);
+function Ny(e, t, [n, r, i], a, o) {
+ jne(e, t[n], t[r], t[i], t.scale, a, o);
}
-var jne = [
+var Mne = [
"x",
"scaleX",
"originX"
-], Mne = [
+], Nne = [
"y",
"scaleY",
"originY"
];
-function Fy(e, t, n, r) {
- Py(e.x, t, jne, n?.x, r?.x), Py(e.y, t, Mne, n?.y, r?.y);
+function Py(e, t, n, r) {
+ Ny(e.x, t, Mne, n?.x, r?.x), Ny(e.y, t, Nne, n?.y, r?.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/round.mjs
-var Iy = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Ly = Iy("applewebkit/") && !Iy("chrome/") ? Math.round : Mm;
-function Ry(e) {
- e.min = Ly(e.min), e.max = Ly(e.max);
+var Fy = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Iy = Fy("applewebkit/") && !Fy("chrome/") ? Math.round : jm;
+function Ly(e) {
+ e.min = Iy(e.min), e.max = Iy(e.max);
}
-function Nne(e) {
- Ry(e.x), Ry(e.y);
+function Pne(e) {
+ Ly(e.x), Ly(e.y);
}
// node_modules/motion-dom/dist/es/projection/geometry/models.mjs
-var zy = () => ({
+var Ry = () => ({
translate: 0,
scale: 1,
origin: 0,
originPoint: 0
+}), zy = () => ({
+ x: Ry(),
+ y: Ry()
}), By = () => ({
- x: zy(),
- y: zy()
-}), Vy = () => ({
min: 0,
max: 0
-}), Hy = () => ({
- x: Vy(),
- y: Vy()
+}), Vy = () => ({
+ x: By(),
+ y: By()
});
// node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
-function Uy(e) {
+function Hy(e) {
return e.translate === 0 && e.scale === 1;
}
-function Wy(e) {
- return Uy(e.x) && Uy(e.y);
+function Uy(e) {
+ return Hy(e.x) && Hy(e.y);
}
-function Gy(e, t) {
+function Wy(e, t) {
return e.min === t.min && e.max === t.max;
}
-function Pne(e, t) {
- return Gy(e.x, t.x) && Gy(e.y, t.y);
+function Fne(e, t) {
+ return Wy(e.x, t.x) && Wy(e.y, t.y);
}
-function Ky(e, t) {
+function Gy(e, t) {
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
}
-function qy(e, t) {
- return Ky(e.x, t.x) && Ky(e.y, t.y);
+function Ky(e, t) {
+ return Gy(e.x, t.x) && Gy(e.y, t.y);
}
-function Jy(e) {
- return Dy(e.x) / Dy(e.y);
+function qy(e) {
+ return Ey(e.x) / Ey(e.y);
}
-function Yy(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 Fne = class {
+var Ine = class {
constructor() {
this.members = [];
}
add(e) {
- wm(this.members, e);
+ Cm(this.members, e);
for (let t = this.members.length - 1; t >= 0; t--) {
let n = this.members[t];
if (n === e || n === this.lead || n === this.prevLead) continue;
let r = n.instance;
- r && r.isConnected !== !1 || n.snapshot || (Tm(this.members, n), n.unmount());
+ r && r.isConnected !== !1 || n.snapshot || (wm(this.members, n), n.unmount());
}
e.scheduleRender();
}
remove(e) {
- if (Tm(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
+ if (wm(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
let e = this.members[this.members.length - 1];
e && this.promote(e);
}
@@ -18891,39 +18891,39 @@ var Fne = class {
}
};
// node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
-function Xy(e, t) {
+function Yy(e, t) {
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
}
-var Zy = { correct: (e, t) => {
+var Xy = { correct: (e, t) => {
if (!t.target) return e;
if (typeof e == "string") {
if (G.test(e)) e = parseFloat(e);
else return e;
}
- return `${Xy(e, t.target.x)}% ${Xy(e, t.target.y)}%`;
-} }, Ine = {
- borderRadius: /* @__PURE__ */ Object.assign({}, Zy, { applyTo: /* @__PURE__ */ Ov.slice() }),
- borderTopLeftRadius: Zy,
- borderTopRightRadius: Zy,
- borderBottomLeftRadius: Zy,
- borderBottomRightRadius: Zy,
+ return `${Yy(e, t.target.x)}% ${Yy(e, t.target.y)}%`;
+} }, Lne = {
+ borderRadius: /* @__PURE__ */ Object.assign({}, Xy, { applyTo: /* @__PURE__ */ Dv.slice() }),
+ borderTopLeftRadius: Xy,
+ borderTopRightRadius: Xy,
+ borderBottomLeftRadius: Xy,
+ borderBottomRightRadius: Xy,
boxShadow: { correct: (e, { treeScale: t, projectionDelta: n }) => {
- let r = e, i = rg.parse(e);
+ let r = e, i = ng.parse(e);
if (i.length > 5) return r;
- let a = rg.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
+ let a = ng.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
i[0 + o] /= s, i[1 + o] /= c;
- let l = og(s, c, .5);
+ let l = ag(s, c, .5);
return typeof i[2 + o] == "number" && (i[2 + o] /= l), typeof i[3 + o] == "number" && (i[3 + o] /= l), a(i);
} }
};
// node_modules/motion-dom/dist/es/projection/styles/transform.mjs
-function Lne(e, t, n) {
+function Rne(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 < $v.length; e++) {
- let t = $v[e], i = n[t];
+ for (let e = 0; e < Qv.length; e++) {
+ let t = Qv[e], i = n[t];
i && (r += `${t}(${i}deg) `), !e && n.pathRotation && (r += `rotate(${n.pathRotation}deg) `);
}
}
@@ -18931,62 +18931,62 @@ function Lne(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 Qy(e) {
+function Zy(e) {
return [e("x"), e("y")];
}
// node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
-var Rne = (e, t) => e.depth - t.depth, zne = class {
+var zne = (e, t) => e.depth - t.depth, Bne = class {
constructor() {
this.children = [], this.isDirty = !1;
}
add(e) {
- wm(this.children, e), this.isDirty = !0;
+ Cm(this.children, e), this.isDirty = !0;
}
remove(e) {
- Tm(this.children, e), this.isDirty = !0;
+ wm(this.children, e), this.isDirty = !0;
}
forEach(e) {
- this.isDirty && this.children.sort(Rne), this.isDirty = !1, this.children.forEach(e);
+ this.isDirty && this.children.sort(zne), this.isDirty = !1, this.children.forEach(e);
}
-}, $y = {
+}, Qy = {
hasAnimatedSinceResize: !0,
hasEverUpdated: !1
-}, eb = [
+}, $y = [
"z",
"skew",
"skewZ"
-], Bne = 1e3, Vne = 0;
-function tb(e, t, n, r) {
+], Vne = 1e3, Hne = 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 nb = (e) => e.instance && Y_.get(e.instance)?.demote() && e.resetSkewAndRotation();
-function rb(e) {
+var tb = (e) => e.instance && J_.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;
- let n = Cv(t);
+ let n = Sv(t);
if (window.MotionHasOptimisedAnimation(n, "transform")) {
let { layout: t, layoutId: r } = e.options;
- window.MotionCancelOptimisedAnimation(n, "transform", _g, !(t || r));
+ window.MotionCancelOptimisedAnimation(n, "transform", gg, !(t || r));
}
let { parent: r } = e;
- r && !r.hasCheckedOptimisedAppear && rb(r);
+ r && !r.hasCheckedOptimisedAppear && nb(r);
}
-function ib(e) {
- if (e) return e.options.allowProjection === !1 ? ib(e.parent) : e.projection;
+function rb(e) {
+ if (e) return e.options.allowProjection === !1 ? rb(e.parent) : e.projection;
}
-function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
- return Object.assign(_y, {
- ...Ine,
- ..._y
+function ib({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
+ return Object.assign(gy, {
+ ...Lne,
+ ...gy
}), 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 : ib(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 && vne(o),
+ alwaysMeasureLayout: !!a || o && yne(o),
visualElement: e,
animationType: typeof i == "string" ? i : "both",
initialPromotionConfig: n,
@@ -18999,19 +18999,19 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
f && !d.root.isUpdateBlocked() && (f.willUpdate(), f.scheduleCheckAfterUnmount());
}
constructor(e = {}, n = t?.()) {
- this.id = Vne++, 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 = Hne++, 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(Wne), this.nodes.forEach(Qne), this.nodes.forEach($ne), this.nodes.forEach(Gne), vy.countProjection?.();
+ this.projectionUpdateScheduled = !1, this.nodes.forEach(Gne), this.nodes.forEach($ne), this.nodes.forEach(ere), this.nodes.forEach(Kne), _y.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 zne());
+ this.root === this && (this.nodes = new Bne());
}
addEventListener(e, t) {
- return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Fm()), this.eventHandlers.get(e).add(t);
+ return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Pm()), this.eventHandlers.get(e).add(t);
}
notifyListeners(e, ...t) {
this.eventHandlers.get(e)?.notify(...t);
@@ -19021,15 +19021,15 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
mount(t) {
if (this.instance) return;
- this.isSVG = Pv(t) && !yne(t), this.instance = t;
+ this.isSVG = Nv(t) && !bne(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;
- _g.read(() => {
+ gg.read(() => {
r = window.innerWidth;
}), e(t, () => {
let e = window.innerWidth;
- e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = _ne(i, 250), $y.hasAnimatedSinceResize && ($y.hasAnimatedSinceResize = !1, this.nodes.forEach(cb)));
+ e !== r && (r = e, this.root.updateBlockedByResize = !0, n?.(), n = vne(i, 250), Qy.hasAnimatedSinceResize && (Qy.hasAnimatedSinceResize = !1, this.nodes.forEach(sb)));
});
}
n && this.root.registerSharedNode(n, this), this.addLayoutListener();
@@ -19041,21 +19041,21 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.target = void 0, this.relativeTarget = void 0;
return;
}
- let a = this.options.transition || n.getDefaultTransition() || rre, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = n.getProps(), c = !this.targetLayout || !qy(this.targetLayout, i), l = !t && r;
+ let a = this.options.transition || n.getDefaultTransition() || ire, { 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 = {
- ...pv(a, "layout"),
+ ...fv(a, "layout"),
onPlay: o,
onComplete: s
};
(n.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
- } else t || cb(this), this.isLead() && this.options.onExitComplete?.();
+ } else t || sb(this), this.isLead() && this.options.onExitComplete?.();
this.targetLayout = i;
}));
}
unmount() {
- this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this), this.getStack()?.remove(this), this.parent?.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), this.hasLayoutListener = !1, vg(this.updateProjection);
+ this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this), this.getStack()?.remove(this), this.parent?.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), this.hasLayoutListener = !1, _g(this.updateProjection);
}
blockUpdate() {
this.updateManuallyBlocked = !0;
@@ -19067,7 +19067,7 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
return this.updateManuallyBlocked || this.updateBlockedByResize;
}
startUpdate() {
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(ere), this.animationId++);
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes?.forEach(tre), this.animationId++);
}
getTransformTemplate() {
let { visualElement: e } = this.options;
@@ -19078,11 +19078,11 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.options.onExitComplete?.();
return;
}
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && rb(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
- nb(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, nb(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;
@@ -19092,39 +19092,39 @@ function ab({ 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(qne), this.nodes.forEach(ob);
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Jne), this.nodes.forEach(ab);
return;
}
if (this.animationId <= this.animationCommitId) {
- this.nodes.forEach(sb);
+ this.nodes.forEach(ob);
return;
}
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Yne), this.nodes.forEach(Xne), this.nodes.forEach(Zne), this.nodes.forEach(Hne), this.nodes.forEach(Une)) : this.nodes.forEach(sb), this.clearAllSnapshots();
- let e = lh.now();
- oh.delta = Em(0, 1e3 / 60, e - oh.timestamp), oh.timestamp = e, oh.isProcessing = !0, yg.update.process(oh), yg.preRender.process(oh), yg.render.process(oh), oh.isProcessing = !1;
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Xne), this.nodes.forEach(Zne), this.nodes.forEach(Qne), this.nodes.forEach(Une), this.nodes.forEach(Wne)) : this.nodes.forEach(ob), this.clearAllSnapshots();
+ let e = ch.now();
+ ah.delta = Tm(0, 1e3 / 60, e - ah.timestamp), ah.timestamp = e, ah.isProcessing = !0, vg.update.process(ah), vg.preRender.process(ah), vg.render.process(ah), ah.isProcessing = !1;
}
didUpdate() {
- this.updateScheduled || (this.updateScheduled = !0, hy.read(this.scheduleUpdate));
+ this.updateScheduled || (this.updateScheduled = !0, my.read(this.scheduleUpdate));
}
clearAllSnapshots() {
- this.nodes.forEach(Kne), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));
+ this.nodes.forEach(qne), this.sharedNodes.forEach((e, t) => e.members.length ? e.removeLeadSnapshot() : this.sharedNodes.delete(t));
}
scheduleUpdateProjection() {
- this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, _g.preRender(this.updateProjection, !1, !0));
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, gg.preRender(this.updateProjection, !1, !0));
}
scheduleCheckAfterUnmount() {
- _g.postRender(() => {
+ gg.postRender(() => {
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
});
}
updateSnapshot() {
- !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !Dy(this.snapshot.measuredBox.x) && !Dy(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
+ !this.snapshot && this.instance && (this.snapshot = this.measure(), this.snapshot && !Ey(this.snapshot.measuredBox.x) && !Ey(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 ||= Hy(), 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);
}
@@ -19144,13 +19144,13 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
resetTransform() {
if (!i) return;
let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout;
- e && nb(this);
- let t = this.projectionDelta && !Wy(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
- e && this.instance && (t || ey(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 || $v(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)), Nne(n), {
+ return e && (n = this.removeTransform(n)), Pne(n), {
animationId: this.root.animationId,
measuredBox: t,
layoutBox: n,
@@ -19160,42 +19160,42 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
measurePageBox() {
let { visualElement: e } = this.options;
- if (!e) return Hy();
+ if (!e) return Vy();
let t = e.measureViewportBox();
- if (!(this.scroll?.wasRoot || this.path.some(ire))) {
+ if (!(this.scroll?.wasRoot || this.path.some(are))) {
let { scroll: e } = this.root;
- e && (uy(t.x, e.offset.x), uy(t.y, e.offset.y));
+ e && (ly(t.x, e.offset.x), ly(t.y, e.offset.y));
}
return t;
}
removeElementScroll(e) {
- let t = Hy();
- if (Ty(t, e), this.scroll?.wasRoot) return t;
+ let t = Vy();
+ if (wy(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 && Ty(t, e), uy(t.x, i.offset.x), uy(t.y, i.offset.y));
+ r !== this.root && i && a.layoutScroll && (i.wasRoot && wy(t, e), ly(t.x, i.offset.x), ly(t.y, i.offset.y));
}
return t;
}
applyTransform(e, t = !1, n, r, i = 0) {
- let a = n || Hy();
- Ty(a, e);
+ let a = n || Vy();
+ wy(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 && (uy(a.x, -n.scroll.offset.x), uy(a.y, -n.scroll.offset.y)), ey(n.latestValues) && py(a, n.latestValues, n.layout?.layoutBox);
+ !t && n.options.layoutScroll && n.scroll && n !== n.root && (ly(a.x, -n.scroll.offset.x), ly(a.y, -n.scroll.offset.y)), $v(n.latestValues) && fy(a, n.latestValues, n.layout?.layoutBox);
}
- return !r && ey(this.latestValues) && py(a, this.latestValues, this.layout?.layoutBox), a;
+ return !r && $v(this.latestValues) && fy(a, this.latestValues, this.layout?.layoutBox), a;
}
removeTransform(e) {
- let t = Hy();
- Ty(t, e);
+ let t = Vy();
+ wy(t, e);
for (let e = 0; e < this.path.length; e++) {
let n = this.path[e];
- if (!ey(n.latestValues)) continue;
+ if (!$v(n.latestValues)) continue;
let r;
- n.instance && (Qv(n.latestValues) && n.updateSnapshot(), r = Hy(), Ty(r, n.measurePageBox())), Fy(t, n.latestValues, n.snapshot?.layoutBox, r);
+ n.instance && (Zv(n.latestValues) && n.updateSnapshot(), r = Vy(), wy(r, n.measurePageBox())), Py(t, n.latestValues, n.snapshot?.layoutBox, r);
}
- return ey(this.latestValues) && Fy(t, this.latestValues), t;
+ return $v(this.latestValues) && Py(t, this.latestValues), t;
}
setTargetDelta(e) {
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -19211,7 +19211,7 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
}
forceRelativeParentToResolveTarget() {
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== oh.timestamp && this.relativeParent.resolveTargetDelta(!0);
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== ah.timestamp && this.relativeParent.resolveTargetDelta(!0);
}
resolveTargetDelta(e = !1) {
let t = this.getLead();
@@ -19220,32 +19220,32 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
if (!(e || n && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
let { layout: r, layoutId: i } = this.options;
if (!this.layout || !(r || i)) return;
- this.resolvedRelativeTargetAt = oh.timestamp;
+ this.resolvedRelativeTargetAt = ah.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 = Hy(), this.targetWithTransforms = Hy()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), kne(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) : Ty(this.target, this.layout.layoutBox), sy(this.target, this.targetDelta)) : Ty(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), vy.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(), Ane(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) : wy(this.target, this.layout.layoutBox), oy(this.target, this.targetDelta)) : wy(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), _y.countProjection?.(1));
}
getClosestProjectingParent() {
- if (!(!this.parent || Qv(this.parent.latestValues) || ny(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
+ if (!(!this.parent || Zv(this.parent.latestValues) || ty(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 = Hy(), this.relativeTargetOrigin = Hy(), My(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), Ty(this.relativeTarget, this.relativeTargetOrigin);
+ this.relativeParent = e, this.forceRelativeParentToResolveTarget(), this.relativeTarget = Vy(), this.relativeTargetOrigin = Vy(), jy(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), wy(this.relativeTarget, this.relativeTargetOrigin);
}
removeRelativeTarget() {
this.relativeParent = this.relativeTarget = void 0;
}
calcProjection() {
let e = this.getLead(), t = !!this.resumingFrom || this !== e, n = !0;
- if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === oh.timestamp && (n = !1), n) return;
+ if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === ah.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;
- Ty(this.layoutCorrected, this.layout.layoutBox);
+ wy(this.layoutCorrected, this.layout.layoutBox);
let a = this.treeScale.x, o = this.treeScale.y;
- cne(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 = Hy());
+ lne(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() : (Ey(this.prevProjectionDelta.x, this.projectionDelta.x), Ey(this.prevProjectionDelta.y, this.projectionDelta.y)), ky(this.projectionDelta, this.layoutCorrected, s, this.latestValues), this.treeScale.x === a && this.treeScale.y === o && Yy(this.projectionDelta.x, this.prevProjectionDelta.x) && Yy(this.projectionDelta.y, this.prevProjectionDelta.y) || (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), vy.countProjection?.(2)) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
+ s ? (!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Ty(this.prevProjectionDelta.x, this.projectionDelta.x), Ty(this.prevProjectionDelta.y, this.projectionDelta.y)), Oy(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)), _y.countProjection?.(2)) : this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
}
hide() {
this.isVisible = !1;
@@ -19257,22 +19257,22 @@ function ab({ 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 = By(), this.projectionDelta = By(), this.projectionDeltaWithTransform = By();
+ 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 = By();
+ 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 = Hy(), 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(nre));
+ 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(rre));
this.animationProgress = 0;
let f, p = n?.interpolateProjection(e);
this.mixTargetDelta = (t) => {
let n = t / 1e3, r = p?.(n);
- lb(o.x, e.x, n), lb(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 && (My(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), tre(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Pne(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= Hy(), Ty(f, this.relativeTarget)), c && (this.animationValues = a, xne(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 && (jy(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), nre(this.relativeTarget, this.relativeTargetOrigin, s, n), f && Fne(this.relativeTarget, f) && (this.isProjectionDirty = !1), f ||= Vy(), wy(f, this.relativeTarget)), c && (this.animationValues = a, Sne(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 &&= (vg(this.pendingAnimation), void 0), this.pendingAnimation = _g.update(() => {
- $y.hasAnimatedSinceResize = !0, this.motionValue ||= dv(0), this.motionValue.jump(0, !1), this.currentAnimation = gy(this.motionValue, [0, 1e3], {
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (_g(this.pendingAnimation), void 0), this.pendingAnimation = gg.update(() => {
+ Qy.hasAnimatedSinceResize = !0, this.motionValue ||= uv(0), this.motionValue.jump(0, !1), this.currentAnimation = hy(this.motionValue, [0, 1e3], {
...e,
velocity: 0,
isSync: !0,
@@ -19282,7 +19282,7 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
onComplete: () => {
e.onComplete && e.onComplete(), this.completeAnimation();
}
- }), jee(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
+ }), Mee(this.currentAnimation, this), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
});
}
completeAnimation() {
@@ -19291,20 +19291,20 @@ function ab({ 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?.(Bne), this.currentAnimation.stop()), this.completeAnimation();
+ this.currentAnimation && (this.mixTargetDelta?.(Vne), 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 && fb(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 || Hy(), db(i.x, t.x, e.x), db(i.y, t.y, e.y);
+ i = this.target || Vy(), ub(i.x, t.x, e.x), ub(i.y, t.y, e.y);
}
- Ty(t, i), py(t, r), ky(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
+ wy(t, i), fy(t, r), Oy(this.projectionDeltaWithTransform, this.layoutCorrected, t, r);
}
}
registerSharedNode(e, t) {
- this.sharedNodes.has(e) || this.sharedNodes.set(e, new Fne()), this.sharedNodes.get(e).add(t);
+ this.sharedNodes.has(e) || this.sharedNodes.set(e, new Ine()), this.sharedNodes.get(e).add(t);
let n = t.options.initialPromotionConfig;
t.promote({
transition: n?.transition,
@@ -19337,10 +19337,10 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
let { visualElement: e } = this.options;
if (!e) return;
let { latestValues: t } = e;
- if (!ty(t)) return;
+ if (!ey(t)) return;
let n = {};
- for (let t = 0; t < eb.length; t++) tb(eb[t], e, n, this.animationValues);
- for (let t = 0; t < $v.length; t++) tb($v[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 < Qv.length; t++) eb(Qv[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();
@@ -19354,70 +19354,70 @@ function ab({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
}
let r = this.getTransformTemplate();
if (this.needsReset) {
- this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = yy(t?.pointerEvents) || "", e.transform = r ? r(this.latestValues, "") : "none";
+ this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = vy(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 = yy(t?.pointerEvents) || ""), this.hasProjected && !ey(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 = vy(t?.pointerEvents) || ""), this.hasProjected && !$v(this.latestValues) && (e.transform = r ? r({}, "") : "none", this.hasProjected = !1);
return;
}
e.visibility = "";
let i = n.animationValues || n.latestValues;
this.applyTransformsToTarget();
- let a = Lne(this.projectionDeltaWithTransform, this.treeScale, i);
+ let a = Rne(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 _y) {
+ for (let t in gy) {
if (i[t] === void 0) continue;
- let { correct: r, applyTo: o, isCSSVariable: s } = _y[t], c = a === "none" ? i[t] : r(i[t], n);
+ let { correct: r, applyTo: o, isCSSVariable: s } = gy[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 ? yy(t?.pointerEvents) || "" : "none");
+ this.options.layoutId && (e.pointerEvents = n === this ? vy(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(ob), this.root.sharedNodes.clear();
+ this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(ab), this.root.sharedNodes.clear();
}
};
}
-function Hne(e) {
- e.updateLayout(), Jne(e);
-}
function Une(e) {
+ e.updateLayout(), Yne(e);
+}
+function Wne(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") Qy((e) => {
- let t = Dy(r[e]);
+ if (i === "size") Zy((e) => {
+ let t = Ey(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";
- wy(r[e], a[e]);
- } else fb(i, t.layoutBox, n) && Qy((t) => {
- let n = Dy(a[t]);
+ Cy(r[e], a[e]);
+ } else db(i, t.layoutBox, n) && Zy((t) => {
+ let n = Ey(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 = By();
- ky(c, n, t.layoutBox);
- let l = By();
- ky(l, a ? e.applyTransform(r, !0) : n, s);
- let u = !Wy(c), d = !1, f = e.getClosestProjectingParent();
+ let c = zy();
+ Oy(c, n, t.layoutBox);
+ let l = zy();
+ Oy(l, a ? e.applyTransform(r, !0) : n, s);
+ let u = !Uy(c), d = !1, f = e.getClosestProjectingParent();
if ((!a || 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 = Hy();
- My(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);
- let l = Hy();
- My(l, n, i.layoutBox, s), a && o(c, l), qy(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();
+ jy(c, a ? e.resumeFrom.applyTransform(t.layoutBox, !0, void 0, !0, f.depth + 1) : t.layoutBox, r.layoutBox, s);
+ let l = Vy();
+ jy(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", {
@@ -19431,65 +19431,65 @@ function Une(e) {
} else e.isLead() && e.options.onExitComplete?.();
e.options.transition = void 0;
}
-function Wne(e) {
- vy.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 Gne(e) {
- e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
+ _y.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 Kne(e) {
+ e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
+}
+function qne(e) {
e.clearSnapshot();
}
-function ob(e) {
+function ab(e) {
e.clearMeasurements();
}
-function qne(e) {
+function Jne(e) {
e.isLayoutDirty = !0, e.updateLayout();
}
-function sb(e) {
+function ob(e) {
e.isLayoutDirty = !1;
}
-function Jne(e) {
+function Yne(e) {
let { snapshot: t, dragAncestor: n } = e, r = n?.isAnimationBlocked && n.layout;
if (!t || !r || e.resumeFrom || e.isAnimationBlocked) return;
let i = n.dragSnapshot;
- Qy((e) => uy(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
+ Zy((e) => ly(t.layoutBox[e], r.layoutBox[e].min - i.layoutBox[e].min));
}
-function Yne(e) {
+function Xne(e) {
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.dragSnapshot || e.layout, e.isLayoutDirty = !0);
}
-function Xne(e) {
+function Zne(e) {
e.relativeTarget && e.relativeParent?.isLayoutDirty && (e.currentAnimation ? e.isLayoutDirty = !0 : (e.targetDelta = void 0, e.removeRelativeTarget()));
}
-function Zne(e) {
+function Qne(e) {
let { visualElement: t } = e.options;
t?.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
}
-function cb(e) {
+function sb(e) {
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
}
-function Qne(e) {
+function $ne(e) {
e.resolveTargetDelta();
}
-function $ne(e) {
+function ere(e) {
e.calcProjection();
}
-function ere(e) {
+function tre(e) {
e.resetSkewAndRotation();
}
-function lb(e, t, n) {
- e.translate = og(t.translate, 0, n), e.scale = og(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
+function cb(e, t, n) {
+ e.translate = ag(t.translate, 0, n), e.scale = ag(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
}
-function ub(e, t, n, r) {
- e.min = og(t.min, n.min, r), e.max = og(t.max, n.max, r);
+function lb(e, t, n, r) {
+ e.min = ag(t.min, n.min, r), e.max = ag(t.max, n.max, r);
}
-function tre(e, t, n, r) {
- ub(e.x, t.x, n.x, r), ub(e.y, t.y, n.y, r);
+function nre(e, t, n, r) {
+ lb(e.x, t.x, n.x, r), lb(e.y, t.y, n.y, r);
}
-function nre(e) {
+function rre(e) {
return e.animationValues?.opacityExit !== void 0;
}
-var rre = {
+var ire = {
duration: .45,
ease: [
.4,
@@ -19498,51 +19498,51 @@ var rre = {
1
]
};
-function db(e, t, n) {
- e.max = Dy(n) + (e.min = t.min);
+function ub(e, t, n) {
+ e.max = Ey(n) + (e.min = t.min);
}
-function fb(e, t, n) {
- return e === "position" || e === "preserve-aspect" && !One(Jy(t), Jy(n), .2);
+function db(e, t, n) {
+ return e === "position" || e === "preserve-aspect" && !kne(qy(t), qy(n), .2);
}
-function ire(e) {
+function are(e) {
return e !== e.root && e.scroll?.wasRoot;
}
// node_modules/motion-dom/dist/es/events/add-dom-event.mjs
-function pb(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 are = /* @__PURE__ */ ab({
- attachResizeListener: (e, t) => pb(e, "resize", t),
- measureScroll: une,
+var ore = /* @__PURE__ */ ib({
+ attachResizeListener: (e, t) => fb(e, "resize", t),
+ measureScroll: dne,
checkIsScrollRoot: () => !0
-}), mb = { current: void 0 }, hb = /* @__PURE__ */ ab({
+}), pb = { current: void 0 }, mb = /* @__PURE__ */ ib({
measureScroll: (e) => ({
x: e.scrollLeft,
y: e.scrollTop
}),
defaultParent: () => {
- if (!mb.current) {
- let e = new are({});
- e.mount(window), e.setOptions({ layoutScroll: !0 }), mb.current = e;
+ if (!pb.current) {
+ let e = new ore({});
+ e.mount(window), e.setOptions({ layoutScroll: !0 }), pb.current = e;
}
- return mb.current;
+ return pb.current;
},
resetTransform: (e, t) => {
e.style.transform = t === void 0 ? "none" : t;
},
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
-}), gb = /* @__PURE__ */ new WeakMap();
+}), hb = /* @__PURE__ */ new WeakMap();
// node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
-function _b(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 vb(e) {
+function _b(e) {
return typeof e == "string" || Array.isArray(e);
}
// node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
-var yb = [
+var vb = [
"animate",
"whileInView",
"whileFocus",
@@ -19550,29 +19550,29 @@ var yb = [
"whileTap",
"whileDrag",
"exit"
-], bb = /* @__PURE__ */ ["initial"].concat(yb);
+], yb = /* @__PURE__ */ ["initial"].concat(vb);
// node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
-function xb(e) {
- if (_b(e.animate)) return !0;
- for (let t = 0; t < bb.length; t++) if (vb(e[bb[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 Sb(e) {
- return !!(xb(e) || e.variants);
+function xb(e) {
+ return !!(bb(e) || e.variants);
}
// node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
-function ore(e, t, n) {
+function sre(e, t, n) {
for (let r in t) {
let i = t[r], a = n[r];
- if (bv(i)) e.addValue(r, i);
- else if (bv(a)) e.addValue(r, dv(i, { owner: e }));
+ if (yv(i)) e.addValue(r, i);
+ else if (yv(a)) e.addValue(r, uv(i, { owner: e }));
else if (a !== i) {
if (e.hasValue(r)) {
let t = e.getValue(r);
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
} else {
let t = e.getStaticValue(r);
- e.addValue(r, dv(t === void 0 ? i : t, { owner: e }));
+ e.addValue(r, uv(t === void 0 ? i : t, { owner: e }));
}
}
}
@@ -19580,17 +19580,17 @@ function ore(e, t, n) {
return t;
}
// node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
-var Cb = { current: null }, wb = { current: !1 }, sre = typeof window < "u";
-function Tb() {
- if (wb.current = !0, sre) {
+var Sb = { current: null }, Cb = { current: !1 }, cre = typeof window < "u";
+function wb() {
+ if (Cb.current = !0, cre) {
if (window.matchMedia) {
- let e = window.matchMedia("(prefers-reduced-motion)"), t = () => Cb.current = e.matches;
+ let e = window.matchMedia("(prefers-reduced-motion)"), t = () => Sb.current = e.matches;
e.addEventListener("change", t), t();
- } else Cb.current = !1;
+ } else Sb.current = !1;
}
}
// node_modules/motion-dom/dist/es/render/VisualElement.mjs
-var Eb = [
+var Tb = [
"AnimationStart",
"AnimationComplete",
"Update",
@@ -19598,36 +19598,36 @@ var Eb = [
"LayoutMeasure",
"LayoutAnimationStart",
"LayoutAnimationComplete"
-], Db = {};
-function Ob(e) {
- Db = e;
+], Eb = {};
+function Db(e) {
+ Eb = e;
}
-function cre() {
- return Db;
+function lre() {
+ return Eb;
}
-var lre = class {
+var ure = class {
scrapeMotionValuesFromProps(e, t, n) {
return {};
}
constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {
- this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = O_, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = D_, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
- let e = lh.now();
- this.renderScheduledAt < e && (this.renderScheduledAt = e, _g.render(this.render, !1, !0));
+ let e = ch.now();
+ this.renderScheduledAt < e && (this.renderScheduledAt = e, gg.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 = xb(t), this.isVariantNode = Sb(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];
- c[e] !== void 0 && bv(t) && t.set(c[e]);
+ c[e] !== void 0 && yv(t) && t.set(c[e]);
}
}
mount(e) {
let t = this.presenceContext;
if (this.hasBeenMounted && t?.isPresent !== !1 && !t?.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, gb.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;
@@ -19637,10 +19637,10 @@ var lre = 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 : (wb.current || Tb(), this.shouldReduceMotion = Cb.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(), vg(this.notifyUpdate), vg(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree?.(), this.parent?.removeChild(this);
+ this.projection?.unmount(), _g(this.notifyUpdate), _g(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree?.(), this.parent?.removeChild(this);
for (let e in this.events) this.events[e].clear();
for (let e in this.features) {
let t = this.features[e];
@@ -19655,24 +19655,24 @@ var lre = class {
this.children.delete(e), this.enteringChildren?.delete(e);
}
bindToMotionValue(e, t) {
- if (this.valueSubscriptions.get(e)?.(), t.accelerate && V_.has(e) && this.current instanceof HTMLElement) {
- let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new L_({
+ if (this.valueSubscriptions.get(e)?.(), t.accelerate && B_.has(e) && this.current instanceof HTMLElement) {
+ let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new I_({
element: this.current,
name: e,
keyframes: r,
times: i,
ease: a,
- duration: /* @__PURE__ */ Im(o)
+ duration: /* @__PURE__ */ Fm(o)
}), c = n(s);
this.valueSubscriptions.set(e, () => {
c(), s.cancel();
});
return;
}
- let n = g_.has(e);
+ let n = h_.has(e);
n && this.onBindTransform && this.onBindTransform();
let r = t.on("change", (t) => {
- this.latestValues[e] = t, this.props.onUpdate && _g.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), Y_.get(this.current)?.check()), this.scheduleRender();
+ this.latestValues[e] = t, this.props.onUpdate && gg.preRender(this.notifyUpdate), n && (this.projection && (this.projection.isTransformDirty = !0), J_.get(this.current)?.check()), this.scheduleRender();
}), i;
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
r(), i?.();
@@ -19683,8 +19683,8 @@ var lre = class {
}
updateFeatures() {
let e = "animation";
- for (e in Db) {
- let t = Db[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]) {
@@ -19697,7 +19697,7 @@ var lre = class {
this.build(this.renderState, this.latestValues, this.props);
}
measureViewportBox() {
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Hy();
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : Vy();
}
getStaticValue(e) {
return this.latestValues[e];
@@ -19707,14 +19707,14 @@ var lre = class {
}
update(e, t) {
let { transformTemplate: n, onUpdate: r } = this.props;
- (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && Y_.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
- for (let t = 0; t < Eb.length; t++) {
- let n = Eb[t];
+ (e.transformTemplate || n) && this.scheduleRender(), (e.transformTemplate && !n || e.onUpdate && !r) && J_.get(this.current)?.demote(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = 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 = ore(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();
+ this.prevMotionValues = sre(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue?.();
}
getProps() {
return this.props;
@@ -19744,27 +19744,27 @@ var lre = class {
}
getValue(e, t) {
let n = this.props.values?.[e];
- return n || (n = this.values.get(e), n === void 0 && t !== void 0 && (n = dv(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n);
+ return n || (n = this.values.get(e), n === void 0 && t !== void 0 && (n = uv(t ?? this.getDefaultValue?.(e), { owner: this }), this.addValue(e, n)), n);
}
readValue(e, t) {
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
- return n != null && (typeof n == "string" && (Om(n) || Am(n)) ? n = parseFloat(n) : typeof n != "number" && !rg.test(n) && rg.test(t) && (n = i_(e, t)), this.setBaseTarget(e, bv(n) ? n.get() : n)), bv(n) ? n.get() : n;
+ return n != null && (typeof n == "string" && (Dm(n) || km(n)) ? n = parseFloat(n) : typeof n != "number" && !ng.test(n) && ng.test(t) && (n = r_(e, t)), this.setBaseTarget(e, yv(n) ? n.get() : n)), yv(n) ? n.get() : n;
}
setBaseTarget(e, t) {
this.baseTarget[e] = t;
}
on(e, t) {
- return (this.events[e] || (this.events[e] = new Fm())).add(t);
+ return (this.events[e] || (this.events[e] = new Pm())).add(t);
}
notify(e, ...t) {
this.events[e]?.notify(...t);
}
scheduleRenderMicrotask() {
- hy.render(this.render);
+ my.render(this.render);
}
-}, kb = class extends lre {
+}, Ob = class extends ure {
constructor() {
- super(...arguments), this.KeyframeResolver = Dv;
+ super(...arguments), this.KeyframeResolver = Ev;
}
sortInstanceNodePosition(e, t) {
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
@@ -19779,105 +19779,105 @@ var lre = class {
handleChildMotionValue() {
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
let { children: e } = this.props;
- bv(e) && (this.childSubscription = e.on("change", (e) => {
+ yv(e) && (this.childSubscription = e.on("change", (e) => {
this.current && (this.current.textContent = `${e}`);
}));
}
};
// node_modules/motion-dom/dist/es/render/html/utils/render.mjs
-function Ab(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 jb(e, { layout: t, layoutId: n }) {
- return g_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!_y[e] || e === "opacity");
+function Ab(e, { layout: t, layoutId: n }) {
+ return h_.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!gy[e] || e === "opacity");
}
// node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
-function Mb(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) (bv(r[t]) || i && bv(i[t]) || jb(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
+ for (let t in r) (yv(r[t]) || i && yv(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 ure(e) {
+function dre(e) {
return window.getComputedStyle(e);
}
-var dre = class extends kb {
+var fre = class extends Ob {
constructor() {
- super(...arguments), this.type = "html", this.renderInstance = Ab;
+ super(...arguments), this.type = "html", this.renderInstance = kb;
}
mount(e) {
super.mount(e);
}
readValueFromInstance(e, t) {
- if (g_.has(t)) return this.projection?.isProjecting ? f_(t) : m_(e, t);
+ if (h_.has(t)) return this.projection?.isProjecting ? d_(t) : p_(e, t);
{
- let n = ure(e), r = (fh(t) ? n.getPropertyValue(t) : n[t]) || 0;
+ let n = dre(e), r = (dh(t) ? n.getPropertyValue(t) : n[t]) || 0;
return typeof r == "string" ? r.trim() : r;
}
}
measureInstanceViewportBox(e, { transformPagePoint: t }) {
- return my(e, t);
+ return py(e, t);
}
build(e, t, n) {
- Gv(e, t, n.transformTemplate);
+ Wv(e, t, n.transformTemplate);
}
scrapeMotionValuesFromProps(e, t, n) {
- return Mb(e, t, n);
+ return jb(e, t, n);
}
-}, Nb = (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 Pb(e) {
+function Nb(e) {
return { point: {
x: e.pageX,
y: e.pageY
} };
}
-var fre = (e) => (t) => Nb(t) && e(t, Pb(t));
+var pre = (e) => (t) => Mb(t) && e(t, Nb(t));
// node_modules/motion-dom/dist/es/events/add-pointer-event.mjs
-function Fb(e, t, n, r) {
- return pb(e, t, fre(n), r);
+function Pb(e, t, n, r) {
+ return fb(e, t, pre(n), r);
}
// node_modules/motion-dom/dist/es/resize/handle-element.mjs
-var Ib = /* @__PURE__ */ new WeakMap(), Lb, Rb = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Pv(r) && "getBBox" in r ? r.getBBox()[t] : r[n], pre = /*@__PURE__*/ Rb("inline", "width", "offsetWidth"), mre = /*@__PURE__*/ Rb("block", "height", "offsetHeight");
-function hre({ target: e, borderBoxSize: t }) {
- Ib.get(e)?.forEach((n) => {
+var Fb = /* @__PURE__ */ new WeakMap(), Ib, Lb = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Nv(r) && "getBBox" in r ? r.getBBox()[t] : r[n], mre = /*@__PURE__*/ Lb("inline", "width", "offsetWidth"), hre = /*@__PURE__*/ Lb("block", "height", "offsetHeight");
+function gre({ target: e, borderBoxSize: t }) {
+ Fb.get(e)?.forEach((n) => {
n(e, {
get width() {
- return pre(e, t);
+ return mre(e, t);
},
get height() {
- return mre(e, t);
+ return hre(e, t);
}
});
});
}
-function gre(e) {
- e.forEach(hre);
+function _re(e) {
+ e.forEach(gre);
}
-function _re() {
- typeof ResizeObserver < "u" && (Lb = new ResizeObserver(gre));
+function vre() {
+ typeof ResizeObserver < "u" && (Ib = new ResizeObserver(_re));
}
-function vre(e, t) {
- Lb || _re();
- let n = Rv(e);
+function yre(e, t) {
+ Ib || vre();
+ let n = Lv(e);
return n.forEach((e) => {
- let n = Ib.get(e);
- n || (n = /* @__PURE__ */ new Set(), Ib.set(e, n)), n.add(t), Lb?.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 = Ib.get(e);
- n?.delete(t), n?.size || Lb?.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 zb = /* @__PURE__ */ new Set(), Bb;
-function yre() {
- Bb = () => {
+var Rb = /* @__PURE__ */ new Set(), zb;
+function bre() {
+ zb = () => {
let e = {
get width() {
return window.innerWidth;
@@ -19886,26 +19886,26 @@ function yre() {
return window.innerHeight;
}
};
- zb.forEach((t) => t(e));
- }, window.addEventListener("resize", Bb);
+ Rb.forEach((t) => t(e));
+ }, window.addEventListener("resize", zb);
}
-function bre(e) {
- return zb.add(e), Bb || yre(), () => {
- zb.delete(e), !zb.size && typeof Bb == "function" && (window.removeEventListener("resize", Bb), Bb = void 0);
+function xre(e) {
+ return Rb.add(e), zb || bre(), () => {
+ 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 Vb(e, t) {
- return Iv(typeof e == "function" ? bre(e) : vre(e, t));
+function Bb(e, t) {
+ return Fv(typeof e == "function" ? xre(e) : yre(e, t));
}
// node_modules/motion-dom/dist/es/utils/distance.mjs
-var Hb = (e, t) => Math.abs(e - t);
-function xre(e, t) {
- let n = Hb(e.x, t.x), r = Hb(e.y, t.y);
+var Vb = (e, t) => Math.abs(e - t);
+function Sre(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 Ub = /*#__PURE__*/ new Set(["auto", "scroll"]), Wb = 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);
@@ -19913,8 +19913,8 @@ var Ub = /*#__PURE__*/ new Set(["auto", "scroll"]), Wb = class {
this.handleScroll(window);
}, this.updatePoint = () => {
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
- this.hasPendingMove = !1, this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Kb(this.lastRawMoveEventInfo, this.transformPagePoint));
- let e = Jb(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = xre(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 = Sre(e.offset, {
x: 0,
y: 0
}) >= this.distanceThreshold;
@@ -19922,99 +19922,99 @@ var Ub = /*#__PURE__*/ new Set(["auto", "scroll"]), Wb = class {
let { point: r } = e;
this.history.push({
...r,
- timestamp: lh.now()
+ timestamp: ch.now()
});
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 = Kb(t, this.transformPagePoint), this.hasPendingMove = !0, _g.update(this.updatePoint, !0);
+ this.handleScroll(window), this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = Gb(t, this.transformPagePoint), this.hasPendingMove = !0, gg.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 = Jb(e.type === "pointercancel" ? this.lastMoveEventInfo : Kb(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);
- }, !Nb(e)) return;
+ }, !Mb(e)) return;
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
- let s = Kb(Pb(e), this.transformPagePoint), { point: c } = s;
+ let s = Gb(Nb(e), this.transformPagePoint), { point: c } = s;
this.history = [{
...c,
- timestamp: lh.now()
+ timestamp: ch.now()
}];
let { onSessionStart: l } = t;
- l && l(e, Jb(s, this.history));
+ l && l(e, qb(s, this.history));
let u = {
passive: !0,
capture: !0
};
- this.removeListeners = Nm(Fb(this.contextWindow, "pointermove", this.handlePointerMove, u), Fb(this.contextWindow, "pointerup", this.handlePointerUp, u), Fb(this.contextWindow, "pointercancel", this.handlePointerUp, u)), o && this.startScrollTracking(o);
+ this.removeListeners = Mm(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);
- (Ub.has(e.overflowX) || Ub.has(e.overflowY)) && this.scrollPositions.set(t, Gb(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, Gb(window)), this.removeScrollListeners = Nm(pb(window, "scroll", this.onElementScroll, { capture: !0 }), pb(window, "scroll", this.onWindowScroll, {}));
+ this.scrollPositions.set(window, Wb(window)), this.removeScrollListeners = Mm(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 = Gb(e), i = {
+ let n = e === window, r = Wb(e), i = {
x: r.x - t.x,
y: r.y - t.y
};
- (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), _g.update(this.updatePoint, !0));
+ (i.x !== 0 || i.y !== 0) && (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), gg.update(this.updatePoint, !0));
}
updateHandlers(e) {
this.handlers = e;
}
end() {
- this.removeListeners?.(), this.removeScrollListeners?.(), this.scrollPositions.clear(), vg(this.updatePoint);
+ this.removeListeners?.(), this.removeScrollListeners?.(), this.scrollPositions.clear(), _g(this.updatePoint);
}
-}, Gb = (e) => e === window ? {
+}, Wb = (e) => e === window ? {
x: window.scrollX,
y: window.scrollY
} : {
x: e.scrollLeft,
y: e.scrollTop
};
-function Kb(e, t) {
+function Gb(e, t) {
return t ? { point: t(e.point) } : e;
}
-function qb(e, t) {
+function Kb(e, t) {
return {
x: e.x - t.x,
y: e.y - t.y
};
}
-function Jb({ point: e }, t) {
+function qb({ point: e }, t) {
return {
point: e,
- delta: qb(e, Yb(t)),
- offset: qb(e, Sre(t)),
- velocity: Cre(t, .1)
+ delta: Kb(e, Jb(t)),
+ offset: Kb(e, Cre(t)),
+ velocity: wre(t, .1)
};
}
-function Sre(e) {
+function Cre(e) {
return e[0];
}
-function Yb(e) {
+function Jb(e) {
return e[e.length - 1];
}
-function Cre(e, t) {
+function wre(e, t) {
if (e.length < 2) return {
x: 0,
y: 0
};
- let n = e.length - 1, r = null, i = Yb(e);
- for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ Im(t)));) n--;
+ let n = e.length - 1, r = null, i = Jb(e);
+ for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ Fm(t)));) n--;
if (!r) return {
x: 0,
y: 0
};
- r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ Im(t) * 2 && (r = e[1]);
- let a = /* @__PURE__ */ Lm(i.timestamp - r.timestamp);
+ r === e[0] && e.length > 2 && i.timestamp - r.timestamp > /* @__PURE__ */ Fm(t) * 2 && (r = e[1]);
+ let a = /* @__PURE__ */ Im(i.timestamp - r.timestamp);
if (a === 0) return {
x: 0,
y: 0
@@ -20026,95 +20026,95 @@ function Cre(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 wre = /* @__PURE__ */ new Set([
+var Tre = /* @__PURE__ */ new Set([
"BUTTON",
"INPUT",
"SELECT",
"TEXTAREA",
"A"
]);
-function Tre(e) {
- return wre.has(e.tagName) || e.isContentEditable === !0;
+function Ere(e) {
+ return Tre.has(e.tagName) || e.isContentEditable === !0;
}
-var Ere = /* @__PURE__ */ new Set([
+var Dre = /* @__PURE__ */ new Set([
"INPUT",
"SELECT",
"TEXTAREA"
]);
-function Dre(e) {
- return Ere.has(e.tagName) || e.isContentEditable === !0;
+function Ore(e) {
+ return Dre.has(e.tagName) || e.isContentEditable === !0;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs
-var Xb = {
+var Yb = {
x: !1,
y: !1
};
-function Zb() {
- return Xb.x || Xb.y;
+function Xb() {
+ return Yb.x || Yb.y;
}
// node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
-function Ore(e) {
- return e === "x" || e === "y" ? Xb[e] ? null : (Xb[e] = !0, () => {
- Xb[e] = !1;
- }) : Xb.x || Xb.y ? null : (Xb.x = Xb.y = !0, () => {
- Xb.x = Xb.y = !1;
+function kre(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 kre(e, { min: t, max: n }, r) {
- return t !== void 0 && e < t ? e = r ? og(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? og(n, e, r.max) : Math.min(e, n)), e;
+function Are(e, { min: t, max: n }, r) {
+ return t !== void 0 && e < t ? e = r ? ag(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? ag(n, e, r.max) : Math.min(e, n)), e;
}
-function Qb(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 Are(e, { top: t, left: n, bottom: r, right: i }) {
+function jre(e, { top: t, left: n, bottom: r, right: i }) {
return {
- x: Qb(e.x, n, i),
- y: Qb(e.y, t, r)
+ x: Zb(e.x, n, i),
+ y: Zb(e.y, t, r)
};
}
-function $b(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 jre(e, t) {
+function Mre(e, t) {
return {
- x: $b(e.x, t.x),
- y: $b(e.y, t.y)
+ x: Qb(e.x, t.x),
+ y: Qb(e.y, t.y)
};
}
-function Mre(e, t) {
- let n = .5, r = Dy(e), i = Dy(t);
- return i > r ? n = /* @__PURE__ */ Pm(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ Pm(e.min, e.max - i, t.min)), Em(0, 1, n);
-}
function Nre(e, t) {
+ let n = .5, r = Ey(e), i = Ey(t);
+ return i > r ? n = /* @__PURE__ */ Nm(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ Nm(e.min, e.max - i, t.min)), Tm(0, 1, n);
+}
+function Pre(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 ex = .35;
-function Pre(e = ex) {
- return e === !1 ? e = 0 : e === !0 && (e = ex), {
- x: tx(e, "left", "right"),
- y: tx(e, "top", "bottom")
+var $b = .35;
+function Fre(e = $b) {
+ return e === !1 ? e = 0 : e === !0 && (e = $b), {
+ x: ex(e, "left", "right"),
+ y: ex(e, "top", "bottom")
};
}
-function tx(e, t, n) {
+function ex(e, t, n) {
return {
- min: nx(e, t),
- max: nx(e, n)
+ min: tx(e, t),
+ max: tx(e, n)
};
}
-function nx(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 rx(e) {
+function nx(e) {
let t = "";
for (let n of e.path) {
n.scroll = void 0, n.updateScroll();
@@ -20123,12 +20123,12 @@ function rx(e) {
}
return t;
}
-var Fre = /* @__PURE__ */ new WeakMap(), Ire = class {
+var Ire = /* @__PURE__ */ new WeakMap(), Lre = 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 = Hy(), 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;
@@ -20136,28 +20136,28 @@ var Fre = /* @__PURE__ */ new WeakMap(), Ire = 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 = Ore(n), !this.openDragLock)) return;
+ if (n && !i && (this.openDragLock?.(), this.openDragLock = kre(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), Qy((e) => {
+ o && (o.isAnimationBlocked = !0, o.target = void 0), Zy((e) => {
let t = this.getAxisMotionValue(e).get() || 0;
- if (mh(t) && (t = hv(t, this.visualElement.current) || 0), G.test(t)) t = parseFloat(t);
- else if (Nh.test(t)) {
+ if (ph(t) && (t = mv(t, this.visualElement.current) || 0), G.test(t)) t = parseFloat(t);
+ else if (Mh.test(t)) {
let n = o?.layout?.layoutBox[e];
- n && (t = Dy(n) * (parseFloat(t) / 100));
+ n && (t = Ey(n) * (parseFloat(t) / 100));
}
this.originPoint[e] = t;
- }), this.point = typeof r == "function" && r(this), a && _g.update(() => a(e, t), !1, !0), xv(this.visualElement, "transform"), this.visualElement.animationState?.setActive("whileDrag", !0);
+ }), this.point = typeof r == "function" && r(this), a && gg.update(() => a(e, t), !1, !0), bv(this.visualElement, "transform"), this.visualElement.animationState?.setActive("whileDrag", !0);
}, a = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t;
let { dragPropagation: n, dragDirectionLock: r, onDirectionLock: i, onDrag: a } = this.getProps();
if (!n && !this.openDragLock) return;
let { offset: o } = t;
if (r && this.currentDirection === null) {
- if (this.currentDirection = Rre(o), this.currentDirection === null) return;
+ if (this.currentDirection = zre(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 && _g.update(() => a(e, t), !1, !0);
+ this.updateAxis("x", o), this.updateAxis("y", o), this.point && this.point.move(), this.visualElement.render(), a && gg.update(() => a(e, t), !1, !0);
}, o = (e, t) => {
this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
}, s = () => {
@@ -20167,7 +20167,7 @@ var Fre = /* @__PURE__ */ new WeakMap(), Ire = class {
y: 0
});
}, { dragSnapToOrigin: c } = this.getProps();
- this.panSession = new Wb(e, {
+ this.panSession = new Ub(e, {
onSessionStart: r,
onStart: i,
onMove: a,
@@ -20187,7 +20187,7 @@ var Fre = /* @__PURE__ */ new WeakMap(), Ire = class {
let { velocity: o } = i;
this.startAnimation(o, n);
let { onDragEnd: s } = this.getProps();
- s && _g.postRender(() => s(r, i));
+ s && gg.postRender(() => s(r, i));
}
cancel() {
this.isDragging = !1;
@@ -20199,26 +20199,26 @@ var Fre = /* @__PURE__ */ new WeakMap(), Ire = class {
}
updateAxis(e, t) {
let { drag: n } = this.readProps();
- if (!t || !sx(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 = kre(i, a, this.elastic[e])), this.point ? this.point[e] = i : r.set(i);
+ a && (i = Are(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;
- ix(e) ? this.constraints && this.scroll === rx(n) || (this.constraints = this.resolveRefConstraints()) : this.constraints = e && r && typeof e == "object" ? Are(r.layoutBox, e) : !1, this.elastic = Pre(t), i !== this.constraints && !ix(e) && r && this.constraints && !this.hasMutatedConstraints && Qy((e) => {
- this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Nre(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" ? jre(r.layoutBox, e) : !1, this.elastic = Fre(t), i !== this.constraints && !rx(e) && r && this.constraints && !this.hasMutatedConstraints && Zy((e) => {
+ this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Pre(r.layoutBox[e], this.constraints[e]));
});
}
resolveRefConstraints() {
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
- if (!ix(e)) return !1;
- let n = ax(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 = rx(r);
- let i = lne(n, r.root, this.visualElement.getTransformPagePoint()), a = jre(r.layout.layoutBox, r.removeElementScroll(i));
+ this.scroll = nx(r);
+ let i = une(n, r.root, this.visualElement.getTransformPagePoint()), a = Mre(r.layout.layoutBox, r.removeElementScroll(i));
if (t) {
- let e = t(one(a));
- this.hasMutatedConstraints = !!e, e && (a = Xv(e));
+ let e = t(sne(a));
+ this.hasMutatedConstraints = !!e, e && (a = Yv(e));
}
return a;
}
@@ -20230,13 +20230,13 @@ var Fre = /* @__PURE__ */ new WeakMap(), Ire = class {
restDelta: 1,
restSpeed: 10,
...a
- }, l = (i) => r && !(this.point && o) && sx(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 = Qy((e) => {
- if (!sx(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,
@@ -20254,10 +20254,10 @@ var Fre = /* @__PURE__ */ new WeakMap(), Ire = class {
}
startAxisValueAnimation(e, t) {
let n = this.getAxisMotionValue(e);
- return xv(this.visualElement, e), n.start(mv(e, n, 0, t, this.visualElement, !1));
+ return bv(this.visualElement, e), n.start(pv(e, n, 0, t, this.visualElement, !1));
}
stopAnimation() {
- Qy((e) => this.getAxisMotionValue(e).stop());
+ Zy((e) => this.getAxisMotionValue(e).stop());
}
getAxisMotionValue(e) {
let t = `_drag${e.toUpperCase()}`;
@@ -20268,50 +20268,50 @@ var Fre = /* @__PURE__ */ new WeakMap(), Ire = class {
x: e,
y: t
}, i = this.visualElement.getTransformPagePoint()?.(r) || r, a = this.visualElement.measureViewportBox();
- Qy((e) => {
- if (!sx(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] - og(r, o, .5));
+ t.set((t.get() || 0) + i[e] - ag(r, o, .5));
});
}
scalePositionWithinConstraints() {
if (!this.visualElement.current) return;
let { drag: e, dragConstraints: t } = this.getProps(), { projection: n } = this.visualElement;
- if (!ix(t) || !n || !this.constraints) return;
+ if (!rx(t) || !n || !this.constraints) return;
this.stopAnimation();
let r = this.constraints, i = {
x: 0,
y: 0
};
- Qy((e) => {
+ Zy((e) => {
let t = this.getAxisMotionValue(e).get();
- i[e] = Mre({
+ i[e] = Nre({
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(), Qy((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 (!sx(t, e, null) || !n.get()) return;
+ if (!ox(t, e, null) || !n.get()) return;
let { min: r, max: a } = this.constraints[t];
- n.set(og(r, a, i[t]));
+ n.set(ag(r, a, i[t]));
}), this.visualElement.render();
}
addListeners() {
if (!this.visualElement.current) return;
- Fre.set(this.visualElement, this);
- let e = this.visualElement.current, t = Fb(e, "pointerdown", (t) => {
- let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && Dre(i);
+ Ire.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 && Ore(i);
n && r && !a && this.start(t);
}), n, r = () => {
- let { dragConstraints: t } = this.getProps(), r = ix(t) && ax(t);
- r && (this.constraints = this.resolveRefConstraints(), n ||= Lre(e, r, () => this.scalePositionWithinConstraints()));
+ let { dragConstraints: t } = this.getProps(), r = rx(t) && ix(t);
+ r && (this.constraints = this.resolveRefConstraints(), n ||= Rre(e, r, () => this.scalePositionWithinConstraints()));
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
- i.layout || (i.root?.updateScroll(), i.updateLayout()), _g.read(r);
- let o = pb(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
- this.isDragging && t && (Qy((t) => {
- if (!sx(t, this.getProps().drag, this.currentDirection)) return;
+ i.layout || (i.root?.updateScroll(), i.updateLayout()), gg.read(r);
+ 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());
@@ -20321,7 +20321,7 @@ var Fre = /* @__PURE__ */ new WeakMap(), Ire = class {
};
}
getProps() {
- let e = this.readProps(), { dragElastic: t = ex, dragMomentum: n = !0 } = e;
+ let e = this.readProps(), { dragElastic: t = $b, dragMomentum: n = !0 } = e;
return {
...e,
dragElastic: t,
@@ -20329,32 +20329,32 @@ var Fre = /* @__PURE__ */ new WeakMap(), Ire = class {
};
}
};
-function ix(e) {
+function rx(e) {
return !!e && typeof e == "object" && ("current" in e || "nodeType" in e);
}
-var ax = (e) => "current" in e ? e.current : e;
-function ox(e) {
+var ix = (e) => "current" in e ? e.current : e;
+function ax(e) {
let t = !0;
return () => {
t ? t = !1 : e();
};
}
-function Lre(e, t, n) {
- let r = Vb(e, ox(n)), i = Vb(t, ox(n));
+function Rre(e, t, n) {
+ let r = Bb(e, ax(n)), i = Bb(t, ax(n));
return () => {
r(), i();
};
}
-function sx(e, t, n) {
+function ox(e, t, n) {
return (t === !0 || t === e) && (n === null || n === e);
}
-function Rre(e, t = 10) {
+function zre(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 cx(e, t) {
- let n = Rv(e), r = new AbortController();
+function sx(e, t) {
+ let n = Lv(e), r = new AbortController();
return [
n,
{
@@ -20362,16 +20362,16 @@ function cx(e, t) {
...t,
signal: r.signal
},
- Iv(() => r.abort())
+ Fv(() => r.abort())
];
}
// node_modules/motion-dom/dist/es/gestures/hover.mjs
-function zre(e) {
- return !(e.pointerType === "touch" || Zb());
+function Bre(e) {
+ return !(e.pointerType === "touch" || Xb());
}
-function Bre(e, t, n = {}) {
- t = Lv(t);
- let [r, i, a] = cx(e, n);
+function Vre(e, t, n = {}) {
+ t = Iv(t);
+ let [r, i, a] = sx(e, n);
return r.forEach((e) => {
let n = !1, r = !1, a, o = () => {
e.removeEventListener("pointerleave", u);
@@ -20385,7 +20385,7 @@ function Bre(e, t, n = {}) {
e.pointerType !== "touch" && (n ? r = !0 : s(e));
};
e.addEventListener("pointerenter", (n) => {
- if (!zre(n)) return;
+ if (!Bre(n)) return;
r = !1;
let o = t(e, n);
typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
@@ -20393,71 +20393,71 @@ function Bre(e, t, n = {}) {
}), a;
}
// node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
-var lx = (e, t) => t ? e === t || lx(e, t.parentElement) : !1, ux = /* @__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 dx(e) {
+function ux(e) {
return (t) => {
t.key === "Enter" && e(t);
};
}
-function fx(e, t) {
+function dx(e, t) {
e.dispatchEvent(new PointerEvent("pointer" + t, {
isPrimary: !0,
bubbles: !0
}));
}
-var Vre = (e, t) => {
- let n = !1, r = dx(() => {
- ux.has(e) || (n = !0, fx(e, "down"));
- }), i = dx(() => {
- n && (n = !1, fx(e, "up"));
+var Hre = (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 && fx(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 px(e) {
- return Nb(e) && !Zb();
+function fx(e) {
+ return Mb(e) && !Xb();
}
-var mx = /* @__PURE__ */ new WeakSet();
-function Hre(e, t, n = {}) {
- t = Lv(t);
- let [r, i, a] = cx(e, n), o = (e) => {
+var px = /* @__PURE__ */ new WeakSet();
+function Ure(e, t, n = {}) {
+ t = Iv(t);
+ let [r, i, a] = sx(e, n), o = (e) => {
let r = e.currentTarget;
- if (!px(e) || mx.has(e)) return;
- ux.add(r), n.stopPropagation && mx.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), ux.has(r) && ux.delete(r), px(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 || lx(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), Nv(e) && (e.addEventListener("focus", () => Vre(e, i), i), !Tre(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
+ (n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), Mv(e) && (e.addEventListener("focus", () => Hre(e, i), i), !Ere(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
}), a;
}
// node_modules/motion-dom/dist/es/render/dom/style-computed.mjs
-function hx(e, t) {
+function mx(e, t) {
let n = window.getComputedStyle(e);
- return k_(t) ? n.getPropertyValue(t) : n[t];
+ return O_(t) ? n.getPropertyValue(t) : n[t];
}
// node_modules/motion-dom/dist/es/render/Feature.mjs
-var gx = class {
+var hx = class {
constructor(e) {
this.isMounted = !1, this.node = e;
}
update() {}
-}, _x = /* @__PURE__ */ new Set([
+}, gx = /* @__PURE__ */ new Set([
"baseFrequency",
"diffuseConstant",
"kernelMatrix",
@@ -20481,58 +20481,58 @@ var gx = class {
"startOffset",
"textLength",
"lengthAdjust"
-]), vx = (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 Ure(e, t, n, r) {
- Ab(e, t, void 0, r);
- for (let n in t.attrs) e.setAttribute(_x.has(n) ? n : Wv(n), t.attrs[n]);
+function Wre(e, t, n, r) {
+ kb(e, t, void 0, r);
+ for (let n in t.attrs) e.setAttribute(gx.has(n) ? n : Uv(n), t.attrs[n]);
}
// node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
-function yx(e, t, n) {
- let r = Mb(e, t, n);
- for (let n in e) if (n !== "children" && (bv(e[n]) || bv(t[n]))) {
- let t = h_.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
+function vx(e, t, n) {
+ let r = jb(e, t, n);
+ for (let n in e) if (n !== "children" && (yv(e[n]) || yv(t[n]))) {
+ let t = m_.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
r[t] = e[n];
}
return r;
}
// node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
-var Wre = class extends kb {
+var Gre = class extends Ob {
constructor() {
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Hy;
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = Vy;
}
getBaseTargetFromProps(e, t) {
- return g_.has(t) ? super.getBaseTargetFromProps(e, t) ?? f_(t) : e[t];
+ return h_.has(t) ? super.getBaseTargetFromProps(e, t) ?? d_(t) : e[t];
}
getDefaultValue(e) {
- return g_.has(e) ? this.latestValues[e] ?? f_(e) : void 0;
+ return h_.has(e) ? this.latestValues[e] ?? d_(e) : void 0;
}
readValueFromInstance(e, t) {
- if (g_.has(t)) {
- let e = r_(t);
+ if (h_.has(t)) {
+ let e = n_(t);
return e && e.default || 0;
}
- if (Kv.includes(t)) {
+ if (Gv.includes(t)) {
let n = getComputedStyle(e)[t];
if (typeof n == "string" && n) return n.trim();
}
- return t = _x.has(t) ? t : Wv(t), e.getAttribute(t);
+ return t = gx.has(t) ? t : Uv(t), e.getAttribute(t);
}
scrapeMotionValuesFromProps(e, t, n) {
- return yx(e, t, n);
+ return vx(e, t, n);
}
build(e, t, n) {
- qv(e, t, this.isSVGTag, n.transformTemplate, n.style);
+ Kv(e, t, this.isSVGTag, n.transformTemplate, n.style);
}
renderInstance(e, t, n, r) {
- Ure(e, t, n, r);
+ Wre(e, t, n, r);
}
mount(e) {
- this.isSVGTag = vx(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 bx(e, t) {
+function yx(e, t) {
if (!Array.isArray(t)) return !1;
let n = t.length;
if (n !== e.length) return !1;
@@ -20540,18 +20540,18 @@ function bx(e, t) {
return !0;
}
// node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
-var Gre = [...yb].reverse(), xx = (e) => e?.out === !0 ? e : e?.out;
-function Kre(e) {
- let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => Rte(e, t, n))), n = Sx(), r = !0, i = !1;
+var Kre = [...vb].reverse(), bx = (e) => e?.out === !0 ? e : e?.out;
+function qre(e) {
+ let t = (t) => Promise.all(t.map(({ animation: t, options: n }) => zte(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" && _v(e, Array.isArray(t) ? t[0] : t, e.presenceContext?.custom) || void 0, p = /* @__PURE__ */ new Map(), m = {}, h = Infinity, g = e;
+ let { props: o, parent: s, manuallyAnimateOnMount: c } = e, { initial: l } = o, u = r || i, d = [], f = (t = l) => typeof t != "boolean" && gv(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 && xx(f(l ?? (g && g.props.initial))?.transition);
- if (Gre.forEach((t, r) => {
- let i = n[t], l = o[t], f = g && g.props[t], v = l === void 0 ? vb(f) || f === !1 ? f : void 0 : l, y = vb(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 || _b(v) || typeof v == "boolean") return;
+ let _ = u && bx(f(l ?? (g && g.props.initial))?.transition);
+ if (Kre.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,
@@ -20559,14 +20559,14 @@ function Kre(e) {
};
return;
}
- let S = qre(i.prevProp, v), C = S || y && (b && !x || r > h), w = !1, T = Array.isArray(v) ? v : [v], E = {}, D;
+ let S = Jre(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 } = _v(e, n, vv(e, t)) || {};
+ let { transition: r, transitionEnd: i, ...a } = gv(e, n, _v(e, t)) || {};
E = {
...E,
...a,
...i
- }, D = xx(r) || D;
+ }, D = bx(r) || D;
}
let { prevResolvedValues: O } = i;
for (let t in {
@@ -20574,7 +20574,7 @@ function Kre(e) {
...E
}) {
if (t in m) continue;
- let n = E[t], r = O[t], a = Array.isArray(n) && Array.isArray(r) ? !bx(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;
@@ -20589,8 +20589,8 @@ function Kre(e) {
}), C && (!(x && S) || w)) for (let n of T) {
let r = { type: t };
if (typeof n == "string" && u && c && s?.enteringChildren) {
- let t = _v(s, n)?.transition?.delayChildren;
- r.delay = sv(s.enteringChildren, e, t);
+ let t = gv(s, n)?.transition?.delayChildren;
+ r.delay = ov(s.enteringChildren, e, t);
}
d.push({
animation: n,
@@ -20607,7 +20607,7 @@ function Kre(e) {
let s = e.getValue(a);
s && (s.liveStyle = !0);
let c = n && !Array.isArray(l) ? n[a] : void 0, u = e.getBaseTargetFromProps(o, a);
- t[a] = (c === void 0 ? u !== void 0 && !bv(u) ? u : e.initialValues[a] === void 0 ? e.baseTarget[a] : void 0 : c) ?? null;
+ t[a] = (c === void 0 ? u !== void 0 && !yv(u) ? u : e.initialValues[a] === void 0 ? e.baseTarget[a] : void 0 : c) ?? null;
}), r && (t.transition = r), d.push({ animation: t });
}
let v = u && e.blockInitialAnimation || r && !c && (o.initial === !1 || o.initial === o.animate);
@@ -20628,16 +20628,16 @@ function Kre(e) {
},
getState: () => n,
reset: () => {
- n = Sx(), i = !0;
+ n = xx(), i = !0;
}
};
}
-function qre(e, t) {
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !bx(t, e) : !1;
+function Jre(e, t) {
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !yx(t, e) : !1;
}
-function Sx() {
+function xx() {
let e = {};
- for (let t of yb) e[t] = {
+ for (let t of vb) e[t] = {
isActive: t === "animate",
protectedKeys: {},
needsAnimating: {},
@@ -20647,55 +20647,55 @@ function Sx() {
return e;
}
// node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
-var Cx = /* @__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 wx(e, t) {
+function Cx(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
-function Jre(...e) {
+function Yre(...e) {
return (t) => {
let n = !1, r = e.map((e) => {
- let r = wx(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() : wx(e[t], null);
+ typeof n == "function" ? n() : Cx(e[t], null);
}
};
};
}
-function Yre(...e) {
- return F.useCallback(Jre(...e), e);
+function Xre(...e) {
+ return F.useCallback(Yre(...e), e);
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
-var Tx = (e) => {
+var wx = (e) => {
let { width: t, height: n } = e?.getBoundingClientRect() || {};
return [t / e?.offsetWidth || 1, n / e?.offsetHeight || 1];
-}, Ex = (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] = Tx(r);
+ let [a, o] = wx(r);
t += e * a, n += i * o;
}
if (getComputedStyle(r).position === "fixed") break;
}
- let [i, a] = Tx(e.offsetParent);
+ let [i, a] = wx(e.offsetParent);
return [t / i, n / a];
-}, Xre = class extends F.Component {
+}, Zre = class extends F.Component {
getSnapshotBeforeUpdate(e) {
let t = this.props.getElement();
- if (Nv(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
- let e = t.offsetParent, n = Nv(e) && e.offsetWidth || 0, r = Nv(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 = Ex(t);
+ if (Mv(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
+ let e = t.offsetParent, n = Mv(e) && e.offsetWidth || 0, r = Mv(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 = Tx(t);
}
return null;
}
@@ -20704,7 +20704,7 @@ var Tx = (e) => {
return this.props.children;
}
};
-function Zre({ 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,
@@ -20713,7 +20713,7 @@ function Zre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
right: 0,
bottom: 0,
direction: "ltr"
- }), { nonce: u } = (0, F.useContext)(Cx), d = Yre(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 = Xre(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}`);
};
@@ -20726,10 +20726,10 @@ function Zre({ 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 hy.setup(() => {
- let [e, t] = Ex(r);
+ return my.setup(() => {
+ let [e, t] = Tx(r);
m = l.current.point[0] - e, h = l.current.point[1] - t;
- }), hy.read(() => {
+ }), my.read(() => {
let { sheet: e } = c;
if (!e || !m && !h) return;
let t = l.current;
@@ -20737,7 +20737,7 @@ function Zre({ 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)(Xre, {
+ }, [t]), (0, I.jsx)(Zre, {
isPresent: t,
getElement: f,
sizeRef: l,
@@ -20746,9 +20746,9 @@ function Zre({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop:
});
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
-var Qre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
- let u = xm($re), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);
- Sm(() => {
+var $re = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: o, anchorX: s, anchorY: c, root: l }) => {
+ let u = bm(eie), d = (0, F.useId)(), f = (0, F.useRef)(), p = (0, F.useRef)(n), m = (0, F.useRef)(r);
+ xm(() => {
p.current = n, m.current = r;
});
let h = !0, g = (0, F.useMemo)(() => (h = !1, {
@@ -20773,7 +20773,7 @@ var Qre = ({ 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)(Zre, {
+ }, [n]), e = (0, I.jsx)(Qre, {
pop: o === "popLayout",
isPresent: n,
anchorX: s,
@@ -20781,17 +20781,17 @@ var Qre = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i
root: l,
popNode: f,
children: e
- }), (0, I.jsx)(Cm.Provider, {
+ }), (0, I.jsx)(Sm.Provider, {
value: g,
children: e
});
};
-function $re() {
+function eie() {
return /* @__PURE__ */ new Map();
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
-function Dx(e = !0) {
- let t = (0, F.useContext)(Cm);
+function Ex(e = !0) {
+ let t = (0, F.useContext)(Sm);
if (t === null) return [!0, null];
let { isPresent: n, onExitComplete: r, register: i } = t, a = (0, F.useId)();
(0, F.useEffect)(() => {
@@ -20804,24 +20804,24 @@ function Dx(e = !0) {
]);
return !n && r ? [!1, o] : [!0];
}
-function Ox() {
- return eie((0, F.useContext)(Cm));
+function Dx() {
+ return tie((0, F.useContext)(Sm));
}
-function eie(e) {
+function tie(e) {
return e === null || e.isPresent;
}
// node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs
-var kx = (e) => e.key || "";
-function Ax(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 jx = ({ 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] = Dx(o), f = (0, F.useMemo)(() => Ax(e), [e]), p = o && !u ? [] : f.map(kx), m = (0, F.useRef)(!0), h = xm(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);
- Sm(() => {
+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 = bm(() => /* @__PURE__ */ new Map()), g = (0, F.useRef)(/* @__PURE__ */ new Set()), [_, v] = (0, F.useState)(f), [y, b] = (0, F.useState)(f);
+ xm(() => {
o && !u && !y.length && d?.();
}, [
u,
@@ -20833,10 +20833,10 @@ var jx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
(0, F.useEffect)(() => () => {
let e = x.current;
x.current = void 0, e?.();
- }, [y]), Sm(() => {
+ }, [y]), xm(() => {
m.current = !1;
for (let e = 0; e < y.length; e++) {
- let t = kx(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);
}
}, [
@@ -20848,15 +20848,15 @@ var jx = ({ 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(kx(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(kx(e))) ? e = f : a === "wait" && (e = S), b(Ax(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)(bm);
+ let { forceRender: C } = (0, F.useContext)(ym);
return (0, I.jsx)(I.Fragment, { children: y.map((e) => {
- let _ = kx(e), b = o && !u ? !1 : f === y || p.includes(_);
- return (0, I.jsx)(Qre, {
+ let _ = Ox(e), b = o && !u ? !1 : f === y || p.includes(_);
+ return (0, I.jsx)($re, {
isPresent: b,
initial: !m.current || n ? void 0 : !1,
custom: t,
@@ -20877,8 +20877,8 @@ var jx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
children: e
}, _);
}) });
-}, Mx = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), Nx = {
- animation: ["variants", ...yb],
+}, jx = /* @__PURE__ */ (0, F.createContext)({ strict: !1 }), Mx = {
+ animation: ["variants", ...vb],
exit: ["exit"],
drag: ["drag", "dragControls"],
focus: ["whileFocus"],
@@ -20905,32 +20905,32 @@ var jx = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
"onViewportLeave"
],
layout: ["layout", "layoutId"]
-}, Px = !1;
-function tie() {
- if (Px) return;
+}, Nx = !1;
+function nie() {
+ if (Nx) return;
let e = {};
- for (let t in Nx) e[t] = { isEnabled: (e) => Nx[t].some((t) => !!e[t]) };
- Ob(e), Px = !0;
+ for (let t in Mx) e[t] = { isEnabled: (e) => Mx[t].some((t) => !!e[t]) };
+ Db(e), Nx = !0;
}
-function Fx() {
- return tie(), cre();
+function Px() {
+ return nie(), lre();
}
// node_modules/framer-motion/dist/es/motion/features/load-features.mjs
-function nie(e) {
- let t = Fx();
+function rie(e) {
+ let t = Px();
for (let n in e) t[n] = {
...t[n],
...e[n]
};
- Ob(t);
+ Db(t);
}
// node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs
-function rie({ children: e, ...t }) {
- let n = (0, F.useContext)(Cx);
+function iie({ children: e, ...t }) {
+ let n = (0, F.useContext)(Sx);
t = {
...n,
...t
- }, t.transition = fv(t.transition, n.transition), t.isStatic = xm(() => t.isStatic);
+ }, t.transition = dv(t.transition, n.transition), t.isStatic = bm(() => t.isStatic);
let r = (0, F.useMemo)(() => t, [
JSON.stringify(t.transition),
t.transformPagePoint,
@@ -20938,77 +20938,77 @@ function rie({ children: e, ...t }) {
t.skipAnimations,
t.isValidProp
]);
- return (0, I.jsx)(Cx.Provider, {
+ return (0, I.jsx)(Sx.Provider, {
value: r,
children: e
});
}
// node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
-var Ix = /* @__PURE__ */ (0, F.createContext)({});
+var Fx = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
-function iie(e, t) {
- if (xb(e)) {
+function aie(e, t) {
+ if (bb(e)) {
let { initial: t, animate: n } = e;
return {
- initial: t === !1 || vb(t) ? t : void 0,
- animate: vb(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 aie(e) {
- let { initial: t, animate: n } = iie(e, (0, F.useContext)(Ix));
+function oie(e) {
+ let { initial: t, animate: n } = aie(e, (0, F.useContext)(Fx));
return (0, F.useMemo)(() => ({
initial: t,
animate: n
- }), [Lx(t), Lx(n)]);
+ }), [Ix(t), Ix(n)]);
}
-function Lx(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 Rx = () => ({
+var Lx = () => ({
style: {},
transform: {},
transformOrigin: {},
vars: {}
});
// node_modules/framer-motion/dist/es/render/html/use-props.mjs
-function zx(e, t, n) {
- for (let r in t) !bv(t[r]) && !jb(r, n) && (e[r] = t[r]);
+function Rx(e, t, n) {
+ for (let r in t) !yv(t[r]) && !Ab(r, n) && (e[r] = t[r]);
}
-function oie({ transformTemplate: e }, t) {
+function sie({ transformTemplate: e }, t) {
return (0, F.useMemo)(() => {
- let n = Rx();
- return Gv(n, t, e), Object.assign({}, n.vars, n.style);
+ let n = Lx();
+ return Wv(n, t, e), Object.assign({}, n.vars, n.style);
}, [t]);
}
-function sie(e, t) {
+function cie(e, t) {
let n = e.style || {}, r = {};
- return zx(r, n, e), Object.assign(r, oie(e, t)), r;
+ return Rx(r, n, e), Object.assign(r, sie(e, t)), r;
}
-function cie(e, t) {
- let n = {}, r = sie(e, t);
+function lie(e, t) {
+ let n = {}, r = cie(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 Bx = () => ({
- ...Rx(),
+var zx = () => ({
+ ...Lx(),
attrs: {}
});
// node_modules/framer-motion/dist/es/render/svg/use-props.mjs
-function lie(e, t, n, r) {
+function uie(e, t, n, r) {
let i = (0, F.useMemo)(() => {
- let n = Bx();
- return qv(n, t, vx(r), e.transformTemplate, e.style), {
+ let n = zx();
+ return Kv(n, t, _x(r), e.transformTemplate, e.style), {
...n.attrs,
style: { ...n.style }
};
}, [t]);
if (e.style) {
let t = {};
- return zx(t, e.style, e), {
+ return Rx(t, e.style, e), {
...i,
style: {
...t,
@@ -21019,21 +21019,21 @@ function lie(e, t, n, r) {
return i;
}
// node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
-var uie = /* @__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 Vx(e) {
- return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || uie.has(e);
+var die = /* @__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") || die.has(e);
}
// node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs
-function die(e, t) {
- return e.startsWith("on") ? !Vx(e) : t?.(e) ?? !Vx(e);
+function fie(e, t) {
+ return e.startsWith("on") ? !Bx(e) : t?.(e) ?? !Bx(e);
}
-function fie(e, t, n, r) {
+function pie(e, t, n, r) {
let i = {};
- for (let a in e) a === "values" && typeof e.values == "object" || bv(e[a]) || (die(a, r) || n === !0 && Vx(a) || !t && !Vx(a) || e.draggable && a.startsWith("onDrag")) && (i[a] = e[a]);
+ for (let a in e) a === "values" && typeof e.values == "object" || yv(e[a]) || (fie(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 pie = [
+var mie = [
"animate",
"circle",
"defs",
@@ -21061,40 +21061,40 @@ var pie = [
"view"
];
// node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
-function Hx(e) {
- return typeof e != "string" || e.includes("-") ? !1 : !!(pie.indexOf(e) > -1 || /[A-Z]/u.test(e));
+function Vx(e) {
+ return typeof e != "string" || e.includes("-") ? !1 : !!(mie.indexOf(e) > -1 || /[A-Z]/u.test(e));
}
// node_modules/framer-motion/dist/es/render/dom/use-render.mjs
-function mie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
- let c = (o ?? Hx(e) ? lie : cie)(t, r, i, e), l = fie(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {
+function hie(e, t, n, { latestValues: r }, i, a = !1, o, s) {
+ let c = (o ?? Vx(e) ? uie : lie)(t, r, i, e), l = pie(t, typeof e == "string", a, s), u = e === F.Fragment ? {} : {
...l,
...c,
ref: n
- }, { children: d } = t, f = (0, F.useMemo)(() => bv(d) ? d.get() : d, [d]);
+ }, { children: d } = t, f = (0, F.useMemo)(() => yv(d) ? d.get() : d, [d]);
return (0, F.createElement)(e, {
...u,
children: f
});
}
// node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
-function hie({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
+function gie({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
return {
- latestValues: gie(n, r, i, e),
+ latestValues: _ie(n, r, i, e),
renderState: t()
};
}
-function gie(e, t, n, r) {
+function _ie(e, t, n, r) {
let i = {}, a = r(e, {});
- for (let e in a) i[e] = yy(a[e]);
- let { initial: o, animate: s } = e, c = xb(e), l = Sb(e);
+ for (let e in a) i[e] = vy(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" && !_b(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 = gv(e, t[n]);
+ let r = hv(e, t[n]);
if (r) {
let { transitionEnd: e, transition: t, ...n } = r;
for (let e in n) {
@@ -21111,18 +21111,18 @@ function gie(e, t, n, r) {
}
return i;
}
-var Ux = (e) => (t, n) => {
- let r = (0, F.useContext)(Ix), i = (0, F.useContext)(Cm), a = () => hie(e, t, r, i);
- return n ? a() : xm(a);
-}, _ie = /*@__PURE__*/ Ux({
- scrapeMotionValuesFromProps: Mb,
- createRenderState: Rx
-}), vie = /*@__PURE__*/ Ux({
- scrapeMotionValuesFromProps: yx,
- createRenderState: Bx
-}), yie = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
+var Hx = (e) => (t, n) => {
+ let r = (0, F.useContext)(Fx), i = (0, F.useContext)(Sm), a = () => gie(e, t, r, i);
+ return n ? a() : bm(a);
+}, vie = /*@__PURE__*/ Hx({
+ scrapeMotionValuesFromProps: jb,
+ createRenderState: Lx
+}), yie = /*@__PURE__*/ Hx({
+ scrapeMotionValuesFromProps: vx,
+ createRenderState: zx
+}), bie = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
// node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
-function bie(e, t, n) {
+function xie(e, t, n) {
let r = (0, F.useRef)(n);
(0, F.useInsertionEffect)(() => {
r.current = n;
@@ -21140,10 +21140,10 @@ function bie(e, t, n) {
}, [t]);
}
// node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
-var Wx = /* @__PURE__ */ (0, F.createContext)({});
+var Ux = /* @__PURE__ */ (0, F.createContext)({});
// node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
-function xie(e, t, n, r, i, a) {
- let { visualElement: o } = (0, F.useContext)(Ix), s = (0, F.useContext)(Mx), c = (0, F.useContext)(Cm), l = (0, F.useContext)(Cx), u = l.reducedMotion, d = l.skipAnimations, f = (0, F.useRef)(null), p = (0, F.useRef)(!1);
+function Sie(e, t, n, r, i, a) {
+ let { visualElement: o } = (0, F.useContext)(Fx), s = (0, F.useContext)(jx), c = (0, F.useContext)(Sm), 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,
@@ -21154,14 +21154,14 @@ function xie(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)(Wx);
+ 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);
});
- let g = n[Sv], _ = (0, F.useRef)(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
- return Sm(() => {
+ let g = n[xv], _ = (0, F.useRef)(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
+ return xm(() => {
p.current && m && (m.animationState?.animateChanges(), m.enteringChildren = void 0);
- }, []), Sm(() => {
+ }, []), xm(() => {
p.current = !0, m && (window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), _.current && m.animationState && m.animationState.animateChanges());
}), (0, F.useEffect)(() => {
m && (!_.current && m.animationState && m.animationState.animateChanges(), _.current &&= (queueMicrotask(() => {
@@ -21170,46 +21170,46 @@ function xie(e, t, n, r, i, a) {
}), m;
}
// node_modules/framer-motion/dist/es/motion/index.mjs
-function Gx(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
- r && nie(r);
- let a = n ? n === "svg" : Hx(e), o = a ? vie : _ie;
+function Wx(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
+ r && rie(r);
+ let a = n ? n === "svg" : Vx(e), o = a ? yie : vie;
function s(n, s) {
- let c, l = Sie(n);
- xm(() => !!mb.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
+ let c, l = Cie(n);
+ bm(() => !!pb.current?.sharedNodes.get(l)?.lead && n.initial) && (n = {
...n,
initial: !1
});
let u = {
- ...(0, F.useContext)(Cx),
+ ...(0, F.useContext)(Sx),
...n,
layoutId: l
- }, { isStatic: d, isValidProp: f } = u, p = aie(n), m = o(n, d);
+ }, { isStatic: d, isValidProp: f } = u, p = oie(n), m = o(n, d);
if (!d && typeof window < "u") {
- Cie(u, r);
- let t = wie(u);
- p.visualElement = xie(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
+ wie(u, r);
+ let t = Tie(u);
+ p.visualElement = Sie(e, m, u, i, t.ProjectionNode, a), (t.isEnabled || p.visualElement?.projection?.options.layoutId) && (c = t.MeasureLayout);
}
- return (0, I.jsxs)(Ix.Provider, {
+ return (0, I.jsxs)(Fx.Provider, {
value: p,
children: [c && p.visualElement ? (0, I.jsx)(c, {
visualElement: p.visualElement,
...u
- }) : null, mie(e, n, bie(m, p.visualElement, s), m, d, t, a, f)]
+ }) : null, hie(e, n, xie(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[yie] = e, c;
+ return c[bie] = e, c;
}
-function Sie({ layoutId: e }) {
- let t = (0, F.useContext)(bm).id;
+function Cie({ layoutId: e }) {
+ let t = (0, F.useContext)(ym).id;
return t && e !== void 0 ? t + "-" + e : e;
}
-function Cie(e, t) {
- (0, F.useContext)(Mx).strict;
+function wie(e, t) {
+ (0, F.useContext)(jx).strict;
}
-function wie(e) {
- let { drag: t, layout: n } = Fx();
+function Tie(e) {
+ let { drag: t, layout: n } = Px();
if (!t && !n) return {};
let r = {
...t,
@@ -21222,19 +21222,19 @@ function wie(e) {
};
}
// node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
-function Tie(e, t) {
- if (typeof Proxy > "u") return Gx;
- let n = /* @__PURE__ */ new Map(), r = (n, r) => Gx(n, r, e, t);
- return new Proxy((e, t) => r(e, t), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, Gx(a, void 0, e, t)), n.get(a)) });
+function Eie(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 Eie = (e, t) => t.isSVG ?? Hx(e) ? new Wre(t) : new dre(t, { allowProjection: e !== F.Fragment }), Die = class extends gx {
+var Die = (e, t) => t.isSVG ?? Vx(e) ? new Gre(t) : new fre(t, { allowProjection: e !== F.Fragment }), Oie = class extends hx {
constructor(e) {
- super(e), e.animationState ||= Kre(e);
+ super(e), e.animationState ||= qre(e);
}
updateAnimationControlsSubscription() {
let { animate: e } = this.node.getProps();
- _b(e) && (this.unmountControls = e.subscribe(this.node));
+ gb(e) && (this.unmountControls = e.subscribe(this.node));
}
mount() {
this.updateAnimationControlsSubscription();
@@ -21245,11 +21245,11 @@ var Eie = (e, t) => t.isSVG ?? Hx(e) ? new Wre(t) : new dre(t, { allowProjection
unmount() {
this.node.animationState.reset(), this.unmountControls?.();
}
-}, Oie = 0, kie = {
- animation: { Feature: Die },
- exit: { Feature: class extends gx {
+}, kie = 0, Aie = {
+ animation: { Feature: Oie },
+ exit: { Feature: class extends hx {
constructor() {
- super(...arguments), this.id = Oie++;
+ super(...arguments), this.id = kie++;
}
update() {
let { presenceContext: e, animationState: t } = this.node;
@@ -21260,7 +21260,7 @@ var Eie = (e, t) => t.isSVG ?? Hx(e) ? new Wre(t) : new dre(t, { allowProjection
if (this.exit === !0) {
let { initial: e } = this.node.getProps();
if (e && !Array.isArray(e)) {
- let { transition: t, transitionEnd: n, ...r } = _v(this.node, e) || {};
+ let { transition: t, transitionEnd: n, ...r } = gv(this.node, e) || {};
for (let e in r) this.node.getValue(e)?.jump(r[e]);
}
this.node.blockInitialAnimation = !1, t.reset(), t.animateChanges();
@@ -21279,13 +21279,13 @@ var Eie = (e, t) => t.isSVG ?? Hx(e) ? new Wre(t) : new dre(t, { allowProjection
}
unmount() {}
} }
-}, Aie = class extends gx {
+}, jie = class extends hx {
constructor(e) {
- super(e), this.removeGroupControls = Mm, this.removeListeners = Mm, this.controls = new Ire(e);
+ super(e), this.removeGroupControls = jm, this.removeListeners = jm, this.controls = new Lre(e);
}
mount() {
let { dragControls: e } = this.node.getProps();
- e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || Mm;
+ e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || jm;
}
update() {
let { dragControls: e, drag: t } = this.node.getProps(), { dragControls: n, drag: r } = this.node.prevProps || {};
@@ -21294,14 +21294,14 @@ var Eie = (e, t) => t.isSVG ?? Hx(e) ? new Wre(t) : new dre(t, { allowProjection
unmount() {
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
}
-}, Kx = (e) => (t, n) => {
- e && _g.update(() => e(t, n), !1, !0);
-}, jie = class extends gx {
+}, Gx = (e) => (t, n) => {
+ e && gg.update(() => e(t, n), !1, !0);
+}, Mie = class extends hx {
constructor() {
- super(...arguments), this.removePointerDownListener = Mm;
+ super(...arguments), this.removePointerDownListener = jm;
}
onPointerDown(e) {
- this.session = new Wb(e, this.createPanHandlers(), {
+ this.session = new Ub(e, this.createPanHandlers(), {
transformPagePoint: this.node.getTransformPagePoint(),
contextWindow: this.node.current?.ownerDocument.defaultView
});
@@ -21309,16 +21309,16 @@ var Eie = (e, t) => t.isSVG ?? Hx(e) ? new Wre(t) : new dre(t, { allowProjection
createPanHandlers() {
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
return {
- onSessionStart: Kx(e),
- onStart: Kx(t),
- onMove: Kx(n),
+ onSessionStart: Gx(e),
+ onStart: Gx(t),
+ onMove: Gx(n),
onEnd: (e, t) => {
- delete this.session, r && _g.postRender(() => r(e, t));
+ delete this.session, r && gg.postRender(() => r(e, t));
}
};
}
mount() {
- this.removePointerDownListener = Fb(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());
@@ -21326,12 +21326,12 @@ var Eie = (e, t) => t.isSVG ?? Hx(e) ? new Wre(t) : new dre(t, { allowProjection
unmount() {
this.removePointerDownListener(), this.session?.end();
}
-}, qx = !1, Jx = ({ 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"
-}), Yx = (e, t) => {
+}), Jx = (e, t) => {
let { snapshot: n } = e, r = e.getStack();
r?.remove(e);
let i = r?.lead;
@@ -21340,33 +21340,33 @@ var Eie = (e, t) => t.isSVG ?? Hx(e) ? new Wre(t) : new dre(t, { allowProjection
let { resumeFrom: t } = e;
t?.isPresent !== !1 && e.getStack().members.includes(t) && (t.hide(), e.resumeFrom = void 0, e.snapshot = n);
};
-}, Mie = class extends F.Component {
+}, Nie = 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), qx && i.root.didUpdate(), i.options.layoutId !== r && Yx(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,
- ...Jx(this.props),
+ ...qx(this.props),
onExitComplete: () => this.safeToRemove()
- })), $y.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(), Yx(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,
- ...Jx(this.props)
- }), qx = !0, i || e.layoutDependency !== t || t === void 0 || e.isPresent !== a ? o.willUpdate() : this.safeToRemove(), e.isPresent !== a && (a ? o.promote() : o.relegate() || _g.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() || gg.postRender(() => {
o.getStack()?.members.length || this.safeToRemove();
}))), null;
}
componentDidUpdate() {
let { projection: e } = this.props.visualElement;
- e && (this.takeOver?.(), e.root.didUpdate(), hy.postRender(() => {
+ e && (this.takeOver?.(), e.root.didUpdate(), my.postRender(() => {
!e.currentAnimation && e.isLead() && this.safeToRemove();
}));
}
componentWillUnmount() {
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
- qx = !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?.();
@@ -21375,39 +21375,39 @@ var Eie = (e, t) => t.isSVG ?? Hx(e) ? new Wre(t) : new dre(t, { allowProjection
return null;
}
};
-function Xx(e) {
- let [t, n] = Dx(), r = (0, F.useContext)(bm);
- return (0, I.jsx)(Mie, {
+function Yx(e) {
+ let [t, n] = Ex(), r = (0, F.useContext)(ym);
+ return (0, I.jsx)(Nie, {
...e,
layoutGroup: r,
- switchLayoutGroup: (0, F.useContext)(Wx),
+ switchLayoutGroup: (0, F.useContext)(Ux),
isPresent: t,
safeToRemove: n
});
}
// node_modules/framer-motion/dist/es/motion/features/drag.mjs
-var Nie = {
- pan: { Feature: jie },
+var Pie = {
+ pan: { Feature: Mie },
drag: {
- Feature: Aie,
- ProjectionNode: hb,
- MeasureLayout: Xx
+ Feature: jie,
+ ProjectionNode: mb,
+ MeasureLayout: Yx
}
};
// node_modules/framer-motion/dist/es/gestures/hover.mjs
-function Zx(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 && _g.postRender(() => o(t, Pb(t)));
+ o && gg.postRender(() => o(t, Nb(t)));
}
-var Pie = class extends gx {
+var Fie = class extends hx {
mount() {
let { current: e } = this.node;
- e && (this.unmount = Bre(e, (e, t) => (Zx(this.node, t, "Hover", "Start"), (e) => Zx(this.node, e, "Hover", "End"))));
+ e && (this.unmount = Vre(e, (e, t) => (Xx(this.node, t, "Hover", "Start"), (e) => Xx(this.node, e, "Hover", "End"))));
}
unmount() {}
-}, Fie = class extends gx {
+}, Iie = class extends hx {
constructor() {
super(...arguments), this.isActive = !1;
}
@@ -21424,51 +21424,51 @@ var Pie = class extends gx {
this.isActive && this.node.animationState && (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
}
mount() {
- this.unmount = Nm(pb(this.node.current, "focus", () => this.onFocus()), pb(this.node.current, "blur", () => this.onBlur()));
+ this.unmount = Mm(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 Qx(e, t, n) {
- e.current instanceof HTMLButtonElement && e.current.disabled || Zx(e, t, "Tap", n);
+function Zx(e, t, n) {
+ e.current instanceof HTMLButtonElement && e.current.disabled || Xx(e, t, "Tap", n);
}
-var Iie = class extends gx {
+var Lie = class extends hx {
mount() {
let { current: e } = this.node;
if (!e) return;
let { globalTapTarget: t, propagate: n } = this.node.props;
- this.unmount = Hre(e, (e, t) => (Qx(this.node, t, "Start"), (e, { success: t }) => Qx(this.node, e, t ? "" : "Cancel")), {
+ this.unmount = Ure(e, (e, t) => (Zx(this.node, t, "Start"), (e, { success: t }) => Zx(this.node, e, t ? "" : "Cancel")), {
useGlobalTarget: t,
stopPropagation: n?.tap === !1
});
}
unmount() {}
-}, $x = /* @__PURE__ */ new WeakMap(), eS = /* @__PURE__ */ new WeakMap(), Lie = (e) => {
- let t = $x.get(e.target);
+}, Qx = /* @__PURE__ */ new WeakMap(), $x = /* @__PURE__ */ new WeakMap(), Rie = (e) => {
+ let t = Qx.get(e.target);
t && t(e);
-}, Rie = (e) => {
- e.forEach(Lie);
+}, zie = (e) => {
+ e.forEach(Rie);
};
-function zie({ root: e, ...t }) {
+function Bie({ root: e, ...t }) {
let n = e || document;
- eS.has(n) || eS.set(n, {});
- let r = eS.get(n), i = JSON.stringify(t);
- return r[i] || (r[i] = new IntersectionObserver(Rie, {
+ $x.has(n) || $x.set(n, {});
+ let r = $x.get(n), i = JSON.stringify(t);
+ return r[i] || (r[i] = new IntersectionObserver(zie, {
root: e,
...t
})), r[i];
}
-function Bie(e, t, n) {
- let r = zie(t);
- return $x.set(e, n), r.observe(e), () => {
- $x.delete(e), r.unobserve(e);
+function Vie(e, t, n) {
+ let r = Bie(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 Vie = {
+var Hie = {
some: 0,
all: 1
-}, Hie = class extends gx {
+}, Uie = class extends hx {
constructor() {
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
}
@@ -21477,7 +21477,7 @@ var Vie = {
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 : Vie[r]
+ threshold: typeof r == "number" ? r : Hie[r]
}, o = (e) => {
let { isIntersecting: t } = e;
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
@@ -21485,7 +21485,7 @@ var Vie = {
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
a && a(e);
};
- this.stopObserver = Bie(this.node.current, a, o);
+ this.stopObserver = Vie(this.node.current, a, o);
}
mount() {
this.startObserver();
@@ -21497,81 +21497,81 @@ var Vie = {
"amount",
"margin",
"root"
- ].some(Uie(e, t)) && this.startObserver();
+ ].some(Wie(e, t)) && this.startObserver();
}
unmount() {
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
}
};
-function Uie({ viewport: e = {} }, { viewport: t = {} } = {}) {
+function Wie({ viewport: e = {} }, { viewport: t = {} } = {}) {
return (n) => e[n] !== t[n];
}
// node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs
-var Wie = /*@__PURE__*/ Tie(/* @__PURE__ */ Object.assign({}, kie, {
- inView: { Feature: Hie },
- tap: { Feature: Iie },
- focus: { Feature: Fie },
- hover: { Feature: Pie }
-}, Nie, { layout: {
- ProjectionNode: hb,
- MeasureLayout: Xx
-} }), Eie);
+var Gie = /*@__PURE__*/ Eie(/* @__PURE__ */ Object.assign({}, Aie, {
+ inView: { Feature: Uie },
+ tap: { Feature: Lie },
+ focus: { Feature: Iie },
+ hover: { Feature: Fie }
+}, Pie, { layout: {
+ ProjectionNode: mb,
+ MeasureLayout: Yx
+} }), Die);
// node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
-function tS() {
- !wb.current && Tb();
- let [e] = (0, F.useState)(Cb.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 nS(e) {
+function tS(e) {
return typeof e == "object" && !Array.isArray(e);
}
// node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs
-function rS(e, t, n, r) {
- return e == null ? [] : typeof e == "string" && nS(t) ? Rv(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) ? Lv(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 Gie(e, t, n) {
+function Kie(e, t, n) {
return e * (t + 1) + n * t;
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs
-function iS(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 Kie(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))) : iS(t, r) ?? e;
+function qie(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 qie(e, t, n) {
+function Jie(e, t, n) {
for (let r = 0; r < e.length; r++) {
let i = e[r];
- i.at > t && i.at < n && (Tm(e, i), r--);
+ i.at > t && i.at < n && (wm(e, i), r--);
}
}
-function Jie(e, t, n, r, i, a) {
- qie(e, i, a);
+function Yie(e, t, n, r, i, a) {
+ Jie(e, i, a);
for (let o = 0; o < t.length; o++) e.push({
value: t[o],
- at: og(i, a, r[o]),
- easing: /* @__PURE__ */ th(n, o)
+ at: ag(i, a, r[o]),
+ easing: /* @__PURE__ */ eh(n, o)
});
}
// node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs
-function Yie(e, t, n = 0) {
+function Xie(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 Xie(e, t) {
+function Zie(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 Zie = "easeInOut", Qie = 20;
-function $ie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
+var Qie = "easeInOut", $ie = 20;
+function eae(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 : Kie(f, e, d, u);
+ let a = n, s = (e) => typeof e == "number" ? n + e : qie(f, e, d, u);
for (let n = 0; n < e.length; n++) {
let h = e[n];
if (typeof h == "string") {
@@ -21586,12 +21586,12 @@ function $ie(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 = eae(e), { delay: l = 0, times: u = Vg(c), type: d = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: g = 0, ..._ } = n, { ease: v = t.ease || "easeOut", duration: b } = n;
+ let c = tae(e), { delay: l = 0, times: u = Bg(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 = I_(d) ? d : i?.[d || "keyframes"];
+ let x = typeof l == "function" ? l(a, s) : l, S = c.length, C = F_(d) ? d : i?.[d || "keyframes"];
if (S <= 2 && C) {
let e = 100;
- if (S === 2 && rae(c)) {
+ if (S === 2 && iae(c)) {
let t = c[1] - c[0];
e = Math.abs(t);
}
@@ -21599,40 +21599,40 @@ function $ie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
...t,
..._
};
- b !== void 0 && (n.duration = /* @__PURE__ */ Im(b));
- let r = wg(n, e, C);
+ b !== void 0 && (n.duration = /* @__PURE__ */ Fm(b));
+ let r = Cg(n, e, C);
v = r.ease, b = r.duration;
}
b ??= o;
let w = f + x;
u.length === 1 && u[0] === 0 && (u[1] = 1);
let T = u.length - c.length;
- if (T > 0 && Bg(u, T), c.length === 1 && c.unshift(null), m && m < Qie) {
+ if (T > 0 && zg(u, T), c.length === 1 && c.unshift(null), m && m < $ie) {
let e = b > 0 ? g / b : 0;
- b = Gie(b, m, g);
+ b = Kie(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;
- i && (a = [...t].reverse(), h === "reverse" && (o = [...r].reverse().map((e) => typeof e == "function" ? /* @__PURE__ */ Um(e) : e)));
+ i && (a = [...t].reverse(), h === "reverse" && (o = [...r].reverse().map((e) => typeof e == "function" ? /* @__PURE__ */ Hm(e) : e)));
for (let s = 0; s < m; s++) {
let l = i && s % 2 == 0, d = l ? a : t, f = l ? o : r, p = (s + 1) * (1 + e);
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__ */ th(f, e - 1));
+ for (let e = 0; e < d.length; e++) u.push(n[e] + p), v.push(e === 0 ? "linear" : /* @__PURE__ */ eh(f, e - 1));
}
- Yie(u, m, e);
+ Xie(u, m, e);
}
let E = w + b;
- Jie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
+ Yie(r, c, v, u, w, E), y = Math.max(x + b, y), p = Math.max(E, p);
};
- if (bv(g)) {
- let e = aS(g, c);
- b(_, v, oS("default", e));
+ if (yv(g)) {
+ let e = iS(g, c);
+ b(_, v, aS("default", e));
} else {
- let e = rS(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 = aS(r, c);
- for (let e in _) b(_[e], tae(v, e), oS(e, i), n, t);
+ let r = e[n], i = iS(r, c);
+ for (let e in _) b(_[e], nae(v, e), aS(e, i), n, t);
}
}
d = f, f += y, a = Math.max(a, f);
@@ -21642,13 +21642,13 @@ function $ie(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(Xie);
+ a.sort(Zie);
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__ */ Pm(0, p, t)), l.push(r || "easeOut");
+ o.push(n), c.push(/* @__PURE__ */ Nm(0, p, t)), l.push(r || "easeOut");
}
- c[0] !== 0 && (c.unshift(0), o.unshift(o[0]), l.unshift(Zie)), 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: {}
});
@@ -21666,45 +21666,45 @@ function $ie(e, { defaultTransition: t = {}, ...n } = {}, r, i, a) {
}
}), s;
}
-function aS(e, t) {
+function iS(e, t) {
return !t.has(e) && t.set(e, {}), t.get(e);
}
-function oS(e, t) {
+function aS(e, t) {
return t[e] || (t[e] = []), t[e];
}
-function eae(e) {
+function tae(e) {
return Array.isArray(e) ? e : [e];
}
-function tae(e, t) {
+function nae(e, t) {
return e && e[t] ? {
...e,
...e[t]
} : { ...e };
}
-var nae = (e) => typeof e == "number", rae = (e) => e.every(nae);
+var rae = (e) => typeof e == "number", iae = (e) => e.every(rae);
// node_modules/framer-motion/dist/es/animation/animate/subject.mjs
-function iae(e, t) {
- return bv(e) || typeof e == "number" || typeof e == "string" && !nS(t);
+function aae(e, t) {
+ return yv(e) || typeof e == "number" || typeof e == "string" && !tS(t);
}
-function sS(e, t, n, r) {
+function oS(e, t, n, r) {
let i = [];
- if (iae(e, t)) i.push(gy(e, nS(t) && t.default || t, n && (n.default || n)));
+ if (aae(e, t)) i.push(hy(e, tS(t) && t.default || t, n && (n.default || n)));
else {
if (e == null) return i;
- let a = rS(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(...mne(r, t, s, gb.get(r))) : i.push(...Mv(Jte(r) ?? hne, r, t, s));
+ "delay" in s && typeof s.delay == "function" && (s.delay = s.delay(e, o)), r instanceof Element ? i.push(...hne(r, t, s, hb.get(r))) : i.push(...jv(Yte(r) ?? gne, r, t, s));
}
}
return i;
}
// node_modules/framer-motion/dist/es/animation/animate/sequence.mjs
-function aae(e, t, n, r) {
+function oae(e, t, n, r) {
let i = [];
- return $ie(e.map((e) => {
+ return eae(e.map((e) => {
if (Array.isArray(e) && typeof e[0] == "function") {
- let t = e[0], n = dv(0);
+ let t = e[0], n = uv(0);
return n.on("change", t), e.length === 1 ? [n, [0, 1]] : e.length === 2 ? [
n,
[0, 1],
@@ -21716,33 +21716,33 @@ function aae(e, t, n, r) {
];
}
return e;
- }), t, n, { spring: Lg }, r).forEach(({ keyframes: e, transition: t }, n) => {
- i.push(...sS(n, e, t));
+ }), t, n, { spring: Ig }, r).forEach(({ keyframes: e, transition: t }, n) => {
+ i.push(...oS(n, e, t));
}), i;
}
// node_modules/framer-motion/dist/es/animation/timeline/index.mjs
-var cS = 0;
-function oae(e, t) {
+var sS = 0;
+function sae(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 lS = (e, t) => t === void 0 ? e : {
+var cS = (e, t) => t === void 0 ? e : {
name: e,
at: t
};
-function uS(e) {
+function lS(e) {
e.pause(), e.time = 0, e.stop();
}
-var dS = 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 = Fv.current, this.isKilled = !1, this.isWrapped = !1, this.stop = () => {
+ 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 = Pv.current, this.isKilled = !1, this.isWrapped = !1, this.stop = () => {
this.flush(), this.group?.stop();
- }, this.isPaused = t.autoplay === !1, this.newFinished(), e.forEach((e) => this.add(e)), n ? (this.isDirty = !1, this.isWrapped = !0, this.group = new av(n), this.watch()) : (this.invalidate(), this.flush());
+ }, this.isPaused = t.autoplay === !1, this.newFinished(), e.forEach((e) => this.add(e)), n ? (this.isDirty = !1, this.isWrapped = !0, this.group = new iv(n), this.watch()) : (this.invalidate(), this.flush());
let { scope: r } = t;
- r && (r.animations.push(this), this.finished.then(() => Tm(r.animations, this)));
+ r && (r.animations.push(this), this.finished.then(() => wm(r.animations, this)));
}
add(t, n) {
return t instanceof e && t.adopt(this), this.push({
@@ -21755,7 +21755,7 @@ var dS = class e {
item: e,
at: t,
marker: {
- name: "_m" + cS++,
+ name: "_m" + sS++,
time: 0,
callback: e
}
@@ -21766,7 +21766,7 @@ var dS = class e {
item: t || {},
at: e,
marker: {
- name: "_m" + cS++,
+ name: "_m" + sS++,
time: 0,
callback: t,
pause: !0
@@ -21860,50 +21860,50 @@ var dS = class e {
this.isDirty && !this.parent && !this.isKilled && this.build();
}
adopt(e) {
- this.group &&= (uS(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, uS(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 = Fv.current;
- Fv.current = this.motionScope;
+ let d = /* @__PURE__ */ new Map(), f = {}, p = Pv.current;
+ Pv.current = this.motionScope;
let m;
try {
- m = aae(this.toSequence(d), {
+ m = oae(this.toSequence(d), {
defaultTransition: n,
...u
}, c, f);
} finally {
- Fv.current = p;
+ Pv.current = p;
}
let h = f.labels, g = u.duration ?? f.duration, _ = f.duration ? g / f.duration : 1;
if (h.forEach((e, t) => h.set(t, e * _)), this.markers = [], d.forEach((e, t) => {
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 = dv(0);
- e.on("change", (t) => e === this.clock && this.onClock(t)), m.unshift(this.clockAnimation = gy(e, [0, g], {
+ let e = this.clock = uv(0);
+ e.on("change", (t) => e === this.clock && this.onClock(t)), m.unshift(this.clockAnimation = hy(e, [0, g], {
...u,
duration: g,
ease: "linear"
}));
}
- let v = this.group = new av(m);
+ let v = this.group = new iv(m);
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), lS(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" ? lS(n, r) : r === void 0 ? n : Array.isArray(n) ? oae(n, r) : {
+ } : typeof n == "string" ? cS(n, r) : r === void 0 ? n : Array.isArray(n) ? sae(n, r) : {
...n,
at: r
});
}
resolve(e) {
- return this.flush(), typeof e == "number" ? e : iS(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;
@@ -21951,16 +21951,16 @@ var dS = class e {
}
};
// node_modules/framer-motion/dist/es/animation/animate/index.mjs
-function sae(e) {
+function cae(e) {
return Array.isArray(e) && e.some(Array.isArray);
}
-function cae(e = {}) {
+function lae(e = {}) {
let { scope: t, reduceMotion: n, skipAnimations: r } = e;
function i(e, i, a) {
- let o = Fv.current?.transition, s = {};
+ let o = Pv.current?.transition, s = {};
n !== void 0 && (s.reduceMotion = n), r !== void 0 && (s.skipAnimations = r);
let c;
- if (sae(e)) {
+ if (cae(e)) {
let n = {
...s,
...i,
@@ -21969,14 +21969,14 @@ function cae(e = {}) {
o && (n.defaultTransition = {
...o,
...n.defaultTransition
- }), c = new dS(e, n);
+ }), c = new uS(e, n);
} else {
let { onComplete: n, ...r } = a || {}, l = {
...s,
...o,
...r
}, { onUpdate: u } = r;
- c = new dS([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],
{
@@ -21991,29 +21991,29 @@ function cae(e = {}) {
...s,
onComplete: n,
scope: t
- }, sS(e, i, l, t));
+ }, oS(e, i, l, t));
}
return c;
}
return i;
}
-var fS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ cae(), {
- addEffect: qte,
- removeEffect: Av
+var dS = /* @__PURE__ */ Object.assign(/* @__PURE__ */ lae(), {
+ addEffect: Jte,
+ removeEffect: kv
});
// node_modules/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs
-function lae(e, t, n, r) {
+function uae(e, t, n, r) {
if (e == null) return [];
- let i = Rv(e, r), a = i.length, o = [];
+ let i = Lv(e, r), a = i.length, o = [];
for (let e = 0; e < a; e++) {
let r = i[e], s = { ...n };
typeof s.delay == "function" && (s.delay = s.delay(e, a));
for (let e in t) {
let n = t[e];
Array.isArray(n) || (n = [n]);
- let i = { ...pv(s, e) };
- i.duration &&= /* @__PURE__ */ Im(i.duration), i.delay &&= /* @__PURE__ */ Im(i.delay);
- let a = yte(r), c = vte(e, i.pseudoElement || ""), l = a.get(c);
+ let i = { ...fv(s, e) };
+ i.duration &&= /* @__PURE__ */ Fm(i.duration), i.delay &&= /* @__PURE__ */ Fm(i.delay);
+ let a = bte(r), c = yte(e, i.pseudoElement || ""), l = a.get(c);
l && l.stop(), o.push({
map: a,
key: c,
@@ -22029,21 +22029,21 @@ function lae(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] = hx(r, i)), a_(t), Kte(t, i), !a && t.length < 2 && t.unshift(hx(r, i)), n.keyframes = t;
+ !a && t[0] === null && (t[0] = mx(r, i)), i_(t), qte(t, i), !a && t.length < 2 && t.unshift(mx(r, i)), n.keyframes = t;
}
let s = [];
for (let e = 0; e < o.length; e++) {
- let { map: t, key: n, options: r } = o[e], i = new L_(r);
+ let { map: t, key: n, options: r } = o[e], i = new I_(r);
t.set(n, i), i.finished.finally(() => t.delete(n)), s.push(i);
}
return s;
}
-var uae = /*@__PURE__*/ ((e) => {
+var dae = /*@__PURE__*/ ((e) => {
function t(t, n, r) {
- return new av(lae(t, n, r, e));
+ return new iv(uae(t, n, r, e));
}
return t;
-})(), pS = Wie, mS = class {
+})(), fS = Gie, 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;
}
@@ -22058,22 +22058,22 @@ var uae = /*@__PURE__*/ ((e) => {
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, hS = class extends mS {
+}, mS = class extends pS {
filter(e, t, n) {
- let [r, i] = yS(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 mS {
+(class extends pS {
static {
this.type = "header";
}
});
-var gS = class extends mS {
+var hS = class extends pS {
static {
this.type = "loader";
}
-}, _S = class extends hS {
+}, gS = class extends mS {
static {
this.type = "item";
}
@@ -22084,7 +22084,7 @@ var gS = class extends mS {
}
return null;
}
-}, dae = class extends hS {
+}, fae = class extends mS {
static {
this.type = "section";
}
@@ -22096,7 +22096,7 @@ var gS = class extends mS {
}
return null;
}
-}, vS = class {
+}, _S = class {
get size() {
return this.itemCount;
}
@@ -22171,14 +22171,14 @@ var gS = class extends mS {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = yS(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 yS(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;) {
@@ -22192,7 +22192,7 @@ function yS(e, t, n, r) {
return [i?.key ?? null, a?.key ?? null];
}
// node_modules/react-aria/dist/private/collections/Document.mjs
-var bS = 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;
}
@@ -22273,7 +22273,7 @@ var bS = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, xS = class e extends bS {
+}, 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;
}
@@ -22324,7 +22324,7 @@ var bS = class {
setAttribute() {}
setAttributeNS() {}
removeAttribute() {}
-}, fae = class extends bS {
+}, pae = 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;
}
@@ -22332,7 +22332,7 @@ var bS = class {
return !0;
}
createElement(e) {
- return new xS(e, this);
+ return new bS(e, this);
}
getMutableCollection() {
return this.nextCollection ||= this.collection.clone(), this.nextCollection;
@@ -22354,8 +22354,8 @@ var bS = class {
return this.inSubscription || (this.queuedRender = !1, this.updateCollection()), this.collection;
}
updateCollection() {
- for (let e of this.dirtyNodes) e instanceof xS && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof xS ? (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() {
@@ -22373,13 +22373,13 @@ var bS = class {
}
};
// node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
-function SS(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 = pae(a) ? a : null, o = n ? s.get(n) : null;
+ let n = mae(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
@@ -22404,7 +22404,7 @@ function SS(e) {
i
]);
}
-function pae(e) {
+function mae(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -22413,24 +22413,24 @@ function pae(e) {
}
}
// node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function CS(e) {
+function SS(e) {
e.focus({ preventScroll: !0 });
}
// node_modules/react-aria/dist/private/utils/domHelpers.mjs
-var wS = (e) => mae(e) ? e.document : hae(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), TS = (e) => wS(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function ES(e) {
+var CS = (e) => hae(e) ? e.document : gae(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 mae(e) {
+function hae(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function hae(e) {
- return ES(e) && e.nodeType === 9;
+function gae(e) {
+ return TS(e) && e.nodeType === 9;
}
-function DS(e) {
- return ES(e) && e.nodeType === 11 && "host" in e;
+function ES(e) {
+ return TS(e) && e.nodeType === 11 && "host" in e;
}
-function OS(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);
@@ -22438,7 +22438,7 @@ function OS(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function kS(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) {
@@ -22452,70 +22452,70 @@ function kS(e, t, n, r) {
};
}
// node_modules/react-stately/dist/private/flags/flags.mjs
-var gae = !1;
-function AS() {
- return gae;
+var _ae = !1;
+function kS() {
+ return _ae;
}
// node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function jS(e, t) {
- if (!AS()) 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 : DS(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 MS = (e = document) => {
- if (!AS()) 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 K(e) {
- if (AS() && 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 NS(e, t) {
+function MS(e, t) {
if (t === null) return [];
- t ??= TS(e);
+ t ??= wS(e);
let n = [t];
- if (!AS() || !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 (; DS(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 PS(e) {
+function NS(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = TS(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 _ae = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function vae(e) {
- let t = TS(e);
+var vae = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function yae(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 } = TS(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 yae(e, t) {
+function bae(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 FS(e, t) {
- return _ae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && vae(e) && yae(e, t) && (!e.parentElement || FS(e.parentElement, e));
+function PS(e, t) {
+ return vae ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && yae(e) && bae(e, t) && (!e.parentElement || PS(e.parentElement, e));
}
// node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var IS = [
+var FS = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -22530,39 +22530,39 @@ var IS = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], bae = IS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-IS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var xae = IS.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function LS(e, t) {
- return e.matches(bae) && !zS(e) && (t?.skipVisibilityCheck || FS(e));
+], xae = FS.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+FS.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var Sae = FS.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function IS(e, t) {
+ return e.matches(xae) && !RS(e) && (t?.skipVisibilityCheck || PS(e));
}
-function RS(e) {
- return e.matches(xae) && FS(e) && !zS(e);
+function LS(e) {
+ return e.matches(Sae) && PS(e) && !RS(e);
}
-function zS(e) {
+function RS(e) {
let t = e;
for (; t != null;) {
- if (t instanceof TS(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 BS = typeof document < "u" ? F.useLayoutEffect : () => {};
+var zS = typeof document < "u" ? F.useLayoutEffect : () => {};
// node_modules/react-aria/dist/private/interactions/utils.mjs
-function VS(e) {
+function BS(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function HS(e, t) {
+function VS(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function US(e) {
+function HS(e) {
let t = (0, F.useRef)({
isFocused: !1,
observer: null
});
- return BS(() => {
+ return zS(() => {
let e = t.current;
return () => {
e.observer &&= (e.observer.disconnect(), null);
@@ -22574,14 +22574,14 @@ function US(e) {
let n = r;
n.addEventListener("focusout", (r) => {
if (t.current.isFocused = !1, n.disabled) {
- let t = VS(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 === MS() ? null : MS();
+ let e = n === jS() ? null : jS();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -22594,80 +22594,80 @@ function US(e) {
}
}, [e]);
}
-var WS = !1;
-function Sae(e) {
- for (; e && !LS(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = MS(TS(e).document);
+var US = !1;
+function Cae(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 && DS(n) ? n : TS(e), i = (t) => t === e || ES(t) && jS(e, t), a = (e) => e === t || t != null && ES(e) && jS(t, e);
- WS = !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(K(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(K(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, CS(t), d()));
+ (a(K(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, SS(t), d()));
}, l = (e) => {
(i(K(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(K(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, CS(t), d()));
+ (i(K(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), WS = !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 GS(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 KS(e) {
+function GS(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function qS(e) {
+function KS(e) {
let t = null;
return () => (t ??= e(), t);
}
-var JS = qS(function() {
- return KS(/^Mac/i);
-}), Cae = qS(function() {
- return KS(/^iPhone/i);
-}), YS = qS(function() {
- return KS(/^iPad/i) || JS() && navigator.maxTouchPoints > 1;
-}), XS = qS(function() {
- return Cae() || YS();
-}), wae = qS(function() {
- return JS() || XS();
-}), ZS = qS(function() {
- return GS(/AppleWebKit/i) && (XS() || !QS());
-}), QS = qS(function() {
- return GS(/Chrome|CriOS|CrMo/i);
-}), $S = qS(function() {
- return GS(/Android/i);
+var qS = KS(function() {
+ return GS(/^Mac/i);
+}), wae = KS(function() {
+ return GS(/^iPhone/i);
+}), JS = KS(function() {
+ return GS(/^iPad/i) || qS() && navigator.maxTouchPoints > 1;
+}), YS = KS(function() {
+ return wae() || JS();
+}), Tae = 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 eC(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : $S() && 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 Tae(e) {
- return !$S() && e.width === 0 && e.height === 0 || $S() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function Eae(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 Eae = /*#__PURE__*/ (0, F.createContext)({
+var Dae = /*#__PURE__*/ (0, F.createContext)({
isNative: !0,
- open: kae,
+ open: Aae,
useHref: (e) => e
});
-function tC() {
- return (0, F.useContext)(Eae);
+function eC() {
+ return (0, F.useContext)(Dae);
}
-function Dae(e, t) {
+function Oae(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 nC(e, t, n = !0) {
- let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t, s = ZS() && JS() && !YS() ? 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,
@@ -22682,21 +22682,21 @@ function nC(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- nC.isOpening = n, CS(e), e.dispatchEvent(s), nC.isOpening = !1;
+ tC.isOpening = n, SS(e), e.dispatchEvent(s), tC.isOpening = !1;
}
-nC.isOpening = !1;
-function Oae(e, t) {
+tC.isOpening = !1;
+function kae(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 kae(e, t) {
- Oae(e, (e) => nC(e, t));
+function Aae(e, t) {
+ kae(e, (e) => tC(e, t));
}
-function rC(e) {
- let t = tC().useHref(e.href ?? "");
+function nC(e) {
+ let t = eC().useHref(e.href ?? "");
return {
"data-href": e.href ? t : void 0,
"data-target": e.target,
@@ -22706,8 +22706,8 @@ function rC(e) {
"data-referrer-policy": e.referrerPolicy
};
}
-function iC(e) {
- let t = tC().useHref(e?.href ?? ""), n = {};
+function rC(e) {
+ let t = eC().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -22718,138 +22718,138 @@ function iC(e) {
]) r in e && e[r] !== void 0 && (n[r] = r === "href" ? t : e[r]);
return n;
}
-function Aae(e, t, n, r) {
- !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Dae(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
+function jae(e, t, n, r) {
+ !t.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && !e.isDefaultPrevented() && Oae(e.currentTarget, e) && n && (e.preventDefault(), t.open(e.currentTarget, e, n, r));
}
// node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var aC = {
+var iC = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, oC = /*#__PURE__*/ F.createContext(aC), jae = /*#__PURE__*/ F.createContext(!1);
+}, aC = /*#__PURE__*/ F.createContext(iC), Mae = /*#__PURE__*/ F.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var sC = /* @__PURE__ */ new WeakMap();
-function Mae(e = !1) {
- let t = (0, F.useContext)(oC), n = (0, F.useRef)(null);
+var oC = /* @__PURE__ */ new WeakMap();
+function Nae(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 = sC.get(e);
- n == null ? sC.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, sC.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, oC.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function Nae(e) {
- let t = (0, F.useContext)(oC), n = Mae(!!e), r = `react-aria${t.prefix}`;
+function Pae(e) {
+ let t = (0, F.useContext)(aC), n = Nae(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function Pae(e) {
- let t = F.useId(), [n] = (0, F.useState)(cC()), r = n ? "react-aria" : `react-aria${aC.prefix}`;
+function Fae(e) {
+ let t = F.useId(), [n] = (0, F.useState)(sC()), r = n ? "react-aria" : `react-aria${iC.prefix}`;
return e || `${r}-${t}`;
}
-var Fae = typeof F.useId == "function" ? Pae : Nae;
-function Iae() {
+var Iae = typeof F.useId == "function" ? Fae : Pae;
+function Lae() {
return !1;
}
-function Lae() {
+function Rae() {
return !0;
}
-function Rae(e) {
+function zae(e) {
return () => {};
}
-function cC() {
- return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(Rae, Iae, Lae) : (0, F.useContext)(jae);
+function sC() {
+ return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(zae, Lae, Rae) : (0, F.useContext)(Mae);
}
// node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var lC = null, uC = /* @__PURE__ */ new Set(), dC = /* @__PURE__ */ new Map(), fC = !1, pC = !1, zae = {
+var cC = null, lC = /* @__PURE__ */ new Set(), uC = /* @__PURE__ */ new Map(), dC = !1, fC = !1, Bae = {
Tab: !0,
Escape: !0
};
-function mC(e, t) {
- for (let n of uC) n(e, t);
+function pC(e, t) {
+ for (let n of lC) n(e, t);
+}
+function Vae(e) {
+ return !(e.metaKey || !qS() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
-function Bae(e) {
- return !(e.metaKey || !JS() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+function mC(e) {
+ dC = !0, !tC.isOpening && Vae(e) && (cC = "keyboard", pC("keyboard", e));
}
function hC(e) {
- fC = !0, !nC.isOpening && Bae(e) && (lC = "keyboard", mC("keyboard", e));
+ cC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (dC = !0, pC("pointer", e));
}
function gC(e) {
- lC = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (fC = !0, mC("pointer", e));
+ !tC.isOpening && $S(e) && (dC = !0, cC = "virtual");
}
function _C(e) {
- !nC.isOpening && eC(e) && (fC = !0, lC = "virtual");
+ if (US) return;
+ let t = K(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 vC(e) {
- if (WS) return;
- let t = K(e), n = TS(t), r = wS(t);
- t === n ? pC = !0 : t !== r && e.isTrusted && (!fC && !pC && (lC = "virtual", mC("virtual", e)), fC = !1, pC = !1);
+function vC() {
+ US || (dC = !1, fC = !0);
}
-function yC() {
- WS || (fC = !1, pC = !0);
-}
-function bC(e) {
- let t = MS(wS(K(e)));
+function yC(e) {
+ let t = jS(CS(K(e)));
queueMicrotask(() => {
- MS(wS(K(e))) !== t && TC("keyboard");
+ jS(CS(K(e))) !== t && wC("keyboard");
});
}
-function xC(e) {
+function bC(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = TS(e), n = wS(e);
- if (dC.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() {
- fC = !0, r.apply(this, arguments);
+ dC = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", hC, !0), n.addEventListener("keyup", hC, !0), n.addEventListener("click", _C, !0), n.addEventListener("invalid", bC, !0), t.addEventListener("focus", vC, !0), t.addEventListener("blur", yC, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", gC, !0), n.addEventListener("pointermove", gC, !0), n.addEventListener("pointerup", gC, !0)), t.addEventListener("beforeunload", () => {
- SC(e);
- }, { once: !0 }), dC.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 SC = (e, t) => {
- let n = TS(e), r = wS(e);
- t && r.removeEventListener("DOMContentLoaded", t), dC.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: dC.get(n).focus
- }), r.removeEventListener("keydown", hC, !0), r.removeEventListener("keyup", hC, !0), r.removeEventListener("click", _C, !0), r.removeEventListener("invalid", bC, !0), n.removeEventListener("focus", vC, !0), n.removeEventListener("blur", yC, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", gC, !0), r.removeEventListener("pointermove", gC, !0), r.removeEventListener("pointerup", gC, !0)), dC.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 Vae(e) {
- let t = wS(e), n;
+function Hae(e) {
+ let t = CS(e), n;
return t.readyState === "loading" ? (n = () => {
- xC(e);
- }, t.addEventListener("DOMContentLoaded", n)) : xC(e), () => SC(e, n);
+ bC(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : bC(e), () => xC(e, n);
}
-typeof document < "u" && Vae();
-function CC() {
- return lC !== "pointer";
+typeof document < "u" && Hae();
+function SC() {
+ return cC !== "pointer";
}
-function wC() {
- return lC;
+function CC() {
+ return cC;
}
-function TC(e) {
- lC = e, mC(e, null);
+function wC(e) {
+ cC = e, pC(e, null);
}
-function EC() {
- xC();
- let [e, t] = (0, F.useState)(lC);
+function TC() {
+ bC();
+ let [e, t] = (0, F.useState)(cC);
return (0, F.useEffect)(() => {
let e = () => {
- t(lC);
+ t(cC);
};
- return uC.add(e), () => {
- uC.delete(e);
+ return lC.add(e), () => {
+ lC.delete(e);
};
- }, []), cC() ? null : e;
+ }, []), sC() ? null : e;
}
-var Hae = /* @__PURE__ */ new Set([
+var Uae = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -22860,107 +22860,107 @@ var Hae = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Uae(e, t, n) {
- let r = n ? K(n) : void 0, i = wS(r), a = TS(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 = MS(i);
- return e = e || u instanceof o && !Hae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !zae[n.key]);
+function Wae(e, t, n) {
+ let r = n ? K(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 && !Uae.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !Bae[n.key]);
}
-function DC(e = {}) {
- let { isTextInput: t, autoFocus: n } = e, [r, i] = (0, F.useState)(n || CC());
- return OC((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 OC(e, t, n) {
- xC(), (0, F.useEffect)(() => {
+function DC(e, t, n) {
+ bC(), (0, F.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- Uae(!!n?.isTextInput, t, r) && e(CC());
+ Wae(!!n?.isTextInput, t, r) && e(SC());
};
- return uC.add(t), () => {
- uC.delete(t);
+ return lC.add(t), () => {
+ lC.delete(t);
};
}, t);
}
// node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var kC = /* @__PURE__ */ new Map(), AC = /* @__PURE__ */ new Set();
-function jC(e) {
+var OC = /* @__PURE__ */ new Map(), kC = /* @__PURE__ */ new Set();
+function AC(e) {
return "propertyName" in e;
}
-function Wae(e) {
+function Gae(e) {
let t = K(e);
- if (!jC(e) || !t) return;
- let n = kC.get(t);
- n || (n = /* @__PURE__ */ new Set(), kC.set(t, n), t.addEventListener("transitioncancel", MC, { 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 MC(e) {
+function jC(e) {
let t = K(e);
- if (!jC(e) || !t) return;
- let n = kC.get(t);
- if (n && (n.delete(e.propertyName), n.size === 0 && (t.removeEventListener("transitioncancel", MC), kC.delete(t)), kC.size === 0)) for (let e of AC) e(!0), AC.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 NC() {
- OS(document, "transitionrun", Wae), OS(document, "transitionend", MC);
+function MC() {
+ DS(document, "transitionrun", Gae), DS(document, "transitionend", jC);
}
-function Gae() {
- for (let [e] of kC) "isConnected" in e && !e.isConnected && kC.delete(e);
+function Kae() {
+ for (let [e] of OC) "isConnected" in e && !e.isConnected && OC.delete(e);
}
-typeof document < "u" && (document.readyState === "loading" ? OS(document, "DOMContentLoaded", NC) : NC());
-function PC(e) {
+typeof document < "u" && (document.readyState === "loading" ? DS(document, "DOMContentLoaded", MC) : MC());
+function NC(e) {
let t = window.requestAnimationFrame(() => {
- if (Gae(), kC.size === 0) return e(!1);
- AC.add(e);
+ if (Kae(), OC.size === 0) return e(!1);
+ kC.add(e);
});
return () => {
- window.cancelAnimationFrame(t), AC.delete(e);
+ window.cancelAnimationFrame(t), kC.delete(e);
};
}
// node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function FC(e) {
+function PC(e) {
if (!e.isConnected) return;
- let t = wS(e);
- if (wC() === "virtual") {
- let n = MS(t);
- PC(() => {
- let r = MS(t);
- (r === n || r === t.body) && e.isConnected && CS(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 CS(e);
+ } else SS(e);
}
// node_modules/react-aria/dist/private/utils/chain.mjs
-function IC(...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 Kae(e) {
+function qae(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 BS(() => {
+ 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 qae = !!(typeof window < "u" && window.document && window.document.createElement), LC = /* @__PURE__ */ new Map(), RC;
-typeof FinalizationRegistry < "u" && (RC = new FinalizationRegistry((e) => {
- LC.delete(e);
+var Jae = !!(typeof window < "u" && window.document && window.document.createElement), IC = /* @__PURE__ */ new Map(), LC;
+typeof FinalizationRegistry < "u" && (LC = new FinalizationRegistry((e) => {
+ IC.delete(e);
}));
-var zC = /* @__PURE__ */ new WeakMap();
-function BC(e) {
- let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = Fae(t), a = (0, F.useRef)(null), o = zC.get(a);
- if (RC && o !== i && (o != null && RC.unregister(a), RC.register(a, i, a), zC.set(a, i)), qae) {
- let e = LC.get(i);
- e && !e.includes(r) ? e.push(r) : LC.set(i, [r]);
- }
- return BS(() => {
+var RC = /* @__PURE__ */ new WeakMap();
+function zC(e) {
+ let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(null), i = Iae(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)), Jae) {
+ let e = IC.get(i);
+ e && !e.includes(r) ? e.push(r) : IC.set(i, [r]);
+ }
+ return zS(() => {
let e = i;
return () => {
- RC && (RC.unregister(a), zC.delete(a)), LC.delete(e);
+ LC && (LC.unregister(a), RC.delete(a)), IC.delete(e);
};
}, [i]), (0, F.useEffect)(() => {
let e = r.current;
@@ -22969,57 +22969,57 @@ function BC(e) {
};
}), i;
}
-function Jae(e, t) {
+function Yae(e, t) {
if (e === t) return e;
- let n = LC.get(e);
+ let n = IC.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = LC.get(t);
+ let r = IC.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function VC(e = []) {
- let t = BC(), [n, r] = Kae(t), i = (0, F.useCallback)(() => {
+function BC(e = []) {
+ let t = zC(), [n, r] = qae(t), i = (0, F.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
}, [t, r]);
- return BS(i, [
+ return zS(i, [
t,
i,
...e
]), n;
}
// node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function HC(...e) {
+function VC(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = UC(e, t);
+ let r = HC(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : UC(e[n], null);
+ typeof t == "function" ? t() : HC(e[n], null);
});
};
};
}
-function UC(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 WC(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 = WC(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 GC() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = WC(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
@@ -23029,17 +23029,17 @@ function q(...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] = IC(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = GC(n, i) : e === "id" && n && i ? t.id = Jae(n, i) : e === "ref" && n && i ? t.ref = HC(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 = Yae(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 KC(e) {
+function GC(e) {
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, F.useCallback)((e) => {
if (K(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = US(a), s = (0, F.useCallback)((e) => {
- let t = K(e), r = wS(t), a = r ? MS(r) : MS();
+ }, [r, i]), o = HS(a), s = (0, F.useCallback)((e) => {
+ let t = K(e), r = CS(t), a = r ? jS(r) : jS();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -23052,7 +23052,7 @@ function KC(e) {
} };
}
// node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function qC(e) {
+function KC(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -23076,33 +23076,33 @@ function qC(e) {
};
}
// node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var Yae = /* @__PURE__ */ new Set([
+var Xae = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), Xae = [
+]), Zae = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function Zae(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(JS() ? "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 Qae(e) {
+function $ae(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 JC(e) {
- return Xae.filter((t) => e.has(t));
+function qC(e) {
+ return Zae.filter((t) => e.has(t));
}
-function $ae(e) {
+function eoe(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return Yae.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 Xae.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,
@@ -23114,10 +23114,10 @@ function $ae(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 YC(e) {
+function JC(e) {
return e.toLowerCase();
}
-var eoe = {
+var toe = {
space: " ",
esc: "escape",
del: "delete",
@@ -23129,26 +23129,26 @@ var eoe = {
pageup: "pageup",
pagedown: "pagedown"
};
-function toe(e) {
- let t = YC(e);
- return eoe[t] ?? t;
-}
function noe(e) {
- let t = JC(Zae(e)), n = toe(e.key);
- return t.length > 0 ? `${t.join("+")}+${n}` : n;
+ let t = JC(e);
+ return toe[t] ?? t;
}
function roe(e) {
- let t = JC(Qae(e)), n = YC(e.key);
- return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+ let t = qC(Qae(e)), n = noe(e.key);
+ return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
function ioe(e) {
+ let t = qC($ae(e)), n = JC(e.key);
+ return (t.length > 0 ? `${t.join("+")}+` : "") + n;
+}
+function aoe(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = $ae(n);
- t.set(noe(e), r);
+ let e = eoe(n);
+ t.set(roe(e), r);
}
return (e) => {
- let n = roe(e), r = t.get(n), i = r?.(e);
+ let n = ioe(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -23159,23 +23159,23 @@ function ioe(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function XC(e) {
+function YC(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = ioe(t), s = qC((e) => {
- jS(e.currentTarget, K(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
- }), c = qC((e) => {
- jS(e.currentTarget, K(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
+ let o = aoe(t), s = KC((e) => {
+ AS(e.currentTarget, K(e)) ? e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing && !r ? e.continuePropagation() : o(e) : e.continuePropagation();
+ }), c = KC((e) => {
+ AS(e.currentTarget, K(e)) && (e.nativeEvent?.repeat && !n || e.nativeEvent?.isComposing), e.continuePropagation();
});
- i = e.onKeyDown ? IC(e.onKeyDown, s) : s, a = e.onKeyUp ? IC(e.onKeyUp, c) : c;
- } else i = qC(e.onKeyDown), a = qC(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 ZC(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);
@@ -23197,25 +23197,25 @@ function ZC(e) {
}), [r]);
}
// node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function QC(e, t) {
- BS(() => {
+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 $C = /*#__PURE__*/ F.createContext(null);
-function aoe(e) {
- let t = (0, F.useContext)($C) || {};
- QC(t, e);
+var QC = /*#__PURE__*/ F.createContext(null);
+function ooe(e) {
+ let t = (0, F.useContext)(QC) || {};
+ ZC(t, e);
let { ref: n, ...r } = t;
return r;
}
-function ew(e, t) {
- let { focusProps: n } = KC(e), { keyboardProps: r } = XC(e), i = q(n, r), a = aoe(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 = q(n, r), a = ooe(t), o = e.isDisabled ? {} : a, s = (0, F.useRef)(e.autoFocus);
(0, F.useEffect)(() => {
- s.current && t.current && FC(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: q({
@@ -23249,21 +23249,21 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var tw = /*#__PURE__*/ (0, F.createContext)(!1);
-function ooe(e) {
- if ((0, F.useContext)(tw)) return /*#__PURE__*/ F.createElement(F.Fragment, null, e.children);
- let t = /*#__PURE__*/ F.createElement(tw.Provider, { value: !0 }, e.children);
+var ew = /*#__PURE__*/ (0, F.createContext)(!1);
+function soe(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 nw(e) {
- let t = (t, n) => (0, F.useContext)(tw) ? 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 rw() {
- return (0, F.useContext)(tw);
+function nw() {
+ return (0, F.useContext)(ew);
}
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
-var soe = /* @__PURE__ */ o(((e) => {
+var coe = /* @__PURE__ */ o(((e) => {
var t = A();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -23301,47 +23301,47 @@ var soe = /* @__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;
-})), iw = /* @__PURE__ */ o(((e, t) => {
- t.exports = soe();
-})), coe = iw(), aw = /*#__PURE__*/ (0, F.createContext)(!1), ow = /*#__PURE__*/ (0, F.createContext)(null);
-function sw(e) {
- if ((0, F.useContext)(ow)) return e.content;
- let { collection: t, document: n } = foe(e.createCollection);
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(ooe, null, /*#__PURE__*/ F.createElement(ow.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement(loe, {
+})), rw = /* @__PURE__ */ o(((e, t) => {
+ t.exports = coe();
+})), loe = 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 } = poe(e.createCollection);
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(soe, null, /*#__PURE__*/ F.createElement(aw.Provider, { value: n }, e.content)), /*#__PURE__*/ F.createElement(uoe, {
render: e.children,
collection: t
}));
}
-function loe({ collection: e, render: t }) {
+function uoe({ collection: e, render: t }) {
return t(e);
}
-function uoe(e, t, n) {
- let r = cC(), i = (0, F.useRef)(r);
+function doe(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, coe.useSyncExternalStore)(e, a);
+ return (0, loe.useSyncExternalStore)(e, a);
}
-var doe = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : uoe;
-function foe(e) {
- let [t] = (0, F.useState)(() => new fae(e?.() || new vS()));
+var foe = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : doe;
+function poe(e) {
+ let [t] = (0, F.useState)(() => new pae(e?.() || new _S()));
return {
- collection: doe((0, F.useCallback)((e) => t.subscribe(e), [t]), (0, F.useCallback)(() => {
+ collection: foe((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 cw = /*#__PURE__*/ (0, F.createContext)(null);
-function poe(e) {
- return class extends mS {
+var sw = /*#__PURE__*/ (0, F.createContext)(null);
+function moe(e) {
+ return class extends pS {
static {
this.type = e;
}
};
}
-function lw(e, t, n, r, i, a) {
- typeof e == "string" && (e = poe(e));
+function cw(e, t, n, r, i, a) {
+ typeof e == "string" && (e = moe(e));
let o = (0, F.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
@@ -23350,82 +23350,82 @@ function lw(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, F.useContext)(cw);
+ ]), 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(cw.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 uw(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)($C);
- if (!(0, F.useContext)(aw)) {
+ 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 lw(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ F.createElement($C.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 dw(e, t, n = fw) {
- let r = ({ node: e }) => t(e.props, e.props.ref, e), i = (0, F.forwardRef)((t, i) => lw(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 fw(e) {
- return SS({
+function dw(e) {
+ return xS({
...e,
addIdAndValue: !0
});
}
-var pw = /*#__PURE__*/ (0, F.createContext)(null);
-function mw(e) {
- let t = (0, F.useContext)(pw), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = fw({
+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)(ow) && (i = /*#__PURE__*/ F.createElement(moe, null, i)), t = (0, F.useMemo)(() => ({
+ return (0, F.useContext)(aw) && (i = /*#__PURE__*/ F.createElement(hoe, null, i)), t = (0, F.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ F.createElement(pw.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ F.createElement(fw.Provider, { value: t }, i);
}
-function moe({ children: e }) {
- let t = (0, F.useContext)(ow), n = (0, F.useMemo)(() => /*#__PURE__*/ F.createElement(ow.Provider, { value: null }, /*#__PURE__*/ F.createElement(aw.Provider, { value: !0 }, e)), [e]);
- return cC() ? /*#__PURE__*/ F.createElement(cw.Provider, { value: t }, n) : /*#__PURE__*/ (0, Rt.createPortal)(n, t);
+function hoe({ 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 hoe = "react-aria-clear-focus", goe = "react-aria-focus";
+var goe = "react-aria-clear-focus", _oe = "react-aria-focus";
// node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function hw(e) {
- let t = voe(wS(e));
- t !== e && (t && _oe(t, e), e && gw(e, t));
+function mw(e) {
+ let t = yoe(CS(e));
+ t !== e && (t && voe(t, e), e && hw(e, t));
}
-function _oe(e, t) {
+function voe(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function gw(e, t) {
+function hw(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function voe(e) {
- let t = MS(e), n = t?.getAttribute("aria-activedescendant");
+function yoe(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 _w(e, t) {
- let n = TS(t), r = wS(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 vw = 100, yw = 600, bw = {
+var _w = 100, vw = 600, yw = {
isOpen: !1,
screenWidth: 0,
screenHeight: 0,
@@ -23435,7 +23435,7 @@ var vw = 100, yw = 600, bw = {
endTimeStamp: 0,
resizeTimeStamp: 0,
resizeTimeout: 0
-}, yoe = /* @__PURE__ */ new Set([
+}, boe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -23446,7 +23446,7 @@ var vw = 100, yw = 600, bw = {
"submit",
"reset"
]);
-function xw() {
+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,
@@ -23454,58 +23454,58 @@ function xw() {
angle: window.screen.orientation?.angle ?? 0
};
}
-function boe(e) {
- bw.resizeTimeStamp <= e.timeStamp + 50 && (bw.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(bw.resizeTimeout), bw.resizeTimeout = window.setTimeout(Sw, 150));
+function xoe(e) {
+ yw.resizeTimeStamp <= e.timeStamp + 50 && (yw.resizeTimeStamp = e.timeStamp + 150, window.clearTimeout(yw.resizeTimeout), yw.resizeTimeout = window.setTimeout(xw, 150));
}
-function Sw() {
- let e = _w("viewport");
- if ($S() && e?.includes("overlays-content")) return;
- let t = performance.now(), n = xw(), r = t - bw.startTimeStamp, i = bw.screenHeight - n.height, a = bw.screenAngle - n.angle;
- Math.abs(a) % 180 && bw.screenWidth - n.height < vw && (bw.screenWidth = n.width, bw.screenHeight = n.height, bw.screenAngle = n.angle, i = 0), r > yw && (window.clearTimeout(bw.screenTimeout), bw.screenTimeout = window.setTimeout(() => {
- let e = Tw(document.hasFocus() ? MS() : null), t = xw();
- Math.abs(bw.screenAngle - t.angle) % 180 || bw.isOpen && e || (bw.screenWidth = t.width, bw.screenHeight = t.height, bw.screenAngle = t.angle, bw.isOpen = !1);
- }, yw)), r <= yw && i >= vw && (bw.endTimeStamp = t), bw.isOpen = i >= vw;
-}
-function xoe() {
- let e = xw(), t = bw.screenAngle - e.angle;
- if (Math.abs(t) % 180 && !bw.isOpen) {
- let e = bw.screenWidth;
- bw.screenWidth = bw.screenHeight, bw.screenHeight = e;
- }
- bw.isOpen || (bw.screenAngle = e.angle);
-}
-function Soe(e) {
- let t = Tw(K(e)), n = performance.now(), r = xw(), i = bw.screenHeight - r.height;
- i < vw && t && (bw.screenWidth = r.width, bw.screenHeight = r.height, bw.screenAngle = r.angle, bw.startTimeStamp = n), t && window.clearTimeout(bw.screenTimeout), i >= vw && t && (bw.endTimeStamp = n);
+function xw() {
+ 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 Soe() {
+ 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 Coe(e) {
+ let t = ww(K(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 Cw() {
- let e = xw();
- OS(window.visualViewport, "resize", ZS() ? Sw : boe), OS(window.screen.orientation, "change", xoe), OS(window, "focus", Soe, {
+function Sw() {
+ let e = bw();
+ DS(window.visualViewport, "resize", XS() ? xw : xoe), DS(window.screen.orientation, "change", Soe), DS(window, "focus", Coe, {
capture: !0,
passive: !0
- }), bw.screenWidth = e.width, bw.screenHeight = e.height, bw.screenAngle = e.angle;
+ }), yw.screenWidth = e.width, yw.screenHeight = e.height, yw.screenAngle = e.angle;
}
-typeof document < "u" && (document.readyState === "loading" ? OS(document, "DOMContentLoaded", Cw) : Cw());
-function ww() {
- let e = _w("viewport");
- return $S() && e?.includes("overlays-content") ? !1 : bw.isOpen ? !0 : bw.startTimeStamp ? bw.endTimeStamp >= bw.startTimeStamp ? !0 : performance.now() - bw.startTimeStamp <= yw ? bw.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 Tw(e) {
- if (!(e instanceof Element) || !LS(e)) return !1;
- let t = e instanceof HTMLTextAreaElement, n = e instanceof HTMLElement && e.isContentEditable, r = e instanceof HTMLInputElement && !yoe.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 && !boe.has(e.type);
return t || n || r;
}
-function Ew(e) {
- return JS() ? e.metaKey : e.ctrlKey;
+function Tw(e) {
+ return qS() ? e.metaKey : e.ctrlKey;
}
-function Dw() {
- return bw.isOpen;
+function Ew() {
+ return yw.isOpen;
}
// node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var Coe = F.useInsertionEffect ?? BS;
-function Ow(e) {
+var woe = F.useInsertionEffect ?? zS;
+function Dw(e) {
let t = (0, F.useRef)(null);
- return Coe(() => {
+ return woe(() => {
t.current = e;
}, [e]), (0, F.useCallback)((...e) => {
let n = t.current;
@@ -23513,10 +23513,10 @@ function Ow(e) {
}, []);
}
// node_modules/react-aria/dist/private/utils/useEvent.mjs
-function kw(e, t, n, r) {
- let i = Ow(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 OS(e.current, t, i, r);
+ if (!(a || e.current == null)) return DS(e.current, t, i, r);
}, [
e,
t,
@@ -23525,16 +23525,16 @@ function kw(e, t, n, r) {
]);
}
// node_modules/react-aria/dist/private/utils/useLabels.mjs
-function Aw(e, t) {
+function kw(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = BC(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 woe = /* @__PURE__ */ new Set([
+var Toe = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -23545,7 +23545,7 @@ var woe = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), Toe = /* @__PURE__ */ new Set([
+]), Eoe = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -23566,19 +23566,19 @@ var woe = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function Eoe(e) {
+function Doe(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 woe.has(t.script);
+ if (t.script) return Toe.has(t.script);
}
let t = e.split("-")[0];
- return Toe.has(t);
+ return Eoe.has(t);
}
// node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var jw = Symbol.for("react-aria.i18n.locale");
-function Mw() {
- let e = typeof window < "u" && window[jw] || 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 {
@@ -23586,31 +23586,31 @@ function Mw() {
}
return {
locale: e,
- direction: Eoe(e) ? "rtl" : "ltr"
+ direction: Doe(e) ? "rtl" : "ltr"
};
}
-var Nw = Mw(), Pw = /* @__PURE__ */ new Set();
-function Fw() {
- Nw = Mw();
- for (let e of Pw) e(Nw);
+var Mw = jw(), Nw = /* @__PURE__ */ new Set();
+function Pw() {
+ Mw = jw();
+ for (let e of Nw) e(Mw);
}
-function Doe() {
- let e = cC(), [t, n] = (0, F.useState)(Nw);
- return (0, F.useEffect)(() => (Pw.size === 0 && window.addEventListener("languagechange", Fw), Pw.add(n), () => {
- Pw.delete(n), Pw.size === 0 && window.removeEventListener("languagechange", Fw);
+function Ooe() {
+ 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[jw] || "en-US",
+ locale: typeof window < "u" && window[Aw] || "en-US",
direction: "ltr"
} : t;
}
// node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var Ooe = /*#__PURE__*/ F.createContext(null);
-function Iw() {
- let e = Doe();
- return (0, F.useContext)(Ooe) || e;
+var koe = /*#__PURE__*/ F.createContext(null);
+function Fw() {
+ let e = Ooe();
+ return (0, F.useContext)(koe) || e;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var koe = Symbol.for("react-aria.i18n.locale"), Aoe = Symbol.for("react-aria.i18n.strings"), Lw = void 0, Rw = class e {
+var Aoe = Symbol.for("react-aria.i18n.locale"), joe = 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;
}
@@ -23621,38 +23621,38 @@ var koe = Symbol.for("react-aria.i18n.locale"), Aoe = Symbol.for("react-aria.i18
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = joe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = Moe(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[koe];
- if (Lw === void 0) {
- let t = window[Aoe];
+ let n = window[Aoe];
+ if (Iw === void 0) {
+ let t = window[joe];
if (!t) return null;
- Lw = {};
- for (let r in t) Lw[r] = new e({ [n]: t[r] }, n);
+ Iw = {};
+ for (let r in t) Iw[r] = new e({ [n]: t[r] }, n);
}
- let r = Lw?.[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 joe(e, t, n = "en-US") {
+function Moe(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = Moe(e), i = Noe(e);
+ let r = Noe(e), i = Poe(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 Moe(e) {
+function Noe(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function Noe(e) {
+function Poe(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
// node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var zw = /* @__PURE__ */ new Map(), Bw = /* @__PURE__ */ new Map(), Poe = class {
+var Rw = /* @__PURE__ */ new Map(), zw = /* @__PURE__ */ new Map(), Foe = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -23663,36 +23663,36 @@ var zw = /* @__PURE__ */ new Map(), Bw = /* @__PURE__ */ new Map(), Poe = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = zw.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), zw.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 = Bw.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), Bw.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;
}
-}, Vw = /* @__PURE__ */ new WeakMap();
-function Foe(e) {
- let t = Vw.get(e);
- return t || (t = new Rw(e), Vw.set(e, t)), t;
+}, Bw = /* @__PURE__ */ new WeakMap();
+function Ioe(e) {
+ let t = Bw.get(e);
+ return t || (t = new Lw(e), Bw.set(e, t)), t;
}
-function Ioe(e, t) {
- return t && Rw.getGlobalDictionaryForPackage(t) || Foe(e);
+function Loe(e, t) {
+ return t && Lw.getGlobalDictionaryForPackage(t) || Ioe(e);
}
-function Hw(e, t) {
- let { locale: n } = Iw(), r = Ioe(e, t);
- return (0, F.useMemo)(() => new Poe(n, r), [n, r]);
+function Vw(e, t) {
+ let { locale: n } = Fw(), r = Loe(e, t);
+ return (0, F.useMemo)(() => new Foe(n, r), [n, r]);
}
// node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var Loe = /* @__PURE__ */ new Set(["id"]), Roe = /* @__PURE__ */ new Set([
+var Roe = /* @__PURE__ */ new Set(["id"]), zoe = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), zoe = /* @__PURE__ */ new Set([
+]), Boe = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -23700,60 +23700,60 @@ var Loe = /* @__PURE__ */ new Set(["id"]), Roe = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), Boe = /* @__PURE__ */ new Set([
+]), Voe = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate",
"suppressHydrationWarning"
-]), Uw = /* @__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(".")), Voe = /^(data-.*)$/;
-function Ww(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(".")), Hoe = /^(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) && (Loe.has(t) || n && Roe.has(t) || r && zoe.has(t) || i && Boe.has(t) || a && (Uw.has(t) || t.endsWith("Capture") && Uw.has(t.slice(0, -7))) || o?.has(t) || Voe.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (Roe.has(t) || n && zoe.has(t) || r && Boe.has(t) || i && Voe.has(t) || a && (Hw.has(t) || t.endsWith("Capture") && Hw.has(t.slice(0, -7))) || o?.has(t) || Hoe.test(t)) && (s[t] = e[t]);
return s;
}
// node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var Gw = "default", Kw = "", qw = /* @__PURE__ */ new WeakMap();
-function Jw(e) {
- if (XS() && ZS()) {
- if (Gw === "default") {
- let t = wS(e);
- Kw = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
- }
- Gw = "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";
- qw.set(e, e.style[t]), e.style[t] = "none";
+ Kw.set(e, e.style[t]), e.style[t] = "none";
}
}
-function Yw(e) {
- if (XS() && ZS()) {
- if (Gw !== "disabled") return;
- Gw = "restoring", setTimeout(() => {
- PC(() => {
- if (Gw === "restoring") {
- let t = wS(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Kw || ""), Kw = "", Gw = "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 && qw.has(e)) {
- let t = qw.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), qw.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 Xw = /* @__PURE__ */ new WeakMap();
-function Zw(e) {
- let t = wS(e), n = Xw.get(t);
- return n ??= _w("csp-nonce", t), n !== void 0 && Xw.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 Qw = F.createContext({ register: () => {} });
-Qw.displayName = "PressResponderContext";
+var Zw = F.createContext({ register: () => {} });
+Zw.displayName = "PressResponderContext";
// node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function $w() {
+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);
@@ -23779,15 +23779,15 @@ function $w() {
};
}
// node_modules/react-aria/dist/private/interactions/usePress.mjs
-function Hoe(e) {
- let t = (0, F.useContext)(Qw);
+function Uoe(e) {
+ let t = (0, F.useContext)(Zw);
if (t) {
let { register: n, ref: r, ...i } = t;
e = q(i, e), n();
}
- return QC(t, e.ref), e;
+ return ZC(t, e.ref), e;
}
-var eT = class {
+var $w = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -23800,9 +23800,9 @@ var eT = class {
get shouldStopPropagation() {
return this.#e;
}
-}, tT = Symbol("linkClicked"), nT = "react-aria-pressable-style", rT = "data-react-aria-pressable";
-function iT(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 } = Hoe(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 } = Uoe(e), [m, h] = (0, F.useState)(!1), g = (0, F.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -23812,12 +23812,12 @@ function iT(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = $w(), 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 eT("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;
@@ -23831,11 +23831,11 @@ function iT(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new eT("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 eT("press", r, e);
+ let n = new $w("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -23844,19 +23844,19 @@ function iT(e) {
i,
n,
t
- ]), x = Ow(b), S = Ow((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 eT("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(sT(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Yw(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 = [];
}
@@ -23864,7 +23864,7 @@ function iT(e) {
d,
v,
b
- ]), w = Ow(C);
+ ]), w = Dw(C);
(0, F.useEffect)(() => {
s && g.current.isPressed && w({
currentTarget: g.current.target,
@@ -23881,39 +23881,39 @@ function iT(e) {
}, [s, o]), D = (0, F.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- HS(n, t), o(VS(n));
+ VS(n, t), o(BS(n));
}
}, [s, o]), O = (0, F.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (oT(t.nativeEvent, t.currentTarget) && jS(t.currentTarget, K(t))) {
- cT(K(t), t.key) && t.preventDefault();
+ if (aT(t.nativeEvent, t.currentTarget) && AS(t.currentTarget, K(t))) {
+ sT(K(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;
- _(wS(t.currentTarget), "keyup", IC((t) => {
- oT(t, i) && !t.repeat && jS(i, K(t)) && e.target && S(sT(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && JS() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ _(CS(t.currentTarget), "keyup", FC((t) => {
+ aT(t, i) && !t.repeat && AS(i, K(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 || jS(t.currentTarget, K(t))) && t && t.button === 0 && !e.isTriggeringEvent && !nC.isOpening) {
+ if ((!t || AS(t.currentTarget, K(t))) && t && t.button === 0 && !e.isTriggeringEvent && !tC.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || eC(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(sT(t.currentTarget, t), r), a = x(sT(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 && oT(t, e.target)) {
- cT(K(t), t.key) && t.preventDefault();
- let n = K(t), r = jS(e.target, n);
- x(sT(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && aT(e.target) && jS(e.target, n) && !t[tT] && (t[tT] = !0, nC(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && aT(t, e.target)) {
+ sT(K(t), t.key) && t.preventDefault();
+ let n = K(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;
@@ -23922,39 +23922,39 @@ function iT(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !jS(t.currentTarget, K(t))) return;
- if (Tae(t.nativeEvent)) {
+ if (t.button !== 0 || !AS(t.currentTarget, K(t))) return;
+ if (Eae(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 || Jw(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 = K(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(wS(t.currentTarget), "pointerup", n, !1), _(wS(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 (jS(t.currentTarget, K(t)) && t.button === 0) {
+ if (AS(t.currentTarget, K(t)) && t.button === 0) {
if (l) {
- let n = Sae(t.target);
+ let n = Cae(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- jS(t.currentTarget, K(t)) && e.pointerType !== "virtual" && t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
+ AS(t.currentTarget, K(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(sT(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(sT(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 (jS(e.target, K(t)) && e.pointerType != null) {
+ if (AS(e.target, K(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? w(t) : (CS(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);
@@ -23964,7 +23964,7 @@ function iT(e) {
w(e);
};
t.onDragStart = (e) => {
- jS(e.currentTarget, K(e)) && w(e);
+ AS(e.currentTarget, K(e)) && w(e);
};
}
return t;
@@ -23981,14 +23981,14 @@ function iT(e) {
]);
return (0, F.useEffect)(() => {
if (!f) return;
- let e = wS(f.current);
- if (!e || !e.head || e.getElementById(nT)) return;
+ let e = CS(f.current);
+ if (!e || !e.head || e.getElementById(tT)) return;
let t = e.createElement("style");
- t.id = nT;
- let n = Zw(e);
+ t.id = tT;
+ let n = Xw(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${rT}] {
+ [${nT}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -23996,23 +23996,23 @@ function iT(e) {
}, [f]), (0, F.useEffect)(() => {
let e = g.current;
return () => {
- d || Yw(e.target ?? void 0);
+ d || Jw(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: q(p, O, { [rT]: !0 })
+ pressProps: q(p, O, { [nT]: !0 })
};
}
-function aT(e) {
+function iT(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function oT(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 TS(i).HTMLInputElement && !lT(i, n) || i instanceof TS(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && aT(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 sT(e, t) {
+function oT(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -24025,13 +24025,13 @@ function sT(e, t) {
key: t.key
};
}
-function Uoe(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !aT(e);
+function Woe(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !iT(e);
}
-function cT(e, t) {
- return JS() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !lT(e, t) : Uoe(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) : Woe(e);
}
-var Woe = /* @__PURE__ */ new Set([
+var Goe = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -24042,11 +24042,11 @@ var Woe = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function lT(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : Woe.has(e.type);
+function cT(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : Goe.has(e.type);
}
// node_modules/react-aria/dist/private/button/useButton.mjs
-function Goe(e, t) {
+function Koe(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,
@@ -24068,7 +24068,7 @@ function Goe(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = iT({
+ let { pressProps: _, isPressed: v } = rT({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -24078,9 +24078,9 @@ function Goe(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = ew(e, t);
+ }), { focusableProps: y } = $C(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = q(y, _, Ww(e, { labelable: !0 }));
+ let b = q(y, _, Uw(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: q(g, b, {
@@ -24094,7 +24094,7 @@ function Goe(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var Koe = class {
+var qoe = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -24119,7 +24119,7 @@ var Koe = class {
return this._currentNode;
}
set currentNode(e) {
- if (!jS(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 });
@@ -24133,7 +24133,7 @@ var Koe = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return jS(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();
@@ -24197,44 +24197,44 @@ var Koe = class {
return null;
}
};
-function uT(e, t, n, r) {
- return AS() ? new Koe(e, t, n, r) : e.createTreeWalker(t, n, r);
+function lT(e, t, n, r) {
+ return kS() ? new qoe(e, t, n, r) : e.createTreeWalker(t, n, r);
}
// node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var dT = /*#__PURE__*/ F.createContext(null), fT = "react-aria-focus-scope-restore", pT = null;
-function mT(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)(dT) || {}, l = (0, F.useMemo)(() => new DT({ scopeRef: s }), [s]);
- BS(() => {
- let e = c || OT.root;
- if (OT.getTreeNode(e.scopeRef) && pT && !bT(pT, e.scopeRef)) {
- let t = OT.getTreeNode(pT);
+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), OT.addNode(l);
- }, [l, c]), BS(() => {
- let e = OT.getTreeNode(s);
+ e.addChild(l), DT.addNode(l);
+ }, [l, c]), zS(() => {
+ let e = DT.getTreeNode(s);
e && (e.contain = !!n);
- }, [n]), BS(() => {
+ }, [n]), zS(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(fT, 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(fT, n);
+ for (let e of t) e.removeEventListener(dT, n);
};
- }, [t]), $oe(s, r, n), Xoe(s, n), ese(s, r, n), Qoe(s, i), (0, F.useEffect)(() => {
- let e = MS(wS(s.current ? s.current[0] : void 0)), t = null;
- if (vT(e, s.current)) {
- for (let n of OT.traverse()) n.scopeRef && vT(e, n.scopeRef.current) && (t = n);
- t === OT.getTreeNode(s) && (pT = t.scopeRef);
- }
- }, [s]), BS(() => () => {
- let e = OT.getTreeNode(s)?.parent?.scopeRef ?? null;
- s !== pT && !bT(s, pT) || e && !OT.getTreeNode(e) || (pT = e), OT.removeTreeNode(s);
+ }, [t]), ese(s, r, n), Zoe(s, n), tse(s, r, n), $oe(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)(() => qoe(s), []), d = (0, F.useMemo)(() => ({
+ let u = (0, F.useMemo)(() => Joe(s), []), d = (0, F.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ F.createElement(dT.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
@@ -24244,154 +24244,154 @@ function mT(e) {
ref: o
}));
}
-function qoe(e) {
+function Joe(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || MS(wS(n[0] ?? void 0)), c = n[0].previousElementSibling, l = ET(hT(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 = vT(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 && xT(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 || MS(wS(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = ET(hT(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 = vT(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 && xT(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 = ET(hT(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 && xT(o, !0), o;
+ return o && bT(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = ET(hT(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 && xT(o, !0), o;
+ return o && bT(o, !0), o;
}
};
}
-function hT(e) {
+function mT(e) {
return e[0].parentElement;
}
-function gT(e) {
- let t = OT.getTreeNode(pT);
+function hT(e) {
+ let t = DT.getTreeNode(fT);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function Joe(e) {
- if (!e.form) return Array.from(wS(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = TS(e);
+function Yoe(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 Yoe(e) {
+function Xoe(e) {
if (e.checked) return !0;
- let t = Joe(e);
+ let t = Yoe(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function Xoe(e, t) {
+function Zoe(e, t) {
let n = (0, F.useRef)(void 0), r = (0, F.useRef)(void 0);
- BS(() => {
+ zS(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = wS(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !gT(e) || t.isComposing) return;
- let n = MS(a), r = e.current;
- if (!r || !vT(n, r)) return;
- let i = ET(hT(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 && (xT(o, !0), o instanceof TS(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) => {
- (!pT || bT(pT, e)) && vT(K(t), e.current) ? (pT = e, n.current = K(t)) : gT(e) && !yT(K(t), e) ? n.current ? xT(n.current) : pT && pT.current && CT(pT.current) : gT(e) && (n.current = K(t));
+ (!fT || yT(fT, e)) && _T(K(t), e.current) ? (fT = e, n.current = K(t)) : hT(e) && !vT(K(t), e) ? n.current ? bT(n.current) : fT && fT.current && ST(fT.current) : hT(e) && (n.current = K(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = wC(), i = (r === "virtual" || r === null) && $S() && QS(), o = MS(a);
- if (!i && o && gT(e) && !yT(o, e)) {
- pT = 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 = K(t);
- r && r.isConnected ? (n.current = r, xT(n.current)) : pT.current && CT(pT.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]), BS(() => () => {
+ }, [e, t]), zS(() => () => {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function _T(e) {
- return yT(e);
+function gT(e) {
+ return vT(e);
}
-function vT(e, t) {
- return !e || !t ? !1 : t.some((t) => jS(t, e));
+function _T(e, t) {
+ return !e || !t ? !1 : t.some((t) => AS(t, e));
}
-function yT(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 OT.traverse(OT.getTreeNode(t))) if (n && vT(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 Zoe(e) {
- return yT(e, pT);
+function Qoe(e) {
+ return vT(e, fT);
}
-function bT(e, t) {
- let n = OT.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 xT(e, t = !1) {
+function bT(e, t = !1) {
if (e != null && !t) try {
- FC(e);
+ PC(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function ST(e, t = !0) {
- let n = e[0].previousElementSibling, r = hT(e), i = ET(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 = hT(e), i = ET(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 CT(e, t = !0) {
- xT(ST(e, t));
+function ST(e, t = !0) {
+ bT(xT(e, t));
}
-function Qoe(e, t) {
+function $oe(e, t) {
let n = F.useRef(t);
(0, F.useEffect)(() => {
- n.current && (pT = e, !vT(MS(wS(e.current ? e.current[0] : void 0)), pT.current) && e.current && CT(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 $oe(e, t, n) {
- BS(() => {
+function ese(e, t, n) {
+ zS(() => {
if (t || n) return;
- let r = e.current, i = wS(r ? r[0] : void 0), a = (t) => {
+ let r = e.current, i = CS(r ? r[0] : void 0), a = (t) => {
let n = K(t);
- vT(n, e.current) ? pT = e : _T(n) || (pT = 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));
@@ -24402,43 +24402,43 @@ function $oe(e, t, n) {
n
]);
}
-function wT(e) {
- let t = OT.getTreeNode(pT);
+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 ese(e, t, n) {
- let r = (0, F.useRef)(typeof document < "u" ? MS(wS(e.current ? e.current[0] : void 0)) : null);
- BS(() => {
- let r = e.current, i = wS(r ? r[0] : void 0);
+function tse(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 = () => {
- (!pT || bT(pT, e)) && vT(MS(i), e.current) && (pT = 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]), BS(() => {
- let r = wS(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 || !gT(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !hT(e) || t.isComposing) return;
let n = r.activeElement;
- if (!yT(n, e) || !wT(e)) return;
- let i = OT.getTreeNode(e);
+ if (!vT(n, e) || !CT(e)) return;
+ let i = DT.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = ET(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 || !yT(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 (yT(s, e));
- t.preventDefault(), t.stopPropagation(), s ? xT(s, !0) : _T(a) ? xT(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), () => {
@@ -24448,31 +24448,31 @@ function ese(e, t, n) {
e,
t,
n
- ]), BS(() => {
- let n = wS(e.current ? e.current[0] : void 0);
+ ]), zS(() => {
+ let n = CS(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = OT.getTreeNode(e);
+ let i = DT.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = OT.getTreeNode(e);
+ let r = DT.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = MS(n);
- if (t && i && (a && yT(a, e) || a === n.body && wT(e))) {
- let t = OT.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) {
- TT(n.nodeToRestore);
+ wT(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && OT.getTreeNode(n.scopeRef)) {
- let e = ST(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && DT.getTreeNode(n.scopeRef)) {
+ let e = xT(n.scopeRef.current, !0);
if (e) {
- TT(e);
+ wT(e);
return;
}
}
@@ -24484,21 +24484,21 @@ function ese(e, t, n) {
};
}, [e, t]);
}
-function TT(e) {
- e.dispatchEvent(new CustomEvent(fT, {
+function wT(e) {
+ e.dispatchEvent(new CustomEvent(dT, {
bubbles: !0,
cancelable: !0
- })) && xT(e);
+ })) && bT(e);
}
-function ET(e, t, n) {
- let r = t?.tabbable ? RS : LS, i = wS(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = uT(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return jS(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Yoe(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || vT(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" && (!Xoe(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 tse = class e {
+var nse = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new DT({ 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;
@@ -24509,7 +24509,7 @@ var tse = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new DT({ 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) {
@@ -24520,7 +24520,7 @@ var tse = 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 && vT(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);
}
@@ -24532,7 +24532,7 @@ var tse = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, DT = class {
+}, ET = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -24542,13 +24542,13 @@ var tse = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, OT = new tse(), kT = 7e3, AT = null;
-function jT(e, t = "assertive", n = kT) {
- AT ? AT.announce(e, t, n) : (AT = new nse(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? AT.announce(e, t, n) : setTimeout(() => {
- AT?.isAttached() && AT?.announce(e, t, n);
+}, DT = new nse(), OT = 7e3, kT = null;
+function AT(e, t = "assertive", n = OT) {
+ kT ? kT.announce(e, t, n) : (kT = new rse(), (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 nse = class {
+var rse = 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,
@@ -24573,7 +24573,7 @@ var nse = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = kT) {
+ 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(() => {
@@ -24585,8 +24585,8 @@ var nse = class {
}
};
// node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function MT(e, t) {
- let n = (0, F.useRef)(!0), r = (0, F.useRef)(null), i = Ow(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)(() => {
@@ -24595,30 +24595,30 @@ function MT(e, t) {
}, t);
}
// node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function NT(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 PT(e, t) {
+function NT(e, t) {
let n = e;
- for (NT(n, t) && (n = n.parentElement); n && !NT(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 FT(e, t) {
+function PT(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (NT(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 IT(e, t, n = {}) {
- e !== t && rse(e, t, t.getBoundingClientRect(), n);
+function FT(e, t, n = {}) {
+ e !== t && ise(e, t, t.getBoundingClientRect(), n);
}
-function rse(e, t, n, r = {}) {
+function ise(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;
- XS() && ZS() || 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;
@@ -24639,7 +24639,7 @@ function rse(e, t, n, r = {}) {
top: o
});
}
-function LT(e, t = {}) {
+function IT(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -24652,45 +24652,45 @@ function LT(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = FT(e, !0);
- for (let t of i) IT(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 ? FT(n, !0) : [];
- for (let e of i) IT(e, n, {
+ i = n ? PT(n, !0) : [];
+ for (let e of i) FT(e, n, {
block: "center",
inline: "center"
});
- for (let t of FT(e, !0)) IT(t, e);
+ for (let t of PT(e, !0)) FT(t, e);
}
}
}
}
// node_modules/react-aria/dist/private/utils/useDescription.mjs
-var ise = 0, RT = /* @__PURE__ */ new Map();
-function zT(e) {
+var ase = 0, LT = /* @__PURE__ */ new Map();
+function RT(e) {
let [t, n] = (0, F.useState)();
- return BS(() => {
+ return zS(() => {
if (!e) return;
- let t = RT.get(e);
+ let t = LT.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${ise++}`;
+ let r = `react-aria-description-${ase++}`;
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
- }, RT.set(e, t);
+ }, LT.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), RT.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 BT(e, t, n) {
- let r = Ow((e) => {
+function zT(e, t, n) {
+ let r = Dw((e) => {
n && !e.defaultPrevented && n(t);
});
(0, F.useEffect)(() => {
@@ -24701,21 +24701,21 @@ function BT(e, t, n) {
}, [e]);
}
// node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function VT(e, t, n) {
+function BT(e, t, n) {
let { validationBehavior: r, focus: i } = e;
- BS(() => {
+ 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(ose(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(sse(n.current));
}
});
- let a = (0, F.useRef)(!1), o = Ow(() => {
+ let a = (0, F.useRef)(!1), o = Dw(() => {
a.current || t.resetValidation();
- }), s = Ow((e) => {
+ }), s = Dw((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && sse(r) === n.current && (i ? i() : n.current?.focus(), TC("keyboard")), e.preventDefault();
- }), c = Ow(() => {
+ !e.defaultPrevented && n && r && cse(r) === n.current && (i ? i() : n.current?.focus(), wC("keyboard")), e.preventDefault();
+ }), c = Dw(() => {
t.commitValidation();
});
(0, F.useEffect)(() => {
@@ -24729,7 +24729,7 @@ function VT(e, t, n) {
};
}, [n, r]);
}
-function ase(e) {
+function ose(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -24745,14 +24745,14 @@ function ase(e) {
valid: t.valid
};
}
-function ose(e) {
+function sse(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: ase(e),
+ validationDetails: ose(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function sse(e) {
+function cse(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -24760,23 +24760,23 @@ function sse(e) {
return null;
}
// node_modules/react-aria/dist/private/utils/useSlot.mjs
-function cse(e = !0) {
+function lse(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 BS(() => {
+ return zS(() => {
r.current || n(!1);
}, []), [i, t];
}
-function HT(e = !0) {
- let t = BC(), [n, r] = cse(e);
+function VT(e = !0) {
+ let t = zC(), [n, r] = lse(e);
return {
id: r ? t : void 0,
ref: n
};
}
// node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var UT = {
+var HT = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -24788,18 +24788,18 @@ var UT = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, WT = {
- ...UT,
+}, UT = {
+ ...HT,
customError: !0,
valid: !1
-}, GT = {
+}, WT = {
isInvalid: !1,
- validationDetails: UT,
+ validationDetails: HT,
validationErrors: []
-}, lse = (0, F.createContext)({}), KT = "__reactAriaFormValidationState";
-function qT(e) {
+}, use = (0, F.createContext)({}), GT = "__reactAriaFormValidationState";
+function KT(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[KT];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[GT];
return {
realtimeValidation: t,
displayValidation: n,
@@ -24808,70 +24808,70 @@ function qT(e) {
commitValidation: a
};
}
- return use(e);
+ return dse(e);
}
-function use(e) {
+function dse(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: WT
- }, l = (0, F.useMemo)(() => !o || i == null ? null : YT(dse(o, i)), [o, i]);
+ validationDetails: UT
+ }, l = (0, F.useMemo)(() => !o || i == null ? null : JT(fse(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, F.useContext)(lse), d = (0, F.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => JT(u[e])) : JT(u[r]) : [], [u, r]), [f, p] = (0, F.useState)(u), [m, h] = (0, F.useState)(!1);
+ let u = (0, F.useContext)(use), 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)(() => YT(m ? [] : d), [m, d]), _ = (0, F.useRef)(GT), [v, y] = (0, F.useState)(GT), b = (0, F.useRef)(GT), 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;
- XT(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 || GT,
+ realtimeValidation: c || g || l || a || WT,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !XT(v, e) ? y(e) : _.current = e;
+ s === "aria" && !YT(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = GT;
- XT(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 JT(e) {
+function qT(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function dse(e, t) {
+function fse(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return JT(n);
+ if (n && typeof n != "boolean") return qT(n);
}
return [];
}
-function YT(e) {
+function JT(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: WT
+ validationDetails: UT
} : null;
}
-function XT(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 ZT(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 = qT({
+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;
- VT(e, b, n);
+ BT(e, b, n);
let w = (e) => {
e.stopPropagation(), t.setSelected(K(e).checked);
- }, { pressProps: T, isPressed: E } = iT({
+ }, { pressProps: T, isPressed: E } = rT({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -24879,7 +24879,7 @@ function ZT(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [D, O] = (0, F.useState)(!1), { pressProps: k } = iT({
+ }), [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));
},
@@ -24896,13 +24896,13 @@ function ZT(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [KT]: i } = e, { commitValidation: a } = i || b;
+ let { [GT]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: A } = ew(e, n), j = q(T, A), M = Ww(e, { labelable: !0 });
- BT(n, t.defaultSelected, t.setSelected);
- let ee = HT(), N = HT();
+ }), { focusableProps: A } = $C(e, n), j = q(T, A), M = Uw(e, { labelable: !0 });
+ zT(n, t.defaultSelected, t.setSelected);
+ let ee = VT(), N = VT();
return {
labelProps: q(k, { onClick: (e) => e.preventDefault() }),
inputProps: q(M, {
@@ -24938,8 +24938,8 @@ function ZT(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function QT(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 } = ZT(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);
}), {
@@ -24957,17 +24957,17 @@ function QT(e, t, n) {
};
}
// node_modules/react-aria/dist/private/checkbox/utils.mjs
-var fse = /* @__PURE__ */ new WeakMap();
+var pse = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/label/useLabel.mjs
-function $T(e) {
+function QT(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = BC(t);
- let o = BC(), 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 = Aw({
+ let c = kw({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -24978,13 +24978,13 @@ function $T(e) {
};
}
// node_modules/react-aria/dist/private/label/useField.mjs
-function eE(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = $T(e), s = VC([
+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 = VC([
+ ]), c = BC([
!!t,
!!n,
r,
@@ -25002,26 +25002,26 @@ function eE(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function tE(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, F.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = $w(), c = (0, F.useCallback)((e) => {
- jS(e.currentTarget, K(e)) && a.current.isFocusWithin && !jS(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, K(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 = US(c), u = (0, F.useCallback)((e) => {
- if (!jS(e.currentTarget, K(e))) return;
- let t = K(e), n = wS(t), s = MS(n);
+ ]), l = HS(c), u = (0, F.useCallback)((e) => {
+ if (!AS(e.currentTarget, K(e))) return;
+ let t = K(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 = K(e);
- if (a.current.isFocusWithin && !jS(t, r)) {
+ if (a.current.isFocusWithin && !AS(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- HS(e, t);
- let i = VS(e);
+ VS(e, t);
+ let i = BS(e);
c(i);
}
}, { capture: !0 });
@@ -25042,14 +25042,14 @@ function tE(e) {
} };
}
// node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var pse = F.useInsertionEffect ?? F.useLayoutEffect;
-function nE(e, t, n) {
+var mse = 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;
- pse(() => {
+ mse(() => {
a.current = c;
});
let [, l] = (0, F.useReducer)(() => ({}), {});
@@ -25059,8 +25059,8 @@ function nE(e, t, n) {
}, [n])];
}
// node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function rE(e = {}) {
- let { isReadOnly: t } = e, [n, r] = nE(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);
}
@@ -25075,26 +25075,26 @@ function rE(e = {}) {
};
}
// node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function mse(e, t, n) {
- let r = rE({
+function hse(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 } = fse.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = pse.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = qT({
+ let { realtimeValidation: l } = KT({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, F.useRef)(GT), 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 = QT({
+ 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,
@@ -25102,7 +25102,7 @@ function mse(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [KT]: {
+ [GT]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -25125,10 +25125,10 @@ function mse(e, t, n) {
};
}
// node_modules/react-stately/dist/private/utils/number.mjs
-function iE(e, t = -Infinity, n = Infinity) {
+function rE(e, t = -Infinity, n = Infinity) {
return Math.min(Math.max(e, t), n);
}
-function aE(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 {
@@ -25141,23 +25141,23 @@ function aE(e, t) {
}
return n;
}
-function oE(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 = aE(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(aE(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(aE((n - t) / r, r)) * r), a = aE(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 sE = /* @__PURE__ */ new Map(), cE = !1;
+var oE = /* @__PURE__ */ new Map(), sE = !1;
try {
- cE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
+ sE = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
} catch {}
-var hse = class {
+var gse = class {
constructor(e, t = {}) {
- this.numberFormatter = gse(e, t), this.options = t;
+ this.numberFormatter = _se(e, t), this.options = t;
}
format(e) {
let t = "";
- return t = !cE && this.options.signDisplay != null ? _se(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
+ return t = !sE && this.options.signDisplay != null ? vse(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), t;
}
formatToParts(e) {
return this.numberFormatter.formatToParts(e);
@@ -25189,21 +25189,21 @@ var hse = class {
}
resolvedOptions() {
let e = this.numberFormatter.resolvedOptions();
- return !cE && this.options.signDisplay != null && (e = {
+ return !sE && this.options.signDisplay != null && (e = {
...e,
signDisplay: this.options.signDisplay
}), e;
}
};
-function gse(e, t = {}) {
+function _se(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 (sE.has(r)) return sE.get(r);
+ if (oE.has(r)) return oE.get(r);
let i = new Intl.NumberFormat(e, t);
- return sE.set(r, i), i;
+ return oE.set(r, i), i;
}
-function _se(e, t, n) {
+function vse(e, t, n) {
if (t === "auto") return e.format(n);
if (t === "never") return e.format(Math.abs(n));
{
@@ -25216,12 +25216,12 @@ function _se(e, t, n) {
}
}
// node_modules/react-aria/dist/private/interactions/useMove.mjs
-function lE(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 } = $w(), s = Ow((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,
@@ -25243,8 +25243,8 @@ function lE(e) {
t,
n,
i
- ])), c = Ow((0, F.useCallback)((e, t) => {
- Yw(), i.current.didMove && r?.({
+ ])), c = Dw((0, F.useCallback)((e, t) => {
+ Jw(), i.current.didMove && r?.({
type: "moveend",
pointerType: t,
shiftKey: e.shiftKey,
@@ -25255,7 +25255,7 @@ function lE(e) {
}, [r, i]));
return { moveProps: (0, F.useMemo)(() => {
let e = {}, t = () => {
- Jw(), i.current.didMove = !1;
+ qw(), i.current.didMove = !1;
};
{
let n = (e) => {
@@ -25270,7 +25270,7 @@ function lE(e) {
if (e.pointerId === i.current.id) {
let t = e.pointerType || "mouse";
c(e, t), i.current.id = null;
- let a = TS(K(e));
+ let a = wS(K(e));
o(a, "pointermove", n, !1), o(a, "pointerup", r, !1), o(a, "pointercancel", r, !1);
}
};
@@ -25280,7 +25280,7 @@ function lE(e) {
pageX: e.pageX,
pageY: e.pageY
}, i.current.id = e.pointerId;
- let o = TS(K(e));
+ let o = wS(K(e));
a(o, "pointermove", n, !1), a(o, "pointerup", r, !1), a(o, "pointercancel", r, !1);
}
};
@@ -25313,7 +25313,7 @@ function lE(e) {
]) };
}
// node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.mjs
-var uE = {
+var lE = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -25325,37 +25325,37 @@ var uE = {
width: "1px",
whiteSpace: "nowrap"
};
-function dE(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, F.useState)(!1), { focusWithinProps: a } = tE({
+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 ? {
- ...uE,
+ ...lE,
...t
- } : uE, [r]);
+ } : lE, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function fE(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = dE(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, q(a, o), t);
}
// node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function vse(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = nE(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = ew(e, t), d = qT({
+function yse(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 } = eE({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = $T({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = Ww(e, { labelable: !0 }), b = {
+ }), y = Uw(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, F.useState)(c);
- return BT(t, e.defaultValue ?? x, l), VT(e, d, t), {
+ return zT(t, e.defaultValue ?? x, l), BT(e, d, t), {
labelProps: h,
inputProps: q(y, n === "input" ? b : void 0, {
disabled: r,
@@ -25401,26 +25401,26 @@ function vse(e, t) {
};
}
// node_modules/react-aria/dist/private/i18n/useNumberFormatter.mjs
-function yse(e = {}) {
- let { locale: t } = Iw();
- return (0, F.useMemo)(() => new hse(t, e), [t, e]);
+function bse(e = {}) {
+ let { locale: t } = Fw();
+ return (0, F.useMemo)(() => new gse(t, e), [t, e]);
}
// node_modules/react-aria/dist/private/slider/utils.mjs
-var pE = /* @__PURE__ */ new WeakMap();
-function mE(e, t) {
- let n = pE.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 bse(e, t, n) {
- let { labelProps: r, fieldProps: i } = $T(e), a = e.orientation === "vertical";
- pE.set(t, {
+function xse(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 } = Iw(), { addGlobalListener: s, removeGlobalListener: c } = $w(), l = (0, F.useRef)(null), u = o === "rtl", d = (0, F.useRef)(null), { moveProps: f } = lE({
+ 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;
},
@@ -25430,7 +25430,7 @@ function bse(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 = iE(d.current / s, 0, 1);
+ let e = rE(d.current / s, 0, 1);
t.setThumbPercent(l.current, e);
}
},
@@ -25454,7 +25454,7 @@ function bse(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(mE(t, 0))?.focus(), TC("keyboard");
+ document.getElementById(pE(t, 0))?.focus(), wC("keyboard");
}), {
labelProps: r,
groupProps: {
@@ -25477,26 +25477,26 @@ function bse(e, t, n) {
}
}, f),
outputProps: {
- htmlFor: t.values.map((e, n) => mE(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 xse(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 } = Iw(), { addGlobalListener: m, removeGlobalListener: h } = $w(), g = pE.get(t), { labelProps: _, fieldProps: v } = $T({
+function Sse(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: mE(t, n),
+ id: pE(t, n),
"aria-labelledby": `${g.id} ${e["aria-labelledby"] ?? ""}`.trim()
}), y = t.values[n], b = (0, F.useCallback)(() => {
- s.current && CS(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 } = XC({
+ }, { keyboardProps: T } = YC({
shortcuts: {
PageUp: () => w(() => {
t.incrementThumb(n, t.pageSize);
@@ -25512,7 +25512,7 @@ function xse(e, t) {
})
},
allowRepeats: !0
- }), { moveProps: E } = lE({
+ }), { moveProps: E } = cE({
onMoveStart() {
C.current = null, t.setThumbDragging(n, !0);
},
@@ -25523,7 +25523,7 @@ function xse(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, iE(C.current / g, 0, 1));
+ (f || S) && (t = -t), C.current += t, c(n, rE(C.current / g, 0, 1));
}
},
onMoveEnd() {
@@ -25531,7 +25531,7 @@ function xse(e, t) {
}
});
t.setThumbEditable(n, !d);
- let { focusableProps: D } = ew(q(e, {
+ let { focusableProps: D } = $C(q(e, {
onFocus: () => t.setFocusedThumb(n),
onBlur: () => t.setFocusedThumb(void 0)
}), s), O = (0, F.useRef)(void 0), k = (e) => {
@@ -25551,7 +25551,7 @@ function xse(e, t) {
k(e.changedTouches[0].identifier);
}
});
- return BT(s, t.defaultValues[n], (e) => {
+ return zT(s, t.defaultValues[n], (e) => {
t.setThumbValue(n, e);
}), {
inputProps: q(D, v, {
@@ -25591,42 +25591,42 @@ function xse(e, t) {
};
}
// node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var Sse = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function hE(e) {
+var Cse = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function mE(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var gE = /* @__PURE__ */ new WeakMap(), _E = [];
-function vE(e, t) {
- let n = TS(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Sse, 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 && Cse, 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 (AS()) {
+ if (kS()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; DS(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 (jS(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (AS(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = uT(wS(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 = gE.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), gE.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));
};
- _E.length && _E[_E.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) => jS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && hE(e) ? o.add(e) : e instanceof Element && d(e);
- if (AS()) {
+ 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;
@@ -25639,11 +25639,11 @@ function vE(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (AS()) 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) => jS(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && hE(e) ? o.add(e) : e instanceof Element && d(e);
- if (AS()) {
+ 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;
@@ -25669,56 +25669,56 @@ function vE(e, t) {
p.disconnect();
}
};
- return _E.push(h), () => {
- if (p.disconnect(), AS()) 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 = gE.get(e);
- t != null && (t === 1 ? (l(e, !1), gE.delete(e)) : gE.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 === _E[_E.length - 1] ? (_E.pop(), _E.length && _E[_E.length - 1].observe()) : _E.splice(_E.indexOf(h), 1);
+ h === gE[gE.length - 1] ? (gE.pop(), gE.length && gE[gE.length - 1].observe()) : gE.splice(gE.indexOf(h), 1);
};
}
-function yE(e) {
- let t = _E[_E.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 bE = /* @__PURE__ */ new WeakMap();
-function Cse(e) {
+var yE = /* @__PURE__ */ new WeakMap();
+function wse(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function wse(e, t) {
- let n = bE.get(e);
+function Tse(e, t) {
+ let n = yE.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${Cse(t)}`;
+ return `${n.id}-option-${wse(t)}`;
}
// node_modules/react-aria/dist/private/selection/utils.mjs
-function xE(e) {
- return wae() ? e.altKey : e.ctrlKey;
+function bE(e) {
+ return Tae() ? e.altKey : e.ctrlKey;
}
-function SE(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 CE = /* @__PURE__ */ new WeakMap();
-function Tse(e) {
- let t = BC();
- return CE.set(e, t), t;
-}
+var SE = /* @__PURE__ */ new WeakMap();
function Ese(e) {
- return CE.get(e);
+ let t = zC();
+ return SE.set(e, t), t;
+}
+function Dse(e) {
+ return SE.get(e);
}
// node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var wE = 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 : SE(this.ref, e);
+ let n = e == null ? null : xE(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -25744,12 +25744,12 @@ var wE = class {
height: e?.clientHeight ?? 0
};
}
-}, TE = 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 wE(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 wE(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) {
@@ -25789,14 +25789,14 @@ var wE = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = SE(this.ref, e);
+ let t = this.getNextKey(e), n = xE(this.ref, e);
if (t != null) {
- let e = SE(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 = SE(this.ref, r);
+ let e = xE(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -25830,7 +25830,7 @@ var wE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !NT(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);
@@ -25845,7 +25845,7 @@ var wE = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !NT(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);
@@ -25868,149 +25868,149 @@ var wE = class {
}
return null;
}
-}, EE = {};
-EE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, TE = {};
+TE = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
// node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var DE = {};
-DE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var EE = {};
+EE = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
// node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var OE = {};
-OE = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var DE = {};
+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 kE = {};
-kE = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var OE = {};
+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 AE = {};
-AE = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var kE = {};
+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 jE = {};
-jE = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var AE = {};
+AE = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
// node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var ME = {};
-ME = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var jE = {};
+jE = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
// node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var NE = {};
-NE = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var ME = {};
+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 PE = {};
-PE = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var NE = {};
+NE = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
// node_modules/react-aria/dist/private/intl/menu/fi-FI.mjs
-var FE = {};
-FE = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var PE = {};
+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 IE = {};
-IE = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var FE = {};
+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 LE = {};
-LE = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var IE = {};
+IE = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
// node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var RE = {};
-RE = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var LE = {};
+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 zE = {};
-zE = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var RE = {};
+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 BE = {};
-BE = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var zE = {};
+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 VE = {};
-VE = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var BE = {};
+BE = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
// node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var HE = {};
-HE = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var VE = {};
+VE = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
// node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var UE = {};
-UE = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var HE = {};
+HE = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
// node_modules/react-aria/dist/private/intl/menu/lv-LV.mjs
-var WE = {};
-WE = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var UE = {};
+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 GE = {};
-GE = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var WE = {};
+WE = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
// node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var KE = {};
-KE = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var GE = {};
+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 qE = {};
-qE = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var KE = {};
+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 JE = {};
-JE = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var qE = {};
+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 YE = {};
-YE = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var JE = {};
+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 XE = {};
-XE = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var YE = {};
+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 ZE = {};
-ZE = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var XE = {};
+XE = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
// node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var QE = {};
-QE = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var ZE = {};
+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 $E = {};
-$E = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var QE = {};
+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 eD = {};
-eD = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var $E = {};
+$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 tD = {};
-tD = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var eD = {};
+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 nD = {};
-nD = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var tD = {};
+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 rD = {};
-rD = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var nD = {};
+nD = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
// node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var iD = {};
-iD = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var rD = {};
+rD = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
// node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var aD = {};
-aD = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var iD = {};
+iD = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
// node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var oD = {};
-oD = {
- "ar-AE": EE,
- "bg-BG": DE,
- "cs-CZ": OE,
- "da-DK": kE,
- "de-DE": AE,
- "el-GR": jE,
- "en-US": ME,
- "es-ES": NE,
- "et-EE": PE,
- "fi-FI": FE,
- "fr-FR": IE,
- "he-IL": LE,
- "hr-HR": RE,
- "hu-HU": zE,
- "it-IT": BE,
- "ja-JP": VE,
- "ko-KR": HE,
- "lt-LT": UE,
- "lv-LV": WE,
- "nb-NO": GE,
- "nl-NL": KE,
- "pl-PL": qE,
- "pt-BR": JE,
- "pt-PT": YE,
- "ro-RO": XE,
- "ru-RU": ZE,
- "sk-SK": QE,
- "sl-SI": $E,
- "sr-SP": eD,
- "sv-SE": tD,
- "tr-TR": nD,
- "uk-UA": rD,
- "zh-CN": iD,
- "zh-TW": aD
+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 Dse = 500;
-function sD(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Dse, accessibilityDescription: s } = e, c = (0, F.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = $w(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = iT({
+var Ose = 500;
+function oD(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Ose, 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)) {
@@ -26018,12 +26018,12 @@ function sD(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), wS(e.target).activeElement !== e.target && CS(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 = TS(e.target);
+ let t = wS(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -26038,11 +26038,11 @@ function sD(e) {
});
}
});
- return { longPressProps: q(f, zT(a && !t ? s : void 0)) };
+ return { longPressProps: q(f, RT(a && !t ? s : void 0)) };
}
// node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function Ose(e) {
- let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = sD({
+function kse(e) {
+ let { onContextMenu: t } = e, n = (0, F.useRef)(!1), { longPressProps: r } = oD({
onLongPressStart() {
n.current = !1;
},
@@ -26054,7 +26054,7 @@ function Ose(e) {
});
}
});
- return t ? { contextMenuProps: q(XS() ? r : {}, {
+ return t ? { contextMenuProps: q(YS() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -26065,7 +26065,7 @@ function Ose(e) {
});
},
onKeyDown(e) {
- if (JS() && e.ctrlKey && e.key === "Enter") {
+ if (qS() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -26084,13 +26084,13 @@ function Ose(e) {
}) } : { contextMenuProps: {} };
}
// node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var cD = /* @__PURE__ */ new WeakMap();
-function kse(e) {
+var sD = /* @__PURE__ */ new WeakMap();
+function Ase(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, F.useEffect)(() => !n || r === null ? void 0 : OS(NS(t.current), "scroll", (e) => {
+ (0, F.useEffect)(() => !n || r === null ? void 0 : DS(MS(t.current), "scroll", (e) => {
let n = K(e);
- if (!t.current || n instanceof Node && !jS(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || cD.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,
@@ -26099,14 +26099,14 @@ function kse(e) {
]);
}
// node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function Ase(e, t, n) {
+function jse(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, F.useEffect)(() => {
- n && n.current && cD.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 = BC();
+ let o = zC();
return {
triggerProps: {
"aria-haspopup": a,
@@ -26118,14 +26118,14 @@ function Ase(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function jse(e) {
+function Mse(e) {
return e && e.__esModule ? e.default : e;
}
-function lD(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = BC(), { triggerProps: s, overlayProps: c } = Ase({ 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 } = jse({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = XC({
+ }, { keyboardProps: u } = YC({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -26137,7 +26137,7 @@ function lD(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = Hw(jse(oD), "@react-aria/menu"), { longPressProps: f } = sD({
+ }), d = Vw(Mse(aD), "@react-aria/menu"), { longPressProps: f } = oD({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -26149,14 +26149,14 @@ function lD(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (CS(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 && (CS(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (SS(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = Ose({ onContextMenu(e) {
+ let { contextMenuProps: m } = kse({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -26200,8 +26200,8 @@ function lD(e, t, n) {
};
}
// node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var uD = 1e3;
-function dD(e) {
+var lD = 1e3;
+function uD(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, F.useRef)({
search: "",
timeout: void 0
@@ -26220,12 +26220,12 @@ function dD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, uD);
+ }, lD);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = Mse(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !jS(e.currentTarget, K(e)) || i.current.search.length === 0 && a === " ")) {
+ let a = Nse(e.key);
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !AS(e.currentTarget, K(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();
@@ -26236,32 +26236,32 @@ function dD(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, uD);
+ }, lD);
}
} : void 0
} };
}
-function Mse(e) {
+function Nse(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
// node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function fD(e, t) {
+function dD(e, t) {
let n = (0, F.useRef)(!0), r = (0, F.useRef)(null);
- BS(() => (n.current = !0, () => {
+ zS(() => (n.current = !0, () => {
n.current = !1;
- }), []), BS(() => {
+ }), []), 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 pD(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 } = Iw(), _ = tC(), 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 && !xE(e)) {
+ if (t.isLink(n) && m === "selection" && l && !bE(e)) {
(0, Rt.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = SE(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;
@@ -26273,7 +26273,7 @@ function pD(e) {
t.extendSelection(n);
return;
}
- if (l && !xE(e)) {
+ if (l && !bE(e)) {
t.replaceSelection(n);
return;
}
@@ -26300,9 +26300,9 @@ function pD(e) {
}, x = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, Ew(e));
+ let r = n.getFirstKey(t.focusedKey, Tw(e));
if (t.setFocusedKey(r), r != null) {
- if (Ew(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Tw(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26334,9 +26334,9 @@ function pD(e) {
}, w = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, Ew(e));
+ let r = n.getLastKey(t.focusedKey, Tw(e));
if (t.setFocusedKey(r), r != null) {
- if (Ew(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (Tw(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -26367,12 +26367,12 @@ function pD(e) {
else return !1;
}, k = () => {
if (!f && r.current) {
- let e = ET(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 = MS();
- t && (!PS(t) || i && !RS(i)) && CS(t);
+ let i = jS();
+ t && (!NS(t) || i && !LS(i)) && SS(t);
}
return {
shouldContinuePropagation: !0,
@@ -26382,11 +26382,11 @@ function pD(e) {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
}), j = (e, t) => ({
- [JS() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ [qS() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [JS() ? e + "+Alt" : e + "+Control"]: t,
+ [qS() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: M } = XC({
+ }), { keyboardProps: M } = YC({
shortcuts: {
...j("ArrowDown", y),
...j("ArrowUp", b),
@@ -26396,7 +26396,7 @@ function pD(e) {
...j("PageUp", E)
},
allowRepeats: !0
- }), { keyboardProps: ee } = XC({ shortcuts: {
+ }), { keyboardProps: ee } = YC({ shortcuts: {
...j("Home", x),
...j("End", w),
"Mod+A": D,
@@ -26407,7 +26407,7 @@ function pD(e) {
top: 0,
left: 0
});
- kw(p, "scroll", () => {
+ Ow(p, "scroll", () => {
N.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
@@ -26415,11 +26415,11 @@ function pD(e) {
});
let te = (e) => {
if (t.isFocused) {
- jS(e.currentTarget, K(e)) || t.setFocused(!1);
+ AS(e.currentTarget, K(e)) || t.setFocused(!1);
return;
}
- if (!jS(e.currentTarget, K(e))) return;
- let i = wC();
+ if (!AS(e.currentTarget, K(e))) return;
+ let i = CC();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -26430,27 +26430,27 @@ function pD(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 = SE(r, t.focusedKey);
- e instanceof HTMLElement && (!PS(e) && !d && CS(e), (i === "keyboard" || h && i === "virtual") && LT(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) => {
- jS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ AS(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
}, ne = (0, F.useRef)(!1);
- kw(r, goe, d ? (e) => {
+ Ow(r, _oe, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (ne.current = !0);
} : void 0);
let re = n.getFirstKey?.() ?? null;
- fD(() => {
+ dD(() => {
if (ne.current) {
if (re == null) {
- let e = MS();
- hw(r.current), gw(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]), fD(() => {
+ }, [re, t.collection.size]), dD(() => {
t.collection.size > 0 && (ne.current = !1);
- }, [t.focusedKey]), kw(r, hoe, d ? (e) => {
+ }, [t.focusedKey]), Ow(r, goe, 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);
@@ -26465,22 +26465,22 @@ function pD(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && FC(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 = wC(), n = SE(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 && (IT(p.current, n), e !== "virtual" && LT(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 && FC(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);
- }, []), kw(r, "react-aria-focus-scope-restore", (e) => {
+ }, []), Ow(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
let se = {
@@ -26490,27 +26490,27 @@ function pD(e) {
onMouseDown(e) {
p.current === K(e) && e.preventDefault();
}
- }, { typeSelectProps: ce } = dD({
+ }, { typeSelectProps: ce } = uD({
keyboardDelegate: n,
selectionManager: t
});
u || (se = q(ce, se));
let le;
d || (le = t.focusedKey == null ? 0 : -1);
- let ue = Tse(t.collection);
+ let ue = Ese(t.collection);
return { collectionProps: q(se, {
tabIndex: le,
"data-collection": ue
}) };
}
// node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function mD(e, t) {
+function pD(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function hD(e) {
- return gD(e, 0);
+function mD(e) {
+ return hD(e, 0);
}
-function gD(e, t) {
+function hD(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -26518,106 +26518,106 @@ function gD(e, t) {
n++;
}
}
-function _D(e) {
+function gD(e) {
let t;
for (let n of e) t = n;
return t;
}
-function vD(e, t, n) {
+function _D(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...yD(e, t), t], i = [...yD(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 yD(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 bD = /* @__PURE__ */ new WeakMap();
-function xD(e) {
- let t = bD.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(mD(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), bD.set(e, n), n;
+ return r(e), yD.set(e, n), n;
}
// node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var SD = /* @__PURE__ */ new Map();
-function CD(e) {
- let { locale: t } = Iw(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (SD.has(n)) return SD.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 SD.set(n, r), r;
+ return xD.set(n, r), r;
}
// node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var Nse = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, F.useRef)(!1), i = (0, F.useContext)(Qw), a = q(i || {}, {
+var Pse = /*#__PURE__*/ F.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, F.useRef)(!1), i = (0, F.useContext)(Zw), a = q(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
}
});
- return a.ref = ZC(n || i?.ref), QC(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(Qw.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ F.createElement(Zw.Provider, { value: a }, e);
});
-function Pse({ children: e }) {
+function Fse({ children: e }) {
let t = (0, F.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ F.createElement(Qw.Provider, { value: t }, e);
+ return /*#__PURE__*/ F.createElement(Zw.Provider, { value: t }, e);
}
// node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var wD = /*#__PURE__*/ (0, F.createContext)({});
-function TD(e) {
- let { getContainer: t } = e, { getContainer: n } = ED();
- return /*#__PURE__*/ F.createElement(wD.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 ED() {
- return (0, F.useContext)(wD) ?? {};
+function TD() {
+ return (0, F.useContext)(CD) ?? {};
}
// node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var DD = /*#__PURE__*/ F.createContext(null);
-function OD(e) {
- let t = cC(), { 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 } = ED();
+ }), [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(mT, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ F.createElement(pT, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ F.createElement(DD.Provider, { value: o }, /*#__PURE__*/ F.createElement(Pse, null, /*#__PURE__*/ F.createElement($C.Provider, { value: null }, c))), /*#__PURE__*/ Rt.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ F.createElement(ED.Provider, { value: o }, /*#__PURE__*/ F.createElement(Fse, null, /*#__PURE__*/ F.createElement(QC.Provider, { value: null }, c))), /*#__PURE__*/ Rt.createPortal(c, n);
}
-function kD() {
- let e = (0, F.useContext)(DD)?.setContain;
- BS(() => {
+function OD() {
+ let e = (0, F.useContext)(ED)?.setContain;
+ zS(() => {
e?.(!0);
}, [e]);
}
// node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function Fse(e, t) {
- let { role: n = "dialog", isEntering: r } = e, i = VC();
+function Ise(e, t) {
+ let { role: n = "dialog", isEntering: r } = e, i = BC();
i = e["aria-label"] ? void 0 : i;
- let a = VC();
+ 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 && !PS(t.current)) {
- FC(t.current);
+ if (!r && t.current && !NS(t.current)) {
+ PC(t.current);
let e = setTimeout(() => {
- (MS() === t.current || MS() === document.body) && (o.current = !0, t.current && (t.current.blur(), FC(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]), kD(), (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: {
- ...Ww(e, { labelable: !0 }),
+ ...Uw(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? i,
@@ -26631,23 +26631,23 @@ function Fse(e, t) {
};
}
// node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function AD(e = {}) {
+function kD(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, F.useRef)({
isFocused: !1,
- isFocusVisible: t || CC()
+ 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 = CC(), o(e), l();
+ i.current.isFocused = e, i.current.isFocusVisible = SC(), o(e), l();
}, [l]);
- OC((e) => {
+ DC((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = KC({
+ let { focusProps: d } = GC({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = tE({
+ }), { focusWithinProps: f } = eE({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -26658,41 +26658,41 @@ function AD(e = {}) {
};
}
// node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function Ise(e = {}) {
- let { locale: t } = Iw();
+function Lse(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 jD = !1, MD = 0;
-function Lse() {
- jD = !0, setTimeout(() => {
- jD = !1;
+var AD = !1, jD = 0;
+function Rse() {
+ AD = !0, setTimeout(() => {
+ AD = !1;
}, 500);
}
-function ND(e) {
- e.pointerType === "touch" && Lse();
+function MD(e) {
+ e.pointerType === "touch" && Rse();
}
-function Rse() {
- let e = wS(null);
- if (e !== void 0) return MD === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", ND), MD++, () => {
- MD--, !(MD > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", ND);
+function zse() {
+ 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 PD(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)(Rse, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = $w(), { hoverProps: u, triggerHoverEnd: d } = (0, F.useMemo)(() => {
+ (0, F.useEffect)(zse, []);
+ 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 || !jS(e.currentTarget, K(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !AS(e.currentTarget, K(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(wS(K(e)), "pointerover", (e) => {
- s.isHovered && s.target && !jS(s.target, K(e)) && a(e, e.pointerType);
+ s.target = l, c(CS(K(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !AS(s.target, K(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -26707,9 +26707,9 @@ function PD(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- jD && t.pointerType === "mouse" || e(t, t.pointerType);
+ AD && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && jS(e.currentTarget, K(e)) && a(e, e.pointerType);
+ !i && AS(e.currentTarget, K(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -26731,22 +26731,22 @@ function PD(e) {
};
}
// node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function zse(e) {
+function Bse(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, F.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = Ow((e) => {
- n && FD(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = Ow((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 = wS(n);
+ let n = t.current, i = CS(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && FD(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);
@@ -26754,28 +26754,28 @@ function zse(e) {
}
}, [t, r]);
}
-function FD(e, t) {
+function PD(e, t) {
if (e.button > 0) return !1;
let n = K(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !jS(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 ID = /* @__PURE__ */ new WeakMap();
-function LD(e, t) {
- let { id: n } = ID.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}-${Bse(t)}`;
+ return `${n}-${Vse(t)}`;
}
-function Bse(e) {
+function Vse(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
// node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var RD = {};
-RD = {
+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: "تحديد",
@@ -26788,8 +26788,8 @@ RD = {
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 zD = {};
-zD = {
+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: "Изберете",
@@ -26802,8 +26802,8 @@ zD = {
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 BD = {};
-BD = {
+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",
@@ -26816,8 +26816,8 @@ BD = {
selectedItem: (e) => `Vybr\xe1na polo\u{17E}ka ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var VD = {};
-VD = {
+var BD = {};
+BD = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -26830,8 +26830,8 @@ VD = {
selectedItem: (e) => `${e.item} valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var HD = {};
-HD = {
+var VD = {};
+VD = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -26844,8 +26844,8 @@ HD = {
selectedItem: (e) => `${e.item} ausgew\xe4hlt.`
};
// node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var UD = {};
-UD = {
+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: "Επιλογή",
@@ -26858,8 +26858,8 @@ UD = {
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 WD = {};
-WD = {
+var UD = {};
+UD = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -26872,8 +26872,8 @@ WD = {
longPressToSelect: "Long press to enter selection mode."
};
// node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var GD = {};
-GD = {
+var WD = {};
+WD = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -26886,8 +26886,8 @@ GD = {
selectedItem: (e) => `${e.item} seleccionado.`
};
// node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var KD = {};
-KD = {
+var GD = {};
+GD = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -26900,8 +26900,8 @@ KD = {
selectedItem: (e) => `${e.item} valitud.`
};
// node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var qD = {};
-qD = {
+var KD = {};
+KD = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -26914,8 +26914,8 @@ qD = {
selectedItem: (e) => `${e.item} valittu.`
};
// node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var JD = {};
-JD = {
+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",
@@ -26928,8 +26928,8 @@ JD = {
selectedItem: (e) => `${e.item} s\xe9lectionn\xe9.`
};
// node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var YD = {};
-YD = {
+var JD = {};
+JD = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -26942,8 +26942,8 @@ YD = {
selectedItem: (e) => `${e.item} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`
};
// node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var XD = {};
-XD = {
+var YD = {};
+YD = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -26956,8 +26956,8 @@ XD = {
selectedItem: (e) => `Stavka ${e.item} je odabrana.`
};
// node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var ZD = {};
-ZD = {
+var XD = {};
+XD = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -26970,8 +26970,8 @@ ZD = {
selectedItem: (e) => `${e.item} kijel\xf6lve.`
};
// node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var QD = {};
-QD = {
+var ZD = {};
+ZD = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -26984,8 +26984,8 @@ QD = {
selectedItem: (e) => `${e.item} selezionato.`
};
// node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var $D = {};
-$D = {
+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: "選択",
@@ -26998,8 +26998,8 @@ $D = {
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 eO = {};
-eO = {
+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: "선택",
@@ -27012,8 +27012,8 @@ eO = {
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 tO = {};
-tO = {
+var eO = {};
+eO = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -27026,8 +27026,8 @@ tO = {
selectedItem: (e) => `Pasirinkta: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var nO = {};
-nO = {
+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",
@@ -27040,8 +27040,8 @@ nO = {
selectedItem: (e) => `Atlas\u{12B}ts vienums ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var rO = {};
-rO = {
+var nO = {};
+nO = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -27054,8 +27054,8 @@ rO = {
selectedItem: (e) => `${e.item} er valgt.`
};
// node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var iO = {};
-iO = {
+var rO = {};
+rO = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -27068,8 +27068,8 @@ iO = {
selectedItem: (e) => `${e.item} geselecteerd.`
};
// node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var aO = {};
-aO = {
+var iO = {};
+iO = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -27082,8 +27082,8 @@ aO = {
selectedItem: (e) => `Zaznaczono ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var oO = {};
-oO = {
+var aO = {};
+aO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -27096,8 +27096,8 @@ oO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var sO = {};
-sO = {
+var oO = {};
+oO = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -27110,8 +27110,8 @@ sO = {
selectedItem: (e) => `${e.item} selecionado.`
};
// node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var cO = {};
-cO = {
+var sO = {};
+sO = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -27124,8 +27124,8 @@ cO = {
selectedItem: (e) => `${e.item} selectat.`
};
// node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var lO = {};
-lO = {
+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: "Выбрать",
@@ -27138,8 +27138,8 @@ lO = {
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 uO = {};
-uO = {
+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ť",
@@ -27152,8 +27152,8 @@ uO = {
selectedItem: (e) => `Vybrat\xe9 polo\u{17E}ky: ${e.item}.`
};
// node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var dO = {};
-dO = {
+var uO = {};
+uO = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -27166,8 +27166,8 @@ dO = {
selectedItem: (e) => `Element ${e.item} je izbran.`
};
// node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var fO = {};
-fO = {
+var dO = {};
+dO = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -27180,8 +27180,8 @@ fO = {
selectedItem: (e) => `${e.item} je izabrano.`
};
// node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var pO = {};
-pO = {
+var fO = {};
+fO = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -27194,8 +27194,8 @@ pO = {
selectedItem: (e) => `${e.item} markerat.`
};
// node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var mO = {};
-mO = {
+var pO = {};
+pO = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -27208,8 +27208,8 @@ mO = {
selectedItem: (e) => `${e.item} se\xe7ildi.`
};
// node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var hO = {};
-hO = {
+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: "Вибрати",
@@ -27222,8 +27222,8 @@ hO = {
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 gO = {};
-gO = {
+var hO = {};
+hO = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -27236,8 +27236,8 @@ gO = {
selectedItem: (e) => `\u{5DF2}\u{9009}\u{62E9} ${e.item}\u{3002}`
};
// node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var _O = {};
-_O = {
+var gO = {};
+gO = {
deselectedItem: (e) => `\u{672A}\u{9078}\u{53D6}\u{300C}${e.item}\u{300D}\u{3002}`,
longPressToSelect: "長按以進入選擇模式。",
select: "選取",
@@ -27250,54 +27250,54 @@ _O = {
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 vO = {};
-vO = {
- "ar-AE": RD,
- "bg-BG": zD,
- "cs-CZ": BD,
- "da-DK": VD,
- "de-DE": HD,
- "el-GR": UD,
- "en-US": WD,
- "es-ES": GD,
- "et-EE": KD,
- "fi-FI": qD,
- "fr-FR": JD,
- "he-IL": YD,
- "hr-HR": XD,
- "hu-HU": ZD,
- "it-IT": QD,
- "ja-JP": $D,
- "ko-KR": eO,
- "lt-LT": tO,
- "lv-LV": nO,
- "nb-NO": rO,
- "nl-NL": iO,
- "pl-PL": aO,
- "pt-BR": oO,
- "pt-PT": sO,
- "ro-RO": cO,
- "ru-RU": lO,
- "sk-SK": uO,
- "sl-SI": dO,
- "sr-SP": fO,
- "sv-SE": pO,
- "tr-TR": mO,
- "uk-UA": hO,
- "zh-CN": gO,
- "zh-TW": _O
+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 Vse(e) {
+function Hse(e) {
return e && e.__esModule ? e.default : e;
}
-function yO(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = Hw(Vse(vO), "@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(Hse(_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 = bO(i, a.current), o = bO(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)) {
@@ -27317,7 +27317,7 @@ function yO(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 && jT(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,
@@ -27328,7 +27328,7 @@ function yO(e, t) {
n,
r
]);
- MT(() => {
+ jT(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -27336,20 +27336,20 @@ function yO(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function bO(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 xO(e, t) {
+function bO(e, t) {
let n = t?.isDisabled, [r, i] = (0, F.useState)(!1);
- return BS(() => {
+ return zS(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = ET(e.current, { tabbable: !0 });
+ let t = TT(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -27367,12 +27367,12 @@ function xO(e, t) {
}), !n && r;
}
// node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function Hse(e) {
+function Use(e) {
return e && e.__esModule ? e.default : e;
}
-function SO(e) {
- let t = Hw(Hse(vO), "@react-aria/grid"), n = EC(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return zT((0, F.useMemo)(() => {
+function xO(e) {
+ let t = Vw(Use(_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;
}, [
@@ -27384,11 +27384,11 @@ function SO(e) {
]));
}
// node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function CO(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = CD({
+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 TE({
+ }), l = t.disabledBehavior, u = (0, F.useMemo)(() => a || new wE({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -27405,7 +27405,7 @@ function CO(e) {
c,
l,
s
- ]), { collectionProps: d } = pD({
+ ]), { collectionProps: d } = fD({
...e,
ref: i,
selectionManager: t,
@@ -27414,10 +27414,10 @@ function CO(e) {
return { listProps: d };
}
// node_modules/react-aria/dist/private/gridlist/useGridList.mjs
-function Use(e, t, n) {
+function Wse(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 } = CO({
+ let { listProps: f } = SO({
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
@@ -27432,30 +27432,30 @@ function Use(e, t, n) {
autoFocus: e.autoFocus,
escapeKeyBehavior: u,
UNSTABLE_focusOnEntry: e.UNSTABLE_focusOnEntry
- }), p = BC(e.id);
- ID.set(t, {
+ }), p = zC(e.id);
+ FD.set(t, {
id: p,
onAction: o,
linkBehavior: c,
keyboardNavigationBehavior: l,
shouldSelectOnPressUp: d
});
- let m = SO({
+ let m = xO({
selectionManager: t.selectionManager,
hasItemActions: !!o
- }), h = xO(n, { isDisabled: t.collection.size !== 0 }), g = q(Ww(e, { labelable: !0 }), {
+ }), h = bO(n, { isDisabled: t.collection.size !== 0 }), g = q(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), yO({}, 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 wO(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 = tC();
- t = BC(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" && xE(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && bE(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -27466,11 +27466,11 @@ function wO(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 && (Ew(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 ? hw(i.current) : s ? s() : MS() !== i.current && i.current && FC(i.current));
+ r === n.focusedKey && n.isFocused && (o ? mw(i.current) : s ? s() : jS() !== i.current && i.current && PC(i.current));
}, [
i,
r,
@@ -27498,22 +27498,22 @@ function wO(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 || EO(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" && !TO(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 || EO(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 && TO(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 = Ese(n.collection);
+ let A = Dse(n.collection);
if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = q(k, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
@@ -27528,10 +27528,10 @@ function wO(e) {
"onPress",
"onPressUp",
"onClick"
- ]) D[e] && (k[e] = IC(k[e], D[e]));
- let { pressProps: j, isPressed: M } = iT(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 } = sD({
+ } : void 0, { longPressProps: N } = oD({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -27539,7 +27539,7 @@ function wO(e) {
}), te = (e) => {
C.current === "touch" && T.current && e.preventDefault();
}, P = d !== "none" && n.isLink(r) ? (e) => {
- nC.isOpening || e.preventDefault();
+ tC.isOpening || e.preventDefault();
} : void 0, ne = q(m, v || b || o && !c ? j : {}, w ? N : {}, {
onDoubleClick: ee,
onDragStartCapture: te,
@@ -27552,7 +27552,7 @@ function wO(e) {
if (e != null) return e !== A;
t = t.parentElement;
}
- return RS(e);
+ return LS(e);
}, I = ne.onPointerDown;
ne.onPointerDown = (e) => {
let t = K(e);
@@ -27572,14 +27572,14 @@ function wO(e) {
hasAction: S
};
}
-function TO(e) {
+function wO(e) {
return e === "Enter";
}
-function EO(e) {
+function TO(e) {
return e === " ";
}
// node_modules/react-aria/dist/private/gridlist/useGridListItem.mjs
-var DO = {
+var EO = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -27589,18 +27589,18 @@ var DO = {
rtl: "ArrowRight"
}
};
-function Wse(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a = "row", allowsArrowNavigation: o } = e, { direction: s } = Iw(), { onAction: c, linkBehavior: l, keyboardNavigationBehavior: u, shouldSelectOnPressUp: d } = ID.get(t), f = VC(), p = (0, F.useRef)(null), m = () => {
+function Gse(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 (PS(n.current) && n.current !== MS(wS(n.current))) return;
- let e = ET(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) {
- FC(e), LT(e, { containingElement: PT(e) });
+ PC(e), IT(e, { containingElement: NT(e) });
return;
}
}
- (p.current != null && r.key !== p.current || !PS(n.current)) && FC(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) {
@@ -27610,7 +27610,7 @@ function Wse(e, t, n) {
if (r.level >= 0 && r?.parentKey != null) {
let e = t.collection.getItem(r.parentKey);
if (e) {
- let n = Gse(e, t.collection);
+ let n = Kse(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;
@@ -27621,75 +27621,75 @@ function Wse(e, t, n) {
"aria-setsize": i
};
}
- let { itemProps: v, ...y } = wO({
+ let { itemProps: v, ...y } = CO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
isVirtualized: i,
shouldSelectOnPressUp: e.shouldSelectOnPressUp || d,
- onAction: c || r.props?.onAction ? IC(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 = MS(wS(n.current));
- if (!jS(e.currentTarget, K(e)) || !n.current || !i) return;
- let a = ET(n.current);
- if (a.currentNode = i, !OO(e, t, r, g, s, i, n.current, o)) switch (e.key) {
+ let i = jS(CS(n.current));
+ if (!AS(e.currentTarget, K(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(), FC(t), LT(t, { containingElement: PT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "rtl") FC(n.current), LT(n.current, { containingElement: PT(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 = kO(a);
- e && (FC(e), LT(e, { containingElement: PT(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(), FC(t), LT(t, { containingElement: PT(n.current) });
- else if (e.preventDefault(), e.stopPropagation(), s === "ltr") FC(n.current), LT(n.current, { containingElement: PT(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 = kO(a);
- e && (FC(e), LT(e, { containingElement: PT(n.current) }));
+ let e = OO(a);
+ e && (PC(e), IT(e, { containingElement: NT(n.current) }));
}
}
break;
case "ArrowUp":
- case "ArrowDown": !e.altKey && jS(n.current, K(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && AS(n.current, K(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
}, x = (e) => {
- p.current = r.key, K(e) === n.current ? a === "child" && e.relatedTarget && jS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- a === "child" && MS(wS(n.current)) === n.current && m();
- }) : CC() || t.selectionManager.setFocusedKey(r.key);
+ p.current = r.key, K(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 = MS(wS(n.current));
- if (jS(e.currentTarget, K(e)) && n.current && i) {
+ let i = jS(CS(n.current));
+ if (AS(e.currentTarget, K(e)) && n.current && i) {
if (u === "tab") {
if (K(e) !== n.current && e.key !== "Tab") {
e.stopPropagation();
return;
}
- if (OO(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 = ET(n.current, { tabbable: !0 });
+ let t = TT(n.current, { tabbable: !0 });
t.currentNode = i, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
- }, C = rC(r.props), w = q(v, y.hasAction ? C : {}, {
+ }, C = nC(r.props), w = q(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) ? `${LD(t, r.key)} ${f}` : void 0,
- id: LD(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;
@@ -27710,66 +27710,66 @@ function Wse(e, t, n) {
...y
};
}
-function OO(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 === DO.expand[i] && t.selectionManager.focusedKey === n.key && r && !t.expandedKeys.has(n.key)) return t.toggleKey(n.key), e.stopPropagation(), !0;
- if (e.key === DO.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 kO(e) {
+function OO(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
while (n);
return t;
}
-function Gse(e, t) {
+function Kse(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 Kse(e) {
+function qse(e) {
return e && e.__esModule ? e.default : e;
}
-function AO(e, t) {
- let { key: n } = e, r = t.selectionManager, i = BC(), 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": Hw(Kse(vO), "@react-aria/grid").format("select"),
+ "aria-label": Vw(qse(_O), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
} };
}
// node_modules/react-aria/dist/private/gridlist/useGridListSelectionCheckbox.mjs
-function qse(e, t) {
- let { key: n } = e, { checkboxProps: r } = AO(e, t);
+function Jse(e, t) {
+ let { key: n } = e, { checkboxProps: r } = kO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${LD(t, n)}`
+ "aria-labelledby": `${r.id} ${ID(t, n)}`
} };
}
// node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function Jse(e, t, n) {
- let r = Ww(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function Yse(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 } = CO({
+ let { listProps: s } = SO({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = tE({
+ }), { focusWithinProps: c } = eE({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = BC(e.id);
- bE.set(t, {
+ }), l = zC(e.id);
+ yE.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -27779,7 +27779,7 @@ function Jse(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = $T({
+ let { labelProps: u, fieldProps: d } = QT({
...e,
id: l,
labelElementType: "span"
@@ -27794,8 +27794,8 @@ function Jse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Yse(e) {
- let { heading: t, "aria-label": n } = e, r = BC();
+function Xse(e) {
+ let { heading: t, "aria-label": n } = e, r = zC();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -27813,8 +27813,8 @@ function Yse(e) {
};
}
// node_modules/react-aria/dist/private/listbox/useOption.mjs
-function Xse(e, t, n) {
- let { key: r } = e, i = bE.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 = VC(), f = VC(), p = {
+function Zse(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,
@@ -27824,9 +27824,9 @@ function Xse(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"] = xD(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 = wse(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = wO({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Tse(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = CO({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -27835,18 +27835,18 @@ function Xse(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? IC(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 } = PD({
+ }), { hoverProps: S } = ND({
isDisabled: a || !c,
onHoverStart() {
- CC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ SC() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = Ww(m?.props);
+ }), C = Uw(m?.props);
delete C.id;
- let w = iC(m?.props);
+ let w = rC(m?.props);
return {
optionProps: {
...p,
@@ -27856,7 +27856,7 @@ function Xse(e, t, n) {
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && CC(),
+ isFocusVisible: y && t.selectionManager.isFocused && SC(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -27865,12 +27865,12 @@ function Xse(e, t, n) {
};
}
// node_modules/react-aria/dist/private/menu/utils.mjs
-var jO = /* @__PURE__ */ new WeakMap();
+var AO = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/menu/useMenu.mjs
-function Zse(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 = Ww(e, { labelable: !0 }), { listProps: c } = CO({
+ let s = Uw(e, { labelable: !0 }), { listProps: c } = SO({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -27879,7 +27879,7 @@ function Zse(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return jO.set(t, {
+ return AO.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -27895,15 +27895,15 @@ function Zse(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function Qse(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 = jO.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = tC(), M = () => {
+function $se(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 = VC(), te = VC(), P = VC(), ne = {
+ let N = BC(), te = BC(), P = BC(), ne = {
id: r,
"aria-disabled": E || void 0,
role: ee,
@@ -27920,17 +27920,17 @@ function Qse(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"] = xD(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(), Aae(e, j, k.props.href, k?.props.routerOptions);
+ m?.(e), M(), jae(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 } = wO({
+ }, { itemProps: se, isFocused: ce } = CO({
id: r,
selectionManager: C,
key: i,
@@ -27939,27 +27939,27 @@ function Qse(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: O.shouldUseVirtualFocus
- }), { pressProps: le, isPressed: ue } = iT({
+ }), { pressProps: le, isPressed: ue } = rT({
onPressStart: l,
onPress: d,
onPressUp: ae,
onPressChange: I,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: de } = PD({
+ }), { hoverProps: de } = ND({
isDisabled: E,
onHoverStart(e) {
- !CC() && !(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 } = XC({
+ }), { keyboardProps: fe } = YC({
shortcuts: {
" ": (e) => {
ie.current = {
pointerType: "keyboard",
key: " "
- }, K(e).click(), TC("keyboard");
+ }, K(e).click(), wC("keyboard");
},
Enter: (e) => {
ie.current = {
@@ -27967,8 +27967,8 @@ function Qse(e, t, n) {
key: "Enter"
};
let t = K(e);
- if (t.tagName !== "A") t.click(), TC("keyboard");
- else return TC("keyboard"), {
+ if (t.tagName !== "A") t.click(), wC("keyboard");
+ else return wC("keyboard"), {
shouldPreventDefault: !1,
shouldContinuePropagation: !1
};
@@ -27976,13 +27976,13 @@ function Qse(e, t, n) {
},
onKeyDown: v,
onKeyUp: y
- }), { focusableProps: pe } = ew({
+ }), { focusableProps: pe } = $C({
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), me = Ww(k?.props);
+ }, n), me = Uw(k?.props);
delete me.id;
- let he = iC(k?.props);
+ let he = rC(k?.props);
return {
menuItemProps: {
...ne,
@@ -27997,15 +27997,15 @@ function Qse(e, t, n) {
descriptionProps: { id: te },
keyboardShortcutProps: { id: P },
isFocused: ce,
- isFocusVisible: ce && C.isFocused && CC() && !T,
+ isFocusVisible: ce && C.isFocused && SC() && !T,
isSelected: D,
isPressed: ue,
isDisabled: E
};
}
// node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function $se(e) {
- let { heading: t, "aria-label": n } = e, r = BC();
+function ece(e) {
+ let { heading: t, "aria-label": n } = e, r = zC();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -28020,15 +28020,15 @@ function $se(e) {
};
}
// node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function ece() {
+function tce() {
return window.ResizeObserver !== void 0;
}
-function MO(e) {
- let { ref: t, box: n, onResize: r } = e, i = Ow(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 (ece()) {
+ if (tce()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -28043,154 +28043,154 @@ function MO(e) {
}, [t, n]);
}
// node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var NO = {};
-NO = { dismiss: "تجاهل" };
+var MO = {};
+MO = { dismiss: "تجاهل" };
// node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var PO = {};
-PO = { dismiss: "Отхвърляне" };
+var NO = {};
+NO = { dismiss: "Отхвърляне" };
// node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var FO = {};
-FO = { dismiss: "Odstranit" };
+var PO = {};
+PO = { dismiss: "Odstranit" };
// node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var IO = {};
-IO = { dismiss: "Luk" };
+var FO = {};
+FO = { dismiss: "Luk" };
// node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var LO = {};
-LO = { dismiss: "Schließen" };
+var IO = {};
+IO = { dismiss: "Schließen" };
// node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var RO = {};
-RO = { dismiss: "Απόρριψη" };
+var LO = {};
+LO = { dismiss: "Απόρριψη" };
// node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var zO = {};
-zO = { dismiss: "Dismiss" };
+var RO = {};
+RO = { dismiss: "Dismiss" };
// node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var BO = {};
-BO = { dismiss: "Descartar" };
+var zO = {};
+zO = { dismiss: "Descartar" };
// node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var VO = {};
-VO = { dismiss: "Lõpeta" };
+var BO = {};
+BO = { dismiss: "Lõpeta" };
// node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var HO = {};
-HO = { dismiss: "Hylkää" };
+var VO = {};
+VO = { dismiss: "Hylkää" };
// node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var UO = {};
-UO = { dismiss: "Rejeter" };
+var HO = {};
+HO = { dismiss: "Rejeter" };
// node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var WO = {};
-WO = { dismiss: "התעלם" };
+var UO = {};
+UO = { dismiss: "התעלם" };
// node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var GO = {};
-GO = { dismiss: "Odbaci" };
+var WO = {};
+WO = { dismiss: "Odbaci" };
// node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var KO = {};
-KO = { dismiss: "Elutasítás" };
+var GO = {};
+GO = { dismiss: "Elutasítás" };
// node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var qO = {};
-qO = { dismiss: "Ignora" };
+var KO = {};
+KO = { dismiss: "Ignora" };
// node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var JO = {};
-JO = { dismiss: "閉じる" };
+var qO = {};
+qO = { dismiss: "閉じる" };
// node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var YO = {};
-YO = { dismiss: "무시" };
+var JO = {};
+JO = { dismiss: "무시" };
// node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var XO = {};
-XO = { dismiss: "Atmesti" };
+var YO = {};
+YO = { dismiss: "Atmesti" };
// node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var ZO = {};
-ZO = { dismiss: "Nerādīt" };
+var XO = {};
+XO = { dismiss: "Nerādīt" };
// node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var QO = {};
-QO = { dismiss: "Lukk" };
+var ZO = {};
+ZO = { dismiss: "Lukk" };
// node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var $O = {};
-$O = { dismiss: "Negeren" };
+var QO = {};
+QO = { dismiss: "Negeren" };
// node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var ek = {};
-ek = { dismiss: "Zignoruj" };
+var $O = {};
+$O = { dismiss: "Zignoruj" };
// node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var tk = {};
-tk = { dismiss: "Descartar" };
+var ek = {};
+ek = { dismiss: "Descartar" };
// node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var nk = {};
-nk = { dismiss: "Dispensar" };
+var tk = {};
+tk = { dismiss: "Dispensar" };
// node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var rk = {};
-rk = { dismiss: "Revocare" };
+var nk = {};
+nk = { dismiss: "Revocare" };
// node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var ik = {};
-ik = { dismiss: "Пропустить" };
+var rk = {};
+rk = { dismiss: "Пропустить" };
// node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var ak = {};
-ak = { dismiss: "Zrušiť" };
+var ik = {};
+ik = { dismiss: "Zrušiť" };
// node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var ok = {};
-ok = { dismiss: "Opusti" };
+var ak = {};
+ak = { dismiss: "Opusti" };
// node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var sk = {};
-sk = { dismiss: "Odbaci" };
+var ok = {};
+ok = { dismiss: "Odbaci" };
// node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var ck = {};
-ck = { dismiss: "Avvisa" };
+var sk = {};
+sk = { dismiss: "Avvisa" };
// node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var lk = {};
-lk = { dismiss: "Kapat" };
+var ck = {};
+ck = { dismiss: "Kapat" };
// node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var uk = {};
-uk = { dismiss: "Скасувати" };
+var lk = {};
+lk = { dismiss: "Скасувати" };
// node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var dk = {};
-dk = { dismiss: "取消" };
+var uk = {};
+uk = { dismiss: "取消" };
// node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var fk = {};
-fk = { dismiss: "關閉" };
+var dk = {};
+dk = { dismiss: "關閉" };
// node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var pk = {};
-pk = {
- "ar-AE": NO,
- "bg-BG": PO,
- "cs-CZ": FO,
- "da-DK": IO,
- "de-DE": LO,
- "el-GR": RO,
- "en-US": zO,
- "es-ES": BO,
- "et-EE": VO,
- "fi-FI": HO,
- "fr-FR": UO,
- "he-IL": WO,
- "hr-HR": GO,
- "hu-HU": KO,
- "it-IT": qO,
- "ja-JP": JO,
- "ko-KR": YO,
- "lt-LT": XO,
- "lv-LV": ZO,
- "nb-NO": QO,
- "nl-NL": $O,
- "pl-PL": ek,
- "pt-BR": tk,
- "pt-PT": nk,
- "ro-RO": rk,
- "ru-RU": ik,
- "sk-SK": ak,
- "sl-SI": ok,
- "sr-SP": sk,
- "sv-SE": ck,
- "tr-TR": lk,
- "uk-UA": uk,
- "zh-CN": dk,
- "zh-TW": fk
+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 tce(e) {
+function nce(e) {
return e && e.__esModule ? e.default : e;
}
-function mk(e) {
- let { onDismiss: t, ...n } = e, r = Aw(n, Hw(tce(pk), "@react-aria/overlays").format("dismiss")), i = () => {
+function pk(e) {
+ let { onDismiss: t, ...n } = e, r = kw(n, Vw(nce(fk), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ F.createElement(fE, null, /*#__PURE__*/ F.createElement("button", {
+ return /*#__PURE__*/ F.createElement(dE, null, /*#__PURE__*/ F.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -28201,35 +28201,35 @@ function mk(e) {
}));
}
// node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var hk = [];
-function gk(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 && !hk.includes(t)) return hk.push(t), () => {
- let e = hk.indexOf(t);
- e >= 0 && hk.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 = () => {
- hk[hk.length - 1] === t && n && n();
+ mk[mk.length - 1] === t && n && n();
}, u = (e) => {
- let n = hk[hk.length - 1];
+ let n = mk[mk.length - 1];
c.current = n, (!s || s(K(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(K(e))) && (hk[hk.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = XC({ shortcuts: { Escape: () => {
+ (!s || s(K(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;
} } });
- zse({
+ Bse({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = tE({
+ let { focusWithinProps: p } = eE({
isDisabled: !r,
onBlurWithin: (e) => {
- e.relatedTarget && !Zoe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
+ e.relatedTarget && !Qoe(e.relatedTarget) && (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -28241,87 +28241,87 @@ function gk(e, t) {
};
}
// node_modules/react-aria/dist/private/utils/runAfterKeyboard.mjs
-var nce = 200, rce = 50, ice = 600, _k = /* @__PURE__ */ new WeakMap(), vk = /* @__PURE__ */ new Set(), yk = /* @__PURE__ */ new Set();
-function ace(e, t) {
- let n = Dw();
- if (e !== n || t.aborted) for (let e of yk) e(n), yk.delete(e);
- if (!e && n && ZS() && !t.aborted) window.clearInterval(_k.get(window)), _k.set(window, bk(nce));
+var rce = 200, ice = 50, ace = 600, gk = /* @__PURE__ */ new WeakMap(), _k = /* @__PURE__ */ new Set(), vk = /* @__PURE__ */ new Set();
+function oce(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(rce));
else {
- if (e !== n || t.aborted) for (let e of vk) e(n), vk.delete(e);
- (yk.size + vk.size <= 0 || t.aborted) && (window.clearInterval(_k.get(window)), _k.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 bk(e = ice) {
- return window.setInterval(ace, rce, Dw(), AbortSignal.timeout(e));
+function yk(e = ace) {
+ return window.setInterval(oce, ice, Ew(), AbortSignal.timeout(e));
}
-function xk(e) {
- if (!ww()) return e(!1), () => {};
+function bk(e) {
+ if (!Cw()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = Tw(document.hasFocus() ? MS() : null);
- if (Dw() === t || Dw() && !t) return e(t);
- yk.add(e), _k.has(window) || _k.set(window, bk());
+ 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), yk.delete(e);
+ window.cancelAnimationFrame(t), vk.delete(e);
};
}
-function oce(e) {
- if (!ww()) return e(!1), () => {};
+function sce(e) {
+ if (!Cw()) return e(!1), () => {};
let t = window.requestAnimationFrame(() => {
t = window.requestAnimationFrame(() => {
- let t = Tw(document.hasFocus() ? MS() : null);
- if (Dw() === t) return e(t);
- vk.add(e), _k.has(window) || _k.set(window, bk());
+ 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), vk.delete(e);
+ window.cancelAnimationFrame(t), _k.delete(e);
};
}
// node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var Sk = typeof document < "u" && window.visualViewport, Ck = 0, wk;
-function Tk(e = {}) {
+var xk = typeof document < "u" && window.visualViewport, Sk = 0, Ck;
+function wk(e = {}) {
let { isDisabled: t, UNSTABLE_overrideFocus: n } = e;
- BS(() => {
- if (!t) return Ck++, Ck === 1 && (wk = XS() && ZS() ? cce() : sce(n)), () => {
- Ck--, Ck === 0 && wk();
+ zS(() => {
+ if (!t) return Sk++, Sk === 1 && (Ck = YS() && XS() ? lce() : cce(n)), () => {
+ Sk--, Sk === 0 && Ck();
};
}, [t, n]);
}
-function sce(e) {
+function cce(e) {
let t = window.innerWidth - document.documentElement.clientWidth;
- return IC(t > 0 && ("scrollbarGutter" in document.documentElement.style ? kS(document.documentElement, "scrollbar-gutter", "stable") : kS(document.documentElement, "padding-right", `${t}px`)), kS(document.documentElement, "overflow", "hidden"), e && Dk(), e && ww() && Ek());
+ 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 cce() {
- let e = kS(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+function lce() {
+ let e = OS(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = K(e);
- t = NT(r, !0) ? r : PT(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 = Zw();
+ }, 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 = Dk(), c = IC(OS(document, "touchstart", r, {
+ }, s = Ek(), c = FC(DS(document, "touchstart", r, {
passive: !1,
capture: !0
- }), OS(document, "touchmove", o, {
+ }), DS(document, "touchmove", o, {
passive: !1,
capture: !0
- }), Ek());
+ }), Tk());
return () => {
e(), c(), i.remove(), s();
};
}
-function Ek() {
- return OS(document, "blur", (e) => {
+function Tk() {
+ return DS(document, "blur", (e) => {
let t = K(e), n = e.relatedTarget;
- n && Tw(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 Dk() {
+function Ek() {
let e = HTMLElement.prototype.focus;
return Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -28332,9 +28332,9 @@ function Dk() {
preventScroll: !0
}), !t || !t.preventScroll) {
let e = () => {
- MS() === this && lce(this);
+ jS() === this && uce(this);
};
- xk((t) => t ? e() : oce(() => e()));
+ bk((t) => t ? e() : sce(() => e()));
}
}
}), () => {
@@ -28345,15 +28345,15 @@ function Dk() {
});
};
}
-function lce(e) {
+function uce(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t && n.isConnected;) {
- let e = PT(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;
- Sk && (n = Math.min(n, Sk.offsetTop + Sk.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)),
@@ -28365,19 +28365,19 @@ function lce(e) {
}
}
// node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function uce(e, t, n) {
- let { overlayProps: r, underlayProps: i } = gk({
+function dce(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = hk({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- Tk({
+ wk({
isDisabled: !t.isOpen,
UNSTABLE_overrideFocus: e.UNSTABLE_overrideFocus
- }), kD();
+ }), OD();
let { isEntering: a } = e;
return (0, F.useEffect)(() => {
- if (t.isOpen && n.current) return a ? yE(n.current) : vE([n.current], { shouldUseInert: !0 });
+ if (t.isOpen && n.current) return a ? vE(n.current) : _E([n.current], { shouldUseInert: !0 });
}, [
t.isOpen,
a,
@@ -28388,33 +28388,33 @@ function uce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var Ok = {
+var Dk = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, kk = {
+}, Ok = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, dce = {
+}, fce = {
top: "left",
left: "top"
-}, Ak = {
+}, kk = {
top: "height",
left: "width"
-}, jk = {
+}, Ak = {
width: "totalWidth",
height: "totalHeight"
-}, Mk = {}, fce = () => typeof document < "u" ? window.visualViewport : null;
-function Nk(e, t) {
+}, jk = {}, pce = () => typeof document < "u" ? window.visualViewport : null;
+function mce(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} = Ik(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return ZS() && (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} = Pk(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,
@@ -28424,7 +28424,7 @@ function Nk(e, t) {
left: s
};
}
-function pce(e) {
+function hce(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -28432,11 +28432,11 @@ function pce(e) {
height: e.scrollHeight
};
}
-function mce(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[Ak[e]], l = o[e] + r.scroll[Ok[e]] + a, u = o[e] + r.scroll[Ok[e]] + c - a, d = t - s + r.scroll[Ok[e]] + o[e] - r[Ok[e]], f = t - s + n + r.scroll[Ok[e]] + o[e] - r[Ok[e]];
+function gce(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 hce(e) {
+function _ce(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -28445,55 +28445,55 @@ function hce(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function gce(e) {
- if (Mk[e]) return Mk[e];
- let [t, n] = e.split(" "), r = Ok[t] || "right", i = dce[r];
- Ok[n] || (n = "center");
- let a = Ak[r], o = Ak[i];
- return Mk[e] = {
+function vce(e) {
+ if (jk[e]) return jk[e];
+ let [t, n] = e.split(" "), r = Dk[t] || "right", i = fce[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
- }, Mk[e];
+ }, jk[e];
}
-function Pk(e, t, n, r, i, a, o, s, c, l, u) {
+function Mk(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] = iE(_[m], v, y), d === p) {
- let t = s ? u[h] : u[jk[h]];
- _[kk[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 _ce(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[jk.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function yce(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 vce(e, t, n, r, i, a, o, s) {
+function bce(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[kk[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[kk[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 yce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = gce(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 = vce(s, l, t, i, a + u, v, c, g);
+function xce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = vce(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Mk(t, s, n, v, u, d, l, f, m, h, c), T = u, E = bce(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = gce(`${kk[S]} ${C}`), r = Pk(t, s, n, e, u, d, l, f, m, h, c);
- vce(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = vce(`${Ok[S]} ${C}`), r = Mk(t, s, n, e, u, d, l, f, m, h, c);
+ bce(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 = mce(b, w[b], n[x], s, c, a, l);
+ let O = gce(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = _ce(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 = mce(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[Ok[b]], M = j + .5 * t[x], ee = m / 2 + h, N = Ok[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), te = n[x] - N - m / 2 - h;
- A[b] = iE(iE(M, t[b] + m / 2 - (w[b] + i[Ok[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Ok[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 = yce(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = Mk(t, s, n, v, T, d, l, f, m, h, c), O = gce(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
@@ -28507,17 +28507,17 @@ function yce(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: ne
};
}
-function bce(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 = fce(), h = r instanceof HTMLElement ? Sce(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Ik(n, !1, p) : xce(n, h, !1, p);
+function Sce(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 = pce(), h = r instanceof HTMLElement ? wce(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Pk(n, !1, p) : Cce(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 = Ik(r, !0), x = hce(r);
+ let b = Pk(r, !0), x = _ce(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = pce(i), C = Nk(s, m), w = Nk(h, m), T;
+ let S = hce(i), C = mce(s, m), w = mce(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = Fk(h, !1);
+ let e = Nk(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -28529,11 +28529,11 @@ function bce(e) {
left: 0,
width: 0,
height: 0
- } : xce(s, h, !1);
- let E = jS(s, h);
- return yce(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ } : Cce(s, h, !1);
+ let E = AS(s, h);
+ return xce(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function Fk(e, t) {
+function Nk(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,
@@ -28542,8 +28542,8 @@ function Fk(e, t) {
height: a
};
}
-function Ik(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || Fk(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function Pk(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || Nk(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -28551,29 +28551,29 @@ function Ik(e, t, n) {
height: o
};
}
-function xce(e, t, n, r) {
+function Cce(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || Fk(e, n);
+ if (i.position === "fixed") a = r || Nk(e, n);
else {
- a = Ik(e, n, r);
- let i = Ik(t, n), o = window.getComputedStyle(t);
+ a = Pk(e, n, r);
+ let i = Pk(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 Sce(e) {
+function wce(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Cce(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Cce(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Tce(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Tce(t);) t = t.parentElement;
return t || document.documentElement;
}
-function Cce(e) {
+function Tce(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 Lk = typeof document < "u" ? window.visualViewport : null;
-function wce(e) {
- let { direction: t } = Iw(), { 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 Fk = typeof document < "u" ? window.visualViewport : null;
+function Ece(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,
@@ -28590,15 +28590,15 @@ function wce(e) {
g,
_,
n
- ], S = (0, F.useRef)(Lk?.scale);
+ ], S = (0, F.useRef)(Fk?.scale);
(0, F.useEffect)(() => {
- m && (S.current = Lk?.scale);
+ m && (S.current = Fk?.scale);
}, [m]);
let C = (0, F.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || Lk?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || Fk?.scale !== S.current) return;
let e = null;
- if (o.current && PS(o.current)) {
- let t = MS()?.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
@@ -28606,8 +28606,8 @@ function wce(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 = bce({
- placement: Ece(s, t),
+ let y = Sce({
+ placement: Oce(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -28617,28 +28617,28 @@ function wce(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? Fk(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? Nk(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 = MS();
+ 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);
- BS(C, x), Tce(C), MO({
+ zS(C, x), Dce(C), jO({
ref: i,
onResize: C
- }), MO({
+ }), jO({
ref: r,
onResize: C
});
let w = (0, F.useRef)(!1);
- BS(() => {
+ zS(() => {
let e, t = () => {
w.current = !0, clearTimeout(e), e = setTimeout(() => {
w.current = !1;
@@ -28646,16 +28646,16 @@ function wce(e) {
}, n = () => {
w.current && t();
};
- Lk?.addEventListener("resize", t), Lk?.addEventListener("scroll", n);
- let r = OS(NS(window), "scroll", n);
+ Fk?.addEventListener("resize", t), Fk?.addEventListener("scroll", n);
+ let r = DS(MS(window), "scroll", n);
return () => {
- Lk?.removeEventListener("resize", t), Lk?.removeEventListener("scroll", n), r();
+ Fk?.removeEventListener("resize", t), Fk?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, F.useCallback)(() => {
w.current || h?.();
}, [h, w]);
- return kse({
+ return Ase({
triggerRef: r,
isOpen: m,
onClose: h && T
@@ -28681,24 +28681,24 @@ function wce(e) {
updatePosition: C
};
}
-function Tce(e) {
- BS(() => (window.addEventListener("resize", e, !1), () => {
+function Dce(e) {
+ zS(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function Ece(e, t) {
+function Oce(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 Dce(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 } = gk({
+function kce(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 } = wce({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Ece({
...c,
targetRef: n,
overlayRef: r,
@@ -28706,15 +28706,15 @@ function Dce(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)
});
- Tk({ isDisabled: a || !t.isOpen }), (0, F.useEffect)(() => {
- if (t.isOpen && r.current) return a ? yE(i?.current ?? r.current) : vE([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 } = tE(e);
+ let { focusWithinProps: g } = eE(e);
return {
popoverProps: q(u, f, g),
arrowProps: p,
@@ -28724,12 +28724,12 @@ function Dce(e, t) {
};
}
// node_modules/react-aria/dist/private/radio/utils.mjs
-var Rk = /* @__PURE__ */ new WeakMap();
+var Ik = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/radio/useRadio.mjs
-function Oce(e, t, n) {
+function Ace(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: _ } = iT({
+ }, { pressProps: g, isPressed: _ } = rT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28737,7 +28737,7 @@ function Oce(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = iT({
+ }), { pressProps: v, isPressed: y } = rT({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -28747,11 +28747,11 @@ function Oce(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = ew(q(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = q(g, b), S = Ww(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = $C(q(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = q(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 } = Rk.get(t);
- BT(n, t.defaultSelectedValue, t.setSelectedValue), VT({ validationBehavior: O }, t, n);
- let k = HT();
+ let { name: w, form: T, descriptionId: E, errorMessageId: D, validationBehavior: O } = Ik.get(t);
+ zT(n, t.defaultSelectedValue, t.setSelectedValue), BT({ validationBehavior: O }, t, n);
+ let k = VT();
return {
labelProps: q(v, (0, F.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
@@ -28782,13 +28782,13 @@ function Oce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function kce(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Iw(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = eE({
+function jce(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
- }), _ = Ww(e, { labelable: !0 }), { focusWithinProps: v } = tE({
+ }), _ = Uw(e, { labelable: !0 }), { focusWithinProps: v } = eE({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -28796,13 +28796,13 @@ function kce(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = ET(n.currentTarget, {
+ let r = TT(n.currentTarget, {
from: K(n),
- accept: (e) => e instanceof TS(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 } = XC({
+ 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),
@@ -28810,8 +28810,8 @@ function kce(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = BC(n);
- return Rk.set(t, {
+ }), x = zC(n);
+ return Ik.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -28839,21 +28839,21 @@ function kce(e, t) {
};
}
// node_modules/react-aria/dist/private/select/useSelect.mjs
-var zk = /* @__PURE__ */ new WeakMap();
-function Ace(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = CD({
+var Lk = /* @__PURE__ */ new WeakMap();
+function Mce(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 TE(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 } = lD({
+ ]), { menuTriggerProps: d, menuProps: f } = cD({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = XC({
+ }, t, n), { keyboardProps: p } = YC({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -28869,21 +28869,21 @@ function Ace(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = dD({
+ }), { 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 } = eE({
+ }), { 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 = Ww(e, { labelable: !0 }), C = q(m, d, y), w = BC();
- return zk.set(t, {
+ let S = Uw(e, { labelable: !0 }), C = q(m, d, y), w = zC();
+ return Lk.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -28893,13 +28893,13 @@ function Ace(e, t, n) {
labelProps: {
...v,
onClick: () => {
- e.isDisabled || (n.current?.focus(), TC("keyboard"));
+ e.isDisabled || (n.current?.focus(), wC("keyboard"));
}
},
triggerProps: q(S, {
...C,
isDisabled: i,
- onKeyDown: IC(C.onKeyDown, p.onKeyDown),
+ onKeyDown: FC(C.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
w,
@@ -28923,7 +28923,7 @@ function Ace(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- jS(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(" ")
},
@@ -28943,13 +28943,13 @@ function Ace(e, t, n) {
};
}
// node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function jce(e, t, n) {
- let r = zk.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = dE({ style: {
+function Nce(e, t, n) {
+ let r = Lk.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
} });
- BT(e.selectRef, t.defaultValue, t.setValue), VT({
+ zT(e.selectRef, t.defaultValue, t.setValue), BT({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
@@ -28979,8 +28979,8 @@ function jce(e, t, n) {
}
};
}
-function Mce(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 } = jce({
+function Pce(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 } = Nce({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -29004,7 +29004,7 @@ function Mce(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = zk.get(t) || {};
+ let { validationBehavior: e } = Lk.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -29034,8 +29034,8 @@ function Mce(e) {
return null;
}
// node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function Nce(e) {
- let t = Ww(e, { labelable: !0 }), n;
+function Fce(e) {
+ let t = Uw(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -29043,8 +29043,8 @@ function Nce(e) {
} };
}
// node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function Pce(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = ZT(e, t, n);
+function Ice(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = XT(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -29057,10 +29057,10 @@ function Pce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var Bk = class {
+var Rk = 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 Fce(e.layout) : new wE(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new Lce(e.layout) : new CE(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -29096,7 +29096,7 @@ var Bk = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of mD(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++;
}
@@ -29130,13 +29130,13 @@ var Bk = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = mD(t, this.collection);
- return (this.direction === "rtl" ? _D(e)?.key : hD(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 = mD(n, this.collection), i = (this.direction === "rtl" ? gD(r, t.index - 1) : gD(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;
@@ -29145,13 +29145,13 @@ var Bk = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = mD(t, this.collection);
- return (this.direction === "rtl" ? hD(e)?.key : _D(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 = mD(n, this.collection), i = (this.direction === "rtl" ? gD(r, t.index + 1) : gD(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;
@@ -29162,13 +29162,13 @@ var Bk = 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(mD(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 = hD(mD(e, this.collection))?.key ?? null;
+ n = mD(pD(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29178,13 +29178,13 @@ var Bk = 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 ? _D(mD(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 = _D(mD(e, this.collection))?.key ?? null;
+ n = gD(pD(e, this.collection))?.key ?? null;
}
return n;
}
@@ -29220,13 +29220,13 @@ var Bk = 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" ? hD(mD(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;
}
-}, Fce = class {
+}, Lce = class {
constructor(e) {
this.layout = e;
}
@@ -29239,15 +29239,15 @@ var Bk = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, Vk = /* @__PURE__ */ new WeakMap();
+}, zk = /* @__PURE__ */ new WeakMap();
// node_modules/react-aria/dist/private/grid/useGrid.mjs
-function Ice(e, t, n) {
+function Rce(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 = CD({
+ let h = SD({
usage: "search",
sensitivity: "base"
- }), { direction: g } = Iw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new Bk({
+ }), { direction: g } = Fw(), _ = t.selectionManager.disabledBehavior, v = (0, F.useMemo)(() => a || new Rk({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -29264,7 +29264,7 @@ function Ice(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = pD({
+ ]), { collectionProps: y } = fD({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -29272,8 +29272,8 @@ function Ice(e, t, n) {
scrollRef: s,
disallowTypeAhead: i,
escapeKeyBehavior: d
- }), b = BC(e.id);
- Vk.set(t, {
+ }), b = zC(e.id);
+ zk.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -29282,42 +29282,42 @@ function Ice(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = SO({
+ let x = xO({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = Ww(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
- m.isFocused ? jS(e.currentTarget, K(e)) || m.setFocused(!1) : jS(e.currentTarget, K(e)) && m.setFocused(!0);
+ }), S = Uw(e, { labelable: !0 }), C = (0, F.useCallback)((e) => {
+ m.isFocused ? AS(e.currentTarget, K(e)) || m.setFocused(!1) : AS(e.currentTarget, K(e)) && m.setFocused(!0);
}, [m]), w = (0, F.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = xO(n, { isDisabled: t.collection.size !== 0 }), E = q(S, {
+ }), [C, y.onBlur]), T = bO(n, { isDisabled: t.collection.size !== 0 }), E = q(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), yO({ 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 Hk = /* @__PURE__ */ new WeakMap();
-function Uk(e) {
+var Bk = /* @__PURE__ */ new WeakMap();
+function Vk(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Wk(e, t) {
- let n = Hk.get(e);
+function Hk(e, t) {
+ let n = Bk.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${Uk(t)}`;
+ return `${n}-${Vk(t)}`;
}
-function Gk(e, t, n) {
- let r = Hk.get(e);
+function Uk(e, t, n) {
+ let r = Bk.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${Uk(t)}-${Uk(n)}`;
+ return `${r}-${Vk(t)}-${Vk(n)}`;
}
-function Kk(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => Gk(e, t, n)).join(" ");
+function Wk(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => Uk(e, t, n)).join(" ");
}
// node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var qk = {};
-qk = {
+var Gk = {};
+Gk = {
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: "طي",
@@ -29331,8 +29331,8 @@ qk = {
sortable: "عمود قابل للترتيب"
};
// node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var Jk = {};
-Jk = {
+var Kk = {};
+Kk = {
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: "Свиване",
@@ -29346,8 +29346,8 @@ Jk = {
sortable: "сортираща колона"
};
// node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var Yk = {};
-Yk = {
+var qk = {};
+qk = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -29361,8 +29361,8 @@ Yk = {
sortable: "sloupec s možností řazení"
};
// node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var Xk = {};
-Xk = {
+var Jk = {};
+Jk = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -29376,8 +29376,8 @@ Xk = {
sortable: "sorterbar kolonne"
};
// node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var Zk = {};
-Zk = {
+var Yk = {};
+Yk = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -29391,8 +29391,8 @@ Zk = {
sortable: "sortierbare Spalte"
};
// node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var Qk = {};
-Qk = {
+var Xk = {};
+Xk = {
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: "Σύμπτυξη",
@@ -29406,8 +29406,8 @@ Qk = {
sortable: "Στήλη διαλογής"
};
// node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var $k = {};
-$k = {
+var Zk = {};
+Zk = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -29421,8 +29421,8 @@ $k = {
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var eA = {};
-eA = {
+var Qk = {};
+Qk = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -29436,8 +29436,8 @@ eA = {
sortable: "columna ordenable"
};
// node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var tA = {};
-tA = {
+var $k = {};
+$k = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -29451,8 +29451,8 @@ tA = {
sortable: "sorditav veerg"
};
// node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var Lce = {};
-Lce = {
+var eA = {};
+eA = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -29466,8 +29466,8 @@ Lce = {
sortable: "lajiteltava sarake"
};
// node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var nA = {};
-nA = {
+var tA = {};
+tA = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -29481,8 +29481,8 @@ nA = {
sortable: "colonne triable"
};
// node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var rA = {};
-rA = {
+var nA = {};
+nA = {
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: "כווץ",
@@ -29496,8 +29496,8 @@ rA = {
sortable: "עמודה שניתן למיין"
};
// node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var iA = {};
-iA = {
+var rA = {};
+rA = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -29511,8 +29511,8 @@ iA = {
sortable: "stupac koji se može razvrstati"
};
// node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var aA = {};
-aA = {
+var iA = {};
+iA = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -29526,8 +29526,8 @@ aA = {
sortable: "rendezendő oszlop"
};
// node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var oA = {};
-oA = {
+var aA = {};
+aA = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -29541,8 +29541,8 @@ oA = {
sortable: "colonna ordinabile"
};
// node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var sA = {};
-sA = {
+var oA = {};
+oA = {
ascending: "昇順",
ascendingSort: (e) => `\u{5217} ${e.columnName} \u{3092}\u{6607}\u{9806}\u{3067}\u{4E26}\u{3079}\u{66FF}\u{3048}`,
collapse: "折りたたむ",
@@ -29556,8 +29556,8 @@ sA = {
sortable: "並べ替え可能な列"
};
// node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var cA = {};
-cA = {
+var sA = {};
+sA = {
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: "접기",
@@ -29571,8 +29571,8 @@ cA = {
sortable: "정렬 가능한 열"
};
// node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var lA = {};
-lA = {
+var cA = {};
+cA = {
ascending: "didėjančia tvarka",
ascendingSort: (e) => `surikiuota pagal stulpel\u{12F} ${e.columnName} did\u{117}jan\u{10D}ia tvarka`,
collapse: "Sutraukti",
@@ -29586,8 +29586,8 @@ lA = {
sortable: "rikiuojamas stulpelis"
};
// node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var uA = {};
-uA = {
+var lA = {};
+lA = {
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",
@@ -29601,8 +29601,8 @@ uA = {
sortable: "kārtojamā kolonna"
};
// node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var dA = {};
-dA = {
+var uA = {};
+uA = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -29616,8 +29616,8 @@ dA = {
sortable: "kolonne som kan sorteres"
};
// node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var fA = {};
-fA = {
+var dA = {};
+dA = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -29631,8 +29631,8 @@ fA = {
sortable: "sorteerbare kolom"
};
// node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var pA = {};
-pA = {
+var fA = {};
+fA = {
ascending: "rosnąco",
ascendingSort: (e) => `posortowano wed\u{142}ug kolumny ${e.columnName} w porz\u{105}dku rosn\u{105}cym`,
collapse: "Zwiń",
@@ -29646,8 +29646,8 @@ pA = {
sortable: "kolumna z możliwością sortowania"
};
// node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var mA = {};
-mA = {
+var pA = {};
+pA = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -29661,8 +29661,8 @@ mA = {
sortable: "coluna classificável"
};
// node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var hA = {};
-hA = {
+var mA = {};
+mA = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -29676,8 +29676,8 @@ hA = {
sortable: "Coluna ordenável"
};
// node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var gA = {};
-gA = {
+var hA = {};
+hA = {
ascending: "crescătoare",
ascendingSort: (e) => `sortate dup\u{103} coloana ${e.columnName} \xeen ordine cresc\u{103}toare`,
collapse: "Restrângeți",
@@ -29691,8 +29691,8 @@ gA = {
sortable: "coloană sortabilă"
};
// node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var _A = {};
-_A = {
+var gA = {};
+gA = {
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: "Свернуть",
@@ -29706,8 +29706,8 @@ _A = {
sortable: "сортируемый столбец"
};
// node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var vA = {};
-vA = {
+var _A = {};
+_A = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -29721,8 +29721,8 @@ vA = {
sortable: "zoraditeľný stĺpec"
};
// node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var yA = {};
-yA = {
+var vA = {};
+vA = {
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",
@@ -29736,8 +29736,8 @@ yA = {
sortable: "razvrstljivi stolpec"
};
// node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var bA = {};
-bA = {
+var yA = {};
+yA = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -29751,8 +29751,8 @@ bA = {
sortable: "kolona koja se može sortirati"
};
// node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var xA = {};
-xA = {
+var bA = {};
+bA = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -29766,8 +29766,8 @@ xA = {
sortable: "sorterbar kolumn"
};
// node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var SA = {};
-SA = {
+var xA = {};
+xA = {
ascending: "artan sırada",
ascendingSort: (e) => `${e.columnName} s\xfctuna g\xf6re artan d\xfczende s\u{131}rala`,
collapse: "Daralt",
@@ -29781,8 +29781,8 @@ SA = {
sortable: "Sıralanabilir sütun"
};
// node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var CA = {};
-CA = {
+var SA = {};
+SA = {
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: "Згорнути",
@@ -29796,8 +29796,8 @@ CA = {
sortable: "сортувальний стовпець"
};
// node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var wA = {};
-wA = {
+var CA = {};
+CA = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -29811,8 +29811,8 @@ wA = {
sortable: "可排序的列"
};
// node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var TA = {};
-TA = {
+var wA = {};
+wA = {
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: "收合",
@@ -29826,45 +29826,45 @@ TA = {
sortable: "可排序的欄"
};
// node_modules/react-aria/dist/private/table/intlStrings.mjs
-var EA = {};
-EA = {
- "ar-AE": qk,
- "bg-BG": Jk,
- "cs-CZ": Yk,
- "da-DK": Xk,
- "de-DE": Zk,
- "el-GR": Qk,
- "en-US": $k,
- "es-ES": eA,
- "et-EE": tA,
- "fi-FI": Lce,
- "fr-FR": nA,
- "he-IL": rA,
- "hr-HR": iA,
- "hu-HU": aA,
- "it-IT": oA,
- "ja-JP": sA,
- "ko-KR": cA,
- "lt-LT": lA,
- "lv-LV": uA,
- "nb-NO": dA,
- "nl-NL": fA,
- "pl-PL": pA,
- "pt-BR": mA,
- "pt-PT": hA,
- "ro-RO": gA,
- "ru-RU": _A,
- "sk-SK": vA,
- "sl-SI": yA,
- "sr-SP": bA,
- "sv-SE": xA,
- "tr-TR": SA,
- "uk-UA": CA,
- "zh-CN": wA,
- "zh-TW": TA
+var TA = {};
+TA = {
+ "ar-AE": Gk,
+ "bg-BG": Kk,
+ "cs-CZ": qk,
+ "da-DK": Jk,
+ "de-DE": Yk,
+ "el-GR": Xk,
+ "en-US": Zk,
+ "es-ES": Qk,
+ "et-EE": $k,
+ "fi-FI": eA,
+ "fr-FR": tA,
+ "he-IL": nA,
+ "hr-HR": rA,
+ "hu-HU": iA,
+ "it-IT": aA,
+ "ja-JP": oA,
+ "ko-KR": sA,
+ "lt-LT": cA,
+ "lv-LV": lA,
+ "nb-NO": uA,
+ "nl-NL": dA,
+ "pl-PL": fA,
+ "pt-BR": pA,
+ "pt-PT": mA,
+ "ro-RO": hA,
+ "ru-RU": gA,
+ "sk-SK": _A,
+ "sl-SI": vA,
+ "sr-SP": yA,
+ "sv-SE": bA,
+ "tr-TR": xA,
+ "uk-UA": SA,
+ "zh-CN": CA,
+ "zh-TW": wA
};
// node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var Rce = class extends Bk {
+var zce = class extends Rk {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -29872,7 +29872,7 @@ var Rce = class extends Bk {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = hD(mD(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);
@@ -29893,13 +29893,13 @@ var Rce = class extends Bk {
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 mD(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 = [...mD(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;
@@ -29928,7 +29928,7 @@ var Rce = class extends Bk {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of mD(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);
@@ -29941,14 +29941,14 @@ var Rce = class extends Bk {
}
};
// node_modules/react-aria/dist/private/table/useTable.mjs
-function zce(e) {
+function Bce(e) {
return e && e.__esModule ? e.default : e;
}
-function Bce(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = CD({
+function Vce(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = SD({
usage: "search",
sensitivity: "base"
- }), { direction: c } = Iw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new Rce({
+ }), { direction: c } = Fw(), l = t.selectionManager.disabledBehavior, u = (0, F.useMemo)(() => r || new zce({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -29967,51 +29967,51 @@ function Bce(e, t, n) {
s,
a,
o
- ]), d = BC(e.id);
- Hk.set(t, d);
- let { gridProps: f } = Ice({
+ ]), d = zC(e.id);
+ Bk.set(t, d);
+ let { gridProps: f } = Rce({
...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 = Hw(zce(EA), "@react-aria/table"), g = (0, F.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = Vw(Bce(TA), "@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
- ]), _ = zT(g);
- return MT(() => {
- g && jT(g, "assertive", 500);
+ ]), _ = RT(g);
+ return jT(() => {
+ g && AT(g, "assertive", 500);
}, [g]), { gridProps: q(f, _, { "aria-describedby": [_["aria-describedby"], f["aria-describedby"]].filter(Boolean).join(" ") }) };
}
// node_modules/react-aria/dist/private/grid/useGridCell.mjs
-function DA(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = Iw(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = Vk.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
+function EA(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 } = zk.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, F.useRef)(null), h = (0, F.useRef)(null), g = () => {
if (n.current) {
- let e = ET(n.current);
+ let e = TT(n.current);
if (p === "child") {
- let i = MS(wS(n.current));
- if (PS(n.current) && n.current !== i) return;
- let a = wS(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 && jS(n.current, e)) {
- FC(e);
+ if (e && m.current === r.key && AS(n.current, e)) {
+ PC(e);
return;
}
}
- let o = t.selectionManager.childFocusStrategy === "last" ? OA(e) : e.firstChild();
+ let o = t.selectionManager.childFocusStrategy === "last" ? DA(e) : e.firstChild();
if (o) {
- FC(o);
+ PC(o);
return;
}
}
- (m.current != null && r.key !== m.current || !PS(n.current)) && FC(n.current);
+ (m.current != null && r.key !== m.current || !NS(n.current)) && PC(n.current);
}
- }, { itemProps: _, isPressed: v } = wO({
+ }, { itemProps: _, isPressed: v } = CO({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -30023,44 +30023,44 @@ function DA(e, t, n) {
}), y = q(_, {
role: "gridcell",
onKeyDownCapture: f !== "tab" || o ? (e) => {
- let i = MS(wS(n.current));
- if (!jS(e.currentTarget, K(e)) || t.isKeyboardNavigationDisabled || !n.current || !i) return;
- let a = ET(n.current);
+ let i = jS(CS(n.current));
+ if (!AS(e.currentTarget, K(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) FC(t), LT(t, { containingElement: PT(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" ? (FC(n.current), LT(n.current, { containingElement: PT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : OA(a), t && (FC(t), LT(t, { containingElement: PT(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() : DA(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) FC(t), LT(t, { containingElement: PT(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" ? (FC(n.current), LT(n.current, { containingElement: PT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? OA(a) : a.firstChild(), t && (FC(t), LT(t, { containingElement: PT(n.current) })));
+ p === "cell" && l === "ltr" ? (PC(n.current), IT(n.current, { containingElement: NT(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? DA(a) : a.firstChild(), t && (PC(t), IT(t, { containingElement: NT(n.current) })));
}
break;
}
case "ArrowUp":
- case "ArrowDown": !e.altKey && jS(n.current, K(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
+ case "ArrowDown": !e.altKey && AS(n.current, K(e)) && (e.stopPropagation(), e.preventDefault(), n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent)));
}
} : void 0,
onKeyDown: f === "tab" ? (e) => {
- let r = MS(wS(n.current));
- if (jS(e.currentTarget, K(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
+ let r = jS(CS(n.current));
+ if (AS(e.currentTarget, K(e)) && !t.isKeyboardNavigationDisabled && n.current && r) {
if (f === "tab" && K(e) !== n.current && e.key !== "Tab") e.stopPropagation();
else if (e.key === "Tab" && f === "tab") {
- let t = ET(n.current, { tabbable: !0 });
+ let t = TT(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -30071,9 +30071,9 @@ function DA(e, t, n) {
onFocus: (e) => {
if (m.current = r.key, K(e) !== n.current) {
let i = K(e);
- n.current && jS(n.current, i) && (h.current = i), CC() || t.selectionManager.setFocusedKey(r.key);
- } else p === "child" && e.relatedTarget && jS(n.current, e.relatedTarget) || requestAnimationFrame(() => {
- p === "child" && MS(wS(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 } : {}
@@ -30088,7 +30088,7 @@ function DA(e, t, n) {
isPressed: v
};
}
-function OA(e) {
+function DA(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -30096,32 +30096,32 @@ function OA(e) {
return t;
}
// node_modules/react-aria/dist/private/table/useTableCell.mjs
-function Vce(e, t, n) {
- let { gridCellProps: r, isPressed: i } = DA(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = Gk(t, e.node.parentKey, a)), {
+function Hce(e, t, n) {
+ let { gridCellProps: r, isPressed: i } = EA(e, t, n), a = e.node.column?.key;
+ return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = Uk(t, e.node.parentKey, a)), {
gridCellProps: r,
isPressed: i
};
}
// node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function Hce(e) {
+function Uce(e) {
return e && e.__esModule ? e.default : e;
}
-function Uce(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = DA({
+function Wce(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = EA({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = iT({
+ }, 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 } = ew({}, n), u, d = t.sortDescriptor?.column === r.key, f = t.sortDescriptor?.direction;
- r.props.allowsSorting && !$S() && (u = d ? f : "none");
- let p = Hw(Hce(EA), "@react-aria/table"), m;
- i && (m = `${p.format("sortable")}`, d && f && $S() && (m = `${m}, ${p.format(f)}`));
- let h = zT(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(Uce(TA), "@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);
}, [
@@ -30132,7 +30132,7 @@ function Uce(e, t, n) {
columnHeaderProps: {
...q(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: Wk(t, r.key),
+ id: Hk(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -30140,17 +30140,17 @@ function Uce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableColumnResize.mjs
-function Wce(e) {
+function Gce(e) {
return e && e.__esModule ? e.default : e;
}
-function Gce(e, t, n) {
- let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Hw(Wce(EA), "@react-aria/table"), d = BC(), 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 } = Iw(), b = (0, F.useCallback)((e) => {
+function Kce(e, t, n) {
+ let { column: r, triggerRef: i, isDisabled: a, onResizeStart: o, onResize: s, onResizeEnd: c, "aria-label": l } = e, u = Vw(Gce(TA), "@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 && FC(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,
@@ -30158,14 +30158,14 @@ function Gce(e, t, n) {
]), C = () => {
if (g) S(r);
else return !1;
- }, { keyboardProps: w } = XC({ shortcuts: {
+ }, { keyboardProps: w } = YC({ shortcuts: {
Escape: () => C(),
Enter: () => {
g ? S(r) : b(r);
},
" ": () => C(),
Tab: () => C()
- } }), T = (0, F.useRef)(0), { moveProps: E } = lE({
+ } }), T = (0, F.useRef)(0), { moveProps: E } = cE({
onMoveStart(e) {
T.current = t.getColumnWidth(r.key), e.pointerType === "mouse" && v(!0), b(r);
},
@@ -30181,12 +30181,12 @@ function Gce(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 = EC();
+ let A = Math.floor(t.getColumnWidth(r.key)), j = TC();
j === "virtual" && typeof window < "u" && "ontouchstart" in window && (j = "touch");
- let M = zT(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} ${Wk(t.tableState, r.key)}`,
+ "aria-labelledby": `${d} ${Hk(t.tableState, r.key)}`,
"aria-valuetext": u.format("columnSize", { value: A }),
type: "range",
min: O,
@@ -30194,11 +30194,11 @@ function Gce(e, t, n) {
value: A,
...M
}, N = (0, F.useCallback)(() => {
- n.current && FC(n.current);
- }, [n]), te = t.resizingColumn, P = (0, F.useRef)(null), ne = Ow(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 = MS() === 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);
@@ -30214,7 +30214,7 @@ function Gce(e, t, n) {
let re = (e) => {
let n = t.getColumnWidth(r.key), i = parseFloat(K(e).value);
i = i > n ? n + 10 : n - 10, x(r, i);
- }, { pressProps: I } = iT({
+ }, { 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)));
@@ -30222,7 +30222,7 @@ function Gce(e, t, n) {
onPress: (e) => {
(e.pointerType === "touch" && h.current || e.pointerType === "mouse") && t.resizingColumn != null && S(r);
}
- }), { visuallyHiddenProps: ie } = dE();
+ }), { visuallyHiddenProps: ie } = uE();
return {
resizerProps: q(w, {
...E,
@@ -30241,19 +30241,19 @@ function Gce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function Kce(e, t, n) {
+function qce(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 qce(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = Vk.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = wO({
+function Jce(e, t, n) {
+ let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = zk.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 ? IC(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",
@@ -30267,10 +30267,10 @@ function qce(e, t, n) {
};
}
// node_modules/react-aria/dist/private/table/useTableRow.mjs
-function Jce(e) {
+function Yce(e) {
return e && e.__esModule ? e.default : e;
}
-var kA = {
+var OA = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -30280,21 +30280,21 @@ var kA = {
rtl: "ArrowRight"
}
};
-function Yce(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = qce(e, t, n), { direction: s } = Iw();
+function Xce(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Jce(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 = Hw(Jce(EA), "@react-aria/table"), u = Aw({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = Vw(Yce(TA), "@react-aria/table"), u = kw({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": Kk(t, r.key)
+ "aria-labelledby": Wk(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = AA(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 = AA(t.collection, a);
+ let n = kA(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 = kA(t.collection, a);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === kA.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === kA.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 === OA.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === OA.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,
@@ -30312,42 +30312,42 @@ function Yce(e, t, n) {
};
}
}
- let p = rC(r.props), m = o.hasAction ? p : {};
+ let p = nC(r.props), m = o.hasAction ? p : {};
return {
rowProps: {
...q(a, d, m),
- "aria-labelledby": Kk(t, r.key)
+ "aria-labelledby": Wk(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function AA(e, t) {
+function kA(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 Xce() {
+function Zce() {
return { rowGroupProps: { role: "rowgroup" } };
}
// node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function jA() {
- return Xce();
+function AA() {
+ return Zce();
}
// node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function Zce(e) {
+function Qce(e) {
return e && e.__esModule ? e.default : e;
}
-function Qce(e, t) {
- let { key: n } = e, { checkboxProps: r } = AO(e, t);
+function $ce(e, t) {
+ let { key: n } = e, { checkboxProps: r } = kO(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${Kk(t, n)}`
+ "aria-labelledby": `${r.id} ${Wk(t, n)}`
} };
}
-function $ce(e) {
+function ele(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": Hw(Zce(EA), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": Vw(Qce(TA), "@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,
@@ -30355,22 +30355,22 @@ function $ce(e) {
} };
}
// node_modules/react-aria/dist/private/tabs/utils.mjs
-var MA = /* @__PURE__ */ new WeakMap();
-function NA(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${MA.get(e)}-${n}-${t}`) : "";
+var jA = /* @__PURE__ */ new WeakMap();
+function MA(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${jA.get(e)}-${n}-${t}`) : "";
}
// node_modules/react-aria/dist/private/tabs/useTab.mjs
-function ele(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 } = wO({
+function tle(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 = NA(t, r, "tab"), m = NA(t, r, "tabpanel"), { tabIndex: h } = d, g = Ww(u?.props, { labelable: !0 });
+ }), p = MA(t, r, "tab"), m = MA(t, r, "tabpanel"), { tabIndex: h } = d, g = Uw(u?.props, { labelable: !0 });
delete g.id;
- let _ = iC(u?.props), { focusableProps: v } = ew({
+ let _ = rC(u?.props), { focusableProps: v } = $C({
...u?.props,
isDisabled: l
}, n);
@@ -30389,7 +30389,7 @@ function ele(e, t, n) {
};
}
// node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var tle = class {
+var nle = class {
constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
}
@@ -30432,11 +30432,11 @@ var tle = class {
}
};
// node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function nle(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Iw(), { collectionProps: l } = pD({
+function rle(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 tle(a, c, r, s), [
+ keyboardDelegate: (0, F.useMemo)(() => new nle(a, c, r, s), [
a,
s,
r,
@@ -30446,9 +30446,9 @@ function nle(e, t, n) {
disallowEmptySelection: !0,
scrollRef: n,
linkBehavior: "selection"
- }), u = BC();
- return MA.set(t, u), { tabListProps: {
- ...q(l, Aw({
+ }), u = zC();
+ return jA.set(t, u), { tabListProps: {
+ ...q(l, kw({
...e,
id: u
})),
@@ -30458,12 +30458,12 @@ function nle(e, t, n) {
} };
}
// node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function rle(e, t, n) {
- let r = xO(n) ? void 0 : 0, i = NA(t, e.id ?? t?.selectedKey, "tabpanel");
- return { tabPanelProps: q(Aw({
+function ile(e, t, n) {
+ let r = bO(n) ? void 0 : 0, i = MA(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: q(kw({
...e,
id: i,
- "aria-labelledby": NA(t, t?.selectedKey, "tab")
+ "aria-labelledby": MA(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -30472,265 +30472,265 @@ function rle(e, t, n) {
}) };
}
// node_modules/react-aria/dist/private/tree/useTree.mjs
-function ile(e, t, n) {
- let { gridProps: r } = Use(e, t, n);
+function ale(e, t, n) {
+ let { gridProps: r } = Wse(e, t, n);
return r.role = "treegrid", { gridProps: r };
}
// node_modules/react-aria/dist/private/intl/tree/ar-AE.mjs
-var PA = {};
-PA = {
+var NA = {};
+NA = {
collapse: "طي",
expand: "تمديد"
};
// node_modules/react-aria/dist/private/intl/tree/bg-BG.mjs
-var FA = {};
-FA = {
+var PA = {};
+PA = {
collapse: "Свиване",
expand: "Разширяване"
};
// node_modules/react-aria/dist/private/intl/tree/cs-CZ.mjs
-var IA = {};
-IA = {
+var FA = {};
+FA = {
collapse: "Sbalit",
expand: "Roztáhnout"
};
// node_modules/react-aria/dist/private/intl/tree/da-DK.mjs
-var LA = {};
-LA = {
+var IA = {};
+IA = {
collapse: "Skjul",
expand: "Udvid"
};
// node_modules/react-aria/dist/private/intl/tree/de-DE.mjs
-var RA = {};
-RA = {
+var LA = {};
+LA = {
collapse: "Reduzieren",
expand: "Erweitern"
};
// node_modules/react-aria/dist/private/intl/tree/el-GR.mjs
-var zA = {};
-zA = {
+var RA = {};
+RA = {
collapse: "Σύμπτυξη",
expand: "Ανάπτυξη"
};
// node_modules/react-aria/dist/private/intl/tree/en-US.mjs
-var BA = {};
-BA = {
+var zA = {};
+zA = {
expand: "Expand",
collapse: "Collapse"
};
// node_modules/react-aria/dist/private/intl/tree/es-ES.mjs
-var VA = {};
-VA = {
+var BA = {};
+BA = {
collapse: "Contraer",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/et-EE.mjs
-var HA = {};
-HA = {
+var VA = {};
+VA = {
collapse: "Ahenda",
expand: "Laienda"
};
// node_modules/react-aria/dist/private/intl/tree/fi-FI.mjs
-var UA = {};
-UA = {
+var HA = {};
+HA = {
collapse: "Pienennä",
expand: "Laajenna"
};
// node_modules/react-aria/dist/private/intl/tree/fr-FR.mjs
-var WA = {};
-WA = {
+var UA = {};
+UA = {
collapse: "Réduire",
expand: "Développer"
};
// node_modules/react-aria/dist/private/intl/tree/he-IL.mjs
-var GA = {};
-GA = {
+var WA = {};
+WA = {
collapse: "כווץ",
expand: "הרחב"
};
// node_modules/react-aria/dist/private/intl/tree/hr-HR.mjs
-var KA = {};
-KA = {
+var GA = {};
+GA = {
collapse: "Sažmi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/hu-HU.mjs
-var qA = {};
-qA = {
+var KA = {};
+KA = {
collapse: "Összecsukás",
expand: "Kibontás"
};
// node_modules/react-aria/dist/private/intl/tree/it-IT.mjs
-var JA = {};
-JA = {
+var qA = {};
+qA = {
collapse: "Comprimi",
expand: "Espandi"
};
// node_modules/react-aria/dist/private/intl/tree/ja-JP.mjs
-var YA = {};
-YA = {
+var JA = {};
+JA = {
collapse: "折りたたむ",
expand: "展開"
};
// node_modules/react-aria/dist/private/intl/tree/ko-KR.mjs
-var XA = {};
-XA = {
+var YA = {};
+YA = {
collapse: "접기",
expand: "펼치기"
};
// node_modules/react-aria/dist/private/intl/tree/lt-LT.mjs
-var ZA = {};
-ZA = {
+var XA = {};
+XA = {
collapse: "Sutraukti",
expand: "Išskleisti"
};
// node_modules/react-aria/dist/private/intl/tree/lv-LV.mjs
-var QA = {};
-QA = {
+var ZA = {};
+ZA = {
collapse: "Sakļaut",
expand: "Izvērst"
};
// node_modules/react-aria/dist/private/intl/tree/nb-NO.mjs
-var $A = {};
-$A = {
+var QA = {};
+QA = {
collapse: "Skjul",
expand: "Utvid"
};
// node_modules/react-aria/dist/private/intl/tree/nl-NL.mjs
-var ej = {};
-ej = {
+var $A = {};
+$A = {
collapse: "Samenvouwen",
expand: "Uitvouwen"
};
// node_modules/react-aria/dist/private/intl/tree/pl-PL.mjs
-var tj = {};
-tj = {
+var ej = {};
+ej = {
collapse: "Zwiń",
expand: "Rozwiń"
};
// node_modules/react-aria/dist/private/intl/tree/pt-BR.mjs
-var nj = {};
-nj = {
+var tj = {};
+tj = {
collapse: "Recolher",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/pt-PT.mjs
-var rj = {};
-rj = {
+var nj = {};
+nj = {
collapse: "Colapsar",
expand: "Expandir"
};
// node_modules/react-aria/dist/private/intl/tree/ro-RO.mjs
-var ij = {};
-ij = {
+var rj = {};
+rj = {
collapse: "Restrângeți",
expand: "Extindeți"
};
// node_modules/react-aria/dist/private/intl/tree/ru-RU.mjs
-var aj = {};
-aj = {
+var ij = {};
+ij = {
collapse: "Свернуть",
expand: "Развернуть"
};
// node_modules/react-aria/dist/private/intl/tree/sk-SK.mjs
-var oj = {};
-oj = {
+var aj = {};
+aj = {
collapse: "Zbaliť",
expand: "Rozbaliť"
};
// node_modules/react-aria/dist/private/intl/tree/sl-SI.mjs
-var sj = {};
-sj = {
+var oj = {};
+oj = {
collapse: "Strni",
expand: "Razširi"
};
// node_modules/react-aria/dist/private/intl/tree/sr-SP.mjs
-var cj = {};
-cj = {
+var sj = {};
+sj = {
collapse: " Skupi",
expand: "Proširi"
};
// node_modules/react-aria/dist/private/intl/tree/sv-SE.mjs
-var lj = {};
-lj = {
+var cj = {};
+cj = {
collapse: "Dölj",
expand: "Expandera"
};
// node_modules/react-aria/dist/private/intl/tree/tr-TR.mjs
-var uj = {};
-uj = {
+var lj = {};
+lj = {
collapse: "Daralt",
expand: "Genişlet"
};
// node_modules/react-aria/dist/private/intl/tree/uk-UA.mjs
-var dj = {};
-dj = {
+var uj = {};
+uj = {
collapse: "Згорнути",
expand: "Розгорнути"
};
// node_modules/react-aria/dist/private/intl/tree/zh-CN.mjs
-var fj = {};
-fj = {
+var dj = {};
+dj = {
collapse: "折叠",
expand: "扩展"
};
// node_modules/react-aria/dist/private/intl/tree/zh-TW.mjs
-var pj = {};
-pj = {
+var fj = {};
+fj = {
collapse: "收合",
expand: "展開"
};
// node_modules/react-aria/dist/private/tree/intlStrings.mjs
-var mj = {};
-mj = {
- "ar-AE": PA,
- "bg-BG": FA,
- "cs-CZ": IA,
- "da-DK": LA,
- "de-DE": RA,
- "el-GR": zA,
- "en-US": BA,
- "es-ES": VA,
- "et-EE": HA,
- "fi-FI": UA,
- "fr-FR": WA,
- "he-IL": GA,
- "hr-HR": KA,
- "hu-HU": qA,
- "it-IT": JA,
- "ja-JP": YA,
- "ko-KR": XA,
- "lt-LT": ZA,
- "lv-LV": QA,
- "nb-NO": $A,
- "nl-NL": ej,
- "pl-PL": tj,
- "pt-BR": nj,
- "pt-PT": rj,
- "ro-RO": ij,
- "ru-RU": aj,
- "sk-SK": oj,
- "sl-SI": sj,
- "sr-SP": cj,
- "sv-SE": lj,
- "tr-TR": uj,
- "uk-UA": dj,
- "zh-CN": fj,
- "zh-TW": pj
+var pj = {};
+pj = {
+ "ar-AE": NA,
+ "bg-BG": PA,
+ "cs-CZ": FA,
+ "da-DK": IA,
+ "de-DE": LA,
+ "el-GR": RA,
+ "en-US": zA,
+ "es-ES": BA,
+ "et-EE": VA,
+ "fi-FI": HA,
+ "fr-FR": UA,
+ "he-IL": WA,
+ "hr-HR": GA,
+ "hu-HU": KA,
+ "it-IT": qA,
+ "ja-JP": JA,
+ "ko-KR": YA,
+ "lt-LT": XA,
+ "lv-LV": ZA,
+ "nb-NO": QA,
+ "nl-NL": $A,
+ "pl-PL": ej,
+ "pt-BR": tj,
+ "pt-PT": nj,
+ "ro-RO": rj,
+ "ru-RU": ij,
+ "sk-SK": aj,
+ "sl-SI": oj,
+ "sr-SP": sj,
+ "sv-SE": cj,
+ "tr-TR": lj,
+ "uk-UA": uj,
+ "zh-CN": dj,
+ "zh-TW": fj
};
// node_modules/react-aria/dist/private/tree/useTreeItem.mjs
-function ale(e) {
+function ole(e) {
return e && e.__esModule ? e.default : e;
}
-function hj(e, t, n) {
- let { node: r } = e, i = Wse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Hw(ale(mj), "@react-aria/tree"), s = {
+function mj(e, t, n) {
+ let { node: r } = e, i = Gse(e, t, n), a = i.rowProps["aria-expanded"] === !0, o = Vw(ole(pj), "@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,
- ...Aw({
+ ...kw({
"aria-label": a ? o.format("collapse") : o.format("expand"),
"aria-labelledby": i.rowProps.id
})
@@ -30741,15 +30741,15 @@ function hj(e, t, n) {
};
}
// src/react/components/selection-dock.tsx
-var gj = "(prefers-reduced-motion: reduce)", ole = () => matchMedia(gj).matches, sle = (e) => {
- let t = matchMedia(gj);
+var hj = "(prefers-reduced-motion: reduce)", sle = () => matchMedia(hj).matches, cle = (e) => {
+ let t = matchMedia(hj);
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
-}, _j = /* @__PURE__ */ new Map(), vj = () => {
+}, gj = /* @__PURE__ */ new Map(), _j = () => {
let e = document.documentElement;
- _j.size ? e.style.setProperty("--selection-dock-space", `${Math.max(..._j.values())}px`) : e.style.removeProperty("--selection-dock-space");
+ gj.size ? e.style.setProperty("--selection-dock-space", `${Math.max(...gj.values())}px`) : e.style.removeProperty("--selection-dock-space");
};
-function cle({ children: e, count: t, label: n }) {
- let r = (0, F.useRef)(null), i = Ox(), a = (0, F.useSyncExternalStore)(sle, ole, () => !1), { isFocusVisible: o } = DC(), s = a || o, c = {
+function lle({ children: e, count: t, label: n }) {
+ let r = (0, F.useRef)(null), i = Dx(), a = (0, F.useSyncExternalStore)(cle, sle, () => !1), { isFocusVisible: o } = EC(), s = a || o, c = {
opacity: 0,
transform: "translate(-50%, 8px)"
};
@@ -30757,12 +30757,12 @@ function cle({ children: e, count: t, label: n }) {
let e = r.current;
if (!e || !i) return;
let t = () => {
- _j.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), vj();
+ gj.set(e, Math.ceil(e.offsetHeight + (parseFloat(getComputedStyle(e).bottom) || 0) + 16)), _j();
}, n = new ResizeObserver(t);
return n.observe(e), window.addEventListener("resize", t), t(), () => {
- n.disconnect(), window.removeEventListener("resize", t), _j.delete(e), vj();
+ n.disconnect(), window.removeEventListener("resize", t), gj.delete(e), _j();
};
- }, [i]), /* @__PURE__ */ (0, I.jsxs)(pS.div, {
+ }, [i]), /* @__PURE__ */ (0, I.jsxs)(fS.div, {
ref: r,
role: "group",
"aria-label": n,
@@ -30795,17 +30795,17 @@ function cle({ children: e, count: t, label: n }) {
}), e]
});
}
-function yj({ visible: e, ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(jx, { children: e ? /* @__PURE__ */ (0, I.jsx)(cle, { ...t }, "selection") : null });
+function vj({ visible: e, ...t }) {
+ return /* @__PURE__ */ (0, I.jsx)(Ax, { children: e ? /* @__PURE__ */ (0, I.jsx)(lle, { ...t }, "selection") : null });
}
// src/react/batch-dock/batch-dock-api.ts
-var bj = {
+var yj = {
group: "clear",
operation: "clear",
label: "取消",
glyph: "x"
};
-function lle(e, t = !1) {
+function ule(e, t = !1) {
switch (e) {
case "trash": return [
{
@@ -30821,7 +30821,7 @@ function lle(e, t = !1) {
glyph: "trash",
danger: !0
},
- bj
+ yj
];
case "junk": return [
t ? {
@@ -30842,7 +30842,7 @@ function lle(e, t = !1) {
glyph: "trash",
danger: !0
},
- bj
+ yj
];
case "follow": return [
{
@@ -30863,7 +30863,7 @@ function lle(e, t = !1) {
label: "忽略",
glyph: "eye-off"
},
- bj
+ yj
];
default: return [
{
@@ -30897,38 +30897,38 @@ function lle(e, t = !1) {
glyph: "trash",
danger: !0
},
- bj
+ yj
];
}
}
// src/react/batch-dock/batch-dock-island.tsx
-var xj = null, Sj = {
+var bj = null, xj = {
count: 0,
context: "catalog",
junkDismissed: !1
-}, Cj = /* @__PURE__ */ new Set();
-function ule(e) {
- return Cj.add(e), () => {
- Cj.delete(e);
+}, Sj = /* @__PURE__ */ new Set();
+function dle(e) {
+ return Sj.add(e), () => {
+ Sj.delete(e);
};
}
-function dle() {
- for (let e of [...Cj]) e();
+function fle() {
+ for (let e of [...Sj]) e();
}
-var fle = { render(e) {
- Sj = e, (0, Rt.flushSync)(dle);
+var ple = { render(e) {
+ xj = e, (0, Rt.flushSync)(fle);
} };
-function ple(e) {
- return xj = e, fle;
+function mle(e) {
+ return bj = e, ple;
}
-function mle() {
- let e = (0, F.useSyncExternalStore)(ule, () => Sj);
- return xj ? /* @__PURE__ */ (0, I.jsx)(hle, {
- host: xj,
+function hle() {
+ let e = (0, F.useSyncExternalStore)(dle, () => xj);
+ return bj ? /* @__PURE__ */ (0, I.jsx)(gle, {
+ host: bj,
props: e
}) : null;
}
-function hle({ host: e, props: t }) {
+function gle({ host: e, props: t }) {
let n = t.count > 0;
return (0, F.useLayoutEffect)(() => {
document.body.toggleAttribute("data-batch-dock-open", n);
@@ -30938,11 +30938,11 @@ function hle({ host: e, props: t }) {
className: "peach-react",
"data-batch-scope": "",
"data-context": t.context,
- children: /* @__PURE__ */ (0, I.jsx)(yj, {
+ children: /* @__PURE__ */ (0, I.jsx)(vj, {
label: "所选项目操作",
visible: t.count > 0,
count: `已选 ${t.count.toLocaleString()} 项`,
- children: lle(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: ule(t.context, t.junkDismissed).map((t) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-batch-group": t.group,
"data-batch-action": t.operation,
@@ -30958,11 +30958,11 @@ function hle({ host: e, props: t }) {
});
}
// src/number-setting.ts
-function wj(e, t, n, r) {
+function Cj(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
// src/settings-store.ts
-function gle(e, t) {
+function _le(e, t) {
let n = /* @__PURE__ */ new Set(), r = 0, i = () => {
r += 1, n.forEach((e) => e());
};
@@ -30981,7 +30981,7 @@ function gle(e, t) {
};
}
// src/sort-preferences.ts
-var Tj = [
+var wj = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -30990,7 +30990,7 @@ var Tj = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Ej = ["release", "发行时间"], Dj = [...Tj, Ej].map(([e]) => e), Oj = {
+], Tj = ["release", "发行时间"], Ej = [...wj, Tj].map(([e]) => e), Dj = {
rating: ["从高到低", "从低到高"],
o: ["从多到少", "从少到多"],
plays: ["从多到少", "从少到多"],
@@ -30999,43 +30999,43 @@ var Tj = [
new: ["从新到旧", "从旧到新"],
played: ["从近到远", "从远到近"],
release: ["从新到旧", "从旧到新"]
-}, kj = {
+}, Oj = {
big: ["size", "desc"],
short: ["dur", "asc"],
long: ["dur", "desc"]
-}, Aj = (e, t, n = Oj) => (n[e] || [])[+(t === "asc")] || "", jj = (e, t = Oj) => t[e] ? "desc" : "";
-function Mj(e, t, n, r = Oj) {
+}, kj = (e, t, n = Dj) => (n[e] || [])[+(t === "asc")] || "", Aj = (e, t = Dj) => t[e] ? "desc" : "";
+function jj(e, t, n, r = Dj) {
return e === t ? r[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
sort: e,
- dir: jj(e, r)
+ dir: Aj(e, r)
};
}
-function Nj(e, t, n) {
+function Mj(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
-function Pj(e, t, n, r, i = n) {
- let a = e ? kj[e] : void 0, o = a ? a[0] : e, s = o && Dj.includes(o) ? o : i;
- return Oj[s] ? {
+function Nj(e, t, n, r, i = n) {
+ let a = e ? Oj[e] : void 0, o = a ? a[0] : e, s = o && Ej.includes(o) ? o : i;
+ return Dj[s] ? {
sort: s,
- dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Nj(s, n, r)
+ dir: t === "asc" || t === "desc" ? t : a ? a[1] : e ? "desc" : Mj(s, n, r)
} : {
sort: s,
dir: ""
};
}
// src/appearance/home-glow.ts
-var Fj = [
+var Pj = [
"spot1",
"spot2",
"spot3"
-], _le = [
+], vle = [
"光晕一",
"光晕二",
"光晕三"
-], Ij = "native", Lj = [
+], Fj = "native", Ij = [
[
"ash",
"灰雾",
@@ -31341,7 +31341,7 @@ var Fj = [
"rose"
],
[
- Ij,
+ Fj,
"玻璃原色",
{
spot1: {
@@ -31359,7 +31359,7 @@ var Fj = [
},
"blue"
]
-], Rj = (e) => e === Ij, zj = [...Lj.map(([e, t]) => [e, t]), ["custom", "自定义"]], vle = (e) => (zj.find(([t]) => t === e) || zj[0])[1], Bj = (e) => structuredClone((Lj.find(([t]) => t === e) || Lj[0])[2]), Vj = [
+], Lj = (e) => e === Fj, Rj = [...Ij.map(([e, t]) => [e, t]), ["custom", "自定义"]], yle = (e) => (Rj.find(([t]) => t === e) || Rj[0])[1], zj = (e) => structuredClone((Ij.find(([t]) => t === e) || Ij[0])[2]), Bj = [
["red", "红"],
["orange", "橙"],
["amber", "琥珀"],
@@ -31372,7 +31372,7 @@ var Fj = [
["violet", "紫罗兰"],
["fuchsia", "品红"],
["rose", "玫红"]
-], Hj = "blue", Uj = (e) => Vj.some(([t]) => t === e) ? e : Hj, yle = (e) => (Lj.find(([t]) => t === e) || [])[3] || "blue", ble = [
+], Vj = "blue", Hj = (e) => Bj.some(([t]) => t === e) ? e : Vj, ble = (e) => (Ij.find(([t]) => t === e) || [])[3] || "blue", xle = [
["all", "全部"],
["gray", "灰"],
["red", "红"],
@@ -31382,7 +31382,7 @@ var Fj = [
["blue", "蓝"],
["purple", "紫"],
["brown", "棕"]
-], xle = [
+], Sle = [
[
"gray",
"云灰",
@@ -31778,11 +31778,11 @@ var Fj = [
"霁蓝",
"#6686b8"
]
-], Wj = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, Gj = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, Sle = (e, t) => `rgba(${[
+], Uj = (e, t, n, r) => Number.isInteger(e) && e >= t && e <= n ? e : r, Wj = (e, t) => /^#[0-9a-f]{6}$/i.test(String(e)) ? String(e).toLowerCase() : t, Cle = (e, t) => `rgba(${[
1,
3,
5
-].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, Cle = {
+].map((t) => parseInt(e.slice(t, t + 2), 16)).join(",")},${(t / 100).toFixed(2)})`, wle = {
strength: [
0,
100,
@@ -31808,7 +31808,7 @@ var Fj = [
100,
50
]
-}, Kj = {
+}, Gj = {
on: !0,
preset: "ash",
strength: 100,
@@ -31816,56 +31816,56 @@ var Fj = [
speed: 100,
soften: 50,
size: 50,
- ...Bj("ash")
+ ...zj("ash")
};
-function qj(e) {
- let t = e && typeof e == "object" ? e : {}, n = zj.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = Bj(r === "custom" ? "ash" : r), a = {
+function Kj(e) {
+ let t = e && typeof e == "object" ? e : {}, n = Rj.some(([e]) => e === t.preset), r = n ? t.preset : "ash", i = zj(r === "custom" ? "ash" : r), a = {
on: t.on !== !1,
preset: r
};
- for (let [e, [n, r, i]] of Object.entries(Cle)) a[e] = Wj(+t[e], n, r, i);
- for (let e of Fj) {
+ for (let [e, [n, r, i]] of Object.entries(wle)) a[e] = Uj(+t[e], n, r, i);
+ for (let e of Pj) {
let r = n && t[e] && typeof t[e] == "object" ? t[e] : {}, o = i[e];
a[e] = {
- color: Gj(r.color, o.color),
- alpha: Wj(+r.alpha, 0, 100, o.alpha)
+ color: Wj(r.color, o.color),
+ alpha: Uj(+r.alpha, 0, 100, o.alpha)
};
}
return a;
}
-var wle = (e) => `conic-gradient(from -90deg,${e.map((t, n) => `${t} ${(n * 100 / e.length).toFixed(3)}% ${((n + 1) * 100 / e.length).toFixed(3)}%`).join(",")})`, Jj = /* @__PURE__ */ new WeakMap();
-function Tle(e, t) {
+var Tle = (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 Ele(e, t) {
if (!e) return;
- let n = Jj.get(e);
- n || (n = /* @__PURE__ */ new Map(), Jj.set(e, n));
- let r = t.on && !Rj(t.preset), i = (t, r) => {
+ let n = qj.get(e);
+ n || (n = /* @__PURE__ */ new Map(), qj.set(e, n));
+ let r = t.on && !Lj(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"), Fj.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"), Pj.forEach((e, n) => {
let r = t[e];
- i(`--glow-spot-${n + 1}-color`, Sle(r.color, r.alpha));
+ i(`--glow-spot-${n + 1}-color`, Cle(r.color, r.alpha));
});
}
-function Ele(e, t) {
+function Dle(e, t) {
if (!e) return;
- let n = !t.on || Rj(t.preset);
+ let n = !t.on || Lj(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 Dle = "peach.settings.v1", Ole = [
+var Ole = "peach.settings.v1", kle = [
"system",
"light",
"dark"
-], Yj = [
+], Jj = [
0,
7,
30,
90
-], kle = [
+], Ale = [
"feedHideGroupCompilations",
"feedHideSoloCompilations",
"feedHideExcerpts"
-], Xj = {
+], Yj = {
batchSize: 60,
defaultSort: "seed",
sortDefaultsVersion: 3,
@@ -31885,57 +31885,57 @@ var Dle = "peach.settings.v1", Ole = [
theaterMode: !1,
theme: "system",
groupCollapse: !0,
- sidebarOrder: [...Vl],
- homeGlow: Kj,
- accent: Hj,
+ sidebarOrder: [...Bl],
+ homeGlow: Gj,
+ accent: Vj,
performerNameLanguage: "zh-CN"
-}, Zj = (e, t, n) => t.includes(e) ? e : n;
-function Ale(e) {
+}, Xj = (e, t, n) => t.includes(e) ? e : n;
+function jle(e) {
let t = e && typeof e == "object" ? e : {}, n = {
- ...Xj,
+ ...Yj,
...t
};
- n.followInitialDays = Yj.includes(+n.followInitialDays) ? +n.followInitialDays : 30, delete n.rotateMinutes;
+ n.followInitialDays = Jj.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 = kj[n.defaultSort];
- return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = wj(+n.batchSize, 1, 200, 60), n.defaultSort = Zj(n.defaultSort, Dj, "seed"), n.hoverDelaySeconds = wj(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = wj(+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 = wj(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = wj(+n.relatedLimit, 0, 60, 20), n.feedLimit = wj(+n.feedLimit, 1, 100, 12), Object.assign(n, eo(n)), n.theme = Zj(n.theme, Ole, "system"), n.performerNameLanguage = Zj(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = qj(n.homeGlow), n.accent = Uj(n.accent), n.sidebarOrder = Gl(n.sidebarOrder), {
+ let a = Oj[n.defaultSort];
+ return i < 3 && a && (n.defaultSort = a[0], r = !0), n.sortDefaultsVersion = 3, n.batchSize = Cj(+n.batchSize, 1, 200, 60), n.defaultSort = Xj(n.defaultSort, Ej, "seed"), n.hoverDelaySeconds = Cj(+n.hoverDelaySeconds, 0, 60, 5), n.seekSeconds = Cj(+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 = Cj(+n.searchHistoryLimit, 0, 50, 10), n.relatedLimit = Cj(+n.relatedLimit, 0, 60, 20), n.feedLimit = Cj(+n.feedLimit, 1, 100, 12), Object.assign(n, $a(n)), n.theme = Xj(n.theme, kle, "system"), n.performerNameLanguage = Xj(n.performerNameLanguage, ["zh-CN", "ja"], "zh-CN"), n.homeGlow = Kj(n.homeGlow), n.accent = Hj(n.accent), n.sidebarOrder = Wl(n.sidebarOrder), {
settings: n,
migrated: r
};
}
-function jle(e) {
+function Mle(e) {
let t = {};
try {
t = JSON.parse(e.getItem("peach.settings.v1") || "{}");
} catch {}
- return Ale(t);
+ return jle(t);
}
-var Qj = null;
-function $j() {
- if (Qj) return Qj;
- let { settings: e, migrated: t } = jle(localStorage);
- return Qj = gle(Dle, e), t && Qj.save(), Qj;
+var Zj = null;
+function Qj() {
+ if (Zj) return Zj;
+ let { settings: e, migrated: t } = Mle(localStorage);
+ return Zj = _le(Ole, e), t && Zj.save(), Zj;
}
-function eM(e, t, n = $j()) {
+function $j(e, t, n = Qj()) {
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;
- Yj.includes(a) && (r.followInitialDays = a, n.save());
- for (let t of kle) typeof e?.[t] == "boolean" && e[t] !== r[t] && (r[t] = e[t], n.save());
+ Jj.includes(a) && (r.followInitialDays = a, n.save());
+ for (let t of Ale) 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 = wj(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== Xj.searchHistoryLimit && Mle(n);
+ Number.isInteger(o) && o >= 0 && o <= 50 ? o !== r.searchHistoryLimit && (r.searchHistoryLimit = Cj(o, 0, 50, 10), n.save(), t("searchHistoryLimit")) : e && e.searchHistoryLimit === null && r.searchHistoryLimit !== Yj.searchHistoryLimit && Nle(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 Mle(e = $j()) {
+function Nle(e = Qj()) {
return Tn("/api/settings", {
method: "POST",
body: JSON.stringify({ searchHistoryLimit: e.value.searchHistoryLimit })
}).catch(() => {});
}
// src/appearance/theme.ts
-var Nle = [
+var Ple = [
[
"system",
"跟随系统",
@@ -31951,31 +31951,31 @@ var Nle = [
"深色",
"moon"
]
-], Ple = null, tM = () => Ple ??= matchMedia("(prefers-color-scheme: dark)"), nM = null;
-function Fle() {
- return nM || (nM = document.createElement("style"), nM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), nM.isConnected || document.head.append(nM), () => {
+], Fle = null, eM = () => Fle ??= matchMedia("(prefers-color-scheme: dark)"), tM = null;
+function Ile() {
+ return tM || (tM = document.createElement("style"), tM.textContent = "*:not(.board-theme-thumb),*::before,*::after{transition:none!important}"), tM.isConnected || document.head.append(tM), () => {
getComputedStyle(document.documentElement).opacity;
let e = () => {
- cancelAnimationFrame(t), clearTimeout(n), nM?.remove();
+ cancelAnimationFrame(t), clearTimeout(n), tM?.remove();
}, t = requestAnimationFrame(e), n = setTimeout(e, 100);
};
}
-function rM(e = $j().value.theme) {
- let t = Fle(), n = document.documentElement;
+function nM(e = Qj().value.theme) {
+ let t = Ile(), n = document.documentElement;
e === "system" ? delete n.dataset.theme : n.dataset.theme = e;
- let r = e === "dark" || e === "system" && tM().matches;
+ let r = e === "dark" || e === "system" && eM().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 iM = !1;
-function Ile() {
- iM || (iM = !0, tM().addEventListener("change", () => {
- $j().value.theme === "system" && rM();
+var rM = !1;
+function Lle() {
+ rM || (rM = !0, eM().addEventListener("change", () => {
+ Qj().value.theme === "system" && nM();
}));
}
// src/appearance/layout.ts
-var aM = [[
+var iM = [[
"big",
"大图",
"maximize"
@@ -31983,7 +31983,7 @@ var aM = [[
"small",
"小图",
"layout-grid"
-]], oM = [[
+]], aM = [[
"big",
"大图",
"maximize"
@@ -31991,7 +31991,7 @@ var aM = [[
"small",
"小图",
"layout-grid"
-]], sM = [[
+]], oM = [[
"fixed",
"固定比例",
"layout-grid"
@@ -31999,127 +31999,127 @@ var aM = [[
"masonry",
"瀑布流",
"columns-2"
-]], cM = .75, lM = () => $j().value, uM = (e = lM()) => $a(e.javLayout), Lle = (e = lM()) => $a(e.homeLayout), dM = (e, t = lM()) => e ? Lle(t) : uM(t), fM = oM.map(([e]) => e), pM = sM.map(([e]) => e), mM = (e = lM()) => Zj(e.photoSize, fM, "small"), hM = (e = lM()) => Zj(e.photoLayout, pM, "masonry"), gM = null;
-function _M(e, t = lM()) {
+]], sM = .75, cM = () => Qj().value, lM = (e = cM()) => Qa(e.javLayout), Rle = (e = cM()) => Qa(e.homeLayout), uM = (e, t = cM()) => e ? Rle(t) : lM(t), dM = aM.map(([e]) => e), fM = oM.map(([e]) => e), pM = (e = cM()) => Xj(e.photoSize, dM, "small"), mM = (e = cM()) => Xj(e.photoLayout, fM, "masonry"), hM = null;
+function gM(e, t = cM()) {
let n = {
active: e.active,
- size: dM(e.home, t),
+ size: uM(e.home, t),
portrait: e.portrait,
javImage: t.javImage
- }, r = gM;
- return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (gM = n), gM;
+ }, r = hM;
+ return (!r || Object.keys(n).some((e) => n[e] !== r[e])) && (hM = n), hM;
}
-function vM(e) {
- return e.portrait ? 9 / 16 : e.active && e.size === "big" ? cM : 16 / 9;
+function _M(e) {
+ return e.portrait ? 9 / 16 : e.active && e.size === "big" ? sM : 16 / 9;
}
-function Rle(e, t = $j()) {
- t.value.homeLayout = $a(e), t.save();
+function zle(e, t = Qj()) {
+ t.value.homeLayout = Qa(e), t.save();
}
-function yM(e, t = $j()) {
- t.value.javLayout = $a(e), t.save();
+function vM(e, t = Qj()) {
+ t.value.javLayout = Qa(e), t.save();
}
-function zle(e, t = $j()) {
- t.value.homeLayout = t.value.javLayout = $a(e), t.save();
+function Ble(e, t = Qj()) {
+ t.value.homeLayout = t.value.javLayout = Qa(e), t.save();
}
-function Ble(e, t = $j()) {
- t.value.photoSize = Zj(e, fM, "small"), t.save();
+function Vle(e, t = Qj()) {
+ t.value.photoSize = Xj(e, dM, "small"), t.save();
}
-function bM(e, t = $j()) {
- t.value.photoLayout = Zj(e, pM, "masonry"), t.save();
+function yM(e, t = Qj()) {
+ t.value.photoLayout = Xj(e, fM, "masonry"), t.save();
}
// src/appearance/density.ts
-var xM = "density", SM = {
+var bM = "density", xM = {
big: "336px",
dense: "168px"
-}, CM = () => localStorage.getItem(xM) === "dense" ? "dense" : "big";
-function wM(e, t) {
- let [n, r] = oM;
- if (e.querySelector("[data-icon-swap]")) Js(e, t === r[0] ? "b" : "a");
+}, SM = () => localStorage.getItem(bM) === "dense" ? "dense" : "big";
+function CM(e, t) {
+ let [n, r] = aM;
+ if (e.querySelector("[data-icon-swap]")) qs(e, t === r[0] ? "b" : "a");
else {
let i = e.querySelector(":scope > [data-glass-drift]");
- e.innerHTML = qs(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);
+ e.innerHTML = Ks(n[2], r[2], t === r[0] ? "b" : "a"), i && e.append(i);
}
- TM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
+ wM(e, "aria-label", t === "big" ? "切换为小图" : "切换为大图");
}
-function TM(e, t, n) {
+function wM(e, t, n) {
e.getAttribute(t) !== n && e.setAttribute(t, n);
}
-var EM = () => document.querySelector("#density");
-function DM(e = CM()) {
+var TM = () => document.querySelector("#density");
+function EM(e = SM()) {
let t = document.documentElement;
- t.style.getPropertyValue("--tile") !== SM[e] && t.style.setProperty("--tile", SM[e]), TM(document.body, "data-density", e);
- let n = EM();
- n && (TM(n, "aria-pressed", String(e === "dense")), TM(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), wM(n, e === "big" ? "big" : "small"));
+ t.style.getPropertyValue("--tile") !== xM[e] && t.style.setProperty("--tile", xM[e]), wM(document.body, "data-density", e);
+ let n = TM();
+ n && (wM(n, "aria-pressed", String(e === "dense")), wM(n, "title", "当前:" + (e === "big" ? "大图" : "密集")), CM(n, e === "big" ? "big" : "small"));
}
-function Vle() {
- let e = CM() === "big" ? "dense" : "big";
- localStorage.setItem(xM, e), DM(e);
+function Hle() {
+ let e = SM() === "big" ? "dense" : "big";
+ localStorage.setItem(bM, e), EM(e);
}
-function Hle(e) {
- let t = EM();
- t && (TM(t, "aria-pressed", String(e === "small")), TM(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), wM(t, e));
+function Ule(e) {
+ let t = TM();
+ t && (wM(t, "aria-pressed", String(e === "small")), wM(t, "title", "当前:" + (e === "big" ? "大图" : "小图")), CM(t, e));
}
// src/appearance/glow.ts
-function OM(e = $j()) {
- Tle(document.querySelector(".glowlayer"), e.value.homeGlow);
+function DM(e = Qj()) {
+ Ele(document.querySelector(".glowlayer"), e.value.homeGlow);
}
-var kM = 0;
-function AM(e = $j()) {
- kM ||= requestAnimationFrame(() => {
- kM = 0, OM(e);
+var OM = 0;
+function kM(e = Qj()) {
+ OM ||= requestAnimationFrame(() => {
+ OM = 0, DM(e);
});
}
-function jM(e = $j()) {
- Ele(document.documentElement, e.value.homeGlow);
+function AM(e = Qj()) {
+ Dle(document.documentElement, e.value.homeGlow);
}
-function MM(e = $j()) {
+function jM(e = Qj()) {
document.documentElement.dataset.accent = e.value.accent;
}
-var NM = (e, t, n) => ({
+var MM = (e, t, n) => ({
key: e,
label: t,
- native: Rj(e),
- fill: Rj(e) ? "" : wle(n)
+ native: Lj(e),
+ fill: Lj(e) ? "" : Tle(n)
});
-function Ule(e) {
- let t = Lj.map(([e, t, n]) => NM(e, t, Fj.map((e) => n[e].color)));
- return e.preset === "custom" && t.push(NM("custom", "自定义", Fj.map((t) => e[t].color))), t;
+function Wle(e) {
+ let t = Ij.map(([e, t, n]) => MM(e, t, Pj.map((e) => n[e].color)));
+ return e.preset === "custom" && t.push(MM("custom", "自定义", Pj.map((t) => e[t].color))), t;
}
-var Wle = Vj;
-function Gle(e, t = $j()) {
+var Gle = Bj;
+function Kle(e, t = Qj()) {
if (e === "custom") return;
let n = t.value.homeGlow;
- n.preset = e, Object.assign(n, Bj(e)), t.value.accent = yle(e), t.save(), AM(t), jM(t), MM(t);
+ n.preset = e, Object.assign(n, zj(e)), t.value.accent = ble(e), t.save(), kM(t), AM(t), jM(t);
}
-function Kle(e, t = $j()) {
- t.value.accent = Uj(e), t.save(), MM(t);
+function qle(e, t = Qj()) {
+ t.value.accent = Hj(e), t.save(), jM(t);
}
-function qle(e = $j()) {
+function Jle(e = Qj()) {
let t = e.value.homeGlow;
- t.preset = Kj.preset, Object.assign(t, Bj(t.preset)), e.value.accent = Hj, e.save(), AM(e), jM(e), MM(e);
+ t.preset = Gj.preset, Object.assign(t, zj(t.preset)), e.value.accent = Vj, e.save(), kM(e), AM(e), jM(e);
}
-function PM(e, t) {
- e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Rj(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
+function NM(e, t) {
+ e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Lj(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
}
-function Jle(e, t = $j()) {
- return PM(e, t.value.homeGlow), t.subscribe(() => PM(e, t.value.homeGlow));
+function Yle(e, t = Qj()) {
+ return NM(e, t.value.homeGlow), t.subscribe(() => NM(e, t.value.homeGlow));
}
// src/react/components/glow-preset-grid.tsx
-function FM({ store: e, label: t, hidden: n }) {
+function PM({ 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: Ule(r).map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Wle(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: () => Gle(t.key, e),
+ onClick: () => Kle(t.key, e),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32130,14 +32130,14 @@ function FM({ store: e, label: t, hidden: n }) {
});
}
// src/react/glow-picker/glow-picker-island.tsx
-var IM = null;
-function Yle(e) {
- IM = e;
+var FM = null;
+function Xle(e) {
+ FM = e;
}
-function Xle() {
- return IM ? /* @__PURE__ */ (0, I.jsx)(Zle, { host: IM }) : null;
+function Zle() {
+ return FM ? /* @__PURE__ */ (0, I.jsx)(Qle, { host: FM }) : null;
}
-function Zle({ host: e }) {
+function Qle({ host: e }) {
let { store: t } = e;
(0, F.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@ -32149,11 +32149,11 @@ function Zle({ host: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "光晕" }), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-preset-reset": "",
- onClick: () => qle(t),
+ onClick: () => Jle(t),
children: "重置"
})]
}),
- /* @__PURE__ */ (0, I.jsx)(FM, {
+ /* @__PURE__ */ (0, I.jsx)(PM, {
store: t,
label: "光晕",
hidden: !n.on
@@ -32167,14 +32167,14 @@ function Zle({ host: e }) {
"data-accent-grid": "",
role: "group",
"aria-label": "强调色",
- children: Wle.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Gle.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: () => Kle(e, t),
+ onClick: () => qle(e, t),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32192,31 +32192,31 @@ function Zle({ host: e }) {
] });
}
// src/player/host.ts
-var LM = null;
-function Qle(e) {
- LM = e;
+var IM = null;
+function $le(e) {
+ IM = e;
}
-function RM() {
- if (!LM) throw Error("播放器还没有接上宿主(configurePlayer)");
- return LM;
+function LM() {
+ if (!IM) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return IM;
}
// src/player/menu.ts
-var zM = null;
-function $le(e) {
- zM = e;
+var RM = null;
+function eue(e) {
+ RM = e;
}
-function eue() {
+function tue() {
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 BM = null, VM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function HM() {
+var zM = null, BM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function VM() {
let e = document.getElementById("playerMenu");
- e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && us(e, () => {
+ e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && ls(e, () => {
e.innerHTML = "";
- }), BM &&= (BM(), null);
+ }), zM &&= (zM(), null);
}
-async function tue(e) {
+async function nue(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -32229,8 +32229,8 @@ async function tue(e) {
return t.remove(), n;
}
}
-function nue(e) {
- let t = !!zM?.inMiniplayer(e), n = e.peachItem, r = zM?.kind(e) ?? "item", i = (t) => {
+function rue(e) {
+ let t = !!RM?.inMiniplayer(e), n = e.peachItem, r = RM?.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);
@@ -32246,7 +32246,7 @@ function nue(e) {
}
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- tue(i(e)).then((e) => RM().toast(e ? t : "复制失败,请手动复制地址栏", {
+ nue(i(e)).then((e) => LM().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -32258,11 +32258,11 @@ function nue(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => zM?.expand()
+ run: () => RM?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => zM?.toMiniplayer()
+ run: () => RM?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -32285,29 +32285,29 @@ function nue(e) {
run: () => s.click()
}), o;
}
-function rue(e, t, n) {
- let r = eue();
- HM();
- let i = RM().stage();
+function iue(e, t, n) {
+ let r = tue();
+ VM();
+ let i = LM().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = nue(e);
+ let a = rue(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}">${VM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? VM(R("check"), "data-player-menu-check") : ""}</button>`;
- }).join(""), ls(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`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${BM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? BM(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)];
- HM(), n?.run();
+ VM(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || HM();
+ r.contains(e.target) || VM();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), HM();
+ e.preventDefault(), e.stopPropagation(), VM();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -32315,49 +32315,49 @@ function rue(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- fs(t, e.el()) && HM();
+ ds(t, e.el()) && VM();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), BM = () => {
+ }, 0), zM = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function iue(e) {
+function aue(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), rue(e, t.clientX, t.clientY));
- }), e.on("dispose", HM);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), iue(e, t.clientX, t.clientY));
+ }), e.on("dispose", VM);
}
// src/player/registry.ts
-var UM = null, WM = () => UM;
-function GM(e) {
- UM = e;
+var oue = null, HM = () => oue;
+function UM(e) {
+ oue = e;
}
-function KM(e) {
+function WM(e) {
e && !e.isDisposed() && requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
// src/player/stats.ts
-function qM(e) {
+function GM(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 aue(e) {
+function sue(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 JM = 3e3;
-function YM(e, t) {
+var KM = 3e3;
+function qM(e, t) {
let n = Number(e) || 0, r = qn(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function oue(e) {
+function cue(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -32372,10 +32372,10 @@ function oue(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = aue(e), s = e.currentTime || 0;
+ let a = performance.now(), o = sue(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 > JM * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > KM * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -32384,55 +32384,55 @@ function oue(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > JM;) t.shift();
+ }); t.length > 2 && a - t[0].at > KM;) 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 XM = 24;
-function ZM(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > XM && e.splice(0, e.length - XM);
+var JM = 24;
+function YM(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > JM && e.splice(0, e.length - JM);
}
-var QM = "peach-player-panel";
-function $M(e, t, n, r) {
- let i = [...Array(Math.max(0, XM - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var XM = "peach-player-panel";
+function ZM(e, t, n, r) {
+ let i = [...Array(Math.max(0, JM - 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 sue() {
+function lue() {
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 eN(e, t = "") {
+function QM(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 tN(e, t = "") {
- let n = eN(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 $M(e, t = "") {
+ let n = QM(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 nN(e, t, n = "", r = null) {
+function eN(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.bandwidth?.()) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : tN(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : $M(t, n);
}
-function rN(e) {
+function tN(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 cue(e, t) {
- return e > 0 ? rN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : rN(0);
+function uue(e, t) {
+ return e > 0 ? tN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : tN(0);
}
// src/player/subtitle-style.ts
-var iN = {
+var nN = {
font: {
label: "字体",
values: [
@@ -32535,7 +32535,7 @@ var iN = {
["shadow", "阴影"]
]
}
-}, aN = {
+}, rN = {
font: "sans",
size: "100",
color: "white",
@@ -32545,7 +32545,7 @@ var iN = {
window: "black",
windowOpacity: "0",
edge: "shadow"
-}, oN = "peach.caption-style.v1", lue = {
+}, iN = "peach.caption-style.v1", due = {
white: "255,255,255",
yellow: "255,255,0",
green: "0,255,0",
@@ -32554,7 +32554,7 @@ var iN = {
magenta: "255,0,255",
red: "255,0,0",
black: "0,0,0"
-}, uue = {
+}, fue = {
sans: "Arial,sans-serif",
mono: "Consolas,monospace",
serif: "Georgia,serif",
@@ -32562,28 +32562,28 @@ var iN = {
casual: "\"Comic Sans MS\",sans-serif",
cursive: "cursive",
"small-caps": "Arial,sans-serif"
-}, due = {
+}, pue = {
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 fue() {
+function mue() {
let e = {};
try {
- e = JSON.parse(localStorage.getItem(oN) || "{}") || {};
+ e = JSON.parse(localStorage.getItem(iN) || "{}") || {};
} catch {}
- return Object.fromEntries(Object.entries(aN).map(([t, n]) => [t, iN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
+ return Object.fromEntries(Object.entries(rN).map(([t, n]) => [t, nN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
}
-function sN(e, t, n, r) {
- let i = fue(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
+function aN(e, t, n, r) {
+ let i = mue(), 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(${lue[e]},${Number(t) / 100})`;
- e.style.setProperty("--peach-caption-font", uue[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", due[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
+ let t = (e, t) => `rgba(${due[e]},${Number(t) / 100})`;
+ e.style.setProperty("--peach-caption-font", fue[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", pue[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 || [])) {
@@ -32599,15 +32599,15 @@ function sN(e, t, n, r) {
if (!n.aborted) {
if (e.caption_style) {
let t = {
- ...aN,
+ ...rN,
...e.caption_style
};
- for (let e of Object.keys(aN)) a.has(e) || (i[e] = t[e]);
+ for (let e of Object.keys(rN)) a.has(e) || (i[e] = t[e]);
c();
} else {
let e = !1;
try {
- e = !!localStorage.getItem(oN);
+ e = !!localStorage.getItem(iN);
} catch {}
e && !a.size && r.save({ caption_style: i }).catch(() => {});
}
@@ -32615,18 +32615,18 @@ function sN(e, t, n, r) {
}), {
current: () => i,
set(e, t) {
- iN[e].values.some(([e]) => e === t) && (a.add(e), i = {
+ nN[e].values.some(([e]) => e === t) && (a.add(e), i = {
...i,
[e]: t
}, c(), r?.save({ caption_style: { [e]: t } }).catch(() => {}));
},
reset() {
- Object.keys(aN).forEach((e) => a.add(e)), i = { ...aN }, c(), r?.save({ caption_style: i }).catch(() => {});
+ Object.keys(rN).forEach((e) => a.add(e)), i = { ...rN }, c(), r?.save({ caption_style: i }).catch(() => {});
}
};
}
// src/player/memory.ts
-var cN = /* @__PURE__ */ new Map(), lN = /* @__PURE__ */ new WeakMap(), pue = class {
+var oN = /* @__PURE__ */ new Map(), sN = /* @__PURE__ */ new WeakMap(), hue = class {
cleanup = new AbortController();
reading;
listeners = /* @__PURE__ */ new Set();
@@ -32654,7 +32654,7 @@ var cN = /* @__PURE__ */ new Map(), lN = /* @__PURE__ */ new WeakMap(), pue = cl
}
load() {
return this.url ? this.reading ||= (async () => {
- await cN.get(this.url)?.catch(() => {});
+ await oN.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) => {
@@ -32666,7 +32666,7 @@ var cN = /* @__PURE__ */ new Map(), lN = /* @__PURE__ */ new WeakMap(), pue = cl
}
save(e) {
if (!this.url) return Promise.resolve();
- let t = (cN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
+ let t = (oN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
let t = {
...this.unsaved,
...e,
@@ -32693,8 +32693,8 @@ var cN = /* @__PURE__ */ new Map(), lN = /* @__PURE__ */ new WeakMap(), pue = cl
this.changed();
}
});
- return cN.set(this.url, t), t.finally(() => {
- cN.get(this.url) === t && cN.delete(this.url);
+ return oN.set(this.url, t), t.finally(() => {
+ oN.get(this.url) === t && oN.delete(this.url);
}).catch(() => {}), t;
}
async retry() {
@@ -32703,12 +32703,12 @@ var cN = /* @__PURE__ */ new Map(), lN = /* @__PURE__ */ new WeakMap(), pue = cl
} catch {}
}
};
-function uN(e) {
- let t = lN.get(e);
- return t || (t = new pue(e), lN.set(e, t)), t;
+function cN(e) {
+ let t = sN.get(e);
+ return t || (t = new hue(e), sN.set(e, t)), t;
}
-function dN(e, t) {
- let n = uN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
+function lN(e, t) {
+ let n = cN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
t.defaultPlaybackRate = r, Number(e.playbackRate()) !== r && e.playbackRate(r);
};
return n.restore((t) => {
@@ -32721,7 +32721,7 @@ function dN(e, t) {
};
}
// src/player/subtitle-memory.ts
-var fN = class {
+var uN = class {
player;
video;
changed;
@@ -32732,7 +32732,7 @@ var fN = class {
ready;
error = "";
constructor(e, t, n = () => {}) {
- this.player = e, this.video = t, this.changed = n, this.memory = uN(e);
+ this.player = e, this.video = t, this.changed = n, this.memory = cN(e);
let r = this.cleanup.signal;
t.textTracks.addEventListener("addtrack", () => {
this.apply(), this.changed();
@@ -32829,7 +32829,7 @@ var fN = class {
throw a.remove(), URL.revokeObjectURL(i), e;
}
}
-}, pN = () => "<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>", mue = class {
+}, dN = () => "<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>", gue = class {
player;
video;
panels;
@@ -32848,7 +32848,7 @@ var fN = class {
more = !1;
searched = !1;
constructor(e, t, n) {
- this.player = e, this.video = t, this.panels = n, this.styles = sN(e.el(), t, this.cleanup.signal, uN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = pN(), this.cc.onclick = () => {
+ this.player = e, this.video = t, this.panels = n, this.styles = aN(e.el(), t, this.cleanup.signal, cN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = dN(), 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", () => {
@@ -32858,7 +32858,7 @@ var fN = class {
this.sync(), this.page === "tracks" && this.show(0);
}, { signal: this.cleanup.signal }), e.on("dispose", () => {
this.hide(), this.cleanup.abort();
- }), this.session = new fN(e, t, () => {
+ }), this.session = new uN(e, t, () => {
this.sync(), this.page === "tracks" && this.show(0);
}), this.sync();
}
@@ -32906,7 +32906,7 @@ var fN = 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(iN).map(([e, n]) => {
+ let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(nN).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);
@@ -32918,7 +32918,7 @@ var fN = class {
}
styleOptions(e) {
this.page = "style";
- let t = iN[e];
+ let t = nN[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>`;
@@ -32930,7 +32930,7 @@ var fN = class {
}
status(e, t = !1, n = !1) {
let r = this.player.el().querySelector(".vjs-peach-panel:not(.vjs-peach-panel-leaving) [data-subtitle-status]");
- r && (r.hidden = !1, r.innerHTML = `${n ? Vs("") : ""}<span>${z(e)}</span>`, r.toggleAttribute("data-error", t));
+ r && (r.hidden = !1, r.innerHTML = `${n ? Bs("") : ""}<span>${z(e)}</span>`, r.toggleAttribute("data-error", t));
}
busy() {
return this.request?.abort(), this.request = new AbortController(), this.request.signal;
@@ -32983,7 +32983,7 @@ var fN = class {
async runSearch(e, t = this.offset) {
if (e.getAttribute("aria-busy") === "true") return;
let n = this.busy(), r = this.generation, i = e.querySelector("[data-subtitle-more],[data-subtitle-retry]"), a = e.querySelector("[data-subtitle-results]");
- e.setAttribute("aria-busy", "true"), i && Zc(i), a.inert = !0, this.status("正在搜索字幕", !1, !0);
+ e.setAttribute("aria-busy", "true"), i && Xc(i), a.inert = !0, this.status("正在搜索字幕", !1, !0);
try {
let i = await Tn(`/api/subtitles/search?q=${encodeURIComponent(this.query)}&offset=${t}`, { signal: n });
if (n.aborted || r !== this.generation) return;
@@ -32993,7 +32993,7 @@ var fN = class {
this.runSearch(e, t);
});
} finally {
- e.removeAttribute("aria-busy"), i && Zc(i, !1), a.inert = !1;
+ e.removeAttribute("aria-busy"), i && Xc(i, !1), a.inert = !1;
}
}
async showFiles(e) {
@@ -33034,7 +33034,7 @@ var fN = class {
}
};
// src/player/timeline.ts
-function hue(e, t) {
+function _ue(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;
@@ -33045,8 +33045,8 @@ function hue(e, t) {
let i = n - 1, a = t.cues[i];
return !a || e >= a[1] && (i !== t.cues.length - 1 || e !== a[1]) ? null : i;
}
-function gue(e, t) {
- let n = hue(e, t);
+function vue(e, t) {
+ let n = _ue(e, t);
if (n === null) return null;
let r = t.columns || 10, i = r * (t.rows || 10), a = Math.floor(n / i);
return {
@@ -33056,15 +33056,15 @@ function gue(e, t) {
rows: Math.ceil(Math.min(i, t.frames - a * i) / r)
};
}
-function _ue(e, t, n, r = 0) {
+function yue(e, t, n, r = 0) {
return n + r * 2 >= t ? t / 2 : Math.min(t - r - n / 2, Math.max(r + n / 2, e));
}
-function vue(e) {
+function bue(e) {
if (!e || (e.source || "peach") !== "peach" || e.cues?.length || !(e.interval > 0) || e.frames <= 0) return 0;
let t = Math.ceil(e.frames / ((e.columns || 10) * (e.rows || 10)));
return t <= 12 ? t : 0;
}
-function mN(e, t, n = {}) {
+function fN(e, t, n = {}) {
let r = !!t?.id && n.thumbnail !== !1, i = document.createElement("div");
i.className = "vjs-peach-seek-preview", i.dataset.playerSeekPreview = "", i.hidden = !0, i.innerHTML = `${r ? "<i class=\"vjs-peach-seek-frame\" hidden><img alt=\"\"></i>" : ""}<span class="mono">0:00</span>`, e.append(i);
let a = i.querySelector(".vjs-peach-seek-frame"), o = i.querySelector("img"), s = i.querySelector("span"), c = encodeURIComponent(String(t?.id ?? "")), l = (e, t) => {
@@ -33072,7 +33072,7 @@ function mN(e, t, n = {}) {
};
t?.width && t.height && l(t.width, t.height);
let u = null, d = "", f = !1, p = -1, m = !1, h = !1, g = t?.has_thumb !== !0, _ = [], v = (e, t) => `/timeline?id=${c}&s=${t}&source=${encodeURIComponent(e.source || "peach")}`, y = () => {
- if (m && u) for (let e of [u, u.fallback]) for (let t = 0; t < vue(e); t++) {
+ if (m && u) for (let e of [u, u.fallback]) for (let t = 0; t < bue(e); t++) {
let n = v(e, t);
if (_.some((e) => e.dataset.source === n)) continue;
let r = new Image();
@@ -33083,7 +33083,7 @@ function mN(e, t, n = {}) {
!h && e && e.frames > 0 && (e.interval > 0 || e.cues?.length) && (u = e, y());
}).catch(() => {});
let b = (e, n) => {
- let r = gue(e, n);
+ let r = vue(e, n);
if (!r || !a || !o) return !1;
f = !!n.cues, !f && t?.width && t.height && l(t.width, t.height);
let i = v(n, r.page);
@@ -33110,7 +33110,7 @@ function mN(e, t, n = {}) {
let o = Math.min(1, Math.max(0, t)), c = r * o;
s.textContent = Yn(c), a && !(u && b(c, u)) && !(u?.fallback && b(c, u.fallback)) && x(o), i.hidden = !1;
let l = e.getBoundingClientRect().width;
- i.style.left = `${_ue(o * l, l, i.offsetWidth, n.inset)}px`;
+ i.style.left = `${yue(o * l, l, i.offsetWidth, n.inset)}px`;
},
hide() {
i.hidden = !0;
@@ -33121,8 +33121,8 @@ function mN(e, t, n = {}) {
};
}
// src/player/rotation.ts
-function hN(e, t) {
- let n = 0, r = !1, i = uN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
+function pN(e, t) {
+ let n = 0, r = !1, i = cN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
"width",
"height",
"inset",
@@ -33150,7 +33150,7 @@ function hN(e, t) {
};
}
// src/player/pip.ts
-function yue(e, t, n, r) {
+function xue(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";
@@ -33182,7 +33182,7 @@ function yue(e, t, n, r) {
});
}
// src/player/controls.ts
-function gN(e, t, n = "") {
+function mN(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));
@@ -33193,27 +33193,27 @@ function gN(e, t, n = "") {
};
return o(), o;
}
-function _N(e, t) {
+function hN(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
-function bue(e, t = !0) {
- let n = RM(), r = n.settings();
+function Sue(e, t = !0) {
+ let n = LM(), 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 vN = /* @__PURE__ */ new WeakMap();
-function yN(e) {
+var gN = /* @__PURE__ */ new WeakMap();
+function _N(e) {
if (!e) return;
- let t = RM().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), vN.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = LM().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), gN.get(e)?.(t ? "默认视图" : "影院模式");
}
-function bN(e, t = !0) {
- let n = RM(), r = n.settings();
+function vN(e, t = !0) {
+ let n = LM(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), yN(i?.querySelector("[data-player-theater]")), KM(WM());
+ i?.toggleAttribute("data-theater", r.theaterMode), _N(i?.querySelector("[data-player-theater]")), WM(HM());
}
-function xue(e) {
- let t = RM().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function Cue(e) {
+ let t = LM().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -33236,9 +33236,9 @@ function xue(e) {
}, u = (t) => {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
- i || t !== o || (RM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
+ i || t !== o || (LM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
}, f = () => {
- !i && RM().settings().ambientMode && (l(), e.paused || u(++o));
+ !i && LM().settings().ambientMode && (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -33247,7 +33247,7 @@ function xue(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function xN(e, t, n = 0, r = null) {
+function yN(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");
@@ -33257,8 +33257,8 @@ function xN(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]");
- gN(s, "设置");
- let l = a.querySelector(".vjs-peach-settings-menu"), u = hN(e, t), d = dN(e, t), f = uN(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
+ mN(s, "设置");
+ let l = a.querySelector(".vjs-peach-settings-menu"), u = pN(e, t), d = lN(e, t), f = cN(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 = () => {
@@ -33297,11 +33297,11 @@ function xN(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(QM, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(XM, { detail: "settings" }));
}, S = () => x(!1), C = (e) => {
e.detail !== "settings" && S();
};
- document.addEventListener(QM, C);
+ document.addEventListener(XM, 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;
@@ -33317,15 +33317,15 @@ function xN(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="${RM().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="${LM().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">${pN()}</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">${dN()}</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 = () => {
- bue(!RM().settings().ambientMode), k();
+ Sue(!LM().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();
@@ -33429,8 +33429,8 @@ function xN(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(QM, C), w && clearTimeout(w);
- }), p = new mue(e, t, {
+ I(), t.removeEventListener("loadedmetadata", re), t.removeEventListener("resize", re), t.removeEventListener("ratechange", re), T++, document.removeEventListener("pointerdown", F), document.removeEventListener(XM, C), w && clearTimeout(w);
+ }), p = new gue(e, t, {
render: E,
open: () => {
O = "subtitles", x(!0);
@@ -33439,21 +33439,21 @@ function xN(e, t, n = 0, r = null) {
back: () => {
p?.hide(), k(-1);
}
- }), y(), Sue(e, a), Cue(e), (e) => {
+ }), y(), wue(e, a), Tue(e), (e) => {
h = e?.length ? e : null, re();
};
}
-function Sue(e, t) {
+function wue(e, t) {
let n = e.el().querySelector(".vjs-control-bar");
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = RM().settings().theaterMode, i = document.createElement("div");
+ let r = LM().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");
- vN.set(a, gN(a, "影院模式", "T")), yN(a), a.onclick = (e) => {
- e.stopPropagation(), bN(!RM().settings().theaterMode);
+ gN.set(a, mN(a, "影院模式", "T")), _N(a), a.onclick = (e) => {
+ e.stopPropagation(), vN(!LM().settings().theaterMode);
};
}
-function Cue(e) {
+function Tue(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");
@@ -33465,7 +33465,7 @@ function Cue(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 = gN(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 = mN(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 ? "播放" : "暂停");
};
@@ -33476,7 +33476,7 @@ function Cue(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 = gN(p, "静音", "M"), g = () => {
+ let h = mN(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 ? "取消静音" : "静音");
};
@@ -33502,7 +33502,7 @@ function Cue(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 = gN(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = mN(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)};点击显示剩余时间`);
};
@@ -33514,10 +33514,10 @@ function Cue(e) {
"loadedmetadata"
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
- gN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), yue(e, E, gN(E, "画中画"), (e) => RM().toast(e, { warn: !0 }));
- let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = gN(D, "全屏", "F"), A = () => {
+ mN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), xue(e, E, mN(E, "画中画"), (e) => LM().toast(e, { warn: !0 }));
+ let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = mN(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 ? "退出全屏" : "全屏"), KM(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), WM(e);
};
e.on([
"fullscreenchange",
@@ -33538,7 +33538,7 @@ function Cue(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 = gN(N, "展开控件"), P = (t) => {
+ let N = ee.querySelector("button"), te = mN(N, "展开控件"), P = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), N.setAttribute("aria-expanded", String(t)), te(t ? "收起控件" : "展开控件");
};
N.onclick = (t) => {
@@ -33550,10 +33550,10 @@ function Cue(e) {
}, re = new ResizeObserver(ne);
re.observe(e.el()), e.on("dispose", () => re.disconnect()), P(!1), ne();
}
-function SN(e, t, n = {}) {
+function bN(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 = mN(r, t, n), a = (n) => {
+ let i = fN(r, t, n), a = (n) => {
let a = qn(e.duration()) || qn(t?.duration);
if (!a) return;
let o = r.getBoundingClientRect();
@@ -33573,13 +33573,13 @@ function SN(e, t, n = {}) {
i.dispose();
});
}
-function wue(e, t) {
+function Eue(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(RM().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(LM().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -33620,11 +33620,11 @@ function wue(e, t) {
} catch {}
});
}
-function CN(e) {
+function xN(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 wN(e, t) {
+function SN(e, t) {
Tn(`/api/assets/${t}/subtitles`).then((t) => {
e && !e.isDisposed() && (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -33640,35 +33640,35 @@ function wN(e, t) {
}).catch(() => {});
}
// src/player/progress.ts
-var TN = "peach.playback-position.v1", EN = /* @__PURE__ */ new WeakMap();
-function DN(e) {
- EN.get(e)?.(), EN.delete(e);
+var CN = "peach.playback-position.v1", wN = /* @__PURE__ */ new WeakMap();
+function TN(e) {
+ wN.get(e)?.(), wN.delete(e);
}
-function ON(e, t, n = null) {
+function EN(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 Tue(e) {
+function Due(e) {
try {
- let t = localStorage.getItem(`${TN}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
+ let t = localStorage.getItem(`${CN}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
return Number.isFinite(n) && n >= 0 ? n : null;
} catch {
return null;
}
}
-function Eue(e, t) {
- let n = Tue(e);
+function Oue(e, t) {
+ let n = Due(e);
if (n !== null) return n;
let r = Number(t.leave_ratio);
return r > 0 && r < 1 ? r * qn(t.duration) : 0;
}
-function Due(e, t) {
- DN(t);
+function kue(e, t) {
+ TN(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(`${TN}:${e}`, String(r));
+ localStorage.setItem(`${CN}:${e}`, String(r));
} catch {}
}, i = () => {
n = !0;
@@ -33682,7 +33682,7 @@ function Due(e, t) {
"pause",
"ended"
]) t.addEventListener(e, r);
- window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), EN.set(t, () => {
+ window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), wN.set(t, () => {
r(), t.removeEventListener("loadedmetadata", i), t.removeEventListener("emptied", a);
for (let e of [
"timeupdate",
@@ -33694,19 +33694,19 @@ function Due(e, t) {
});
}
// src/player/telemetry.ts
-var kN = /* @__PURE__ */ new WeakMap();
-function AN(e) {
- kN.get(e)?.(), kN.delete(e);
+var DN = /* @__PURE__ */ new WeakMap();
+function ON(e) {
+ DN.get(e)?.(), DN.delete(e);
}
-function jN(e, t, n, r) {
+function kN(e, t, n, r) {
let i = () => t(!1), a = () => {
n(), t(!1);
};
- e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), kN.set(e, () => {
+ e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), DN.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 MN(e, t, n = {}) {
+function AN(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);
@@ -33747,11 +33747,11 @@ function MN(e, t, n = {}) {
u(), l(!1);
}, t.onended = () => {
u(), l(!0), n.onEnded?.();
- }, jN(t, l, u, () => {
+ }, kN(t, l, u, () => {
a++;
}), c();
}
-function Oue(e, t) {
+function Aue(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", {
@@ -33782,22 +33782,22 @@ function Oue(e, t) {
s(), o(!1);
}, t.onended = () => {
s(), o(!0);
- }, jN(t, o, s, () => {});
+ }, kN(t, o, s, () => {});
}
// src/player/dispose.ts
-function NN(e) {
+function jN(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
e.pause();
} catch {}
- t && (DN(t), AN(t));
+ t && (TN(t), ON(t));
try {
e.dispose();
} catch {}
}
// src/core/random-id.ts
-function PN() {
+function MN() {
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;
@@ -33805,23 +33805,23 @@ function PN() {
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 FN() {
- return PN();
+function NN() {
+ return MN();
}
-function IN(e, t) {
+function PN(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function kue(e) {
+function jue(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function LN(e, t) {
- let n = kue(e);
+async function FN(e, t) {
+ let n = jue(e);
if (n) return n;
try {
let n = await Tn(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -33830,9 +33830,9 @@ async function LN(e, t) {
type: n.mime_type || (n.protocol === "hls" ? "application/vnd.apple.mpegurl" : "video/mp4")
};
} catch {}
- return IN(e, t);
+ return PN(e, t);
}
-function RN(e) {
+function IN(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -33841,22 +33841,22 @@ function RN(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var zN = "";
-function BN() {
- return zN;
+var LN = "";
+function RN() {
+ return LN;
}
-function VN() {
- return zN ||= FN(), zN;
+function zN() {
+ return LN ||= NN(), LN;
}
-var Aue = (e) => IN(e, VN()), jue = (e) => LN(e, VN());
-function HN() {
- let e = zN;
- e && (zN = "", RN(e));
+var Mue = (e) => PN(e, zN()), Nue = (e) => FN(e, zN());
+function BN() {
+ let e = LN;
+ e && (LN = "", IN(e));
}
// src/player/v10-player.ts
-var UN = (e) => typeof e == "string" ? [e] : e, Mue = (e, t) => {
+var VN = (e) => typeof e == "string" ? [e] : e, Pue = (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-${PN()}`, n.setAttribute("lang", "zh-CN");
+ n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${MN()}`, 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 = {
@@ -33951,9 +33951,9 @@ var UN = (e) => typeof e == "string" ? [e] : e, Mue = (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) => UN(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
- off: (e, t) => UN(e).forEach((e) => o.removeEventListener(e, t)),
- one: (e, t) => UN(e).forEach((e) => o.addEventListener(e, t, {
+ on: (e, t) => VN(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
+ off: (e, t) => VN(e).forEach((e) => o.removeEventListener(e, t)),
+ one: (e, t) => VN(e).forEach((e) => o.addEventListener(e, t, {
once: !0,
signal: c
})),
@@ -34008,7 +34008,7 @@ var UN = (e) => typeof e == "string" ? [e] : e, Mue = (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);
}
};
-}, Nue = "/vendor/videojs/10.3.0/", Pue = [
+}, Fue = "/vendor/videojs/10.3.0/", Iue = [
"video-player.js",
"media/hlsjs-video.js",
"media/dash-video.js",
@@ -34026,17 +34026,17 @@ var UN = (e) => typeof e == "string" ? [e] : e, Mue = (e, t) => {
"ui/slider-value.js",
"i18n.js",
"locales/zh-CN.js"
-], WN = null;
-function GN() {
- return WN ??= Promise.all(Pue.map((e) => import(
+], HN = null;
+function UN() {
+ return HN ??= Promise.all(Iue.map((e) => import(
/* @vite-ignore */
- `${Nue}${e}`
-))).then(() => Mue).catch((e) => {
- throw WN = null, e;
- }), WN;
+ `${Fue}${e}`
+))).then(() => Pue).catch((e) => {
+ throw HN = null, e;
+ }), HN;
}
// src/player/immerse-player.ts
-var Fue = {
+var Lue = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -34048,45 +34048,45 @@ var Fue = {
errorDisplay: !1,
textTrackSettings: !1
};
-function Iue(e, t) {
+function Rue(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([LN(n, r), GN().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([FN(n, r), UN().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = IN(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = PN(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, Fue);
- i = t, t.peachItem = n, t.peachPlaybackKey = ON("item", n);
+ let t = s(e, Lue);
+ i = t, t.peachItem = n, t.peachPlaybackKey = EN("item", n);
let r = new AbortController();
- sN(t.el(), e, r.signal, uN(t)), hN(t, e), dN(t, e), t.on("dispose", () => r.abort()), new fN(t, e), wN(t, n.id), l && t.one("error", () => {
+ aN(t.el(), e, r.signal, cN(t)), pN(t, e), lN(t, e), t.on("dispose", () => r.abort()), new uN(t, e), SN(t, n.id), l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- MN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ AN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, RN(r), i ? NN(i) : (e.pause(), AN(e), e.removeAttribute("src"), e.load()));
+ a || (a = !0, IN(r), i ? jN(i) : (e.pause(), ON(e), e.removeAttribute("src"), e.load()));
};
}
// src/player/guide-preview.ts
-var KN = !1, qN = () => KN;
-function Lue() {
- return KN = !0, () => {
- KN = !1;
+var WN = !1, GN = () => WN;
+function zue() {
+ return WN = !0, () => {
+ WN = !1;
};
}
// src/player/detail-player.ts
-var JN = /* @__PURE__ */ new WeakMap(), YN = null, XN = null, ZN = null;
-function QN() {
- YN &&= (clearInterval(YN), null), XN &&= (clearInterval(XN), null), ZN &&= (clearTimeout(ZN), null);
+var KN = /* @__PURE__ */ new WeakMap(), qN = null, JN = null, YN = null;
+function XN() {
+ qN &&= (clearInterval(qN), null), JN &&= (clearInterval(JN), null), YN &&= (clearTimeout(YN), null);
}
-async function Rue(e, t, n, r = {}) {
- let i = WM();
+async function Bue(e, t, n, r = {}) {
+ let i = HM();
if (i && !i.isDisposed()) return i;
- let a = RM(), o = r.resume ?? null;
+ let a = LM(), o = r.resume ?? null;
o?.autoplay && (n = !0), r.guidePreview && (n = !1);
- let s = () => r.source ? Promise.resolve(r.source) : jue(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : Nue(e), c;
try {
- c = await GN();
+ c = await UN();
} catch {
return t.controls = !0, r.guidePreview || s().then((e) => {
t.addEventListener("loadedmetadata", () => {
@@ -34099,7 +34099,7 @@ async function Rue(e, t, n, r = {}) {
preload: "metadata",
language: "zh-CN",
responsive: !0,
- poster: r.poster || Ao(e, a.settings().javImage),
+ poster: r.poster || ko(e, a.settings().javImage),
controlBar: {
pictureInPictureToggle: !0,
currentTimeDisplay: !1,
@@ -34112,7 +34112,7 @@ async function Rue(e, t, n, r = {}) {
} }
}
});
- GM(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || ON("item", e), iue(l), l.on("loadedmetadata", () => {
+ UM(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || EN("item", e), aue(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}`);
});
@@ -34120,7 +34120,7 @@ async function Rue(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = oue(YM(f, e.duration)), m = 0, h = !1, g = () => WM() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = cue(qM(f, e.duration)), m = 0, h = !1, g = () => HM() === 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(() => {
@@ -34131,15 +34131,15 @@ async function Rue(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- JN.set(l, y), y.updateStats = () => {
+ KN.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 = BN(), h = s ? eN(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 = RN(), h = s ? QM(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 = nN(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 = eN(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 = qM(t);
- ZM(d.speed, x), ZM(d.activity, C), ZM(d.buffer, w);
+ let w = GM(t);
+ YM(d.speed, x), YM(d.activity, C), YM(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} 请求`,
@@ -34157,17 +34157,17 @@ async function Rue(e, t, n, r = {}) {
[
"连接速度",
D,
- $M(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ ZM(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- $M(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ ZM(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- $M(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ ZM(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${Yn(t.currentTime)} / ${Yn(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -34183,15 +34183,15 @@ async function Rue(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = nN(l, e.id, BN(), r ? null : p), a = r ? rN(i) : cue(i, qM(t));
+ let i = eN(l, e.id, RN(), r ? null : p), a = r ? tN(i) : uue(i, GM(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(), XN && clearInterval(XN), XN = setInterval(S, 500));
+ e && e.isConnected && (e.hidden = !1, S(), JN && clearInterval(JN), JN = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (ZN && clearTimeout(ZN), ZN = setTimeout(() => {
- e.hidden = !0, XN &&= (clearInterval(XN), null);
+ e && (YN && clearTimeout(YN), YN = setTimeout(() => {
+ e.hidden = !0, JN &&= (clearInterval(JN), null);
}, 1400));
};
return l.on([
@@ -34202,7 +34202,7 @@ async function Rue(e, t, n, r = {}) {
], C), l.on(["canplay", "playing"], () => {
S(), w();
}), l.on("error", () => {
- b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(Aue(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
+ b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(Mue(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))}`
@@ -34210,13 +34210,13 @@ async function Rue(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = xN(l, t, e.height, r.qualities ?? null);
+ let n = yN(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 = YM(r, e.duration));
- }).catch(() => {}), SN(l, e, { thumbnail: !r.source }), r.guidePreview || wue(l, e), CN(l), r.source || wN(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);
+ r > 0 && !f && (f = r, p.bitrate = qM(r, e.duration));
+ }).catch(() => {}), bN(l, e, { thumbnail: !r.source }), r.guidePreview || Eue(l, e), xN(l), r.source || SN(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;
@@ -34225,16 +34225,16 @@ async function Rue(e, t, n, r = {}) {
}), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), n && l.play()?.catch(() => {}));
}).catch(() => {}), l;
}
-var zue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function $N(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", zue), e.querySelector("#playerStatsBtn")) return;
+var Vue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function ZN(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Vue), e.querySelector("#playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = sue();
+ n.innerHTML = lue();
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 eP(e, t) {
- let n = JN.get(e);
+function QN(e, t) {
+ let n = KN.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`#${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -34246,30 +34246,30 @@ function eP(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), YN &&= (clearInterval(YN), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), qN &&= (clearInterval(qN), null));
};
a.onclick = () => {
- o.hidden ? (document.dispatchEvent(new CustomEvent(QM, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), YN && clearInterval(YN), YN = setInterval(n.updateStats, 1e3)) : e();
+ o.hidden ? (document.dispatchEvent(new CustomEvent(XM, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), qN && clearInterval(qN), qN = setInterval(n.updateStats, 1e3)) : e();
};
let t = (t) => {
t.detail !== "stats" && e();
};
- document.addEventListener(QM, t), s = () => document.removeEventListener(QM, t);
+ document.addEventListener(XM, t), s = () => document.removeEventListener(XM, t);
}
- let c = e.el().querySelector("video"), l = c ? xue(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, QN()));
+ let c = e.el().querySelector("video"), l = c ? Cue(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, XN()));
};
return e.one("dispose", d), d;
}
-function tP(e, t) {
- if (t.kind === "immerse") return Iue(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = qN(), c = RM(), l = t.chrome === !1 ? null : e.parentElement;
- l && $N(l, e);
- let u = ON(n, r, i?.index ?? null), d = {
+function $N(e, t) {
+ if (t.kind === "immerse") return Rue(e, t);
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = GN(), c = LM(), l = t.chrome === !1 ? null : e.parentElement;
+ l && ZN(l, e);
+ let u = EN(n, r, i?.index ?? null), d = {
guidePreview: s,
playbackKey: u,
resume: s ? null : t.resume ?? {
- time: Eue(u, r),
+ time: Oue(u, r),
autoplay: !1
}
};
@@ -34285,40 +34285,40 @@ function tP(e, t) {
mediaPromise: Tn(`/follow-qualities?id=${encodeURIComponent(r.id)}`).catch(() => null)
};
else {
- let t = Ao(r, c.settings().javImage);
+ let t = ko(r, c.settings().javImage);
t && (e.poster = t);
}
let f = null, p = !1, m = () => {}, h = e, g = () => {
- m(), !(f && a?.(f)) && (DN(h), f ? (WM() === f && (GM(null), QN()), NN(f)) : AN(h));
+ m(), !(f && a?.(f)) && (TN(h), f ? (HM() === f && (UM(null), XN()), jN(f)) : ON(h));
};
- return Rue(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)) : (Due(u, h), n === "follow" ? Oue(r, h) : (h.addEventListener("play", () => {
+ return Bue(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)) : (kue(u, h), n === "follow" ? Aue(r, h) : (h.addEventListener("play", () => {
Tn("/api/play", {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), MN(r, h, {
+ }, { once: !0 }), AN(r, h, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
- })), t ? (l && (m = eP(t, l)), o?.(t)) : o?.(null)));
+ })), t ? (l && (m = QN(t, l)), o?.(t)) : o?.(null)));
}), () => {
p = !0, g();
};
}
// src/player/playback.ts
-function nP(e) {
+function eP(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function rP(e, t) {
+function tP(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 Bue(e, t, n) {
+function Hue(e, t, n) {
e.controls = !1;
let r = !1, i = null;
- return GN().then((a) => {
+ return UN().then((a) => {
if (r) return;
i = a(e, {
controls: !0,
@@ -34343,30 +34343,30 @@ function Bue(e, t, n) {
o.on("error", () => {
r || n();
}), o.ready(() => {
- r || o.isDisposed() || (xN(o, e), SN(o, null, { thumbnail: !1 }), CN(o));
+ r || o.isDisposed() || (yN(o, e), bN(o, null, { thumbnail: !1 }), xN(o));
}), o.src(t);
}).catch(() => {
r || n();
}), () => {
- r = !0, NN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ r = !0, jN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
};
}
-function iP(e, t) {
+function nP(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var Vue = (e, t) => [
+var Uue = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], Hue = (e, t) => [
+], Wue = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function Uue(e, t, n, r, i) {
+async function Gue(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 = {
@@ -34376,22 +34376,35 @@ async function Uue(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 Wue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Gue = (e, t) => {
+var Kue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, que = (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 Kue(e) {
- let t = iP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function rP(e) {
+ let t = nP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: Vue(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => Uue(t, e, n, r, i),
+ queryKey: Uue(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => Gue(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: Wue(n)
+ getNextPageParam: Kue(n)
};
}
-function que(e) {
+async function Jue(e, t, n) {
+ if (e.mode === "items" || e.mode === "entity" || t === "list" && !e.wall) return;
+ let r = rP(e);
+ H.getQueryData(r.queryKey) === void 0 && ((e.restoreNavigation || e.wall) && iP(r.queryKey) || await H.fetchInfiniteQuery({
+ queryKey: r.queryKey,
+ queryFn: ({ pageParam: e }) => r.queryFn({
+ pageParam: e,
+ signal: n
+ }),
+ initialPageParam: 0,
+ getNextPageParam: r.getNextPageParam
+ }));
+}
+function Yue(e) {
return {
- queryKey: Hue(e.entityKey || "", e.revision || 0),
+ queryKey: Wue(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -34406,14 +34419,14 @@ function que(e) {
};
},
initialPageParam: 0,
- getNextPageParam: Gue
+ getNextPageParam: que
};
}
-function aP(e) {
+function iP(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 oP(e, t, n) {
+function aP(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -34428,24 +34441,24 @@ function oP(e, t, n) {
return !0;
}) : [...e];
}
-var sP = (e, t) => !!e && !!no(e, t);
-function Jue(e, t) {
- let n = (e) => sP(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) => sP(e, t)) || e[e.length - 1];
+var oP = (e, t) => !!e && !!to(e, t);
+function Xue(e, t) {
+ let n = (e) => oP(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) => oP(e, t)) || e[e.length - 1];
}
-function Yue(e, { collapse: t, mix: n, javImage: r }) {
+function Zue(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 = oP(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = aP(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 = Jue(e, r);
+ let t = Xue(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -34458,16 +34471,16 @@ function Yue(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function Xue(e, t, n) {
+function Que(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 $ue(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 Que(e, t) {
+function ede(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -34480,10 +34493,10 @@ function Que(e, t) {
strip: null
}), r;
}
-function cP(e, t) {
- lP((t) => t.id === e, t);
+function sP(e, t) {
+ cP((t) => t.id === e, t);
}
-function lP(e, t) {
+function cP(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) => ({
@@ -34513,34 +34526,34 @@ function lP(e, t) {
} : n)
});
}
-var uP = (e) => Math.min(Math.max(e || 0, 0), 100), dP = (e) => Math.round(uP(e) / 20), $ue = (e) => {
- let t = dP(e);
+var lP = (e) => Math.min(Math.max(e || 0, 0), 100), uP = (e) => Math.round(lP(e) / 20), tde = (e) => {
+ let t = uP(e);
return t ? `${t} 星` : "未评分";
-}, fP = (e, t) => t === dP(e) ? 0 : t * 20, pP = (e) => ["item", e], mP = (e) => [
+}, dP = (e, t) => t === uP(e) ? 0 : t * 20, fP = (e) => ["item", e], pP = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], ede = (e, t) => [
+], nde = (e, t) => [
"item-related",
e,
t
-], tde = (e) => `/api/item?id=${e}`, nde = (e, t) => `/api/related?id=${e}&limit=${t}`, hP = "/api/playlist", gP = "/api/feedback", _P = "/api/item-tag", vP = "/api/watch-later", yP = "/api/quality-goal", bP = "/api/preference", xP = class extends Error {};
-async function SP(e, t) {
- let n = await B(tde(e), t);
- if (n.error) throw new xP(n.error);
+], rde = (e) => `/api/item?id=${e}`, ide = (e, t) => `/api/related?id=${e}&limit=${t}`, mP = "/api/playlist", hP = "/api/feedback", gP = "/api/item-tag", _P = "/api/watch-later", vP = "/api/quality-goal", yP = "/api/preference", bP = class extends Error {};
+async function xP(e, t) {
+ let n = await B(rde(e), t);
+ if (n.error) throw new bP(n.error);
return n;
}
-async function CP(e, t, n) {
+async function SP(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([SP(r, n), t.mixRelated(r)]);
- return H.setQueryData(pP(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([xP(r, n), t.mixRelated(r)]);
+ return H.setQueryData(fP(i.id), i), {
kind: "mix",
seedId: r,
- title: `Mix · ${No(i, t.tagLabel)}`,
+ title: `Mix · ${Mo(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return wP(await B(`${hP}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return CP(await B(`${mP}?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 {
@@ -34551,19 +34564,19 @@ async function CP(e, t, n) {
versionCount: e.kind === "editions" ? r.count : void 0
};
}
-var wP = (e) => ({
+var CP = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), TP = (e) => e.disposal === "vanished";
-function EP(e, t) {
+}), wP = (e) => e.disposal === "vanished";
+function TP(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !TP(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !wP(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 rde(e, t) {
+function ade(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 : {
@@ -34571,20 +34584,20 @@ function rde(e, t) {
part_label: n
};
}
-function DP(e, t) {
+function EP(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 OP(e, t) {
+async function DP(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = mP(n);
+ let o = pP(n);
try {
let r = n.fresh ? void 0 : H.getQueryData(o);
a = !r && n.kind === "mix", i = r || await H.fetchQuery({
queryKey: o,
- queryFn: () => CP(n, e.helpers, t),
+ queryFn: () => SP(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -34596,21 +34609,21 @@ async function OP(e, t) {
return;
}
}
- let o = i ? EP(i, e.id) : e.id;
+ let o = i ? TP(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(pP(o)) : void 0;
+ let s, c = a && o === i?.seedId ? H.getQueryData(fP(o)) : void 0;
try {
s = c || await H.fetchQuery({
- queryKey: pP(o),
- queryFn: () => SP(o, t),
+ queryKey: fP(o),
+ queryFn: () => xP(o, t),
staleTime: 0
});
} catch (e) {
if (t.aborted) throw e;
- if (e instanceof xP) {
+ if (e instanceof bP) {
r.redirect({ kind: "gone" });
return;
}
@@ -34621,7 +34634,7 @@ async function OP(e, t) {
id: Number(s.follow_item_id)
});
}
-function ide(e) {
+function ode(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);
@@ -34643,35 +34656,35 @@ function ide(e) {
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
-function ade(e, t) {
+function sde(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 kP = (e, t) => (e.tags || []).some((e) => Un(e.k) === Un(t)), AP = (e, t) => ({
+var OP = (e, t) => (e.tags || []).some((e) => Un(e.k) === Un(t)), kP = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => Un(e.k) !== Un(t))
-}), jP = (e, t) => kP(e, t.k) ? e : {
+}), AP = (e, t) => OP(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, MP = "peach.recentTags";
-function NP() {
+}, jP = "peach.recentTags";
+function MP() {
try {
- let e = JSON.parse(localStorage.getItem(MP) || "[]");
+ let e = JSON.parse(localStorage.getItem(jP) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function PP(e) {
+function NP(e) {
try {
- let t = NP().filter((t) => Un(t) !== Un(e));
- localStorage.setItem(MP, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = MP().filter((t) => Un(t) !== Un(e));
+ localStorage.setItem(jP, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function ode(e, t, n) {
+function cde(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
@@ -34682,73 +34695,73 @@ function ode(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var sde = {
+var lde = {
中字: "subtitle",
无码: "uncensored",
无码流出: "leaked",
无码破解: "cracked",
有码: "censored"
-}, cde = {
+}, ude = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function lde(e) {
+function dde(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: cde[e.kind],
+ title: ude[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var FP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, ude = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(FP(e.part_label))}</small>` : "";
-function dde(e, t, n, r) {
+var PP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, fde = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(PP(e.part_label))}</small>` : "";
+function pde(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var fde = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function pde(e, t) {
+var mde = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function hde(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 mde(e) {
+function gde(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 IP(e, t) {
+function FP(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
// src/react/immerse/immerse.ts
-var hde = (e, t, n) => [
+var _de = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function gde(e) {
+function vde(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 _de = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
-function vde(e, t = Math.random) {
+var yde = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
+function bde(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 yde(e, t) {
- return vde(((await B(`/api/items?${e}`)).items || []).filter((e) => _de(e, t)));
+async function xde(e, t) {
+ return bde(((await B(`/api/items?${e}`)).items || []).filter((e) => yde(e, t)));
}
-var LP = (e) => H.ensureQueryData({
- queryKey: pP(e),
- queryFn: ({ signal: t }) => SP(e, t)
+var IP = (e) => H.ensureQueryData({
+ queryKey: fP(e),
+ queryFn: ({ signal: t }) => xP(e, t)
});
-function bde(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 xde(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,
@@ -34757,313 +34770,313 @@ function xde(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function Sde(e, t, n) {
+function wde(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 Cde(e, t) {
+function Tde(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 wde = 15e3, RP = {
+var Ede = 15e3, LP = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, zP = null, BP = null, VP = RP, HP = /* @__PURE__ */ new Set(), UP = 0, WP = 0, GP = 0, KP = "", qP = [], JP = 0, YP = !1, XP = !1, ZP = null, QP = /* @__PURE__ */ new Set(), $P = "", eF = null, tF = 0, nF = null, rF = !1, iF = null;
-function aF() {
- if (!zP) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
- return zP;
+}, RP = null, zP = null, BP = LP, VP = /* @__PURE__ */ new Set(), HP = 0, UP = 0, WP = 0, GP = "", KP = [], qP = 0, JP = !1, YP = !1, XP = null, ZP = /* @__PURE__ */ new Set(), QP = "", $P = null, eF = 0, tF = null, nF = !1, rF = null;
+function iF() {
+ if (!RP) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
+ return RP;
}
-function Tde(e) {
- return HP.add(e), () => {
- HP.delete(e);
+function Dde(e) {
+ return VP.add(e), () => {
+ VP.delete(e);
};
}
-function Ede() {
- for (let e of [...HP]) e();
+function Ode() {
+ for (let e of [...VP]) e();
}
-function oF() {
- (0, Rt.flushSync)(Ede);
+function aF() {
+ (0, Rt.flushSync)(Ode);
}
-function sF() {
- let e = eF ? tN(eF.id) : 0;
- return e ? `${$P} · ${rN(e)}` : $P;
+function oF() {
+ let e = $P ? $M($P.id) : 0;
+ return e ? `${QP} · ${tN(e)}` : QP;
}
-function cF(e, t = null) {
- clearInterval(tF), tF = 0, e === null ? (VP = {
- ...VP,
+function sF(e, t = null) {
+ clearInterval(eF), eF = 0, e === null ? (BP = {
+ ...BP,
loading: null
- }, oF()) : ($P = e, eF = t, VP = {
- ...VP,
- loading: sF()
- }, oF(), tF = window.setInterval(() => {
- eF = qP[JP] ?? null, VP = {
- ...VP,
- loading: sF()
- }, oF();
+ }, aF()) : (QP = e, $P = t, BP = {
+ ...BP,
+ loading: oF()
+ }, aF(), eF = window.setInterval(() => {
+ $P = KP[qP] ?? null, BP = {
+ ...BP,
+ loading: oF()
+ }, aF();
}, 500));
}
-function Dde(e) {
+function kde(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), BP.track.append(t);
- let r = FN(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), zP.track.append(t);
+ let r = NN(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => RN(r),
+ release: () => IN(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return QP.add(a), a;
+ return ZP.add(a), a;
}
-function Ode(e, t) {
+function Ade(e, t) {
return new Promise((n) => {
- e.release = tP(e.video, {
+ e.release = $N(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- VP.open && gF(1);
+ BP.open && hF(1);
}
}), e.gone.then(n);
});
}
-function lF(e) {
- e && !e.disposed && (e.disposed = !0, QP.delete(e), e.leave(), e.release(), e.el.remove(), ZP === e && (ZP = null));
+function cF(e) {
+ e && !e.disposed && (e.disposed = !0, ZP.delete(e), e.leave(), e.release(), e.el.remove(), XP === e && (XP = null));
}
-var uF = [
+var lF = [
"loadeddata",
"canplay",
"error"
];
-function kde(e) {
+function jde(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), uF.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), lF.forEach((e) => t.removeEventListener(e, i)), n());
};
- uF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, wde);
+ lF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, Ede);
e.gone.then(i);
});
}
-function dF(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = Sde(e.videoWidth, e.videoHeight, n);
+function uF(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = wde(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var fF = () => BP?.track.querySelectorAll("video").forEach(dF);
-function Ade(e) {
- delete e.dataset.fit, e.readyState >= 1 ? dF(e) : e.addEventListener("loadedmetadata", () => dF(e), { once: !0 });
+var dF = () => zP?.track.querySelectorAll("video").forEach(uF);
+function Mde(e) {
+ delete e.dataset.fit, e.readyState >= 1 ? uF(e) : e.addEventListener("loadedmetadata", () => uF(e), { once: !0 });
}
-function jde(e) {
- VP = {
- ...VP,
+function Nde(e) {
+ BP = {
+ ...BP,
wide: e
- }, oF(), fF();
+ }, aF(), dF();
}
-var pF = () => {
- let e = KP;
+var fF = () => {
+ let e = GP;
return H.fetchQuery({
- queryKey: hde(e, WP, GP),
- queryFn: () => yde(e, aF().sourceOffline),
+ queryKey: _de(e, UP, WP),
+ queryFn: () => xde(e, iF().sourceOffline),
staleTime: Infinity
});
};
-function Mde(e, t) {
+function Pde(e, t) {
let n = () => qn(e.duration) || qn(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && BP && (BP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), nF = {
+ t && zP && (zP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), tF = {
video: e,
duration: n
- }, iF?.dispose(), iF = BP ? mN(BP.bar, t, { inset: 12 }) : null;
+ }, rF?.dispose(), rF = zP ? fN(zP.bar, t, { inset: 12 }) : null;
}
-function mF(e) {
- let t = nF?.duration();
- iF && t && (iF.prime(), iF.show(e, t));
+function pF(e) {
+ let t = tF?.duration();
+ rF && t && (rF.prime(), rF.show(e, t));
}
-async function hF(e = 0) {
- let t = qP[JP];
- if (!t || YP) return;
- let n = UP;
- aF().route(t.id), YP = !0, cF(e ? "切换中" : "加载中", t);
+async function mF(e = 0) {
+ let t = KP[qP];
+ if (!t || JP) return;
+ let n = HP;
+ iF().route(t.id), JP = !0, sF(e ? "切换中" : "加载中", t);
let r = null;
try {
- if (await LP(t.id).catch((e) => {
- if (!(e instanceof xP)) throw e;
- }), n !== UP) return;
- let i = ZP, a = !!(e && i);
- a || lF(i);
- let o = Dde(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, Ade(o.video), await Ode(o, t), await kde(o), o.disposed || (jde(Cde(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await IP(t.id).catch((e) => {
+ if (!(e instanceof bP)) throw e;
+ }), n !== HP) return;
+ let i = XP, a = !!(e && i);
+ a || cF(i);
+ let o = kde(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, Mde(o.video), await Ade(o, t), await jde(o), o.disposed || (Nde(Tde(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)), lF(i), o.el.style.transform = ""), o.disposed)) return;
- ZP = o, r = null, o.video.play()?.catch(() => {}), VP = {
- ...VP,
+ })), await new Promise((e) => setTimeout(e, 210)), cF(i), o.el.style.transform = ""), o.disposed)) return;
+ XP = o, r = null, o.video.play()?.catch(() => {}), BP = {
+ ...BP,
idle: !1,
shown: {
item: t,
- index: JP,
- length: qP.length
+ index: qP,
+ length: KP.length
}
- }, Mde(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), cF(null);
+ }, Pde(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), sF(null);
} catch {
- lF(r), n === UP && cF(null);
+ cF(r), n === HP && sF(null);
} finally {
- n === UP && (YP = !1);
+ n === HP && (JP = !1);
}
}
-async function gF(e) {
- if (YP || !VP.open) return;
- let t = UP;
- if (JP += e, cF("切换中", qP[JP] ?? null), JP >= qP.length - 3 && !XP) {
- XP = !0;
+async function hF(e) {
+ if (JP || !BP.open) return;
+ let t = HP;
+ if (qP += e, sF("切换中", KP[qP] ?? null), qP >= KP.length - 3 && !YP) {
+ YP = !0;
try {
- GP += 1;
- let e = await pF();
- t === UP && (qP = bde(qP, e));
+ WP += 1;
+ let e = await fF();
+ t === HP && (KP = Sde(KP, e));
} catch {} finally {
- XP = !1;
+ YP = !1;
}
}
- t === UP && (JP >= qP.length && (JP = 0), JP < 0 && (JP = qP.length - 1), await hF(e));
+ t === HP && (qP >= KP.length && (qP = 0), qP < 0 && (qP = KP.length - 1), await mF(e));
}
-async function Nde(e) {
- let t = ++UP;
- _F(), WP += 1, GP = 0, KP = gde(aF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), VP = {
- ...VP,
+async function Fde(e) {
+ let t = ++HP;
+ gF(), UP += 1, WP = 0, GP = vde(iF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), BP = {
+ ...BP,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), cF("加载内容");
+ }, document.body.setAttribute("data-immerse-open", ""), sF("加载内容");
try {
- let n = await pF();
+ let n = await fF();
if (e && !n.some((t) => t.id === e)) {
- let t = await LP(e).catch((e) => {
- if (e instanceof xP) return null;
+ let t = await IP(e).catch((e) => {
+ if (e instanceof bP) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== UP) return;
- if (qP = n, !qP.length) {
- vF(), aF().warn("当前筛选下没有可直接播放的内容");
+ if (t !== HP) return;
+ if (KP = n, !KP.length) {
+ _F(), iF().warn("当前筛选下没有可直接播放的内容");
return;
}
- JP = Math.max(0, qP.findIndex((t) => t.id === e)), await hF();
+ qP = Math.max(0, KP.findIndex((t) => t.id === e)), await mF();
} catch {
- if (t !== UP) return;
- cF(null), vF();
+ if (t !== HP) return;
+ sF(null), _F();
}
}
-function _F() {
- clearInterval(tF), tF = 0, wF(), SF = null, nF = null, rF = !1, iF?.dispose(), iF = null, [...QP].forEach(lF), YP = !1;
+function gF() {
+ clearInterval(eF), eF = 0, CF(), xF = null, tF = null, nF = !1, rF?.dispose(), rF = null, [...ZP].forEach(cF), JP = !1;
}
-function vF() {
- VP.open && (UP++, _F(), VP = RP, document.body.removeAttribute("data-immerse-open"), oF(), aF().closed());
+function _F() {
+ BP.open && (HP++, gF(), BP = LP, document.body.removeAttribute("data-immerse-open"), aF(), iF().closed());
}
-var yF = 0, bF = null, xF = 0, SF = null, CF = 0;
-function wF() {
- clearTimeout(yF), yF = 0, bF = null;
+var vF = 0, yF = null, bF = 0, xF = null, SF = 0;
+function CF() {
+ clearTimeout(vF), vF = 0, yF = null;
}
-function Pde(e) {
- let t = ZP?.video;
+function Ide(e) {
+ let t = XP?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- bF && bF.side === n && r - bF.at <= 280 ? (wF(), rP(t, aF().seekSeconds() * n)) : (yF && (clearTimeout(yF), yF = 0, nP(t)), bF = {
+ yF && yF.side === n && r - yF.at <= 280 ? (CF(), tP(t, iF().seekSeconds() * n)) : (vF && (clearTimeout(vF), vF = 0, eP(t)), yF = {
side: n,
at: r
- }, yF = window.setTimeout(() => {
- yF = 0, bF = null, VP.open && nP(ZP?.video);
+ }, vF = window.setTimeout(() => {
+ vF = 0, yF = null, BP.open && eP(XP?.video);
}, 280));
}
-function Fde() {
- Date.now() < xF || nP(ZP?.video);
+function Lde() {
+ Date.now() < bF || eP(XP?.video);
}
-var TF = (e) => BP?.bar.toggleAttribute("data-scrubbing", e);
-function EF(e) {
- BP && (BP.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var wF = (e) => zP?.bar.toggleAttribute("data-scrubbing", e);
+function TF(e) {
+ zP && (zP.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function DF(e) {
+function EF(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- SF = null;
+ xF = null;
return;
}
- let n = ZP?.video;
- SF = {
+ let n = XP?.video;
+ xF = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function OF(e) {
- if (!SF || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - SF.x, n = e.touches[0].clientY - SF.y;
- if (!SF.axis) {
+function DF(e) {
+ if (!xF || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - xF.x, n = e.touches[0].clientY - xF.y;
+ if (!xF.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- SF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", SF.axis === "x" && TF(!0);
+ xF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", xF.axis === "x" && wF(!0);
}
- if (SF.axis !== "x") return;
- let r = ZP?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), SF.to = Math.min(i, Math.max(0, SF.from + t / window.innerWidth * i)), EF(SF.to / i), mF(SF.to / i));
+ if (xF.axis !== "x") return;
+ let r = XP?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), xF.to = Math.min(i, Math.max(0, xF.from + t / window.innerWidth * i)), TF(xF.to / i), pF(xF.to / i));
}
-function kF(e) {
- if (!SF) return;
- let t = SF;
- if (SF = null, xF = Date.now() + 700, TF(!1), iF?.hide(), t.axis === "x") {
- let e = ZP?.video;
+function OF(e) {
+ if (!xF) return;
+ let t = xF;
+ if (xF = null, bF = Date.now() + 700, wF(!1), rF?.hide(), t.axis === "x") {
+ let e = XP?.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 ? (wF(), gF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), Pde(n.clientX));
+ Math.abs(i) > 60 ? (CF(), hF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), Ide(n.clientX));
}
-function AF() {
- SF = null, TF(!1), iF?.hide();
+function kF() {
+ xF = null, wF(!1), rF?.hide();
}
-function jF(e) {
+function AF(e) {
let t = Date.now();
- t - CF < 260 || (CF = t, gF(e.deltaY > 0 ? 1 : -1));
+ t - SF < 260 || (SF = t, hF(e.deltaY > 0 ? 1 : -1));
}
-function MF(e) {
- let t = BP.bar.getBoundingClientRect();
+function jF(e) {
+ let t = zP.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
-function Ide(e) {
- nF?.duration() && (rF = !0, TF(!0), e.currentTarget.setPointerCapture(e.pointerId), EF(MF(e)), mF(MF(e)), e.preventDefault());
+function Rde(e) {
+ tF?.duration() && (nF = !0, wF(!0), e.currentTarget.setPointerCapture(e.pointerId), TF(jF(e)), pF(jF(e)), e.preventDefault());
}
-function Lde(e) {
- rF && EF(MF(e)), mF(MF(e));
+function zde(e) {
+ nF && TF(jF(e)), pF(jF(e));
}
-function Rde(e) {
- if (e.pointerType !== "mouse" && iF?.hide(), !rF) return;
- rF = !1, TF(!1);
- let t = nF?.duration();
- nF && t && (nF.video.currentTime = t * MF(e));
+function Bde(e) {
+ if (e.pointerType !== "mouse" && rF?.hide(), !nF) return;
+ nF = !1, wF(!1);
+ let t = tF?.duration();
+ tF && t && (tF.video.currentTime = t * jF(e));
}
-function zde() {
- rF = !1, TF(!1), iF?.hide();
+function Vde() {
+ nF = !1, wF(!1), rF?.hide();
}
-function Bde() {
- rF || iF?.hide();
+function Hde() {
+ nF || rF?.hide();
}
-async function NF(e, t) {
- let n = await V(gP, {
+async function MF(e, t) {
+ let n = await V(hP, {
id: e,
kind: t
- }), r = H.getQueryData(pP(e));
- if (!r) return cP(e, {
+ }), r = H.getQueryData(fP(e));
+ if (!r) return sP(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -35072,7 +35085,7 @@ async function NF(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return H.setQueryData(pP(e), i), cP(e, {
+ return H.setQueryData(fP(e), i), sP(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -35080,7 +35093,7 @@ async function NF(e, t) {
o_count: i.o_count
}), n;
}
-var Vde = [
+var Ude = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -35097,31 +35110,31 @@ var Vde = [
label: "记一次高潮"
}
];
-function PF(e) {
+function NF(e) {
return Ft({
- queryKey: pP(e ?? 0),
- queryFn: ({ signal: t }) => SP(e, t),
+ queryKey: fP(e ?? 0),
+ queryFn: ({ signal: t }) => xP(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function Hde({ kind: e, glyph: t, label: n, id: r }) {
- let i = PF(r), a = It({
+function Wde({ kind: e, glyph: t, label: n, id: r }) {
+ let i = NF(r), a = It({
mutationFn: async (t) => {
- let n = H.getQueryData(pP(t))?.feedback || null;
+ let n = H.getQueryData(fP(t))?.feedback || null;
return {
- result: await NF(t, e),
+ result: await MF(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- aF().toast(IP(e, t), { undo: async () => {
- e === "o" ? await NF(r, "o-undo") : (t.feedback && await NF(r, t.feedback), n && await NF(r, n));
+ iF().toast(FP(e, t), { undo: async () => {
+ e === "o" ? await MF(r, "o-undo") : (t.feedback && await MF(r, t.feedback), n && await MF(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- gF(1);
+ hF(1);
}, 260);
},
- onError: (e) => aF().failure("更新反馈", e)
+ onError: (e) => iF().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": "",
@@ -35152,12 +35165,12 @@ function Hde({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function Ude({ shown: e }) {
- let t = e?.item ?? null, n = PF(t?.id ?? null), r = n ? xde(n) : null, i = aF(), a = (e) => {
- e.preventDefault(), n && (vF(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function Gde({ shown: e }) {
+ let t = e?.item ?? null, n = NF(t?.id ?? null), r = n ? Cde(n) : null, i = iF(), a = (e) => {
+ e.preventDefault(), n && (_F(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
- t && (vF(), i.openItem(t.id));
- }, s = r ? vo(r.name, r.ref, Qa(r.name), r.kind || "performer") : "";
+ t && (_F(), 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": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -35185,18 +35198,18 @@ function Ude({ shown: e }) {
})]
});
}
-var Wde = { __html: Vs("媒体加载中") };
-function Gde({ view: e }) {
+var Kde = { __html: Bs("媒体加载中") };
+function qde({ 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 BP = {
+ return zP = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", DF, { passive: !0 }), e.addEventListener("touchmove", OF, { passive: !1 }), e.addEventListener("touchend", kF, { passive: !1 }), e.addEventListener("touchcancel", AF, { passive: !0 }), e.addEventListener("wheel", jF, { passive: !0 }), () => {
- e.removeEventListener("touchstart", DF), e.removeEventListener("touchmove", OF), e.removeEventListener("touchend", kF), e.removeEventListener("touchcancel", AF), e.removeEventListener("wheel", jF), BP = null;
+ }, e.addEventListener("touchstart", EF, { passive: !0 }), e.addEventListener("touchmove", DF, { passive: !1 }), e.addEventListener("touchend", OF, { passive: !1 }), e.addEventListener("touchcancel", kF, { passive: !0 }), e.addEventListener("wheel", AF, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", EF), e.removeEventListener("touchmove", DF), e.removeEventListener("touchend", OF), e.removeEventListener("touchcancel", kF), e.removeEventListener("wheel", AF), zP = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -35213,10 +35226,10 @@ function Gde({ view: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: Fde
+ onClick: Lde
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-immerse-actions": "",
- children: Vde.map((e) => /* @__PURE__ */ (0, I.jsx)(Hde, {
+ children: Ude.map((e) => /* @__PURE__ */ (0, I.jsx)(Wde, {
...e,
id: a
}, e.kind))
@@ -35229,7 +35242,7 @@ function Gde({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: Wde
+ dangerouslySetInnerHTML: Kde
}), /* @__PURE__ */ (0, I.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -35237,7 +35250,7 @@ function Gde({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: vF,
+ onClick: _F,
children: /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-x" })
@@ -35246,90 +35259,90 @@ function Gde({ view: e }) {
/* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: Ide,
- onPointerMove: Lde,
- onPointerUp: Rde,
- onPointerCancel: zde,
- onPointerLeave: Bde,
+ onPointerDown: Rde,
+ onPointerMove: zde,
+ onPointerUp: Bde,
+ onPointerCancel: Vde,
+ onPointerLeave: Hde,
children: /* @__PURE__ */ (0, I.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, I.jsx)(Ude, { shown: e.shown })
+ /* @__PURE__ */ (0, I.jsx)(Gde, { shown: e.shown })
]
});
}
-var Kde = {
- open: Nde,
- close: vF,
- isOpen: () => VP.open,
- activeVideo: () => VP.open ? ZP?.video ?? null : null
+var Jde = {
+ open: Fde,
+ close: _F,
+ isOpen: () => BP.open,
+ activeVideo: () => BP.open ? XP?.video ?? null : null
};
-function qde(e) {
- if (!VP.open) return;
+function Yde(e) {
+ if (!BP.open) return;
let t = e.target;
- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && gF(1), e.key === "ArrowUp" && gF(-1));
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && hF(1), e.key === "ArrowUp" && hF(-1));
}
-function Jde(e) {
- let t = !zP;
- return zP = e, t && (document.addEventListener("keydown", qde), addEventListener("resize", () => {
- VP.open && fF();
+function Xde(e) {
+ let t = !RP;
+ return RP = e, t && (document.addEventListener("keydown", Yde), addEventListener("resize", () => {
+ BP.open && dF();
}), addEventListener("pagehide", () => {
- QP.forEach((e) => RN(e.session));
- })), Kde;
+ ZP.forEach((e) => IN(e.session));
+ })), Jde;
}
-function Yde() {
- let e = (0, F.useSyncExternalStore)(Tde, () => VP);
- return zP ? /* @__PURE__ */ (0, I.jsx)(Gde, { view: e }) : null;
+function Zde() {
+ let e = (0, F.useSyncExternalStore)(Dde, () => BP);
+ return RP ? /* @__PURE__ */ (0, I.jsx)(qde, { view: e }) : null;
}
// src/manage-header.ts
-var FF = {
- ...Zf,
+var PF = {
+ ...Xf,
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
"/review": "人工复核",
"/trash": "回收站",
"/quality-goals": "高清版",
"/sources": "来源和凭证"
-}, Xde = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
-function Zde(e) {
- let t = FF[e.path] ? "cleanup" : e.section;
+}, Qde = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
+function $de(e) {
+ let t = PF[e.path] ? "cleanup" : e.section;
return e.menu.some(([e]) => e === t) ? t : "";
}
-var Qde = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
-function IF(e) {
+var efe = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
+function FF(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = FF[e.path] ?? "";
+ let n = PF[e.path] ?? "";
return {
title: e.section === "cleanup" && n || t[1],
- pressed: Zde(e),
+ pressed: $de(e),
crumb: n,
- compact: Xde.has(e.path) || e.section === "configuration",
+ compact: Qde.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: Qde(e.trash),
+ text: efe(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var LF = (e) => e.replace(/[&<>"']/g, (e) => ({
+var IF = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
-})[e]), RF = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${LF(e)}"/></svg>`, zF = "<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 $de(e) {
- let t = IF(e);
+})[e]), LF = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${IF(e)}"/></svg>`, RF = "<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 tfe(e) {
+ let t = FF(e);
if (!t) return "";
let n = e.menu.map(([e, n, r]) => {
let i = e === t.pressed;
- return `<button type="button" data-manage="${LF(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${RF(r)}<span>${LF(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${RF("chevron-right")}</li><li aria-current="true"><span>${LF(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? zF : `<span data-lede-text="">${LF(t.lede.text)}</span>${t.lede.total ? efe : ""}`}</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=\"\"" : ""}>${LF(t.title)}</h2>` + i;
+ return `<button type="button" data-manage="${IF(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${LF(r)}<span>${IF(n)}</span></button>`;
+ }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${LF("chevron-right")}</li><li aria-current="true"><span>${IF(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? RF : `<span data-lede-text="">${IF(t.lede.text)}</span>${t.lede.total ? nfe : ""}`}</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=\"\"" : ""}>${IF(t.title)}</h2>` + i;
}
-var efe = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
+var nfe = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
// src/react/settings-panel/icon.tsx
-function BF({ name: e }) {
+function zF({ name: e }) {
let { wide: t, viewBox: n } = Cn(e);
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: n,
@@ -35338,7 +35351,7 @@ function BF({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function tfe({ name: e }) {
+function rfe({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -35346,88 +35359,88 @@ function tfe({ name: e }) {
});
}
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
-var nfe = (e, t) => {
+var ife = (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;
-}, rfe = (e, t) => ({
+}, afe = (e, t) => ({
classGroupId: e,
validator: t
-}), VF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), BF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), HF = "-", UF = [], ife = "arbitrary..", afe = (e) => {
- let t = sfe(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), VF = "-", HF = [], ofe = "arbitrary..", sfe = (e) => {
+ let t = lfe(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return ofe(e);
- let n = e.split(HF);
- return WF(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return cfe(e);
+ let n = e.split(VF);
+ return UF(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? nfe(i, t) : t : i || UF;
+ return t ? i ? ife(i, t) : t : i || HF;
}
- return n[e] || UF;
+ return n[e] || HF;
}
};
-}, WF = (e, t, n) => {
+}, UF = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = WF(e, t + 1, i);
+ let n = UF(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(HF) : e.slice(t).join(HF), s = a.length;
+ let o = t === 0 ? e.join(VF) : e.slice(t).join(VF), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, ofe = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, cfe = (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 ? ife + r : void 0;
-})(), sfe = (e) => {
+ return r ? ofe + r : void 0;
+})(), lfe = (e) => {
let { theme: t, classGroups: n } = e;
- return cfe(n, t);
-}, cfe = (e, t) => {
- let n = VF();
+ return ufe(n, t);
+}, ufe = (e, t) => {
+ let n = BF();
for (let r in e) {
let i = e[r];
- GF(i, n, r, t);
+ WF(i, n, r, t);
}
return n;
-}, GF = (e, t, n, r) => {
+}, WF = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- lfe(i, t, n, r);
+ dfe(i, t, n, r);
}
-}, lfe = (e, t, n, r) => {
- typeof e == "string" ? ufe(e, t, n) : typeof e == "function" ? dfe(e, t, n, r) : ffe(e, t, n, r);
-}, ufe = (e, t, n) => {
- let r = e === "" ? t : KF(t, e);
- r.classGroupId = n;
}, dfe = (e, t, n, r) => {
- pfe(e) ? GF(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(rfe(n, e)));
-}, ffe = (e, t, n, r) => {
+ typeof e == "string" ? ffe(e, t, n) : typeof e == "function" ? pfe(e, t, n, r) : mfe(e, t, n, r);
+}, ffe = (e, t, n) => {
+ let r = e === "" ? t : GF(t, e);
+ r.classGroupId = n;
+}, pfe = (e, t, n, r) => {
+ hfe(e) ? WF(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(afe(n, e)));
+}, mfe = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- GF(o, KF(t, a), n, r);
+ WF(o, GF(t, a), n, r);
}
-}, KF = (e, t) => {
- let n = e, r = t.split(HF), i = r.length;
+}, GF = (e, t) => {
+ let n = e, r = t.split(VF), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = VF(), n.nextPart.set(t, i)), n = i;
+ i || (i = BF(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, pfe = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, mfe = (e) => {
+}, hfe = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, gfe = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -35445,19 +35458,19 @@ var nfe = (e, t) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, qF = "!", JF = ":", hfe = [], YF = (e, t, n, r, i) => ({
+}, KF = "!", qF = ":", _fe = [], JF = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), gfe = (e) => {
+}), vfe = (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 === JF) {
+ if (o === qF) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -35469,13 +35482,13 @@ var nfe = (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(qF) ? (c = s.slice(0, -1), l = !0) : s.startsWith(qF) && (c = s.slice(1), l = !0);
+ s.endsWith(KF) ? (c = s.slice(0, -1), l = !0) : s.startsWith(KF) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return YF(t, l, c, u);
+ return JF(t, l, c, u);
};
if (t) {
- let e = t + JF, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : YF(hfe, !1, t, void 0, !0);
+ let e = t + qF, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : JF(_fe, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -35485,7 +35498,7 @@ var nfe = (e, t) => {
});
}
return r;
-}, _fe = (e) => {
+}, yfe = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -35497,18 +35510,18 @@ var nfe = (e, t) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, vfe = (e) => ({
- cache: mfe(e.cacheSize),
- parseClassName: gfe(e),
- sortModifiers: _fe(e),
- postfixLookupClassGroupIds: yfe(e),
- ...afe(e)
-}), yfe = (e) => {
+}, bfe = (e) => ({
+ cache: gfe(e.cacheSize),
+ parseClassName: vfe(e),
+ sortModifiers: yfe(e),
+ postfixLookupClassGroupIds: xfe(e),
+ ...sfe(e)
+}), xfe = (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;
-}, bfe = /\s+/, xfe = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(bfe), l = "";
+}, Sfe = /\s+/, Cfe = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Sfe), 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) {
@@ -35528,7 +35541,7 @@ var nfe = (e, t) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + qF : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + KF : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -35539,34 +35552,34 @@ var nfe = (e, t) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, Sfe = (...e) => {
+}, wfe = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = XF(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = YF(n)) && (i && (i += " "), i += r);
return i;
-}, XF = (e) => {
+}, YF = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = XF(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = YF(e[r])) && (n && (n += " "), n += t);
return n;
-}, ZF = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = vfe(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, XF = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = bfe(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 = xfe(e, n);
+ let a = Cfe(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(Sfe(...e));
-}, Cfe = [], QF = (e) => {
- let t = (t) => t[e] || Cfe;
+ return a = o, (...e) => a(wfe(...e));
+}, Tfe = [], ZF = (e) => {
+ let t = (t) => t[e] || Tfe;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, $F = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, eI = /^\((?:(\w[\w-]*):)?(.+)\)$/i, wfe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Tfe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Efe = /\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$/, Dfe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Ofe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, kfe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, tI = (e) => wfe.test(e), nI = (e) => !!e && !Number.isNaN(Number(e)), rI = (e) => !!e && Number.isInteger(Number(e)), iI = (e) => e.endsWith("%") && nI(e.slice(0, -1)), aI = (e) => Tfe.test(e), oI = () => !0, Afe = (e) => Efe.test(e) && !Dfe.test(e), sI = () => !1, jfe = (e) => Ofe.test(e), Mfe = (e) => kfe.test(e), Nfe = (e) => !cI(e) && !pI(e), Pfe = (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)), Ffe = (e) => _I(e, xI, sI), cI = (e) => $F.test(e), lI = (e) => _I(e, SI, Afe), uI = (e) => _I(e, Ufe, nI), Ife = (e) => _I(e, wI, oI), Lfe = (e) => _I(e, CI, sI), dI = (e) => _I(e, yI, sI), Rfe = (e) => _I(e, bI, Mfe), fI = (e) => _I(e, TI, jfe), pI = (e) => eI.test(e), mI = (e) => vI(e, SI), zfe = (e) => vI(e, CI), hI = (e) => vI(e, yI), Bfe = (e) => vI(e, xI), Vfe = (e) => vI(e, bI), gI = (e) => vI(e, TI, !0), Hfe = (e) => vI(e, wI, !0), _I = (e, t, n) => {
- let r = $F.exec(e);
+}, QF = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, $F = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Efe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Dfe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ofe = /\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$/, kfe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Afe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, jfe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, eI = (e) => Efe.test(e), tI = (e) => !!e && !Number.isNaN(Number(e)), nI = (e) => !!e && Number.isInteger(Number(e)), rI = (e) => e.endsWith("%") && tI(e.slice(0, -1)), iI = (e) => Dfe.test(e), aI = () => !0, Mfe = (e) => Ofe.test(e) && !kfe.test(e), oI = () => !1, Nfe = (e) => Afe.test(e), Pfe = (e) => jfe.test(e), Ffe = (e) => !sI(e) && !fI(e), Ife = (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)), Lfe = (e) => gI(e, bI, oI), sI = (e) => QF.test(e), cI = (e) => gI(e, xI, Mfe), lI = (e) => gI(e, Gfe, tI), Rfe = (e) => gI(e, CI, aI), zfe = (e) => gI(e, SI, oI), uI = (e) => gI(e, vI, oI), Bfe = (e) => gI(e, yI, Pfe), dI = (e) => gI(e, wI, Nfe), fI = (e) => $F.test(e), pI = (e) => _I(e, xI), Vfe = (e) => _I(e, SI), mI = (e) => _I(e, vI), Hfe = (e) => _I(e, bI), Ufe = (e) => _I(e, yI), hI = (e) => _I(e, wI, !0), Wfe = (e) => _I(e, CI, !0), gI = (e, t, n) => {
+ let r = QF.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, vI = (e, t, n = !1) => {
- let r = eI.exec(e);
+}, _I = (e, t, n = !1) => {
+ let r = $F.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, yI = (e) => e === "position" || e === "percentage", bI = (e) => e === "image" || e === "url", xI = (e) => e === "length" || e === "size" || e === "bg-size", SI = (e) => e === "length", Ufe = (e) => e === "number", CI = (e) => e === "family-name", wI = (e) => e === "number" || e === "weight", TI = (e) => e === "shadow", EI = () => {
- let e = QF("color"), t = QF("font"), n = QF("text"), r = QF("font-weight"), i = QF("tracking"), a = QF("leading"), o = QF("breakpoint"), s = QF("container"), c = QF("spacing"), l = QF("radius"), u = QF("shadow"), d = QF("inset-shadow"), f = QF("text-shadow"), p = QF("drop-shadow"), m = QF("blur"), h = QF("perspective"), g = QF("aspect"), _ = QF("ease"), v = QF("animate"), y = () => [
+}, vI = (e) => e === "position" || e === "percentage", yI = (e) => e === "image" || e === "url", bI = (e) => e === "length" || e === "size" || e === "bg-size", xI = (e) => e === "length", Gfe = (e) => e === "number", SI = (e) => e === "family-name", CI = (e) => e === "number" || e === "weight", wI = (e) => e === "shadow", TI = () => {
+ let e = ZF("color"), t = ZF("font"), n = ZF("text"), r = ZF("font-weight"), i = ZF("tracking"), a = ZF("leading"), o = ZF("breakpoint"), s = ZF("container"), c = ZF("spacing"), l = ZF("radius"), u = ZF("shadow"), d = ZF("inset-shadow"), f = ZF("text-shadow"), p = ZF("drop-shadow"), m = ZF("blur"), h = ZF("perspective"), g = ZF("aspect"), _ = ZF("ease"), v = ZF("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -35591,8 +35604,8 @@ var nfe = (e, t) => {
"left-bottom"
], x = () => [
...b(),
- pI,
- cI
+ fI,
+ sI
], S = () => [
"auto",
"hidden",
@@ -35604,43 +35617,43 @@ var nfe = (e, t) => {
"contain",
"none"
], w = () => [
- pI,
- cI,
+ fI,
+ sI,
c
], T = () => [
- tI,
+ eI,
"full",
"auto",
...w()
], E = () => [
- rI,
+ nI,
"none",
"subgrid",
- pI,
- cI
+ fI,
+ sI
], D = () => [
"auto",
{ span: [
"full",
- rI,
- pI,
- cI
+ nI,
+ fI,
+ sI
] },
- rI,
- pI,
- cI
+ nI,
+ fI,
+ sI
], O = () => [
- rI,
+ nI,
"auto",
- pI,
- cI
+ fI,
+ sI
], k = () => [
"auto",
"min",
"max",
"fr",
- pI,
- cI
+ fI,
+ sI
], A = () => [
"start",
"end",
@@ -35660,7 +35673,7 @@ var nfe = (e, t) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], ee = () => [
- tI,
+ eI,
"auto",
"full",
"dvw",
@@ -35675,7 +35688,7 @@ var nfe = (e, t) => {
...w()
], N = () => [
s,
- tI,
+ eI,
"screen",
"full",
"dvw",
@@ -35686,7 +35699,7 @@ var nfe = (e, t) => {
"fit",
...w()
], te = () => [
- tI,
+ eI,
"screen",
"full",
"lh",
@@ -35699,13 +35712,13 @@ var nfe = (e, t) => {
...w()
], P = () => [
e,
- pI,
- cI
+ fI,
+ sI
], ne = () => [
...b(),
- hI,
- dI,
- { position: [pI, cI] }
+ mI,
+ uI,
+ { position: [fI, sI] }
], re = () => ["no-repeat", { repeat: [
"",
"x",
@@ -35716,25 +35729,25 @@ var nfe = (e, t) => {
"auto",
"cover",
"contain",
- Bfe,
- Ffe,
- { size: [pI, cI] }
+ Hfe,
+ Lfe,
+ { size: [fI, sI] }
], I = () => [
- iI,
- mI,
- lI
+ rI,
+ pI,
+ cI
], ie = () => [
"",
"none",
"full",
l,
- pI,
- cI
+ fI,
+ sI
], ae = () => [
"",
- nI,
- mI,
- lI
+ tI,
+ pI,
+ cI
], oe = () => [
"solid",
"dashed",
@@ -35758,32 +35771,32 @@ var nfe = (e, t) => {
"color",
"luminosity"
], ce = () => [
- nI,
- iI,
- hI,
- dI
+ tI,
+ rI,
+ mI,
+ uI
], le = () => [
"",
"none",
m,
- pI,
- cI
+ fI,
+ sI
], ue = () => [
"none",
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
], de = () => [
"none",
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
], fe = () => [
- nI,
- pI,
- cI
- ], pe = () => [
tI,
+ fI,
+ sI
+ ], pe = () => [
+ eI,
"full",
...w()
];
@@ -35797,17 +35810,17 @@ var nfe = (e, t) => {
"bounce"
],
aspect: ["video"],
- blur: [aI],
- breakpoint: [aI],
- color: [oI],
- container: [aI],
- "drop-shadow": [aI],
+ blur: [iI],
+ breakpoint: [iI],
+ color: [aI],
+ container: [iI],
+ "drop-shadow": [iI],
ease: [
"in",
"out",
"in-out"
],
- font: [Nfe],
+ font: [Ffe],
"font-weight": [
"thin",
"extralight",
@@ -35819,7 +35832,7 @@ var nfe = (e, t) => {
"extrabold",
"black"
],
- "inset-shadow": [aI],
+ "inset-shadow": [iI],
leading: [
"none",
"tight",
@@ -35836,11 +35849,11 @@ var nfe = (e, t) => {
"distant",
"none"
],
- radius: [aI],
- shadow: [aI],
- spacing: ["px", nI],
- text: [aI],
- "text-shadow": [aI],
+ radius: [iI],
+ shadow: [iI],
+ spacing: ["px", tI],
+ text: [iI],
+ "text-shadow": [iI],
tracking: [
"tighter",
"tight",
@@ -35854,9 +35867,9 @@ var nfe = (e, t) => {
aspect: [{ aspect: [
"auto",
"square",
- tI,
- cI,
- pI,
+ eI,
+ sI,
+ fI,
g
] }],
container: ["container"],
@@ -35864,15 +35877,15 @@ var nfe = (e, t) => {
"",
"normal",
"size",
- pI,
- cI
+ fI,
+ sI
] }],
- "container-named": [Pfe],
+ "container-named": [Ife],
columns: [{ columns: [
- nI,
+ tI,
"auto",
- cI,
- pI,
+ sI,
+ fI,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -35969,13 +35982,13 @@ var nfe = (e, t) => {
"collapse"
],
z: [{ z: [
- rI,
+ nI,
"auto",
- pI,
- cI
+ fI,
+ sI
] }],
basis: [{ basis: [
- tI,
+ eI,
"full",
"auto",
s,
@@ -35993,32 +36006,32 @@ var nfe = (e, t) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- nI,
tI,
+ eI,
"auto",
"initial",
"none",
- cI
+ sI
] }],
grow: [{ grow: [
"",
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
] }],
shrink: [{ shrink: [
"",
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
] }],
order: [{ order: [
- rI,
+ nI,
"first",
"last",
"none",
- pI,
- cI
+ fI,
+ sI
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -36125,15 +36138,15 @@ var nfe = (e, t) => {
"font-size": [{ text: [
"base",
n,
- mI,
- lI
+ pI,
+ cI
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- Hfe,
- Ife
+ Wfe,
+ Rfe
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -36145,15 +36158,15 @@ var nfe = (e, t) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- iI,
- cI
+ rI,
+ sI
] }],
"font-family": [{ font: [
+ Vfe,
zfe,
- Lfe,
t
] }],
- "font-features": [{ "font-features": [cI] }],
+ "font-features": [{ "font-features": [sI] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -36162,14 +36175,14 @@ var nfe = (e, t) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- pI,
- cI
+ fI,
+ sI
] }],
"line-clamp": [{ "line-clamp": [
- nI,
+ tI,
"none",
- pI,
- uI
+ fI,
+ lI
] }],
leading: [{ leading: [
"none",
@@ -36178,16 +36191,16 @@ var nfe = (e, t) => {
] }],
"list-image": [{ "list-image": [
"none",
- pI,
- cI
+ fI,
+ sI
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- pI,
- cI
+ fI,
+ sI
] }],
"text-alignment": [{ text: [
"left",
@@ -36207,18 +36220,18 @@ var nfe = (e, t) => {
],
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- nI,
+ tI,
"from-font",
"auto",
- pI,
- lI
+ fI,
+ cI
] }],
"text-decoration-color": [{ decoration: P() }],
"underline-offset": [{ "underline-offset": [
- nI,
+ tI,
"auto",
- pI,
- cI
+ fI,
+ sI
] }],
"text-transform": [
"uppercase",
@@ -36239,9 +36252,9 @@ var nfe = (e, t) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- rI,
- pI,
- cI
+ nI,
+ fI,
+ sI
] }],
"vertical-align": [{ align: [
"baseline",
@@ -36252,8 +36265,8 @@ var nfe = (e, t) => {
"text-bottom",
"sub",
"super",
- pI,
- cI
+ fI,
+ sI
] }],
whitespace: [{ whitespace: [
"normal",
@@ -36281,8 +36294,8 @@ var nfe = (e, t) => {
] }],
content: [{ content: [
"none",
- pI,
- cI
+ fI,
+ sI
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -36317,24 +36330,24 @@ var nfe = (e, t) => {
"l",
"tl"
] },
- rI,
- pI,
- cI
+ nI,
+ fI,
+ sI
],
radial: [
"",
- pI,
- cI
+ fI,
+ sI
],
conic: [
"",
- rI,
- pI,
- cI
+ nI,
+ fI,
+ sI
]
},
- Vfe,
- Rfe
+ Ufe,
+ Bfe
] }],
"bg-color": [{ bg: P() }],
"gradient-from-pos": [{ from: I() }],
@@ -36401,15 +36414,15 @@ var nfe = (e, t) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
] }],
"outline-w": [{ outline: [
"",
- nI,
- mI,
- lI
+ tI,
+ pI,
+ cI
] }],
"outline-color": [{ outline: P() }],
shadow: [{ shadow: [
@@ -36417,35 +36430,35 @@ var nfe = (e, t) => {
"inner",
"none",
u,
- gI,
- fI
+ hI,
+ dI
] }],
"shadow-color": [{ shadow: P() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- gI,
- fI
+ hI,
+ dI
] }],
"inset-shadow-color": [{ "inset-shadow": P() }],
"ring-w": [{ ring: ae() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: P() }],
- "ring-offset-w": [{ "ring-offset": [nI, lI] }],
+ "ring-offset-w": [{ "ring-offset": [tI, cI] }],
"ring-offset-color": [{ "ring-offset": P() }],
"inset-ring-w": [{ "inset-ring": ae() }],
"inset-ring-color": [{ "inset-ring": P() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- gI,
- fI
+ hI,
+ dI
] }],
"text-shadow-color": [{ "text-shadow": P() }],
opacity: [{ opacity: [
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
] }],
"mix-blend": [{ "mix-blend": [
...se(),
@@ -36467,7 +36480,7 @@ var nfe = (e, t) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [nI] }],
+ "mask-image-linear-pos": [{ "mask-linear": [tI] }],
"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() }],
@@ -36496,7 +36509,7 @@ var nfe = (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": [pI, cI] }],
+ "mask-image-radial": [{ "mask-radial": [fI, sI] }],
"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() }],
@@ -36507,7 +36520,7 @@ var nfe = (e, t) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [nI] }],
+ "mask-image-conic-pos": [{ "mask-conic": [tI] }],
"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() }],
@@ -36531,111 +36544,111 @@ var nfe = (e, t) => {
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- pI,
- cI
+ fI,
+ sI
] }],
filter: [{ filter: [
"",
"none",
- pI,
- cI
+ fI,
+ sI
] }],
blur: [{ blur: le() }],
brightness: [{ brightness: [
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
] }],
contrast: [{ contrast: [
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- gI,
- fI
+ hI,
+ dI
] }],
"drop-shadow-color": [{ "drop-shadow": P() }],
grayscale: [{ grayscale: [
"",
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
] }],
"hue-rotate": [{ "hue-rotate": [
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
] }],
invert: [{ invert: [
"",
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
] }],
saturate: [{ saturate: [
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
] }],
sepia: [{ sepia: [
"",
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- pI,
- cI
+ fI,
+ sI
] }],
"backdrop-blur": [{ "backdrop-blur": le() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -36651,39 +36664,39 @@ var nfe = (e, t) => {
"shadow",
"transform",
"none",
- pI,
- cI
+ fI,
+ sI
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- nI,
+ tI,
"initial",
- pI,
- cI
+ fI,
+ sI
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- pI,
- cI
+ fI,
+ sI
] }],
delay: [{ delay: [
- nI,
- pI,
- cI
+ tI,
+ fI,
+ sI
] }],
animate: [{ animate: [
"none",
v,
- pI,
- cI
+ fI,
+ sI
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- pI,
- cI
+ fI,
+ sI
] }],
"perspective-origin": [{ "perspective-origin": x() }],
rotate: [{ rotate: ue() }],
@@ -36699,8 +36712,8 @@ var nfe = (e, t) => {
"skew-x": [{ "skew-x": fe() }],
"skew-y": [{ "skew-y": fe() }],
transform: [{ transform: [
- pI,
- cI,
+ fI,
+ sI,
"",
"none",
"gpu",
@@ -36714,9 +36727,9 @@ var nfe = (e, t) => {
"translate-z": [{ "translate-z": pe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- rI,
- pI,
- cI
+ nI,
+ fI,
+ sI
] }],
accent: [{ accent: P() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -36766,8 +36779,8 @@ var nfe = (e, t) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- pI,
- cI
+ fI,
+ sI
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -36853,15 +36866,15 @@ var nfe = (e, t) => {
"scroll",
"contents",
"transform",
- pI,
- cI
+ fI,
+ sI
] }],
fill: [{ fill: ["none", ...P()] }],
"stroke-w": [{ stroke: [
- nI,
- mI,
- lI,
- uI
+ tI,
+ pI,
+ cI,
+ lI
] }],
stroke: [{ stroke: ["none", ...P()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -37119,16 +37132,16 @@ var nfe = (e, t) => {
"selection"
]
};
-}, Wfe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (DI(e, "cacheSize", t), DI(e, "prefix", n), DI(e, "experimentalParseClassName", r), OI(e.theme, a.theme), OI(e.classGroups, a.classGroups), OI(e.conflictingClassGroups, a.conflictingClassGroups), OI(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), DI(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), DI(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), kI(e.theme, i.theme), kI(e.classGroups, i.classGroups), kI(e.conflictingClassGroups, i.conflictingClassGroups), kI(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), AI(e, i, "postfixLookupClassGroups"), AI(e, i, "orderSensitiveModifiers"), e), DI = (e, t, n) => {
+}, Kfe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (EI(e, "cacheSize", t), EI(e, "prefix", n), EI(e, "experimentalParseClassName", r), DI(e.theme, a.theme), DI(e.classGroups, a.classGroups), DI(e.conflictingClassGroups, a.conflictingClassGroups), DI(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), EI(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), EI(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), OI(e.theme, i.theme), OI(e.classGroups, i.classGroups), OI(e.conflictingClassGroups, i.conflictingClassGroups), OI(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), kI(e, i, "postfixLookupClassGroups"), kI(e, i, "orderSensitiveModifiers"), e), EI = (e, t, n) => {
n !== void 0 && (e[t] = n);
+}, DI = (e, t) => {
+ if (t) for (let n in t) EI(e, n, t[n]);
}, OI = (e, t) => {
- if (t) for (let n in t) DI(e, n, t[n]);
-}, kI = (e, t) => {
- if (t) for (let n in t) AI(e, t, n);
-}, AI = (e, t, n) => {
+ if (t) for (let n in t) kI(e, t, n);
+}, kI = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, Gfe = (e, ...t) => typeof e == "function" ? ZF(EI, e, ...t) : ZF(() => Wfe(EI(), e), ...t), Kfe = [
+}, qfe = (e, ...t) => typeof e == "function" ? XF(TI, e, ...t) : XF(() => Kfe(TI(), e), ...t), Jfe = [
"large-title",
"display-1",
"display-2",
@@ -37142,17 +37155,17 @@ var nfe = (e, t) => {
"body-2",
"caption-1",
"caption-2"
-], qfe = [
+], Yfe = [
"regular",
"medium",
"semibold",
"bold"
-], J = Gfe({ extend: { classGroups: { "font-size": [{ text: Kfe.flatMap((e) => qfe.map((t) => `${e}-${t}`)) }] } } });
-function jI(e) {
+], J = qfe({ extend: { classGroups: { "font-size": [{ text: Jfe.flatMap((e) => Yfe.map((t) => `${e}-${t}`)) }] } } });
+function AI(e) {
return e;
}
// src/react/components/pill-tab.tsx
-var Jfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, MI = jI({
+var Xfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, jI = AI({
radius: {
blue: "rounded-full",
gray: "rounded-2lg"
@@ -37174,9 +37187,9 @@ var Jfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, MI = jI({
gray: "text-text-primary"
}
});
-function NI({ children: e, className: t, ref: n, container: r, ...i }) {
+function MI({ children: e, className: t, ref: n, container: r, ...i }) {
let a = (0, F.useRef)(null), [o, s] = (0, F.useState)(null);
- Jfe(() => {
+ Xfe(() => {
let e = r === void 0 ? a.current : r;
if (!e) return;
let t = () => {
@@ -37212,7 +37225,7 @@ function NI({ children: e, className: t, ref: n, container: r, ...i }) {
}, l = o && /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-pill-thumb": "",
- className: J("pointer-events-none absolute left-0 top-0", MI.radius[o.variant], MI.thumb[o.variant]),
+ className: J("pointer-events-none absolute left-0 top-0", jI.radius[o.variant], jI.thumb[o.variant]),
style: {
"--pill-left": `${o.left}px`,
"--pill-top": `${o.top}px`,
@@ -37229,37 +37242,37 @@ function NI({ 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 PI = null, FI = null, II = /* @__PURE__ */ new Set();
-function Yfe(e) {
- return II.add(e), () => {
- II.delete(e);
+var NI = null, PI = null, FI = /* @__PURE__ */ new Set();
+function Zfe(e) {
+ return FI.add(e), () => {
+ FI.delete(e);
};
}
-function Xfe() {
- for (let e of [...II]) e();
+function Qfe() {
+ for (let e of [...FI]) e();
}
-var Zfe = { render(e) {
- FI = e, (0, Rt.flushSync)(Xfe);
+var $fe = { render(e) {
+ PI = e, (0, Rt.flushSync)(Qfe);
} };
-function Qfe(e) {
- return PI = e, FI = null, Zfe;
+function epe(e) {
+ return NI = e, PI = null, $fe;
}
-function $fe() {
- let e = (0, F.useSyncExternalStore)(Yfe, () => FI);
- return PI && e ? /* @__PURE__ */ (0, I.jsx)(epe, {
- host: PI,
+function tpe() {
+ let e = (0, F.useSyncExternalStore)(Zfe, () => PI);
+ return NI && e ? /* @__PURE__ */ (0, I.jsx)(npe, {
+ host: NI,
props: e
}) : null;
}
-function epe({ host: e, props: t }) {
- let n = IF(t);
+function npe({ host: e, props: t }) {
+ let n = FF(t);
return n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(tpe, {
+ /* @__PURE__ */ (0, I.jsx)(rpe, {
host: e,
pressed: n.pressed,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, I.jsx)(npe, {
+ n.crumb ? /* @__PURE__ */ (0, I.jsx)(ipe, {
host: e,
label: n.crumb
}) : null,
@@ -37268,13 +37281,13 @@ function epe({ host: e, props: t }) {
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)(rpe, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)(ape, {
host: e,
lede: n.lede
})
] }) : null;
}
-function tpe({ host: e, pressed: t, menu: n }) {
+function rpe({ 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\"]");
@@ -37284,7 +37297,7 @@ function tpe({ host: e, pressed: t, menu: n }) {
}, [t, n]), /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-bar": "",
"aria-label": "管理",
- children: /* @__PURE__ */ (0, I.jsx)(NI, {
+ children: /* @__PURE__ */ (0, I.jsx)(MI, {
ref: r,
"data-manage-menu": "",
"data-pill-nav": "",
@@ -37298,13 +37311,13 @@ function tpe({ 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)(BF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, I.jsx)(zF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
}, n);
})
})
});
}
-function npe({ host: e, label: t }) {
+function ipe({ host: e, label: t }) {
return /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "当前位置",
@@ -37314,20 +37327,20 @@ function npe({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
+ }), /* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, I.jsx)("span", { children: t })
})] })
});
}
-function rpe({ host: e, lede: t }) {
+function ape({ 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: zF }
- }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(ipe, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: RF }
+ }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(ope, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -37337,39 +37350,39 @@ function rpe({ host: e, lede: t }) {
}) : null] })
});
}
-function ipe({ text: e }) {
+function ope({ text: e }) {
let t = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
- Ys(t.current, e);
+ Js(t.current, e);
}, [e]), /* @__PURE__ */ (0, I.jsx)("span", {
ref: t,
"data-lede-text": ""
});
}
// src/core/text-lang.ts
-var ape = /[぀-ヿㇰ-ㇿヲ-゚]/, ope = /[㐀-鿿豈-﫿]/, spe = /[A-Za-z]/;
-function LI(e) {
+var spe = /[぀-ヿㇰ-ㇿヲ-゚]/, cpe = /[㐀-鿿豈-﫿]/, lpe = /[A-Za-z]/;
+function II(e) {
let t = String(e ?? "");
- if (ape.test(t)) return "ja";
- if (!ope.test(t) && spe.test(t)) return "en";
+ if (spe.test(t)) return "ja";
+ if (!cpe.test(t) && lpe.test(t)) return "en";
}
-var cpe = (e) => {
- let t = LI(e);
+var upe = (e) => {
+ let t = II(e);
return t ? ` lang="${t}"` : "";
-}, lpe = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, upe = (e, t = e?.name) => {
+}, dpe = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, fpe = (e, t = e?.name) => {
let n = String(t || "").trim();
- return e?.is_jav ? n.replace(lpe, "") : n;
-}, dpe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), fpe = (e) => {
+ return e?.is_jav ? n.replace(dpe, "") : n;
+}, ppe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), mpe = (e) => {
let t = [e?.catalog_title, e?.original_title].map((e) => String(e || "").trim()).filter(Boolean);
- return t.find(dpe) || t[0] || "";
+ return t.find(ppe) || t[0] || "";
};
-function RI(e, t = e?.name) {
- let n = upe(e, t), r = String(e?.code || "").trim().toUpperCase();
+function LI(e, t = e?.name) {
+ let n = fpe(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 = fpe(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 = mpe(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) => [
"中字",
"无码",
"无码流出",
@@ -37381,23 +37394,23 @@ function RI(e, t = e?.name) {
badges: f
};
}
-var zI = (e, t = e?.name) => {
- let { code: n, title: r, badges: i = [] } = RI(e, t);
+var RI = (e, t = e?.name) => {
+ let { code: n, title: r, badges: i = [] } = LI(e, t);
return n ? [
n,
...i,
r
].filter(Boolean).join(" ") : r;
};
-function BI(e, t = e?.name) {
- let { code: n, title: r, badges: i = [] } = RI(e, t);
+function zI(e, t = e?.name) {
+ let { code: n, title: r, badges: i = [] } = LI(e, t);
if (!n) return z(r);
let a = i.map((e) => `<small class="javedition ${e === "中字" ? "subtitle" : e === "无码" ? "uncensored" : e === "无码流出" ? "leaked" : 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"${cpe(r)}>${z(r)}</span>` : ""}`;
+ return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${upe(r)}>${z(r)}</span>` : ""}`;
}
// src/react/activity/tasks.ts
-var VI = "/api/tasks", HI = ["tasks"];
-function ppe(e, t) {
+var BI = "/api/tasks", VI = ["tasks"];
+function hpe(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 {
@@ -37408,7 +37421,7 @@ function ppe(e, t) {
settled: n - r
};
}
-function mpe(e, t = () => "") {
+function gpe(e, t = () => "") {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e = `${r.task_key}\u0000${t(r)}`, i = n.get(e);
@@ -37419,11 +37432,11 @@ function mpe(e, t = () => "") {
}
return [...n.values()];
}
-var hpe = (e, t) => B(`${VI}?${new URLSearchParams({
+var _pe = (e, t) => B(`${BI}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function gpe(...e) {
+function vpe(...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) => {
@@ -37431,26 +37444,26 @@ function gpe(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var _pe = 2e3, vpe = 1e4, UI = (e) => e?.running?.length ? _pe : vpe, WI = (e) => B(VI, e), ype = (e, t, n) => V(`${VI}/${e}/control`, { action: t }, "POST", n);
-async function bpe(e) {
+var ype = 2e3, bpe = 1e4, HI = (e) => e?.running?.length ? ype : bpe, UI = (e) => B(BI, e), xpe = (e, t, n) => V(`${BI}/${e}/control`, { action: t }, "POST", n);
+async function Spe(e) {
await H.fetchQuery({
- queryKey: HI,
- queryFn: () => WI(e)
+ queryKey: VI,
+ queryFn: () => UI(e)
});
}
-var xpe = {
+var Cpe = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, Spe = {
+}, wpe = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "意外中断"
-}, Cpe = (e) => Spe[e] || e, GI = {
+}, Tpe = (e) => wpe[e] || e, WI = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -37527,7 +37540,7 @@ var xpe = {
without_code: "未识别番号",
incomplete: "资料或封面未取得",
result: "结果"
-}, wpe = [
+}, Epe = [
"gone_count",
"unclear_count",
"source_failed",
@@ -37549,14 +37562,14 @@ var xpe = {
"paused_count",
"miss",
"incomplete"
-], Tpe = ["face_match_unavailable"], KI = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || Tpe.some((t) => e.result_summary?.[t] === !0) || wpe.some((t) => Number(e.result_summary?.[t]) > 0);
-function Epe(e) {
+], Dpe = ["face_match_unavailable"], GI = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || Dpe.some((t) => e.result_summary?.[t] === !0) || Epe.some((t) => Number(e.result_summary?.[t]) > 0);
+function Ope(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 qI = /* @__PURE__ */ new Set(["library-processing"]);
-function Dpe(e, t = !0) {
- if (!KI(e) && e.status !== "failed" || qI.has(e.task_key) && !t) return null;
+var KI = /* @__PURE__ */ new Set(["library-processing"]);
+function kpe(e, t = !0) {
+ if (!GI(e) && e.status !== "failed" || KI.has(e.task_key) && !t) return null;
let n = {
"link-check": ["/data-cleanup#link-manager", "查看有问题的链接"],
"link-prune": ["/data-cleanup#link-manager", "查看有问题的链接"],
@@ -37574,19 +37587,19 @@ function Dpe(e, t = !0) {
label: n[1]
} : null;
}
-function Ope(e) {
+function Ape(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 kpe(e) {
+function jpe(e) {
let t = /* @__PURE__ */ new Map();
- for (let n of e) qI.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) KI.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 Ape(e) {
+function Mpe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -37595,7 +37608,7 @@ function Ape(e) {
}
return t;
}
-function jpe(e, t) {
+function Npe(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -37617,12 +37630,12 @@ function jpe(e, t) {
}
return n;
}
-var Mpe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !KI(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), JI = (e) => e.status === "pending" || e.status === "running";
-function Npe(e) {
+var Ppe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !GI(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), qI = (e) => e.status === "pending" || e.status === "running";
+function Fpe(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, ZI(e.error) || Bpe(o) || (JI(e) && i > 0 ? `${XI(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
+ return [r, XI(e.error) || Hpe(o) || (qI(e) && i > 0 ? `${YI(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
}
-function YI(e) {
+function JI(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
@@ -37631,19 +37644,19 @@ function YI(e) {
let r = Math.floor(n / 60);
return r < 48 ? `${r} 小时 ${n % 60} 分` : `${Math.floor(r / 24).toLocaleString()} 天 ${r % 24} 小时`;
}
-function XI(e, t) {
+function YI(e, t) {
let n = Math.max(0, Number(t) || 0);
return `${Math.min(n, Math.max(0, Number(e) || 0)).toLocaleString()} / ${n.toLocaleString()}`;
}
-function Ppe(e) {
+function Ipe(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 ZI(e) {
- let t = Ppe(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
+function XI(e) {
+ let t = Ipe(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
return n ? xn(n[1]) : t;
}
-var Fpe = {
+var Lpe = {
partial: "处理已结束,部分项目需处理",
complete: "处理完成",
interrupted: "处理已中断",
@@ -37661,11 +37674,11 @@ var Fpe = {
三站都没对上她: "三个来源均未找到与该人物相符的资料页",
已有身份: "已有创作者分类",
已变: "资料已被其他操作修改,本次未保存"
-}, QI = {
+}, ZI = {
avwikidb: "AVWikiDB",
javdb: "JavDB",
"minnano-av": "みんなのAV"
-}, Ipe = {
+}, Rpe = {
like: "标记喜欢",
seen: "标记看过",
later: "加入稍后看",
@@ -37676,8 +37689,8 @@ var Fpe = {
"dismiss-junk": "确认不是垃圾",
"reconsider-junk": "重新判定垃圾",
region: "判定产地"
-}, Lpe = (e) => Fpe[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${QI[t.toLowerCase()]} 资料页` : `已保存来自 ${QI[t.toLowerCase()]} 的资料`);
-function $I(e) {
+}, zpe = (e) => Lpe[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${ZI[t.toLowerCase()]} 资料页` : `已保存来自 ${ZI[t.toLowerCase()]} 的资料`);
+function QI(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -37687,7 +37700,7 @@ function $I(e) {
minute: "2-digit"
});
}
-var Rpe = /* @__PURE__ */ new Set([
+var Bpe = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -37696,23 +37709,23 @@ var Rpe = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function eL(e) {
- let t = zpe(e);
+function $I(e) {
+ let t = Vpe(e);
return e?.face_match_unavailable === !0 && !t.some((e) => /不可用|未生效/.test(e)) && t.push("人脸模型不可用,未做人脸核对"), t;
}
-function zpe(e) {
- return Object.entries(e || {}).filter(([e, t]) => !Rpe.has(e) && (e in GI || 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" ? ZI(String(t)) : e === "outcome" || e === "result" ? Lpe(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${GI[e]} ${Xn(Number(t))}` : e === "operation" ? `操作:${Ipe[String(t)] || "批量操作"}` : `${GI[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
+function Vpe(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !Bpe.has(e) && (e in WI || 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" ? XI(String(t)) : e === "outcome" || e === "result" ? zpe(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${WI[e]} ${Xn(Number(t))}` : e === "operation" ? `操作:${Rpe[String(t)] || "批量操作"}` : `${WI[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
}
-var Bpe = (e) => eL(e).join(" · ");
+var Hpe = (e) => $I(e).join(" · ");
// src/react/use-entity-names.ts
-function tL() {
+function eL() {
return (0, F.useSyncExternalStore)(Yt, Jt, Jt);
}
// src/react/components/async-text.tsx
-function nL({ text: e, busy: t, placeholder: n }) {
+function tL({ 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 && mc(r.current) : i.current = e;
+ e === void 0 ? a === void 0 && pc(r.current) : i.current = e;
}, [e, a]), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-async-text": "",
"aria-busy": t || void 0,
@@ -37730,7 +37743,7 @@ function nL({ text: e, busy: t, placeholder: n }) {
});
}
// src/react/boardui/components/base/buttons/icon-button.tsx
-var rL = jI({
+var nL = AI({
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",
@@ -37741,20 +37754,20 @@ var rL = jI({
small: "size-4 shrink-0"
}
});
-function iL({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function rL({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
ref: i,
type: r,
- className: J(rL.base, rL.size[t], n),
+ className: J(nL.base, nL.size[t], n),
...a,
children: /* @__PURE__ */ (0, I.jsx)(e, {
- className: rL.icon[t],
+ className: nL.icon[t],
"aria-hidden": !0
})
});
}
// src/react/components/glass-drift.tsx
-function aL() {
+function iL() {
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-glass-drift": "",
"aria-hidden": "true",
@@ -37768,7 +37781,7 @@ function aL() {
});
}
// src/react/components/use-stuck.ts
-function oL(e) {
+function aL(e) {
(0, F.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -37785,31 +37798,31 @@ function oL(e) {
}, [e]);
}
// src/react/components/use-horizontal-scroller.ts
-function sL(e, t = !0) {
+function oL(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]);
return (0, F.useLayoutEffect)(() => {
if (!n || !t) return;
n.dataset.horizontalScroll = "";
- let e = jc(n);
+ let e = Ac(n);
return () => {
e.destroy(), delete n.dataset.horizontalScroll, delete n.dataset.overflowLeft, delete n.dataset.overflowRight;
};
}, [n, t]), i;
}
// src/react/components/filter-glass.tsx
-var Vpe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var Upe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: e,
- dangerouslySetInnerHTML: { __html: Vs("正在处理") }
+ dangerouslySetInnerHTML: { __html: Bs("正在处理") }
});
-function cL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(iL, {
+function sL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(rL, {
...a,
"data-filter-action": "",
size: "small",
- icon: n && r === "spinner" ? Vpe : t,
+ icon: n && r === "spinner" ? Upe : t,
"aria-label": e,
title: a.title || e,
"aria-busy": n || void 0,
@@ -37819,9 +37832,9 @@ function cL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress
}
});
}
-function Hpe({ title: e, children: t }) {
+function Wpe({ title: e, children: t }) {
let n = (0, F.useRef)(null);
- return oL(n), /* @__PURE__ */ (0, I.jsxs)("div", {
+ return aL(n), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -37834,13 +37847,13 @@ function Hpe({ title: e, children: t }) {
children: e
}),
t,
- /* @__PURE__ */ (0, I.jsx)(aL, {})
+ /* @__PURE__ */ (0, I.jsx)(iL, {})
]
});
}
-function lL({ 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 = sL(), p = sL(u);
- return oL(d), /* @__PURE__ */ (0, I.jsxs)("div", {
+function cL({ 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 = oL(), p = oL(u);
+ return aL(d), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
@@ -37865,27 +37878,27 @@ function lL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
className: J("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
}),
- /* @__PURE__ */ (0, I.jsx)(aL, {})
+ /* @__PURE__ */ (0, I.jsx)(iL, {})
]
});
}
-var Upe = "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 uL({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var Gpe = "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 lL({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: J(Upe, r),
+ className: J(Gpe, r),
onClick: n,
children: e
});
}
-var Wpe = "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 dL({ children: e, onPress: t, busy: n = !1 }) {
+var Kpe = "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 uL({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: Wpe,
+ className: Kpe,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -37895,13 +37908,13 @@ function dL({ children: e, onPress: t, busy: n = !1 }) {
});
}
// src/react/components/use-view-glide.ts
-var fL = (e, t) => [
+var dL = (e, t) => [
"x",
"y",
"w",
"h"
].every((n) => e[n] === t[n]);
-function pL(e, t, n) {
+function fL(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;
@@ -37925,17 +37938,17 @@ function pL(e, t, n) {
h: e.offsetHeight
};
}
-function mL(e, t, n, r, { axis: i = "x" } = {}) {
+function pL(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 ? pL(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? fL(u, l, i) : null;
if (!d || !d.w || !d.h) {
- qc(s), s.hidden = !0, a.current = null;
+ Kc(s), s.hidden = !0, a.current = null;
return;
}
let f = s.hidden ? null : a.current;
- s.hidden = !1, a.current = d, !(o && f && fL(f, d)) && Gc(s, o ? f : null, d, i);
+ s.hidden = !1, a.current = d, !(o && f && dL(f, d)) && Wc(s, o ? f : null, d, i);
}, [
e,
t,
@@ -37956,8 +37969,8 @@ function mL(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 ? pL(o, r, i) : null, l = a.current;
- s && l && fL(s, l) || c();
+ let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? fL(o, r, i) : null, l = a.current;
+ s && l && dL(s, l) || c();
}), u = t.current;
if (u && r) {
l.observe(u);
@@ -37983,12 +37996,12 @@ function mL(e, t, n, r, { axis: i = "x" } = {}) {
e.pointerType !== "touch" && o(null, !0);
}, [o]),
sync: (0, F.useCallback)(() => {
- qc(e.current), o(null, !1);
+ Kc(e.current), o(null, !1);
}, [e, o])
};
}
// src/react/boardui/components/base/buttons/button.tsx
-var hL = jI({
+var mL = AI({
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",
@@ -38021,52 +38034,52 @@ function Y({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, I.jsxs)("button", {
ref: c,
type: s,
- className: J(hL.base, hL.size[t], hL.variant[e], n && hL.iconOnlySize[t], o),
+ className: J(mL.base, mL.size[t], mL.variant[e], n && mL.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: hL.icon[t],
+ className: mL.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: hL.label[t],
+ className: mL.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: hL.icon[t],
+ className: mL.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function gL({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function hL({ 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: J(hL.base, hL.size[t], hL.variant[e], n && hL.iconOnlySize[t], o),
+ className: J(mL.base, mL.size[t], mL.variant[e], n && mL.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: hL.icon[t],
+ className: mL.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: hL.label[t],
+ className: mL.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: hL.icon[t],
+ className: mL.icon[t],
"aria-hidden": !0
}) : null
]
});
}
// node_modules/react-aria-components/dist/private/utils.mjs
-var _L = Symbol("default");
-function vL({ values: e, children: t }) {
+var gL = Symbol("default");
+function _L({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ F.createElement(n.Provider, { value: r }, t);
return t;
}
-function yL(e) {
+function vL(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;
@@ -38100,11 +38113,11 @@ function yL(e) {
c
]);
}
-function bL(e, t) {
+function yL(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 || _L;
+ let e = t || gL;
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}.`);
@@ -38113,8 +38126,8 @@ function bL(e, t) {
}
return n;
}
-function xL(e, t, n) {
- let { ref: r, ...i } = bL(n, e.slot) || {}, a = ZC((0, F.useMemo)(() => HC(t, r), [t, r])), o = q(i, e);
+function bL(e, t, n) {
+ let { ref: r, ...i } = yL(n, e.slot) || {}, a = XC((0, F.useMemo)(() => VC(t, r), [t, r])), o = q(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,
@@ -38132,42 +38145,42 @@ function xL(e, t, n) {
...e.style
}), [o, a];
}
-function SL(e = !0) {
+function xL(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 BS(() => {
+ return zS(() => {
r.current || n(!1);
}, []), [i, t];
}
-function CL(e) {
+function SL(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function Gpe(e, t, n) {
- let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => HC(n, a), [n, a]);
- BS(() => {}, [e, r]);
+function qpe(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 wL = {}, TL = new Proxy({}, { get(e, t) {
+var CL = {}, wL = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = wL[t];
- return n || (n = /*#__PURE__*/ (0, F.forwardRef)(Gpe.bind(null, t)), wL[t] = n), n;
-} }), EL = /*#__PURE__*/ (0, F.createContext)(null), DL = /*#__PURE__*/ (0, F.createContext)(null), OL = /*#__PURE__*/ (0, F.createContext)(null), kL = {
+ let n = CL[t];
+ return n || (n = /*#__PURE__*/ (0, F.forwardRef)(qpe.bind(null, t)), CL[t] = n), n;
+} }), TL = /*#__PURE__*/ (0, F.createContext)(null), EL = /*#__PURE__*/ (0, F.createContext)(null), DL = /*#__PURE__*/ (0, F.createContext)(null), OL = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return AL(e, null, t);
+ return kL(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return AL(e, t, n);
+ return kL(e, t, n);
}
};
-function AL(e, t, n) {
- return SS({
+function kL(e, t, n) {
+ return xS({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
@@ -38177,11 +38190,11 @@ function AL(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, Kpe(e, t, n));
+ }), r, Jpe(e, t, n));
}
});
}
-function Kpe(e, t, n) {
+function Jpe(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);
@@ -38200,24 +38213,24 @@ function Kpe(e, t, n) {
}
return s;
}
-var jL = /*#__PURE__*/ (0, F.createContext)(kL);
-function ML(e) {
+var AL = /*#__PURE__*/ (0, F.createContext)(OL);
+function jL(e) {
return (0, F.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
// node_modules/react-aria-components/dist/private/Label.mjs
-var NL = /*#__PURE__*/ (0, F.createContext)({}), PL = /*#__PURE__*/ nw(function(e, t) {
- [e, t] = xL(e, t, NL);
- let { elementType: n = "label", ...r } = e, i = TL[n];
+var ML = /*#__PURE__*/ (0, F.createContext)({}), NL = /*#__PURE__*/ tw(function(e, t) {
+ [e, t] = bL(e, t, ML);
+ let { elementType: n = "label", ...r } = e, i = wL[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), qpe = /*#__PURE__*/ (0, F.createContext)(null), FL = /*#__PURE__*/ (0, F.createContext)({}), IL = /*#__PURE__*/ nw(function(e, t) {
- [e, t] = xL(e, t, FL);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Goe(e, t);
- i = Ype(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = AD(e), { hoverProps: l, isHovered: u } = PD({
+}), Ype = /*#__PURE__*/ (0, F.createContext)(null), PL = /*#__PURE__*/ (0, F.createContext)({}), FL = /*#__PURE__*/ tw(function(e, t) {
+ [e, t] = bL(e, t, PL);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Koe(e, t);
+ i = Zpe(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = kD(e), { hoverProps: l, isHovered: u } = ND({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -38227,24 +38240,24 @@ var NL = /*#__PURE__*/ (0, F.createContext)({}), PL = /*#__PURE__*/ nw(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = yL({
+ }, f = vL({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = BC(i.id), m = BC(), 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) && jT(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && AT(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = Ww(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ F.createElement(TL.button, {
+ let _ = Uw(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ F.createElement(wL.button, {
...q(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -38258,61 +38271,61 @@ var NL = /*#__PURE__*/ (0, F.createContext)({}), PL = /*#__PURE__*/ nw(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ F.createElement(qpe.Provider, { value: { id: m } }, f.children));
-}), Jpe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function Ype(e, t) {
+ }, /*#__PURE__*/ F.createElement(Ype.Provider, { value: { id: m } }, f.children));
+}), Xpe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function Zpe(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !Jpe.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !Xpe.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 LL = /*#__PURE__*/ (0, F.createContext)({}), RL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = xL(e, t, LL);
- let { children: n, level: r = 3, className: i, ...a } = e, o = TL[`h${r}`];
+var IL = /*#__PURE__*/ (0, F.createContext)({}), LL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = bL(e, t, IL);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = wL[`h${r}`];
return /*#__PURE__*/ F.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), zL = /*#__PURE__*/ (0, F.createContext)({}), Xpe = /*#__PURE__*/ nw(function(e, t) {
- [e, t] = xL(e, t, zL);
- let { elementType: n = "span", ...r } = e, i = TL[n];
+}), RL = /*#__PURE__*/ (0, F.createContext)({}), Qpe = /*#__PURE__*/ tw(function(e, t) {
+ [e, t] = bL(e, t, RL);
+ let { elementType: n = "span", ...r } = e, i = wL[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), BL = /*#__PURE__*/ (0, F.createContext)(null), VL = /*#__PURE__*/ (0, F.createContext)(null), HL = /*#__PURE__*/ (0, F.createContext)(null), UL = /*#__PURE__*/ (0, F.createContext)(null), Zpe = /*#__PURE__*/ (0, F.createContext)(null), WL = /*#__PURE__*/ (0, F.createContext)(null);
-function Qpe(e, t) {
- let { validationBehavior: n } = bL(VL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(Zpe), a = ZC((0, F.useMemo)(() => HC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...CL(e),
+}), zL = /*#__PURE__*/ (0, F.createContext)(null), BL = /*#__PURE__*/ (0, F.createContext)(null), VL = /*#__PURE__*/ (0, F.createContext)(null), HL = /*#__PURE__*/ (0, F.createContext)(null), $pe = /*#__PURE__*/ (0, F.createContext)(null), UL = /*#__PURE__*/ (0, F.createContext)(null);
+function eme(e, t) {
+ let { validationBehavior: n } = yL(BL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)($pe), a = XC((0, F.useMemo)(() => VC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...SL(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? mse(o, i, a) : QT(o, rE(e), a), a];
+ return [i ? hse(o, i, a) : ZT(o, nE(e), a), a];
}
-var $pe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var tme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = xL(r, t, HL);
- let [i, a] = Qpe(e, n);
- return /*#__PURE__*/ F.createElement(WL.Provider, { value: {
+ [e, t] = bL(r, t, VL);
+ let [i, a] = eme(e, n);
+ return /*#__PURE__*/ F.createElement(UL.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ F.createElement(eme, {
+ } }, /*#__PURE__*/ F.createElement(nme, {
...e,
ref: t
}));
-}), eme = /*#__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)(WL), { isFocused: p, isFocusVisible: m, focusProps: h } = AD(), g = a || o, { hoverProps: _, isHovered: v } = PD({
+}), nme = /*#__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)(UL), { isFocused: p, isFocusVisible: m, focusProps: h } = kD(), g = a || o, { hoverProps: _, isHovered: v } = ND({
...e,
isDisabled: g
- }), y = yL({
+ }), y = vL({
...e,
defaultClassName: u,
values: {
@@ -38327,8 +38340,8 @@ var $pe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = Ww(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(TL.label, {
+ }), b = Uw(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(wL.label, {
...q(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -38342,20 +38355,20 @@ var $pe = /*#__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(fE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(dE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...q(r, h),
ref: l
})), y.children);
-}), GL = /*#__PURE__*/ (0, F.createContext)({}), KL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = xL(e, t, GL);
+}), WL = /*#__PURE__*/ (0, F.createContext)({}), GL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = bL(e, t, WL);
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 } = PD({
+ let { hoverProps: l, isHovered: u } = ND({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = AD({ within: !0 }), m = yL({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = kD({ within: !0 }), m = vL({
...e,
values: {
isHovered: u,
@@ -38366,7 +38379,7 @@ var $pe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ F.createElement(TL.div, {
+ return /*#__PURE__*/ F.createElement(wL.div, {
...q(c, p, l),
...m,
ref: t,
@@ -38379,18 +38392,18 @@ var $pe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), qL = /*#__PURE__*/ (0, F.createContext)({}), tme = (e) => {
+}), KL = /*#__PURE__*/ (0, F.createContext)({}), rme = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, nme = /*#__PURE__*/ nw(function(e, t) {
- [e, t] = xL(e, t, qL);
- let { hoverProps: n, isHovered: r } = PD({
+}, ime = /*#__PURE__*/ tw(function(e, t) {
+ [e, t] = bL(e, t, KL);
+ let { hoverProps: n, isHovered: r } = ND({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = AD({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = kD({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = yL({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = vL({
...e,
values: {
isHovered: r,
@@ -38401,8 +38414,8 @@ var $pe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ F.createElement(TL.input, {
- ...q(tme(e), o, n),
+ return /*#__PURE__*/ F.createElement(wL.input, {
+ ...q(rme(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -38411,24 +38424,24 @@ var $pe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), rme = 0, ime = 100, ame = 1;
-function ome(e) {
- let { isDisabled: t = !1, minValue: n = rme, maxValue: r = ime, numberFormatter: i, step: a = ame, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
+}), ame = 0, ome = 100, sme = 1;
+function cme(e) {
+ let { isDisabled: t = !1, minValue: n = ame, maxValue: r = ome, numberFormatter: i, step: a = sme, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
let e = (r - n) / 10;
- return e = oE(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) => oE(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(YL(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c(YL(e.defaultValue) ?? [n]), [
+ ]), l = (0, F.useMemo)(() => c(JL(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c(JL(e.defaultValue) ?? [n]), [
e.defaultValue,
n,
c
- ]), d = XL(e.value, e.defaultValue, e.onChange), f = XL(e.value, e.defaultValue, e.onChangeEnd), [p, m] = nE(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 = YL(e.value, e.defaultValue, e.onChange), f = YL(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);
@@ -38451,15 +38464,15 @@ function ome(e) {
function A(e, n) {
if (t || !O(e)) return;
let r = E(e), i = D(e);
- n = oE(n, r, i, a);
- let o = JL(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 = JL(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) {
@@ -38480,15 +38493,15 @@ function ome(e) {
return Math.round((e - n) / a) * a + n;
}
function P(e) {
- return iE(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, oE(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, oE(p[e] - i, n, r, a));
+ A(e, aE(p[e] - i, n, r, a));
}
return {
values: p,
@@ -38517,31 +38530,31 @@ function ome(e) {
isDisabled: t
};
}
-function JL(e, t, n) {
+function qL(e, t, n) {
return e[t] === n ? e : [
...e.slice(0, t),
n,
...e.slice(t + 1)
];
}
-function YL(e) {
+function JL(e) {
if (e != null) return Array.isArray(e) ? e : [e];
}
-function XL(e, t, n) {
+function YL(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 sme = /*#__PURE__*/ (0, F.createContext)(null), ZL = /*#__PURE__*/ (0, F.createContext)(null), QL = /*#__PURE__*/ (0, F.createContext)(null), cme = /*#__PURE__*/ (0, F.createContext)(null), lme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = xL(e, t, sme);
- let n = (0, F.useRef)(null), r = yse(e.formatOptions), i = ome({
+var lme = /*#__PURE__*/ (0, F.createContext)(null), XL = /*#__PURE__*/ (0, F.createContext)(null), ZL = /*#__PURE__*/ (0, F.createContext)(null), ume = /*#__PURE__*/ (0, F.createContext)(null), dme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = bL(e, t, lme);
+ let n = (0, F.useRef)(null), r = bse(e.formatOptions), i = cme({
...e,
numberFormatter: r
- }), [a, o] = SL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = bse({
+ }), [a, o] = xL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = xse({
...e,
label: o
- }, i, n), d = yL({
+ }, i, n), d = vL({
...e,
values: {
orientation: i.orientation,
@@ -38549,32 +38562,32 @@ var sme = /*#__PURE__*/ (0, F.createContext)(null), ZL = /*#__PURE__*/ (0, F.cre
state: i
},
defaultClassName: "react-aria-Slider"
- }), f = Ww(e, { global: !0 });
- return delete f.id, /*#__PURE__*/ F.createElement(vL, { values: [
- [ZL, i],
- [QL, {
+ }), f = Uw(e, { global: !0 });
+ return delete f.id, /*#__PURE__*/ F.createElement(_L, { values: [
+ [XL, i],
+ [ZL, {
...c,
ref: n
}],
- [cme, u],
- [NL, {
+ [ume, u],
+ [ML, {
...l,
ref: a
}]
- ] }, /*#__PURE__*/ F.createElement(TL.div, {
+ ] }, /*#__PURE__*/ F.createElement(wL.div, {
...q(f, d, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": i.orientation,
"data-disabled": i.isDisabled || void 0
}));
-}), ume = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = xL(e, t, QL);
- let n = (0, F.useContext)(ZL), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = PD({
+}), fme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = bL(e, t, ZL);
+ let n = (0, F.useContext)(XL), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = ND({
onHoverStart: r,
onHoverEnd: i,
onHoverChange: a
- }), l = yL({
+ }), l = vL({
...e,
defaultClassName: "react-aria-SliderTrack",
values: {
@@ -38584,7 +38597,7 @@ var sme = /*#__PURE__*/ (0, F.createContext)(null), ZL = /*#__PURE__*/ (0, F.cre
state: n
}
});
- return /*#__PURE__*/ F.createElement(TL.div, {
+ return /*#__PURE__*/ F.createElement(wL.div, {
...q(o, s),
...l,
ref: t,
@@ -38592,14 +38605,14 @@ var sme = /*#__PURE__*/ (0, F.createContext)(null), ZL = /*#__PURE__*/ (0, F.cre
"data-orientation": n.orientation || void 0,
"data-disabled": n.isDisabled || void 0
});
-}), dme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { inputRef: n = null } = e, r = (0, F.useContext)(ZL), { ref: i } = bL(QL), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = SL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = xse({
+}), pme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { inputRef: n = null } = e, r = (0, F.useContext)(XL), { ref: i } = yL(ZL), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = xL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = Sse({
...e,
index: a,
trackRef: i,
inputRef: s,
label: l
- }, r), { focusProps: g, isFocusVisible: _ } = AD(), { hoverProps: v, isHovered: y } = PD(e), b = yL({
+ }, r), { focusProps: g, isFocusVisible: _ } = kD(), { hoverProps: v, isHovered: y } = ND(e), b = vL({
...e,
defaultClassName: "react-aria-SliderThumb",
values: {
@@ -38610,8 +38623,8 @@ var sme = /*#__PURE__*/ (0, F.createContext)(null), ZL = /*#__PURE__*/ (0, F.cre
isFocusVisible: _,
isDisabled: h
}
- }), x = Ww(e, { global: !0 });
- return delete x.id, /*#__PURE__*/ F.createElement(TL.div, {
+ }), x = Uw(e, { global: !0 });
+ return delete x.id, /*#__PURE__*/ F.createElement(wL.div, {
...q(x, u, v),
...b,
ref: t,
@@ -38624,330 +38637,330 @@ var sme = /*#__PURE__*/ (0, F.createContext)(null), ZL = /*#__PURE__*/ (0, F.cre
"data-focused": m || void 0,
"data-focus-visible": _ || void 0,
"data-disabled": h || void 0
- }, /*#__PURE__*/ F.createElement(fE, null, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(dE, null, /*#__PURE__*/ F.createElement("input", {
ref: s,
...q(d, g)
- })), /*#__PURE__*/ F.createElement(vL, { values: [[NL, {
+ })), /*#__PURE__*/ F.createElement(_L, { values: [[ML, {
...f,
ref: c
}]] }, b.children));
-}), $L = {};
-$L = {
+}), QL = {};
+QL = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
tableResizer: "أداة تغيير الحجم"
};
// node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var eR = {};
-eR = {
+var $L = {};
+$L = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
tableResizer: "Преоразмерител"
};
// node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var tR = {};
-tR = {
+var eR = {};
+eR = {
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 nR = {};
-nR = {
+var tR = {};
+tR = {
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 rR = {};
-rR = {
+var nR = {};
+nR = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
tableResizer: "Größenanpassung"
};
// node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var iR = {};
-iR = {
+var rR = {};
+rR = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
tableResizer: "Αλλαγή μεγέθους"
};
// node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var aR = {};
-aR = {
+var iR = {};
+iR = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
colorSwatchPicker: "Color swatches"
};
// node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var oR = {};
-oR = {
+var aR = {};
+aR = {
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 sR = {};
-sR = {
+var oR = {};
+oR = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
tableResizer: "Suuruse muutja"
};
// node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var cR = {};
-cR = {
+var sR = {};
+sR = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
tableResizer: "Koon muuttaja"
};
// node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var lR = {};
-lR = {
+var cR = {};
+cR = {
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 uR = {};
-uR = {
+var lR = {};
+lR = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
tableResizer: "שינוי גודל"
};
// node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var dR = {};
-dR = {
+var uR = {};
+uR = {
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 fR = {};
-fR = {
+var dR = {};
+dR = {
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 pR = {};
-pR = {
+var fR = {};
+fR = {
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 mR = {};
-mR = {
+var pR = {};
+pR = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
tableResizer: "サイズ変更ツール"
};
// node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var hR = {};
-hR = {
+var mR = {};
+mR = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
tableResizer: "크기 조정기"
};
// node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var gR = {};
-gR = {
+var hR = {};
+hR = {
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 _R = {};
-_R = {
+var gR = {};
+gR = {
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 vR = {};
-vR = {
+var _R = {};
+_R = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
tableResizer: "Størrelsesendrer"
};
// node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var yR = {};
-yR = {
+var vR = {};
+vR = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
tableResizer: "Resizer"
};
// node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var bR = {};
-bR = {
+var yR = {};
+yR = {
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 xR = {};
-xR = {
+var bR = {};
+bR = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var SR = {};
-SR = {
+var xR = {};
+xR = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var CR = {};
-CR = {
+var SR = {};
+SR = {
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 wR = {};
-wR = {
+var CR = {};
+CR = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
tableResizer: "Средство изменения размера"
};
// node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var TR = {};
-TR = {
+var wR = {};
+wR = {
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 ER = {};
-ER = {
+var TR = {};
+TR = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
tableResizer: "Spreminjanje velikosti"
};
// node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var DR = {};
-DR = {
+var ER = {};
+ER = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
tableResizer: "Promena veličine"
};
// node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var OR = {};
-OR = {
+var DR = {};
+DR = {
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 kR = {};
-kR = {
+var OR = {};
+OR = {
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 AR = {};
-AR = {
+var kR = {};
+kR = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
tableResizer: "Засіб змінення розміру"
};
// node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var jR = {};
-jR = {
+var AR = {};
+AR = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
tableResizer: "尺寸调整器"
};
// node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var MR = {};
-MR = {
+var jR = {};
+jR = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
tableResizer: "大小調整器"
};
// node_modules/react-aria-components/dist/private/intlStrings.mjs
-var NR = {};
-NR = {
- "ar-AE": $L,
- "bg-BG": eR,
- "cs-CZ": tR,
- "da-DK": nR,
- "de-DE": rR,
- "el-GR": iR,
- "en-US": aR,
- "es-ES": oR,
- "et-EE": sR,
- "fi-FI": cR,
- "fr-FR": lR,
- "he-IL": uR,
- "hr-HR": dR,
- "hu-HU": fR,
- "it-IT": pR,
- "ja-JP": mR,
- "ko-KR": hR,
- "lt-LT": gR,
- "lv-LV": _R,
- "nb-NO": vR,
- "nl-NL": yR,
- "pl-PL": bR,
- "pt-BR": xR,
- "pt-PT": SR,
- "ro-RO": CR,
- "ru-RU": wR,
- "sk-SK": TR,
- "sl-SI": ER,
- "sr-SP": DR,
- "sv-SE": OR,
- "tr-TR": kR,
- "uk-UA": AR,
- "zh-CN": jR,
- "zh-TW": MR
+var MR = {};
+MR = {
+ "ar-AE": QL,
+ "bg-BG": $L,
+ "cs-CZ": eR,
+ "da-DK": tR,
+ "de-DE": nR,
+ "el-GR": rR,
+ "en-US": iR,
+ "es-ES": aR,
+ "et-EE": oR,
+ "fi-FI": sR,
+ "fr-FR": cR,
+ "he-IL": lR,
+ "hr-HR": uR,
+ "hu-HU": dR,
+ "it-IT": fR,
+ "ja-JP": pR,
+ "ko-KR": mR,
+ "lt-LT": hR,
+ "lv-LV": gR,
+ "nb-NO": _R,
+ "nl-NL": vR,
+ "pl-PL": yR,
+ "pt-BR": bR,
+ "pt-PT": xR,
+ "ro-RO": SR,
+ "ru-RU": CR,
+ "sk-SK": wR,
+ "sl-SI": TR,
+ "sr-SP": ER,
+ "sv-SE": DR,
+ "tr-TR": OR,
+ "uk-UA": kR,
+ "zh-CN": AR,
+ "zh-TW": jR
};
// node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var PR = /*#__PURE__*/ (0, F.createContext)({}), FR = /*#__PURE__*/ (0, F.createContext)(null), fme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { render: n } = (0, F.useContext)(FR);
+var NR = /*#__PURE__*/ (0, F.createContext)({}), PR = /*#__PURE__*/ (0, F.createContext)(null), mme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { render: n } = (0, F.useContext)(PR);
return /*#__PURE__*/ F.createElement(F.Fragment, null, n(e, t));
});
-function IR(e, t) {
+function FR(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(fme, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ F.createElement(mme, { target: e });
}, [
t?.target,
r,
@@ -38955,7 +38968,7 @@ function IR(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function LR(e, t, n) {
+function IR(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;
@@ -38976,13 +38989,13 @@ function LR(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 RR = /*#__PURE__*/ (0, F.createContext)({}), pme = /*#__PURE__*/ (0, F.createContext)(null);
-function zR(e) {
+var LR = /*#__PURE__*/ (0, F.createContext)({}), hme = /*#__PURE__*/ (0, F.createContext)(null);
+function RR(e) {
let t = (0, F.useRef)({});
- return /*#__PURE__*/ F.createElement(pme.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ F.createElement(hme.Provider, { value: t }, e.children);
}
// node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var BR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), VR = /*#__PURE__*/ (0, F.createContext)({}), mme = /*#__PURE__*/ uw(class extends mS {
+var zR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), BR = /*#__PURE__*/ (0, F.createContext)({}), gme = /*#__PURE__*/ lw(class extends pS {
static {
this.type = "separator";
}
@@ -38995,14 +39008,14 @@ var BR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), VR = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = xL(e, t, VR);
+ [e, t] = bL(e, t, BR);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = TL[c], { separatorProps: u } = Nce({
+ let l = wL[c], { separatorProps: u } = Fce({
...s,
elementType: n,
orientation: r
- }), d = Ww(e, { global: !0 });
+ }), d = Uw(e, { global: !0 });
return /*#__PURE__*/ F.createElement(l, {
render: e.render,
...q(d, u),
@@ -39013,12 +39026,12 @@ var BR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), VR = /*#__PURE_
});
});
// node_modules/react-aria/dist/private/utils/inertValue.mjs
-function HR(e) {
+function VR(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 UR = class {
+var HR = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -39062,19 +39075,19 @@ var UR = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, WR = class e extends Set {
+}, UR = 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 hme(e, t) {
+function _me(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function GR(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] = nE((0, F.useMemo)(() => KR(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => KR(e.defaultSelectedKeys, new WR()), [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 WR(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)(() => GR(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => GR(e.defaultSelectedKeys, new UR()), [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)(() => {
@@ -39101,17 +39114,17 @@ function GR(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !hme(e, d)) && f(e);
+ (r || !_me(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function KR(e, t) {
- return e ? e === "all" ? "all" : new WR(e) : t;
+function GR(e, t) {
+ return e ? e === "all" ? "all" : new UR(e) : t;
}
// node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var qR = class e {
+var KR = 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;
}
@@ -39167,7 +39180,7 @@ var qR = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && vD(this.collection, n, e) < 0) && (e = n);
+ (!e || n && _D(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -39175,7 +39188,7 @@ var qR = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && vD(this.collection, n, e) > 0) && (e = n);
+ (!e || n && _D(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -39194,10 +39207,10 @@ var qR = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new WR([t], t, t);
+ if (this.state.selectedKeys === "all") n = new UR([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new WR(e, r, t);
+ n = new UR(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);
}
@@ -39205,7 +39218,7 @@ var qR = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? vD(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);
@@ -39231,19 +39244,19 @@ var qR = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new WR(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new UR(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 WR([t], t, t) : new WR();
+ let n = this.canSelectItem(t) ? new UR([t], t, t) : new UR();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new WR();
+ let t = new UR();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -39255,7 +39268,7 @@ var qR = 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(hD(mD(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);
}
@@ -39266,7 +39279,7 @@ var qR = 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 WR());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new UR());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -39307,9 +39320,9 @@ var qR = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, gme = class {
+}, vme = class {
build(e, t) {
- return this.context = t, JR(() => this.iterateCollection(e));
+ return this.context = t, qR(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -39391,10 +39404,10 @@ var qR = class e {
...a,
key: l,
index: s,
- wrapper: _me(e.wrapper, a.wrapper)
+ wrapper: yme(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 <${YR(t.type)}> in <${YR(r?.type ?? "unknown parent type")}>. Only <${YR(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 <${JR(t.type)}> in <${JR(r?.type ?? "unknown parent type")}>. Only <${JR(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -39416,7 +39429,7 @@ var qR = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: JR(function* () {
+ childNodes: qR(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -39435,7 +39448,7 @@ var qR = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function JR(e) {
+function qR(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -39443,17 +39456,17 @@ function JR(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function _me(e, t) {
+function yme(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function YR(e) {
+function JR(e) {
return e[0].toUpperCase() + e.slice(1);
}
// node_modules/react-stately/dist/private/collections/useCollection.mjs
-function XR(e, t, n) {
- let r = (0, F.useMemo)(() => new gme(), []), { children: i, items: a, collection: o } = e;
+function YR(e, t, n) {
+ let r = (0, F.useMemo)(() => new vme(), []), { children: i, items: a, collection: o } = e;
return (0, F.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -39467,27 +39480,27 @@ function XR(e, t, n) {
]);
}
// node_modules/react-stately/dist/private/list/useListState.mjs
-function ZR(e) {
- let { filter: t, layoutDelegate: n } = e, r = GR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = XR(e, (0, F.useCallback)((e) => t ? new UR(t(e)) : new UR(e), [t]), (0, F.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, F.useMemo)(() => new qR(a, r, { layoutDelegate: n }), [
+function XR(e) {
+ let { filter: t, layoutDelegate: n } = e, r = WR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = YR(e, (0, F.useCallback)((e) => t ? new HR(t(e)) : new HR(e), [t]), (0, F.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, F.useMemo)(() => new KR(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return QR(a, o), {
+ return ZR(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function vme(e, t) {
+function bme(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return QR(n, r), {
+ return ZR(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function QR(e, t) {
+function ZR(e, t) {
let n = (0, F.useRef)(null);
(0, F.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -39514,15 +39527,15 @@ function QR(e, t) {
}, [e, t]);
}
// node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function $R(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = Ow((e) => {
+function QR(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();
});
- BS(() => {
+ 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: PT(t?.current),
+ root: NT(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -39537,42 +39550,42 @@ function $R(e, t) {
]);
}
// node_modules/react-aria-components/dist/private/ListBox.mjs
-var ez = /*#__PURE__*/ (0, F.createContext)(null), tz = /*#__PURE__*/ (0, F.createContext)(null), yme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = xL(e, t, ez);
- let n = (0, F.useContext)(tz);
- return n ? /*#__PURE__*/ F.createElement(nz, {
+var $R = /*#__PURE__*/ (0, F.createContext)(null), ez = /*#__PURE__*/ (0, F.createContext)(null), xme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = bL(e, t, $R);
+ let n = (0, F.useContext)(ez);
+ return n ? /*#__PURE__*/ F.createElement(tz, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ F.createElement(sw, { content: /*#__PURE__*/ F.createElement(mw, e) }, (n) => /*#__PURE__*/ F.createElement(bme, {
+ }) : /*#__PURE__*/ F.createElement(ow, { content: /*#__PURE__*/ F.createElement(pw, e) }, (n) => /*#__PURE__*/ F.createElement(Sme, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function bme({ props: e, listBoxRef: t, collection: n }) {
+function Sme({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, F.useContext)(jL), i = ZR({
+ let { layoutDelegate: r } = (0, F.useContext)(AL), i = XR({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ F.createElement(nz, {
+ return /*#__PURE__*/ F.createElement(tz, {
state: i,
props: e,
listBoxRef: t
});
}
-function nz({ state: e, props: t, listBoxRef: n }) {
- [t, n] = xL(t, n, EL);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = vme(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Iw(), { disabledBehavior: p, disabledKeys: m } = l, h = CD({
+function tz({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = bL(t, n, TL);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = bme(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)(jL), b = (0, F.useMemo)(() => t.keyboardDelegate || new TE({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(AL), b = (0, F.useMemo)(() => t.keyboardDelegate || new wE({
collection: c,
collator: h,
ref: n,
@@ -39593,7 +39606,7 @@ function nz({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = Jse({
+ ]), { listBoxProps: x } = Yse({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -39625,7 +39638,7 @@ function nz({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = AD(), 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,
@@ -39633,7 +39646,7 @@ function nz({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, ee = yL({
+ }, ee = vL({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -39643,8 +39656,8 @@ function nz({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(M)));
- let te = Ww(t, { global: !0 });
- return /*#__PURE__*/ F.createElement(mT, null, /*#__PURE__*/ F.createElement(TL.div, {
+ let te = Uw(t, { global: !0 });
+ return /*#__PURE__*/ F.createElement(pT, null, /*#__PURE__*/ F.createElement(wL.div, {
...q(te, ee, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -39655,60 +39668,60 @@ function nz({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ F.createElement(vL, { values: [
- [ez, t],
- [tz, s],
- [PR, {
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [$R, t],
+ [ez, s],
+ [NR, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [VR, { elementType: "div" }],
- [FR, { render: Cme }],
- [OL, {
+ [BR, { elementType: "div" }],
+ [PR, { render: Tme }],
+ [DL, {
name: "ListBoxSection",
- render: xme
+ render: Cme
}]
- ] }, /*#__PURE__*/ F.createElement(zR, null, /*#__PURE__*/ F.createElement(y, {
+ ] }, /*#__PURE__*/ F.createElement(RR, null, /*#__PURE__*/ F.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: LR(l, r, C),
- renderDropIndicator: IR(r, C)
+ persistedKeys: IR(l, r, C),
+ renderDropIndicator: FR(r, C)
}))), N, E));
}
-function xme(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, F.useContext)(tz), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(PR), { CollectionBranch: s } = (0, F.useContext)(jL), [c, l] = SL(), { headingProps: u, groupProps: d } = Yse({
+function Cme(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, F.useContext)(ez), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(NR), { CollectionBranch: s } = (0, F.useContext)(AL), [c, l] = xL(), { headingProps: u, groupProps: d } = Xse({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = yL({
+ }), f = vL({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = Ww(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ F.createElement(TL.section, {
+ }), p = Uw(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ F.createElement(wL.section, {
...q(p, f, d),
ref: t
- }, /*#__PURE__*/ F.createElement(RR.Provider, { value: {
+ }, /*#__PURE__*/ F.createElement(LR.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ F.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: IR(a, o)
+ renderDropIndicator: FR(a, o)
})));
}
-var Sme = /*#__PURE__*/ uw(_S, function(e, t, n) {
- let r = ZC(t), i = (0, F.useContext)(tz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(PR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Xse({
+var wme = /*#__PURE__*/ lw(gS, function(e, t, n) {
+ let r = XC(t), i = (0, F.useContext)(ez), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(NR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Zse({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = PD({
+ }, 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 } = XC(e), { focusProps: g } = KC(e), _ = null;
+ }), { keyboardProps: h } = YC(e), { focusProps: g } = GC(e), _ = null;
o && a && (_ = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
@@ -39719,7 +39732,7 @@ var Sme = /*#__PURE__*/ uw(_S, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = yL({
+ let y = o && o.isDragging(n.key), b = vL({
...e,
id: void 0,
children: e.children,
@@ -39737,7 +39750,7 @@ var Sme = /*#__PURE__*/ uw(_S, function(e, t, n) {
(0, F.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? TL.a : TL.div, S = Ww(e, { global: !0 });
+ let x = e.href ? wL.a : wL.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, {
...q(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -39751,29 +39764,29 @@ var Sme = /*#__PURE__*/ uw(_S, 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(vL, { values: [[zL, { slots: {
- [_L]: u,
+ }, /*#__PURE__*/ F.createElement(_L, { values: [[RL, { slots: {
+ [gL]: u,
label: u,
description: d
- } }], [BR, { isSelected: f.isSelected }]] }, b.children));
+ } }], [zR, { isSelected: f.isSelected }]] }, b.children));
});
-function Cme(e, t) {
- t = ZC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(PR), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ F.createElement(Tme, {
+function Tme(e, t) {
+ t = XC(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(NR), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ F.createElement(Dme, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function wme(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = yL({
+function Eme(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = vL({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(TL.div, {
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(wL.div, {
...n,
...a,
role: "option",
@@ -39781,10 +39794,10 @@ function wme(e, t) {
"data-drop-target": r || void 0
}));
}
-var Tme = /*#__PURE__*/ (0, F.forwardRef)(wme);
-uw(gS, function(e, t, n) {
- let r = (0, F.useContext)(tz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- $R((0, F.useMemo)(() => ({
+var Dme = /*#__PURE__*/ (0, F.forwardRef)(Eme);
+lw(hS, function(e, t, n) {
+ let r = (0, F.useContext)(ez), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ QR((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -39794,7 +39807,7 @@ uw(gS, function(e, t, n) {
o,
r?.collection
]), c);
- let l = yL({
+ let l = vL({
...s,
id: void 0,
children: n.rendered,
@@ -39807,7 +39820,7 @@ uw(gS, function(e, t, n) {
width: 0,
height: 0
},
- inert: HR(!0)
+ inert: VR(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -39816,18 +39829,18 @@ uw(gS, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(TL.div, {
- ...q(Ww(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(wL.div, {
+ ...q(Uw(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
}, l.children)));
});
// node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Eme = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
+var Ome = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
// node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function rz(e) {
- let [t, n] = nE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
+function nz(e) {
+ let [t, n] = tE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -39845,15 +39858,15 @@ function rz(e) {
};
}
// node_modules/react-aria/dist/private/utils/animation.mjs
-function iz(e, t = !0, n) {
+function rz(e, t = !0, n) {
let [r, i] = (0, F.useState)(!0), a = r && t;
- return BS(() => {
- if (!t && e.current) return IC(kS(e.current, "opacity", "0"), kS(e.current, "clip", "rect(0 0 0 0)"), kS(e.current, "clip-path", "inset(50%)"), kS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
- }, [e, t]), BS(() => {
+ 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]), oz(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
+ }, [e, a]), az(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
}
-function az(e, t, n) {
+function iz(e, t, n) {
let [r, i] = (0, F.useState)(t ? "open" : "closed");
switch (r) {
case "open":
@@ -39863,13 +39876,13 @@ function az(e, t, n) {
case "exiting": t && i("open");
}
let a = r === "exiting";
- return oz(e, a, n, (0, F.useCallback)(() => {
+ return az(e, a, n, (0, F.useCallback)(() => {
i((e) => e === "exiting" ? "closed" : e);
}, [])), a;
}
-function oz(e, t, n, r) {
- let i = (0, F.useRef)(null), a = Ow(n);
- BS(() => {
+function az(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();
@@ -39894,9 +39907,9 @@ function oz(e, t, n, r) {
]);
}
// node_modules/react-aria-components/dist/private/Popover.mjs
-var sz = /*#__PURE__*/ (0, F.createContext)(null), cz = /*#__PURE__*/ (0, F.createContext)(null), lz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = xL(e, t, sz);
- let n = (0, F.useContext)(xz), r = rz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = az(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = rw(), { direction: c } = Iw();
+var oz = /*#__PURE__*/ (0, F.createContext)(null), sz = /*#__PURE__*/ (0, F.createContext)(null), cz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = bL(e, t, oz);
+ let n = (0, F.useContext)(bz), r = nz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = iz(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({
@@ -39907,7 +39920,7 @@ var sz = /*#__PURE__*/ (0, F.createContext)(null), cz = /*#__PURE__*/ (0, F.crea
defaultChildren: null
})), /*#__PURE__*/ F.createElement(F.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(Dme, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(kme, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -39916,13 +39929,13 @@ var sz = /*#__PURE__*/ (0, F.createContext)(null), cz = /*#__PURE__*/ (0, F.crea
dir: c
});
});
-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)(cz), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Dce({
+function kme({ 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)(sz), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = kce({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), g = i.popoverRef, _ = iz(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = yL({
+ }, e), g = i.popoverRef, _ = rz(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = vL({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -39932,10 +39945,10 @@ function Dme({ 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");
- BS(() => {
+ zS(() => {
g.current && S(b && !g.current.querySelector("[role=dialog]"));
}, [g, b]), (0, F.useEffect)(() => {
- x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || wC() !== "pointer") && g.current && !PS(g.current) && FC(g.current);
+ x && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || CC() !== "pointer") && g.current && !NS(g.current) && PC(g.current);
}, [
x,
g,
@@ -39943,12 +39956,12 @@ function Dme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
]);
let C = (0, F.useMemo)(() => {
let e = y.children;
- for (let t of [sz, ...r ?? []]) e = /*#__PURE__*/ F.createElement(t.Provider, { value: null }, e);
+ for (let t of [oz, ...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]);
- BS(E, [E]), MO({
+ zS(E, [E]), jO({
ref: y.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: E
});
@@ -39958,9 +39971,9 @@ function Dme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
...y.style,
"--trigger-width": y.style?.["--trigger-width"] || w
};
- BS(() => xk(() => u(!0)), []);
- let O = /*#__PURE__*/ F.createElement(TL.div, {
- ...q(Ww(i, { global: !0 }), d),
+ zS(() => bk(() => u(!0)), []);
+ let O = /*#__PURE__*/ F.createElement(wL.div, {
+ ...q(Uw(i, { global: !0 }), d),
...y,
id: x ? i.id : void 0,
role: x ? "dialog" : void 0,
@@ -39975,17 +39988,17 @@ function Dme({ 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(mk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(Eme.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ F.createElement(pk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(Ome.Provider, { value: {
...p,
placement: m,
ref: a
- } }, C), /*#__PURE__*/ F.createElement(mk, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ F.createElement(OD, {
+ } }, 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(OD, {
+ }, O) : /*#__PURE__*/ F.createElement(DD, {
...i,
shouldContainFocus: x && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -40000,13 +40013,13 @@ function Dme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ F.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(cz.Provider, { value: o }, O)));
+ }, /*#__PURE__*/ F.createElement(sz.Provider, { value: o }, O)));
}
// node_modules/react-aria-components/dist/private/Keyboard.mjs
-var Ome = /*#__PURE__*/ (0, F.createContext)({});
+var Ame = /*#__PURE__*/ (0, F.createContext)({});
// node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function uz(e) {
- let t = rz(e), [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)([]), o = () => {
+function lz(e) {
+ let t = nz(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]);
@@ -40031,7 +40044,7 @@ function uz(e) {
};
}
// node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var kme = class {
+var jme = 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) => {
@@ -40074,8 +40087,8 @@ var kme = class {
}
};
// node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function dz(e) {
- let { onExpandedChange: t } = e, [n, r] = nE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = GR(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = XR(e, (0, F.useCallback)((e) => new kme(e, { expandedKeys: n }), [n]), null);
+function uz(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 = WR(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = YR(e, (0, F.useCallback)((e) => new jme(e, { expandedKeys: n }), [n]), null);
return (0, F.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -40083,31 +40096,31 @@ function dz(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(Ame(n, e));
+ r(Mme(n, e));
},
setExpandedKeys: r,
- selectionManager: new qR(o, i)
+ selectionManager: new KR(o, i)
};
}
-function Ame(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 fz = /*#__PURE__*/ (0, F.createContext)(null), pz = /*#__PURE__*/ (0, F.createContext)(null), mz = /*#__PURE__*/ (0, F.createContext)(null), hz = /*#__PURE__*/ (0, F.createContext)(null);
-function jme(e) {
- let t = uz(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = lD({
+var dz = /*#__PURE__*/ (0, F.createContext)(null), fz = /*#__PURE__*/ (0, F.createContext)(null), pz = /*#__PURE__*/ (0, F.createContext)(null), mz = /*#__PURE__*/ (0, F.createContext)(null);
+function Nme(e) {
+ let t = lz(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = cD({
...e,
type: "menu"
}, t, n), a = (0, F.useRef)(null);
- return rw() ? null : /*#__PURE__*/ F.createElement(vL, { values: [
- [fz, {
+ return nw() ? null : /*#__PURE__*/ F.createElement(_L, { values: [
+ [dz, {
...i,
ref: a
}],
- [xz, t],
- [mz, t],
- [sz, {
+ [bz, t],
+ [pz, t],
+ [oz, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -40115,14 +40128,14 @@ function jme(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ F.createElement(Nse, {
+ ] }, /*#__PURE__*/ F.createElement(Pse, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var Mme = /*#__PURE__*/ (0, F.createContext)(null);
-(class extends mS {
+var Pme = /*#__PURE__*/ (0, F.createContext)(null);
+(class extends pS {
static {
this.type = "submenutrigger";
}
@@ -40135,24 +40148,24 @@ var Mme = /*#__PURE__*/ (0, F.createContext)(null);
return null;
}
});
-var Nme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = xL(e, t, fz), /*#__PURE__*/ F.createElement(sw, { content: /*#__PURE__*/ F.createElement(mw, e) }, (n) => /*#__PURE__*/ F.createElement(Pme, {
+var Fme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = bL(e, t, dz), /*#__PURE__*/ F.createElement(ow, { content: /*#__PURE__*/ F.createElement(pw, e) }, (n) => /*#__PURE__*/ F.createElement(Ime, {
props: e,
collection: n,
menuRef: t
}));
});
-function Pme({ props: e, collection: t, menuRef: n }) {
- [e, n] = xL(e, n, EL);
- let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = dz({
+function Ime({ props: e, collection: t, menuRef: n }) {
+ [e, n] = bL(e, n, TL);
+ let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = uz({
...e,
collection: a,
children: void 0
- }), s = (0, F.useContext)(mz), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(jL), { menuProps: u } = Zse({
+ }), s = (0, F.useContext)(pz), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(AL), { menuProps: u } = Qse({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = yL({
+ }, o, n), d = vL({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -40162,36 +40175,36 @@ function Pme({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = Ww(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(mT, null, /*#__PURE__*/ F.createElement(TL.div, {
+ let p = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(pT, null, /*#__PURE__*/ F.createElement(wL.div, {
...q(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(vL, { values: [
- [pz, o],
- [VR, { elementType: "div" }],
- [OL, {
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [fz, o],
+ [BR, { elementType: "div" }],
+ [DL, {
name: "MenuSection",
- render: gz
+ render: hz
}],
- [Mme, {
+ [Pme, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [vz, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [_z, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [TL, null],
[EL, null],
- [DL, null],
- [hz, o.selectionManager],
- [mz, s ?? uz({})]
- ] }, /*#__PURE__*/ F.createElement(zR, null, /*#__PURE__*/ F.createElement(l, {
+ [mz, o.selectionManager],
+ [pz, s ?? lz({})]
+ ] }, /*#__PURE__*/ F.createElement(RR, null, /*#__PURE__*/ F.createElement(l, {
collection: o.collection,
- persistedKeys: ML(o.selectionManager.focusedKey),
+ persistedKeys: jL(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var Fme = class extends qR {
+var Lme = class extends KR {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -40211,11 +40224,11 @@ var Fme = class extends qR {
return this.parent.childFocusStrategy;
}
};
-function gz(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, F.useContext)(pz), { CollectionBranch: a } = (0, F.useContext)(jL), [o, s] = SL(), { headingProps: c, groupProps: l } = $se({
+function hz(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, F.useContext)(fz), { CollectionBranch: a } = (0, F.useContext)(AL), [o, s] = xL(), { headingProps: c, groupProps: l } = ece({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = yL({
+ }), u = vL({
...e,
id: void 0,
children: void 0,
@@ -40223,31 +40236,31 @@ function gz(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, F.useContext)(hz), f = GR(e), p = e.selectionMode == null ? d : new Fme(d, f), m = bL(vz)?.shouldCloseOnSelect, h = Ww(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ F.createElement(TL.section, {
+ }), d = (0, F.useContext)(mz), f = WR(e), p = e.selectionMode == null ? d : new Lme(d, f), m = yL(_z)?.shouldCloseOnSelect, h = Uw(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ F.createElement(wL.section, {
...q(h, u, l),
ref: t
- }, /*#__PURE__*/ F.createElement(vL, { values: [
- [RR, {
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [LR, {
...c,
ref: o
}],
- [hz, p],
- [vz, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [mz, p],
+ [_z, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ F.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var _z = /*#__PURE__*/ dw(dae, gz), vz = /*#__PURE__*/ (0, F.createContext)(null), yz = /*#__PURE__*/ uw(_S, function(e, t, n) {
- [e, t] = xL(e, t, vz);
- let r = bL(vz)?.id, i = (0, F.useContext)(pz), a = ZC(t), o = (0, F.useContext)(hz), { isVirtualized: s } = (0, F.useContext)(jL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Qse({
+var gz = /*#__PURE__*/ uw(fae, hz), _z = /*#__PURE__*/ (0, F.createContext)(null), vz = /*#__PURE__*/ lw(gS, function(e, t, n) {
+ [e, t] = bL(e, t, _z);
+ let r = yL(_z)?.id, i = (0, F.useContext)(fz), a = XC(t), o = (0, F.useContext)(mz), { isVirtualized: s } = (0, F.useContext)(AL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = $se({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = PD({ isDisabled: f.isDisabled }), h = yL({
+ }, i, a), { hoverProps: p, isHovered: m } = ND({ isDisabled: f.isDisabled }), h = vL({
...e,
id: void 0,
children: n.rendered,
@@ -40261,7 +40274,7 @@ var _z = /*#__PURE__*/ dw(dae, gz), vz = /*#__PURE__*/ (0, F.createContext)(null
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? TL.a : TL.div, _ = Ww(e, { global: !0 });
+ }), g = e.href ? wL.a : wL.div, _ = Uw(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(g, {
...q(_, h, c, p),
ref: a,
@@ -40274,19 +40287,19 @@ var _z = /*#__PURE__*/ dw(dae, gz), vz = /*#__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(vL, { values: [
- [zL, { slots: {
- [_L]: l,
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [RL, { slots: {
+ [gL]: l,
label: l,
description: u
} }],
- [Ome, d],
- [BR, { isSelected: f.isSelected }]
+ [Ame, d],
+ [zR, { isSelected: f.isSelected }]
] }, h.children));
});
-uw(gS, function(e, t, n) {
- let r = (0, F.useContext)(pz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- $R((0, F.useMemo)(() => ({
+lw(hS, function(e, t, n) {
+ let r = (0, F.useContext)(fz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ QR((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -40296,7 +40309,7 @@ uw(gS, function(e, t, n) {
o,
r?.collection
]), c);
- let l = yL({
+ let l = vL({
...s,
id: void 0,
children: n.rendered,
@@ -40309,7 +40322,7 @@ uw(gS, function(e, t, n) {
width: 0,
height: 0
},
- inert: HR(!0)
+ inert: VR(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -40318,89 +40331,89 @@ uw(gS, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(TL.div, {
- ...q(Ww(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(wL.div, {
+ ...q(Uw(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
}, l.children)));
});
// node_modules/react-aria-components/dist/private/Dialog.mjs
-var bz = /*#__PURE__*/ (0, F.createContext)(null), xz = /*#__PURE__*/ (0, F.createContext)(null), Sz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var yz = /*#__PURE__*/ (0, F.createContext)(null), bz = /*#__PURE__*/ (0, F.createContext)(null), xz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = xL(e, t, bz);
- let { dialogProps: r, titleProps: i, contentProps: a } = Fse({
+ [e, t] = bL(e, t, yz);
+ let { dialogProps: r, titleProps: i, contentProps: a } = Ise({
...e,
"aria-labelledby": n
- }, t), o = (0, F.useContext)(xz);
+ }, t), o = (0, F.useContext)(bz);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = yL({
+ let s = vL({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = Ww(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(TL.section, {
+ }), c = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(wL.section, {
...q(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ F.createElement(vL, { values: [
- [LL, { slots: {
- [_L]: {},
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [IL, { slots: {
+ [gL]: {},
title: {
...i,
level: 2
}
} }],
- [zL, { slots: {
- [_L]: {},
+ [RL, { slots: {
+ [gL]: {},
description: a
} }],
- [FL, { slots: {
- [_L]: {},
+ [PL, { slots: {
+ [gL]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), Cz = typeof document < "u" && window.visualViewport;
-function Ime() {
- let e = cC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
+}), Sz = typeof document < "u" && window.visualViewport;
+function Rme() {
+ let e = sC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
width: 0,
height: 0
- } : wz());
+ } : Cz());
return (0, F.useEffect)(() => {
let e = (e) => {
r((t) => e.width === t.width && e.height === t.height ? t : e);
}, n = () => {
- Cz && Cz.scale > 1 || e(wz());
+ Sz && Sz.scale > 1 || e(Cz());
}, i = (n) => {
- Cz && Cz.scale > 1 || Tw(K(n)) && (t.current = xk((t) => {
+ Sz && Sz.scale > 1 || ww(K(n)) && (t.current = bk((t) => {
t || e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(wz()), XS() && ZS() && window.addEventListener("blur", i, !0), Cz ? Cz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
- t.current?.(), XS() && ZS() && window.removeEventListener("blur", i, !0), Cz ? Cz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
+ return e(Cz()), YS() && XS() && window.addEventListener("blur", i, !0), Sz ? Sz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
+ t.current?.(), YS() && XS() && window.removeEventListener("blur", i, !0), Sz ? Sz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
};
}, []), n;
}
-function wz() {
+function Cz() {
return {
- width: Cz ? Math.min(Cz.width * Cz.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: Cz ? Cz.height * Cz.scale : document.documentElement.clientHeight
+ width: Sz ? Math.min(Sz.width * Sz.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: Sz ? Sz.height * Sz.scale : document.documentElement.clientHeight
};
}
// node_modules/react-aria-components/dist/private/Modal.mjs
-var Lme = /*#__PURE__*/ (0, F.createContext)(null), Tz = /*#__PURE__*/ (0, F.createContext)(null), Rme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- if ((0, F.useContext)(Tz)) return /*#__PURE__*/ F.createElement(Dz, {
+var zme = /*#__PURE__*/ (0, F.createContext)(null), wz = /*#__PURE__*/ (0, F.createContext)(null), Bme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ if ((0, F.useContext)(wz)) return /*#__PURE__*/ F.createElement(Ez, {
...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(Ez, {
+ return /*#__PURE__*/ F.createElement(Tz, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -40410,15 +40423,15 @@ var Lme = /*#__PURE__*/ (0, F.createContext)(null), Tz = /*#__PURE__*/ (0, F.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ F.createElement(Dz, {
+ }, /*#__PURE__*/ F.createElement(Ez, {
...f,
modalRef: t
}, s));
});
-function zme(e, t) {
- [e, t] = xL(e, t, Lme);
- let n = (0, F.useContext)(xz), r = rz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = ZC(t), o = (0, F.useRef)(null), s = az(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = az(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = cC();
- return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(Bme, {
+function Vme(e, t) {
+ [e, t] = bL(e, t, zme);
+ let n = (0, F.useContext)(bz), r = nz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = XC(t), o = (0, F.useRef)(null), s = iz(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = iz(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = sC();
+ return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(Hme, {
...e,
state: i,
isExiting: u,
@@ -40427,12 +40440,12 @@ function zme(e, t) {
onExitRef: c
});
}
-var Ez = /*#__PURE__*/ (0, F.forwardRef)(zme);
-function Bme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = iz(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = uce({
+var Tz = /*#__PURE__*/ (0, F.forwardRef)(Vme);
+function Hme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
+ let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = rz(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = dce({
...n,
isEntering: c
- }, i, r), d = (0, F.useContext)(bz), f = t ? Vme(d, { isEntering: c }) : d, p = yL({
+ }, i, r), d = (0, F.useContext)(yz), f = t ? Ume(d, { isEntering: c }) : d, p = vL({
...n,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -40440,9 +40453,9 @@ function Bme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isExiting: n.isExiting,
state: i
}
- }), m = Ime(), h, g;
+ }), m = Rme(), h, g;
if (typeof document < "u") {
- let e = NT(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 _ = {
@@ -40452,18 +40465,18 @@ function Bme({ 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 BS(() => xk(() => o(!0)), []), /*#__PURE__*/ F.createElement(OD, {
+ return zS(() => bk(() => o(!0)), []), /*#__PURE__*/ F.createElement(DD, {
isExiting: n.isExiting,
portalContainer: e
- }, /*#__PURE__*/ F.createElement(TL.div, {
- ...q(Ww(n, { global: !0 }), u),
+ }, /*#__PURE__*/ F.createElement(wL.div, {
+ ...q(Uw(n, { global: !0 }), u),
...p,
style: _,
ref: n.overlayRef,
"data-entering": s || void 0,
"data-exiting": n.isExiting || void 0
- }, /*#__PURE__*/ F.createElement(vL, { values: [
- [Tz, {
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [wz, {
modalProps: l,
modalRef: r,
isExiting: n.isExiting,
@@ -40471,11 +40484,11 @@ function Bme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isOpen: a,
isDismissable: n.isDismissable
}],
- [xz, i],
- [bz, f]
+ [bz, i],
+ [yz, f]
] }, p.children)));
}
-function Vme(e, t) {
+function Ume(e, t) {
if (e && "slots" in e && e.slots) {
let n = {};
for (let r in e.slots) n[r] = {
@@ -40492,8 +40505,8 @@ function Vme(e, t) {
...t
};
}
-function Dz(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(Tz), s = (0, F.useContext)(xz), c = ZC((0, F.useMemo)(() => HC(e.modalRef, n), [e.modalRef, n])), l = iz(c, o, e.onEnter), u = yL({
+function Ez(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(wz), s = (0, F.useContext)(bz), c = XC((0, F.useMemo)(() => VC(e.modalRef, n), [e.modalRef, n])), l = rz(c, o, e.onEnter), u = vL({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -40502,20 +40515,20 @@ function Dz(e) {
state: s
}
});
- return BS(() => {
+ return zS(() => {
i && (i.current = e.onExit);
- }), /*#__PURE__*/ F.createElement(TL.div, {
- ...q(Ww(e, { global: !0 }), t),
+ }), /*#__PURE__*/ F.createElement(wL.div, {
+ ...q(Uw(e, { global: !0 }), t),
...u,
ref: c,
"data-entering": l || void 0,
"data-exiting": r || void 0
- }, a && /*#__PURE__*/ F.createElement(mk, { 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 Hme = Math.round(Math.random() * 1e10), Ume = 0;
-function Wme(e) {
- let t = (0, F.useMemo)(() => e.name || `radio-group-${Hme}-${++Ume}`, [e.name]), [n, r] = nE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = qT({
+var Wme = Math.round(Math.random() * 1e10), Gme = 0;
+function Kme(e) {
+ let t = (0, F.useMemo)(() => e.name || `radio-group-${Wme}-${++Gme}`, [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) => {
@@ -40537,16 +40550,16 @@ function Wme(e) {
};
}
// node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Gme = /*#__PURE__*/ (0, F.createContext)(null), Kme = /*#__PURE__*/ (0, F.createContext)(null), Oz = /*#__PURE__*/ (0, F.createContext)(null), kz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = xL(e, t, Gme);
- let { validationBehavior: n } = bL(VL) || {}, r = e.validationBehavior ?? n ?? "native", i = Wme({
+var qme = /*#__PURE__*/ (0, F.createContext)(null), Jme = /*#__PURE__*/ (0, F.createContext)(null), Dz = /*#__PURE__*/ (0, F.createContext)(null), Oz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = bL(e, t, qme);
+ let { validationBehavior: n } = yL(BL) || {}, r = e.validationBehavior ?? n ?? "native", i = Kme({
...e,
validationBehavior: r
- }), [a, o] = SL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = kce({
+ }), [a, o] = xL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = jce({
...e,
label: o,
validationBehavior: r
- }, i), f = yL({
+ }, i), f = vL({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -40557,8 +40570,8 @@ var Gme = /*#__PURE__*/ (0, F.createContext)(null), Kme = /*#__PURE__*/ (0, F.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = Ww(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(TL.div, {
+ }), p = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(wL.div, {
...q(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -40567,39 +40580,39 @@ var Gme = /*#__PURE__*/ (0, F.createContext)(null), Kme = /*#__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(vL, { values: [
- [Oz, i],
- [NL, {
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [Dz, i],
+ [ML, {
...c,
ref: a,
elementType: "span"
}],
- [zL, { slots: {
+ [RL, { slots: {
description: l,
errorMessage: u
} }],
- [BL, d]
- ] }, /*#__PURE__*/ F.createElement(zR, null, f.children)));
-}), Az = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [zL, d]
+ ] }, /*#__PURE__*/ F.createElement(RR, null, f.children)));
+}), kz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = xL(r, t, Kme);
- let i = F.useContext(Oz), a = ZC((0, F.useMemo)(() => HC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Oce({
- ...CL(e),
+ [e, t] = bL(r, t, Jme);
+ let i = F.useContext(Dz), a = XC((0, F.useMemo)(() => VC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Ace({
+ ...SL(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ F.createElement(jz.Provider, { value: {
+ return /*#__PURE__*/ F.createElement(Az.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ F.createElement(qme, {
+ } }, /*#__PURE__*/ F.createElement(Yme, {
...e,
ref: t
}));
-}), jz = /*#__PURE__*/ (0, F.createContext)(null), qme = /*#__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)(jz), l = F.useContext(Oz), { isFocused: u, isFocusVisible: d, focusProps: f } = AD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = PD({
+}), Az = /*#__PURE__*/ (0, F.createContext)(null), Yme = /*#__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)(Az), l = F.useContext(Dz), { isFocused: u, isFocusVisible: d, focusProps: f } = kD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = ND({
...e,
isDisabled: p
- }), g = yL({
+ }), g = vL({
...e,
defaultClassName: s,
values: {
@@ -40613,8 +40626,8 @@ var Gme = /*#__PURE__*/ (0, F.createContext)(null), Kme = /*#__PURE__*/ (0, F.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = Ww(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(TL.label, {
+ }), _ = Uw(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(wL.label, {
...q(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -40626,18 +40639,18 @@ var Gme = /*#__PURE__*/ (0, F.createContext)(null), Kme = /*#__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(fE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(dE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...q(r, f),
ref: c
})), g.children);
});
// node_modules/react-stately/dist/private/select/useSelectState.mjs
-function Jme(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = rz(e), [i, a] = (0, F.useState)(null), o = (0, F.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function Xme(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = nz(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] = nE((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
@@ -40649,12 +40662,12 @@ function Jme(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = ZR({
+ }, d = XR({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, F.useMemo)(() => Yme(l), [l]),
+ selectedKeys: (0, F.useMemo)(() => Zme(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -40664,7 +40677,7 @@ function Jme(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 = qT({
+ }), 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);
@@ -40691,15 +40704,15 @@ function Jme(e) {
setFocused: g
};
}
-function Yme(e) {
+function Zme(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
// node_modules/react-aria-components/dist/private/Select.mjs
-function Xme(e) {
+function Qme(e) {
return e && e.__esModule ? e.default : e;
}
-var Mz = /*#__PURE__*/ (0, F.createContext)(null), Nz = /*#__PURE__*/ (0, F.createContext)(null), Zme = /*#__PURE__*/ nw(function(e, t) {
- [e, t] = xL(e, t, Mz);
+var jz = /*#__PURE__*/ (0, F.createContext)(null), Mz = /*#__PURE__*/ (0, F.createContext)(null), $me = /*#__PURE__*/ tw(function(e, t) {
+ [e, t] = bL(e, t, jz);
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,
@@ -40714,24 +40727,24 @@ var Mz = /*#__PURE__*/ (0, F.createContext)(null), Nz = /*#__PURE__*/ (0, F.crea
i,
a
]);
- return /*#__PURE__*/ F.createElement(sw, { content: o }, (n) => /*#__PURE__*/ F.createElement($me, {
+ return /*#__PURE__*/ F.createElement(ow, { content: o }, (n) => /*#__PURE__*/ F.createElement(the, {
props: e,
collection: n,
selectRef: t
}));
-}), Qme = [
- NL,
- FL,
- zL
+}), ehe = [
+ ML,
+ PL,
+ RL
];
-function $me({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = bL(VL) || {}, i = e.validationBehavior ?? r ?? "native", a = Jme({
+function the({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = yL(BL) || {}, i = e.validationBehavior ?? r ?? "native", a = Xme({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = AD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = SL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Ace({
- ...CL(e),
+ }), { isFocusVisible: o, focusProps: s } = kD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = xL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Mce({
+ ...SL(e),
label: u,
validationBehavior: i
}, a, c), y = (0, F.useMemo)(() => ({
@@ -40748,48 +40761,48 @@ function $me({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = yL({
+ ]), b = vL({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = Ww(e, { global: !0 });
+ }), x = Uw(e, { global: !0 });
delete x.id;
let S = (0, F.useRef)(null);
- return /*#__PURE__*/ F.createElement(vL, { values: [
- [Mz, e],
- [Nz, a],
- [Pz, p],
- [NL, {
+ return /*#__PURE__*/ F.createElement(_L, { values: [
+ [jz, e],
+ [Mz, a],
+ [Nz, p],
+ [ML, {
...d,
ref: l,
elementType: "span"
}],
- [FL, {
+ [PL, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [xz, a],
- [sz, {
+ [bz, a],
+ [oz, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: Qme
+ clearContexts: ehe
}],
- [ez, {
+ [$R, {
...m,
ref: S
}],
- [tz, a],
- [zL, { slots: {
+ [ez, a],
+ [RL, { slots: {
description: h,
errorMessage: g
} }],
- [BL, v]
- ] }, /*#__PURE__*/ F.createElement(TL.div, {
+ [zL, v]
+ ] }, /*#__PURE__*/ F.createElement(wL.div, {
...q(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -40799,14 +40812,14 @@ function $me({ 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(Mce, {
+ }, b.children, /*#__PURE__*/ F.createElement(Pce, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), ehe = /*#__PURE__*/ nw(function(e, t) {
- [e, t] = xL(e, t, Pz);
- let n = (0, F.useContext)(Nz), { placeholder: r } = bL(Mz), i = n.selectedItems.map((e) => {
+for (var Nz = /*#__PURE__*/ (0, F.createContext)(null), nhe = /*#__PURE__*/ tw(function(e, t) {
+ [e, t] = bL(e, t, Nz);
+ let n = (0, F.useContext)(Mz), { placeholder: r } = yL(jz), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -40818,7 +40831,7 @@ for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), ehe = /*#__PURE__*/ nw(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = Ise(), 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 = Lse(), 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
@@ -40833,7 +40846,7 @@ for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), ehe = /*#__PURE__*/ nw(f
a,
o,
i
- ]), u = Hw(Xme(NR), "react-aria-components"), d = yL({
+ ]), u = Vw(Qme(MR), "react-aria-components"), d = vL({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -40844,33 +40857,33 @@ for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), ehe = /*#__PURE__*/ nw(f
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = Ww(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(TL.span, {
+ }), f = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(wL.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ F.createElement(zL.Provider, { value: void 0 }, d.children));
-}), the = /*#__PURE__*/ (0, F.createContext)(null), Fz = /*#__PURE__*/ (0, F.createContext)(null), nhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ F.createElement(RL.Provider, { value: void 0 }, d.children));
+}), rhe = /*#__PURE__*/ (0, F.createContext)(null), Pz = /*#__PURE__*/ (0, F.createContext)(null), ihe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = xL(r, t, the);
- let i = ZC((0, F.useMemo)(() => HC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = rE(e), o = Pce({
- ...CL(e),
+ [e, t] = bL(r, t, rhe);
+ let i = XC((0, F.useMemo)(() => VC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = nE(e), o = Ice({
+ ...SL(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ F.createElement(vL, { values: [[Fz, a], [Iz, {
+ return /*#__PURE__*/ F.createElement(_L, { values: [[Pz, a], [Fz, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ F.createElement(rhe, {
+ }]] }, /*#__PURE__*/ F.createElement(ahe, {
...e,
ref: t
}));
-}), Iz = /*#__PURE__*/ (0, F.createContext)(null), rhe = /*#__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)(Iz), { isFocused: f, isFocusVisible: p, focusProps: m } = AD(), h = a || o, g = (0, F.useContext)(Fz), { hoverProps: _, isHovered: v } = PD({
+}), Fz = /*#__PURE__*/ (0, F.createContext)(null), ahe = /*#__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)(Fz), { isFocused: f, isFocusVisible: p, focusProps: m } = kD(), h = a || o, g = (0, F.useContext)(Pz), { hoverProps: _, isHovered: v } = ND({
...e,
isDisabled: h
- }), y = yL({
+ }), y = vL({
...e,
defaultClassName: u,
values: {
@@ -40885,8 +40898,8 @@ for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), ehe = /*#__PURE__*/ nw(f
isRequired: d || !1,
state: g
}
- }), b = Ww(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(TL.label, {
+ }), b = Uw(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(wL.label, {
...q(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -40899,11 +40912,11 @@ for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), ehe = /*#__PURE__*/ nw(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ F.createElement(fE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
+ }, /*#__PURE__*/ F.createElement(dE, { elementType: "span" }, /*#__PURE__*/ F.createElement("input", {
...q(r, m),
ref: l
})), y.children);
-}), Lz = 10, Rz = 5, zz = class {
+}), Iz = 10, Lz = 5, Rz = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -40913,7 +40926,7 @@ for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), ehe = /*#__PURE__*/ nw(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) > Rz && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Lz && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ if (Math.abs(a) > Lz && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Iz && (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);
@@ -40992,11 +41005,11 @@ for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), ehe = /*#__PURE__*/ nw(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > Rz && i) {
+ if (Math.abs(r - c.lastSwitchY) > Lz && 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 > Lz && a) {
+ if (l > Iz && 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;
}
@@ -41011,7 +41024,7 @@ for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), ehe = /*#__PURE__*/ nw(f
boundaryContext: null
};
}
-}, ihe = class {
+}, ohe = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -41081,8 +41094,8 @@ for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), ehe = /*#__PURE__*/ nw(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, Bz = "row-header-column-" + Math.random().toString(36).slice(2), Vz = "row-header-column-" + Math.random().toString(36).slice(2); Bz === Vz;) Vz = "row-header-column-" + Math.random().toString(36).slice(2);
-function Hz(e, t) {
+}, zz = "row-header-column-" + Math.random().toString(36).slice(2), Bz = "row-header-column-" + Math.random().toString(36).slice(2); zz === Bz;) Bz = "row-header-column-" + Math.random().toString(36).slice(2);
+function Vz(e, t) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -41166,13 +41179,13 @@ function Hz(e, t) {
textValue: ""
}));
}
-var ahe = class extends ihe {
+var she = class extends ohe {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: Bz,
+ key: zz,
value: null,
textValue: "",
level: 0,
@@ -41187,7 +41200,7 @@ var ahe = class extends ihe {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: Vz,
+ key: Bz,
value: null,
textValue: "",
level: 0,
@@ -41214,7 +41227,7 @@ var ahe = class extends ihe {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = Hz(s, a);
+ let l = Vz(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -41240,10 +41253,10 @@ var ahe = class extends ihe {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return hD(this.body.childNodes)?.key ?? null;
+ return mD(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return _D(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;
@@ -41274,15 +41287,15 @@ var ahe = class extends ihe {
}
};
// node_modules/react-stately/dist/private/table/TableUtils.mjs
-function ohe(e) {
+function che(e) {
return e != null && (!isNaN(e) || String(e).match(/^(\d+)(?=%$)/) !== null);
}
-function she(e) {
+function lhe(e) {
if (!e || typeof e == "number") return 1;
let t = e.match(/^(.+)(?=fr$)/);
return t ? parseFloat(t[0]) : 1;
}
-function Uz(e, t) {
+function Hz(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");
@@ -41290,19 +41303,19 @@ function Uz(e, t) {
}
return e;
}
-function Wz(e, t) {
- return e == null ? 2 ** 53 - 1 : Uz(e, t);
+function Uz(e, t) {
+ return e == null ? 2 ** 53 - 1 : Hz(e, t);
}
-function Gz(e, t) {
- return e == null ? 0 : Uz(e, t);
+function Wz(e, t) {
+ return e == null ? 0 : Hz(e, t);
}
-function che(e, t, n, r, i) {
+function uhe(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;
- ohe(o) ? (l = Uz(o, e), s = !0) : (u = she(o), u <= 0 && (s = !0));
- let f = Gz(t.minWidth ?? i?.(a) ?? 0, e), p = Wz(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
+ che(o) ? (l = Hz(o, e), s = !0) : (u = lhe(o), u <= 0 && (s = !0));
+ let f = Wz(t.minWidth ?? i?.(a) ?? 0, e), p = Uz(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,
@@ -41336,14 +41349,14 @@ function che(e, t, n, r, i) {
i === 0 || Math.sign(i) === Math.sign(e.violation) ? e.frozen = !0 : e.frozen || (c = !0);
});
}
- let u = lhe(l);
+ let u = dhe(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 lhe(e) {
+function dhe(e) {
let t = 0, n = 0, r = [];
return e.forEach(function(e) {
let i = e.targetMainSize, a = Math.round(i + t) - n;
@@ -41351,7 +41364,7 @@ function lhe(e) {
}), r;
}
// node_modules/react-stately/dist/private/table/TableColumnLayout.mjs
-var uhe = class {
+var fhe = 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);
}
@@ -41380,18 +41393,18 @@ var uhe = class {
}), o;
}
buildColumnWidths(e, t, n) {
- return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), che(e, t.columns.map((e) => ({
+ return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), uhe(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, Gz(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, Wz(a.props.maxWidth, e));
+ this.columnWidths.set(i, n), this.columnMinWidths.set(i, Wz(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, Uz(a.props.maxWidth, e));
}), this.columnWidths;
}
};
// node_modules/react-stately/dist/private/table/useTableColumnResizeState.mjs
-function dhe(e, t) {
- let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new uhe({
+function phe(e, t) {
+ let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new fhe({
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);
@@ -41442,19 +41455,19 @@ function dhe(e, t) {
]);
}
// node_modules/react-stately/dist/private/grid/useGridState.mjs
-function fhe(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || GR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+function mhe(e) {
+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || WR(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 = mD(n, t);
- e = r === "last" ? _D(i)?.key ?? null : hD(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 qR(t, r), [t, r]), s = (0, F.useRef)(null);
+ let o = (0, F.useMemo)(() => new KR(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;
@@ -41474,7 +41487,7 @@ function fhe(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...mD(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);
}
@@ -41492,11 +41505,11 @@ function fhe(e) {
};
}
// node_modules/react-stately/dist/private/table/useTableState.mjs
-var phe = {
+var hhe = {
ascending: "descending",
descending: "ascending"
};
-function mhe(e) {
+function ghe(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,
@@ -41507,11 +41520,11 @@ function mhe(e) {
i,
r,
a
- ]), c = XR(e, (0, F.useCallback)((e) => new ahe(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = fhe({
+ ]), c = YR(e, (0, F.useCallback)((e) => new she(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = mhe({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = nE(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,
@@ -41523,7 +41536,7 @@ function mhe(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? phe[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? hhe[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -41536,7 +41549,7 @@ function mhe(e) {
treeColumn: o
};
}
-function hhe(e, t) {
+function _he(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -41545,10 +41558,10 @@ function hhe(e, t) {
};
}
// node_modules/react-aria-components/dist/private/Table.mjs
-function ghe(e) {
+function vhe(e) {
return e && e.__esModule ? e.default : e;
}
-var _he = class extends vS {
+var yhe = class extends _S {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -41563,7 +41576,7 @@ var _he = class extends vS {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new eB(-2);
+ return new $z(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -41589,7 +41602,7 @@ var _he = class extends vS {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = Hz(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 = Vz(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;
@@ -41670,28 +41683,28 @@ var _he = class extends vS {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Xz(-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 Yz(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Kz = /*#__PURE__*/ (0, F.createContext)(null), vhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = ZC(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
- BS(() => {
+}, Gz = /*#__PURE__*/ (0, F.createContext)(null), bhe = /*#__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 && !NT(e);) e = e.parentElement;
+ for (; e && e !== n.current && !MT(e);) e = e.parentElement;
i.current = e;
- }, [n]), MO({
+ }, [n]), jO({
ref: i,
box: "border-box",
onResize() {
o(i.current?.clientWidth ?? 0);
}
- }), BS(() => {
+ }), zS(() => {
o(i.current?.clientWidth ?? 0);
}, []);
let s = (0, F.useMemo)(() => ({
tableRef: r,
scrollRef: i,
tableWidth: a,
- useTableColumnResizeState: dhe,
+ useTableColumnResizeState: phe,
onResizeStart: e.onResizeStart,
onResize: e.onResize,
onResizeEnd: e.onResizeEnd
@@ -41702,17 +41715,17 @@ var _he = class extends vS {
e.onResize,
e.onResizeEnd
]);
- return /*#__PURE__*/ F.createElement(TL.div, {
+ return /*#__PURE__*/ F.createElement(wL.div, {
render: e.render,
- ...Ww(e, { global: !0 }),
+ ...Uw(e, { global: !0 }),
ref: n,
className: e.className || "react-aria-ResizableTableContainer",
style: e.style,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(Kz.Provider, { value: s }, e.children));
-}), yhe = /*#__PURE__*/ (0, F.createContext)(null), qz = /*#__PURE__*/ (0, F.createContext)(null), Jz = /*#__PURE__*/ (0, F.createContext)(null), bhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = xL(e, t, yhe);
- let n = GR(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, F.useMemo)(() => ({
+ }, /*#__PURE__*/ F.createElement(Gz.Provider, { value: s }, e.children));
+}), xhe = /*#__PURE__*/ (0, F.createContext)(null), Kz = /*#__PURE__*/ (0, F.createContext)(null), qz = /*#__PURE__*/ (0, F.createContext)(null), She = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = bL(e, t, xhe);
+ let n = WR(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,
@@ -41722,26 +41735,26 @@ var _he = class extends vS {
i,
a,
o
- ]), c = /*#__PURE__*/ F.createElement(Che.Provider, { value: s }, /*#__PURE__*/ F.createElement(mw, e));
- return /*#__PURE__*/ F.createElement(sw, {
+ ]), c = /*#__PURE__*/ F.createElement(The.Provider, { value: s }, /*#__PURE__*/ F.createElement(pw, e));
+ return /*#__PURE__*/ F.createElement(ow, {
content: c,
- createCollection: () => new _he()
- }, (r) => /*#__PURE__*/ F.createElement(She, {
+ createCollection: () => new yhe()
+ }, (r) => /*#__PURE__*/ F.createElement(whe, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), xhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(jL);
- return n ? /*#__PURE__*/ F.createElement(TL.div, {
+}), Che = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(AL);
+ return n ? /*#__PURE__*/ F.createElement(wL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(TL.table, {
+ }) : /*#__PURE__*/ F.createElement(wL.table, {
...e,
ref: t
});
-}), Yz = {
+}), Jz = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -41751,26 +41764,26 @@ var _he = class extends vS {
rtl: "ArrowRight"
}
};
-function She({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = xL(e, t, EL);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(Kz);
- t = ZC((0, F.useMemo)(() => HC(t, c?.tableRef), [t, c?.tableRef]));
- let [l, u] = nE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+function whe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = bL(e, t, TL);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(Gz);
+ 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 = mhe({
+ let d = ghe({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = hhe(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(jL), { dragAndDropHooks: _ } = e, { gridProps: v } = Bce({
+ }), f = _he(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(AL), { dragAndDropHooks: _ } = e, { gridProps: v } = Vce({
...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 } = Iw(), [k] = (0, F.useState)(() => new zz());
+ let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = Fw(), [k] = (0, F.useState)(() => new Rz());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -41785,7 +41798,7 @@ function She({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new TE({
+ let e = new wE({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -41805,12 +41818,12 @@ function She({ 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 === Yz.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Yz.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);
+ (e.key === Jz.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Jz.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 } = AD(), ee = yL({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = kD(), ee = vL({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -41826,19 +41839,19 @@ function She({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let ne = Ww(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(vL, { values: [
- [qz, f],
- [Jz, P],
- [PR, {
+ let ne = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(_L, { values: [
+ [Kz, f],
+ [qz, P],
+ [NR, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [FR, { render: Nhe }],
- [EL, null],
- [DL, null]
- ] }, /*#__PURE__*/ F.createElement(mT, null, /*#__PURE__*/ F.createElement(xhe, {
+ [PR, { render: Fhe }],
+ [TL, null],
+ [EL, null]
+ ] }, /*#__PURE__*/ F.createElement(pT, null, /*#__PURE__*/ F.createElement(Che, {
...q(ne, ee, v, A, w?.collectionProps),
style: te,
ref: t,
@@ -41848,55 +41861,55 @@ function She({ 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(zR, null, /*#__PURE__*/ F.createElement(g, {
+ }, /*#__PURE__*/ F.createElement(RR, null, /*#__PURE__*/ F.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: LR(y, _, C)
+ persistedKeys: IR(y, _, C)
})))), E);
}
-var Che = /*#__PURE__*/ (0, F.createContext)(null), Xz = class extends mS {
+var The = /*#__PURE__*/ (0, F.createContext)(null), Yz = class extends pS {
static {
this.type = "tableheader";
}
-}, whe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(jL);
- return n ? /*#__PURE__*/ F.createElement(TL.div, {
+}, Ehe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(AL);
+ return n ? /*#__PURE__*/ F.createElement(wL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(TL.thead, {
+ }) : /*#__PURE__*/ F.createElement(wL.thead, {
...e,
ref: t
});
-}), Zz = /*#__PURE__*/ dw(Xz, (e, t) => {
- let n = (0, F.useContext)(qz).collection, r = SS({
+}), Xz = /*#__PURE__*/ uw(Yz, (e, t) => {
+ let n = (0, F.useContext)(Kz).collection, r = xS({
items: n.headerRows,
children: (0, F.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ F.createElement(Ehe, { item: e });
+ case "headerrow": return /*#__PURE__*/ F.createElement(Ohe, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = jA(), { hoverProps: a, isHovered: o } = PD({
+ }), { rowGroupProps: i } = AA(), { hoverProps: a, isHovered: o } = ND({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = yL({
+ }), s = vL({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ F.createElement(whe, {
- ...q(Ww(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ F.createElement(Ehe, {
+ ...q(Uw(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
}, r);
-}, (e) => /*#__PURE__*/ F.createElement(mw, {
+}, (e) => /*#__PURE__*/ F.createElement(pw, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), The = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(jL);
+}, e.children)), Dhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(AL);
return n ? /*#__PURE__*/ F.createElement("div", {
...e,
ref: t
@@ -41905,41 +41918,41 @@ var Che = /*#__PURE__*/ (0, F.createContext)(null), Xz = class extends mS {
ref: t
});
});
-function Ehe({ item: e }) {
- let t = (0, F.useRef)(null), n = (0, F.useContext)(qz), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(jL), { rowProps: a } = Kce({
+function Ohe({ item: e }) {
+ let t = (0, F.useRef)(null), n = (0, F.useContext)(Kz), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(AL), { rowProps: a } = qce({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = $ce(n);
- return /*#__PURE__*/ F.createElement(The, {
+ }, n, t), { checkboxProps: o } = ele(n);
+ return /*#__PURE__*/ F.createElement(Dhe, {
...a,
ref: t
- }, /*#__PURE__*/ F.createElement(vL, { values: [[HL, { slots: { selection: o } }], [UL, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
+ }, /*#__PURE__*/ F.createElement(_L, { values: [[VL, { slots: { selection: o } }], [HL, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var Dhe = class extends mS {
+var khe = class extends pS {
static {
this.type = "column";
}
-}, Ohe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(jL);
- return n ? /*#__PURE__*/ F.createElement(TL.div, {
+}, Ahe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(AL);
+ return n ? /*#__PURE__*/ F.createElement(wL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(TL.th, {
+ }) : /*#__PURE__*/ F.createElement(wL.th, {
...e,
ref: t
});
-}), Qz = /*#__PURE__*/ uw(Dhe, (e, t, n) => {
- let r = ZC(t), i = (0, F.useContext)(qz), { isVirtualized: a } = (0, F.useContext)(jL), { columnHeaderProps: o, isPressed: s } = Uce({
+}), Zz = /*#__PURE__*/ lw(khe, (e, t, n) => {
+ let r = XC(t), i = (0, F.useContext)(Kz), { isVirtualized: a } = (0, F.useContext)(AL), { columnHeaderProps: o, isPressed: s } = Wce({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = AD(), d = (0, F.useContext)(Jz), 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 } = PD({ isDisabled: !e.allowsSorting }), h = yL({
+ let { hoverProps: p, isHovered: m } = ND({ isDisabled: !e.allowsSorting }), h = vL({
...e,
id: void 0,
children: n.rendered,
@@ -41965,8 +41978,8 @@ var Dhe = class extends mS {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = Ww(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ F.createElement(Ohe, {
+ let _ = Uw(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ F.createElement(Ahe, {
...q(_, o, u, p),
...h,
style: g,
@@ -41978,29 +41991,29 @@ var Dhe = class extends mS {
"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(vL, { values: [[$z, {
+ }, /*#__PURE__*/ F.createElement(_L, { values: [[Qz, {
column: n,
triggerRef: r
- }], [jL, kL]] }, h.children));
-}), $z = /*#__PURE__*/ (0, F.createContext)(null), khe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = (0, F.useContext)(Jz);
+ }], [AL, OL]] }, h.children));
+}), Qz = /*#__PURE__*/ (0, F.createContext)(null), jhe = /*#__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 = Hw(ghe(NR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(Kz), { column: s, triggerRef: c } = (0, F.useContext)($z), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Gce({
+ let r = Vw(vhe(MR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(Gz), { column: s, triggerRef: c } = (0, F.useContext)(Qz), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Kce({
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 } = AD(), { hoverProps: _, isHovered: v } = PD(e), y = n.getColumnMinWidth(s.key) >= n.getColumnWidth(s.key), b = n.getColumnMaxWidth(s.key) <= n.getColumnWidth(s.key), { direction: x } = Iw(), 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 = ZC(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 = yL({
+ let E = vL({
...e,
defaultClassName: "react-aria-ColumnResizer",
values: {
@@ -42010,8 +42023,8 @@ var Dhe = class extends mS {
isHovered: v,
resizableDirection: S
}
- }), D = Ww(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(TL.div, {
+ }), D = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(wL.div, {
ref: C,
role: "presentation",
...q(D, E, u, _),
@@ -42034,24 +42047,24 @@ var Dhe = class extends mS {
},
"data-testid": "cursor-overlay"
}), document.body));
-}), eB = class extends hS {
+}), $z = class extends mS {
static {
this.type = "tablebody";
}
-}, Ahe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(jL);
- return n ? /*#__PURE__*/ F.createElement(TL.div, {
+}, Mhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(AL);
+ return n ? /*#__PURE__*/ F.createElement(wL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(TL.tbody, {
+ }) : /*#__PURE__*/ F.createElement(wL.tbody, {
...e,
ref: t
});
-}), tB = /*#__PURE__*/ dw(eB, (e, t, n) => {
- let r = (0, F.useContext)(qz), { isVirtualized: i } = (0, F.useContext)(jL), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(jL), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(PR), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), eB = /*#__PURE__*/ uw($z, (e, t, n) => {
+ let r = (0, F.useContext)(Kz), { isVirtualized: i } = (0, F.useContext)(AL), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(AL), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(NR), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
isDropTarget: u,
isEmpty: d
- }, p = yL({
+ }, p = vL({
...e,
id: void 0,
children: void 0,
@@ -42060,33 +42073,33 @@ var Dhe = class extends mS {
}), 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(rB, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ F.createElement(nB, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ F.createElement(aB, {
+ }, /*#__PURE__*/ F.createElement(iB, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = jA(), _ = Ww(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(Ahe, {
+ let { rowGroupProps: g } = AA(), _ = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(Mhe, {
...q(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ F.createElement(Rhe, null), /*#__PURE__*/ F.createElement(o, {
+ }, l && /*#__PURE__*/ F.createElement(Bhe, null), /*#__PURE__*/ F.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: IR(s, c)
+ renderDropIndicator: FR(s, c)
}), m);
});
-(class extends hS {
+(class extends mS {
static {
this.type = "tablefooter";
}
});
-var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), jhe = class extends mS {
+var tB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Nhe = class extends pS {
static {
this.type = "item";
}
@@ -42098,31 +42111,31 @@ var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), jh
}
return null;
}
-}, rB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(jL);
- return n ? /*#__PURE__*/ F.createElement(TL.div, {
+}, nB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(AL);
+ return n ? /*#__PURE__*/ F.createElement(wL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(TL.tr, {
+ }) : /*#__PURE__*/ F.createElement(wL.tr, {
...e,
ref: t
});
-}), iB = /*#__PURE__*/ dw(jhe, (e, t, n) => {
- let r = ZC(t), i = (0, F.useContext)(qz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(PR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(jL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Yce({
+}), rB = /*#__PURE__*/ uw(Nhe, (e, t, n) => {
+ let r = XC(t), i = (0, F.useContext)(Kz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(NR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(AL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Xce({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = AD(), { isFocusVisible: _, focusProps: v } = AD({ within: !0 }), { hoverProps: y, isHovered: b } = PD({
+ }, 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 } = Qce({ key: n.key }, i), S;
+ }), { checkboxProps: x } = $ce({ 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 } = dE();
+ let C, w = (0, F.useRef)(null), { visuallyHiddenProps: T } = uE();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -42132,7 +42145,7 @@ var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), jh
(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 = yL({
+ 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 = vL({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -42153,11 +42166,11 @@ var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), jh
isExpanded: j,
level: n.level + 1
}
- }), ee = Ww(e, { global: !0 });
- return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(rB, {
+ }), ee = Uw(e, { global: !0 });
+ return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(nB, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(aB, {
+ }, /*#__PURE__*/ F.createElement(iB, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -42166,7 +42179,7 @@ var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), jh
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ F.createElement(rB, {
+ }))), /*#__PURE__*/ F.createElement(nB, {
...q(ee, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -42182,17 +42195,17 @@ var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), jh
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(vL, { values: [
- [HL, { slots: {
- [_L]: {},
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [VL, { slots: {
+ [gL]: {},
selection: x
} }],
- [UL, { slots: {
- [_L]: {},
+ [HL, { slots: {
+ [gL]: {},
selection: x
} }],
- [FL, { slots: {
- [_L]: {},
+ [PL, { slots: {
+ [gL]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -42200,8 +42213,8 @@ var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), jh
style: { pointerEvents: "none" }
}
} }],
- [BR, { isSelected: p.isSelected }],
- [nB, { isFocusVisibleWithinRow: _ }]
+ [zR, { isSelected: p.isSelected }],
+ [tB, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ F.createElement(l, {
collection: i.collection,
parent: n
@@ -42209,34 +42222,34 @@ var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), jh
}, (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(mw, {
+ return /*#__PURE__*/ F.createElement(pw, {
dependencies: t,
items: e.columns,
idScope: e.id
}, e.children);
-}), Mhe = class extends mS {
+}), Phe = class extends pS {
static {
this.type = "cell";
}
-}, aB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(jL);
- return n ? /*#__PURE__*/ F.createElement(TL.div, {
+}, iB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(AL);
+ return n ? /*#__PURE__*/ F.createElement(wL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(TL.td, {
+ }) : /*#__PURE__*/ F.createElement(wL.td, {
...e,
ref: t
});
-}), oB = /*#__PURE__*/ uw(Mhe, (e, t, n) => {
- let r = ZC(t), i = (0, F.useContext)(qz), { dragState: a } = (0, F.useContext)(PR), { isVirtualized: o } = (0, F.useContext)(jL);
+}), aB = /*#__PURE__*/ lw(Phe, (e, t, n) => {
+ let r = XC(t), i = (0, F.useContext)(Kz), { dragState: a } = (0, F.useContext)(NR), { isVirtualized: o } = (0, F.useContext)(AL);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = Vce({
+ let { gridCellProps: s, isPressed: c } = Hce({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = AD(), { hoverProps: f, isHovered: p } = PD({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(nB), 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 = yL({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = kD(), { hoverProps: f, isHovered: p } = ND({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(tB), 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 = vL({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -42255,8 +42268,8 @@ var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), jh
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = Ww(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ F.createElement(aB, {
+ }), S = Uw(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ F.createElement(iB, {
...q(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -42270,14 +42283,14 @@ var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), jh
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ F.createElement(jL.Provider, { value: kL }, x.children));
+ }, /*#__PURE__*/ F.createElement(AL.Provider, { value: OL }, x.children));
});
-function Nhe(e, t) {
- t = ZC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(PR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function Fhe(e, t) {
+ t = XC(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(NR), 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(Lhe, {
+ return /*#__PURE__*/ F.createElement(zhe, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -42286,40 +42299,40 @@ function Nhe(e, t) {
ref: t
});
}
-var Phe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(jL);
- return n ? /*#__PURE__*/ F.createElement(TL.div, {
+var Ihe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(AL);
+ return n ? /*#__PURE__*/ F.createElement(wL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(TL.tr, {
+ }) : /*#__PURE__*/ F.createElement(wL.tr, {
...e,
ref: t
});
-}), Fhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(jL);
- return n ? /*#__PURE__*/ F.createElement(TL.div, {
+}), Lhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(AL);
+ return n ? /*#__PURE__*/ F.createElement(wL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(TL.td, {
+ }) : /*#__PURE__*/ F.createElement(wL.td, {
...e,
ref: t
});
});
-function Ihe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(qz), { visuallyHiddenProps: c } = dE(), l = yL({
+function Rhe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(Kz), { visuallyHiddenProps: c } = uE(), l = vL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(Phe, {
- ...Ww(e, { global: !0 }),
+ return /*#__PURE__*/ F.createElement(Ihe, {
+ ...Uw(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ F.createElement(Fhe, {
+ }, /*#__PURE__*/ F.createElement(Lhe, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -42330,14 +42343,14 @@ function Ihe(e, t) {
ref: i
}), l.children));
}
-var Lhe = /*#__PURE__*/ (0, F.forwardRef)(Ihe);
-function Rhe() {
- let e = (0, F.useContext)(qz), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(PR), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = dE();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(rB, {
+var zhe = /*#__PURE__*/ (0, F.forwardRef)(Rhe);
+function Bhe() {
+ let e = (0, F.useContext)(Kz), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(NR), 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(nB, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(aB, {
+ }, /*#__PURE__*/ F.createElement(iB, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -42348,9 +42361,9 @@ function Rhe() {
ref: r
})));
}
-uw(gS, function(e, t, n) {
- let r = (0, F.useContext)(qz), { isVirtualized: i } = (0, F.useContext)(jL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
- $R((0, F.useMemo)(() => ({
+lw(hS, function(e, t, n) {
+ let r = (0, F.useContext)(Kz), { isVirtualized: i } = (0, F.useContext)(AL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
+ QR((0, F.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -42360,7 +42373,7 @@ uw(gS, function(e, t, n) {
s,
r?.collection
]), u);
- let d = yL({
+ let d = vL({
...c,
id: void 0,
children: n.rendered,
@@ -42368,10 +42381,10 @@ uw(gS, 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(rB, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(nB, {
style: { height: 0 },
- inert: HR(!0)
- }, /*#__PURE__*/ F.createElement(aB, { style: {
+ inert: VR(!0)
+ }, /*#__PURE__*/ F.createElement(iB, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ F.createElement("div", {
@@ -42382,22 +42395,22 @@ uw(gS, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ F.createElement(rB, {
- ...q(Ww(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ F.createElement(nB, {
+ ...q(Uw(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(aB, {
+ }, /*#__PURE__*/ F.createElement(iB, {
role: "rowheader",
...p,
style: m
}, d.children)));
});
// node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function zhe(e) {
- let [t, n] = nE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = ZR({
+function Vhe(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 } = XR({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -42419,24 +42432,24 @@ function zhe(e) {
};
}
// node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function Bhe(e) {
- let t = zhe({
+function Hhe(e) {
+ let t = Vhe({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? sB(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? oB(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 = sB(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 = oB(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 sB(e, t) {
+function oB(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);
@@ -42445,24 +42458,24 @@ function sB(e, t) {
return n;
}
// node_modules/react-aria-components/dist/private/Tabs.mjs
-var cB = /*#__PURE__*/ (0, F.createContext)(null), lB = /*#__PURE__*/ (0, F.createContext)(null), Vhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = xL(e, t, cB);
+var sB = /*#__PURE__*/ (0, F.createContext)(null), cB = /*#__PURE__*/ (0, F.createContext)(null), Uhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = bL(e, t, sB);
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(sw, { content: n }, (n) => /*#__PURE__*/ F.createElement(Hhe, {
+ }) : n, [n, r]), /*#__PURE__*/ F.createElement(ow, { content: n }, (n) => /*#__PURE__*/ F.createElement(Whe, {
props: e,
collection: n,
tabsRef: t
}));
});
-function Hhe({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = Bhe({
+function Whe({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = Hhe({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = AD({ 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
@@ -42470,12 +42483,12 @@ function Hhe({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = yL({
+ ]), l = vL({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = Ww(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(TL.div, {
+ }), u = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(wL.div, {
...q(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -42483,20 +42496,20 @@ function Hhe({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ F.createElement(vL, { values: [[cB, e], [lB, i]] }, l.children));
+ }, /*#__PURE__*/ F.createElement(_L, { values: [[sB, e], [cB, i]] }, l.children));
}
-var uB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return (0, F.useContext)(lB) ? /*#__PURE__*/ F.createElement(Uhe, {
+var lB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return (0, F.useContext)(cB) ? /*#__PURE__*/ F.createElement(Ghe, {
props: e,
forwardedRef: t
- }) : /*#__PURE__*/ F.createElement(mw, e);
+ }) : /*#__PURE__*/ F.createElement(pw, e);
});
-function Uhe({ props: e, forwardedRef: t }) {
- let n = (0, F.useContext)(lB), { CollectionRoot: r } = (0, F.useContext)(jL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = bL(cB), o = ZC(t), { tabListProps: s } = nle({
+function Ghe({ props: e, forwardedRef: t }) {
+ let n = (0, F.useContext)(cB), { CollectionRoot: r } = (0, F.useContext)(AL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = yL(sB), o = XC(t), { tabListProps: s } = rle({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = yL({
+ }, n, o), c = vL({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -42504,30 +42517,30 @@ function Uhe({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = Ww(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ F.createElement(TL.div, {
+ }), l = Uw(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ F.createElement(wL.div, {
...q(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ F.createElement(zR, null, /*#__PURE__*/ F.createElement(r, {
+ }, /*#__PURE__*/ F.createElement(RR, null, /*#__PURE__*/ F.createElement(r, {
collection: n.collection,
- persistedKeys: ML(n.selectionManager.focusedKey)
+ persistedKeys: jL(n.selectionManager.focusedKey)
})));
}
-var Whe = /*#__PURE__*/ uw(class extends mS {
+var Khe = /*#__PURE__*/ lw(class extends pS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(lB), i = ZC(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = ele({
+ let r = (0, F.useContext)(cB), i = XC(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = tle({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = AD(), { hoverProps: f, isHovered: p } = PD({
+ }, 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 = yL({
+ }), m = vL({
...e,
id: void 0,
children: n.rendered,
@@ -42540,7 +42553,7 @@ var Whe = /*#__PURE__*/ uw(class extends mS {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? TL.a : TL.div, g = Ww(e, { global: !0 });
+ }), h = n.props.href ? wL.a : wL.div, g = Uw(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ F.createElement(h, {
...q(g, m, a, l, f),
ref: i,
@@ -42550,54 +42563,54 @@ var Whe = /*#__PURE__*/ uw(class extends mS {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ F.createElement(BR.Provider, { value: { isSelected: o } }, m.children));
-}), Ghe = /*#__PURE__*/ nw(function(e, t) {
- let n = (0, F.useContext)(lB), r = ZC(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ F.createElement(zR.Provider, { value: { isSelected: o } }, m.children));
+}), qhe = /*#__PURE__*/ tw(function(e, t) {
+ let n = (0, F.useContext)(cB), 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 = az(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(Khe, {
+ let s = iz(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(Jhe, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function Khe(e) {
- let t = (0, F.useContext)(lB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = rle(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = AD(), d = t.selectedKey === e.id, f = iz(r) && !i, p = yL({
+function Jhe(e) {
+ let t = (0, F.useContext)(cB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = ile(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = kD(), d = t.selectedKey === e.id, f = rz(r) && !i, p = vL({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: HR(!d),
+ isInert: VR(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = Ww(o, { global: !0 });
+ }), m = Uw(o, { global: !0 });
delete m.id;
let h = d ? q(m, s, c, p) : q(m, p);
- return /*#__PURE__*/ F.createElement(TL.div, {
+ return /*#__PURE__*/ F.createElement(wL.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: HR(!d || e.inert),
+ inert: VR(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ F.createElement(vL, { values: [[cB, null], [lB, null]] }, /*#__PURE__*/ F.createElement(jL.Provider, { value: kL }, p.children)));
+ }, /*#__PURE__*/ F.createElement(_L, { values: [[sB, null], [cB, null]] }, /*#__PURE__*/ F.createElement(AL.Provider, { value: OL }, p.children)));
}
// node_modules/react-aria-components/dist/private/TextArea.mjs
-var dB = /*#__PURE__*/ (0, F.createContext)({}), qhe = (e) => {
+var uB = /*#__PURE__*/ (0, F.createContext)({}), Yhe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Jhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = xL(e, t, dB);
- let { hoverProps: n, isHovered: r } = PD(e), { isFocused: i, isFocusVisible: a, focusProps: o } = AD({
+}, Xhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = bL(e, t, uB);
+ 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 = yL({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = vL({
...e,
values: {
isHovered: r,
@@ -42608,8 +42621,8 @@ var dB = /*#__PURE__*/ (0, F.createContext)({}), qhe = (e) => {
},
defaultClassName: "react-aria-TextArea"
});
- return /*#__PURE__*/ F.createElement(TL.textarea, {
- ...q(qhe(e), o, n),
+ return /*#__PURE__*/ F.createElement(wL.textarea, {
+ ...q(Yhe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -42618,18 +42631,18 @@ var dB = /*#__PURE__*/ (0, F.createContext)({}), qhe = (e) => {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), Yhe = /*#__PURE__*/ (0, F.createContext)(null), Xhe = /*#__PURE__*/ nw(function(e, t) {
- [e, t] = xL(e, t, Yhe);
- let { validationBehavior: n } = bL(VL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
- [e, i] = xL(e, i, DL);
- let [a, o] = SL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = vse({
- ...CL(e),
+}), Zhe = /*#__PURE__*/ (0, F.createContext)(null), Qhe = /*#__PURE__*/ tw(function(e, t) {
+ [e, t] = bL(e, t, Zhe);
+ let { validationBehavior: n } = yL(BL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
+ [e, i] = bL(e, i, EL);
+ let [a, o] = xL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = yse({
+ ...SL(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 = yL({
+ }, [i]), h = vL({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -42638,8 +42651,8 @@ var dB = /*#__PURE__*/ (0, F.createContext)({}), qhe = (e) => {
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = Ww(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ F.createElement(TL.div, {
+ }), g = Uw(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ F.createElement(wL.div, {
...g,
...h,
ref: t,
@@ -42648,31 +42661,31 @@ var dB = /*#__PURE__*/ (0, F.createContext)({}), qhe = (e) => {
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(vL, { values: [
- [NL, {
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [ML, {
...l,
ref: a
}],
- [qL, {
+ [KL, {
...u,
ref: m
}],
- [dB, {
+ [uB, {
...u,
ref: m
}],
- [GL, {
+ [WL, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [zL, { slots: {
+ [RL, { slots: {
description: d,
errorMessage: f
} }],
- [BL, p]
+ [zL, p]
] }, h.children));
-}), Zhe = class e extends vS {
+}), $he = 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;
@@ -42744,16 +42757,16 @@ var dB = /*#__PURE__*/ (0, F.createContext)({}), qhe = (e) => {
constructor(...e) {
super(...e), this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Qhe = /*#__PURE__*/ (0, F.createContext)(null), fB = /*#__PURE__*/ (0, F.createContext)(null), $he = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = xL(e, t, Qhe), /*#__PURE__*/ F.createElement(sw, {
- content: /*#__PURE__*/ F.createElement(mw, e),
- createCollection: () => new Zhe()
- }, (n) => /*#__PURE__*/ F.createElement(ege, {
+}, ege = /*#__PURE__*/ (0, F.createContext)(null), dB = /*#__PURE__*/ (0, F.createContext)(null), tge = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = bL(e, t, ege), /*#__PURE__*/ F.createElement(ow, {
+ content: /*#__PURE__*/ F.createElement(pw, e),
+ createCollection: () => new $he()
+ }, (n) => /*#__PURE__*/ F.createElement(nge, {
props: e,
collection: n,
treeRef: t
}));
-}), pB = {
+}), fB = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -42763,17 +42776,17 @@ var dB = /*#__PURE__*/ (0, F.createContext)({}), qhe = (e) => {
rtl: "ArrowRight"
}
};
-function ege({ props: e, collection: t, treeRef: n }) {
- let { dragAndDropHooks: r } = e, { direction: i } = Iw(), a = CD({
+function nge({ 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)(jL), [y, b] = nE(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));
- sge(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
- let D = dz({
+ let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, F.useContext)(AL), [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));
+ lge(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
+ let D = uz({
...e,
selectionMode: u,
expandedKeys: y,
@@ -42781,7 +42794,7 @@ function ege({ props: e, collection: t, treeRef: n }) {
collection: T,
children: void 0,
disabledBehavior: m
- }), { gridProps: O } = ile({
+ }), { gridProps: O } = ale({
...e,
isVirtualized: g,
layoutDelegate: _
@@ -42795,7 +42808,7 @@ function ege({ 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 zz());
+ let [te] = (0, F.useState)(() => new Rz());
if (s && r) {
A = r.useDroppableCollectionState({
collection: D.collection,
@@ -42803,7 +42816,7 @@ function ege({ 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 TE({
+ let t = new wE({
collection: D.collection,
collator: a,
ref: n,
@@ -42825,12 +42838,12 @@ function ege({ 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 === pB.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === pB.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(t.key);
+ (e.key === fB.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === fB.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 } = AD(), ie = {
+ let P = !(!o || k?.isDisabled), { focusProps: ne, isFocused: re, isFocusVisible: I } = kD(), ie = {
isEmpty: D.collection.size === 0,
isFocused: re,
isFocusVisible: I,
@@ -42838,7 +42851,7 @@ function ege({ props: e, collection: t, treeRef: n }) {
selectionMode: D.selectionManager.selectionMode,
allowsDragging: !!P,
state: D
- }, ae = yL({
+ }, ae = vL({
...e,
children: void 0,
defaultClassName: "react-aria-Tree",
@@ -42855,8 +42868,8 @@ function ege({ props: e, collection: t, treeRef: n }) {
style: { display: "contents" }
}, r));
}
- let se = Ww(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(mT, null, /*#__PURE__*/ F.createElement(TL.div, {
+ let se = Uw(e, { global: !0 });
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(pT, null, /*#__PURE__*/ F.createElement(wL.div, {
...q(se, ae, O, ne, j?.collectionProps),
ref: n,
slot: e.slot || void 0,
@@ -42866,54 +42879,54 @@ function ege({ 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(vL, { values: [
- [fB, D],
- [PR, {
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [dB, D],
+ [NR, {
dragAndDropHooks: r,
dragState: k,
dropState: A
}],
- [FR, { render: rge }]
- ] }, s && /*#__PURE__*/ F.createElement(oge, null), /*#__PURE__*/ F.createElement(zR, null, /*#__PURE__*/ F.createElement(h, {
+ [PR, { render: age }]
+ ] }, s && /*#__PURE__*/ F.createElement(cge, null), /*#__PURE__*/ F.createElement(RR, null, /*#__PURE__*/ F.createElement(h, {
collection: D.collection,
- persistedKeys: LR(D.selectionManager, r, A),
+ persistedKeys: IR(D.selectionManager, r, A),
scrollRef: n,
- renderDropIndicator: IR(r, A)
+ renderDropIndicator: FR(r, A)
}))), oe)), ee);
}
-var tge = /*#__PURE__*/ uw(class extends mS {
+var rge = /*#__PURE__*/ lw(class extends pS {
static {
this.type = "content";
}
}, function(e) {
- let t = (0, F.useContext)(mB), n = yL({
+ let t = (0, F.useContext)(pB), n = vL({
children: e.children,
values: t
});
- return /*#__PURE__*/ F.createElement(jL.Provider, { value: kL }, n.children);
-}), mB = /*#__PURE__*/ (0, F.createContext)(null), nge = /*#__PURE__*/ dw(class extends mS {
+ return /*#__PURE__*/ F.createElement(AL.Provider, { value: OL }, n.children);
+}), pB = /*#__PURE__*/ (0, F.createContext)(null), ige = /*#__PURE__*/ uw(class extends pS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(fB);
- t = ZC(t);
- let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(PR), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = hj({
+ let r = (0, F.useContext)(dB);
+ t = XC(t);
+ let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(NR), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = mj({
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: _ } = PD({
+ }, 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 } = AD(), { isFocusVisible: b, focusProps: x } = AD({ within: !0 }), { checkboxProps: S } = qse({ key: n.key }, r), C = null;
+ }), { isFocusVisible: v, focusProps: y } = kD(), { isFocusVisible: b, focusProps: x } = kD({ within: !0 }), { checkboxProps: S } = Jse({ 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 } = dE();
+ 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",
@@ -42952,7 +42965,7 @@ var tge = /*#__PURE__*/ uw(class extends mS {
A,
M,
j
- ]), N = yL({
+ ]), N = vL({
...e,
id: void 0,
children: n.rendered,
@@ -42969,7 +42982,7 @@ var tge = /*#__PURE__*/ uw(class extends mS {
(0, F.useEffect)(() => {
a && te.current;
}, []);
- let P = SS({
+ let P = xS({
items: r.collection.getChildren(n.key),
children: (e) => {
switch (e.type) {
@@ -42979,7 +42992,7 @@ var tge = /*#__PURE__*/ uw(class extends mS {
default: throw Error("Unsupported element type in TreeRow: " + e.type);
}
}
- }), ne = BC(), re = Ww(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"],
@@ -43002,7 +43015,7 @@ var tge = /*#__PURE__*/ uw(class extends mS {
"aria-labelledby": `${ne} ${c.id}`,
tabIndex: -1,
ref: D
- }))), /*#__PURE__*/ F.createElement(TL.div, {
+ }))), /*#__PURE__*/ F.createElement(wL.div, {
...q(re, c, y, g, x, C?.dragProps),
...N,
ref: t,
@@ -43022,17 +43035,17 @@ var tge = /*#__PURE__*/ uw(class extends mS {
}, /*#__PURE__*/ F.createElement("div", {
...l,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(vL, { values: [
- [HL, { slots: {
- [_L]: {},
+ }, /*#__PURE__*/ F.createElement(_L, { values: [
+ [VL, { slots: {
+ [gL]: {},
selection: S
} }],
- [UL, { slots: {
- [_L]: {},
+ [HL, { slots: {
+ [gL]: {},
selection: S
} }],
- [FL, { slots: {
- [_L]: {},
+ [PL, { slots: {
+ [gL]: {},
chevron: {
...u,
ref: T
@@ -43043,13 +43056,13 @@ var tge = /*#__PURE__*/ uw(class extends mS {
style: { pointerEvents: "none" }
}
} }],
- [mB, { ...ee }],
- [BR, { isSelected: f.isSelected }]
+ [pB, { ...ee }],
+ [zR, { isSelected: f.isSelected }]
] }, P))));
});
-uw(gS, function(e, t, n) {
- let { isVirtualized: r } = (0, F.useContext)(jL), i = (0, F.useContext)(fB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
- $R((0, F.useMemo)(() => ({
+lw(hS, function(e, t, n) {
+ let { isVirtualized: r } = (0, F.useContext)(AL), i = (0, F.useContext)(dB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
+ QR((0, F.useMemo)(() => ({
onLoadMore: o,
collection: i?.collection,
sentinelRef: l,
@@ -43058,11 +43071,11 @@ uw(gS, function(e, t, n) {
o,
s,
i?.collection
- ]), l), t = ZC(t);
- let { rowProps: u, gridCellProps: d } = hj({ node: n }, i, t), f = u["aria-level"] || 1, p = {
+ ]), l), t = XC(t);
+ let { rowProps: u, gridCellProps: d } = mj({ node: n }, i, t), f = u["aria-level"] || 1, p = {
role: "row",
"aria-level": u["aria-level"]
- }, m = yL({
+ }, m = vL({
...c,
id: void 0,
children: n.rendered,
@@ -43075,7 +43088,7 @@ uw(gS, function(e, t, n) {
width: 0,
height: 0
},
- inert: HR(!0)
+ inert: VR(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: l,
@@ -43084,9 +43097,9 @@ uw(gS, function(e, t, n) {
height: 1,
width: 1
}
- })), a && m.children && /*#__PURE__*/ F.createElement(TL.div, {
+ })), a && m.children && /*#__PURE__*/ F.createElement(wL.div, {
ref: t,
- ...q(Ww(e), p),
+ ...q(Uw(e), p),
...m,
"data-level": f
}, /*#__PURE__*/ F.createElement("div", {
@@ -43094,12 +43107,12 @@ uw(gS, function(e, t, n) {
style: h
}, m.children)));
});
-function rge(e, t) {
- t = ZC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(PR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+function age(e, t) {
+ t = XC(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(NR), 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(age, {
+ return /*#__PURE__*/ F.createElement(sge, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -43108,8 +43121,8 @@ function rge(e, t) {
level: c
});
}
-function ige(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = dE(), c = yL({
+function oge(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = uE(), c = vL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: {
@@ -43118,7 +43131,7 @@ function ige(e, t) {
},
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(TL.div, {
+ return /*#__PURE__*/ F.createElement(wL.div, {
...c,
role: "row",
"aria-level": a,
@@ -43131,9 +43144,9 @@ function ige(e, t) {
ref: i
}), c.children));
}
-var age = /*#__PURE__*/ (0, F.forwardRef)(ige);
-function oge() {
- let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(PR), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = dE();
+var sge = /*#__PURE__*/ (0, F.forwardRef)(oge);
+function cge() {
+ let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(NR), 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"],
@@ -43145,13 +43158,13 @@ function oge() {
ref: n
})));
}
-function sge(e, t) {
+function lge(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 cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+var 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,
@@ -43159,7 +43172,7 @@ var cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), lge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), 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,
@@ -43167,7 +43180,7 @@ var cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6.38231 3.9681C7.92199 2.73647 9.87499 2 12 2C14.125 2 16.078 2.73647 17.6177 3.9681L19.0711 2.51472L20.4853 3.92893L19.0319 5.38231C20.2635 6.92199 21 8.87499 21 11V12H3V11C3 8.87499 3.73647 6.92199 4.9681 5.38231L3.51472 3.92893L4.92893 2.51472L6.38231 3.9681ZM3 14H21V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V14ZM9 9C9.55228 9 10 8.55228 10 8C10 7.44772 9.55228 7 9 7C8.44772 7 8 7.44772 8 8C8 8.55228 8.44772 9 9 9ZM15 9C15.5523 9 16 8.55228 16 8C16 7.44772 15.5523 7 15 7C14.4477 7 14 7.44772 14 8C14 8.55228 14.4477 9 15 9Z" })), uge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6.38231 3.9681C7.92199 2.73647 9.87499 2 12 2C14.125 2 16.078 2.73647 17.6177 3.9681L19.0711 2.51472L20.4853 3.92893L19.0319 5.38231C20.2635 6.92199 21 8.87499 21 11V12H3V11C3 8.87499 3.73647 6.92199 4.9681 5.38231L3.51472 3.92893L4.92893 2.51472L6.38231 3.9681ZM3 14H21V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V14ZM9 9C9.55228 9 10 8.55228 10 8C10 7.44772 9.55228 7 9 7C8.44772 7 8 7.44772 8 8C8 8.55228 8.44772 9 9 9ZM15 9C15.5523 9 16 8.55228 16 8C16 7.44772 15.5523 7 15 7C14.4477 7 14 7.44772 14 8C14 8.55228 14.4477 9 15 9Z" })), 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,
@@ -43175,7 +43188,7 @@ var cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11.6734 7.22198C10.7974 7.22198 9.44138 6.22598 8.01338 6.26198C6.12938 6.28598 4.40138 7.35397 3.42938 9.04597C1.47338 12.442 2.92538 17.458 4.83338 20.218C5.76938 21.562 6.87338 23.074 8.33738 23.026C9.74138 22.966 10.2694 22.114 11.9734 22.114C13.6654 22.114 14.1454 23.026 15.6334 22.99C17.1454 22.966 18.1054 21.622 19.0294 20.266C20.0974 18.706 20.5414 17.194 20.5654 17.11C20.5294 17.098 17.6254 15.982 17.5894 12.622C17.5654 9.81397 19.8814 8.46998 19.9894 8.40998C18.6694 6.47798 16.6414 6.26198 15.9334 6.21398C14.0854 6.06998 12.5374 7.22198 11.6734 7.22198ZM14.7934 4.38998C15.5734 3.45398 16.0894 2.14598 15.9454 0.849976C14.8294 0.897976 13.4854 1.59398 12.6814 2.52998C11.9614 3.35798 11.3374 4.68998 11.5054 5.96198C12.7414 6.05798 14.0134 5.32598 14.7934 4.38998Z" })), dge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11.6734 7.22198C10.7974 7.22198 9.44138 6.22598 8.01338 6.26198C6.12938 6.28598 4.40138 7.35397 3.42938 9.04597C1.47338 12.442 2.92538 17.458 4.83338 20.218C5.76938 21.562 6.87338 23.074 8.33738 23.026C9.74138 22.966 10.2694 22.114 11.9734 22.114C13.6654 22.114 14.1454 23.026 15.6334 22.99C17.1454 22.966 18.1054 21.622 19.0294 20.266C20.0974 18.706 20.5414 17.194 20.5654 17.11C20.5294 17.098 17.6254 15.982 17.5894 12.622C17.5654 9.81397 19.8814 8.46998 19.9894 8.40998C18.6694 6.47798 16.6414 6.26198 15.9334 6.21398C14.0854 6.06998 12.5374 7.22198 11.6734 7.22198ZM14.7934 4.38998C15.5734 3.45398 16.0894 2.14598 15.9454 0.849976C14.8294 0.897976 13.4854 1.59398 12.6814 2.52998C11.9614 3.35798 11.3374 4.68998 11.5054 5.96198C12.7414 6.05798 14.0134 5.32598 14.7934 4.38998Z" })), 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,
@@ -43183,7 +43196,7 @@ var cge = ({ 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" })), hB = ({ 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" })), 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,
@@ -43191,7 +43204,7 @@ var cge = ({ 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" })), gB = ({ 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" })), 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,
@@ -43199,7 +43212,7 @@ var cge = ({ 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" })), _B = ({ 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" })), 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,
@@ -43207,7 +43220,7 @@ var cge = ({ 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" })), fge = ({ 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" })), 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,
@@ -43215,7 +43228,7 @@ var cge = ({ 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" })), vB = ({ 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" })), _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,
@@ -43223,7 +43236,7 @@ var cge = ({ 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" })), yB = ({ 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" })), 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,
@@ -43231,7 +43244,7 @@ var cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 12H5V21H3V12ZM19 8H21V21H19V8ZM11 2H13V21H11V2Z" })), bB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 12H5V21H3V12ZM19 8H21V21H19V8ZM11 2H13V21H11V2Z" })), 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,
@@ -43239,7 +43252,7 @@ var cge = ({ 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" })), pge = ({ 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" })), 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,
@@ -43247,7 +43260,7 @@ var cge = ({ 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" })), mge = ({ 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" })), 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,
@@ -43255,7 +43268,7 @@ var cge = ({ 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" })), hge = ({ 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" })), _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,
@@ -43263,7 +43276,7 @@ var cge = ({ 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" })), gge = ({ 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" })), 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,
@@ -43271,7 +43284,7 @@ var cge = ({ 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" })), _ge = ({ 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" })), 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,
@@ -43279,7 +43292,7 @@ var cge = ({ 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" })), vge = ({ 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" })), 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,
@@ -43287,7 +43300,7 @@ var cge = ({ 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" })), xB = ({ 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" })), 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,
@@ -43295,7 +43308,7 @@ var cge = ({ 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" })), SB = ({ 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" })), 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,
@@ -43303,7 +43316,7 @@ var cge = ({ 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" })), yge = ({ 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" })), 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,
@@ -43311,7 +43324,7 @@ var cge = ({ 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" })), CB = ({ 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" })), 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,
@@ -43319,7 +43332,7 @@ var cge = ({ 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" })), bge = ({ 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" })), 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,
@@ -43327,7 +43340,7 @@ var cge = ({ 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" })), xge = ({ 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" })), 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,
@@ -43335,7 +43348,7 @@ var cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M4 16H20V5H4V16ZM13 18V20H17V22H7V20H11V18H2.9918C2.44405 18 2 17.5511 2 16.9925V4.00748C2 3.45107 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44892 22 4.00748V16.9925C22 17.5489 21.5447 18 21.0082 18H13Z" })), wB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4 16H20V5H4V16ZM13 18V20H17V22H7V20H11V18H2.9918C2.44405 18 2 17.5511 2 16.9925V4.00748C2 3.45107 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44892 22 4.00748V16.9925C22 17.5489 21.5447 18 21.0082 18H13Z" })), 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,
@@ -43343,7 +43356,7 @@ var cge = ({ 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" })), Sge = ({ 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" })), 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,
@@ -43351,7 +43364,7 @@ var cge = ({ 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" })), Cge = ({ 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" })), 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,
@@ -43359,7 +43372,7 @@ var cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M19 8H21C21.5523 8 22 8.44772 22 9V21C22 21.5523 21.5523 22 21 22H13C12.4477 22 12 21.5523 12 21V20H4C3.44772 20 3 19.5523 3 19V3C3 2.44772 3.44772 2 4 2H18C18.5523 2 19 2.44772 19 3V8ZM17 8V4H5V18H12V9C12 8.44772 12.4477 8 13 8H17ZM14 10V20H20V10H14Z" })), wge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M19 8H21C21.5523 8 22 8.44772 22 9V21C22 21.5523 21.5523 22 21 22H13C12.4477 22 12 21.5523 12 21V20H4C3.44772 20 3 19.5523 3 19V3C3 2.44772 3.44772 2 4 2H18C18.5523 2 19 2.44772 19 3V8ZM17 8V4H5V18H12V9C12 8.44772 12.4477 8 13 8H17ZM14 10V20H20V10H14Z" })), 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,
@@ -43367,7 +43380,7 @@ var cge = ({ 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" })), TB = ({ 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" })), 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,
@@ -43375,7 +43388,7 @@ var cge = ({ 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" })), Tge = ({ 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" })), 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,
@@ -43383,7 +43396,7 @@ var cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 19H21V21H3V19ZM13 13.1716L19.0711 7.1005L20.4853 8.51472L12 17L3.51472 8.51472L4.92893 7.1005L11 13.1716V2H13V13.1716Z" })), Ege = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 19H21V21H3V19ZM13 13.1716L19.0711 7.1005L20.4853 8.51472L12 17L3.51472 8.51472L4.92893 7.1005L11 13.1716V2H13V13.1716Z" })), 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,
@@ -43391,7 +43404,7 @@ var cge = ({ 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" })), 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 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), 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,
@@ -43399,7 +43412,7 @@ var cge = ({ 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" })), DB = ({ 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" })), 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,
@@ -43407,7 +43420,7 @@ var cge = ({ 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" })), Dge = ({ 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" })), 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,
@@ -43415,7 +43428,7 @@ var cge = ({ 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" })), Oge = ({ 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" })), 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,
@@ -43423,7 +43436,7 @@ var cge = ({ 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" })), kge = ({ 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" })), 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,
@@ -43431,7 +43444,7 @@ var cge = ({ 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" })), Age = ({ 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" })), 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,
@@ -43439,7 +43452,7 @@ var cge = ({ 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" })), jge = ({ 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" })), 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,
@@ -43447,7 +43460,7 @@ var cge = ({ 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" })), OB = ({ 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" })), 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,
@@ -43455,7 +43468,7 @@ var cge = ({ 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" })), Mge = ({ 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" })), 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,
@@ -43463,7 +43476,7 @@ var cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), kB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), 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,
@@ -43471,7 +43484,7 @@ var cge = ({ 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" })), AB = ({ 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" })), 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,
@@ -43479,7 +43492,7 @@ var cge = ({ 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" })), jB = ({ 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" })), 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,
@@ -43487,7 +43500,7 @@ var cge = ({ 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" })), Nge = ({ 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,
@@ -43495,7 +43508,7 @@ var cge = ({ 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" })), MB = ({ 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" })), 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,
@@ -43503,7 +43516,7 @@ var cge = ({ 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" })), NB = ({ 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" })), 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,
@@ -43511,7 +43524,7 @@ var cge = ({ 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" })), Pge = ({ 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" })), 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,
@@ -43519,7 +43532,7 @@ var cge = ({ 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" })), Fge = ({ 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" })), 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,
@@ -43527,7 +43540,7 @@ var cge = ({ 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" })), Ige = ({ 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" })), 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,
@@ -43535,7 +43548,7 @@ var cge = ({ 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" })), PB = ({ 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" })), 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,
@@ -43543,7 +43556,7 @@ var cge = ({ 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" })), Lge = ({ 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" })), zge = ({ 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,
@@ -43551,7 +43564,7 @@ var cge = ({ 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" })), Rge = ({ 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" })), 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,
@@ -43559,7 +43572,7 @@ var cge = ({ 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" })), zge = ({ 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,
@@ -43567,7 +43580,7 @@ var cge = ({ 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" })), FB = ({ 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" })), 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,
@@ -43575,7 +43588,7 @@ var cge = ({ 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" })), 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,
@@ -43583,7 +43596,7 @@ var cge = ({ 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" })), Vge = ({ 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" })), 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,
@@ -43591,7 +43604,7 @@ var cge = ({ 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" })), Hge = ({ 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" })), 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,
@@ -43599,7 +43612,7 @@ var cge = ({ 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" })), IB = ({ 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" })), 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,
@@ -43607,7 +43620,7 @@ var cge = ({ 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" })), LB = ({ 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" })), 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,
@@ -43615,7 +43628,7 @@ var cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), RB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), 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,
@@ -43623,7 +43636,7 @@ var cge = ({ 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" })), zB = ({ 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" })), 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,
@@ -43631,7 +43644,7 @@ var cge = ({ 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" })), BB = ({ 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" })), 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,
@@ -43639,7 +43652,7 @@ var cge = ({ 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" })), Uge = ({ 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" })), 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,
@@ -43647,7 +43660,7 @@ var cge = ({ 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" })), VB = ({ 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" })), 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,
@@ -43655,7 +43668,7 @@ var cge = ({ 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" })), 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,
@@ -43663,7 +43676,7 @@ var cge = ({ 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" })), Gge = ({ 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" })), qge = ({ 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,
@@ -43671,7 +43684,7 @@ var cge = ({ 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" })), HB = ({ 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" })), 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,
@@ -43679,7 +43692,7 @@ var cge = ({ 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" })), UB = ({ 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" })), 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,
@@ -43687,7 +43700,7 @@ var cge = ({ 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" })), WB = ({ 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" })), 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,
@@ -43695,7 +43708,7 @@ var cge = ({ 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" })), Kge = ({ 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" })), 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,
@@ -43703,7 +43716,7 @@ var cge = ({ 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" })), GB = ({ 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" })), 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,
@@ -43711,7 +43724,7 @@ var cge = ({ 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" })), qge = ({ 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" })), 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,
@@ -43719,7 +43732,7 @@ var cge = ({ 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" })), KB = ({ 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" })), 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,
@@ -43727,7 +43740,7 @@ var cge = ({ 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" })), Jge = ({ 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" })), 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,
@@ -43735,7 +43748,7 @@ var cge = ({ 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" })), Yge = ({ 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" })), Zge = ({ 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,
@@ -43743,7 +43756,7 @@ var cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6 4V20H18V4H6ZM5 2H19C19.5523 2 20 2.44772 20 3V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V3C4 2.44772 4.44772 2 5 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" })), Xge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6 4V20H18V4H6ZM5 2H19C19.5523 2 20 2.44772 20 3V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V3C4 2.44772 4.44772 2 5 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" })), Qge = ({ 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,
@@ -43751,7 +43764,7 @@ var cge = ({ 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" })), Zge = ({ 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" })), $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,
@@ -43759,7 +43772,7 @@ var cge = ({ 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" })), Qge = ({ 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" })), e_e = ({ 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,
@@ -43767,7 +43780,7 @@ var cge = ({ 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" })), qB = ({ 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" })), 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,
@@ -43775,7 +43788,7 @@ var cge = ({ 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" })), $ge = ({ 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" })), t_e = ({ 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,
@@ -43783,7 +43796,7 @@ var cge = ({ 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" })), JB = ({ 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,
@@ -43791,7 +43804,7 @@ var cge = ({ 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" })), YB = ({ 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" })), 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,
@@ -43799,7 +43812,7 @@ var cge = ({ 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" })), XB = ({ 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" })), 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,
@@ -43807,7 +43820,7 @@ var cge = ({ 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" })), e_e = ({ 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" })), n_e = ({ 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,
@@ -43815,7 +43828,7 @@ var cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3.00098 5.47902L10.3778 4.4625V11.5902H3.00098V5.47902ZM3.00098 18.521L10.3778 19.5375V12.4982H3.00098V18.521ZM11.1894 19.646L21.001 21V12.4982H11.1894V19.646ZM11.1894 4.35402V11.5902H21.001V3L11.1894 4.35402Z" })), t_e = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3.00098 5.47902L10.3778 4.4625V11.5902H3.00098V5.47902ZM3.00098 18.521L10.3778 19.5375V12.4982H3.00098V18.521ZM11.1894 19.646L21.001 21V12.4982H11.1894V19.646ZM11.1894 4.35402V11.5902H21.001V3L11.1894 4.35402Z" })), r_e = ({ 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,
@@ -43823,7 +43836,7 @@ var cge = ({ 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" })), ZB = ({ 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" })), 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,
@@ -43831,7 +43844,7 @@ var cge = ({ 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" })), n_e = ({ 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" })), i_e = ({ 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,
@@ -43841,8 +43854,8 @@ var cge = ({ 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 QB({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsxs)(PL, {
+function ZB({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsxs)(NL, {
"data-label": "true",
...a,
className: J("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
@@ -43853,7 +43866,7 @@ function QB({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, I.jsx)(Lge, {
+ n && /* @__PURE__ */ (0, I.jsx)(zge, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -43861,23 +43874,23 @@ function QB({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
});
}
// src/react/boardui/components/base/input/hint-text.tsx
-function $B({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, I.jsx)(Xpe, {
+function QB({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, I.jsx)(Qpe, {
slot: e ? "errorMessage" : "description",
...n,
className: J("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
// src/react/boardui/components/base/input/input.tsx
-var eV = (0, F.createContext)({});
-function tV({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(eV.Provider, {
+var $B = (0, F.createContext)({});
+function eV({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)($B.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, I.jsx)(Xhe, {
+ children: /* @__PURE__ */ (0, I.jsx)(Qhe, {
...a,
"data-input-size": e,
className: J("group flex h-max w-full flex-col items-start gap-1", r),
@@ -43885,8 +43898,8 @@ function tV({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
})
});
}
-tV.displayName = "TextField";
-var nV = jI({
+eV.displayName = "TextField";
+var tV = AI({
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",
@@ -43901,44 +43914,44 @@ var nV = jI({
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 rV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, F.useContext)(eV), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, I.jsx)(KL, {
+function nV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, F.useContext)($B), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, I.jsx)(GL, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => J(nV.field, d ? nV.fieldWithAddonSize[u] : nV.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 }) => J(tV.field, d ? tV.fieldWithAddonSize[u] : tV.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: nV.content,
+ className: tV.content,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
- className: nV.leftSection,
+ className: tV.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, I.jsx)(t, {
- className: nV.icon,
+ className: tV.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, I.jsx)(nme, {
+ }) : null, /* @__PURE__ */ (0, I.jsx)(ime, {
ref: o,
...c,
- className: J(nV.input, l.inputClassName, a)
+ className: J(tV.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: nV.icon,
+ className: tV.icon,
"aria-hidden": !0
}) : null]
})
});
}
-rV.displayName = "InputBase";
-function iV({ 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)(tV, {
+nV.displayName = "InputBase";
+function rV({ 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)(eV, {
...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)(QB, {
+ e && /* @__PURE__ */ (0, I.jsx)(ZB, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, I.jsx)(rV, {
+ /* @__PURE__ */ (0, I.jsx)(nV, {
ref: c,
groupRef: l,
placeholder: r,
@@ -43947,25 +43960,25 @@ function iV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, I.jsx)($B, {
+ t && /* @__PURE__ */ (0, I.jsx)(QB, {
isInvalid: d,
children: t
})
] })
});
}
-iV.displayName = "Input";
+rV.displayName = "Input";
// src/react/components/modal-frame.tsx
-var r_e = {
+var a_e = {
"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 aV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {
- let { isFocusVisible: o } = DC();
- return /* @__PURE__ */ (0, I.jsx)(Ez, {
+function iV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {
+ let { isFocusVisible: o } = EC();
+ return /* @__PURE__ */ (0, I.jsx)(Tz, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
@@ -43973,11 +43986,11 @@ function aV({ 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)(Rme, {
+ children: /* @__PURE__ */ (0, I.jsx)(Bme, {
"data-modal-surface": "",
"data-modal-width": n,
- className: J("flex max-h-full w-full flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown", r_e[n], a),
- children: /* @__PURE__ */ (0, I.jsx)(Sz, {
+ className: J("flex max-h-full w-full flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown", a_e[n], a),
+ children: /* @__PURE__ */ (0, I.jsx)(xz, {
"aria-label": r,
className: "flex min-h-0 flex-col overflow-y-auto overscroll-contain outline-none",
children: i
@@ -43985,7 +43998,7 @@ function aV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfa
})
});
}
-function oV({ children: e }) {
+function aV({ 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",
@@ -43993,7 +44006,7 @@ function oV({ children: e }) {
});
}
// src/react/components/note.tsx
-function sV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
+function oV({ 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: J("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
@@ -44041,11 +44054,11 @@ function sV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout:
}
}
// src/react/components/empty-state.tsx
-var i_e = {
+var o_e = {
standard: "min-h-80 px-6 py-12",
compact: "min-h-60 px-4 py-6"
};
-function a_e({ target: e, children: t }) {
+function s_e({ target: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
variant: "secondary",
@@ -44053,11 +44066,11 @@ function a_e({ target: e, children: t }) {
children: t
});
}
-function cV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
+function sV({ 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 ${i_e[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 ${o_e[i]}`,
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
@@ -44083,9 +44096,9 @@ function cV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }
});
}
// src/react/components/sprite-glyph.tsx
-var lV = /* @__PURE__ */ new Map();
-function uV(e) {
- let t = lV.get(e);
+var cV = /* @__PURE__ */ new Map();
+function lV(e) {
+ let t = cV.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,
@@ -44101,10 +44114,10 @@ function uV(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})`, lV.set(e, i), i;
+ return i.displayName = `SpriteGlyph(${e})`, cV.set(e, i), i;
}
// src/react/components/settings-dialog-close.tsx
-function dV({ label: e, id: t, onPress: n }) {
+function uV({ label: e, id: t, onPress: n }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
id: t,
@@ -44119,60 +44132,60 @@ function dV({ label: e, id: t, onPress: n }) {
});
}
// src/react/settings/busy-props.ts
-function fV(e) {
+function dV(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
}
// src/react/library-shortcuts/library-shortcuts.ts
-var pV = ["library-shortcuts"], mV = "/api/library-shortcuts";
-function hV(e = !0) {
+var fV = ["library-shortcuts"], pV = "/api/library-shortcuts";
+function mV(e = !0) {
return Ft({
- queryKey: pV,
- queryFn: ({ signal: e }) => B(mV, e),
+ queryKey: fV,
+ queryFn: ({ signal: e }) => B(pV, e),
enabled: e,
refetchOnMount: e ? "always" : !1
});
}
-function gV() {
+function hV() {
return It({
- mutationKey: pV,
- mutationFn: (e) => V(mV, e),
+ mutationKey: fV,
+ mutationFn: (e) => V(pV, e),
onSuccess: (e, t) => {
- H.setQueryData(pV, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
+ H.setQueryData(fV, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
}
});
}
-function _V(e, t) {
+function gV(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 o_e(e) {
+function c_e(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 vV = uV("star"), s_e = uV("bookmark-plus"), yV = uV("chevron-right"), bV = {
+var _V = lV("star"), l_e = lV("bookmark-plus"), vV = lV("chevron-right"), yV = {
performer: "艺人",
creator: "创作者",
studio: "片商与厂牌",
series: "系列",
agency: "事务所",
tag: "标签"
-}, xV = {
- all: uV("star"),
- performer: uV("user-round"),
- creator: uV("user-round"),
- studio: uV("clapperboard"),
- series: uV("film"),
- agency: uV("briefcase"),
- tag: uV("tags"),
- filters: uV("list-filter")
-}, SV = [
+}, bV = {
+ all: lV("star"),
+ performer: lV("user-round"),
+ creator: lV("user-round"),
+ studio: lV("clapperboard"),
+ series: lV("film"),
+ agency: lV("briefcase"),
+ tag: lV("tags"),
+ filters: lV("list-filter")
+}, xV = [
["all", "全部"],
- ...Object.entries(bV),
+ ...Object.entries(yV),
["filters", "保存的筛选"]
];
-function CV({ label: e, children: t, ...n }) {
+function SV({ label: e, children: t, ...n }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
...n,
@@ -44182,20 +44195,20 @@ function CV({ label: e, children: t, ...n }) {
children: t
});
}
-function wV({ item: e }) {
- return /* @__PURE__ */ (0, I.jsx)(c_e, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
+function CV({ item: e }) {
+ return /* @__PURE__ */ (0, I.jsx)(u_e, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
}
-function c_e({ item: e }) {
- tL();
- let t = hV(!1), n = (0, F.useRef)(t.data), r = gV(), i = t.data && t.data !== n.current ? _V(t.data.favorites || [], e) : e.favorite ?? (t.data ? _V(t.data.favorites || [], e) : !1);
+function u_e({ item: e }) {
+ eL();
+ let t = mV(!1), n = (0, F.useRef)(t.data), r = hV(), i = t.data && t.data !== n.current ? gV(t.data.favorites || [], e) : e.favorite ?? (t.data ? gV(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)(CV, {
+ /* @__PURE__ */ (0, I.jsx)(SV, {
"data-favorite": "",
"aria-pressed": !!i,
label: `${i ? "取消收藏" : "收藏"}${nn(e.kind, e.name, e.entity_id)}`,
- ...fV(r.isPending),
+ ...dV(r.isPending),
onClick: () => {
r.isPending || r.mutate({
action: "favorite",
@@ -44205,10 +44218,10 @@ function c_e({ item: e }) {
},
children: r.isPending ? /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
- dangerouslySetInnerHTML: { __html: Vs("") }
- }) : /* @__PURE__ */ (0, I.jsx)(vV, {})
+ dangerouslySetInnerHTML: { __html: Bs("") }
+ }) : /* @__PURE__ */ (0, I.jsx)(_V, {})
}),
- r.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ r.isError ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: lr(r.error)
}) : null,
@@ -44222,51 +44235,51 @@ function c_e({ item: e }) {
]
});
}
-function TV({ currentHref: e, kind: t }) {
+function wV({ 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)(cL, {
+ children: /* @__PURE__ */ (0, I.jsx)(sL, {
"data-shortcuts-trigger": "",
label: "我的收藏",
- icon: vV,
+ icon: _V,
"aria-haspopup": "dialog",
"aria-expanded": n,
onPress: () => r(!0)
})
- }), /* @__PURE__ */ (0, I.jsx)(aV, {
+ }), /* @__PURE__ */ (0, I.jsx)(iV, {
isOpen: n,
onOpenChange: r,
width: "collections",
label: "我的收藏",
- children: n ? /* @__PURE__ */ (0, I.jsx)(l_e, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(d_e, {
currentHref: e,
kind: t,
close: () => r(!1)
}) : null
})] });
}
-function l_e({ currentHref: e, kind: t, close: n }) {
- tL();
- let r = hV(), i = gV(), [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 d_e({ currentHref: e, kind: t, close: n }) {
+ eL();
+ let r = mV(), i = hV(), [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 = mL(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 = pL(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
(0, F.useLayoutEffect)(() => {
- b.current && (x.current = zo(b.current) || null);
+ b.current && (x.current = Ro(b.current) || null);
}, []), (0, F.useLayoutEffect)(() => {
- let e = jc(g.current);
+ let e = Ac(g.current);
return () => e?.destroy();
}, []), (0, F.useLayoutEffect)(() => {
b.current && (b.current.scrollTop = 0);
}, [s]), (0, F.useLayoutEffect)(() => {
- v.current !== s && nc(_.current, "h2"), v.current = s;
+ v.current !== s && tc(_.current, "h2"), v.current = s;
}, [s]), (0, F.useLayoutEffect)(() => {
x.current?.();
});
- let C = SV.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
+ let C = xV.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;
@@ -44289,7 +44302,7 @@ function l_e({ 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)(dV, {
+ }), /* @__PURE__ */ (0, I.jsx)(uV, {
label: "关闭我的收藏",
onPress: n
})]
@@ -44319,8 +44332,8 @@ function l_e({ currentHref: e, kind: t, close: n }) {
role: "presentation",
children: "我的收藏"
}),
- SV.map(([e, t]) => {
- let n = xV[e] || vV, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
+ xV.map(([e, t]) => {
+ let n = bV[e] || _V, 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",
@@ -44352,17 +44365,17 @@ function l_e({ currentHref: e, kind: t, close: n }) {
href: "/flagged",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)(vV, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(_V, { "aria-hidden": !0 }),
"已标记",
- /* @__PURE__ */ (0, I.jsx)(yV, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, I.jsx)(vV, { "aria-hidden": !0 })
]
}), /* @__PURE__ */ (0, I.jsxs)("a", {
href: "/watch-later",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)(s_e, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(l_e, { "aria-hidden": !0 }),
"稍后看",
- /* @__PURE__ */ (0, I.jsx)(yV, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, I.jsx)(vV, { "aria-hidden": !0 })
]
})]
})]
@@ -44381,7 +44394,7 @@ function l_e({ 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)(sV, {
+ r.isError ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -44390,16 +44403,16 @@ function l_e({ currentHref: e, kind: t, close: n }) {
}),
children: lr(r.error)
}) : null,
- i.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ i.isError ? /* @__PURE__ */ (0, I.jsx)(oV, {
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)(cV, {
+ E.filters.length ? null : /* @__PURE__ */ (0, I.jsx)(sV, {
size: "compact",
- icon: uV("list-filter"),
+ icon: lV("list-filter"),
title: "还没有保存的筛选",
- actions: /* @__PURE__ */ (0, I.jsx)(gL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(hL, {
size: "small",
href: "/",
onClick: n,
@@ -44418,7 +44431,7 @@ function l_e({ currentHref: e, kind: t, close: n }) {
variant: "secondary",
size: "small",
"aria-label": `删除筛选${e.name}`,
- ...fV(i.isPending),
+ ...dV(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "delete_filter",
@@ -44433,7 +44446,7 @@ function l_e({ currentHref: e, kind: t, close: n }) {
className: "flex flex-col gap-3",
"aria-label": "保存当前筛选",
children: [
- /* @__PURE__ */ (0, I.jsx)(iV, {
+ /* @__PURE__ */ (0, I.jsx)(rV, {
label: "筛选名称",
value: a,
onChange: o,
@@ -44442,7 +44455,7 @@ function l_e({ currentHref: e, kind: t, close: n }) {
/* @__PURE__ */ (0, I.jsx)(Y, {
type: "submit",
disabled: !a.trim(),
- ...fV(i.isPending),
+ ...dV(i.isPending),
children: "保存当前筛选"
}),
d ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -44453,16 +44466,16 @@ function l_e({ currentHref: e, kind: t, close: n }) {
]
}) : null
] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(iV, {
+ /* @__PURE__ */ (0, I.jsx)(rV, {
"aria-label": "搜索收藏",
placeholder: "搜索收藏",
- leadingIcon: uV("search"),
+ leadingIcon: lV("search"),
value: l,
onChange: u
}),
- O.length ? null : /* @__PURE__ */ (0, I.jsx)(cV, {
+ O.length ? null : /* @__PURE__ */ (0, I.jsx)(sV, {
size: "compact",
- icon: vV,
+ icon: _V,
title: l ? "没有匹配的收藏" : E.favorites.length ? "还没有此类收藏" : "还没有收藏",
actions: l ? /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
@@ -44472,7 +44485,7 @@ function l_e({ currentHref: e, kind: t, close: n }) {
size: "small",
onClick: () => c("all"),
children: "查看全部收藏"
- }) : /* @__PURE__ */ (0, I.jsx)(gL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(hL, {
size: "small",
href: "/",
onClick: n,
@@ -44486,25 +44499,25 @@ function l_e({ 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: o_e(e),
+ href: c_e(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)(u_e, { item: e }, e.image_url), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(f_e, { 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" ? "在线标签" : bV[e.kind]
+ children: e.scope === "online" ? "在线标签" : yV[e.kind]
})]
})]
}), /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
"aria-label": `取消收藏${nn(e.kind, e.name, e.entity_id)}`,
- ...fV(i.isPending),
+ ...dV(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "favorite",
@@ -44522,8 +44535,8 @@ function l_e({ currentHref: e, kind: t, close: n }) {
]
});
}
-function u_e({ item: e }) {
- let t = xV[e.kind] || vV;
+function f_e({ item: e }) {
+ let t = bV[e.kind] || _V;
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-shortcuts-avatar": "",
title: e.image_label || e.name,
@@ -44541,11 +44554,11 @@ function u_e({ item: e }) {
});
}
// src/react/components/board-navigation-link.tsx
-function d_e(e) {
+function p_e(e) {
return /* @__PURE__ */ (0, I.jsx)("a", { ...e });
}
// src/react/boardui/components/foundations/icons/chevrons.tsx
-function f_e(e) {
+function m_e(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -44559,7 +44572,7 @@ function f_e(e) {
})
});
}
-function p_e(e) {
+function h_e(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 12 12",
fill: "none",
@@ -44573,7 +44586,7 @@ function p_e(e) {
})
});
}
-function EV(e) {
+function TV(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -44586,7 +44599,7 @@ function EV(e) {
});
}
// src/react/boardui/components/base/breadcrumb/breadcrumb.tsx
-function m_e({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
+function g_e({ 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,
@@ -44594,14 +44607,14 @@ function m_e({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r
className: J("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)(p_e, {
+ children: i.map((e, t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, I.jsx)(h_e, {
className: "size-3 shrink-0 text-text-tertiary",
"aria-hidden": !0
}), e] }, e.key ?? t))
})
});
}
-function DV({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
+function EV({ 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
@@ -44614,7 +44627,7 @@ function DV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
let s = J("-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)(d_e, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(p_e, {
href: n,
className: s,
children: o
@@ -44627,14 +44640,14 @@ function DV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
});
}
// src/react/boardui/components/foundations/direction/direction.tsx
-function OV() {
- return Iw().direction;
+function DV() {
+ return Fw().direction;
}
// src/react/boardui/components/base/dropdown/menu-styles.ts
-var kV = "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", h_e = "w-[266px]", g_e = "flex w-full flex-col gap-1 outline-none", AV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", jV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+var OV = "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", __e = "w-[266px]", v_e = "flex w-full flex-col gap-1 outline-none", kV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", AV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
// src/react/boardui/components/base/tree-view/tree-view.tsx
-function __e({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
- let c = OV(), l = (0, F.useContext)(jL), u = l === kL && !s.dragAndDropHooks ? NV : l;
+function y_e({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
+ let c = DV(), l = (0, F.useContext)(AL), u = l === OL && !s.dragAndDropHooks ? MV : l;
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "contents",
onKeyDownCapture: (e) => {
@@ -44651,23 +44664,23 @@ function __e({ size: e = "md", showGuides: t = !0, selectionMode: n = "single",
}
}
},
- children: /* @__PURE__ */ (0, I.jsx)(jL.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(AL.Provider, {
value: u,
- children: /* @__PURE__ */ (0, I.jsx)($he, {
+ children: /* @__PURE__ */ (0, I.jsx)(tge, {
...s,
ref: o,
selectionMode: n,
"data-size": e,
"data-show-guides": t,
renderEmptyState: r,
- className: (e) => J("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 === NV ? "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) => J("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 === MV ? "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 MV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
- let d = OV();
- return /* @__PURE__ */ (0, I.jsxs)(nge, {
+function jV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
+ let d = DV();
+ return /* @__PURE__ */ (0, I.jsxs)(ige, {
...u,
ref: l,
textValue: t,
@@ -44676,10 +44689,10 @@ function MV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
...typeof c == "function" ? c(e) : c
}),
className: (e) => J("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)(tge, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
- let f = n === null ? null : o && r ? r : n ?? (t ? o ? jB : kB : Oge);
+ children: [/* @__PURE__ */ (0, I.jsx)(rge, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
+ let f = n === null ? null : o && r ? r : n ?? (t ? o ? AB : OB : Age);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(y_e, {
+ /* @__PURE__ */ (0, I.jsx)(x_e, {
state: l,
id: u,
level: c,
@@ -44689,11 +44702,11 @@ function MV({ 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)(IL, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(FL, {
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)(_B, {
+ children: /* @__PURE__ */ (0, I.jsx)(gB, {
"aria-hidden": !0,
className: J("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
})
@@ -44717,24 +44730,24 @@ function MV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
} }), o]
});
}
-var NV = {
- ...kL,
- CollectionRoot: v_e
+var MV = {
+ ...OL,
+ CollectionRoot: b_e
};
-function v_e({ collection: e, ...t }) {
- let n = (0, F.useContext)(fB);
- return n ? /* @__PURE__ */ (0, I.jsx)(jx, {
+function b_e({ collection: e, ...t }) {
+ let n = (0, F.useContext)(dB);
+ return n ? /* @__PURE__ */ (0, I.jsx)(Ax, {
initial: !1,
- children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(b_e, {
+ children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(S_e, {
state: n,
children: e.render?.(e)
}, e.key))
- }) : /* @__PURE__ */ (0, I.jsx)(kL.CollectionRoot, {
+ }) : /* @__PURE__ */ (0, I.jsx)(OL.CollectionRoot, {
collection: e,
...t
});
}
-function y_e({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
+function x_e({ 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;
@@ -44793,9 +44806,9 @@ function y_e({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
]
});
}
-function b_e({ state: e, children: t }) {
- let n = Ox(), r = tS(), [i, a] = (0, F.useState)(e);
- return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(pS.div, {
+function S_e({ 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,
@@ -44834,14 +44847,14 @@ function b_e({ state: e, children: t }) {
1
]
},
- children: /* @__PURE__ */ (0, I.jsx)(fB.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(dB.Provider, {
value: n ? e : i,
children: t
})
});
}
// src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var PV = {
+var NV = {
md: {
box: "size-4",
glyph: "size-4",
@@ -44855,8 +44868,8 @@ var PV = {
gap: "gap-1.5"
}
};
-function FV({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = PV[t], c = n || r, l = o && !a;
+function PV({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = NV[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: J("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? J("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : J("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"),
@@ -44882,13 +44895,13 @@ function FV({ state: e, size: t = "md" }) {
});
}
// src/react/boardui/components/base/checkbox/checkbox.tsx
-function IV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = PV[n];
- return /* @__PURE__ */ (0, I.jsx)($pe, {
+function FV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = NV[n];
+ return /* @__PURE__ */ (0, I.jsx)(tme, {
ref: r,
...i,
className: (t) => J("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)(FV, {
+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(PV, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, I.jsx)("span", {
@@ -44898,55 +44911,55 @@ function IV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
});
}
// src/react/components/overlay-scrollbar.ts
-function LV() {
+function IV() {
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 ? {
node: e.current,
- control: zo(e.current)
+ control: Ro(e.current)
} : null);
}), (0, F.useEffect)(() => () => {
t.current?.control?.destroy(), t.current = null;
}, []), e;
}
// src/react/providers.tsx
-var RV = null;
-function x_e() {
- return RV?.isConnected || (RV = document.createElement("div"), RV.className = "peach-react", RV.dataset.reactOverlays = "", document.body.append(RV)), RV;
+var LV = null;
+function C_e() {
+ return LV?.isConnected || (LV = document.createElement("div"), LV.className = "peach-react", LV.dataset.reactOverlays = "", document.body.append(LV)), LV;
}
-function zV({ children: e }) {
+function RV({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)(oe, {
client: H,
- children: /* @__PURE__ */ (0, I.jsx)(rie, {
+ children: /* @__PURE__ */ (0, I.jsx)(iie, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, I.jsx)(TD, {
- getContainer: x_e,
+ children: /* @__PURE__ */ (0, I.jsx)(wD, {
+ getContainer: C_e,
children: e
})
})
});
}
// node_modules/sonner/dist/index.mjs
-function S_e(e) {
+function w_e(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 C_e = (e) => {
+var T_e = (e) => {
switch (e) {
- case "success": return E_e;
- case "info": return O_e;
- case "warning": return D_e;
- case "error": return k_e;
+ case "success": return O_e;
+ case "info": return A_e;
+ case "warning": return k_e;
+ case "error": return j_e;
default: return null;
}
-}, w_e = Array(12).fill(0), T_e = ({ visible: e, className: t }) => /*#__PURE__*/ F.createElement("div", {
+}, E_e = Array(12).fill(0), D_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" }, w_e.map((e, t) => /*#__PURE__*/ F.createElement("div", {
+}, /*#__PURE__*/ F.createElement("div", { className: "sonner-spinner" }, E_e.map((e, t) => /*#__PURE__*/ F.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), E_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",
@@ -44957,7 +44970,7 @@ var C_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"
-})), D_e = /*#__PURE__*/ F.createElement("svg", {
+})), k_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -44968,7 +44981,7 @@ var C_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",
@@ -44979,7 +44992,7 @@ var C_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"
-})), k_e = /*#__PURE__*/ F.createElement("svg", {
+})), j_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44990,7 +45003,7 @@ var C_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"
-})), A_e = /*#__PURE__*/ F.createElement("svg", {
+})), M_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -45011,7 +45024,7 @@ var C_e = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), j_e = () => {
+})), N_e = () => {
let [e, t] = F.useState(document.hidden);
return F.useEffect(() => {
let e = () => {
@@ -45019,7 +45032,7 @@ var C_e = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, M_e = 1, N_e = 100, BV = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : M_e++, VV = new class {
+}, P_e = 1, F_e = 100, zV = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : P_e++, BV = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -45029,10 +45042,10 @@ var C_e = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - N_e;
+ let e = this.toasts.length - F_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 = BV(e), i = this.pendingDismissals.get(r);
+ let { message: t, ...n } = e, r = zV(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({
@@ -45107,7 +45120,7 @@ var C_e = (e) => {
type: "default",
message: e
});
- else if (F_e(e) && !e.ok) {
+ else if (L_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({
@@ -45151,7 +45164,7 @@ var C_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 = BV(t);
+ let n = zV(t);
return this.create({
...t,
jsx: e(n),
@@ -45160,34 +45173,34 @@ var C_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();
}
-}(), P_e = (e, t) => VV.message(e, t), F_e = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", HV = Object.assign(P_e, {
- success: VV.success,
- info: VV.info,
- warning: VV.warning,
- error: VV.error,
- custom: VV.custom,
- message: VV.message,
- promise: VV.promise,
- dismiss: VV.dismiss,
- loading: VV.loading
+}(), I_e = (e, t) => BV.message(e, t), L_e = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", VV = Object.assign(I_e, {
+ success: BV.success,
+ info: BV.info,
+ warning: BV.warning,
+ error: BV.error,
+ custom: BV.custom,
+ message: BV.message,
+ promise: BV.promise,
+ dismiss: BV.dismiss,
+ loading: BV.loading
}, {
- getHistory: () => VV.toasts,
- getToasts: () => VV.getActiveToasts()
+ getHistory: () => BV.toasts,
+ getToasts: () => BV.getActiveToasts()
});
-S_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 UV(e) {
+w_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 HV(e) {
return e.label !== void 0;
}
-var I_e = 3, L_e = "24px", R_e = "16px", WV = 4e3, z_e = 356, B_e = 14, V_e = 45, H_e = 200;
-function GV(...e) {
+var R_e = 3, z_e = "24px", B_e = "16px", UV = 4e3, V_e = 356, H_e = 14, U_e = 45, W_e = 200;
+function WV(...e) {
return e.filter(Boolean).join(" ");
}
-function U_e(e) {
+function G_e(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var W_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 || WV), 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 || WV, [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 = j_e(), ke = F.useMemo(() => e.swipeDirections ?? U_e(b), [e.swipeDirections, b]), Ae = n.invert || t, je = pe === "loading";
+var K_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 || UV), 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 || UV, [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 = N_e(), ke = F.useMemo(() => e.swipeDirections ?? G_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(() => {
@@ -45228,7 +45241,7 @@ var W_e = (e) => {
let Me = F.useCallback(() => {
ee(!0), ae(Se.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, H_e);
+ }, W_e);
}, [
n,
d,
@@ -45259,18 +45272,18 @@ var W_e = (e) => {
}, [Me, n.delete]);
function Ne() {
return w?.loading ? /*#__PURE__*/ F.createElement("div", {
- className: GV(C?.loader, n?.classNames?.loader, "sonner-loader"),
+ className: WV(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": pe === "loading"
- }, w.loading) : /*#__PURE__*/ F.createElement(T_e, {
- className: GV(C?.loader, n?.classNames?.loader),
+ }, w.loading) : /*#__PURE__*/ F.createElement(D_e, {
+ className: WV(C?.loader, n?.classNames?.loader),
visible: pe === "loading"
});
}
- let Pe = n.icon || w?.[pe] || C_e(pe);
+ let Pe = n.icon || w?.[pe] || T_e(pe);
return /*#__PURE__*/ F.createElement("li", {
tabIndex: 0,
ref: ue,
- className: GV(_, ge, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),
+ className: WV(_, 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),
@@ -45313,7 +45326,7 @@ var W_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) >= 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);
+ if ((E === "x" ? ke.includes(e > 0 ? "right" : "left") : ke.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= U_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);
@@ -45352,46 +45365,46 @@ var W_e = (e) => {
onClick: je || !he ? () => {} : () => {
Me(), n.onDismiss == null || n.onDismiss.call(n, n);
},
- className: GV(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? A_e) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {
+ className: WV(C?.closeButton, n?.classNames?.closeButton)
+ }, w?.close ?? M_e) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {
"data-icon": "",
- className: GV(C?.icon, n?.classNames?.icon)
+ className: WV(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: GV(C?.content, n?.classNames?.content)
+ className: WV(C?.content, n?.classNames?.content)
}, /*#__PURE__*/ F.createElement("div", {
"data-title": "",
- className: GV(C?.title, n?.classNames?.title)
+ className: WV(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: GV(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 && UV(n.cancel) ? /*#__PURE__*/ F.createElement("button", {
+ className: WV(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 && HV(n.cancel) ? /*#__PURE__*/ F.createElement("button", {
"data-button": !0,
"data-cancel": !0,
style: n.cancelButtonStyle || h,
onClick: (e) => {
- UV(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
+ HV(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
},
- className: GV(C?.cancelButton, n?.classNames?.cancelButton)
- }, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && UV(n.action) ? /*#__PURE__*/ F.createElement("button", {
+ className: WV(C?.cancelButton, n?.classNames?.cancelButton)
+ }, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && HV(n.action) ? /*#__PURE__*/ F.createElement("button", {
"data-button": !0,
"data-action": !0,
style: n.actionButtonStyle || g,
onClick: (e) => {
- UV(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
+ HV(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
},
- className: GV(C?.actionButton, n?.classNames?.actionButton)
+ className: WV(C?.actionButton, n?.classNames?.actionButton)
}, n.action.label) : null);
};
-function KV() {
+function GV() {
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 G_e(e, t) {
+function q_e(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? R_e : L_e;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? B_e : z_e;
function o(e) {
[
"top",
@@ -45412,11 +45425,11 @@ function G_e(e, t) {
}) : o(a);
}), n;
}
-var qV = /*#__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 = I_e, toastOptions: g, dir: _ = KV(), gap: v = B_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 || VV.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
+var KV = /*#__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 = R_e, toastOptions: g, dir: _ = GV(), gap: v = H_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 || BV.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
}, []);
- return F.useEffect(() => VV.subscribe((e) => {
+ return F.useEffect(() => BV.subscribe((e) => {
e.dismiss ? requestAnimationFrame(() => {
C((t) => t.map((t) => t.id === e.id ? {
...t,
@@ -45485,7 +45498,7 @@ var qV = /*#__PURE__*/ F.forwardRef(function(e, t) {
let [i, a] = t.split("-");
return w.length ? /*#__PURE__*/ F.createElement("ol", {
key: t,
- dir: _ === "auto" ? KV() : _,
+ dir: _ === "auto" ? GV() : _,
tabIndex: -1,
ref: N,
className: c,
@@ -45495,10 +45508,10 @@ var qV = /*#__PURE__*/ F.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${z_e}px`,
+ "--width": `${V_e}px`,
"--gap": `${v}px`,
...m,
- ...G_e(l, u)
+ ...q_e(l, u)
},
onBlur: (e) => {
ne.current && !e.currentTarget.contains(e.relatedTarget) && (ne.current = !1, P.current &&= (P.current.focus({ preventScroll: !0 }), null));
@@ -45516,7 +45529,7 @@ var qV = /*#__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(W_e, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ F.createElement(K_e, {
key: n.id,
icons: y,
index: i,
@@ -45546,35 +45559,35 @@ var qV = /*#__PURE__*/ F.forwardRef(function(e, t) {
swipeDirections: e.swipeDirections
}))) : null;
}));
-}), JV = "/api/library-processing", YV = ["library-processing"], K_e = (e, t, n) => {
+}), qV = "/api/library-processing", JV = ["library-processing"], J_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(`${JV}?${r}`, t);
-}, q_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);
+}, Y_e = {
fetching_cover: "封面",
querying_metadata: "资料"
};
-function XV(e) {
+function YV(e) {
if (e?.status !== "running" || e.current_asset_id == null) return null;
- let t = q_e[e.current_action || ""];
+ let t = Y_e[e.current_action || ""];
return !t || (e.waited_seconds || 0) < 120 ? null : {
what: t,
source: e.current_source
};
}
-function ZV({ what: e, source: t }) {
+function XV({ what: e, source: t }) {
return `${`${t?.label ? `${t.label} ` : "外部来源"}迟迟没有返回${e}`}。可以先跳过这部,任务结束后再重试。`;
}
-var QV = (e) => !!e && [
+var ZV = (e) => !!e && [
"running",
"pausing",
"paused",
"stopping"
-].includes(e.status), $V = (e) => e?.status === "failed" && e.outcome === "partial", eH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", tH = "/?loc=&thumb=0";
-function nH(e) {
- if (!QV(e)) return "";
+].includes(e.status), QV = (e) => e?.status === "failed" && e.outcome === "partial", $V = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", eH = "/?loc=&thumb=0";
+function tH(e) {
+ if (!ZV(e)) return "";
if (e.status === "stopping") return "正在取消,等待当前步骤退出;已取得的结果会保留";
if (e.status === "paused") return "已暂停,继续后更新预估";
if (e.status === "pausing") return "正在暂停,当前步骤结束后暂停";
@@ -45585,30 +45598,30 @@ function nH(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 rH = (e) => B(JV, e);
-async function iH(e) {
+var nH = (e) => B(qV, e);
+async function rH(e) {
await H.fetchQuery({
- queryKey: YV,
- queryFn: () => rH(e)
+ queryKey: JV,
+ queryFn: () => nH(e)
});
}
-var J_e = 2e3, Y_e = 1e4, aH = "连接中断,正在重新读取处理进度", X_e = {
+var X_e = 2e3, Z_e = 1e4, iH = "连接中断,正在重新读取处理进度", Q_e = {
manual: "在网页发起",
scheduled: "定时发起",
startup: "服务启动时自动发起",
cli: "由命令行或托盘发起"
};
-function Z_e(e, t) {
+function $_e(e, t) {
return `保存后 Peach 会重新启动。${e.trigger === "cli" ? "这个任务由命令行或托盘发起,在独立进程里运行,不受重启影响。" : e.status === "paused" ? "已暂停的任务会保持暂停,重启后点继续即可接着处理。" : "正在进行的任务会随重启中断,重启后从中断处继续。"}${t ? "勾选的「保存后扫描并补全资料」会排在当前任务之后。" : ""}`;
}
-function Q_e(e) {
- let t = X_e[e.trigger || ""];
+function eve(e) {
+ let t = Q_e[e.trigger || ""];
return `当前的扫描与采集任务${t ? `(${t})` : ""}还没结束,等它完成或取消后再开始新的同步`;
}
-function oH(e, t) {
- return QV(e) ? J_e : t ? Y_e : !1;
+function aH(e, t) {
+ return ZV(e) ? X_e : t ? Z_e : !1;
}
-var $_e = {
+var tve = {
scanning_files: "扫描文件",
reading_local: "检查配套文件",
reading_local_cover: "读取配套图片",
@@ -45617,25 +45630,25 @@ var $_e = {
skipped: "已跳过",
generating_preview: "生成视频预览",
writing_candidates: "保存待确认资料"
-}, sH = {
+}, oH = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function eve(e) {
- let t = Object.entries(e).filter(([e, t]) => sH[e] && t > 0).map(([e, t]) => `${sH[e]} ${t.toLocaleString()} 部`);
+function nve(e) {
+ let t = Object.entries(e).filter(([e, t]) => oH[e] && t > 0).map(([e, t]) => `${oH[e]} ${t.toLocaleString()} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function tve(e) {
+function rve(e) {
if (e.status === "paused") return "已暂停";
if (e.status === "pausing") return "正在暂停";
- let t = $_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${YI(e.waited_seconds)}` : "";
+ let t = tve[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${JI(e.waited_seconds)}` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function nve(e) {
- let t = e.total ? `${XI(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
- return tve(e) + (t ? ` · ${t}` : "");
+function ive(e) {
+ let t = e.total ? `${YI(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
+ return rve(e) + (t ? ` · ${t}` : "");
}
-function rve(e) {
+function ave(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -45649,22 +45662,22 @@ function rve(e) {
log: e.issues_log || ""
} : null;
}
-var cH = "peach.library-processing.announced", ive = 120;
-function lH(e) {
+var sH = "peach.library-processing.announced", ove = 120;
+function cH(e) {
let t = e.completed_at == null ? Infinity : Date.now() / 1e3 - e.completed_at;
- return !!e.job_id && t >= 0 && t < ive;
+ return !!e.job_id && t >= 0 && t < ove;
}
-function ave(e, t, n) {
- if (e.status === "complete" && (n || lH(e))) {
+function sve(e, t, n) {
+ if (e.status === "complete" && (n || cH(e))) {
try {
- if (e.job_id && localStorage.getItem(cH) === e.job_id) return;
- e.job_id && localStorage.setItem(cH, e.job_id);
+ if (e.job_id && localStorage.getItem(sH) === e.job_id) return;
+ e.job_id && localStorage.setItem(sH, 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 uH = jI({
+var lH = AI({
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",
@@ -45681,15 +45694,15 @@ var uH = jI({
secondary: "text-text-secondary active:text-text-primary disabled:text-text-tertiary aria-disabled:text-text-tertiary"
}
});
-function dH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = J(uH.base, uH.size[t], uH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
+function uH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = J(lH.base, lH.size[t], lH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: uH.icon[t],
+ className: lH.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, I.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: uH.icon[t],
+ className: lH.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -45715,7 +45728,7 @@ function dH({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
});
}
// src/react/settings/use-action.ts
-function fH(e = "") {
+function dH(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) {
@@ -45740,10 +45753,10 @@ function fH(e = "") {
};
}
// src/react/library-processing/slow-item.tsx
-function pH({ state: e }) {
- let t = fH(), n = (e) => {
- t.busy || t.run(e.action, (t) => V(JV, e, "POST", t), (e) => {
- H.setQueryData(YV, e), H.invalidateQueries({ queryKey: YV });
+function fH({ state: e }) {
+ let t = dH(), n = (e) => {
+ t.busy || t.run(e.action, (t) => V(qV, e, "POST", t), (e) => {
+ H.setQueryData(JV, e), H.invalidateQueries({ queryKey: JV });
});
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45755,7 +45768,7 @@ function pH({ state: e }) {
size: "small",
variant: "secondary",
disabled: e.skip_requested,
- ...fV(t.busy === "skip_current"),
+ ...dV(t.busy === "skip_current"),
onClick: () => {
e.job_id && e.current_asset_id != null && n({
action: "skip_current",
@@ -45779,37 +45792,37 @@ function pH({ state: e }) {
]
});
}
-function ove({ state: e, slow: t }) {
- return /* @__PURE__ */ (0, I.jsx)(sV, {
+function cve({ state: e, slow: t }) {
+ return /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "warning",
- action: /* @__PURE__ */ (0, I.jsx)(pH, { state: e }),
- children: ZV(t)
+ action: /* @__PURE__ */ (0, I.jsx)(fH, { state: e }),
+ children: XV(t)
});
}
-function sve({ state: e, slow: t }) {
+function lve({ 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: ZV(t)
- }), /* @__PURE__ */ (0, I.jsx)(pH, { state: e })]
+ children: XV(t)
+ }), /* @__PURE__ */ (0, I.jsx)(fH, { state: e })]
});
}
// src/react/components/use-moving-surface.ts
-var cve = {
+var uve = {
selection: {
- type: Lg,
+ type: Ig,
duration: .16,
bounce: 0
},
hover: {
- type: Lg,
+ type: Ig,
duration: .08,
bounce: 0
}
};
-function mH(e) {
+function pH(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!t) return;
@@ -45830,7 +45843,7 @@ function mH(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 = uae(n, { transform: [r, E] }, cve[e]);
+ l = dae(n, { transform: [r, E] }, uve[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -45866,24 +45879,24 @@ function mH(e) {
}, [t, e]), n;
}
// src/react/components/menu-dialog.tsx
-function hH(e) {
- let t = mH("hover");
- return /* @__PURE__ */ (0, I.jsx)(Sz, {
+function mH(e) {
+ let t = pH("hover");
+ return /* @__PURE__ */ (0, I.jsx)(xz, {
...e,
ref: t
});
}
// src/react/library-processing/processing-effort.tsx
-var gH = [
+var hH = [
"low",
"standard",
"high"
-], _H = [
+], gH = [
"低占用",
"标准",
"全速"
-], vH = uV("snail"), yH = uV("zap");
-function bH({ className: e }) {
+], _H = lV("snail"), vH = lV("zap");
+function yH({ className: e }) {
return /* @__PURE__ */ (0, I.jsxs)("svg", {
className: `processing-effort-double ${e ?? ""}`,
"aria-hidden": "true",
@@ -45914,12 +45927,12 @@ function bH({ className: e }) {
]
});
}
-var lve = [
+var dve = [
+ _H,
vH,
- yH,
- bH
+ yH
];
-function uve({ animate: e }) {
+function fve({ animate: e }) {
let [t, n] = (0, F.useState)(document.hidden);
return (0, F.useEffect)(() => {
let e = () => n(document.hidden);
@@ -45951,8 +45964,8 @@ function uve({ animate: e }) {
} }, t))]
});
}
-function xH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = Math.max(0, gH.indexOf(e)), [a, o] = (0, F.useState)(i);
+function bH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
+ let i = Math.max(0, hH.indexOf(e)), [a, o] = (0, F.useState)(i);
return (0, F.useEffect)(() => {
t || o(i);
}, [i, t]), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45963,7 +45976,7 @@ function xH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "text-text-tertiary",
children: "处理强度 "
- }), _H[a]]
+ }), gH[a]]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "processing-effort-scale text-caption-1-regular text-text-tertiary",
@@ -45971,19 +45984,19 @@ function xH({ 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)(vH, {}), "最慢"]
+ children: [/* @__PURE__ */ (0, I.jsx)(_H, {}), "最慢"]
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 1 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(yH, {}), "标准"]
+ children: [/* @__PURE__ */ (0, I.jsx)(vH, {}), "标准"]
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 2 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(bH, {}), "最快"]
+ children: [/* @__PURE__ */ (0, I.jsx)(yH, {}), "最快"]
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)(lme, {
+ /* @__PURE__ */ (0, I.jsxs)(dme, {
"aria-label": "处理速度",
minValue: 0,
maxValue: 2,
@@ -45992,10 +46005,10 @@ function xH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
isDisabled: t,
onChange: o,
onChangeEnd: (e) => {
- e !== i && n(gH[e]);
+ e !== i && n(hH[e]);
},
className: "processing-effort-slider",
- children: [/* @__PURE__ */ (0, I.jsx)(PL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(NL, {
className: "processing-effort-label",
children: "处理速度"
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46015,11 +46028,11 @@ function xH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
/* @__PURE__ */ (0, I.jsx)("i", {})
]
}),
- a === 2 ? /* @__PURE__ */ (0, I.jsx)(uve, { animate: r }) : null,
- /* @__PURE__ */ (0, I.jsx)(ume, {
+ a === 2 ? /* @__PURE__ */ (0, I.jsx)(fve, { animate: r }) : null,
+ /* @__PURE__ */ (0, I.jsx)(fme, {
className: "processing-effort-hit",
- children: /* @__PURE__ */ (0, I.jsx)(dme, {
- "aria-label": _H[a],
+ children: /* @__PURE__ */ (0, I.jsx)(pme, {
+ "aria-label": gH[a],
className: "processing-effort-thumb"
})
})
@@ -46033,8 +46046,8 @@ function xH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
]
});
}
-function dve({ 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, gH.indexOf(e));
+function pve({ 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, hH.indexOf(e));
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "processing-effort-trigger",
"data-speed": e,
@@ -46042,28 +46055,28 @@ function dve({ value: e, busy: t, onChange: n, animate: r = !0 }) {
ref: i,
size: "small",
variant: "secondary",
- "aria-label": `处理速度:${_H[s]}`,
+ "aria-label": `处理速度:${gH[s]}`,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-disabled": t,
- leadingIcon: lve[s],
- trailingIcon: hB,
+ leadingIcon: dve[s],
+ trailingIcon: mB,
onClick: () => {
t || o(!a);
},
- children: _H[s]
+ children: gH[s]
})
- }), /* @__PURE__ */ (0, I.jsx)(lz, {
+ }), /* @__PURE__ */ (0, I.jsx)(cz, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "top start",
offset: 8,
- className: kV,
- children: /* @__PURE__ */ (0, I.jsx)(hH, {
+ className: OV,
+ children: /* @__PURE__ */ (0, I.jsx)(mH, {
"aria-label": "处理速度",
className: "outline-none",
- children: /* @__PURE__ */ (0, I.jsx)(xH, {
+ children: /* @__PURE__ */ (0, I.jsx)(bH, {
value: e,
busy: t,
onChange: n,
@@ -46073,14 +46086,14 @@ function dve({ value: e, busy: t, onChange: n, animate: r = !0 }) {
})] });
}
// src/react/library-processing/processing-controls.tsx
-function SH({ state: e, disabled: t = !1 }) {
- let n = fH(), r = (0, F.useRef)(!1), i = QV(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(JV, e, "POST", t), (e) => {
- H.setQueryData(YV, e), H.invalidateQueries({ queryKey: YV });
+function xH({ state: e, disabled: t = !1 }) {
+ let n = dH(), r = (0, F.useRef)(!1), i = ZV(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(JV, e), H.invalidateQueries({ queryKey: JV });
});
}, l = () => {
let i = e.job_id;
- !i || t || n.busy || r.current || (r.current = !0, ul({
+ !i || t || n.busy || r.current || (r.current = !0, ll({
title: "取消任务「扫描与采集」",
body: "将停止这一轮剩余的处理。已登记的影片、取得的资料和预览会保留。这一轮取消后不能继续,需要时重新同步。",
confirmLabel: "取消任务",
@@ -46100,7 +46113,7 @@ function SH({ state: e, disabled: t = !1 }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(dve, {
+ /* @__PURE__ */ (0, I.jsx)(pve, {
value: e.speed_mode || "standard",
busy: t || !!n.busy || a,
animate: e.status !== "paused" && e.status !== "pausing",
@@ -46114,11 +46127,11 @@ function SH({ state: e, disabled: t = !1 }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: e.status === "paused" ? zB : LB,
+ leadingIcon: e.status === "paused" ? RB : IB,
"aria-label": o,
title: o,
disabled: t || !e.job_id || e.status === "pausing" || a,
- ...fV(n.busy === "pause" || n.busy === "resume"),
+ ...dV(n.busy === "pause" || n.busy === "resume"),
onClick: () => {
e.job_id && c({
action: e.status === "paused" ? "resume" : "pause",
@@ -46130,11 +46143,11 @@ function SH({ state: e, disabled: t = !1 }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: KB,
+ leadingIcon: GB,
"aria-label": s,
title: s,
disabled: t || !e.job_id || a,
- ...fV(n.busy === "cancel"),
+ ...dV(n.busy === "cancel"),
onClick: l
}) : null
]
@@ -46146,11 +46159,11 @@ function SH({ state: e, disabled: t = !1 }) {
});
}
// src/react/library-processing/use-library-processing.ts
-function CH({ toast: e, mode: t, monitor: n }) {
+function SH({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = Ft({
- queryKey: YV,
- queryFn: ({ signal: e }) => rH(e),
- refetchInterval: (e) => oH(e.state.data, r)
+ queryKey: JV,
+ queryFn: ({ signal: e }) => nH(e),
+ refetchInterval: (e) => aH(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;
@@ -46161,8 +46174,8 @@ function CH({ toast: e, mode: t, monitor: n }) {
"pausing",
"paused",
"stopping"
- ].includes(n) && !QV(c);
- r && o(c), (r || t === "notice") && ave(c, e, r);
+ ].includes(n) && !ZV(c);
+ r && o(c), (r || t === "notice") && sve(c, e, r);
}, [
c,
t,
@@ -46174,7 +46187,7 @@ function CH({ toast: e, mode: t, monitor: n }) {
};
}
// src/react/components/loading-dots.tsx
-function wH({ label: e }) {
+function CH({ 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",
@@ -46193,21 +46206,21 @@ function wH({ label: e }) {
});
}
// src/react/components/progress.tsx
-var TH = 100, fve = .4;
-function EH({ 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 * TH;
+var wH = 100, mve = .4;
+function TH({ 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 * wH;
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 ${TH} 1`,
+ viewBox: `0 0 ${wH} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, I.jsx)("rect", {
- width: TH,
+ width: wH,
height: 1,
className: i ? "fill-text-primary/10" : "fill-background-tertiary-default"
}),
@@ -46218,7 +46231,7 @@ function EH({ 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: fve,
+ width: mve,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -46226,11 +46239,11 @@ function EH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1, m
});
}
// src/react/components/task-progress.tsx
-function DH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function EH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-task-progress": r ? "embedded" : "framed",
className: J("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)(EH, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(TH, {
label: e,
value: t,
max: n,
@@ -46238,11 +46251,11 @@ function DH({ 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)(wH, { label: e })
+ })] }) : /* @__PURE__ */ (0, I.jsx)(CH, { label: e })
});
}
// src/react/library-processing/processing-line.tsx
-function OH(e) {
+function DH(e) {
let [t, n] = (0, F.useState)({
snapshot: e,
seconds: 0
@@ -46258,17 +46271,17 @@ function OH(e) {
return () => window.clearInterval(r);
}, [e, i]);
let a = i && t.snapshot === e ? t.seconds : 0;
- return nve(a ? {
+ return ive(a ? {
...e,
waited_seconds: r + a
} : e);
}
-function pve({ state: e }) {
- return OH(e);
+function hve({ state: e }) {
+ return DH(e);
}
-function mve({ state: e }) {
- let t = OH(e);
- return /* @__PURE__ */ (0, I.jsx)(DH, {
+function gve({ state: e }) {
+ let t = DH(e);
+ return /* @__PURE__ */ (0, I.jsx)(EH, {
embedded: !0,
label: t,
value: Math.min(e.checked || 0, e.total || 0),
@@ -46276,18 +46289,18 @@ function mve({ state: e }) {
});
}
// src/react/components/collapse-region.tsx
-function kH({ open: e, children: t, ...n }) {
+function OH({ open: e, children: t, ...n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(!1);
return (0, F.useLayoutEffect)(() => {
let t = r.current;
- t && (i.current ? Ho(t, e) : (i.current = !0, t.hidden = !e, t.inert = !e, t.classList.add("ui-fcollapse"), t.classList.toggle("ui-fcollapse-settled", e)));
+ t && (i.current ? Vo(t, e) : (i.current = !0, t.hidden = !e, t.inert = !e, t.classList.add("ui-fcollapse"), t.classList.toggle("ui-fcollapse-settled", e)));
}, [e]), /* @__PURE__ */ (0, I.jsx)("div", {
...n,
ref: r,
children: t
});
}
-function AH(e) {
+function kH(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
...e,
"aria-hidden": !0,
@@ -46302,19 +46315,19 @@ function AH(e) {
});
}
// src/react/boardui/components/application/settings/settings-rows.tsx
-function jH({ className: e, children: t }) {
+function AH({ className: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: J("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function MH({ className: e, children: t }) {
+function jH({ className: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: J("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function hve({ label: e, description: t, children: n }) {
+function _ve({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: J("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", {
@@ -46330,7 +46343,7 @@ function hve({ label: e, description: t, children: n }) {
});
}
// src/react/settings/section.tsx
-function gve({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, children: o }) {
+function vve({ 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]
@@ -46338,12 +46351,12 @@ function gve({ 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)(MH, { children: s })
+ children: /* @__PURE__ */ (0, I.jsx)(jH, { children: s })
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex min-w-0 max-w-full",
children: i
})]
- }) : /* @__PURE__ */ (0, I.jsx)(MH, { children: s }), /* @__PURE__ */ (0, I.jsx)(jH, { children: o })] });
+ }) : /* @__PURE__ */ (0, I.jsx)(jH, { children: s }), /* @__PURE__ */ (0, I.jsx)(AH, { children: o })] });
return a ? /* @__PURE__ */ (0, I.jsx)("form", {
id: r,
"data-guide-target": t,
@@ -46360,13 +46373,13 @@ function gve({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, childr
children: c
});
}
-function _ve({ children: e }) {
+function yve({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "ui-settings-rows flex flex-col empty:hidden",
children: e
});
}
-function vve({ divided: e = !1, children: t }) {
+function bve({ 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
@@ -46375,7 +46388,7 @@ function vve({ divided: e = !1, children: t }) {
children: t
});
}
-function yve({ label: e, html: t }) {
+function xve({ label: e, html: t }) {
let [n] = (0, F.useState)(t);
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "contents",
@@ -46385,7 +46398,7 @@ function yve({ label: e, html: t }) {
dangerouslySetInnerHTML: { __html: n }
});
}
-function bve({ status: e, children: t }) {
+function Sve({ 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", {
@@ -46394,21 +46407,21 @@ function bve({ status: e, children: t }) {
}) : null, t]
});
}
-function NH({ role: e, children: t }) {
+function MH({ role: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function PH({ children: e }) {
+function NH({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function xve({ label: e, steps: t }) {
+function Cve({ label: e, steps: t }) {
return /* @__PURE__ */ (0, I.jsx)("ol", {
className: "flex list-decimal flex-col gap-2 pl-5 text-body-2-regular text-text-secondary",
"aria-label": e,
@@ -46418,20 +46431,20 @@ function xve({ label: e, steps: t }) {
})] }, e.command))
});
}
-function FH({ children: e }) {
+function PH({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function Sve({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, I.jsx)(dH, {
+function wve({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, I.jsx)(uH, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: EB,
+ trailingIcon: TB,
className: "min-w-0 max-w-full",
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@ -46439,22 +46452,22 @@ function Sve({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function Cve() {
- return /* @__PURE__ */ (0, I.jsx)(dH, {
+function Tve() {
+ return /* @__PURE__ */ (0, I.jsx)(uH, {
href: "/tasks",
size: "small",
- trailingIcon: gB,
+ trailingIcon: hB,
className: "self-start",
children: "在任务中心查看进度"
});
}
-function wve({ children: e }) {
+function Eve({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("dl", {
className: "ui-settings-facts flex flex-col empty:hidden",
children: e
});
}
-function Tve({ term: e, children: t }) {
+function Dve({ 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", {
@@ -46466,10 +46479,10 @@ function Tve({ term: e, children: t }) {
})]
});
}
-function IH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
+function FH({ 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 && (Vo(c.current, l.current, n), f(n));
+ n !== void 0 && n !== d && c.current && l.current && (Bo(c.current, l.current, n), f(n));
}, [n, d]), /* @__PURE__ */ (0, I.jsxs)("details", {
ref: (e) => {
c.current = e, e && (n ?? t) && !u.current && (u.current = !0, e.open = !0);
@@ -46478,16 +46491,16 @@ function IH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
"aria-expanded": d,
"aria-controls": s,
onClick: (e) => {
- e.preventDefault(), c.current && l.current && (Vo(c.current, l.current, !d), f(!d), a?.(!d));
+ e.preventDefault(), c.current && l.current && (Bo(c.current, l.current, !d), f(!d), a?.(!d));
},
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)(_B, {
+ i ? null : /* @__PURE__ */ (0, I.jsx)(gB, {
"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)(_B, {
+ i ? /* @__PURE__ */ (0, I.jsx)(gB, {
"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
@@ -46503,7 +46516,7 @@ function IH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
})]
});
}
-function Eve({ name: e }) {
+function Ove({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
"data-source-mark": e,
@@ -46513,34 +46526,34 @@ function Eve({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function LH({ mark: e }) {
+function IH({ 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)(Eve, { name: e });
+ }) : /* @__PURE__ */ (0, I.jsx)(Ove, { name: e });
}
// src/react/components/source-label.tsx
-var RH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, Dve = Object.fromEntries(Object.entries(vs).map(([e, t]) => [e, function({ className: e }) {
+var LH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, kve = 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)(LH, { mark: t })
+ children: /* @__PURE__ */ (0, I.jsx)(IH, { mark: t })
});
}]));
-function Ove({ className: e }) {
+function Ave({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, I.jsx)(LH, { mark: "database" })
+ children: /* @__PURE__ */ (0, I.jsx)(IH, { mark: "database" })
});
}
-var zH = (e) => Dve[RH(e)] ?? Ove;
-function kve({ site: e, label: t }) {
+var RH = (e) => kve[LH(e)] ?? Ave;
+function jve({ site: e, label: t }) {
let [n, r] = (0, F.useState)(!1), i = e === "javdb" || e === "dmm" ? `/site-mark?source=${e}` : 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)(LH, { mark: "globe" }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ children: [n || !i ? /* @__PURE__ */ (0, I.jsx)(IH, { mark: "globe" }) : /* @__PURE__ */ (0, I.jsx)("img", {
src: i,
alt: "",
className: "size-(--icon-inline) shrink-0 object-contain",
@@ -46551,24 +46564,24 @@ function kve({ site: e, label: t }) {
})]
});
}
-function BH({ source: e, label: t }) {
- let n = RH(e);
+function zH({ source: e, label: t }) {
+ let n = LH(e);
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(LH, { mark: vs[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(IH, { 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 VH = (e) => Xn(e).replace(/\s/g, ""), HH = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : VH(e), Ave = (e, t) => {
- if (e === t) return VH(t);
+var BH = (e) => Xn(e).replace(/\s/g, ""), VH = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : BH(e), Mve = (e, t) => {
+ if (e === t) return BH(t);
let [n, r] = Xn(e).split(" "), [i, a] = Xn(t).split(" ");
- return r === a ? `${n}-${i}${a}` : `${VH(e)}-${VH(t)}`;
-}, UH = (e, t, n) => e === void 0 ? Ave(t, n) : `${e > 0 ? "约 " : ""}${VH(e)}`;
-function WH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDetailsChange: i }) {
- let a = LV(), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = r ?? o;
+ return r === a ? `${n}-${i}${a}` : `${BH(e)}-${BH(t)}`;
+}, HH = (e, t, n) => e === void 0 ? Mve(t, n) : `${e > 0 ? "约 " : ""}${BH(e)}`;
+function UH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDetailsChange: i }) {
+ let a = IV(), [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", {
@@ -46605,7 +46618,7 @@ function WH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: "部分目录无法读取,数量和预估不完整"
}) : null
]
- }), /* @__PURE__ */ (0, I.jsx)(kH, {
+ }), /* @__PURE__ */ (0, I.jsx)(OH, {
open: !n,
"data-processing-estimate": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46619,25 +46632,25 @@ function WH({ 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)(MB, {
+ children: [/* @__PURE__ */ (0, I.jsx)(jB, {
"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: UH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
+ children: HH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
}),
/* @__PURE__ */ (0, I.jsxs)("p", { children: [
e.unknown_route_estimated_bytes ? "已确认代理" : "代理",
" ",
- UH(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
+ HH(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 ? "约 " : "", VH(e.used_bytes)] }),
+ /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.partial ? "约 " : "", BH(e.used_bytes)] }),
" · 代理 ",
- VH(e.metered_used_bytes)
+ BH(e.metered_used_bytes)
] })
]
}), e.disk ? /* @__PURE__ */ (0, I.jsxs)("section", {
@@ -46646,25 +46659,25 @@ function WH({ 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)(ZB, {
+ children: [/* @__PURE__ */ (0, I.jsx)(XB, {
"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: ["约 ", VH(e.disk.estimated_bytes)]
+ children: ["约 ", BH(e.disk.estimated_bytes)]
}),
- e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", HH(e.disk.temporary_bytes)] }) : null,
+ e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", VH(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 ? "未取得" : VH(e.free_bytes)
+ e.free_bytes == null ? "未取得" : BH(e.free_bytes)
] }), e.can_fit === !1 ? /* @__PURE__ */ (0, I.jsxs)("p", {
role: "status",
- children: ["空间不足,还差 ", VH(e.shortfall_bytes || 0)]
+ children: ["空间不足,还差 ", BH(e.shortfall_bytes || 0)]
}) : null]
}, e.path)),
e.disk.cache_unknown ? /* @__PURE__ */ (0, I.jsx)("p", {
@@ -46680,7 +46693,7 @@ function WH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
className: "self-start",
"aria-expanded": l,
"aria-controls": c,
- trailingIcon: l ? vB : hB,
+ trailingIcon: l ? _B : mB,
onClick: () => {
s(!l), i?.(!l);
},
@@ -46699,12 +46712,12 @@ function WH({ 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)(BH, {
+ children: [e.root ? /* @__PURE__ */ (0, I.jsx)(zH, {
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)(LH, { mark: "globe" }), e.label]
+ children: [/* @__PURE__ */ (0, I.jsx)(IH, { mark: "globe" }), e.label]
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "shrink-0",
children: e.connection === "system" ? "跟随系统" : e.connection === "unknown" ? "连接待确认" : e.metered ? "代理" : "直连"
@@ -46726,7 +46739,7 @@ function WH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
"待补资料 ",
u(e.workload.pending_jav_titles),
" 部 · 平均约 ",
- HH(e.workload.metadata_average_bytes || 0),
+ VH(e.workload.metadata_average_bytes || 0),
"/部"
]
}) : null,
@@ -46736,8 +46749,8 @@ function WH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
"已用",
e.unobserved.length ? "约" : "",
" ",
- VH(e.used_bytes)
- ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", UH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
+ BH(e.used_bytes)
+ ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", HH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
})
]
}, e.key))
@@ -46750,15 +46763,15 @@ function WH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
});
}
// src/react/library-processing/library-processing-notice.tsx
-var GH = "peach.library-processing.collapsed";
-function KH(e) {
+var WH = "peach.library-processing.collapsed";
+function GH(e) {
try {
- return !e || sessionStorage.getItem(GH) !== e;
+ return !e || sessionStorage.getItem(WH) !== e;
} catch {
return !0;
}
}
-function jve({ value: e, max: t }) {
+function Nve({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, I.jsxs)("svg", {
role: "progressbar",
@@ -46788,17 +46801,17 @@ function jve({ value: e, max: t }) {
})]
});
}
-function qH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
- let [i, a] = (0, F.useState)(() => KH(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 KH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
+ let [i, a] = (0, F.useState)(() => GH(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 && $V(e), _ = e?.status === "failed" && !g, v = QV(e);
+ let f = (0, F.useId)(), [p, m] = (0, F.useState)(!1), h = (0, F.useRef)(null), g = !t && QV(e), _ = e?.status === "failed" && !g, v = ZV(e);
(0, F.useEffect)(() => {
- a(KH(e?.job_id)), m(!1);
+ a(GH(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(GH, e.job_id) : sessionStorage.removeItem(GH);
+ i && e?.job_id ? sessionStorage.setItem(WH, e.job_id) : sessionStorage.removeItem(WH);
} catch {}
i && m(!1), a(!i);
}
@@ -46828,7 +46841,7 @@ function qH({ 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 : XV(e), x = !!t || !!e?.stalled || g || !!b, S = g ? "处理已结束,部分项目需处理" : _ ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
+ let b = t ? null : YV(e), x = !!t || !!e?.stalled || g || !!b, S = g ? "处理已结束,部分项目需处理" : _ ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
return /* @__PURE__ */ (0, I.jsxs)("aside", {
ref: h,
"data-processing-dock": "",
@@ -46842,13 +46855,13 @@ function qH({ 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)(jve, {
+ v && e?.total ? /* @__PURE__ */ (0, I.jsx)(Nve, {
value: e.checked || 0,
max: e.total
- }) : _ || x ? /* @__PURE__ */ (0, I.jsx)(Ege, {
+ }) : _ || x ? /* @__PURE__ */ (0, I.jsx)(Oge, {
"aria-hidden": !0,
className: "size-5 shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(Rge, {
+ }) : /* @__PURE__ */ (0, I.jsx)(Bge, {
"aria-hidden": !0,
className: "size-5 shrink-0"
}),
@@ -46860,14 +46873,14 @@ function qH({ 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: nH(e)
+ children: tH(e)
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: AH,
+ leadingIcon: kH,
"data-processing-toggle": "",
"data-collapse-upward": "",
"aria-label": u ? "收起任务详情" : "展开任务详情",
@@ -46879,24 +46892,24 @@ function qH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: SB,
+ leadingIcon: xB,
"aria-label": "隐藏任务提示",
onClick: r
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(WH, {
+ /* @__PURE__ */ (0, I.jsx)(UH, {
traffic: e?.traffic,
compact: !u,
detailsOpen: p,
onDetailsChange: m
}),
- b ? /* @__PURE__ */ (0, I.jsx)(sve, {
+ b ? /* @__PURE__ */ (0, I.jsx)(lve, {
state: e,
slow: b
}) : null
]
- }), /* @__PURE__ */ (0, I.jsx)(kH, {
+ }), /* @__PURE__ */ (0, I.jsx)(OH, {
id: f,
open: u,
"data-processing-body": "",
@@ -46913,14 +46926,14 @@ function qH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
"aria-current": e.status === "current" ? "step" : void 0,
className: J("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)(_ge, {
+ e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(yge, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(vge, {
+ }) : /* @__PURE__ */ (0, I.jsx)(bge, {
"aria-hidden": !0,
className: J("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
}),
- /* @__PURE__ */ (0, I.jsx)(fE, { 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
@@ -46933,11 +46946,11 @@ function qH({ 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)(pve, { state: e }))
+ children: t || (_ || g ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, I.jsx)(hve, { state: e }))
}),
g ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: eH
+ children: $V
}) : null,
v && e?.stage && !e.steps?.length ? /* @__PURE__ */ (0, I.jsxs)("p", {
className: "text-caption-1-regular text-text-tertiary",
@@ -46951,20 +46964,20 @@ function qH({ 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)(dH, {
+ /* @__PURE__ */ (0, I.jsx)(uH, {
href: "/data-cleanup#libraryProcessing",
variant: "secondary",
size: "small",
- trailingIcon: gB,
+ trailingIcon: hB,
children: t || _ || g ? "打开扫描与采集" : "任务详情"
}),
- g ? /* @__PURE__ */ (0, I.jsx)(dH, {
- href: tH,
+ g ? /* @__PURE__ */ (0, I.jsx)(uH, {
+ href: eH,
size: "small",
- trailingIcon: gB,
+ trailingIcon: hB,
children: "查看全部内容"
}) : null,
- v ? /* @__PURE__ */ (0, I.jsx)(SH, {
+ v ? /* @__PURE__ */ (0, I.jsx)(xH, {
state: e,
disabled: !!t
}) : null
@@ -46974,67 +46987,67 @@ function qH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
})]
});
}
-function Mve(e) {
- let { job: t } = CH(e);
- return /* @__PURE__ */ (0, I.jsx)(qH, {
+function Pve(e) {
+ let { job: t } = SH(e);
+ return /* @__PURE__ */ (0, I.jsx)(KH, {
state: t.data,
- problem: t.isError ? t.data ? aH : lr(t.error) : ""
+ problem: t.isError ? t.data ? iH : lr(t.error) : ""
});
}
// src/react/library-processing/processing-notice-visibility.ts
-var JH = "peach.library-processing.visibility", YH = /* @__PURE__ */ new Set(), XH = "";
-function Nve() {
+var qH = "peach.library-processing.visibility", JH = /* @__PURE__ */ new Set(), YH = "";
+function Fve() {
try {
- return sessionStorage.getItem(JH) || "";
+ return sessionStorage.getItem(qH) || "";
} catch {
- return XH;
+ return YH;
}
}
-function Pve(e) {
- return YH.add(e), () => {
- YH.delete(e);
+function Ive(e) {
+ return JH.add(e), () => {
+ JH.delete(e);
};
}
-function ZH(e, t) {
- XH = `${t ? "shown" : "hidden"}:${e}`;
+function XH(e, t) {
+ YH = `${t ? "shown" : "hidden"}:${e}`;
try {
- sessionStorage.setItem(JH, XH);
+ sessionStorage.setItem(qH, YH);
} catch {}
- YH.forEach((e) => e());
+ JH.forEach((e) => e());
}
-function QH(e) {
- let t = (0, F.useSyncExternalStore)(Pve, Nve, () => "");
+function ZH(e) {
+ let t = (0, F.useSyncExternalStore)(Ive, Fve, () => "");
return {
hidden: t === `hidden:${e}`,
requested: t === `shown:${e}`
};
}
// src/react/library-processing/library-processing-dock.tsx
-var $H = "peach-library-processing";
-function Fve({ toast: e }) {
- let { job: t, settled: n } = CH({
+var QH = "peach-library-processing";
+function Lve({ toast: e }) {
+ let { job: t, settled: n } = SH({
toast: e,
mode: "notice"
- }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = QH(a), c = t.isError ? i ? aH : lr(t.error) : "";
+ }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = ZH(a), c = t.isError ? i ? iH : lr(t.error) : "";
return (0, F.useEffect)(() => {
- let e = QV(i), t = i?.status === "failed" && (n?.job_id === i.job_id || lH(i));
- o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && HV.dismiss($H), r.current = !1) : (HV.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {
+ let e = ZV(i), t = i?.status === "failed" && (n?.job_id === i.job_id || cH(i));
+ o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && VV.dismiss(QH), r.current = !1) : (VV.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(qH, {
+ children: /* @__PURE__ */ (0, I.jsx)(KH, {
state: i,
problem: c,
measure: !0,
- onHide: () => ZH(a, !1)
+ onHide: () => XH(a, !1)
})
}), {
- id: $H,
+ id: QH,
toasterId: "processing",
duration: Infinity,
dismissible: !1,
closeButton: !1,
className: "processing-task-toast",
onDismiss: () => {
- ZH(a, !1), r.current = !1;
+ XH(a, !1), r.current = !1;
}
}), r.current = !0);
}, [
@@ -47045,19 +47058,19 @@ function Fve({ toast: e }) {
o,
s
]), (0, F.useEffect)(() => () => {
- r.current && HV.dismiss($H), r.current = !1;
+ r.current && VV.dismiss(QH), r.current = !1;
}, []), null;
}
// src/react/network-banner.tsx
-var Ive = ["network-status"], Lve = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
-function Rve(e) {
+var Rve = ["network-status"], zve = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
+function Bve(e) {
return e?.state === "online" ? 12e4 : 3e4;
}
-function zve() {
+function Vve() {
let e = Ft({
- queryKey: Ive,
+ queryKey: Rve,
queryFn: ({ signal: e }) => B("/api/network-status", e),
- refetchInterval: (e) => Rve(e.state.data),
+ refetchInterval: (e) => Bve(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", {
@@ -47068,56 +47081,56 @@ function zve() {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-alert" })
- }), /* @__PURE__ */ (0, I.jsx)("p", { children: Lve })] }), /* @__PURE__ */ (0, I.jsx)("a", {
+ }), /* @__PURE__ */ (0, I.jsx)("p", { children: zve })] }), /* @__PURE__ */ (0, I.jsx)("a", {
href: "/settings/network#peachProxy",
children: "检查 Peach 代理"
})]
}), t);
}
// src/react/components/segmented.tsx
-function Bve(e) {
- let t = sL(mH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(uB, {
+function Hve(e) {
+ let t = oL(pH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(lB, {
...e,
ref: t
});
}
-function eU(e) {
- let t = sL(mH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(kz, {
+function $H(e) {
+ let t = oL(pH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(Oz, {
...e,
ref: t
});
}
-var tU = "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", nU = "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", rU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", iU = "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)", aU = [
+var eU = "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", tU = "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", Uve = "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", nU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", rU = "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)", iU = [
["library", "馆藏"],
["releases", "新作"],
["discover", "发现"],
["wants", "想要"]
-], oU = (e) => aU.some(([t]) => t === e) ? e : "library", sU = (e) => oU(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
-function Hve(e) {
+], aU = (e) => iU.some(([t]) => t === e) ? e : "library", oU = (e) => aU(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
+function Wve(e) {
let t = new URLSearchParams(e);
return t.delete("tab"), t.set("jav", "1"), "/?" + t;
}
// src/onboarding/guide-catalog.ts
-var cU = (e, t, n, r, i, a) => ({
+var sU = (e, t, n, r, i, a) => ({
id: e,
title: t,
body: n,
route: r,
target: i,
scope: a
-}), lU = (e, t, n, r, i) => cU(e, t, n, r, i), uU = [
+}), cU = (e, t, n, r, i) => sU(e, t, n, r, i), lU = [
{
id: "basics",
kind: "interface",
title: "认识界面",
summary: "4 步认识搜索、导航、作品详情和设置。",
steps: [
- lU("search", "搜索馆藏", "输入作品名、番号、艺人、厂牌或标签。搜索结果来自已经入库的内容。", "/", "#q, #searchBtn"),
- lU("navigation", "切换浏览入口", "在侧栏按人物、厂牌和标签浏览。手机上用导航按钮展开侧栏;入口与顺序可以在设置里调整。", "/", "#filterBtn, [data-sidebar-nav]"),
- lU("cards", "打开作品详情", "选择作品查看资料、版本和播放入口。首次扫描尚未入库时,可以先继续认识导航。", "/", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
- lU("preferences", "调整自己的界面", "侧栏底部的设置包含显示与播放偏好;手机上先展开侧栏。媒体目录、网络和后台服务放在其中的 Peach 配置入口。", "/", "#settingsBtn, #filterBtn")
+ cU("search", "搜索馆藏", "输入作品名、番号、艺人、厂牌或标签。搜索结果来自已经入库的内容。", "/", "#q, #searchBtn"),
+ cU("navigation", "切换浏览入口", "在侧栏按人物、厂牌和标签浏览。手机上用导航按钮展开侧栏;入口与顺序可以在设置里调整。", "/", "#filterBtn, [data-sidebar-nav]"),
+ cU("cards", "打开作品详情", "选择作品查看资料、版本和播放入口。首次扫描尚未入库时,可以先继续认识导航。", "/", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
+ cU("preferences", "调整自己的界面", "侧栏底部的设置包含显示与播放偏好;手机上先展开侧栏。媒体目录、网络和后台服务放在其中的 Peach 配置入口。", "/", "#settingsBtn, #filterBtn")
]
},
{
@@ -47126,23 +47139,23 @@ var cU = (e, t, n, r, i, a) => ({
title: "找到并播放",
summary: "搜索、筛选、详情、版本、字幕和播放器。",
steps: [
- lU("library", "选择媒体库", "导航顶部可以切换全部媒体库或某个媒体库;手机上先展开侧栏。媒体库把不同目录组织成一组。", "/", "#brandHome, #filterBtn"),
- lU("search", "按关键词找内容", "输入作品、番号或人物名称,结合筛选与排序定位内容。搜索记录数量可在搜索与推荐中设置。", "/", "#q, #searchBtn"),
- lU("filter", "筛选与清除", "多个筛选条件会共同缩小结果。找不到内容时先检查媒体库和筛选条件。", "/", "[data-catalog-frame]"),
+ cU("library", "选择媒体库", "导航顶部可以切换全部媒体库或某个媒体库;手机上先展开侧栏。媒体库把不同目录组织成一组。", "/", "#brandHome, #filterBtn"),
+ cU("search", "按关键词找内容", "输入作品、番号或人物名称,结合筛选与排序定位内容。搜索记录数量可在搜索与推荐中设置。", "/", "#q, #searchBtn"),
+ cU("filter", "筛选与清除", "多个筛选条件会共同缩小结果。找不到内容时先检查媒体库和筛选条件。", "/", "[data-catalog-frame]"),
{
- ...cU("detail", "作品详情", "这里显示当前作品的标题和源文件工具。评分、人物和标签在下方;有分卷或版本的作品可从馆藏卡片进入相应队列。", "/", "[data-item-title]"),
+ ...sU("detail", "作品详情", "这里显示当前作品的标题和源文件工具。评分、人物和标签在下方;有分卷或版本的作品可从馆藏卡片进入相应队列。", "/", "[data-item-title]"),
surface: "detail"
},
{
- ...cU("player", "播放器控件", "底部控制条提供播放、进度、音量和全屏。右侧齿轮打开播放速度、字幕、画面旋转和清晰度等选项。", "/", "#stage .vjs-control-bar"),
+ ...sU("player", "播放器控件", "底部控制条提供播放、进度、音量和全屏。右侧齿轮打开播放速度、字幕、画面旋转和清晰度等选项。", "/", "#stage .vjs-control-bar"),
surface: "player"
},
{
- ...cU("subtitles", "字幕与播放选项", "从播放器齿轮菜单进入字幕,可以选择已有字幕、加载本地字幕文件或搜索字幕;播放速度和清晰度也在这个菜单中。", "/", "#stage [data-player-subtitles]"),
+ ...sU("subtitles", "字幕与播放选项", "从播放器齿轮菜单进入字幕,可以选择已有字幕、加载本地字幕文件或搜索字幕;播放速度和清晰度也在这个菜单中。", "/", "#stage [data-player-subtitles]"),
surface: "subtitles"
},
{
- ...cU("external", "外部播放器", "在这里选择本地播放器、M3U 播放列表或网络播放地址,再点打开。另一台设备需要能访问当前 Peach 地址。", "/", "#stage [data-local-playback-row]"),
+ ...sU("external", "外部播放器", "在这里选择本地播放器、M3U 播放列表或网络播放地址,再点打开。另一台设备需要能访问当前 Peach 地址。", "/", "#stage [data-local-playback-row]"),
surface: "detail"
}
]
@@ -47154,15 +47167,15 @@ var cU = (e, t, n, r, i, a) => ({
summary: "评分、标记、播放列表与当前播放队列。",
steps: [
{
- ...lU("marks", "评分", "点击星星给作品评分;下方的喜欢、稍后看和加入播放列表用于保存感兴趣的内容。", "/", "#stage [data-item-rating]"),
+ ...cU("marks", "评分", "点击星星给作品评分;下方的喜欢、稍后看和加入播放列表用于保存感兴趣的内容。", "/", "#stage [data-item-rating]"),
surface: "detail"
},
{
- ...lU("mark-actions", "标记与加入列表", "喜欢影响口味推荐,稍后看便于回找;加入播放列表可把作品整理到自己的列表。", "/", "#stage [data-item-feedback]"),
+ ...cU("mark-actions", "标记与加入列表", "喜欢影响口味推荐,稍后看便于回找;加入播放列表可把作品整理到自己的列表。", "/", "#stage [data-item-feedback]"),
surface: "detail"
},
- lU("lists", "建立播放列表", "在这里输入名称,创建自己的播放列表。之后从作品详情的加入播放列表按钮添加内容。", "/playlists", "[data-playlist-create]"),
- lU("queue", "从列表开始播放", "选择一张播放列表卡片进入队列,查看和调整播放顺序。没有列表时先创建,再加入作品。", "/playlists", "[data-playlist-card]")
+ cU("lists", "建立播放列表", "在这里输入名称,创建自己的播放列表。之后从作品详情的加入播放列表按钮添加内容。", "/playlists", "[data-playlist-create]"),
+ cU("queue", "从列表开始播放", "选择一张播放列表卡片进入队列,查看和调整播放顺序。没有列表时先创建,再加入作品。", "/playlists", "[data-playlist-card]")
]
},
{
@@ -47171,10 +47184,10 @@ var cU = (e, t, n, r, i, a) => ({
title: "按人物与主题浏览",
summary: "从人物、厂牌和标签继续发现相关馆藏。",
steps: [
- lU("people", "艺人与创作者", "选择人物卡片进入资料页,查看相关作品、照片与已连接的来源。上方可以切换艺人、卖家与在线人物。", "/performers", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
- lU("studios", "厂牌", "选择厂牌卡片集中查看作品。资料页中的作品仍会受到当前媒体库范围影响。", "/studios", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
- lU("tags", "标签与主题", "选择标签继续浏览相关馆藏;本地与在线使用不同的标签词表。", "/tags", "[data-index-body] [data-alpha-tag], [data-index-body] [data-tag-chip], [data-index-body] [data-empty-state]"),
- lU("manage-tags", "管理标签", "铅笔按钮打开标签管理,用于整理标签名称和关系;再次点击返回浏览。", "/tags", "[data-tag-mode]")
+ cU("people", "艺人与创作者", "选择人物卡片进入资料页,查看相关作品、照片与已连接的来源。上方可以切换艺人、卖家与在线人物。", "/performers", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
+ cU("studios", "厂牌", "选择厂牌卡片集中查看作品。资料页中的作品仍会受到当前媒体库范围影响。", "/studios", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
+ cU("tags", "标签与主题", "选择标签继续浏览相关馆藏;本地与在线使用不同的标签词表。", "/tags", "[data-index-body] [data-alpha-tag], [data-index-body] [data-tag-chip], [data-index-body] [data-empty-state]"),
+ cU("manage-tags", "管理标签", "铅笔按钮打开标签管理,用于整理标签名称和关系;再次点击返回浏览。", "/tags", "[data-tag-mode]")
]
},
{
@@ -47183,10 +47196,10 @@ var cU = (e, t, n, r, i, a) => ({
title: "JAV 与追新",
summary: "馆藏、新作、想要清单与高清版。",
steps: [
- lU("library", "JAV 馆藏", "按番号、出演者和厂牌查找已入库的作品,可以选择官方封面或预览图。", sU("library"), "[data-catalog-frame]"),
- lU("new", "发现推荐", "发现页按口味推荐作品。在这里切换馆藏或外部内容,并按标签筛选。", sU("discover"), "[data-jav-filter] [data-catalog-views]"),
- lU("wants", "查看想要清单", "喜欢的外部作品可以加入想要清单;在这里切换馆藏、发现与想要。", sU("discover"), "[aria-label=\"JAV 分区\"]"),
- lU("quality", "高清版", "待升级卡片列出当前版本信息和判定原因,可以查看版本或查找资源;没有目标时这里显示空状态。", "/quality-goals", "[data-goal-id], #main [data-empty-state]")
+ cU("library", "JAV 馆藏", "按番号、出演者和厂牌查找已入库的作品,可以选择官方封面或预览图。", oU("library"), "[data-catalog-frame]"),
+ cU("new", "发现推荐", "发现页按口味推荐作品。在这里切换馆藏或外部内容,并按标签筛选。", oU("discover"), "[data-jav-filter] [data-catalog-views]"),
+ cU("wants", "查看想要清单", "喜欢的外部作品可以加入想要清单;在这里切换馆藏、发现与想要。", oU("discover"), "[aria-label=\"JAV 分区\"]"),
+ cU("quality", "高清版", "待升级卡片列出当前版本信息和判定原因,可以查看版本或查找资源;没有目标时这里显示空状态。", "/quality-goals", "[data-goal-id], #main [data-empty-state]")
]
},
{
@@ -47195,9 +47208,9 @@ var cU = (e, t, n, r, i, a) => ({
title: "关注创作者",
summary: "多来源更新、同作品合并和来源状态。",
steps: [
- lU("feed", "集中看关注更新", "来自不同来源的创作者更新汇集在这里,选择一项更新查看内容;尚未关注来源时,按空状态中的入口添加。", "/follow", "[data-follow-item], [data-follow-empty] [data-empty-state]"),
- lU("sources", "管理关注来源", "从列表查看启用状态、采集结果和失败原因;切换到添加区域,添加创作者或订阅来源。", "/subscriptions", "[aria-label=\"关注管理区域\"]"),
- lU("credentials", "按需配置凭据", "部分来源需要登录凭据;先确认要启用的来源,再展开对应站点,填写其要求的信息。", "/settings/subscriptions", "[data-guide-target=\"credentials\"]")
+ cU("feed", "集中看关注更新", "来自不同来源的创作者更新汇集在这里,选择一项更新查看内容;尚未关注来源时,按空状态中的入口添加。", "/follow", "[data-follow-item], [data-follow-empty] [data-empty-state]"),
+ cU("sources", "管理关注来源", "从列表查看启用状态、采集结果和失败原因;切换到添加区域,添加创作者或订阅来源。", "/subscriptions", "[aria-label=\"关注管理区域\"]"),
+ cU("credentials", "按需配置凭据", "部分来源需要登录凭据;先确认要启用的来源,再展开对应站点,填写其要求的信息。", "/settings/subscriptions", "[data-guide-target=\"credentials\"]")
]
},
{
@@ -47206,9 +47219,9 @@ var cU = (e, t, n, r, i, a) => ({
title: "专注观看",
summary: "播放墙、沉浸模式与详情小窗。",
steps: [
- lU("wall", "播放墙", "播放墙提供多画面观看入口。结束导览后点击进入,再选择要播放的内容。", "/", "#wallBtn"),
- lU("immerse", "沉浸模式", "沉浸模式适合连续观看。点击入口会进入观看流程,请在准备好播放时使用。", "/", "#immerseBtn"),
- lU("mini", "离开详情后继续看", "开启小窗播放后,离开详情可以继续观看。自动播放、小窗和快进步长都在浏览与播放设置中。", "/settings/playback", "#miniplayerSetting")
+ cU("wall", "播放墙", "播放墙提供多画面观看入口。结束导览后点击进入,再选择要播放的内容。", "/", "#wallBtn"),
+ cU("immerse", "沉浸模式", "沉浸模式适合连续观看。点击入口会进入观看流程,请在准备好播放时使用。", "/", "#immerseBtn"),
+ cU("mini", "离开详情后继续看", "开启小窗播放后,离开详情可以继续观看。自动播放、小窗和快进步长都在浏览与播放设置中。", "/settings/playback", "#miniplayerSetting")
]
},
{
@@ -47217,11 +47230,11 @@ var cU = (e, t, n, r, i, a) => ({
title: "整理与维护",
summary: "扫描、补资料、复核、文件整理与回收站。",
steps: [
- lU("scan", "扫描与补资料", "在媒体库处理区域选择扫描和资料处理范围。读取策略取决于媒体库配置;导览不会启动任务。", "/data-cleanup", "#libraryProcessing"),
- lU("review", "人工复核", "先按分类找到待复核资料,再查看项目的来源和证据后作决定。", "/review", "[aria-labelledby=\"reviewcategories\"]"),
- lU("organize", "文件整理", "文件整理先查看预览,确认命名与目标目录再执行。资料整理和真实文件操作有不同的影响范围。", "/data-cleanup", "[data-cleanup-organize]"),
- lU("trash", "回收站", "查看已移入回收站的作品,按需要恢复或处理。永久删除前认真核对确认框中的范围。", "/trash", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
- lU("tasks", "任务与失败原因", "任务记录显示处理状态;展开记录查看详情与失败原因。还没有任务时,这里会说明哪些操作会留下记录。", "/tasks", "[data-run-id], #main [data-empty-state]")
+ cU("scan", "扫描与补资料", "在媒体库处理区域选择扫描和资料处理范围。读取策略取决于媒体库配置;导览不会启动任务。", "/data-cleanup", "#libraryProcessing"),
+ cU("review", "人工复核", "先按分类找到待复核资料,再查看项目的来源和证据后作决定。", "/review", "[aria-labelledby=\"reviewcategories\"]"),
+ cU("organize", "文件整理", "文件整理先查看预览,确认命名与目标目录再执行。资料整理和真实文件操作有不同的影响范围。", "/data-cleanup", "[data-cleanup-organize]"),
+ cU("trash", "回收站", "查看已移入回收站的作品,按需要恢复或处理。永久删除前认真核对确认框中的范围。", "/trash", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
+ cU("tasks", "任务与失败原因", "任务记录显示处理状态;展开记录查看详情与失败原因。还没有任务时,这里会说明哪些操作会留下记录。", "/tasks", "[data-run-id], #main [data-empty-state]")
]
},
{
@@ -47230,10 +47243,10 @@ var cU = (e, t, n, r, i, a) => ({
title: "了解自己的馆藏",
summary: "统计、口味,以及浏览历史和书签来源。",
steps: [
- lU("stats", "馆藏统计", "选择统计视图查看馆藏、存储和观看情况,各视图中的入口可继续查看相关作品。", "/stats", "[aria-label=\"统计视图\"]"),
- lU("taste", "口味与记录", "在这里切换浏览器记录与 Peach 观看评价,分析各自的口味。", "/taste", "[aria-label=\"口味分析的数据来源\"]"),
- lU("import", "取得浏览历史与书签", "读取浏览器记录需要在运行 Peach 的电脑操作;更多方式菜单可以导入历史或书签文件,适合其它设备。", "/taste", "[data-guide-target=\"history-import\"]"),
- lU("history", "管理记录来源", "已取得的记录来源集中列在这里,可以停用本机浏览器读取或移除已导入的数据源;导览不会修改这些记录。", "/taste", "section[aria-label=\"数据源\"]")
+ cU("stats", "馆藏统计", "选择统计视图查看馆藏、存储和观看情况,各视图中的入口可继续查看相关作品。", "/stats", "[aria-label=\"统计视图\"]"),
+ cU("taste", "口味与记录", "在这里切换浏览器记录与 Peach 观看评价,分析各自的口味。", "/taste", "[aria-label=\"口味分析的数据来源\"]"),
+ cU("import", "取得浏览历史与书签", "读取浏览器记录需要在运行 Peach 的电脑操作;更多方式菜单可以导入历史或书签文件,适合其它设备。", "/taste", "[data-guide-target=\"history-import\"]"),
+ cU("history", "管理记录来源", "已取得的记录来源集中列在这里,可以停用本机浏览器读取或移除已导入的数据源;导览不会修改这些记录。", "/taste", "section[aria-label=\"数据源\"]")
]
},
{
@@ -47242,9 +47255,9 @@ var cU = (e, t, n, r, i, a) => ({
title: "从外部加入内容",
summary: "云下载、目录映射与浏览器添加。",
steps: [
- lU("downloads", "配置下载渠道", "先连接支持的渠道,再指定云端目标目录与本地媒体目录。下载完成后按目录规则入库。", "/settings/downloads", "[data-guide-target=\"download\"]"),
- lU("search", "搜索资源", "资源搜索使用配置的索引器。查到结果后还需要你主动选择下载。", "/settings/subscriptions", "[data-guide-target=\"indexers\"]"),
- lU("browser", "浏览器添加 JAV", "用户脚本与 Peach 配对后可从浏览器添加作品。专用令牌、默认渠道和开关在下载渠道里管理。", "/settings/downloads", "[data-guide-target=\"browser\"]")
+ cU("downloads", "配置下载渠道", "先连接支持的渠道,再指定云端目标目录与本地媒体目录。下载完成后按目录规则入库。", "/settings/downloads", "[data-guide-target=\"download\"]"),
+ cU("search", "搜索资源", "资源搜索使用配置的索引器。查到结果后还需要你主动选择下载。", "/settings/subscriptions", "[data-guide-target=\"indexers\"]"),
+ cU("browser", "浏览器添加 JAV", "用户脚本与 Peach 配对后可从浏览器添加作品。专用令牌、默认渠道和开关在下载渠道里管理。", "/settings/downloads", "[data-guide-target=\"browser\"]")
]
},
{
@@ -47253,18 +47266,18 @@ var cU = (e, t, n, r, i, a) => ({
title: "手机与其他设备",
summary: "访问地址、密码、局域网和公网入口。",
steps: [
- lU("address", "找到访问地址", "同一局域网的设备使用 Peach 的局域网地址。仅本机访问时,其它设备无法连接。", "/settings/network", "[data-guide-target=\"port\"]"),
- lU("password", "访问密码", "能连接到 Peach 的设备按访问密码登录。显示偏好与访问权限是不同的设置。", "/settings/network", "[data-guide-target=\"access\"]"),
- lU("tunnel", "需要时启用公网入口", "Cloudflare 公网入口适合离开局域网后访问,需要按实际部署配置连接信息。", "/settings/network", "[data-guide-target=\"tunnel\"]")
+ cU("address", "找到访问地址", "同一局域网的设备使用 Peach 的局域网地址。仅本机访问时,其它设备无法连接。", "/settings/network", "[data-guide-target=\"port\"]"),
+ cU("password", "访问密码", "能连接到 Peach 的设备按访问密码登录。显示偏好与访问权限是不同的设置。", "/settings/network", "[data-guide-target=\"access\"]"),
+ cU("tunnel", "需要时启用公网入口", "Cloudflare 公网入口适合离开局域网后访问,需要按实际部署配置连接信息。", "/settings/network", "[data-guide-target=\"tunnel\"]")
]
}
-], Uve = "当前浏览器 · 修改后自动保存", dU = "跟随馆藏 · 修改后自动保存", fU = "运行 Peach 的电脑 · 确认后保存配置", pU = (e, t, n = Uve) => t.map(([t, r, i, a, o]) => cU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), mU = [
+], Gve = "当前浏览器 · 修改后自动保存", uU = "跟随馆藏 · 修改后自动保存", dU = "运行 Peach 的电脑 · 确认后保存配置", fU = (e, t, n = Gve) => t.map(([t, r, i, a, o]) => sU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), pU = [
{
id: "appearance",
kind: "settings",
- title: kf.appearance,
+ title: Of.appearance,
summary: "主题、光晕与导航入口。",
- steps: pU("appearance", [
+ steps: fU("appearance", [
[
"theme",
"主题",
@@ -47294,16 +47307,16 @@ var cU = (e, t, n, r, i, a) => ({
"导航入口与顺序",
"把常用入口放到侧栏,拖动调整顺序。",
"[data-sidebar-setting]",
- dU
+ uU
]
])
},
{
id: "playback",
kind: "settings",
- title: kf.playback,
+ title: Of.playback,
summary: "列表呈现、悬停预览与播放行为。",
- steps: pU("playback", [
+ steps: fU("playback", [
[
"batch",
"每批作品",
@@ -47357,15 +47370,15 @@ var cU = (e, t, n, r, i, a) => ({
{
id: "jav-settings",
kind: "settings",
- title: kf.jav,
+ title: Of.jav,
summary: "封面与新作筛选。",
- steps: pU("jav", [
+ steps: fU("jav", [
[
"names",
"女优名称",
"选择中文或日文名称;偏好跟随馆藏,其他设备读取同一份设置。",
"#performerNameLanguageSetting",
- dU
+ uU
],
[
"image",
@@ -47390,35 +47403,35 @@ var cU = (e, t, n, r, i, a) => ({
"隐藏大合集",
"过滤新作中的大合集,只影响新作展示,馆藏仍可查找。",
"#feedHideGroupSetting",
- dU
+ uU
],
[
"solo-compilations",
"隐藏单人合集",
"过滤新作中的单人合集,只影响新作展示,馆藏仍可查找。",
"#feedHideSoloSetting",
- dU
+ uU
],
[
"excerpts",
"隐藏切片",
"过滤新作中的切片,只影响新作展示,馆藏仍可查找。",
"#feedHideExcerptSetting",
- dU
+ uU
]
])
},
{
id: "search-settings",
kind: "settings",
- title: kf.search,
+ title: Of.search,
summary: "搜索记录、推荐数量与口味入口。",
- steps: [...pU("search", [[
+ steps: [...fU("search", [[
"history",
"搜索记录",
"设置保留的搜索记录上限,0 表示不记录。",
"#searchHistoryLimitSetting"
- ]], dU), ...pU("search", [[
+ ]], uU), ...fU("search", [[
"related",
"相关推荐数量",
"决定详情中显示多少项相关推荐。口味和记录来源在口味页面管理。",
@@ -47428,9 +47441,9 @@ var cU = (e, t, n, r, i, a) => ({
{
id: "content",
kind: "settings",
- title: kf.content,
+ title: Of.content,
summary: "SFW 模式与画面显示。",
- steps: pU("content", [[
+ steps: fU("content", [[
"sfw",
"SFW 模式",
"隐藏敏感画面并停止悬停预览,适合需要遮挡画面的环境。访问控制请另设访问密码。",
@@ -47440,9 +47453,9 @@ var cU = (e, t, n, r, i, a) => ({
{
id: "library",
kind: "settings",
- title: Af.library,
+ title: kf.library,
summary: "媒体库、目录、读取与处理方式。",
- steps: pU("library", [
+ steps: fU("library", [
[
"media",
"媒体库名称与外观",
@@ -47493,14 +47506,14 @@ var cU = (e, t, n, r, i, a) => ({
"视频预览",
"生成视频预览会读取视频并产生缓存。时间轴预览的开关与采集间隔控制本机磁盘缩略图;抽帧解码方式决定生成预览使用的解码器。修改后自动保存,并受媒体库处理方式与读取策略约束。"
]
- ], fU)
+ ], dU)
},
{
id: "subscriptions",
kind: "settings",
- title: Af.subscriptions,
+ title: kf.subscriptions,
summary: "资料来源、关注、索引器与站点入口。",
- steps: pU("subscriptions", [
+ steps: fU("subscriptions", [
[
"sources",
"采集来源与登录状态",
@@ -47527,14 +47540,14 @@ var cU = (e, t, n, r, i, a) => ({
"作品资料站点",
"配置资料站点和镜像入口,用于打开相关作品页面。地址和登录凭据分别管理。"
]
- ], fU)
+ ], dU)
},
{
id: "downloads",
kind: "settings",
- title: Af.downloads,
+ title: kf.downloads,
summary: "云下载目录、账号与浏览器配对。",
- steps: pU("downloads", [
+ steps: fU("downloads", [
[
"download",
"云下载",
@@ -47550,14 +47563,14 @@ var cU = (e, t, n, r, i, a) => ({
"浏览器添加 JAV",
"安装用户脚本并配对 Peach。默认渠道决定提交到哪里;启用开关控制功能,专用令牌可更新或关闭,脚本检测帮助确认配对。"
]
- ], fU)
+ ], dU)
},
{
id: "network",
kind: "settings",
- title: Af.network,
+ title: kf.network,
summary: "访问端口、代理、密码和公网入口。",
- steps: pU("network", [
+ steps: fU("network", [
[
"port",
"访问地址与端口",
@@ -47578,14 +47591,14 @@ var cU = (e, t, n, r, i, a) => ({
"Cloudflare 公网入口",
"临时链接用于临时连接,命名隧道使用主机名与隧道令牌。连接状态显示是否已可用,按需要启用。"
]
- ], fU)
+ ], dU)
},
{
id: "app-maintenance",
kind: "settings",
- title: Af.maintenance,
+ title: kf.maintenance,
summary: "更新、存储、数据选择与应用维护。",
- steps: pU("maintenance", [
+ steps: fU("maintenance", [
[
"updates",
"检查更新",
@@ -47631,14 +47644,14 @@ var cU = (e, t, n, r, i, a) => ({
"卸载 Peach",
"卸载移除程序;完全卸载还移除设置、资料库、记录、凭据和缓存。执行前核对页面列出的数据目录与确认内容。"
]
- ], fU)
+ ], dU)
},
{
id: "diagnostics",
kind: "settings",
- title: Af.diagnostics,
+ title: kf.diagnostics,
summary: "遇到问题时查看检查项与诊断报告。",
- steps: pU("diagnostics", [
+ steps: fU("diagnostics", [
[
"attention",
"需要关注的检查项",
@@ -47663,7 +47676,7 @@ var cU = (e, t, n, r, i, a) => ({
]
], "只读检查 · 重新检查与下载由你主动执行")
}
-], Wve = {
+], Kve = {
glow: [
["配色预设", "一次应用一组配色和参数,适合先挑选整体外观。"],
["强度", "控制光晕的明亮程度;太抢眼时降低。"],
@@ -47770,8 +47783,8 @@ var cU = (e, t, n, r, i, a) => ({
["上传预览", "查看本次会包含的内容,再决定是否启用明细上传。"]
]
};
-for (let e of mU) for (let t of e.steps) t.details = Wve[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.id === "ledger-backups") && (t.scope = "按页面中各项的保存或确认动作生效");
-var hU = [...uU, ...mU], Gve = [
+for (let e of pU) for (let t of e.steps) t.details = Kve[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.id === "ledger-backups") && (t.scope = "按页面中各项的保存或确认动作生效");
+var mU = [...lU, ...pU], qve = [
{
id: "browse",
kind: "interface",
@@ -47849,35 +47862,35 @@ var hU = [...uU, ...mU], Gve = [
]
}
];
-function Kve(e) {
- return e === "/" ? uU[0] : mU.find((t) => t.steps[0]?.route === e) || uU.find((t) => t.id !== "basics" && t.steps.some((t) => t.route === e)) || uU[0];
+function Jve(e) {
+ return e === "/" ? lU[0] : pU.find((t) => t.steps[0]?.route === e) || lU.find((t) => t.id !== "basics" && t.steps.some((t) => t.route === e)) || lU[0];
}
// src/onboarding/guide-state.ts
-var qve = () => ({
+var Yve = () => ({
version: 1,
campaign: "",
invited: !1,
completed: !1,
chapters: {}
});
-function gU(e, t) {
+function hU(e, t) {
let n = e.chapters[t.id]?.read || [];
return t.steps.every((e) => n.includes(e.id));
}
-function Jve(e, t) {
+function Xve(e, t) {
let n = e.chapters[t.id];
- return !n || gU(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));
+ return !n || hU(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));
}
-function Yve() {
+function Zve() {
return B("/api/tutorial-progress");
}
-function Xve(e, t) {
+function Qve(e, t) {
return V("/api/tutorial-progress", {
campaign: e,
...t
});
}
-function Zve(e, t, n, r, i) {
+function $ve(e, t, n, r, i) {
let a = e.chapters[t] || {
next: 0,
read: [],
@@ -47895,99 +47908,99 @@ function Zve(e, t, n, r, i) {
}
};
}
-var _U = null, vU = /* @__PURE__ */ new Set();
-function yU(e = {}) {
- vU.size || (_U = e);
- for (let t of vU) t(e);
-}
-function Qve(e) {
- if (vU.add(e), _U) {
- let t = _U;
- _U = null, queueMicrotask(() => {
- vU.has(e) && e(t);
+var gU = null, _U = /* @__PURE__ */ new Set();
+function vU(e = {}) {
+ _U.size || (gU = e);
+ for (let t of _U) t(e);
+}
+function eye(e) {
+ if (_U.add(e), gU) {
+ let t = gU;
+ gU = null, queueMicrotask(() => {
+ _U.has(e) && e(t);
});
}
return () => {
- vU.delete(e);
+ _U.delete(e);
};
}
// src/react/components/card.tsx
-var $ve = "min-w-0", eye = {
+var tye = "min-w-0", nye = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, tye = {
+}, rye = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, nye = {
+}, iye = {
line: "border border-border-button-default",
soft: "border border-separator-border",
error: "outline-1 -outline-offset-1 outline-border-error-default"
-}, rye = {
+}, aye = {
none: "",
default: "p-5"
-}, iye = "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", aye = "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 bU(e = {}) {
+}, oye = "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", sye = "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 yU(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 [
- $ve,
- eye[t],
- tye[s],
- rye[n],
- a ? nye[a] : "",
- r ? iye : "",
- i ? aye : "",
+ tye,
+ nye[t],
+ rye[s],
+ aye[n],
+ a ? iye[a] : "",
+ r ? oye : "",
+ i ? sye : "",
o ?? ""
].filter(Boolean).join(" ");
}
// src/react/onboarding/guide-directory.tsx
-var oye = {
- browse: UB,
- collect: bB,
- watch: RB,
- manage: AB,
- experience: IB,
- discovery: HB,
- storage: wB,
- system: WB
-}, sye = {
- basics: CB,
- "find-play": UB,
- entities: JB,
- jav: OB,
- save: bB,
- follow: HB,
- insights: yB,
- viewing: RB,
- devices: GB,
- external: TB,
- maintenance: qB,
- appearance: IB,
- playback: RB,
- content: DB,
- "search-settings": UB,
- "jav-settings": OB,
- subscriptions: HB,
- library: wB,
- downloads: TB,
- network: GB,
- "app-maintenance": qB,
- diagnostics: Uge
+var cye = {
+ browse: HB,
+ collect: yB,
+ watch: LB,
+ manage: kB,
+ experience: FB,
+ discovery: VB,
+ storage: CB,
+ system: UB
+}, lye = {
+ basics: SB,
+ "find-play": HB,
+ entities: qB,
+ jav: DB,
+ save: yB,
+ follow: VB,
+ insights: vB,
+ viewing: LB,
+ devices: WB,
+ external: wB,
+ maintenance: KB,
+ appearance: FB,
+ playback: LB,
+ content: EB,
+ "search-settings": HB,
+ "jav-settings": DB,
+ subscriptions: VB,
+ library: CB,
+ downloads: wB,
+ network: WB,
+ "app-maintenance": KB,
+ diagnostics: Gge
};
-function cye({ chapter: e, className: t = "size-5" }) {
- let n = sye[e] || CB;
+function uye({ chapter: e, className: t = "size-5" }) {
+ let n = lye[e] || SB;
return /* @__PURE__ */ (0, I.jsx)(n, {
"aria-hidden": !0,
className: J(t, "shrink-0")
});
}
-function xU({ icon: e, title: t, description: n, children: r, completed: i = !1 }) {
+function bU({ 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: bU({
+ className: yU({
radius: "plain",
className: "flex flex-col gap-4"
}),
@@ -48016,8 +48029,8 @@ function xU({ icon: e, title: t, description: n, children: r, completed: i = !1
})]
});
}
-function SU({ chapter: e, progress: t, loading: n, start: r }) {
- let i = gU(t, e), a = !i && !!t.chapters[e.id];
+function xU({ chapter: e, progress: t, loading: n, start: r }) {
+ let i = hU(t, e), a = !i && !!t.chapters[e.id];
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
disabled: n,
@@ -48027,7 +48040,7 @@ function SU({ chapter: e, progress: t, loading: n, start: r }) {
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(cye, { chapter: e.id })
+ children: /* @__PURE__ */ (0, I.jsx)(uye, { chapter: e.id })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col gap-1",
@@ -48039,7 +48052,7 @@ function SU({ chapter: e, progress: t, loading: n, start: r }) {
children: e.summary
})]
}),
- i ? /* @__PURE__ */ (0, I.jsx)(CU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ i ? /* @__PURE__ */ (0, I.jsx)(SU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: [
a ? "继续 · " : "",
@@ -48047,17 +48060,17 @@ function SU({ chapter: e, progress: t, loading: n, start: r }) {
" 步"
]
}),
- /* @__PURE__ */ (0, I.jsx)(_B, {
+ /* @__PURE__ */ (0, I.jsx)(gB, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0 text-text-secondary"
})
]
});
}
-function CU() {
+function SU() {
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)(xB, {
+ children: [/* @__PURE__ */ (0, I.jsx)(bB, {
"aria-hidden": !0,
className: "size-4"
}), /* @__PURE__ */ (0, I.jsx)("span", {
@@ -48066,17 +48079,17 @@ function CU() {
})]
});
}
-function lye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading: a, start: o }) {
- let [s, c] = (0, F.useState)(null), l = hU.find((t) => t.id === (e === "interface" ? "basics" : "appearance")), u = gU(i, l), d = !u && !!i.chapters[l.id], f = t.trim().toLowerCase(), p = hU.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 dye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading: a, start: o }) {
+ let [s, c] = (0, F.useState)(null), l = mU.find((t) => t.id === (e === "interface" ? "basics" : "appearance")), u = hU(i, l), d = !u && !!i.chapters[l.id], f = t.trim().toLowerCase(), p = mU.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)(xU, {
+ /* @__PURE__ */ (0, I.jsxs)(bU, {
completed: u,
- icon: e === "interface" ? CB : WB,
+ icon: e === "interface" ? SB : UB,
title: e === "interface" ? "先认识 Peach" : "按习惯调整 Peach",
description: e === "interface" ? "先用 4 步认识常用入口,其余功能用到时再看。" : "先了解外观与导航,其余设置按需要查看。",
- children: [u ? /* @__PURE__ */ (0, I.jsx)(CU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [u ? /* @__PURE__ */ (0, I.jsx)(SU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "text-body-2-regular text-text-secondary",
children: [l.steps.length, " 步 · 随时可以退出"]
}), /* @__PURE__ */ (0, I.jsx)(Y, {
@@ -48089,26 +48102,26 @@ function lye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
})
})]
}),
- /* @__PURE__ */ (0, I.jsx)(tV, {
+ /* @__PURE__ */ (0, I.jsx)(eV, {
"aria-label": "搜索教程",
value: t,
onChange: n,
- children: /* @__PURE__ */ (0, I.jsx)(rV, {
+ children: /* @__PURE__ */ (0, I.jsx)(nV, {
type: "search",
placeholder: e === "settings" ? "搜索设置名称或用途" : "搜索功能或页面",
- leadingIcon: UB
+ leadingIcon: HB
})
}),
f ? p.length ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-chapters",
- children: p.map((e) => /* @__PURE__ */ (0, I.jsx)(SU, {
+ children: p.map((e) => /* @__PURE__ */ (0, I.jsx)(xU, {
chapter: e,
progress: i,
loading: a,
start: o
}, e.id))
- }) : /* @__PURE__ */ (0, I.jsx)(cV, {
- icon: UB,
+ }) : /* @__PURE__ */ (0, I.jsx)(sV, {
+ icon: HB,
title: "没有匹配的教程",
size: "compact",
children: "试试功能名或设置名称。"
@@ -48126,12 +48139,12 @@ function lye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-topics",
- children: Gve.filter((t) => t.kind === e).map((e) => {
- let t = oye[e.id];
+ children: qve.filter((t) => t.kind === e).map((e) => {
+ let t = cye[e.id];
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-guide-topic": e.id,
className: "peach-guide-topic",
- children: /* @__PURE__ */ (0, I.jsx)(IH, {
+ children: /* @__PURE__ */ (0, I.jsx)(FH, {
trailing: !0,
isOpen: s === e.id,
onOpenChange: (t) => c(t ? e.id : null),
@@ -48156,8 +48169,8 @@ function lye({ 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)(SU, {
- chapter: hU.find((t) => t.id === e),
+ children: e.chapters.map((e) => /* @__PURE__ */ (0, I.jsx)(xU, {
+ chapter: mU.find((t) => t.id === e),
progress: i,
loading: a,
start: o
@@ -48171,14 +48184,14 @@ function lye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
});
}
// src/onboarding/guide-entry.ts
-var wU = "侧栏收起时,先点左上角的导航按钮。", TU = (...e) => ({
+var CU = "侧栏收起时,先点左上角的导航按钮。", wU = (...e) => ({
path: ["侧栏", ...e],
- hint: wU
-}), EU = (e) => ({
+ hint: CU
+}), TU = (e) => ({
path: ["侧栏底部的设置", e],
- hint: wU
+ hint: CU
});
-function uye(e) {
+function fye(e) {
if (e.surface) return e.id === "external" ? { path: [
"作品卡片",
"作品详情",
@@ -48195,20 +48208,20 @@ function uye(e) {
if (!e.route) return;
let [t = "/", n = ""] = e.route.split("#")[0].split("?"), r = t.split("/")[2];
if (t.startsWith("/settings/")) {
- let e = kf[r];
- if (e) return EU(e);
- let t = Af[r];
+ let e = Of[r];
+ if (e) return TU(e);
+ let t = kf[r];
if (t) return {
path: [
"侧栏底部的设置",
"Peach 配置",
t
],
- hint: wU
+ hint: CU
};
}
let i = new URLSearchParams(n);
- if (t === "/jav" || i.get("jav") === "1") return TU("JAV", aU.find(([e]) => e === (i.get("tab") || "library"))?.[1] || aU[0][1]);
+ if (t === "/jav" || i.get("jav") === "1") return wU("JAV", iU.find(([e]) => e === (i.get("tab") || "library"))?.[1] || iU[0][1]);
if (t === "/") {
switch (e.id) {
case "search": return {
@@ -48218,9 +48231,9 @@ function uye(e) {
case "navigation": return { path: ["左上角导航按钮", "侧栏中的浏览入口"] };
case "library": return {
path: ["侧栏顶部", "媒体库选择器"],
- hint: wU
+ hint: CU
};
- case "preferences": return EU(kf.appearance);
+ case "preferences": return TU(Of.appearance);
case "wall": return { path: ["页面顶部", "播放墙按钮"] };
case "immerse": return { path: ["页面顶部", "沉浸模式按钮"] };
case "cards":
@@ -48242,22 +48255,22 @@ function uye(e) {
hint: "来源、时长等更多筛选位于侧栏。"
};
}
- return TU("首页");
+ return wU("首页");
}
if ([
"/review",
"/quality-goals",
"/trash"
- ].includes(t)) return TU("管理", ep["/data-cleanup"].title, t === "/trash" ? "回收站" : ep[t].title);
- let a = ep[t];
+ ].includes(t)) return wU("管理", $f["/data-cleanup"].title, t === "/trash" ? "回收站" : $f[t].title);
+ let a = $f[t];
if (a?.nav && a.title) {
- let e = TU(a.title);
+ let e = wU(a.title);
return t === "/playlists" && (e.hint = "若侧栏没有播放列表,到设置 → 外观与导航 → 导航入口与顺序添加;手机上先展开侧栏。"), e;
}
- if (a?.section && a.title) return TU("管理", a.title);
+ if (a?.section && a.title) return wU("管理", a.title);
}
// src/react/onboarding/guide-help.tsx
-function dye({ details: e }) {
+function pye({ 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", {
@@ -48273,8 +48286,8 @@ function dye({ details: e }) {
}) : null;
}
// src/react/onboarding/guide-popover.tsx
-function fye({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {
- let c = LV(), l = uye(e);
+function mye({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {
+ let c = IV(), l = fye(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "peach-guide-popover-content",
onPointerDown: (e) => e.stopPropagation(),
@@ -48285,7 +48298,7 @@ function fye({ 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)(dV, {
+ }), /* @__PURE__ */ (0, I.jsx)(uV, {
label: s ? "关闭教程提示" : "结束导览",
onPress: o
})]
@@ -48302,7 +48315,7 @@ function fye({ 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)(Gge, {
+ children: [/* @__PURE__ */ (0, I.jsx)(qge, {
className: "size-4 shrink-0",
"aria-hidden": "true"
}), "打开方式"]
@@ -48311,7 +48324,7 @@ function fye({ 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)(_B, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(gB, {
className: "size-4 shrink-0 text-text-secondary",
"aria-hidden": "true"
}) : null, /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
@@ -48332,15 +48345,15 @@ function fye({ 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)(IH, {
+ e.details?.length ? /* @__PURE__ */ (0, I.jsx)(FH, {
summary: "更多说明",
- children: /* @__PURE__ */ (0, I.jsx)(dye, { details: e.details })
+ children: /* @__PURE__ */ (0, I.jsx)(pye, { 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)(sV, {
+ r ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
children: e.surface ? "尚未取得可演示的视频或对应控件。请先添加视频,或跳过后稍后重看。" : "当前页面未显示这个入口,可能尚无内容、没有配置权限或仍在加载。可以跳过,稍后重看。"
}) : null
@@ -48394,14 +48407,14 @@ function fye({ step: e, position: t, total: n, missing: r, next: i, previous: a,
]
});
}
-function DU(e, t, n) {
+function EU(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)(fye, { ...n }))), () => i.unmount();
+ return (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(mye, { ...n }))), () => i.unmount();
}
// src/react/onboarding/tutorial-center.tsx
-function pye({ go: e }) {
+function hye({ 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();
@@ -48415,8 +48428,8 @@ function pye({ go: e }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, I.jsxs)(xU, {
- icon: Wge,
+ /* @__PURE__ */ (0, I.jsxs)(bU, {
+ icon: Kge,
title: "从第一份收藏开始",
description: "连接媒体目录,查看入库结果,再打开馆藏。",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
@@ -48427,7 +48440,7 @@ function pye({ go: e }) {
children: "连接媒体目录"
})]
}),
- r ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ r ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -48443,7 +48456,7 @@ function pye({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(AB, {
+ children: /* @__PURE__ */ (0, I.jsx)(kB, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48462,7 +48475,7 @@ function pye({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(n_e, {
+ children: /* @__PURE__ */ (0, I.jsx)(i_e, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48481,7 +48494,7 @@ function pye({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(RB, {
+ children: /* @__PURE__ */ (0, I.jsx)(LB, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48499,7 +48512,7 @@ function pye({ go: e }) {
] })
]
}),
- /* @__PURE__ */ (0, I.jsx)(IH, {
+ /* @__PURE__ */ (0, I.jsx)(FH, {
summary: "更多接入方式",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-routes",
@@ -48508,31 +48521,31 @@ function pye({ go: e }) {
title: "关注创作者",
description: l ? "当前启用来源的必要凭据已具备。" : s.length ? "已有关注来源,请检查必要凭据。" : "添加想持续追踪的创作者与来源。",
path: "/subscriptions",
- icon: HB
+ icon: VB
},
{
title: "口味与记录",
description: t?.taste.history_sources ? `已导入 ${t.taste.history_sources} 份浏览器历史。` : "按需要导入浏览历史或书签。",
path: "/taste",
- icon: yB
+ icon: vB
},
{
title: "云下载与浏览器添加",
description: "连接渠道、设置目标目录,按需要配对用户脚本。",
path: "/settings/downloads",
- icon: TB
+ icon: wB
},
{
title: "手机访问",
description: "查看访问范围、地址与密码。",
path: "/settings/network",
- icon: GB
+ icon: WB
},
...u ? [{
title: "人工复核",
description: `当前有 ${u.toLocaleString()} 条待复核资料。`,
path: "/review",
- icon: xB
+ icon: bB
}] : []
].map(({ title: t, description: n, path: r, icon: i }) => /* @__PURE__ */ (0, I.jsxs)("div", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -48559,16 +48572,16 @@ function pye({ go: e }) {
]
});
}
-var OU = "tutorial-sync";
-function mye({ 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)(qve), [d, f] = (0, F.useState)(!1), [p, m] = (0, F.useState)(""), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(!1), y = LV(), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(0), C = (0, F.useRef)(l);
+var DU = "tutorial-sync";
+function gye({ 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)(Yve), [d, f] = (0, F.useState)(!1), [p, m] = (0, F.useState)(""), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(!1), y = IV(), 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 Yve();
+ let n = await Zve();
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;
@@ -48578,7 +48591,7 @@ function mye({ actions: e }) {
let n = ++j.current;
A.current += 1, k.current = k.current.then(async () => {
try {
- let r = await Xve(e.campaign, t);
+ let r = await Qve(e.campaign, t);
M.current && n === j.current && ee(r);
} catch {
M.current && (m("教程进度未保存到本机账本,其他设备尚未同步。请重新读取后继续。"), n === j.current && await N(!1));
@@ -48588,8 +48601,8 @@ function mye({ actions: e }) {
});
}, P = (0, F.useRef)(N);
P.current = N, (0, F.useEffect)(() => {
- !p || t ? HV.dismiss(OU) : HV.error(p, {
- id: OU,
+ !p || t ? VV.dismiss(DU) : VV.error(p, {
+ id: DU,
toasterId: "receipts",
duration: Infinity,
action: {
@@ -48600,7 +48613,7 @@ function mye({ actions: e }) {
}
});
}, [p, t]), (0, F.useEffect)(() => () => {
- HV.dismiss(OU);
+ VV.dismiss(DU);
}, []), (0, F.useEffect)(() => {
if (!d && !p) return;
let e = document.getElementById("tutorialBtn");
@@ -48621,7 +48634,7 @@ function mye({ actions: e }) {
let i = !1, a = null;
return import("./peach-app.guide-driver-BZX0VpRC.js").then(({ createGuideSession: t }) => {
i || (a = t({
- mountPopover: DU,
+ mountPopover: EU,
invitation: !0,
navigate: e.navigate,
previous: () => {},
@@ -48656,16 +48669,16 @@ function mye({ actions: e }) {
M.current = !0;
let e = (e) => {
e.target.closest(".ui-configpage form") && (D.current = !0);
- }, t = Pp.listen(() => {
+ }, t = Np.listen(() => {
D.current = !1;
});
document.addEventListener("input", e), document.addEventListener("change", e);
- let r = Qve((e) => {
+ let r = eye((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 = hU.find((t) => t.id === e.chapter);
+ let r = mU.find((t) => t.id === e.chapter);
e.reopen ? (i(!1), te({
...C.current,
invited: !0,
@@ -48694,11 +48707,11 @@ function mye({ actions: e }) {
g("请先关闭当前详情或对话框,再开始导览。");
return;
}
- if (t.steps.some((e) => e.surface) && f8()?.miniplayerActive()) {
+ if (t.steps.some((e) => e.surface) && d8()?.miniplayerActive()) {
g("请先关闭正在播放的小窗,再开始播放器导览。");
return;
}
- let i = r ? Jve(C.current, t) : 0;
+ let i = r ? Xve(C.current, t) : 0;
if (D.current && t.steps.some((e) => e.route && e.route !== location.pathname)) {
g("当前配置表单有编辑内容。请先处理表单,再开启需要切换页面的章节。");
return;
@@ -48708,7 +48721,7 @@ function mye({ actions: e }) {
try {
let { createGuideSession: r } = await import("./peach-app.guide-driver-BZX0VpRC.js");
if (a !== S.current) return;
- let s = Nf(location.pathname) ? Lp() : null, c = new URL(Nf(location.pathname) ? `${s?.pathname || "/"}${s?.search || ""}` : location.href, location.origin);
+ let s = Mf(location.pathname) ? Ip() : null, c = new URL(Mf(location.pathname) ? `${s?.pathname || "/"}${s?.search || ""}` : location.href, location.origin);
new URLSearchParams(location.search).has("edit") && c.searchParams.set("edit", ""), E.current = `${c.pathname}${c.search}${c.hash}`, w.current = Math.min(i, t.steps.length - 1), ne(), (0, Rt.flushSync)(() => n(!1)), document.body.classList.add("peach-guiding");
let l = () => {
let e = C.current, n = e.chapters[t.id] || {
@@ -48732,7 +48745,7 @@ function mye({ actions: e }) {
}), b.current?.show(t.steps[w.current], w.current, t.steps.length);
};
b.current = r({
- mountPopover: DU,
+ mountPopover: EU,
navigate: e.navigate,
close: () => {
ie(!0), o(t.kind);
@@ -48743,18 +48756,18 @@ function mye({ actions: e }) {
},
next: async (e = !1) => {
let n = w.current + 1;
- if (te(Zve(C.current, t.id, t.steps[w.current].id, n, e), {
+ if (te($ve(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" && gU(C.current, t) && te({
+ if (t.id === "basics" && hU(C.current, t) && te({
...C.current,
completed: !0
}, { action: "complete" }), await k.current, a !== S.current) return;
- ie(!0), o(t.kind), g(gU(C.current, t) ? t.id === "basics" ? C.current.completed ? "快速导览已完成,所有设备的教程入口都会收起。以后可到设置 → Peach 配置 → 应用与维护 → 新手教程重新打开,其余内容按需查看。" : "导览已结束,但完成状态未保存。请重新读取教程状态后再试。" : "这段导览已完成。需要时再了解其他功能。" : "本章已结束,未显示的步骤尚未完成,可以稍后继续。");
+ ie(!0), o(t.kind), g(hU(C.current, t) ? t.id === "basics" ? C.current.completed ? "快速导览已完成,所有设备的教程入口都会收起。以后可到设置 → Peach 配置 → 应用与维护 → 新手教程重新打开,其余内容按需查看。" : "导览已结束,但完成状态未保存。请重新读取教程状态后再试。" : "这段导览已完成。需要时再了解其他功能。" : "本章已结束,未显示的步骤尚未完成,可以稍后继续。");
} else w.current = n, l();
}
}), l();
@@ -48767,8 +48780,8 @@ function mye({ actions: e }) {
O.current = (e, t) => {
se(e, t);
};
- let ce = Kve(location.pathname);
- return (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: /* @__PURE__ */ (0, I.jsxs)(aV, {
+ let ce = Jve(location.pathname);
+ return (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: /* @__PURE__ */ (0, I.jsxs)(iV, {
isOpen: t,
onOpenChange: (e) => {
e || ae();
@@ -48783,18 +48796,18 @@ function mye({ actions: e }) {
id: "guideTitle",
className: "text-title-2-medium text-text-primary",
children: "新手教程"
- }), /* @__PURE__ */ (0, I.jsx)(dV, {
+ }), /* @__PURE__ */ (0, I.jsx)(uV, {
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)(eU, {
+ children: /* @__PURE__ */ (0, I.jsx)($H, {
"aria-label": "教程路径",
name: "guide-path",
orientation: "horizontal",
- className: tU,
+ className: eU,
value: a,
onChange: (e) => {
o(e), c(""), g("");
@@ -48803,9 +48816,9 @@ function mye({ actions: e }) {
["start", "开始使用"],
["interface", "界面导览"],
["settings", "设置导览"]
- ].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Az, {
+ ].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(kz, {
value: e,
- className: nU,
+ className: tU,
children: t
}, e))
})
@@ -48816,7 +48829,7 @@ function mye({ actions: e }) {
ref: y,
className: "peach-guide-body",
children: [
- p ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ p ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
className: "mb-4",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
@@ -48828,12 +48841,12 @@ function mye({ actions: e }) {
}),
children: p
}) : null,
- h ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ h ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
className: "mb-4",
children: h
}) : null,
- a === "start" ? /* @__PURE__ */ (0, I.jsx)(pye, { go: oe }) : /* @__PURE__ */ (0, I.jsx)(lye, {
+ a === "start" ? /* @__PURE__ */ (0, I.jsx)(hye, { go: oe }) : /* @__PURE__ */ (0, I.jsx)(dye, {
kind: a,
query: s,
setQuery: c,
@@ -48851,15 +48864,15 @@ function mye({ actions: e }) {
}) }), document.body);
}
// src/react/client-updates.tsx
-var hye = 12e4, gye = 15e3, kU = () => document.visibilityState !== "hidden", AU = /* @__PURE__ */ new Set([
+var _ye = 12e4, vye = 15e3, OU = () => document.visibilityState !== "hidden", kU = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), jU = "/settings/maintenance#releaseUpdates";
-function _ye() {
+]), AU = "/settings/maintenance#releaseUpdates";
+function yye() {
try {
let e = JSON.parse(document.getElementById("peach-client-runtime")?.textContent || "null");
return typeof e?.version == "string" && typeof e?.build_id == "string" ? {
@@ -48870,23 +48883,23 @@ function _ye() {
return null;
}
}
-function MU() {
- let e = (0, F.useRef)(_ye()), [t, n] = (0, F.useState)(null);
+function jU() {
+ let e = (0, F.useRef)(yye()), [t, n] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
let t = !1, r, i, a = async () => {
- if (t || !kU()) return;
+ if (t || !OU()) return;
let o = new AbortController();
i = o;
- let s = setTimeout(() => o.abort(), gye);
+ let s = setTimeout(() => o.abort(), vye);
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 && kU() && (r = setTimeout(a, hye)));
+ clearTimeout(s), i === o && (i = void 0, !t && OU() && (r = setTimeout(a, _ye)));
}
}, o = () => {
- clearTimeout(r), i?.abort(), i = void 0, kU() && a();
+ clearTimeout(r), i?.abort(), i = void 0, OU() && 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);
@@ -48896,12 +48909,12 @@ function MU() {
refresh: !!t && !!e.current && (t.runtime.version !== e.current.version || t.runtime.build_id !== e.current.build_id)
};
}
-function vye({ navigate: e }) {
- let { snapshot: t, refresh: n } = MU(), [r, i] = (0, F.useState)(""), a = document.querySelector("[data-network-banner]");
+function bye({ navigate: e }) {
+ let { snapshot: t, refresh: n } = jU(), [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" : AU.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" : kU.has(s.state) ? "preparing" : o.state === "available" && o.latest_version ? "available" : null;
if (!l) return null;
- let u = (s.state === "ready" || AU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
+ let u = (s.state === "ready" || kU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
l,
c.version,
c.build_id
@@ -48924,22 +48937,22 @@ function vye({ navigate: e }) {
children: [" Peach ", u]
}) : null] })] }), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex-wrap",
- children: [l === "refresh" ? /* @__PURE__ */ (0, I.jsx)(dH, {
+ children: [l === "refresh" ? /* @__PURE__ */ (0, I.jsx)(uH, {
variant: "secondary",
size: "small",
onClick: () => window.location.reload(),
"data-copy-key": "clientUpdates.refresh.action",
children: "刷新页面"
- }) : /* @__PURE__ */ (0, I.jsx)(dH, {
+ }) : /* @__PURE__ */ (0, I.jsx)(uH, {
variant: "secondary",
size: "small",
- href: jU,
+ href: AU,
onClick: (t) => {
- t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(jU));
+ t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(AU));
},
"data-copy-key": `clientUpdates.${l}.action`,
children: l === "preparing" ? "查看进度" : "查看更新"
- }), /* @__PURE__ */ (0, I.jsx)(dH, {
+ }), /* @__PURE__ */ (0, I.jsx)(uH, {
variant: "secondary",
size: "small",
onClick: () => i(d),
@@ -48950,18 +48963,18 @@ function vye({ navigate: e }) {
}, d), a);
}
// src/react/router/pages/settings.tsx
-function yye() {
- let e = (0, F.useContext)(qW), { pathname: t } = tf();
+function xye() {
+ let e = (0, F.useContext)(KW), { pathname: t } = ef();
return (0, F.useEffect)(() => {
- e?.openSettings?.(Pf(t));
+ e?.openSettings?.(Nf(t));
}, [e, t]), (0, F.useEffect)(() => () => {
queueMicrotask(() => {
- Nf(Pp.navigation.location.pathname) || e?.closeSettings?.();
+ Mf(Np.navigation.location.pathname) || e?.closeSettings?.();
});
}, [e]), null;
}
// src/junk-queue.ts
-var NU = [
+var MU = [
[
"",
"全部",
@@ -48997,40 +49010,40 @@ var NU = [
"其它",
"hard-drive"
]
-], bye = (e) => NU.find(([t]) => t === e)?.[0] ?? "";
-function PU(e) {
+], Sye = (e) => MU.find(([t]) => t === e)?.[0] ?? "";
+function NU(e) {
let t = new URLSearchParams(e);
return {
- kind: bye(t.get("type")),
+ kind: Sye(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
-function FU(e = "", t = "pending") {
+function PU(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 IU(e) {
+function FU(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: FU("", "pending")
+ href: PU("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: FU("", "dismissed")
+ href: PU("", "dismissed")
};
}
-var LU = (e) => e === "dismissed" ? "已排除" : "待判断", RU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function xye({ kind: e, view: t }) {
- let n = NU.map(([n, r, i]) => `<a href="${FU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${RU(i)}${z(r)}</a>`).join(""), r = IU(t);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Ls(LU(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\"" : ""}>${RU(r.glyph)}${r.label}</a></nav></div></div></div>`;
+var IU = (e) => e === "dismissed" ? "已排除" : "待判断", LU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
+function Cye({ kind: e, view: t }) {
+ let n = MU.map(([n, r, i]) => `<a href="${PU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${LU(i)}${z(r)}</a>`).join(""), r = FU(t);
+ return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Is(IU(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\"" : ""}>${LU(r.glyph)}${r.label}</a></nav></div></div></div>`;
}
// src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function Sye(e, t, n) {
+function wye(e, t, n) {
(0, F.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -49044,7 +49057,7 @@ function Sye(e, t, n) {
n
]);
}
-function Cye(e, t) {
+function Tye(e, t) {
let n = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
if (!e) return;
@@ -49057,33 +49070,33 @@ function Cye(e, t) {
}, [e, t]), (e) => e && n.current ? (n.current = !1, !1) : !0;
}
// src/react/boardui/components/base/select/select.tsx
-var zU = (0, F.createContext)("md");
-function BU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var RU = (0, F.createContext)("md");
+function zU({ 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);
- Sye(d, () => f(!1), [l, u]);
- let p = Cye(d, l);
- return /* @__PURE__ */ (0, I.jsx)(Zme, {
+ wye(d, () => f(!1), [l, u]);
+ let p = Tye(d, l);
+ return /* @__PURE__ */ (0, I.jsx)($me, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
className: J("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(IL, {
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(FL, {
ref: l,
className: J("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)(ehe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(nhe, {
className: J("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, I.jsx)(f_e, { className: J("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, I.jsx)(lz, {
+ }), /* @__PURE__ */ (0, I.jsx)(m_e, { className: J("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, I.jsx)(cz, {
ref: u,
isNonModal: !0,
offset: 4,
- className: J(h_e, kV, "p-2", n),
- children: /* @__PURE__ */ (0, I.jsx)(yme, {
+ className: J(__e, OV, "p-2", n),
+ children: /* @__PURE__ */ (0, I.jsx)(xme, {
items: a,
- className: J(g_e, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, I.jsx)(zU.Provider, {
+ className: J(v_e, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, I.jsx)(RU.Provider, {
value: r,
children: i
})
@@ -49091,16 +49104,16 @@ function BU({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function VU({ className: e, children: t, ...n }) {
- let r = (0, F.useContext)(zU);
- return /* @__PURE__ */ (0, I.jsx)(Sme, {
+function BU({ className: e, children: t, ...n }) {
+ let r = (0, F.useContext)(RU);
+ return /* @__PURE__ */ (0, I.jsx)(wme, {
...n,
- className: (t) => J(AV, 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) => J(kV, 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 HU = jI({
+var VU = AI({
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",
@@ -49119,15 +49132,15 @@ var HU = jI({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function UU({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function HU({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
ref: r,
- className: J(HU.base, HU.variant[e], HU.color[t], n),
+ className: J(VU.base, VU.variant[e], VU.color[t], n),
...i
});
}
// src/react/components/art-slot.tsx
-function WU({ artwork: e, identity: t = e.html, relayout: n }) {
+function UU({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, F.useState)({
identity: t,
artwork: e
@@ -49146,7 +49159,7 @@ function WU({ artwork: e, identity: t = e.html, relayout: n }) {
});
}
// src/react/activity/downloads-panel.tsx
-var GU = "/api/downloads", KU = ["downloads"], wye = "/api/downloads/cancel", Tye = "/api/downloads/postprocess", qU = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, Eye = {
+var WU = "/api/downloads", GU = ["downloads"], Eye = "/api/downloads/cancel", Dye = "/api/downloads/postprocess", KU = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, Oye = {
ingested: "lime",
failed: "rose",
cancelled: "neutral",
@@ -49156,21 +49169,21 @@ var GU = "/api/downloads", KU = ["downloads"], wye = "/api/downloads/cancel", Ty
landed: "lime",
submitted: "neutral",
submit_pending: "yellow"
-}, JU = (e) => {
- let t = e.display_code || e.code || "", { title: n } = RI({
+}, qU = (e) => {
+ let t = e.display_code || e.code || "", { title: n } = LI({
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}`;
-}, YU = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", Dye = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
-function Oye() {
+}, JU = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", kye = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
+function Aye() {
let e = (0, F.useId)(), t = Lt({
- queryKey: [...KU, "pages"],
+ queryKey: [...GU, "pages"],
initialPageParam: null,
- queryFn: ({ signal: e, pageParam: t }) => B(`${GU}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
+ queryFn: ({ signal: e, pageParam: t }) => B(`${WU}?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) => qU(e) === 5e3) ? 5e3 : 3e4
+ refetchInterval: (e) => e.state.data?.pages.some((e) => KU(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",
@@ -49182,14 +49195,14 @@ function Oye() {
className: "text-title-2-medium text-text-primary",
children: "云下载"
}),
- t.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ t.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
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)(kye, {
+ children: r.map((e) => /* @__PURE__ */ (0, I.jsx)(jye, {
task: e,
writable: n[0]?.available ?? !1
}, e.id))
@@ -49197,9 +49210,9 @@ function Oye() {
t.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- leadingIcon: hB,
+ leadingIcon: mB,
className: "self-start",
- ...fV(t.isFetchingNextPage),
+ ...dV(t.isFetchingNextPage),
onClick: () => {
t.isFetching || t.fetchNextPage();
},
@@ -49208,16 +49221,16 @@ function Oye() {
]
});
}
-function kye({ task: e, writable: t }) {
- tL();
- let n = ae(), r = fH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = YU(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 jye({ task: e, writable: t }) {
+ eL();
+ let n = ae(), r = dH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = JU(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,
- $I(e.submitted_at)
+ QI(e.submitted_at)
].filter(Boolean).join(" · "), h = () => {
- n.invalidateQueries({ queryKey: KU });
+ n.invalidateQueries({ queryKey: GU });
}, g = () => {
- r.run("cancel", (t) => V(wye, { id: e.id }, "POST", t), h);
+ r.run("cancel", (t) => V(Eye, { id: e.id }, "POST", t), h);
}, _ = () => {
let t = {
magnet: e.source_uri,
@@ -49227,16 +49240,16 @@ function kye({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => V(GU, t, "POST", e), h);
+ r.run("resubmit", (e) => V(WU, t, "POST", e), h);
}, v = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
}, y = () => {
- r.run("postprocess", (t) => V(Tye, { id: e.id }, "POST", t), h);
+ r.run("postprocess", (t) => V(Dye, { id: e.id }, "POST", t), h);
};
return /* @__PURE__ */ (0, I.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: bU({
+ className: yU({
padding: "none",
bordered: p ? "error" : void 0,
className: "flex flex-col"
@@ -49247,24 +49260,24 @@ function kye({ task: e, writable: t }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-download-cover": "",
"data-media-pic": "",
- style: { "--card-ratio": String(cM) },
+ style: { "--card-ratio": String(sM) },
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)(WU, {
+ u?.has_cover ? /* @__PURE__ */ (0, I.jsx)(UU, {
artwork: {
kind: "cover",
- html: Co(u, "big")
+ html: So(u, "big")
},
- relayout: (e) => Dl(e, "big")
+ relayout: (e) => El(e, "big")
}) : null,
f ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-download-cover-link": "",
href: f,
- "aria-label": `打开作品详情:${JU(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
]
@@ -49275,19 +49288,19 @@ function kye({ 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: JU(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: JU(e)
- }) : JU(e)
+ children: qU(e)
+ }) : qU(e)
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(UU, {
- color: Eye[e.state] ?? "neutral",
+ children: [/* @__PURE__ */ (0, I.jsx)(HU, {
+ color: Oye[e.state] ?? "neutral",
children: e.state_label
- }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(UU, {
+ }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(HU, {
color: e.postprocess_state === "complete" ? "lime" : e.postprocess_state === "failed" ? "rose" : e.postprocess_state === "running" ? "blue" : "neutral",
children: e.postprocess_label
}) : null]
@@ -49297,7 +49310,7 @@ function kye({ 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)(BH, {
+ children: /* @__PURE__ */ (0, I.jsx)(zH, {
source: e.provider,
label: e.provider_label
})
@@ -49316,7 +49329,7 @@ function kye({ task: e, writable: t }) {
href: Pn("performer", e.name, e.id),
"aria-label": `打开女优页:${nn("performer", e.name, e.id)}`,
title: nn("performer", e.name, e.id),
- dangerouslySetInnerHTML: { __html: vo(e.name, e, null) }
+ dangerouslySetInnerHTML: { __html: _o(e.name, e, null) }
}, e.id || e.name))
}), /* @__PURE__ */ (0, I.jsxs)("span", {
className: "min-w-0 truncate text-caption-1-regular text-text-secondary",
@@ -49324,7 +49337,7 @@ function kye({ 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)(EH, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, I.jsx)(TH, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -49334,7 +49347,7 @@ function kye({ task: e, writable: t }) {
title: e.ledger_path,
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, I.jsx)(PH, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, I.jsx)(NH, { 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",
@@ -49359,21 +49372,21 @@ function kye({ task: e, writable: t }) {
e.cancellable ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- ...fV(r.busy === "cancel"),
+ ...dV(r.busy === "cancel"),
onClick: g,
children: "取消"
}) : null,
e.resubmittable ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- ...fV(r.busy === "resubmit"),
+ ...dV(r.busy === "resubmit"),
onClick: _,
children: "重新提交"
}) : null,
e.postprocess_retryable ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- ...fV(r.busy === "postprocess"),
+ ...dV(r.busy === "postprocess"),
onClick: y,
children: "重试入库后整理"
}) : null
@@ -49388,41 +49401,41 @@ function kye({ 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: JU(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 || Dye(e)
+ children: l || kye(e)
})
}) : null
]
});
}
// src/react/activity/work-code.ts
-var XU = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), ZU = (e, t) => !!XU(e) && XU(e) === XU(t);
+var YU = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), XU = (e, t) => !!YU(e) && YU(e) === YU(t);
// src/react/components/ime.ts
-function QU(e) {
+function ZU(e) {
return e.isComposing || e.keyCode === 229;
}
// src/react/activity/resource-search.tsx
-function Aye({ className: e }) {
+function Mye({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
"aria-hidden": !0,
- dangerouslySetInnerHTML: { __html: Vs("") }
+ dangerouslySetInnerHTML: { __html: Bs("") }
});
}
-function jye(e) {
+function Nye(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : [
"无码",
"无码流出",
"无码破解"
].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
-function Mye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
- let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => jye(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 = fH(), b = (0, F.useRef)(null);
+function Pye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
+ let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => Nye(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 = dH(), b = (0, F.useRef)(null);
(0, F.useEffect)(() => () => b.current?.abort(), []);
let x = () => {
if (!a.trim() || y.busy) return;
@@ -49438,7 +49451,7 @@ function Mye({ 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) => ZU(e.code, t));
+ let r = (n.items || []).find((e) => XU(e.code, t));
i(r ? {
code: r.code,
title: String(r.catalog_title || r.name || ""),
@@ -49446,7 +49459,7 @@ function Mye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
release_date: String(r.release_date || ""),
duration: r.duration,
studio: r.studio,
- cover: r.has_cover ? uo(r, !0) : "",
+ cover: r.has_cover ? lo(r, !0) : "",
origin: `asset:${r.id}`
} : null);
}, () => {
@@ -49459,28 +49472,28 @@ function Mye({ 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)(NH, { children: [
+ t ? /* @__PURE__ */ (0, I.jsxs)(MH, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, I.jsx)(iV, {
+ /* @__PURE__ */ (0, I.jsx)(rV, {
label: "按番号查找资源",
value: a,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
enterKeyHint: "search",
- leadingIcon: y.busy ? Aye : UB,
+ leadingIcon: y.busy ? Mye : HB,
isReadOnly: !!y.busy,
"aria-busy": !!y.busy,
onChange: o,
onKeyDown: (e) => {
- e.key === "Enter" && !QU(e.nativeEvent) && (e.preventDefault(), x());
+ e.key === "Enter" && !ZU(e.nativeEvent) && (e.preventDefault(), x());
}
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, I.jsx)(FH, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(BU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(PH, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(zU, {
"aria-label": "优先寻找",
selectedKey: s,
isDisabled: !!y.busy,
@@ -49488,15 +49501,15 @@ function Mye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
e !== null && c(String(e));
},
children: [
- /* @__PURE__ */ (0, I.jsx)(VU, {
+ /* @__PURE__ */ (0, I.jsx)(BU, {
id: "quality",
children: "高清"
}),
- /* @__PURE__ */ (0, I.jsx)(VU, {
+ /* @__PURE__ */ (0, I.jsx)(BU, {
id: "chinese",
children: "中字"
}),
- /* @__PURE__ */ (0, I.jsx)(VU, {
+ /* @__PURE__ */ (0, I.jsx)(BU, {
id: "uncensored",
children: "无码"
})
@@ -49505,32 +49518,32 @@ function Mye({ 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)(iV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(rV, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
- }), /* @__PURE__ */ (0, I.jsx)(iV, {
+ }), /* @__PURE__ */ (0, I.jsx)(rV, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: d,
onChange: f
})]
}),
- y.busy ? /* @__PURE__ */ (0, I.jsx)(NH, {
+ y.busy ? /* @__PURE__ */ (0, I.jsx)(MH, {
role: "status",
children: "正在搜索资源"
}) : null,
- y.error ? /* @__PURE__ */ (0, I.jsx)(PH, { children: y.error }) : null,
- p?.error ? /* @__PURE__ */ (0, I.jsx)(NH, {
+ y.error ? /* @__PURE__ */ (0, I.jsx)(NH, { children: y.error }) : null,
+ p?.error ? /* @__PURE__ */ (0, I.jsx)(MH, {
role: "status",
children: p.error
}) : null,
- p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(NH, {
+ p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(MH, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(NH, { children: e }, e)),
+ p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(MH, { 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", {
@@ -49540,7 +49553,7 @@ function Mye({ 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)(NH, { children: [
+ /* @__PURE__ */ (0, I.jsx)(MH, { children: [
e.size > 0 ? `${(e.size / 1024 ** 3).toFixed(2)} GiB` : "体积未取得",
e.seeders >= 0 ? `${e.seeders} 个做种` : "做种未取得",
e.resolution ? `${e.resolution}p` : "",
@@ -49564,20 +49577,20 @@ function Mye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
});
}
// src/react/activity/cloud-download-dialog.tsx
-var Nye = {
+var Fye = {
submitted: "已提交离线下载,进度在任务中心",
adopted: "这个磁力已有任务,没有重复提交",
adopted_remote: "网盘中已有相同的下载任务,Peach 已开始跟踪进度",
deferred: "网盘暂时没有响应,Peach 会自动重新提交,进度在任务中心"
};
-function $U({ prefill: e, close: t, receipt: n, provider: r }) {
- return /* @__PURE__ */ (0, I.jsx)(aV, {
+function QU({ prefill: e, close: t, receipt: n, provider: r }) {
+ return /* @__PURE__ */ (0, I.jsx)(iV, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
},
width: "form",
- children: e ? /* @__PURE__ */ (0, I.jsx)(Pye, {
+ children: e ? /* @__PURE__ */ (0, I.jsx)(Iye, {
prefill: e,
close: t,
receipt: n,
@@ -49585,26 +49598,26 @@ function $U({ prefill: e, close: t, receipt: n, provider: r }) {
}) : null
});
}
-function Pye({ prefill: e, close: t, receipt: n, provider: r }) {
+function Iye({ prefill: e, close: t, receipt: n, provider: r }) {
let i = Ft({
- queryKey: KU,
- queryFn: ({ signal: e }) => B(`${GU}?limit=50`, e),
- refetchInterval: (e) => qU(e.state.data)
+ queryKey: GU,
+ queryFn: ({ signal: e }) => B(`${WU}?limit=50`, e),
+ refetchInterval: (e) => KU(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)(RL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(LL, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "查找资源"
}), /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: SB,
+ leadingIcon: xB,
"aria-label": "关闭资源面板",
onClick: t
})]
});
- return a ? /* @__PURE__ */ (0, I.jsx)(Fye, {
+ return a ? /* @__PURE__ */ (0, I.jsx)(Lye, {
header: o,
snapshot: a,
prefill: e,
@@ -49617,7 +49630,7 @@ function Pye({ 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)(sV, {
+ children: i.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: lr(i.error)
}) : null
@@ -49633,8 +49646,8 @@ function Pye({ prefill: e, close: t, receipt: n, provider: r }) {
]
});
}
-function Fye({ 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 = fH(), C = (0, F.useRef)(null), w = (e) => {
+function Lye({ 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 = dH(), C = (0, F.useRef)(null), w = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
return /* @__PURE__ */ (0, I.jsxs)("form", {
@@ -49650,14 +49663,14 @@ function Fye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
title: _?.title,
origin: _?.origin
};
- b(""), S.run("submit", (e) => V(GU, t, "POST", e), (e) => {
- o.invalidateQueries({ queryKey: KU });
- let t = Nye[e.outcome];
+ b(""), S.run("submit", (e) => V(WU, t, "POST", e), (e) => {
+ o.invalidateQueries({ queryKey: GU });
+ let t = Fye[e.outcome];
if (e.ok && t) {
i(t), r();
return;
}
- let n = YU(e.task);
+ let n = JU(e.task);
b(e.outcome === "refused" ? "这个资源被判为违规,不再提交。" : n ? `提交没有成功:${n}` : "提交没有成功。");
});
},
@@ -49681,7 +49694,7 @@ function Fye({ 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)(NH, { children: [
+ }), _ ? /* @__PURE__ */ (0, I.jsx)(MH, { children: [
_.performers,
_.studio,
_.release_date,
@@ -49689,22 +49702,22 @@ function Fye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
].filter(Boolean).join(" · ") }) : null]
})]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Mye, {
+ /* @__PURE__ */ (0, I.jsx)(Pye, {
initialCode: n.code ?? "",
reason: n.searchReason,
onSearch: (e) => {
- ZU(e, _?.code) || (v(ZU(e, n.code) ? n : null), f("")), m(e);
+ XU(e, _?.code) || (v(XU(e, n.code) ? n : null), f("")), m(e);
},
- onWork: (e) => v((t) => e ? ZU(t?.code, e.code) ? {
+ onWork: (e) => v((t) => e ? XU(t?.code, e.code) ? {
...t,
...e,
origin: t?.origin || e.origin
- } : e : ZU(t?.code, n.code) ? t : null),
+ } : e : XU(t?.code, n.code) ? t : null),
choose: (e, t) => {
f(e), m(t), C.current?.focus();
}
}),
- /* @__PURE__ */ (0, I.jsx)(iV, {
+ /* @__PURE__ */ (0, I.jsx)(rV, {
ref: C,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -49716,38 +49729,38 @@ function Fye({ 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)(FH, { children: "下载到" }),
- /* @__PURE__ */ (0, I.jsx)(BU, {
+ /* @__PURE__ */ (0, I.jsx)(PH, { children: "下载到" }),
+ /* @__PURE__ */ (0, I.jsx)(zU, {
"aria-label": "下载到",
selectedKey: l || null,
isDisabled: !s.length,
onSelectionChange: (e) => {
e !== null && w(String(e));
},
- children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(VU, {
+ children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(BU, {
id: e.key,
textValue: e.label,
- children: /* @__PURE__ */ (0, I.jsx)(BH, {
+ children: /* @__PURE__ */ (0, I.jsx)(zH, {
source: e.key,
label: e.label
})
}, e.key))
}),
- l === "115" ? /* @__PURE__ */ (0, I.jsx)(NH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
+ l === "115" ? /* @__PURE__ */ (0, I.jsx)(MH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
]
}),
- t.available ? null : /* @__PURE__ */ (0, I.jsx)(sV, {
+ t.available ? null : /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
children: "云下载只在允许修改数据库的设备上可用。"
}),
- s.length ? null : /* @__PURE__ */ (0, I.jsxs)(sV, {
+ s.length ? null : /* @__PURE__ */ (0, I.jsxs)(oV, {
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)(iV, {
+ /* @__PURE__ */ (0, I.jsx)(rV, {
label: "目标目录",
placeholder: "/云下载",
autoComplete: "off",
@@ -49755,17 +49768,17 @@ function Fye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: h,
onChange: g
}),
- n.code ? null : /* @__PURE__ */ (0, I.jsx)(iV, {
+ n.code ? null : /* @__PURE__ */ (0, I.jsx)(rV, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
maxLength: 60,
value: p,
onChange: (e) => {
- m(e), ZU(e, _?.code) || v(null);
+ m(e), XU(e, _?.code) || v(null);
}
}),
- y || S.error ? /* @__PURE__ */ (0, I.jsx)(PH, { children: y || S.error }) : null
+ y || S.error ? /* @__PURE__ */ (0, I.jsx)(NH, { children: y || S.error }) : null
]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -49777,7 +49790,7 @@ function Fye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
}), /* @__PURE__ */ (0, I.jsx)(Y, {
type: "submit",
disabled: !d.trim() || !x,
- ...fV(S.busy === "submit"),
+ ...dV(S.busy === "submit"),
children: "提交下载"
})]
})
@@ -49785,18 +49798,18 @@ function Fye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
});
}
// src/react/wants/wants.ts
-var eW = "/api/wants", tW = ["wants"], Iye = (e) => [
+var $U = "/api/wants", eW = ["wants"], Rye = (e) => [
"wants",
"follow",
e
-], Lye = [
+], zye = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], nW = (e) => B(eW, e);
-function Rye(e, t) {
- H.setQueryData(tW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
+], tW = (e) => B($U, e);
+function Bye(e, t) {
+ H.setQueryData(eW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
...n,
items: n.items.map((n) => n.id === e ? {
...n,
@@ -49804,21 +49817,21 @@ function Rye(e, t) {
} : n)
} : n);
}
-var zye = (e, t) => B(`${eW}?follow=${encodeURIComponent(e)}`, t), rW = (e, t) => V(eW, {
+var Vye = (e, t) => B(`${$U}?follow=${encodeURIComponent(e)}`, t), nW = (e, t) => V($U, {
action: "add",
...e
-}, "POST", t), iW = (e, t) => V(eW, {
+}, "POST", t), rW = (e, t) => V($U, {
action: "remove",
ids: e
-}, "POST", t), Bye = (e, t) => V(eW, {
+}, "POST", t), Hye = (e, t) => V($U, {
action: "reset",
ids: e
-}, "POST", t), aW = () => H.invalidateQueries({ queryKey: tW }), Vye = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function Hye(e) {
+}, "POST", t), iW = () => H.invalidateQueries({ queryKey: eW }), Uye = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+function Wye(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 oW = [
+var aW = [
[
"taste",
"口味",
@@ -49826,7 +49839,7 @@ var oW = [
],
[
"release_date",
- Ej[1],
+ Tj[1],
"按发行日期排序"
],
[
@@ -49844,10 +49857,10 @@ var oW = [
"番号",
"按番号排序"
]
-], sW = [
+], oW = [
[
"release_date",
- Ej[1],
+ Tj[1],
"按发行日期排序"
],
[
@@ -49871,10 +49884,10 @@ var oW = [
"按口味匹配排序"
]
];
-function Uye(e) {
+function Gye(e) {
return typeof e == "number" && Number.isFinite(e) ? e.toFixed(3) : "—";
}
-function Wye(e) {
+function Kye(e) {
if (typeof e != "number" || !Number.isFinite(e)) return {
score: "—",
label: "资料未取得",
@@ -49899,21 +49912,21 @@ function Wye(e) {
};
}
// src/react/jav/jav.ts
-function Gye(e) {
+function qye(e) {
let t = new URLSearchParams(location.search);
for (let [n, r] of Object.entries(e)) r ? t.set(n, r) : t.delete(n);
- Fp(location.pathname + (t.size ? `?${t}` : ""), {
+ Pp(location.pathname + (t.size ? `?${t}` : ""), {
replace: !0,
- state: Pp.navigation.location.state
+ state: Np.navigation.location.state
});
}
-var cW = (e, t = "taste", n = "desc") => [
+var sW = (e, t = "taste", n = "desc") => [
"jav-discoveries",
e,
t,
n
];
-function lW(e, t, n = {}) {
+function cW(e, t, n = {}) {
let r = new URLSearchParams({
scope: e,
limit: "100",
@@ -49922,7 +49935,7 @@ function lW(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 uW(e) {
+function lW(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),
@@ -49930,12 +49943,12 @@ function uW(e) {
studio: t.get("studio") || "",
tag: t.get("tag") || "",
q: (t.get("q") || "").trim(),
- sort: n === "random" && r ? "random" : sW.find(([e]) => e === n)?.[0] || "release_date",
+ sort: n === "random" && r ? "random" : oW.find(([e]) => e === n)?.[0] || "release_date",
dir: t.get("dir") === "asc" ? "asc" : "desc",
seed: r
};
}
-var dW = (e) => [
+var uW = (e) => [
"jav-releases",
e.page,
e.performer,
@@ -49946,7 +49959,7 @@ var dW = (e) => [
e.dir,
e.seed
];
-function fW(e, t, n = "") {
+function dW(e, t, n = "") {
let r = new URLSearchParams({
page: String(e.page),
size: "24",
@@ -49962,49 +49975,49 @@ function fW(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 Kye(e, t, n) {
- let r = To({
+function Jye(e, t, n) {
+ let r = wo({
...e,
is_jav: !0
}, t, !1, n);
if (r.html || !e.cover_url || !e.code) return r.html;
- let i = z(po(e));
- return Co(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\"");
+ 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 qye(e, t) {
+async function Yye(e, t) {
if (e === "wants") await H.ensureQueryData({
- queryKey: tW,
- queryFn: () => nW(t),
+ queryKey: eW,
+ queryFn: () => tW(t),
staleTime: 3e4,
revalidateIfStale: !0
});
else if (e === "discover") await H.ensureQueryData({
- queryKey: cW("external"),
- queryFn: () => lW("external", t),
+ queryKey: sW("external"),
+ queryFn: () => cW("external", t),
staleTime: 3e4,
revalidateIfStale: !0
});
else if (e === "releases") {
- let e = uW(location.search);
+ let e = lW(location.search);
await H.ensureQueryData({
- queryKey: dW(e),
- queryFn: () => fW(e, t),
+ queryKey: uW(e),
+ queryFn: () => dW(e, t),
staleTime: 3e4,
revalidateIfStale: !0
});
}
}
// src/react/components/board-tabs.tsx
-function pW({ value: e }) {
+function fW({ 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 Jye = "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 mW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
- let a = (0, F.useRef)(null), o = sL(a);
+var Xye = "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 pW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
+ let a = (0, F.useRef)(null), o = oL(a);
return (0, F.useLayoutEffect)(() => {
let e = a.current;
e && (() => {
@@ -50013,7 +50026,7 @@ function mW({ 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)(NI, {
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(MI, {
ref: o,
role: "tablist",
"aria-label": n,
@@ -50028,7 +50041,7 @@ function mW({ 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 ? uV(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? lV(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
@@ -50037,7 +50050,7 @@ function mW({ 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: Jye,
+ className: Xye,
onClick: () => {
i || r(e.value);
},
@@ -50047,7 +50060,7 @@ function mW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
});
}
// src/react/jav/jav-header.tsx
-function hW({ tab: e, navigate: t, find: n, search: r }) {
+function mW({ 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", {
@@ -50066,32 +50079,32 @@ function hW({ tab: e, navigate: t, find: n, search: r }) {
children: "查找资源"
})
]
- }), /* @__PURE__ */ (0, I.jsx)(mW, {
- tabs: aU.map(([e, t]) => ({
+ }), /* @__PURE__ */ (0, I.jsx)(pW, {
+ tabs: iU.map(([e, t]) => ({
value: e,
label: t
})),
value: e,
label: "JAV 分区",
className: "",
- onChange: (e) => t(sU(e))
+ onChange: (e) => t(oU(e))
})]
});
}
-function Yye({ navigate: e, receipt: t }) {
+function Zye({ navigate: e, receipt: t }) {
let [n, r] = (0, F.useState)(null);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(hW, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(mW, {
tab: "library",
navigate: e,
find: () => r({})
- }), /* @__PURE__ */ (0, I.jsx)($U, {
+ }), /* @__PURE__ */ (0, I.jsx)(QU, {
prefill: n,
close: () => r(null),
receipt: t
})] });
}
// src/react/video-wall/folia/blockReflows.ts
-var Xye = [
+var Qye = [
[
[
{
@@ -53652,7 +53665,7 @@ var Xye = [
}
]
]
-], gW = [
+], hW = [
[
{
x: 0,
@@ -53949,89 +53962,89 @@ var Xye = [
rows: 2
}
]
-], _W = (e) => e.map((e) => ({
+], gW = (e) => e.map((e) => ({
...e,
x: 12 - e.x - e.cols
-})), vW = (e) => e.map((e) => ({
+})), _W = (e) => e.map((e) => ({
...e,
y: 8 - e.y - e.rows
-})), yW = [
+})), vW = [
(e) => e,
+ gW,
_W,
- vW,
- (e) => _W(vW(e))
-], bW = gW.flatMap((e) => yW.map((t) => t(e))), Zye = Xye.flatMap((e) => yW.map((t) => e.map(t)));
-bW.length;
-var Qye = (e, t) => {
+ (e) => gW(_W(e))
+], yW = hW.flatMap((e) => vW.map((t) => t(e))), $ye = Qye.flatMap((e) => vW.map((t) => e.map(t)));
+yW.length;
+var ebe = (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;
-}, xW = (e, t) => {
- let n = gW.length;
- return ((e + t * 2) % n + n) % n * yW.length + Qye(e, t) % yW.length;
-}, $ye = (e, t) => bW[xW(e, t)], ebe = (e, t, n) => n < 0 || n >= 12 ? null : Zye[xW(e, t)][n], SW = 103.36, CW = 6.08, wW = 12 * SW, TW = 8 * SW, EW = 12, DW = (e, t) => (e % t + t) % t, tbe = (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 OW(e, t) {
- let n = Math.max(1, Math.ceil(e / EW)), r = t ? 3 : Math.min(3, n);
+}, bW = (e, t) => {
+ let n = hW.length;
+ return ((e + t * 2) % n + n) % n * vW.length + ebe(e, t) % vW.length;
+}, tbe = (e, t) => yW[bW(e, t)], nbe = (e, t, n) => n < 0 || n >= 12 ? null : $ye[bW(e, t)][n], xW = 103.36, SW = 6.08, CW = 12 * xW, wW = 8 * xW, TW = 12, EW = (e, t) => (e % t + t) % t, rbe = (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 DW(e, t) {
+ let n = Math.max(1, Math.ceil(e / TW)), r = t ? 3 : Math.min(3, n);
return {
columns: r,
- width: r * wW,
- height: Math.ceil(n / r) * TW
+ width: r * CW,
+ height: Math.ceil(n / r) * wW
};
}
-function kW(e, t, n) {
- let { x: r, y: i, cols: a, rows: o } = $ye(e, t)[n];
+function OW(e, t, n) {
+ let { x: r, y: i, cols: a, rows: o } = tbe(e, t)[n];
return {
- x: e * wW + r * SW,
- y: t * TW + i * SW,
- width: a * SW - CW,
- height: o * SW - CW
+ x: e * CW + r * xW,
+ y: t * wW + i * xW,
+ width: a * xW - SW,
+ height: o * xW - SW
};
}
-function nbe(e) {
+function ibe(e) {
return (!e.medium || e.medium === "video") && !!e.has_cover && !!(e.cover_key || e.code);
}
-function AW(e, t, n) {
+function kW(e, t, n) {
if (!e) return null;
let [r, i, a] = n.split(":").map(Number);
if (![
r,
i,
a
- ].every(Number.isInteger) || a < 0 || a >= EW) return null;
- let o = OW(e, t), s = o.height / TW;
+ ].every(Number.isInteger) || a < 0 || a >= TW) return null;
+ let o = DW(e, t), s = o.height / wW;
if (t && (r < 0 || r >= o.columns || i < 0 || i >= s)) return null;
- let c = t ? r : DW(r, o.columns), l = ((t ? i : DW(i, s)) * o.columns + c) * EW + a;
+ let c = t ? r : EW(r, o.columns), l = ((t ? i : EW(i, s)) * o.columns + c) * TW + a;
return t && l >= e ? null : {
- ...kW(r, i, a),
+ ...OW(r, i, a),
index: l % e,
key: n
};
}
-function rbe(e, t) {
+function abe(e, t) {
if (t < 0 || t >= e) return null;
- let n = Math.floor(t / EW);
- return AW(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % EW}`);
+ let n = Math.floor(t / TW);
+ return kW(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % TW}`);
}
-function jW(e, t, n) {
- let [r, i, a] = n.key.split(":").map(Number), o = ebe(r, i, a);
+function AW(e, t, n) {
+ let [r, i, a] = n.key.split(":").map(Number), o = nbe(r, i, a);
return new Map((o || []).map((e, t) => [`${r}:${i}:${t}`, {
- x: r * wW + e.x * SW,
- y: i * TW + e.y * SW,
- width: e.cols * SW - CW,
- height: e.rows * SW - CW
+ x: r * CW + e.x * xW,
+ y: i * wW + e.y * xW,
+ width: e.cols * xW - SW,
+ height: e.rows * xW - SW
}]));
}
-function ibe(e) {
+function obe(e) {
let t = 0, n = 0;
for (let r = Math.max(0, e - 36); r < e; r += 1) {
- let e = Math.floor(r / EW), i = kW(e % 3, Math.floor(e / 3), r % EW);
+ let e = Math.floor(r / TW), i = OW(e % 3, Math.floor(e / 3), r % TW);
t = Math.max(t, i.x + i.width), n = Math.max(n, i.y + i.height);
}
return {
- width: e >= 36 ? 3 * wW - CW : t,
+ width: e >= 36 ? 3 * CW - SW : t,
height: n
};
}
-function abe(e, t, n, r) {
+function sbe(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 {
@@ -54040,22 +54053,22 @@ function abe(e, t, n, r) {
y: i(e.y, n.height, t.height)
};
}
-function MW(e, t, n, r) {
+function jW(e, t, n, r) {
if (!e || !r.width || !r.height) return [];
let i = 180 / n.scale, a = {
x: -n.x / n.scale - i,
y: -n.y / n.scale - i,
width: r.width / n.scale + i * 2,
height: r.height / n.scale + i * 2
- }, o = OW(e, t), s = o.height / TW, c = [];
- for (let n = Math.floor(a.y / TW); n <= Math.floor((a.y + a.height) / TW); n += 1) for (let r = Math.floor(a.x / wW); r <= Math.floor((a.x + a.width) / wW); r += 1) {
+ }, o = DW(e, t), s = o.height / wW, c = [];
+ for (let n = Math.floor(a.y / wW); n <= Math.floor((a.y + a.height) / wW); n += 1) for (let r = Math.floor(a.x / CW); r <= Math.floor((a.x + a.width) / CW); r += 1) {
if (t && (r < 0 || r >= o.columns || n < 0 || n >= s)) continue;
- let i = t ? r : DW(r, o.columns), l = t ? n : DW(n, s);
- for (let s = 0; s < EW; s += 1) {
- let u = (l * o.columns + i) * EW + s;
+ let i = t ? r : EW(r, o.columns), l = t ? n : EW(n, s);
+ for (let s = 0; s < TW; s += 1) {
+ let u = (l * o.columns + i) * TW + s;
if (t && u >= e) continue;
- let d = kW(r, n, s);
- tbe(d, a) && c.push({
+ let d = OW(r, n, s);
+ rbe(d, a) && c.push({
...d,
index: u % e,
key: `${r}:${n}:${s}`
@@ -54064,7 +54077,7 @@ function MW(e, t, n, r) {
}
return c;
}
-var obe = class {
+var cbe = class {
positions = /* @__PURE__ */ new Map();
used = /* @__PURE__ */ new Set();
cursor = 0;
@@ -54076,7 +54089,7 @@ var obe = class {
this.cursor = e;
}
tile(e, t) {
- let n = this.positions.get(e), r = n === void 0 ? null : AW(t, !1, e);
+ let n = this.positions.get(e), r = n === void 0 ? null : kW(t, !1, e);
return r ? {
...r,
index: n
@@ -54106,7 +54119,7 @@ var obe = class {
let e = 0;
for (let t of this.positions.keys()) e = Math.max(e, Number(t.split(":")[0]));
return {
- x: (e + 2) * wW,
+ x: (e + 2) * CW,
y: 0
};
}
@@ -54119,10 +54132,10 @@ var obe = class {
c < i && (r = s, i = c);
}
if (r) return r;
- let a = this.fresh(), o = `${Math.round(a.x / wW)}:0:0`;
+ let a = this.fresh(), o = `${Math.round(a.x / CW)}:0:0`;
return this.positions.set(o, t), this.used.add(t), this.tile(o, e);
}
-}, NW = [
+}, MW = [
"q",
"performer",
"series",
@@ -54137,52 +54150,52 @@ var obe = class {
"dur_max",
"region"
];
-function sbe(e = {}) {
- return NW.some((t) => !!e[t]);
+function lbe(e = {}) {
+ return MW.some((t) => !!e[t]);
}
// src/react/video-wall/wall-boot.ts
-function cbe() {
+function ube() {
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);
let n = t.querySelector("[data-wall-viewport]").getBoundingClientRect();
- t.querySelector("[data-wall-world]").innerHTML = MW(12, !1, {
+ t.querySelector("[data-wall-world]").innerHTML = jW(12, !1, {
x: 0,
y: 0,
scale: e
}, n).map((e) => `<span data-wall-skeleton="" aria-hidden="true" style="--wall-left:${e.x}px;--wall-top:${e.y}px;--wall-width:${e.width}px;--wall-height:${e.height}px"></span>`).join("");
}
-function PW() {
+function NW() {
document.querySelectorAll("[data-wall-boot]").forEach((e) => e.remove());
}
// src/react/router/pages/catalog.tsx
-var lbe = () => mu, FW = Pp.navigation.seq, IW = Pp.navigation.openEpoch, LW = Pp.navigation.location.pathname, RW = {
- seq: FW,
+var dbe = () => pu, PW = Np.navigation.seq, FW = Np.navigation.openEpoch, IW = Np.navigation.location.pathname, LW = {
+ seq: PW,
claimed: !0,
- from: LW
+ from: IW
};
-Pp.listen((e) => {
- RW = {
+Np.listen((e) => {
+ LW = {
seq: e.seq,
- claimed: e.openEpoch === IW,
- from: LW
- }, IW = e.openEpoch, LW = e.location.pathname;
+ claimed: e.openEpoch === FW,
+ from: IW
+ }, FW = e.openEpoch, IW = e.location.pathname;
});
-var zW = !1;
-function BW(e) {
- let { seq: t, openEpoch: n, location: r } = Pp.navigation, i = Vf(r.pathname), a = Lp() ?? r, o = U ?? {};
+var RW = !1;
+function zW(e) {
+ let { seq: t, openEpoch: n, location: r } = Np.navigation, i = Bf(r.pathname), a = Ip() ?? r, o = U ?? {};
return {
seq: t,
epoch: n,
- opens: mu,
+ opens: pu,
covered: i,
address: `${a.pathname}${a.search}`,
filters: JSON.stringify(o, Object.keys(o).sort()),
opened: e
};
}
-function ube(e, t, n, r) {
- let i = { ...U }, a = gm("catalog");
+function fbe(e, t, n, r) {
+ let i = { ...U }, a = hm("catalog");
if (a) return { ...a };
if (e === "/trash") return {
...i,
@@ -54193,7 +54206,7 @@ function ube(e, t, n, r) {
state: "trash",
q: ""
};
- let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = $j().value;
+ let o = new URLSearchParams(t), { defaultSort: s, defaultSortDirection: c } = Qj().value;
return {
...i,
loc: o.get("loc") ?? r.defaultLoc(),
@@ -54207,7 +54220,7 @@ function ube(e, t, n, r) {
dur_max: o.get("dur_max") || "",
orient: o.get("orient") || "",
state: kn[e] || o.get("state") || "",
- ...Pj(o.get("sort"), o.get("dir"), s, c),
+ ...Nj(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") || "",
@@ -54218,58 +54231,58 @@ function ube(e, t, n, r) {
folder_recursive: o.get("folder_recursive") === "0" ? "0" : ""
};
}
-function VW(e) {
- let t = Pp.navigation.seq;
- hm("catalog", { ...U });
- let n = e(), r = () => Pp.navigation.seq === t, i = () => document.querySelector("#grid");
- ym(r, i(), { pending: !0 }), Promise.resolve(n).then(() => ym(r, i()));
+function BW(e) {
+ let t = Np.navigation.seq;
+ mm("catalog", { ...U });
+ let n = e(), r = () => Np.navigation.seq === t, i = () => document.querySelector("#grid");
+ vm(r, i(), { pending: !0 }), Promise.resolve(n).then(() => vm(r, i()));
}
-function dbe(e, t) {
- let n = { ...e }, r = BW(n.opened);
+function pbe(e, t) {
+ let n = { ...e }, r = zW(n.opened);
Object.assign(e, r);
let i = t.catalog;
if (!i || r.opens === 0) return;
if (r.covered) {
- Lp() || i.fill();
+ Ip() || i.fill();
return;
}
let a = !1;
if (r.opens === n.opens) {
if (r.epoch === n.epoch && n.opened) {
if (r.seq === n.seq || n.covered && r.address === n.address && r.filters === n.filters) return;
- VW(() => i.load());
+ BW(() => i.load());
return;
}
- r.epoch !== n.epoch && (a = Pp.navigation.action === "POP" && RW.from !== "/");
+ r.epoch !== n.epoch && (a = Np.navigation.action === "POP" && LW.from !== "/");
}
- let { pathname: o, search: s } = Pp.navigation.location;
+ let { pathname: o, search: s } = Np.navigation.location;
if (o === "/" && new URLSearchParams(s).get("state") === "ads") {
- let { kind: e, view: t } = PU(s);
- zW = !0, Fp(FU(e, t), { replace: !0 });
+ let { kind: e, view: t } = NU(s);
+ RW = !0, Pp(PU(e, t), { replace: !0 });
return;
}
- let c = zW;
- zW = !1, a &&= o === "/" && !_m(), e.opened = !0, W({ state: ube(o, s, a, i) }), VW(() => i.open(o, {
+ let c = RW;
+ RW = !1, a &&= o === "/" && !gm(), e.opened = !0, W({ state: fbe(o, s, a, i) }), BW(() => i.open(o, {
entering: a,
retitle: c
}));
}
-function fbe() {
- let e = (0, F.useContext)(qW), t = KW(), n = (0, F.useSyncExternalStore)(wu, lbe), r = tf(), i = (0, F.useRef)(null), a = (0, F.useRef)({
+function mbe() {
+ let e = (0, F.useContext)(KW), t = GW(), n = (0, F.useSyncExternalStore)(Cu, dbe), r = ef(), i = (0, F.useRef)(null), a = (0, F.useRef)({
mounted: !0,
queued: !1
});
return (0, F.useEffect)(() => {
let e = a.current;
e.mounted = !0;
- let t = BW(!Vf(Pp.navigation.location.pathname));
- return !t.covered && t.opens > 0 && (zW || RW.seq === FW ? t.opens = -1 : RW.claimed ? t.seq = -1 : t.epoch = -1), i.current = t, () => {
+ let t = zW(!Bf(Np.navigation.location.pathname));
+ return !t.covered && t.opens > 0 && (RW || LW.seq === PW ? t.opens = -1 : LW.claimed ? t.seq = -1 : t.epoch = -1), i.current = t, () => {
e.mounted = !1;
};
}, []), (0, F.useEffect)(() => {
let t = a.current;
!t.queued && e && (t.queued = !0, queueMicrotask(() => {
- t.queued = !1, t.mounted && i.current && dbe(i.current, e);
+ t.queued = !1, t.mounted && i.current && pbe(i.current, e);
}));
}, [
t,
@@ -54278,8 +54291,8 @@ function fbe() {
e
]), null;
}
-function HW() {
- let { pathname: e } = tf();
+function VW() {
+ let { pathname: e } = ef();
return (0, F.useLayoutEffect)(() => {
if (e !== "/wall") return;
document.body.setAttribute("data-wall-open", ""), document.documentElement.removeAttribute("data-wall-entry");
@@ -54287,23 +54300,23 @@ function HW() {
return t.forEach((e) => {
e.inert = !0;
}), () => {
- document.body.removeAttribute("data-wall-open"), PW(), t.forEach((e, t) => {
+ document.body.removeAttribute("data-wall-open"), NW(), t.forEach((e, t) => {
e.inert = n[t] || !1;
});
};
- }, [e]), Vf(e) && !Bf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(fbe, {}, e === "/junk-files" ? "/junk-files" : "/"), jn(e) ? /* @__PURE__ */ (0, I.jsx)(QW, {}) : null] });
+ }, [e]), Bf(e) && !zf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(mbe, {}, e === "/junk-files" ? "/junk-files" : "/"), jn(e) ? /* @__PURE__ */ (0, I.jsx)(ZW, {}) : null] });
}
-function pbe() {
- let e = (0, F.useContext)(qW), t = document.getElementById("javLibraryHeader");
- return t && e ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Yye, {
+function hbe() {
+ let e = (0, F.useContext)(KW), t = document.getElementById("javLibraryHeader");
+ return t && e ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Zye, {
navigate: e.navigate,
receipt: (t) => e.receipt(t)
}), t) : null;
}
// src/react/router/pages/overlay.tsx
-var UW = () => mu, mbe = () => hu;
-function hbe() {
- let e = (0, F.useContext)(qW), t = (0, F.useSyncExternalStore)(wu, mbe), n = (0, F.useSyncExternalStore)(wu, UW);
+var HW = () => pu, gbe = () => mu;
+function _be() {
+ let e = (0, F.useContext)(KW), t = (0, F.useSyncExternalStore)(Cu, gbe), n = (0, F.useSyncExternalStore)(Cu, HW);
return (0, F.useEffect)(() => {
if (!t || !n) return;
let r = !0;
@@ -54318,11 +54331,11 @@ function hbe() {
e
]), null;
}
-function WW(e, t = !1) {
- let n = (0, F.useSyncExternalStore)(wu, UW), r = (0, F.useRef)(void 0);
+function UW(e, t = !1) {
+ let n = (0, F.useSyncExternalStore)(Cu, HW), r = (0, F.useRef)(void 0);
if (r.current === void 0) {
- let { claimed: e } = Pp.navigation;
- r.current = mu === 0 || Ip() ? "boot" : e && !t ? null : "history";
+ let { claimed: e } = Np.navigation;
+ r.current = pu === 0 || Fp() ? "boot" : e && !t ? null : "history";
}
let i = (0, F.useRef)(e);
(0, F.useEffect)(() => {
@@ -54338,22 +54351,22 @@ function WW(e, t = !1) {
}));
}, [n]);
}
-function gbe() {
- let e = (0, F.useContext)(qW), t = (0, F.useRef)(e);
+function vbe() {
+ let e = (0, F.useContext)(KW), t = (0, F.useRef)(e);
return (0, F.useLayoutEffect)(() => {
t.current = e;
- }, [e]), WW((t) => {
- let n = Pp.navigation.location, { pathname: r, search: i } = Nf(n.pathname) && If(n.state) || n, a = Bf(r, i);
- e && a && (Kf(), t || qf(Pp.navigation.location.state), e.openOverlay(a));
+ }, [e]), UW((t) => {
+ let n = Np.navigation.location, { pathname: r, search: i } = Mf(n.pathname) && Ff(n.state) || n, a = zf(r, i);
+ e && a && (Gf(), t || Kf(Np.navigation.location.state), e.openOverlay(a));
}, !0), (0, F.useEffect)(() => () => {
queueMicrotask(() => {
- Vf(Pp.navigation.location.pathname) || t.current?.closeStage();
+ Bf(Np.navigation.location.pathname) || t.current?.closeStage();
});
}, []), null;
}
-function _be({ path: e }) {
- KW();
- let { location: t, seq: n, action: r } = Pp.navigation, i = Nf(t.pathname) ? If(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, F.useRef)({
+function ybe({ path: e }) {
+ GW();
+ let { location: t, seq: n, action: r } = Np.navigation, i = Mf(t.pathname) ? Ff(t.state) : null, a = (i || t).pathname + (i || t).search, o = (0, F.useRef)({
identity: a,
seq: i?.seq ?? n,
navigationSeq: n,
@@ -54364,168 +54377,168 @@ function _be({ path: e }) {
seq: n,
navigationSeq: n,
settings: !1
- }), /* @__PURE__ */ (0, I.jsx)(gbe, {}, `${e} ${o.current.seq}`);
+ }), /* @__PURE__ */ (0, I.jsx)(vbe, {}, `${e} ${o.current.seq}`);
}
-function vbe() {
- let e = (0, F.useContext)(qW);
- return WW(() => {
+function bbe() {
+ let e = (0, F.useContext)(KW);
+ return UW(() => {
e?.follow?.ground();
}), null;
}
-function ybe() {
- return /* @__PURE__ */ (0, I.jsx)(vbe, {}, KW());
+function xbe() {
+ return /* @__PURE__ */ (0, I.jsx)(bbe, {}, GW());
}
// src/react/router/router.tsx
-var GW = (0, F.createContext)(0), KW = () => (0, F.useContext)(GW), qW = (0, F.createContext)(null);
-function bbe({ children: e }) {
- let [t, n] = (0, F.useState)(() => Pp.navigation);
- return (0, F.useLayoutEffect)(() => (n(Pp.navigation), Pp.listen((e) => {
+var WW = (0, F.createContext)(0), GW = () => (0, F.useContext)(WW), KW = (0, F.createContext)(null);
+function Sbe({ children: e }) {
+ let [t, n] = (0, F.useState)(() => Np.navigation);
+ return (0, F.useLayoutEffect)(() => (n(Np.navigation), Np.listen((e) => {
(0, Rt.flushSync)(() => n(e));
- })), []), /* @__PURE__ */ (0, I.jsx)(GW.Provider, {
+ })), []), /* @__PURE__ */ (0, I.jsx)(WW.Provider, {
value: t.openEpoch,
- children: /* @__PURE__ */ (0, I.jsx)(Ef, {
+ children: /* @__PURE__ */ (0, I.jsx)(Tf, {
location: t.location,
navigationType: t.action,
- navigator: Pp,
+ navigator: Np,
children: e
})
});
}
-function xbe({ target: e }) {
- let t = rf();
+function Cbe({ target: e }) {
+ let t = nf();
return (0, F.useLayoutEffect)(() => {
e.current = t;
}), null;
}
-function Sbe(e, t, n) {
+function wbe(e, t, n) {
let r = new URL(e, window.location.href);
- H6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
+ V6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
}
-function Cbe() {
- let e = (0, F.useContext)(qW), [t, n] = (0, F.useState)(_p), r = (0, F.useRef)(null);
- (0, F.useLayoutEffect)(() => (n(_p()), vp((e, t) => {
+function Tbe() {
+ let e = (0, F.useContext)(KW), [t, n] = (0, F.useState)(gp), r = (0, F.useRef)(null);
+ (0, F.useLayoutEffect)(() => (n(gp()), _p((e, t) => {
t ? (0, Rt.flushSync)(() => n(e)) : n(e);
})), []);
let i = (0, F.useMemo)(() => (t) => {
- e && r.current && Sbe(t, e, r.current);
+ e && r.current && wbe(t, e, r.current);
}, [e]);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(xbe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(wbe, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Cbe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(Ebe, {
entry: t,
- children: /* @__PURE__ */ (0, I.jsx)(Tbe, {
+ children: /* @__PURE__ */ (0, I.jsx)(Dbe, {
entry: t,
actions: e,
go: i
})
}, t.revision)) : null] });
}
-var wbe = class extends F.Component {
+var Ebe = class extends F.Component {
state = { failed: !1 };
static getDerivedStateFromError() {
return { failed: !0 };
}
componentDidCatch() {
- Tp(this.props.entry.container, this.props.entry.revision);
+ wp(this.props.entry.container, this.props.entry.revision);
}
render() {
return this.state.failed ? null : this.props.children;
}
-}, Tbe = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
- return n8(e.path) ? (0, Rt.createPortal)(uLe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+}, Dbe = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
+ return t8(e.path) ? (0, Rt.createPortal)(fLe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
-function Ebe({ children: e }) {
- let t = tf();
- KW();
- let n = Lp(), r = Nf(t.pathname) && !Ip() ? If(t.state) : null;
+function Obe({ children: e }) {
+ let t = ef();
+ GW();
+ let n = Ip(), r = Mf(t.pathname) && !Fp() ? Ff(t.state) : null;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsxs)(Df, {
+ /* @__PURE__ */ (0, I.jsxs)(Ef, {
location: n ?? t,
children: [
- Object.entries(V6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
+ Object.entries(B6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
- Object.entries(oLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
+ Object.entries(cLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
- Object.entries(U6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
+ Object.entries(H6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
- Object.entries(K6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
+ Object.entries(G6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
- Object.entries(J6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
+ Object.entries(q6).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
- t8.map((e) => /* @__PURE__ */ (0, I.jsx)(Tf, {
+ e8.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
- element: Y6["/"].element
+ element: J6["/"].element
}, e)),
- Object.entries(sLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Tf, {
+ Object.entries(lLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
- Lf.map((e) => /* @__PURE__ */ (0, I.jsx)(Tf, {
+ If.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
- element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(ybe, {}) : Y6["/"].element
+ element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(xbe, {}) : J6["/"].element
}, e)),
- Mf.map((e) => /* @__PURE__ */ (0, I.jsx)(Tf, {
+ jf.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: null
}, e)),
- /* @__PURE__ */ (0, I.jsx)(Tf, {
+ /* @__PURE__ */ (0, I.jsx)(wf, {
path: "*",
element: e
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)(Df, {
+ /* @__PURE__ */ (0, I.jsxs)(Ef, {
location: r ?? t,
- children: [Lf.map((e) => /* @__PURE__ */ (0, I.jsx)(Tf, {
+ children: [If.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)(_be, { path: e })
- }, e)), /* @__PURE__ */ (0, I.jsx)(Tf, {
+ element: /* @__PURE__ */ (0, I.jsx)(ybe, { path: e })
+ }, e)), /* @__PURE__ */ (0, I.jsx)(wf, {
path: "*",
element: null
})]
}),
- /* @__PURE__ */ (0, I.jsxs)(Df, { children: [Mf.map((e) => /* @__PURE__ */ (0, I.jsx)(Tf, {
+ /* @__PURE__ */ (0, I.jsxs)(Ef, { children: [jf.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)(yye, {})
- }, e)), /* @__PURE__ */ (0, I.jsx)(Tf, {
+ element: /* @__PURE__ */ (0, I.jsx)(xye, {})
+ }, e)), /* @__PURE__ */ (0, I.jsx)(wf, {
path: "*",
element: null
})] })
] });
}
-function Dbe({ children: e, actions: t = null, background: n, processing: r = !1 }) {
- return /* @__PURE__ */ (0, I.jsxs)(zV, { children: [n, /* @__PURE__ */ (0, I.jsx)(qW.Provider, {
+function kbe({ children: e, actions: t = null, background: n, processing: r = !1 }) {
+ return /* @__PURE__ */ (0, I.jsxs)(RV, { children: [n, /* @__PURE__ */ (0, I.jsx)(KW.Provider, {
value: t,
- children: /* @__PURE__ */ (0, I.jsxs)(bbe, { children: [
- /* @__PURE__ */ (0, I.jsx)(Cbe, {}),
- /* @__PURE__ */ (0, I.jsx)(pbe, {}),
+ children: /* @__PURE__ */ (0, I.jsxs)(Sbe, { children: [
+ /* @__PURE__ */ (0, I.jsx)(Tbe, {}),
/* @__PURE__ */ (0, I.jsx)(hbe, {}),
- r && t ? /* @__PURE__ */ (0, I.jsx)(Fve, { toast: t.toast }) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(zve, {}) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(vye, { navigate: t.navigate }) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(mye, { actions: t }) : null,
- /* @__PURE__ */ (0, I.jsx)(Ebe, { children: e })
+ /* @__PURE__ */ (0, I.jsx)(_be, {}),
+ r && t ? /* @__PURE__ */ (0, I.jsx)(Lve, { toast: t.toast }) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(Vve, {}) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(bye, { navigate: t.navigate }) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(gye, { actions: t }) : null,
+ /* @__PURE__ */ (0, I.jsx)(Obe, { children: e })
] })
})] });
}
-var Obe = { onCaughtError: (e) => {
+var Abe = { onCaughtError: (e) => {
globalThis.reportError?.(e);
-} }, JW = {
+} }, qW = {
category: "个人分类",
creator: "创作者/账号",
performer: "人物",
seller: "卖家",
studio: "厂牌"
};
-function YW(e, t = "", n = "") {
+function JW(e, t = "", n = "") {
let r = new URLSearchParams({
...e,
folder: t,
@@ -54537,14 +54550,14 @@ function YW(e, t = "", n = "") {
queryFn: ({ signal: e }) => B(`/api/folders?${r}`, e)
};
}
-function XW(e, t) {
+function YW(e, t) {
let n = new URLSearchParams(e.search);
for (let [e, r] of Object.entries(t)) r ? n.set(e, r) : n.delete(e);
return e.pathname + (n.size ? `?${n}` : "");
}
// src/react/catalog-folders/folder-rule-dialog.tsx
-function kbe({ folder: e, rule: t, revision: n, close: r }) {
- let i = (0, F.useContext)(qW), a = fH(), [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 jbe({ folder: e, rule: t, revision: n, close: r }) {
+ let i = (0, F.useContext)(KW), a = dH(), [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,
@@ -54553,7 +54566,7 @@ function kbe({ folder: e, rule: t, revision: n, close: r }) {
}, y = () => {
h(null), a.setError("");
}, b = (e) => {
- H.invalidateQueries({ queryKey: ["catalog-folders"] }), i?.receipt(e), r(), W({ pageOpens: mu + 1 });
+ H.invalidateQueries({ queryKey: ["catalog-folders"] }), i?.receipt(e), r(), W({ pageOpens: pu + 1 });
}, x = () => a.run("preview", (e) => V("/api/folders/preview", v, "POST", e), h), S = () => {
m && a.run("save", (e) => V("/api/folders/rule", {
...v,
@@ -54562,7 +54575,7 @@ function kbe({ folder: e, rule: t, revision: n, close: r }) {
expected_revision: n
}, "POST", e), (e) => b(`已保存目录用途${e.applied ? `,关联 ${e.applied} 项` : ""}`));
}, C = async () => {
- (0, Rt.flushSync)(() => _(!0)), (await ul({
+ (0, Rt.flushSync)(() => _(!0)), (await ll({
title: "移除目录规则",
body: `「${e.name}」的目录规则将被移除,并撤回这条规则建立的关联。`,
confirmLabel: "移除目录规则",
@@ -54572,8 +54585,8 @@ function kbe({ folder: e, rule: t, revision: n, close: r }) {
expected_revision: n
})
})).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: Vs(t) } }), t] }) : null;
- return g ? null : /* @__PURE__ */ (0, I.jsx)(aV, {
+ }, 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)(iV, {
isOpen: !0,
onOpenChange: (e) => {
!e && !w && r();
@@ -54587,7 +54600,7 @@ function kbe({ 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)(RL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(LL, {
slot: "title",
className: "text-title-2-medium",
children: "设置目录用途"
@@ -54595,7 +54608,7 @@ function kbe({ 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)(dV, {
+ }), /* @__PURE__ */ (0, I.jsx)(uV, {
label: "关闭目录用途",
onPress: () => {
w || r();
@@ -54607,20 +54620,20 @@ function kbe({ 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)(QB, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(BU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(ZB, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(zU, {
"aria-label": "这个文件夹用于",
selectedKey: o,
isDisabled: w,
onSelectionChange: (e) => {
s(e), y();
},
- children: Object.entries(JW).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(VU, {
+ children: Object.entries(qW).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(BU, {
id: e,
children: t
}, e))
})]
}),
- o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(iV, {
+ o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(rV, {
label: "关联名称",
value: c,
onChange: (e) => {
@@ -54631,7 +54644,7 @@ function kbe({ folder: e, rule: t, revision: n, close: r }) {
isDisabled: w,
isRequired: !0
}),
- /* @__PURE__ */ (0, I.jsx)(IV, {
+ /* @__PURE__ */ (0, I.jsx)(FV, {
isSelected: u,
isDisabled: w,
onChange: (e) => {
@@ -54639,7 +54652,7 @@ function kbe({ folder: e, rule: t, revision: n, close: r }) {
},
children: "应用到子文件夹"
}),
- /* @__PURE__ */ (0, I.jsx)(IV, {
+ /* @__PURE__ */ (0, I.jsx)(FV, {
isSelected: f,
isDisabled: w,
onChange: (e) => {
@@ -54676,9 +54689,9 @@ function kbe({ folder: e, rule: t, revision: n, close: r }) {
children: e.name
}, e.id))
}) : null,
- m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "warning",
- extra: /* @__PURE__ */ (0, I.jsx)(IH, {
+ extra: /* @__PURE__ */ (0, I.jsx)(FH, {
summary: "查看归属冲突",
children: /* @__PURE__ */ (0, I.jsx)("ul", {
className: "mt-2 flex flex-col gap-2",
@@ -54696,7 +54709,7 @@ function kbe({ folder: e, rule: t, revision: n, close: r }) {
}) : null
]
}) : null,
- a.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ a.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: a.error
}) : null
@@ -54711,7 +54724,7 @@ function kbe({ folder: e, rule: t, revision: n, close: r }) {
onClick: () => {
w || C();
},
- ...fV(a.busy === "remove"),
+ ...dV(a.busy === "remove"),
children: "移除规则"
}) : null,
/* @__PURE__ */ (0, I.jsx)(Y, {
@@ -54723,13 +54736,13 @@ function kbe({ folder: e, rule: t, revision: n, close: r }) {
}),
m ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "primary",
- ...fV(a.busy === "save"),
+ ...dV(a.busy === "save"),
onClick: S,
children: T("save", "正在保存") || "保存目录用途"
}) : /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "primary",
disabled: o !== "category" && !c.trim(),
- ...fV(a.busy === "preview"),
+ ...dV(a.busy === "preview"),
onClick: () => {
x();
},
@@ -54742,7 +54755,7 @@ function kbe({ folder: e, rule: t, revision: n, close: r }) {
});
}
// src/react/catalog-folders/use-folder-sticky-offset.ts
-function Abe(e, t) {
+function Mbe(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 = () => {
@@ -54765,35 +54778,35 @@ function Abe(e, t) {
}, [e, t]);
}
// src/react/catalog-folders/catalog-folders-page.tsx
-function ZW() {
- return ef() ? /* @__PURE__ */ (0, I.jsx)(jbe, {}) : null;
+function XW() {
+ return $d() ? /* @__PURE__ */ (0, I.jsx)(Nbe, {}) : null;
}
-function jbe() {
- let e = tf(), t = (0, F.useContext)(qW);
+function Nbe() {
+ let e = ef(), t = (0, F.useContext)(KW);
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)(iL, {
+ return /* @__PURE__ */ (0, I.jsx)(rL, {
size: "small",
"data-folder-mode-toggle": "",
"aria-label": "文件夹模式",
title: "文件夹模式",
"aria-pressed": r,
- icon: kB,
- onClick: () => t?.navigate(XW(e, r ? {
+ icon: OB,
+ onClick: () => t?.navigate(YW(e, r ? {
browse: null,
folder: null,
folder_recursive: null
} : { browse: "folders" }))
});
}
-function Mbe({ children: e, enabled: t }) {
- return ef() ? /* @__PURE__ */ (0, I.jsx)(Nbe, {
+function Pbe({ children: e, enabled: t }) {
+ return $d() ? /* @__PURE__ */ (0, I.jsx)(Fbe, {
enabled: t,
children: e
}) : /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e });
}
-function Nbe({ children: e, enabled: t }) {
- let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(null), o = tf(), s = new URLSearchParams(o.search), c = t && (s.get("browse") === "folders" || !!s.get("folder"));
+function Fbe({ 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",
"data-folder-workspace": "",
@@ -54812,7 +54825,7 @@ function Nbe({ children: e, enabled: t }) {
hidden: !c
}), e]
}),
- n && i ? /* @__PURE__ */ (0, I.jsx)(QW, {
+ n && i ? /* @__PURE__ */ (0, I.jsx)(ZW, {
treeTarget: n,
headerTarget: i,
enabled: t
@@ -54820,14 +54833,14 @@ function Nbe({ children: e, enabled: t }) {
]
});
}
-function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
- let r = tf(), i = (0, F.useContext)(qW), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
+function ZW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
+ let r = ef(), i = (0, F.useContext)(KW), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
loc: a.get("loc") ?? "",
library: a.get("library") ?? ""
};
- Abe(o, e);
+ Mbe(o, e);
let c = a.get("folder") || "", l = Ft({
- ...YW(s, c),
+ ...JW(s, c),
enabled: o
}), [u, d] = (0, F.useState)(!1), [f, p] = (0, F.useState)(!1), m = e ?? document.getElementById("catalogFoldersTree"), h = t ?? document.getElementById("catalogFolderHeader");
if ((0, F.useLayoutEffect)(() => (m && (m.hidden = !o), h && (h.hidden = !o), e || document.body.toggleAttribute("data-folder-browse", o), () => {
@@ -54841,11 +54854,11 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
d(!1), p(!1);
}, [c, o]), !o || !m || !h || !i) return null;
let g = (e) => {
- d(!1), i.navigate(XW(r, {
+ d(!1), i.navigate(YW(r, {
browse: "folders",
folder: e
}));
- }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(Fbe, {
+ }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(Lbe, {
scope: s,
selected: c,
current: _,
@@ -54862,21 +54875,21 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "folder-drawer-trigger",
- children: /* @__PURE__ */ (0, I.jsx)(iL, {
+ children: /* @__PURE__ */ (0, I.jsx)(rL, {
"aria-label": "打开文件夹目录",
- icon: Kge,
+ icon: Jge,
size: "small",
onClick: () => d(!0)
})
}),
- /* @__PURE__ */ (0, I.jsxs)(m_e, {
+ /* @__PURE__ */ (0, I.jsxs)(g_e, {
"aria-label": "文件夹路径",
- children: [/* @__PURE__ */ (0, I.jsx)(DV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(EV, {
current: !c,
onClick: () => g(""),
- icon: kB,
+ icon: OB,
children: "全部文件夹"
- }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(DV, {
+ }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(EV, {
current: t === _.ancestors.length - 1,
onClick: () => g(e.id),
children: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -54886,15 +54899,15 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
})
}, e.id))]
}),
- _?.selected ? /* @__PURE__ */ (0, I.jsx)(iL, {
+ _?.selected ? /* @__PURE__ */ (0, I.jsx)(rL, {
"aria-label": "设置目录用途",
- icon: Nge,
+ icon: Fge,
size: "small",
onClick: () => p(!0)
}) : null
]
}),
- l.error && !u ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ l.error && !u ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -54906,7 +54919,7 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}),
children: lr(l.error)
}) : null,
- _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(sV, {
+ _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(oV, {
tone: "warning",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -54918,14 +54931,14 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}) : null,
_?.selected ? /* @__PURE__ */ (0, I.jsxs)("div", {
className: "folder-scope-row",
- children: [/* @__PURE__ */ (0, I.jsx)(IV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(FV, {
size: "sm",
isSelected: a.get("folder_recursive") !== "0",
- onChange: (e) => i.navigate(XW(r, { folder_recursive: e ? null : "0" })),
+ onChange: (e) => i.navigate(YW(r, { folder_recursive: e ? null : "0" })),
children: "包含子文件夹"
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular text-text-tertiary",
- children: _.rule ? `${JW[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
+ children: _.rule ? `${qW[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
})]
}) : null,
l.isPending ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -54935,13 +54948,13 @@ function QW({ 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)(Pbe, {
+ _?.children.length ? /* @__PURE__ */ (0, I.jsx)(Ibe, {
nodes: _.children,
go: g
}, c) : null
]
}), h),
- /* @__PURE__ */ (0, I.jsxs)(aV, {
+ /* @__PURE__ */ (0, I.jsxs)(iV, {
isOpen: u,
onOpenChange: d,
width: "form",
@@ -54951,7 +54964,7 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
className: "text-title-2-medium",
children: "文件夹"
- }), /* @__PURE__ */ (0, I.jsx)(dV, {
+ }), /* @__PURE__ */ (0, I.jsx)(uV, {
label: "关闭文件夹目录",
onPress: () => d(!1)
})]
@@ -54960,7 +54973,7 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: u ? v : null
})]
}),
- f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(kbe, {
+ f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(jbe, {
folder: _.selected,
rule: _.rule,
revision: _.rules_revision,
@@ -54968,7 +54981,7 @@ function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}, _.selected.id) : null
] });
}
-function Pbe({ nodes: e, go: t }) {
+function Ibe({ 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",
@@ -54979,7 +54992,7 @@ function Pbe({ nodes: e, go: t }) {
children: a.map((e) => /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- leadingIcon: kB,
+ leadingIcon: OB,
onClick: () => t(e.id),
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "truncate",
@@ -54996,28 +55009,28 @@ function Pbe({ nodes: e, go: t }) {
}) : null]
});
}
-function Fbe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
- let a = Ft(YW(e)), [o, s] = (0, F.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, F.useState)(""), u = (0, F.useDeferredValue)(c), d = Ft({
- ...YW(e, "", u),
+function Lbe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
+ let a = Ft(JW(e)), [o, s] = (0, F.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, F.useState)(""), u = (0, F.useDeferredValue)(c), d = Ft({
+ ...JW(e, "", u),
enabled: !!u.trim()
- }), f = LV();
+ }), f = IV();
(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]);
- let p = [...o].map(String), m = Nt({ queries: p.map((t) => YW(e, t)) }), h = /* @__PURE__ */ new Map();
+ let p = [...o].map(String), m = Nt({ queries: p.map((t) => JW(e, t)) }), h = /* @__PURE__ */ new Map();
m.forEach((e, t) => {
e.data && h.set(p[t], e.data.children);
}), n?.selected && h.set(n.selected.id, n.children);
let g = (e) => {
let t = h.get(e.id);
- return /* @__PURE__ */ (0, I.jsx)(MV, {
+ return /* @__PURE__ */ (0, I.jsx)(jV, {
id: e.id,
label: e.name,
- icon: kB,
- expandedIcon: jB,
+ icon: OB,
+ expandedIcon: AB,
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)(MV, {
+ children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, I.jsx)(jV, {
id: `${e.id}:loading`,
label: "正在读取文件夹",
isDisabled: !0
@@ -55033,15 +55046,15 @@ function Fbe({ 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)(iV, {
+ /* @__PURE__ */ (0, I.jsx)(rV, {
"aria-label": "查找文件夹",
placeholder: "查找文件夹",
- leadingIcon: UB,
+ leadingIcon: HB,
value: c,
onChange: l,
size: "small"
}),
- v ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ v ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -55076,20 +55089,20 @@ function Fbe({ 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)(sV, {
+ }) : d.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: lr(d.error)
}) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- leadingIcon: kB,
+ leadingIcon: OB,
onClick: () => {
l(""), r(e.id);
},
children: e.name
- }, e.id)) : /* @__PURE__ */ (0, I.jsx)(cV, {
+ }, e.id)) : /* @__PURE__ */ (0, I.jsx)(sV, {
size: "compact",
- icon: UB,
+ icon: HB,
title: "没有匹配的文件夹",
actions: /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
@@ -55098,7 +55111,7 @@ function Fbe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
}),
children: "换个目录名称试试。"
})
- }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(__e, {
+ }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(y_e, {
"aria-label": "媒体目录",
size: "sm",
expandedKeys: o,
@@ -55106,11 +55119,11 @@ function Fbe({ 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)(cV, {
+ }) : /* @__PURE__ */ (0, I.jsx)(sV, {
size: "compact",
- icon: kB,
+ icon: OB,
title: "尚未添加媒体目录",
- actions: /* @__PURE__ */ (0, I.jsx)(gL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(hL, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -55123,63 +55136,63 @@ function Fbe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
});
}
// src/react/catalog-grid/catalog-view.ts
-var $W = "peach.catalog-view.v1", eG = /* @__PURE__ */ new Set(), tG = "cards";
-function nG() {
+var QW = "peach.catalog-view.v1", $W = /* @__PURE__ */ new Set(), eG = "cards";
+function tG() {
try {
- return localStorage.getItem($W) === "list" ? "list" : "cards";
+ return localStorage.getItem(QW) === "list" ? "list" : "cards";
} catch {
- return tG;
+ return eG;
}
}
-function Ibe(e) {
- tG = e === "list" ? "list" : "cards";
+function Rbe(e) {
+ eG = e === "list" ? "list" : "cards";
try {
- localStorage.setItem($W, tG);
+ localStorage.setItem(QW, eG);
} catch {}
- eG.forEach((e) => e());
+ $W.forEach((e) => e());
}
-function Lbe(e) {
- eG.add(e);
+function zbe(e) {
+ $W.add(e);
let t = (t) => {
- (t.key === $W || t.key === null) && e();
+ (t.key === QW || t.key === null) && e();
};
return addEventListener("storage", t), () => {
- eG.delete(e), removeEventListener("storage", t);
+ $W.delete(e), removeEventListener("storage", t);
};
}
-var rG = () => (0, F.useSyncExternalStore)(Lbe, nG, () => "cards");
+var nG = () => (0, F.useSyncExternalStore)(zbe, tG, () => "cards");
// src/react/catalog-grid/catalog-view-toggle.tsx
-function iG() {
- let e = rG();
- return /* @__PURE__ */ (0, I.jsxs)(kz, {
+function rG() {
+ let e = nG();
+ return /* @__PURE__ */ (0, I.jsxs)(Oz, {
"aria-label": "馆藏显示方式",
orientation: "horizontal",
value: e,
- onChange: Ibe,
+ onChange: Rbe,
"data-entity-layout": "",
- className: rU,
- children: [/* @__PURE__ */ (0, I.jsx)(Az, {
+ className: nU,
+ children: [/* @__PURE__ */ (0, I.jsx)(kz, {
value: "cards",
"aria-label": "卡片",
- className: iU,
+ className: rU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: "卡片",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(FB, {
+ children: /* @__PURE__ */ (0, I.jsx)(PB, {
"aria-hidden": "true",
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(Az, {
+ }), /* @__PURE__ */ (0, I.jsx)(kz, {
value: "list",
"aria-label": "列表",
- className: iU,
+ className: rU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: "列表",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(Hge, {
+ children: /* @__PURE__ */ (0, I.jsx)(Wge, {
"aria-hidden": "true",
className: "size-4"
})
@@ -55188,8 +55201,8 @@ function iG() {
});
}
// src/react/components/icon-swap.tsx
-function aG({ a: e, b: t, state: n, className: r }) {
- let { isFocusVisible: i } = DC();
+function iG({ a: e, b: t, state: n, className: r }) {
+ let { isFocusVisible: i } = EC();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": !0,
className: `iconswap ${r || ""}`,
@@ -55205,114 +55218,114 @@ function aG({ a: e, b: t, state: n, className: r }) {
})]
});
}
-function oG({ className: e }) {
- return /* @__PURE__ */ (0, I.jsx)(aG, {
- a: fge,
- b: dge,
+function aG({ className: e }) {
+ return /* @__PURE__ */ (0, I.jsx)(iG, {
+ a: mge,
+ b: pge,
className: e
});
}
// src/react/follow-feed/follow-marks.ts
-var sG = (e) => typeof e == "string" ? e : "", cG = (e) => e.aliases;
-function lG(e, t = "") {
- let n = Yi(e);
+var oG = (e) => typeof e == "string" ? e : "", sG = (e) => e.aliases;
+function cG(e, t = "") {
+ let n = Ji(e);
return n ? `<img data-follow-site-icon="" src="${n}" alt="${z(t)}"${t ? ` title="${z(t)}"` : ""} loading="lazy" data-drop="self">` : "";
}
-function uG(e, t = "") {
- let n = z(si(t || e)), r = Yi(e);
+function lG(e, t = "") {
+ let n = z(oi(t || e)), r = Ji(e);
return r ? `<img data-follow-site-icon="" src="${r}" alt="" loading="lazy" data-drop="initial" data-initial="${n}" data-drop-class="follow-site-initial">` : `<span class="follow-site-initial" aria-hidden="true">${n}</span>`;
}
-var dG = (e) => sG(e.title).trim() || "未命名内容", fG = (e, t) => oi(e, cG(t));
-function pG(e) {
+var uG = (e) => oG(e.title).trim() || "未命名内容", dG = (e, t) => ai(e, sG(t));
+function fG(e) {
let t = e.filter((e) => e.entity_id && e.entity_name);
if (new Set(t.map((e) => e.entity_id)).size !== 1) return "";
- let n = t[0], r = sG(n.entity_name);
+ let n = t[0], r = oG(n.entity_name);
return ln("creator", r, n.entity_id), r;
}
-function mG(e, t) {
- let { src: n, fallback: r } = ci(e), i = si(t);
+function pG(e, t) {
+ let { src: n, fallback: r } = si(e), i = oi(t);
if (!n) return `<span class="favatar none" title="没有可用头像">${z(i)}</span>`;
let a = r ? ` data-fallbacks="${z(r)}"` : "";
return `<img class="favatar" src="${z(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${z(i)}" data-drop-class="favatar none">`;
}
-function hG(e, t, n) {
- let r = cG(n), i = e.credit, a = i?.poster;
+function mG(e, t, n) {
+ let r = sG(n), i = e.credit, a = i?.poster;
if (!a) {
- let n = oi(t, r);
+ let n = ai(t, r);
return {
- author: n || sG(e.author) || sG(e.source_label) || "创作者未取得",
- avatar: mG(t, n),
+ author: n || oG(e.author) || oG(e.source_label) || "创作者未取得",
+ avatar: pG(t, n),
credited: "",
- entityName: pG(t)
+ entityName: fG(t)
};
}
- let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && oi(c, r) || a;
+ let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && ai(c, r) || a;
return {
author: l,
- avatar: mG(c, l),
+ avatar: pG(c, l),
credited: i.credited || "",
- entityName: pG(c)
+ entityName: fG(c)
};
}
-function gG(e, t = e.primary) {
+function hG(e, t = e.primary) {
let n = [], r = (e, t) => `<small class="javedition" data-follow-edition="${e}">${t}</small>`;
e.primary.variant_kind === "wip" ? n.push(r("wip", "WIP")) : e.has_wip && n.push(r("has-wip", "含 WIP"));
- let i = sG(e.primary.version);
+ let i = oG(e.primary.version);
i && n.push(r("version", z(i)));
- let a = sG(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
+ let a = oG(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
return o && n.push(r(a, o)), n.join("");
}
-function _G(e, t = e.primary) {
+function gG(e, t = e.primary) {
let n = new Map([
e.primary,
...e.variants,
...e.duplicates
].filter((e) => e.provider !== t.provider).map((e) => [e.provider, e.provider_label || e.provider]));
if (!n.size) return "";
- let r = [...n].map(([e, t]) => lG(e, t) || `<span>${z(t)}</span>`).join("");
+ let r = [...n].map(([e, t]) => cG(e, t) || `<span>${z(t)}</span>`).join("");
return `<span data-follow-seealso="" title="另见 ${z([...n.values()].join("、"))}"><span data-follow-seealso-label="">另见</span> ${r}</span>`;
}
-function vG(e, t) {
- let n = sG(e.media_error);
+function _G(e, t) {
+ let n = oG(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var Rbe = 864e5, zbe = (e, t) => {
+var Bbe = 864e5, Vbe = (e, t) => {
let n = new Date(/[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`).getTime();
- return Number.isFinite(n) && n - t > Rbe;
+ return Number.isFinite(n) && n - t > Bbe;
};
-function yG(e, t) {
- let n = sG(e.published_at);
+function vG(e, t) {
+ let n = oG(e.published_at);
if (!n) return null;
let r = e.published_precision === "approximate", i = Cr(n);
return {
prefix: r ? "约 " : "",
full: r ? i.slice(0, 10) : i,
- suffix: zbe(n, t) ? " · 晚于现在" : ""
+ suffix: Vbe(n, t) ? " · 晚于现在" : ""
};
}
-function bG(e, t = Date.now()) {
- let n = yG(e, t);
+function yG(e, t = Date.now()) {
+ let n = vG(e, t);
return n ? `${n.prefix}${n.full}${n.suffix}` : "时间未取得";
}
-function xG(e, t = Date.now()) {
- let n = yG(e, t);
+function bG(e, t = Date.now()) {
+ let n = vG(e, t);
if (!n) return "时间未取得";
if (!/^\d{4}-/.test(n.full)) return `${n.prefix}${n.full}${n.suffix}`;
let r = n.full.startsWith(String(new Date(t).getFullYear())) ? n.full.slice(5, 10) : n.full.slice(0, 10);
return `${n.prefix}${r}${n.suffix}`;
}
-var SG = /* @__PURE__ */ new Set(), CG = [], wG = null;
-function TG() {
- if (wG = null, !CG.length) return;
- let e = CG.splice(0, 200);
+var xG = /* @__PURE__ */ new Set(), SG = [], CG = null;
+function wG() {
+ if (CG = null, !SG.length) return;
+ let e = SG.splice(0, 200);
Tn("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), CG.length && (wG = setTimeout(TG, 800));
+ }).catch(() => {}), SG.length && (CG = setTimeout(wG, 800));
}
-function Bbe(e, t, n, r) {
+function Hbe(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- SG.has(i) || (SG.add(i), CG.push(t === null ? {
+ xG.has(i) || (xG.add(i), SG.push(t === null ? {
item: e,
width: n,
height: r
@@ -55321,25 +55334,25 @@ function Bbe(e, t, n, r) {
width: n,
height: r,
media: t
- }), wG ||= setTimeout(TG, 800));
+ }), CG ||= setTimeout(wG, 800));
}
// src/react/entity-filter/entity-filter.ts
-var Vbe = (e) => e === "videos", EG = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var Ube = (e) => e === "videos", TG = () => /* @__PURE__ */ (0, I.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), Hbe = uV("shuffle"), Ube = uV("arrow-up"), Wbe = uV("arrow-down");
-function Gbe(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Vbe(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
+}), Wbe = lV("shuffle"), Gbe = lV("arrow-up"), Kbe = lV("arrow-down");
+function qbe(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Ube(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 = mL(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = mL(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 = mL(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 = pL(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = pL(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 = pL(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)(DG, {
+ }, [c]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(EG, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, I.jsx)(lL, {
+ }), /* @__PURE__ */ (0, I.jsx)(cL, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -55368,19 +55381,19 @@ function Gbe(e) {
})
] }),
top: !n && !d ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Ybe, {
+ n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Zbe, {
keys: n,
view: t,
row: _,
glide: S,
onView: s.setView
- }), d ? /* @__PURE__ */ (0, I.jsx)(EG, {}) : null] }) : null,
- T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(qbe, {
+ }), d ? /* @__PURE__ */ (0, I.jsx)(TG, {}) : null] }) : null,
+ T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Ybe, {
head: T,
row: w,
glide: E,
onMedia: s.onlineMedia
- }), /* @__PURE__ */ (0, I.jsx)(EG, {})] }) : null,
+ }), /* @__PURE__ */ (0, I.jsx)(TG, {})] }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
ref: v,
"data-entity-scroll": "",
@@ -55401,11 +55414,11 @@ function Gbe(e) {
f !== e.k && (u ? s.onlineStatus(e.k) : s.setState(e.k));
},
children: e.label
- }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, I.jsx)(EG, {}) : null]
+ }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, I.jsx)(TG, {}) : null]
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: y,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(uL, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(lL, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -55414,17 +55427,17 @@ function Gbe(e) {
"data-count-badge": e.k,
children: e.n.toLocaleString()
})]
- }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(Jbe, {
+ }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(Xbe, {
head: u,
actions: s
}) : null
})]
})
] }),
- bottom: /* @__PURE__ */ (0, I.jsx)(Xbe, { ...e })
+ bottom: /* @__PURE__ */ (0, I.jsx)(Qbe, { ...e })
})] });
}
-var Kbe = [[
+var Jbe = [[
"videos",
"视频",
"play",
@@ -55435,7 +55448,7 @@ var Kbe = [[
"pics",
"image"
]];
-function qbe({ head: e, row: t, glide: n, onMedia: r }) {
+function Ybe({ head: e, row: t, glide: n, onMedia: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
role: "group",
@@ -55443,7 +55456,7 @@ function qbe({ head: e, row: t, glide: n, onMedia: r }) {
"data-entity-media": "",
"data-online-media": "",
onPointerLeave: n.leave,
- children: Kbe.map(([t, i, a, o]) => {
+ children: Jbe.map(([t, i, a, o]) => {
let s = `${i} ${Math.max(0, e.mediaCounts?.[t] || 0).toLocaleString()}`;
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -55461,7 +55474,7 @@ function qbe({ head: e, row: t, glide: n, onMedia: r }) {
})
});
}
-function Jbe({ head: e, actions: t }) {
+function Xbe({ head: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
e.providers.map(([n, r]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -55471,10 +55484,10 @@ function Jbe({ head: e, actions: t }) {
title: r,
"aria-label": `来源:${r}`,
onClick: () => t.onlineProvider(n),
- dangerouslySetInnerHTML: { __html: lG(n) }
+ dangerouslySetInnerHTML: { __html: cG(n) }
}, n)),
- e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)(EG, {}) : null,
- e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(uL, {
+ e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)(TG, {}) : null,
+ e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(lL, {
"data-follow-tag": e.k,
"data-entity-press": "",
"data-tag-cat": `r34-${e.cat}`,
@@ -55487,7 +55500,7 @@ function Jbe({ head: e, actions: t }) {
}, e.k))
] });
}
-function Ybe({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function Zbe({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -55535,7 +55548,7 @@ function Ybe({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function DG({ items: e, hidden: t, actions: n }) {
+function EG({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -55555,7 +55568,7 @@ function DG({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function Xbe(e) {
+function Qbe(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", {
@@ -55567,30 +55580,30 @@ function Xbe(e) {
dangerouslySetInnerHTML: { __html: R("chevron-left") }
}), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Zbe, {
+ /* @__PURE__ */ (0, I.jsx)($be, {
text: n,
busy: r
}),
- /* @__PURE__ */ (0, I.jsx)(TV, { currentHref: () => location.pathname + location.search }),
- t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(Qbe, {
+ /* @__PURE__ */ (0, I.jsx)(wV, { currentHref: () => location.pathname + location.search }),
+ t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(exe, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(exe, {
+ t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(nxe, {
head: a,
actions: o,
helpers: s
}) : null,
- t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)($be, {
+ t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(txe, {
head: e.online,
actions: o
}) : null
] });
}
-function Zbe({ text: e, busy: t }) {
+function $be({ text: e, busy: t }) {
return /* @__PURE__ */ (0, I.jsx)("h3", {
"data-entity-readout": "",
- children: /* @__PURE__ */ (0, I.jsx)(nL, {
+ children: /* @__PURE__ */ (0, I.jsx)(tL, {
text: t ? void 0 : e,
busy: t,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -55601,22 +55614,22 @@ function Zbe({ text: e, busy: t }) {
})
});
}
-function OG({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, I.jsx)(kz, {
+function DG({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, I.jsx)(Oz, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: rU,
+ className: nU,
children: r.map(([e, t, n]) => {
- let r = uV(n);
- return /* @__PURE__ */ (0, I.jsx)(Az, {
+ let r = lV(n);
+ return /* @__PURE__ */ (0, I.jsx)(kz, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: iU,
+ className: rU,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -55626,38 +55639,38 @@ function OG({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function kG({ onPress: e, busy: t = !1 }) {
- return /* @__PURE__ */ (0, I.jsx)(cL, {
+function OG({ onPress: e, busy: t = !1 }) {
+ return /* @__PURE__ */ (0, I.jsx)(sL, {
"data-entity-batch": "",
label: "换一批",
busy: t,
busyStyle: "strand",
- icon: Hbe,
+ icon: Wbe,
onPress: e
});
}
-function Qbe({ head: e, actions: t }) {
- let n = rG();
+function exe({ head: e, actions: t }) {
+ let n = nG();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(kG, { onPress: () => void t.reshuffle() }),
- e.jav && n === "cards" ? /* @__PURE__ */ (0, I.jsx)(OG, {
+ /* @__PURE__ */ (0, I.jsx)(OG, { onPress: () => void t.reshuffle() }),
+ e.jav && n === "cards" ? /* @__PURE__ */ (0, I.jsx)(DG, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, I.jsx)(iG, {}),
- /* @__PURE__ */ (0, I.jsx)(ZW, {}),
- /* @__PURE__ */ (0, I.jsx)(AG, {
+ /* @__PURE__ */ (0, I.jsx)(rG, {}),
+ /* @__PURE__ */ (0, I.jsx)(XW, {}),
+ /* @__PURE__ */ (0, I.jsx)(kG, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function AG({ sorts: e, onSort: t }) {
+function kG({ sorts: e, onSort: t }) {
return /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@ -55665,20 +55678,20 @@ function AG({ sorts: e, onSort: t }) {
"aria-pressed": e.pressed,
"aria-label": e.ariaLabel || void 0,
onClick: () => t(e.key),
- children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, I.jsx)(aG, {
- a: Ube,
- b: Wbe,
+ children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, I.jsx)(iG, {
+ a: Gbe,
+ b: Kbe,
state: e.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
}, e.key)) });
}
-function $be({ head: e, actions: t }) {
+function txe({ head: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(kG, { onPress: t.onlineShuffle }),
- e.media === "images" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(OG, {
+ /* @__PURE__ */ (0, I.jsx)(OG, { onPress: t.onlineShuffle }),
+ e.media === "images" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(DG, {
label: "图片布局",
value: e.photoLayout,
options: e.photoLayouts,
@@ -55698,27 +55711,27 @@ function $be({ head: e, actions: t }) {
dangerouslySetInnerHTML: { __html: R("captions-off") }
})]
})] }) : null,
- /* @__PURE__ */ (0, I.jsx)(AG, {
+ /* @__PURE__ */ (0, I.jsx)(kG, {
sorts: e.sorts,
onSort: t.onlineSort
})
]
});
}
-function exe({ head: e, actions: t, helpers: n }) {
+function nxe({ 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);
}, [n, o]), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- e.shuffle ? /* @__PURE__ */ (0, I.jsx)(kG, {
+ e.shuffle ? /* @__PURE__ */ (0, I.jsx)(OG, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, I.jsx)(OG, {
+ /* @__PURE__ */ (0, I.jsx)(DG, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -55733,8 +55746,8 @@ function exe({ head: e, actions: t, helpers: n }) {
});
}
// src/react/catalog-filter/catalog-filter.ts
-var txe = "peach.catalog.tiers.v1";
-function jG() {
+var rxe = "peach.catalog.tiers.v1";
+function AG() {
try {
let e = JSON.parse(localStorage.getItem("peach.catalog.tiers.v1") || "{}");
return {
@@ -55748,40 +55761,40 @@ function jG() {
};
}
}
-function nxe(e) {
+function ixe(e) {
try {
let t = JSON.stringify({
performers: e.performers,
studios: e.studios
});
- localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(txe, t);
+ localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(rxe, t);
} catch {}
}
// src/react/catalog-filter/catalog-filter-page.tsx
-function rxe(e) {
- let t = !e.tiers, n = uxe(e.comboHost);
+function axe(e) {
+ let t = !e.tiers, n = fxe(e.comboHost);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-catalog-root": "",
"data-loading": t || void 0,
"data-refreshing": e.refreshing || void 0,
className: "contents",
children: [
- n ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(DG, {
+ n ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(EG, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, I.jsx)(oxe, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(ixe, { ...e })
+ /* @__PURE__ */ (0, I.jsx)(cxe, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(oxe, { ...e })
]
});
}
-function ixe(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 = mL(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+function oxe(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 = pL(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]);
- let d = !e.tiers, f = NG(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let d = !e.tiers, f = MG(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, F.useLayoutEffect)(() => {
if (d) {
l(!1);
@@ -55804,8 +55817,8 @@ function ixe(e) {
e.layout,
e.sorts
]), (0, F.useLayoutEffect)(() => {
- tc(o.current, "tagbar");
- }, [f]), /* @__PURE__ */ (0, I.jsx)(lL, {
+ ec(o.current, "tagbar");
+ }, [f]), /* @__PURE__ */ (0, I.jsx)(cL, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -55849,23 +55862,23 @@ function ixe(e) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(MG, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(axe, {
+ children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(jG, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(sxe, {
tag: n,
pending: e.tiersPending,
onPress: t.toggleTag
}, n.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(cxe, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(uxe, { ...e })
});
}
-function axe({ tag: e, pending: t, onPress: n }) {
- return /* @__PURE__ */ (0, I.jsxs)(uL, {
+function sxe({ tag: e, pending: t, onPress: n }) {
+ return /* @__PURE__ */ (0, I.jsxs)(lL, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
onPress: () => n(e.k),
- children: [/* @__PURE__ */ (0, I.jsx)(nL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(tL, {
text: e.label,
busy: t
}), e.n == null ? null : /* @__PURE__ */ (0, I.jsx)("span", {
@@ -55874,15 +55887,15 @@ function axe({ tag: e, pending: t, onPress: n }) {
})]
});
}
-function oxe(e) {
- tL();
+function cxe(e) {
+ eL();
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 = NG(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = NG(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, F.useMemo)(() => i ? jG() : null, [i]), f = d ? d.performers : e.empty || r.performers.length > 0, p = d ? d.studios : e.empty || r.studios.length > 0;
+ }, 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 = MG(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = MG(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, F.useMemo)(() => i ? AG() : 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 || nxe({
+ i || ixe({
performers: f,
studios: p
});
@@ -55903,7 +55916,7 @@ function oxe(e) {
children: [f ? /* @__PURE__ */ (0, I.jsx)("div", {
ref: o,
"data-catalog-tier": "performers",
- children: a ? /* @__PURE__ */ (0, I.jsx)(MG, { kind: "performer" }) : l.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, I.jsx)(jG, { kind: "performer" }) : l.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -55914,7 +55927,7 @@ function oxe(e) {
dangerouslySetInnerHTML: { __html: n.ringHtml }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-tier-name": "",
- children: /* @__PURE__ */ (0, I.jsx)(nL, {
+ children: /* @__PURE__ */ (0, I.jsx)(tL, {
text: nn("performer", n.name),
busy: e.tiersPending
})
@@ -55923,13 +55936,13 @@ function oxe(e) {
}) : null, p ? /* @__PURE__ */ (0, I.jsx)("div", {
ref: s,
"data-catalog-tier": "studios",
- children: a ? /* @__PURE__ */ (0, I.jsx)(MG, { kind: "studio" }) : u.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, I.jsx)(jG, { kind: "studio" }) : u.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-tier-studio": "",
"data-entity-kind": "studio",
"data-entity-name": n.name,
onClick: () => t.openEntity("studio", n.name),
- children: [/* @__PURE__ */ (0, I.jsx)(sxe, { studio: n }), /* @__PURE__ */ (0, I.jsx)(nL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(lxe, { studio: n }), /* @__PURE__ */ (0, I.jsx)(tL, {
text: n.name,
busy: e.tiersPending
})]
@@ -55937,7 +55950,7 @@ function oxe(e) {
}) : null]
});
}
-function sxe({ studio: e }) {
+function lxe({ studio: e }) {
let [t, n] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-tier-mark": "",
@@ -55955,7 +55968,7 @@ function sxe({ studio: e }) {
}) : e.fallback
});
}
-function MG({ kind: e }) {
+function jG({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -55971,43 +55984,43 @@ function MG({ kind: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", {}), /* @__PURE__ */ (0, I.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function cxe({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
- let a = rG(), [o, s] = (0, F.useState)(!1);
+function uxe({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+ let a = nG(), [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)(lxe, { count: e }), /* @__PURE__ */ (0, I.jsx)(TV, { currentHref: i.currentHref })]
+ children: [/* @__PURE__ */ (0, I.jsx)(dxe, { count: e }), /* @__PURE__ */ (0, I.jsx)(wV, { currentHref: i.currentHref })]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(kG, {
+ /* @__PURE__ */ (0, I.jsx)(OG, {
onPress: () => {
s(!0), i.reshuffle().finally(() => s(!1));
},
busy: o || t
}),
- n && a === "cards" ? /* @__PURE__ */ (0, I.jsx)(OG, {
+ n && a === "cards" ? /* @__PURE__ */ (0, I.jsx)(DG, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, I.jsx)(iG, {}),
- /* @__PURE__ */ (0, I.jsx)(ZW, {}),
- /* @__PURE__ */ (0, I.jsx)(AG, {
+ /* @__PURE__ */ (0, I.jsx)(rG, {}),
+ /* @__PURE__ */ (0, I.jsx)(XW, {}),
+ /* @__PURE__ */ (0, I.jsx)(kG, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function lxe({ count: e }) {
+function dxe({ 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)(nL, {
+ children: /* @__PURE__ */ (0, I.jsx)(tL, {
text: t,
busy: e === null,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -56018,7 +56031,7 @@ function lxe({ count: e }) {
})
});
}
-function uxe(e) {
+function fxe(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!e) return;
@@ -56028,7 +56041,7 @@ function uxe(e) {
};
}, [e]), t;
}
-function NG(e, t, n, r, i) {
+function MG(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -56071,11 +56084,11 @@ function NG(e, t, n, r, i) {
}), l.slice(0, c.limit);
}
// src/react/components/grid-reveal.tsx
-var PG = "100% 0px";
-function dxe(e, t) {
+var NG = "100% 0px";
+function pxe(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 && mc(a.current);
+ a.current && pc(a.current);
}, []), (0, F.useLayoutEffect)(() => {
if (e || n !== "skeleton") return;
let t = !!a.current && !a.current.querySelector(".skeleton-awaiting");
@@ -56098,25 +56111,25 @@ function dxe(e, t) {
fading: n === "fade"
};
}
-function FG({ message: e, onRetry: t }) {
+function PG({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
e.target.closest("[data-note-action]") && t();
},
- dangerouslySetInnerHTML: { __html: Bs(e, {
+ dangerouslySetInnerHTML: { __html: zs(e, {
variant: "error",
actionLabel: "立即重试"
}) }
});
}
// src/react/components/skeleton-content.tsx
-function IG({ pending: e, skeletonHtml: t, children: n }) {
+function FG({ pending: e, skeletonHtml: t, children: n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = t();
return (0, F.useLayoutEffect)(() => {
e || (r.current = n);
}, [e, n]), (0, F.useLayoutEffect)(() => {
- e && mc(i.current);
+ e && pc(i.current);
}, [e, a]), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-content-transition": "",
"data-pending": e ? "" : void 0,
@@ -56135,25 +56148,25 @@ function IG({ pending: e, skeletonHtml: t, children: n }) {
});
}
// src/react/components/card-meta.tsx
-function LG({ name: e }) {
+function IG({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function RG({ name: e }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })] });
+function LG({ name: e }) {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(IG, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })] });
}
-function zG({ value: e, label: t, title: n }) {
+function RG({ value: e, label: t, title: n }) {
return /* @__PURE__ */ (0, I.jsxs)("time", {
"data-media-release": "",
dateTime: e,
title: n || t,
- children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: "calendar" }), t]
+ children: [/* @__PURE__ */ (0, I.jsx)(IG, { name: "calendar" }), t]
});
}
-function BG({ tags: e, label: t, readOnly: n = !1, attrs: r, ...i }) {
+function zG({ tags: e, label: t, readOnly: n = !1, attrs: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
...i,
"data-media-tags": "",
@@ -56171,12 +56184,12 @@ function BG({ tags: e, label: t, readOnly: n = !1, attrs: r, ...i }) {
});
}
// src/react/components/recommendation-reason.tsx
-var fxe = 3;
-function pxe(e, t, n = fxe) {
+var mxe = 3;
+function hxe(e, t, n = mxe) {
return [...e, t.slice(0, n).join("、")].filter(Boolean).join(" · ");
}
-function VG({ reasons: e, tags: t = [] }) {
- let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1), a = pxe(e, t);
+function BG({ reasons: e, tags: t = [] }) {
+ let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1), a = hxe(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", {
@@ -56191,15 +56204,15 @@ function VG({ reasons: e, tags: t = [] }) {
e.stopPropagation(), i(!0);
},
children: a
- }), /* @__PURE__ */ (0, I.jsx)(lz, {
+ }), /* @__PURE__ */ (0, I.jsx)(cz, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "top",
offset: 8,
containerPadding: 12,
- className: kV,
- children: /* @__PURE__ */ (0, I.jsx)(Sz, {
+ className: OV,
+ children: /* @__PURE__ */ (0, I.jsx)(xz, {
"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",
@@ -56208,63 +56221,63 @@ function VG({ reasons: e, tags: t = [] }) {
})] });
}
// src/library-catalog.ts
-var HG = "peach.library-colors.v1", UG = null, WG = /* @__PURE__ */ new Set();
-function mxe() {
+var VG = "peach.library-colors.v1", HG = null, UG = /* @__PURE__ */ new Set();
+function gxe() {
try {
- let e = JSON.parse(localStorage.getItem(HG) || "{}");
+ let e = JSON.parse(localStorage.getItem(VG) || "{}");
return e && typeof e == "object" ? e : {};
} catch {
return {};
}
}
-function GG(e) {
- UG = e;
+function WG(e) {
+ HG = e;
try {
- localStorage.setItem(HG, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
+ localStorage.setItem(VG, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
} catch {}
- WG.forEach((t) => t(e));
+ UG.forEach((t) => t(e));
}
-function KG() {
- return UG;
+function GG() {
+ return HG;
}
-function hxe(e) {
- return WG.add(e), () => {
- WG.delete(e);
+function _xe(e) {
+ return UG.add(e), () => {
+ UG.delete(e);
};
}
// src/react/components/library-tint.ts
-var qG = /* @__PURE__ */ new Map(), JG = !1, YG = /* @__PURE__ */ new Set();
-function gxe(e) {
+var KG = /* @__PURE__ */ new Map(), qG = !1, JG = /* @__PURE__ */ new Set();
+function vxe(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();
return t.remove(), n;
}
-function XG(e) {
- qG = e;
+function YG(e) {
+ KG = e;
let t = document.getElementById("peach-library-tints");
- t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...qG.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${gxe(e.color)}}`).join("\n");
+ t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...KG.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${vxe(e.color)}}`).join("\n");
}
-function ZG(e) {
- XG(e), YG.forEach((e) => e());
+function XG(e) {
+ YG(e), JG.forEach((e) => e());
}
-var QG = (e) => new Map(e.map((e) => [e.id, {
+var ZG = (e) => new Map(e.map((e) => [e.id, {
id: e.id,
name: e.name,
- icon: vs[e.icon || ""] || e.icon || "database",
+ icon: _s[e.icon || ""] || e.icon || "database",
location: e.roots?.[0]?.location || "",
color: e.color || ""
-}])), $G = !1;
-function _xe() {
- if ($G) return;
- $G = !0, hxe((e) => ZG(QG(e)));
- let e = KG();
+}])), QG = !1;
+function yxe() {
+ if (QG) return;
+ QG = !0, _xe((e) => XG(ZG(e)));
+ let e = GG();
if (e) {
- XG(QG(e));
+ YG(ZG(e));
return;
}
- let t = Object.entries(mxe()).filter(([, e]) => e);
- t.length && XG(new Map(t.map(([e, t]) => [e, {
+ let t = Object.entries(gxe()).filter(([, e]) => e);
+ t.length && YG(new Map(t.map(([e, t]) => [e, {
id: e,
name: "",
icon: "database",
@@ -56272,56 +56285,56 @@ function _xe() {
color: t
}])));
}
-function vxe() {
- JG || KG() || (JG = !0, B("/api/libraries").then((e) => GG(e.libraries || [])).catch(() => {
- JG = !1;
+function bxe() {
+ qG || GG() || (qG = !0, B("/api/libraries").then((e) => WG(e.libraries || [])).catch(() => {
+ qG = !1;
}));
}
-function yxe(e, t) {
- let n = qG.get(e) ?? {
+function xxe(e, t) {
+ let n = KG.get(e) ?? {
id: e,
name: "",
icon: "database",
location: "",
color: ""
};
- ZG(new Map([...qG, [e, {
+ XG(new Map([...KG, [e, {
...n,
color: t
}]]));
}
-function bxe(e) {
- return YG.add(e), () => {
- YG.delete(e);
+function Sxe(e) {
+ return JG.add(e), () => {
+ JG.delete(e);
};
}
-function eK({ names: e = !1 } = {}) {
- return _xe(), e && vxe(), (0, F.useSyncExternalStore)(bxe, () => qG, () => qG);
+function $G({ names: e = !1 } = {}) {
+ return yxe(), e && bxe(), (0, F.useSyncExternalStore)(Sxe, () => KG, () => KG);
}
// src/react/components/row-click.ts
-var xxe = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
-function tK(e, t) {
+var Cxe = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
+function eK(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(xxe);
+ let r = n.closest(Cxe);
return !r || !t.contains(r) || r === t;
}
-function nK(e) {
+function tK(e) {
e.shiftKey && e.preventDefault();
}
// src/react/components/media-card.tsx
-var rK = 9 / 16, iK = "未命名视频", Sxe = {
+var nK = 9 / 16, rK = "未命名视频", wxe = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
-}, Cxe = {
+}, Txe = {
manual: "手动",
junk: "垃圾",
duplicate: "重复",
missing: "文件缺失"
};
-function wxe(e) {
+function Exe(e) {
if (Number(e.duration) < 0) return {
key: "unavailable",
label: "探查错误"
@@ -56349,16 +56362,16 @@ function wxe(e) {
label: "尚未探查"
};
}
-function aK({ item: e }) {
+function iK({ item: e }) {
if (e.disposal !== "trash") return null;
- let t = e.disposal_reason && Cxe[e.disposal_reason] || "原因未记录";
+ let t = e.disposal_reason && Txe[e.disposal_reason] || "原因未记录";
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-disposal-reason": "",
title: `归入原因:${t}`,
children: t
});
}
-function oK({ item: e, actions: t }) {
+function aK({ item: e, actions: t }) {
let [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(""), o = e.disposal === "trash" ? "restore" : "dispose", s = o === "restore" ? "还原" : "移入回收站";
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -56370,18 +56383,18 @@ function oK({ item: e, actions: t }) {
},
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
- children: n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Vs(`正在${s}`) } }), /* @__PURE__ */ (0, I.jsx)("span", { children: `正在${s}` })] }) : /* @__PURE__ */ (0, I.jsx)("span", { children: s })
+ children: n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs(`正在${s}`) } }), /* @__PURE__ */ (0, I.jsx)("span", { children: `正在${s}` })] }) : /* @__PURE__ */ (0, I.jsx)("span", { children: s })
}), i ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-operation-error": "",
role: "alert",
children: i
}) : null] });
}
-function sK(e, t, n) {
- return t === "short" ? rK : vM(n);
+function oK(e, t, n) {
+ return t === "short" ? nK : _M(n);
}
-function cK(e) {
- let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = jo(e), s = i[0] || "", c = go(e);
+function sK(e) {
+ let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = Ao(e), s = i[0] || "", c = ho(e);
return {
avatar: r ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-avatars": "",
@@ -56393,7 +56406,7 @@ function cK(e) {
"data-entity-name": e,
title: `打开${c}页:${nn("performer", e, a[t]?.id)}`,
style: { "--media-avatar-index": t },
- dangerouslySetInnerHTML: { __html: yo(e, a[t] ?? null, "performer") }
+ dangerouslySetInnerHTML: { __html: vo(e, a[t] ?? null, "performer") }
}, `${e}:${t}`))
}) : t ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -56401,10 +56414,10 @@ function cK(e) {
"data-entity-kind": t,
"data-entity-name": n,
title: `打开${t === "performer" ? c : "资料"}页`,
- dangerouslySetInnerHTML: { __html: yo(n, t === "performer" ? a[0] ?? null : e.creator_entity ?? null, t) }
+ dangerouslySetInnerHTML: { __html: vo(n, t === "performer" ? a[0] ?? null : e.creator_entity ?? null, t) }
}) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-avatar": "",
- dangerouslySetInnerHTML: { __html: yo(n, null, "") }
+ dangerouslySetInnerHTML: { __html: vo(n, null, "") }
}),
who: r ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -56412,7 +56425,7 @@ function cK(e) {
"data-entity-kind": "performer",
"data-entity-name": s,
title: nn("performer", s),
- children: /* @__PURE__ */ (0, I.jsx)(RG, { name: nn("performer", s) })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: nn("performer", s) })
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-who-more": "",
children: `等 ${o} 人`
@@ -56422,16 +56435,16 @@ function cK(e) {
"data-entity-kind": t,
"data-entity-name": n,
title: nn(t, n),
- children: /* @__PURE__ */ (0, I.jsx)(RG, { name: nn(t, n) })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: nn(t, n) })
}) : /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-media-who": "",
"data-open-unowned": "",
- children: /* @__PURE__ */ (0, I.jsx)(RG, { name: n })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: n })
})
};
}
-function Txe() {
+function Dxe() {
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -56450,7 +56463,7 @@ function Txe() {
})]
});
}
-function Exe({ item: e, actions: t, on: n, onChange: r }) {
+function Oxe({ item: e, actions: t, on: n, onChange: r }) {
let [i, a] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-later": "",
@@ -56465,22 +56478,22 @@ function Exe({ item: e, actions: t, on: n, onChange: r }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: n ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, I.jsx)(IG, { name: n ? "check" : "bookmark-plus" })
})
});
}
-function lK(e, t) {
+function cK(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 Dxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
- tL();
- let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = eK(), 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);
+function kxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
+ eL();
+ let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = $G(), 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 && Fl(u.current), u.current = e, e && (!t.medium || t.medium === "video") && Ll(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 = sK(e, t, n), w = S ? n.size : "small", T = C === rK && !!e.is_jav, E = T ? Oo(e, !1) : Eo(e, w, !1, n.javImage), D = T || w === "small" ? E.html : Eo(e, "small", !1, n.javImage).html, O = y?.title || e.name || "", k = o.displayName(e, O).trim() || iK, A = o.titleHtml(e, O).trim() || z(iK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : wxe(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 } = cK(e), ne = (e.follow_tags || e.tags || []).slice(0, 3), re = (t) => {
+ 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 = oK(e, t, n), w = S ? n.size : "small", T = C === nK && !!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() || rK, A = o.titleHtml(e, O).trim() || z(rK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : Exe(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 } = sK(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;
@@ -56507,13 +56520,13 @@ function Dxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
l && r.contains(l) ? s.toggleTag(l.dataset.tag || "") : c(e, r);
}, ie = /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
- "data-pic-portrait": C === rK ? "" : void 0,
+ "data-pic-portrait": C === nK ? "" : void 0,
style: { "--card-ratio": String(C) },
children: [
- E.html ? /* @__PURE__ */ (0, I.jsx)(WU, {
+ E.html ? /* @__PURE__ */ (0, I.jsx)(UU, {
artwork: E,
identity: D,
- relayout: (e) => Dl(e, w)
+ relayout: (e) => El(e, w)
}) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-nopic": "",
children: "无预览"
@@ -56524,11 +56537,11 @@ function Dxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(IG, { name: "check" })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(IG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
}),
y && !b ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-group": "",
@@ -56544,7 +56557,7 @@ function Dxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-copy-key": ee ? `media.duration.${ee.key}` : void 0,
children: ee ? ee.label : Jn(M)
}),
- !i && e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(oK, {
+ !i && e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(aK, {
item: e,
actions: s
}) : null,
@@ -56560,22 +56573,22 @@ function Dxe({ 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)(Txe, {}),
+ /* @__PURE__ */ (0, I.jsx)(Dxe, {}),
p || g.length ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-status": "",
children: [p ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-status": "later",
title: "稍后看",
"aria-label": "稍后看",
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "bookmark" })
+ children: /* @__PURE__ */ (0, I.jsx)(IG, { name: "bookmark" })
}) : null, g.length ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-status": "flagged",
title: `已标记:${g.join("、")}`,
"aria-label": `已标记:${g.join("、")}`,
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "heart" })
+ children: /* @__PURE__ */ (0, I.jsx)(IG, { name: "heart" })
}) : null]
}) : null,
- i ? null : /* @__PURE__ */ (0, I.jsx)(Exe, {
+ i ? null : /* @__PURE__ */ (0, I.jsx)(Oxe, {
item: e,
actions: s,
on: p,
@@ -56590,27 +56603,27 @@ function Dxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), lK(u.current, -a);
+ e.stopPropagation(), cK(u.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, I.jsx)(IG, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), lK(u.current, a);
+ e.stopPropagation(), cK(u.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, I.jsx)(IG, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "expand" })
+ children: /* @__PURE__ */ (0, I.jsx)(IG, { name: "expand" })
})
]
})
@@ -56630,7 +56643,7 @@ function Dxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
"data-pending-delete": e.disposal === "trash" ? "" : void 0,
"data-selected": r ? "" : void 0,
onClick: re,
- onMouseDown: nK,
+ onMouseDown: tK,
children: [
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -56668,33 +56681,33 @@ function Dxe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
}) : null,
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-facts": "",
- children: [e.is_jav && e.release_date ? /* @__PURE__ */ (0, I.jsx)(zG, {
+ children: [e.is_jav && e.release_date ? /* @__PURE__ */ (0, I.jsx)(RG, {
value: e.release_date,
label: e.release_date
}) : null, /* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-size": "",
- children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: "hard-drive" }), Number(j) > 0 ? Xn(Number(j)) : "大小未知"]
+ children: [/* @__PURE__ */ (0, I.jsx)(IG, { name: "hard-drive" }), Number(j) > 0 ? Xn(Number(j)) : "大小未知"]
})]
})
]
}),
- t === "next" ? /* @__PURE__ */ (0, I.jsx)(VG, {
+ t === "next" ? /* @__PURE__ */ (0, I.jsx)(BG, {
reasons: e.why ? e.why.split(" · ") : [],
tags: (e.why_tags || []).map(o.tagLabel)
- }) : ne.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(BG, {
+ }) : ne.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(zG, {
tags: ne,
label: o.tagLabel,
readOnly: !!e.follow_item_id
}) : null,
- /* @__PURE__ */ (0, I.jsx)(aK, { item: e })
+ /* @__PURE__ */ (0, I.jsx)(iK, { item: e })
]
})]
})
]
});
}
-function Oxe({ 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") ? "网址快捷方式" : Sxe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
+function Axe({ 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") ? "网址快捷方式" : wxe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
return /* @__PURE__ */ (0, I.jsxs)("article", {
ref: o,
"data-media-card": "",
@@ -56706,14 +56719,14 @@ function Oxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
onClick: (t) => {
o.current && (n || t.shiftKey || t.ctrlKey || t.metaKey ? (t.preventDefault(), i.toggleSelection(e.id, t.shiftKey)) : a(e, o.current));
},
- onMouseDown: nK,
+ onMouseDown: tK,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
style: { "--card-ratio": "1.7777777777777777" },
children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: u }), /* @__PURE__ */ (0, I.jsx)("b", { children: l })]
+ children: [/* @__PURE__ */ (0, I.jsx)(IG, { name: u }), /* @__PURE__ */ (0, I.jsx)("b", { children: l })]
}),
s ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-art": "thumb",
@@ -56725,13 +56738,13 @@ function Oxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(IG, { name: "check" })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(IG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
}),
- n ? null : /* @__PURE__ */ (0, I.jsx)(oK, {
+ n ? null : /* @__PURE__ */ (0, I.jsx)(aK, {
item: e,
actions: i
})
@@ -56742,7 +56755,7 @@ function Oxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
"data-media-avatar": "",
"data-media-kind-glyph": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(LG, { name: u })
+ children: /* @__PURE__ */ (0, I.jsx)(IG, { name: u })
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-text": "",
children: [
@@ -56770,29 +56783,29 @@ function Oxe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
]
}),
e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)("div", { "data-media-tags": "" }) : null,
- /* @__PURE__ */ (0, I.jsx)(aK, { item: e })
+ /* @__PURE__ */ (0, I.jsx)(iK, { item: e })
]
})]
})]
});
}
-function kxe(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(Oxe, { ...e }) : /* @__PURE__ */ (0, I.jsx)(Dxe, { ...e });
+function jxe(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(Axe, { ...e }) : /* @__PURE__ */ (0, I.jsx)(kxe, { ...e });
}
-var uK = (0, F.memo)(kxe), Axe = 1100, jxe = 340, Mxe = 5e3;
-function Nxe(e, t, n) {
+var lK = (0, F.memo)(jxe), Mxe = 1100, Nxe = 340, Pxe = 5e3;
+function Fxe(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, Mxe);
+ }, s = () => o(!1), c = setTimeout(s, Pxe);
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;
});
}
-function dK({ load: e, canFlip: t, referrerPolicy: n }) {
+function uK({ load: e, canFlip: t, referrerPolicy: n }) {
let [r, i] = (0, F.useState)([]), [a, o] = (0, F.useState)(0), [s, c] = (0, F.useState)(null), l = (0, F.useRef)({
live: !1,
generation: 0,
@@ -56834,11 +56847,11 @@ function dK({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => Nxe(t, e, n)));
+ let s = await Promise.all(a.map((t) => Fxe(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, Mxe);
}));
};
return (0, F.useEffect)(() => d, [d]), {
@@ -56847,7 +56860,7 @@ function dK({ 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(jxe, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(Nxe, () => {
e.armed = null, m();
});
},
@@ -56857,8 +56870,8 @@ function dK({ load: e, canFlip: t, referrerPolicy: n }) {
};
}
// src/react/components/mix-card.tsx
-var fK = uV("play");
-function Pxe({ src: e }) {
+var dK = lV("play");
+function Ixe({ src: e }) {
let [t, n] = (0, F.useState)(!1);
return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {
"data-mix-poster": "",
@@ -56871,8 +56884,8 @@ function Pxe({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var pK = "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 Fxe({ faces: e, fallback: t, onOpenEntity: n }) {
+var fK = "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 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", {
@@ -56880,18 +56893,18 @@ function Fxe({ faces: e, fallback: t, onOpenEntity: n }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
- className: `${pK} cursor-pointer outline-none`,
- dangerouslySetInnerHTML: { __html: vo(e.name, e, Qa(e.name), e.kind) }
+ className: `${fK} cursor-pointer outline-none`,
+ dangerouslySetInnerHTML: { __html: _o(e.name, e, Za(e.name), e.kind) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${pK} mt-0.5`,
+ className: `${fK} mt-0.5`,
children: t
});
}
-function mK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
- let b = dK({
+function pK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {
+ let b = uK({
load: i,
canFlip: a
}), x = (0, F.useRef)(b.onPointerLeave);
@@ -56918,11 +56931,11 @@ function mK({ 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)(WU, {
+ f?.html ? /* @__PURE__ */ (0, I.jsx)(UU, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, I.jsx)(Pxe, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, I.jsx)(Ixe, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -56952,7 +56965,7 @@ function mK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-mix-badge": "",
className: "absolute right-2.25 bottom-2.25 z-6 flex min-h-7 items-center gap-1.5 rounded-2lg px-2.25 py-1 text-caption-1-semibold text-text-white",
- children: [/* @__PURE__ */ (0, I.jsx)(fK, {
+ children: [/* @__PURE__ */ (0, I.jsx)(dK, {
"aria-hidden": !0,
className: "size-(--icon-inline)"
}), g ?? `${n.toLocaleString()} 个视频`]
@@ -56965,8 +56978,8 @@ function mK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
_ ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-mix-glyph": "",
"aria-hidden": !0,
- children: /* @__PURE__ */ (0, I.jsx)(fK, {})
- }) : /* @__PURE__ */ (0, I.jsx)(Fxe, {
+ children: /* @__PURE__ */ (0, I.jsx)(dK, {})
+ }) : /* @__PURE__ */ (0, I.jsx)(Lxe, {
faces: o,
fallback: er(e),
onOpenEntity: s
@@ -56989,20 +57002,20 @@ function mK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
});
}
// src/react/video-wall/use-wall-camera.ts
-var hK = {
+var mK = {
x: 16,
y: 16,
scale: 1
-}, Ixe = .65, Lxe = 1.6, gK = (e) => Math.min(Lxe, Math.max(Ixe, e)), _K = (e, t, n, r) => ({
+}, Rxe = .65, zxe = 1.6, hK = (e) => Math.min(zxe, Math.max(Rxe, e)), gK = (e, t, n, r) => ({
scale: t,
x: n - (n - e.x) * t / e.scale,
y: r - (r - e.y) * t / e.scale
});
-function Rxe(e, t, n) {
+function Bxe(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 zxe(e, t, n = hK, r = !1) {
+function Vxe(e, t, n = mK, r = !1) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)({
width: 0,
height: 0
@@ -57034,12 +57047,12 @@ function zxe(e, t, n = hK, r = !1) {
previous: 0
});
}, []), y = (0, F.useCallback)((e, t = !1, n = !1) => {
- let { count: r, finite: c, focused: f } = d.current, p = abe(e, o.current, ibe(r), c && !f && !n), h = s.current;
+ let { count: r, finite: c, focused: f } = d.current, p = sbe(e, o.current, obe(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 || !Rxe(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 || !Bxe(p, u.current, o.current)) && (u.current = p, l({
camera: p,
size: { ...o.current }
}));
@@ -57069,7 +57082,7 @@ function zxe(e, t, n = hK, r = !1) {
let r = s.current, i = r;
if (t.scale) {
let e = Math.abs(t.scale - r.scale) < .002;
- i = _K(r, e ? t.scale : r.scale + (t.scale - r.scale) * n, t.anchorX, t.anchorY), e && (t.scale = 0);
+ i = gK(r, e ? t.scale : r.scale + (t.scale - r.scale) * n, t.anchorX, t.anchorY), e && (t.scale = 0);
}
let a = Math.hypot(t.x, t.y) < .5, o = a ? t.x : t.x * n, c = a ? t.y : t.y * n;
y({
@@ -57082,13 +57095,13 @@ function zxe(e, t, n = hK, r = !1) {
let n = h.current;
if (b()) {
let n = s.current;
- t && (n = _K(n, gK(n.scale * t.factor), t.x, t.y)), e && (n = {
+ t && (n = gK(n, hK(n.scale * t.factor), t.x, t.y)), e && (n = {
...n,
x: n.x + e.x,
y: n.y + e.y
}), y(n);
} else t && Object.assign(n, {
- scale: gK((n.scale || s.current.scale) * t.factor),
+ scale: hK((n.scale || s.current.scale) * t.factor),
anchorX: t.x,
anchorY: t.y
}), e && (n.x += e.x, n.y += e.y), f.current === null && (n.scale || n.x || n.y) && (n.previous = 0, f.current = requestAnimationFrame(x));
@@ -57130,7 +57143,7 @@ function zxe(e, t, n = hK, 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 = fS(0, 1, {
+ !t || b() ? y(a, !0, n) : p.current = dS(0, 1, {
duration: .42,
ease: [
.22,
@@ -57155,7 +57168,7 @@ function zxe(e, t, n = hK, r = !1) {
}),
snapshot: () => ({ ...s.current }),
reset: () => {
- v(), y({ ...hK }, !0);
+ v(), y({ ...mK }, !0);
},
pan: (e, t) => {
v(), y({
@@ -57216,16 +57229,16 @@ function zxe(e, t, n = hK, r = !1) {
};
}
// src/react/video-wall/wall-motion.ts
-var Bxe = {
+var Hxe = {
type: "spring",
stiffness: 300,
damping: 34
-}, Vxe = {
+}, Uxe = {
delay: .14,
duration: .24
};
// src/react/video-wall/use-wall-playback.ts
-function Hxe(e, t, n) {
+function Wxe(e, t, n) {
let [r, i] = (0, F.useState)({
paused: !0,
time: 0,
@@ -57266,15 +57279,15 @@ function Hxe(e, t, n) {
};
}
// src/react/video-wall/wall-controls.tsx
-function Uxe({ 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 = tS(), x = Hxe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
+function Gxe({ 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 = Wxe(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)(pS.div, {
+ return /* @__PURE__ */ (0, I.jsxs)(fS.div, {
"data-wall-focus-actions": "",
initial: !b && {
opacity: 0,
@@ -57284,7 +57297,7 @@ function Uxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
opacity: 1,
transform: "translateY(0px)"
},
- transition: b ? { duration: 0 } : Vxe,
+ transition: b ? { duration: 0 } : Uxe,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-control-row": "",
children: [
@@ -57292,11 +57305,11 @@ function Uxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
type: "button",
"data-wall-play": "",
"data-wall-pause": w ? void 0 : "",
- ...fV(C),
+ ...dV(C),
"aria-label": r ? "正在打开" : i ? "正在读取版本" : w ? "播放" : "暂停",
title: w ? "播放" : "暂停",
onClick: () => void T(),
- children: C ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Vs() } }) : /* @__PURE__ */ (0, I.jsx)("svg", {
+ children: C ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs() } }) : /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: w ? "#i-play" : "#i-player-pause" })
@@ -57342,12 +57355,12 @@ function Uxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
- ...fV(d),
+ ...dV(d),
"aria-label": u ? "移出稍后看" : "稍后看",
title: "稍后看",
"aria-pressed": u,
onClick: g,
- children: d ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Vs() } }) : /* @__PURE__ */ (0, I.jsx)("svg", {
+ children: d ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs() } }) : /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-bookmark" })
@@ -57388,7 +57401,7 @@ function Uxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
});
}
// src/react/components/mix-queue.tsx
-function vK({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
+function _K({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
let c = (0, F.useRef)(null), l = (0, F.useCallback)((e) => {
c.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
}, [a]);
@@ -57424,7 +57437,7 @@ function vK({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
})]
});
}
-function yK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
+function vK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
let s = /* @__PURE__ */ (0, I.jsx)("span", {
"data-mix-item-text": "",
children: a
@@ -57447,7 +57460,7 @@ function yK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var Wxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
+var Kxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
@@ -57456,28 +57469,28 @@ var Wxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
]
});
// src/react/video-wall/wall-queue.tsx
-function Gxe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
+function qxe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-queue": "",
id: "wall-queue",
- children: /* @__PURE__ */ (0, I.jsx)(vK, {
+ children: /* @__PURE__ */ (0, I.jsx)(_K, {
kind: n,
title: n === "parts" ? "分卷" : n === "editions" ? "版本" : "作品",
summary: `${e.length} 个视频`,
onClose: a,
- children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)(yK, {
+ children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)(vK, {
current: e.id === t,
"data-wall-source": e.id,
"aria-label": [
e.edition_label,
- e.part_label ? FP(e.part_label) : "",
+ e.part_label ? PP(e.part_label) : "",
r(e)
].filter(Boolean).join(" · "),
onClick: () => i(e),
- pic: /* @__PURE__ */ (0, I.jsx)(WU, { artwork: Eo(e, "small", !0, "cover") }),
+ pic: /* @__PURE__ */ (0, I.jsx)(UU, { 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 ? FP(e.part_label) : "",
+ e.part_label ? PP(e.part_label) : "",
Jn(e.duration)
].filter(Boolean).join(" · ") })]
}, e.id))
@@ -57485,7 +57498,7 @@ function Gxe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })
});
}
// src/react/video-wall/wall-route.ts
-function Kxe(e = `${location.pathname}${location.search}`, t = {}) {
+function Jxe(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",
@@ -57500,62 +57513,62 @@ function Kxe(e = `${location.pathname}${location.search}`, t = {}) {
}
return s.set("returnTo", `${n.pathname}${n.search}`), `/wall?${s}`;
}
-function bK(e = `${location.pathname}${location.search}`) {
+function yK(e = `${location.pathname}${location.search}`) {
let t = new URL(e, location.origin).searchParams;
- for (let e of NW) t.delete(e);
+ for (let e of MW) t.delete(e);
return t.delete("tag_match"), `/wall${t.size ? `?${t}` : ""}`;
}
-function xK() {
- let e = new URLSearchParams(Pp.navigation.location.search).get("returnTo") || "/";
- Pp.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
+function bK() {
+ let e = new URLSearchParams(Np.navigation.location.search).get("returnTo") || "/";
+ Np.replace(e.startsWith("/") && !e.startsWith("//") && !e.startsWith("/wall") ? e : "/");
}
// src/react/video-wall/video-wall.tsx
-var SK = /* @__PURE__ */ new Map(), CK = (0, F.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
- let i = Eo(!e.is_jav && t === "thumbnail" && e.has_thumb ? {
+var xK = /* @__PURE__ */ new Map(), SK = (0, F.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
+ let i = To(!e.is_jav && t === "thumbnail" && e.has_thumb ? {
...e,
has_cover: !1
} : e, n || r >= 1 ? "small" : "big", !0, t), a = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
a.current?.querySelectorAll("img.cover").forEach((e) => {
- e.complete && e.naturalWidth && pl(e, r);
+ e.complete && e.naturalWidth && fl(e, r);
});
}, [r, i.html]), /* @__PURE__ */ (0, I.jsx)("span", {
ref: a,
"data-media-pic": "",
style: { "--card-ratio": String(r) },
- children: /* @__PURE__ */ (0, I.jsx)(WU, {
+ children: /* @__PURE__ */ (0, I.jsx)(UU, {
artwork: i,
relayout: (e) => e.querySelectorAll("img.cover").forEach((e) => {
- e.complete && e.naturalWidth && pl(e, r);
+ e.complete && e.naturalWidth && fl(e, r);
})
})
});
});
-function qxe({ 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 Yxe({ 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 = SK.get(f);
+ let e = xK.get(f);
return e && (i || t || e.pool === p) ? e : void 0;
- }), [h] = (0, F.useState)(() => m?.exploration || new obe()), 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 cbe()), 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: mP(M || {
+ queryKey: pP(M || {
kind: "parts",
seedId: 0
}),
enabled: !!M,
- queryFn: ({ signal: e }) => CP(M, {
+ queryFn: ({ signal: e }) => SP(M, {
tagLabel: u.tagLabel,
mixRelated: async () => []
}, e)
- }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === EP(N, O || w?.id || null)) || w, P = zxe(e.length, t && !!e.length, m?.camera || {
+ }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === TP(N, O || w?.id || null)) || w, P = Vxe(e.length, t && !!e.length, m?.camera || {
x: 0,
y: 0,
scale: innerWidth < 640 ? .68 : 1
- }, !!w), ne = tS(), [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);
@@ -57570,9 +57583,9 @@ function qxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
return e.className = "peach-react", e;
});
(0, F.useLayoutEffect)(() => {
- document.body.append(Ce), PW(), P.viewport.current?.focus({ preventScroll: !0 });
+ document.body.append(Ce), NW(), P.viewport.current?.focus({ preventScroll: !0 });
}, [Ce]), (0, F.useEffect)(() => () => Ce.remove(), [Ce]);
- let [we, Te] = (0, F.useState)(() => Vf(Pp.navigation.location.pathname)), [Ee, De] = (0, F.useState)(m?.image || d), Oe = (0, F.useRef)(null), ke = (0, F.useRef)(p), Ae = (0, F.useRef)(!!e.length);
+ let [we, Te] = (0, F.useState)(() => Bf(Np.navigation.location.pathname)), [Ee, De] = (0, F.useState)(m?.image || d), Oe = (0, F.useRef)(null), ke = (0, F.useRef)(p), Ae = (0, F.useRef)(!!e.length);
Ae.current = !!e.length;
let je = (0, F.useRef)({
selectedId: w?.id || null,
@@ -57589,20 +57602,20 @@ function qxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
pool: p
};
let Me = () => {
- Ae.current && (SK.delete(f), SK.set(f, {
+ Ae.current && (xK.delete(f), xK.set(f, {
...je.current,
camera: P.snapshot(),
exploration: h
- }), SK.size > 8 && SK.delete(SK.keys().next().value));
+ }), xK.size > 8 && xK.delete(xK.keys().next().value));
};
(0, F.useLayoutEffect)(Me);
- let Ne = MW(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, P.view.camera, P.view.size), Pe = i ? Ne.map((e) => ({
+ let Ne = jW(i ? 12 : t ? e.length : e.length || n ? 12 : 0, t && !i, P.view.camera, P.view.size), Pe = i ? Ne.map((e) => ({
...e,
index: -1
})) : t ? Ne : h.assign(Ne, e.length, n).map((t) => t.index < e.length || w && t.key === E ? t : {
...t,
index: -1
- }), Fe = w && (t ? AW(e.length, !0, E) : h.tile(E, e.length)), Ie = Fe ? jW(e.length, t, Fe) : /* @__PURE__ */ new Map();
+ }), Fe = w && (t ? kW(e.length, !0, E) : h.tile(E, e.length)), Ie = Fe ? AW(e.length, t, Fe) : /* @__PURE__ */ new Map();
Fe && !Pe.some((e) => e.key === Fe.key) && Pe.push(Fe);
let Le = (e = !1) => {
C.current?.abort(), C.current = null, S.current?.(e), S.current = null, se(null), de(!1);
@@ -57619,8 +57632,8 @@ function qxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
t,
p,
i
- ]), (0, F.useEffect)(() => Pp.listen((e) => {
- let t = Vf(e.location.pathname);
+ ]), (0, F.useEffect)(() => Np.listen((e) => {
+ let t = Bf(e.location.pathname);
t && (C.current?.abort(), S.current?.(!0), S.current = null, se(null), de(!1)), Te(t);
}), []), (0, F.useEffect)(() => () => {
C.current?.abort(), S.current?.(!0), Me();
@@ -57643,7 +57656,7 @@ function qxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
w?.id !== n.id && Le(!1), Oe.current = {
key: r.key,
id: n.id
- }, pe(""), le(null), T(n), D(r.key), k(null), j(!1), xe(!1), P.reveal(jW(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
+ }, pe(""), le(null), T(n), D(r.key), k(null), j(!1), xe(!1), P.reveal(AW(e.length, t, r).get(r.key) || r, i, !0), i || requestAnimationFrame(() => y.current?.querySelector("[data-wall-play]")?.focus({ preventScroll: !0 }));
}, Ve = () => {
te && y.current && (Me(), Le(!0), l.wallDetails?.(te, y.current.querySelector("[data-wall-focus]") || y.current));
}, He = async (e = te) => {
@@ -57665,7 +57678,7 @@ function qxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
C.current === t && de(!1);
}
}, Ue = () => {
- let e = DP(N || null, oe || 0);
+ let e = EP(N || null, oe || 0);
e && (k(e.id), He(e));
};
(0, F.useEffect)(() => {
@@ -57687,7 +57700,7 @@ function qxe({ 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 ? rbe(e.length, i) : h.nearest(e.length, i, a);
+ }, o = t ? abe(e.length, i) : h.nearest(e.length, i, a);
o && (Be(n, o), le(n.id));
}, qe = async () => {
if (!(r || g.current)) {
@@ -57779,7 +57792,7 @@ function qxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
/* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-focus-backdrop": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(CK, {
+ children: /* @__PURE__ */ (0, I.jsx)(SK, {
item: w,
image: Ee,
big: !0
@@ -57787,7 +57800,7 @@ function qxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-scene": "",
- children: /* @__PURE__ */ (0, I.jsx)(CK, {
+ children: /* @__PURE__ */ (0, I.jsx)(SK, {
item: w,
image: Ee,
big: !0
@@ -57816,7 +57829,7 @@ function qxe({ 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 ? FP(Qe.part_label) : ""].filter(Boolean).join(" · ") }) : null
+ N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Qe.edition_label, Qe.part_label ? PP(Qe.part_label) : ""].filter(Boolean).join(" · ") }) : null
]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -57833,7 +57846,7 @@ function qxe({ 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)(sV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: fe || xn(ee.error)
}), ee.error && !N ? /* @__PURE__ */ (0, I.jsx)(Y, {
@@ -57843,7 +57856,7 @@ function qxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: "立即重试"
}) : null]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Uxe, {
+ /* @__PURE__ */ (0, I.jsx)(Gxe, {
item: Qe,
playing: oe,
frame: b,
@@ -57865,7 +57878,7 @@ function qxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
ended: Ue,
error: pe
}),
- A ? /* @__PURE__ */ (0, I.jsx)(Gxe, {
+ A ? /* @__PURE__ */ (0, I.jsx)(qxe, {
items: We,
activeId: Qe.id,
kind: N?.kind || "wall",
@@ -57881,7 +57894,7 @@ function qxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-refreshing": _ !== null || void 0,
hidden: we,
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), A ? j(!1) : w ? ze() : be ? Re() : xK());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), A ? j(!1) : w ? ze() : be ? Re() : bK());
},
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -57892,7 +57905,7 @@ function qxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-wall-back": "",
"aria-label": "退出播放墙",
title: "返回",
- onClick: xK,
+ onClick: bK,
children: /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -57901,7 +57914,7 @@ function qxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}),
!t && (n || e.length > 0) ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-wall-refresh": "",
- children: /* @__PURE__ */ (0, I.jsx)(kG, {
+ children: /* @__PURE__ */ (0, I.jsx)(OG, {
busy: r,
onPress: () => void Ye()
})
@@ -57927,7 +57940,7 @@ function qxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
onSubmit: (e) => {
e.preventDefault();
let t = new URLSearchParams(location.search), n = String(new FormData(e.currentTarget).get("q") || "").trim();
- n === (t.get("q") || "") ? Re() : (n ? t.set("q", n) : t.delete("q"), Me(), Pp.push(`/wall?${t}`), xe(!1));
+ n === (t.get("q") || "") ? Re() : (n ? t.set("q", n) : t.delete("q"), Me(), Np.push(`/wall?${t}`), xe(!1));
},
children: [/* @__PURE__ */ (0, I.jsx)("button", {
ref: Se,
@@ -57967,7 +57980,7 @@ function qxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}), /* @__PURE__ */ (0, I.jsx)("p", { children: "当前仅显示筛选结果" })] }), /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
variant: "ghost",
- onClick: () => Pp.push(bK()),
+ onClick: () => Np.push(yK()),
children: "清除筛选"
})]
}) : null
@@ -58023,7 +58036,7 @@ function qxe({ 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)(pS.article, {
+ return /* @__PURE__ */ (0, I.jsx)(fS.article, {
layout: !0,
layoutDependency: `${i.x}:${i.y}:${i.width}:${i.height}`,
"data-wall-tile": t.key,
@@ -58044,7 +58057,7 @@ function qxe({ 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: Bxe,
+ layout: Hxe,
transform: a ? {
type: "spring",
stiffness: 360,
@@ -58077,7 +58090,7 @@ function qxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
!n && ["Enter", " "].includes(e.key) && (e.preventDefault(), Be(r, t, !1));
},
children: n ? $e : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(CK, {
+ /* @__PURE__ */ (0, I.jsx)(SK, {
item: r,
image: Ee,
ratio: i.width / i.height
@@ -58103,7 +58116,7 @@ function qxe({ 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)(pS.span, {
+ /* @__PURE__ */ (0, I.jsx)(fS.span, {
"data-wall-dim": "",
animate: { opacity: w ? .65 : 0 },
transition: { duration: ne ? 0 : .24 }
@@ -58115,7 +58128,7 @@ function qxe({ 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)(sV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: a
}), /* @__PURE__ */ (0, I.jsx)(Y, {
@@ -58130,11 +58143,11 @@ function qxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
onClick: async (e) => {
let t = e.target.closest("[data-wall-load-more]");
if (!(!t || r || g.current)) {
- Zc(t);
+ Xc(t);
try {
await qe();
} finally {
- Zc(t, !1);
+ Xc(t, !1);
}
}
},
@@ -58145,20 +58158,20 @@ function qxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: /* @__PURE__ */ (0, I.jsxs)(Y, {
size: "small",
variant: "secondary",
- ...fV(r),
+ ...dV(r),
onClick: () => void qe(),
- children: [r ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Vs() } }) : null, "载入更多"]
+ 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)(sV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: me
}), /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
variant: "ghost",
- ...fV(r),
+ ...dV(r),
onClick: () => void qe(),
children: "立即重试"
})]
@@ -58168,7 +58181,7 @@ function qxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
return (0, Rt.createPortal)(et, Ce);
}
// src/catalog-onboarding.ts
-var wK = [
+var CK = [
"loc",
"creator",
"performer",
@@ -58187,19 +58200,19 @@ var wK = [
"jav",
"thumb"
];
-function Jxe(e = typeof location > "u" ? "/" : location.href) {
+function Xxe(e = typeof location > "u" ? "/" : location.href) {
let t = new URL(e, "http://localhost");
for (let e of [
- ...wK,
+ ...CK,
"q",
"category",
"cat"
]) t.searchParams.delete(e);
return t.searchParams.set("thumb", "0"), t.pathname + (t.search ? t.search : "") + t.hash;
}
-async function Yxe(e, t) {
+async function Zxe(e, t) {
let n = new URLSearchParams();
- for (let t of wK) e[t] && n.set(t, e[t]);
+ for (let t of CK) 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([
...r.creators || [],
...r.tagperformers || [],
@@ -58210,9 +58223,9 @@ async function Yxe(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function TK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
+function wK({ 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 Gs("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(Jxe()) : "/?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(Xxe()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
if (e !== "catalog") {
let t = (i ? {
tags: "标签",
@@ -58225,17 +58238,17 @@ function TK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
agencies: "事务所",
series: "系列"
}[e] || "资料";
- return Gs(e === "tags" ? "tags" : "user-round", "还没有" + t, i ? "添加关注来源并获取内容后,这里会显示来源上的" + t + "。" : "添加内容并补充资料后,这里会显示对应信息。", { actions: i ? o : a + o });
+ return Ws(e === "tags" ? "tags" : "user-round", "还没有" + t, i ? "添加关注来源并获取内容后,这里会显示来源上的" + t + "。" : "添加内容并补充资料后,这里会显示对应信息。", { actions: i ? o : a + o });
}
- return Gs("play", "还没有视频", "添加媒体目录或关注来源,开始建立你的馆藏。", { actions: a + o });
+ return Ws("play", "还没有视频", "添加媒体目录或关注来源,开始建立你的馆藏。", { actions: a + o });
}
// src/react/video-wall/wall-empty.ts
-function Xxe({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
- return e ? r || TK() : t ? Gs("image", "这些视频还没有封面", n ? "载入更多作品后继续浏览。" : "为作品补充封面后,可在播放墙中查看。", { actions: "<a class=\"geist-button primary\" href=\"/data-cleanup\">补全封面</a>" + (n ? "<button type=\"button\" class=\"geist-button\" data-wall-load-more>加载更多</button>" : "") }) : Gs("search", "没有符合筛选条件的视频", "清除筛选条件后查看全部视频。", { actions: `<a class="geist-button primary" href="${bK()}">清除筛选</a>` });
+function Qxe({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
+ return e ? r || wK() : 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="${yK()}">清除筛选</a>` });
}
// src/react/library-processing/processing-actions.tsx
-function EK({ label: e, maintenance: t = !1, children: n }) {
- let r = mH("hover");
+function TK({ label: e, maintenance: t = !1, children: n }) {
+ let r = pH("hover");
return /* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
role: "group",
@@ -58245,13 +58258,13 @@ function EK({ label: e, maintenance: t = !1, children: n }) {
children: n
});
}
-function DK({ option: e, metadataOnly: t, onRun: n }) {
+function EK({ option: e, metadataOnly: t, onRun: n }) {
let r = t && e.command.stage === "previews", i = r || e.disabled;
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
disabled: i,
title: r ? "请先在媒体库设置中开启视频预览生成" : void 0,
- className: J(AV, i ? "cursor-not-allowed opacity-50" : jV, "text-body-2-medium"),
+ className: J(kV, i ? "cursor-not-allowed opacity-50" : AV, "text-body-2-medium"),
onClick: () => n(e.command),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
@@ -58262,12 +58275,12 @@ function DK({ option: e, metadataOnly: t, onRun: n }) {
})
});
}
-function Zxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
+function $xe({ 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 K_e(e, t.signal, a);
+ let o = await J_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(() => {
@@ -58292,7 +58305,7 @@ function Zxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
className: "flex justify-center",
- children: /* @__PURE__ */ (0, I.jsx)(xH, {
+ children: /* @__PURE__ */ (0, I.jsx)(bH, {
value: a,
busy: i,
onChange: (e) => {
@@ -58300,7 +58313,7 @@ function Zxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}
})
}),
- s ? /* @__PURE__ */ (0, I.jsx)(WH, {
+ s ? /* @__PURE__ */ (0, I.jsx)(UH, {
traffic: s,
initial: !0
}) : null,
@@ -58312,7 +58325,7 @@ function Zxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
]
});
}
-function OK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, speedMode: i = "standard", pendingCount: a = 0, onRun: o, onOccupied: s }) {
+function DK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, speedMode: i = "standard", pendingCount: a = 0, onRun: o, onOccupied: s }) {
let c = (0, F.useRef)(null), l = (0, F.useRef)(null), [u, d] = (0, F.useState)(null), f = (0, F.useRef)(i);
(0, F.useEffect)(() => () => l.current?.close(), []);
let [p, m] = (0, F.useState)(!1), h = {
@@ -58360,7 +58373,7 @@ function OK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
description: "为已入库的本地视频生成九宫格",
command: { stage: "previews" }
}
- ], v = e || t, y = e ? fV(!0) : t ? { "aria-disabled": !0 } : {}, b = (a) => {
+ ], v = e || t, y = e ? dV(!0) : t ? { "aria-disabled": !0 } : {}, b = (a) => {
if (e) return;
if (t) {
s?.();
@@ -58372,7 +58385,7 @@ function OK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}
if (l.current) return;
f.current = i;
- let c = a.stage === "previews", u = a.scope === "new" ? "补全待处理影片" : a.incremental ? a.stage === "scan" ? "发现新增文件" : "同步新增文件" : c ? "仅补全预览图" : a.stage === "scan" ? "扫描全部文件" : a.stage === "metadata" ? "仅补全影片资料" : a.stage === "collect" ? "补全已入库影片" : "同步整个媒体库", p = cl({
+ let c = a.stage === "previews", u = a.scope === "new" ? "补全待处理影片" : a.incremental ? a.stage === "scan" ? "发现新增文件" : "同步新增文件" : c ? "仅补全预览图" : a.stage === "scan" ? "扫描全部文件" : a.stage === "metadata" ? "仅补全影片资料" : a.stage === "collect" ? "补全已入库影片" : "同步整个媒体库", p = sl({
title: u,
description: `${a.scope === "new" ? "为这组已登记的影片补全资料和视频属性,并按设置生成预览" : a.incremental ? a.stage === "scan" ? "发现并登记未入库的新文件,保留已有影片资料" : `发现新文件,仅补全新增及未完成影片的资料和视频属性${r ? "" : ",并生成本地预览图"}` : c ? "为本地视频补全九宫格预览图,会读取视频并占用处理器" : a.stage === "scan" ? "扫描目录并登记文件,按目录设置读取视频时长和分辨率" : a.stage === "metadata" ? "读取配套资料,补全影片资料、封面和人物资料" : `${a.stage === "collect" ? "为已入库影片补全资料和视频属性" : "扫描目录发现文件,再补全资料和视频属性"}${r ? "" : ",并生成本地预览图"}`},可能让电脑变慢。需要同时使用电脑时,可选择低占用模式。`,
body: "<div class=\"peach-react\" data-processing-prompt></div>",
@@ -58395,7 +58408,7 @@ function OK({ 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)(Zxe, {
+ u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)($xe, {
command: u.command,
dialog: u.dialog,
speed: i,
@@ -58404,11 +58417,11 @@ function OK({ 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)(dH, {
+ u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(uH, {
href: "/settings/library",
size: "small",
variant: "primary",
- trailingIcon: gB,
+ trailingIcon: hB,
disabled: v,
onClick: (e) => {
u.dialog.confirmButton.getAttribute("aria-busy") === "true" ? e.preventDefault() : u.dialog.close();
@@ -58426,7 +58439,7 @@ function OK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}), /* @__PURE__ */ (0, I.jsx)(Y, {
ref: c,
iconOnly: !0,
- leadingIcon: hB,
+ leadingIcon: mB,
"aria-label": "更多同步方式",
"aria-haspopup": "dialog",
"aria-expanded": p,
@@ -58436,27 +58449,27 @@ function OK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}
})]
}),
- /* @__PURE__ */ (0, I.jsx)(lz, {
+ /* @__PURE__ */ (0, I.jsx)(cz, {
triggerRef: c,
isOpen: p,
onOpenChange: m,
placement: "bottom end",
offset: 4,
- className: kV,
- children: /* @__PURE__ */ (0, I.jsxs)(Sz, {
+ className: OV,
+ children: /* @__PURE__ */ (0, I.jsxs)(xz, {
"aria-label": "同步方式",
className: "flex w-80 flex-col gap-1 outline-none",
- children: [n ? /* @__PURE__ */ (0, I.jsxs)(EK, {
+ children: [n ? /* @__PURE__ */ (0, I.jsxs)(TK, {
label: "日常同步",
children: [/* @__PURE__ */ (0, I.jsx)("p", {
className: "px-2 py-1 text-caption-1-medium text-text-secondary",
children: "日常同步"
- }), g.map((e) => /* @__PURE__ */ (0, I.jsx)(DK, {
+ }), g.map((e) => /* @__PURE__ */ (0, I.jsx)(EK, {
option: e,
metadataOnly: r,
onRun: b
}, e.label))]
- }) : null, /* @__PURE__ */ (0, I.jsxs)(EK, {
+ }) : null, /* @__PURE__ */ (0, I.jsxs)(TK, {
label: n ? "全库维护" : "补全方式",
maintenance: n,
children: [n ? /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -58468,7 +58481,7 @@ function OK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
className: "text-caption-1-regular text-text-secondary",
children: "检查全部文件,复用已有资料和预览"
})]
- }) : null, _.map((e) => /* @__PURE__ */ (0, I.jsx)(DK, {
+ }) : null, _.map((e) => /* @__PURE__ */ (0, I.jsx)(EK, {
option: e,
metadataOnly: r,
onRun: b
@@ -58479,48 +58492,48 @@ function OK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
] });
}
// src/react/library-processing/library-completion.tsx
-function kK(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) && !Eo(e, "small", !1, t).html).map((e) => e.id))];
+function OK(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 AK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
- return e.length ? /* @__PURE__ */ (0, I.jsx)(Qxe, {
+function kK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
+ return e.length ? /* @__PURE__ */ (0, I.jsx)(eSe, {
assetIds: e,
onComplete: t,
className: n
}) : null;
}
-function Qxe({ assetIds: e, onComplete: t, className: n }) {
+function eSe({ assetIds: e, onComplete: t, className: n }) {
let r = Ft({
- queryKey: YV,
- queryFn: ({ signal: e }) => rH(e),
- refetchInterval: (e) => oH(e.state.data, !0)
+ queryKey: JV,
+ queryFn: ({ signal: e }) => nH(e),
+ refetchInterval: (e) => aH(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(JV, {
+ mutationFn: (t) => V(qV, {
...t,
asset_ids: e
}),
onSuccess: (e) => {
- a(e.job_id || null), H.setQueryData(YV, e), H.invalidateQueries({ queryKey: YV });
+ a(e.job_id || null), H.setQueryData(JV, e), H.invalidateQueries({ queryKey: JV });
}
}), u = r.data;
(0, F.useEffect)(() => {
- u && i && u.job_id === i && !QV(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 && !ZV(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 || QV(u), f = l.error ? lr(l.error) : r.error ? aH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${QV(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
+ let d = l.isPending || ZV(u), f = l.error ? lr(l.error) : r.error ? iH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${ZV(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
return /* @__PURE__ */ (0, I.jsx)("section", {
"aria-label": "补全预览",
"aria-live": "polite",
"data-library-completion": "",
className: J("@container", n),
- children: /* @__PURE__ */ (0, I.jsxs)(sV, {
+ children: /* @__PURE__ */ (0, I.jsxs)(oV, {
tone: f ? "warning" : "neutral",
action: /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex flex-wrap items-center gap-2",
- children: /* @__PURE__ */ (0, I.jsx)(OK, {
+ children: /* @__PURE__ */ (0, I.jsx)(DK, {
busy: d,
metadataOnly: u?.metadata_only,
onRun: (e) => {
@@ -58531,10 +58544,10 @@ function Qxe({ assetIds: e, onComplete: t, className: n }) {
children: [
p,
" ",
- /* @__PURE__ */ (0, I.jsx)(dH, {
+ /* @__PURE__ */ (0, I.jsx)(uH, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: gB,
+ trailingIcon: hB,
children: f ? "打开扫描与采集" : "查看处理详情"
})
]
@@ -58542,31 +58555,31 @@ function Qxe({ assetIds: e, onComplete: t, className: n }) {
});
}
// node_modules/@tanstack/react-table/dist/FlexRender.js
-function $xe(e) {
- return eSe(e) || typeof e == "function" || tSe(e);
+function tSe(e) {
+ return nSe(e) || typeof e == "function" || rSe(e);
}
-function eSe(e) {
+function nSe(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function tSe(e) {
+function rSe(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function jK(e, t) {
- return e == null ? null : $xe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;
+function AK(e, t) {
+ return e == null ? null : tSe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;
}
-function nSe(e) {
+function iSe(e) {
if ("cell" in e && e.cell) {
let t = e.cell, n = t.column.columnDef, r = t, i = n;
- return r.getIsAggregated?.() ? jK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : jK(n.cell, t.getContext());
+ return r.getIsAggregated?.() ? AK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : AK(n.cell, t.getContext());
}
- return "header" in e && e.header ? jK(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? jK(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
+ return "header" in e && e.header ? AK(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? AK(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
}
// node_modules/@tanstack/store/dist/alien.js
/* @__NO_SIDE_EFFECTS__ */
-function rSe({ update: e, notify: t, unwatched: n }) {
+function aSe({ update: e, notify: t, unwatched: n }) {
return {
link: r,
unlink: i,
@@ -58683,7 +58696,7 @@ function rSe({ update: e, notify: t, unwatched: n }) {
}
}
// node_modules/@tanstack/store/dist/atom.js
-function iSe(e, t, n) {
+function oSe(e, t, n) {
let r = typeof e == "object", i = r ? e : void 0;
return {
next: (r ? e.next : e)?.bind(i),
@@ -58691,38 +58704,38 @@ function iSe(e, t, n) {
complete: (r ? e.complete : n)?.bind(i)
};
}
-var MK = [], NK = 0, { link: PK, unlink: aSe, propagate: oSe, checkDirty: FK, shallowPropagate: IK } = /* @__PURE__ */ rSe({
+var jK = [], MK = 0, { link: NK, unlink: sSe, propagate: cSe, checkDirty: PK, shallowPropagate: FK } = /* @__PURE__ */ aSe({
update(e) {
return e._update();
},
notify(e) {
- MK[RK++] = e, e.flags &= -3;
+ jK[LK++] = e, e.flags &= -3;
},
unwatched(e) {
- e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, VK(e));
+ e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, BK(e));
}
-}), LK = 0, RK = 0, zK, BK = 0;
-function sSe(e) {
+}), IK = 0, LK = 0, RK, zK = 0;
+function lSe(e) {
try {
- ++BK, e();
+ ++zK, e();
} finally {
- --BK || HK();
+ --zK || VK();
}
}
-function VK(e) {
+function BK(e) {
let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
- for (; n !== void 0;) n = aSe(n, e);
+ for (; n !== void 0;) n = sSe(n, e);
}
-function HK() {
- if (!(BK > 0)) {
- for (; LK < RK;) {
- let e = MK[LK];
- MK[LK++] = void 0, e.notify();
+function VK() {
+ if (!(zK > 0)) {
+ for (; IK < LK;) {
+ let e = jK[IK];
+ jK[IK++] = void 0, e.notify();
}
- LK = 0, RK = 0;
+ IK = 0, LK = 0;
}
}
-function cSe(e, t) {
+function uSe(e, t) {
let n = typeof e == "function", r = e, i = {
_snapshot: n ? void 0 : e,
subs: void 0,
@@ -58731,53 +58744,53 @@ function cSe(e, t) {
depsTail: void 0,
flags: +!n,
get() {
- return zK !== void 0 && PK(i, zK, NK), i._snapshot;
+ return RK !== void 0 && NK(i, RK, MK), i._snapshot;
},
subscribe(e) {
- let t = iSe(e), n = { current: !1 }, r = lSe(() => {
- i.get(), n.current ? (zK = void 0, t.next?.(i._snapshot)) : n.current = !0;
+ let t = oSe(e), n = { current: !1 }, r = dSe(() => {
+ i.get(), n.current ? (RK = void 0, t.next?.(i._snapshot)) : n.current = !0;
});
return { unsubscribe: () => {
r.stop();
} };
},
_update(e) {
- let a = zK, o = t?.compare ?? Object.is;
- if (n) zK = i, ++NK, i.depsTail = void 0;
+ let a = RK, o = t?.compare ?? Object.is;
+ if (n) RK = i, ++MK, i.depsTail = void 0;
else if (e === void 0) return !1;
n && (i.flags = 5);
try {
let t = i._snapshot, a = typeof e == "function" ? e(t) : e === void 0 && n ? r(t) : e;
return t === void 0 || !o(t, a) ? (i._snapshot = a, !0) : !1;
} finally {
- zK = a, n && (i.flags &= -5), VK(i);
+ RK = a, n && (i.flags &= -5), BK(i);
}
}
};
return n ? (i.flags = 17, i.get = function() {
let e = i.flags;
- if (e & 16 || e & 32 && FK(i.deps, i)) {
+ if (e & 16 || e & 32 && PK(i.deps, i)) {
if (i._update()) {
let e = i.subs;
- e !== void 0 && IK(e);
+ e !== void 0 && FK(e);
}
} else e & 32 && (i.flags = e & -33);
- return zK !== void 0 && PK(i, zK, NK), i._snapshot;
+ return RK !== void 0 && NK(i, RK, MK), i._snapshot;
}) : i.set = function(e) {
if (i._update(e)) {
let e = i.subs;
- e !== void 0 && (oSe(e), IK(e), HK());
+ e !== void 0 && (cSe(e), FK(e), VK());
}
}, i;
}
-function lSe(e) {
+function dSe(e) {
let t = () => {
- let t = zK;
- zK = n, ++NK, n.depsTail = void 0, n.flags = 6;
+ let t = RK;
+ RK = n, ++MK, n.depsTail = void 0, n.flags = 6;
try {
return e();
} finally {
- zK = t, n.flags &= -5, VK(n);
+ RK = t, n.flags &= -5, BK(n);
}
}, n = {
deps: void 0,
@@ -58787,16 +58800,16 @@ function lSe(e) {
flags: 6,
notify() {
let e = this.flags;
- e & 16 || e & 32 && FK(this.deps, this) ? t() : this.flags = 2;
+ e & 16 || e & 32 && PK(this.deps, this) ? t() : this.flags = 2;
},
stop() {
- this.flags = 0, this.depsTail = void 0, VK(this);
+ this.flags = 0, this.depsTail = void 0, BK(this);
}
};
return t(), n;
}
// node_modules/@tanstack/store/dist/shallow.js
-function UK(e, t) {
+function HK(e, t) {
if (Object.is(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
if (e instanceof Map && t instanceof Map) {
@@ -58810,17 +58823,17 @@ function UK(e, t) {
return !0;
}
if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
- let n = WK(e);
- if (n.length !== WK(t).length) return !1;
+ let n = UK(e);
+ if (n.length !== UK(t).length) return !1;
for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !Object.is(e[n[r]], t[n[r]])) return !1;
return !0;
}
-function WK(e) {
+function UK(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 uSe = /* @__PURE__ */ o(((e) => {
- var t = A(), n = iw();
+var fSe = /* @__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;
}
@@ -58864,33 +58877,33 @@ var uSe = /* @__PURE__ */ o(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), GK = /* @__PURE__ */ o(((e, t) => {
- t.exports = uSe();
-})), dSe = GK();
-function fSe(e, t) {
+})), WK = /* @__PURE__ */ o(((e, t) => {
+ t.exports = fSe();
+})), pSe = WK();
+function mSe(e, t) {
return e === t;
}
-function KK(e, t = (e) => e, n) {
- let r = n?.compare ?? fSe, i = (0, F.useCallback)((t) => {
+function GK(e, t = (e) => e, n) {
+ let r = n?.compare ?? mSe, i = (0, F.useCallback)((t) => {
let { unsubscribe: n } = e.subscribe(t);
return n;
}, [e]), a = (0, F.useCallback)(() => e.get(), [e]);
- return (0, dSe.useSyncExternalStoreWithSelector)(i, a, a, t, r);
+ return (0, pSe.useSyncExternalStoreWithSelector)(i, a, a, t, r);
}
// node_modules/@tanstack/react-table/dist/Subscribe.js
-function pSe(e) {
- let t = KK(e.source, e.selector, { compare: UK });
+function hSe(e) {
+ let t = GK(e.source, e.selector, { compare: HK });
return typeof e.children == "function" ? e.children(t) : e.children;
}
// node_modules/@tanstack/table-core/dist/core/reactivity/coreReactivityFeature.utils.js
-function mSe(e) {
+function gSe(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 hSe(e) {
+function _Se(e) {
let { createAtom: t, batch: n } = e, r = t(0);
return {
createOptionsStore: !1,
@@ -58920,7 +58933,7 @@ function hSe(e) {
}
};
}
-function gSe(e, t = Object.is) {
+function vSe(e, t = Object.is) {
let n = !1, r;
return {
get: e.get,
@@ -58933,28 +58946,28 @@ function gSe(e, t = Object.is) {
};
}
// node_modules/@tanstack/react-table/dist/reactivity.js
-function _Se() {
- return hSe({
- createAtom: cSe,
- batch: sSe
+function ySe() {
+ return _Se({
+ createAtom: uSe,
+ batch: lSe
});
}
// node_modules/@tanstack/table-core/dist/utils.js
-function qK(e, t) {
+function KK(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function JK(e) {
- if (Array.isArray(e)) return e.map(JK);
+function qK(e) {
+ if (Array.isArray(e)) return e.map(qK);
if (e && typeof e == "object") {
let t = Object.getPrototypeOf(e);
if (t !== Object.prototype && t !== null) return e;
- let n = t === null ? XK() : {}, r = Object.keys(e);
+ let n = t === null ? YK() : {}, r = Object.keys(e);
for (let t = 0; t < r.length; t++) {
let i = r[t];
Object.defineProperty(n, i, {
configurable: !0,
enumerable: !0,
- value: JK(e[i]),
+ value: qK(e[i]),
writable: !0
});
}
@@ -58962,7 +58975,7 @@ function JK(e) {
}
return e;
}
-function YK(e, t) {
+function JK(e, t) {
let n = Object.keys(t), r = e;
for (let e = 0; e < n.length; e++) {
let i = n[e];
@@ -58970,53 +58983,53 @@ function YK(e, t) {
}
return e;
}
-function XK() {
+function YK() {
return Object.create(null);
}
-function ZK(e, t) {
+function XK(e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}
-function QK(e, t) {
+function ZK(e, t) {
return (n) => {
- (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => qK(n, e));
+ (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => KK(n, e));
};
}
-function $K(e) {
+function QK(e) {
if (typeof e != "object" || !e) return !1;
if (Array.isArray(e)) return !0;
let t = Object.getPrototypeOf(e);
return t === Object.prototype || t === null;
}
-function eq(e) {
+function $K(e) {
return Reflect.ownKeys(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
-var vSe = 3;
-function ySe(e, t) {
- return tq(e, t, vSe);
+var bSe = 3;
+function xSe(e, t) {
+ return eq(e, t, bSe);
}
-function tq(e, t, n) {
+function eq(e, t, n) {
if (Object.is(e, t)) return !0;
- if (n <= 0 || !$K(e) || !$K(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
- let r = eq(e), i = eq(t);
+ if (n <= 0 || !QK(e) || !QK(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
+ let r = $K(e), i = $K(t);
if (r.length !== i.length) return !1;
let a = e, o = t;
for (let e = 0; e < r.length; e++) {
let i = r[e];
- if (!Object.prototype.propertyIsEnumerable.call(t, i) || !tq(a[i], o[i], n - 1)) return !1;
+ if (!Object.prototype.propertyIsEnumerable.call(t, i) || !eq(a[i], o[i], n - 1)) return !1;
}
return !0;
}
-function nq(e, t, n, r = ySe) {
+function tq(e, t, n, r = xSe) {
let i = `on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`, a = e.options[i];
a && a((e) => {
- let t = qK(n, e);
+ let t = KK(n, e);
return r(e, t) ? e : t;
});
}
-function bSe(e) {
+function SSe(e) {
return e instanceof Function;
}
-function xSe(e, t) {
+function CSe(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -59026,7 +59039,7 @@ function xSe(e, t) {
};
return r(e), n;
}
-var SSe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
+var wSe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
let o = [], s;
return (c) => {
i?.();
@@ -59040,23 +59053,23 @@ var SSe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCo
return n?.(u), u && (o = l, a?.(), s = e(...l ?? []), r?.(s)), s;
};
};
-function rq(e) {
+function nq(e) {
let t = !1;
return () => {
t ? e() : t = !0;
};
}
-function iq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {
+function rq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {
let o = { onAfterUpdate: r ? () => {
let { schedule: e, untrack: t } = i._reactivity;
e(() => t(() => r()));
} : void 0 };
- return SSe({
+ return wSe({
...a,
...o
});
}
-function aq(e, t = "_") {
+function iq(e, t = "_") {
let [n, r] = e.replace(t, " ").split(" ");
return {
fnKey: r,
@@ -59064,10 +59077,10 @@ function aq(e, t = "_") {
parentName: n
};
}
-function oq(e, t, n) {
+function aq(e, t, n) {
for (let [r, { fn: i, memoDeps: a }] of Object.entries(n)) {
- let { fnKey: n, fnName: o } = aq(r);
- t[n] = a ? iq({
+ let { fnKey: n, fnName: o } = iq(r);
+ t[n] = a ? rq({
memoDeps: a,
fn: i,
fnName: o,
@@ -59076,15 +59089,15 @@ function oq(e, t, n) {
}) : i;
}
}
-function sq(e, t, n, r) {
+function oq(e, t, n, r) {
for (let [i, { fn: a, memoDeps: o }] of Object.entries(r)) {
- let { fnKey: r, fnName: s } = aq(i);
+ let { fnKey: r, fnName: s } = iq(i);
if (o) {
let i = `_memo_${r}`;
t[r] = function(...t) {
if (!this[i]) {
let t = this;
- this[i] = iq({
+ this[i] = rq({
memoDeps: (e) => o(t, e),
fn: (...e) => a(t, ...e),
fnName: s,
@@ -59100,17 +59113,17 @@ function sq(e, t, n, r) {
};
}
}
-function cq(e, t, n, ...r) {
+function sq(e, t, n, ...r) {
return e[t]?.(...r) ?? n(e, ...r);
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.utils.js
-function CSe(e) {
+function TSe(e) {
return e.row.getValue(e.column.id);
}
-function wSe(e) {
+function ESe(e) {
return e.getValue() ?? e.table.options.renderFallbackValue;
}
-function TSe(e) {
+function DSe(e) {
return {
table: e.table,
column: e.column,
@@ -59121,18 +59134,18 @@ function TSe(e) {
};
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.js
-var ESe = { assignCellPrototype: (e, t) => {
- sq("coreCellsFeature", e, t, {
- cell_getValue: { fn: (e) => CSe(e) },
- cell_renderValue: { fn: (e) => wSe(e) },
+var OSe = { assignCellPrototype: (e, t) => {
+ oq("coreCellsFeature", e, t, {
+ cell_getValue: { fn: (e) => TSe(e) },
+ cell_renderValue: { fn: (e) => ESe(e) },
cell_getContext: {
- fn: (e) => TSe(e),
+ fn: (e) => DSe(e),
memoDeps: (e) => [e]
}
});
} };
// node_modules/@tanstack/table-core/dist/core/columns/constructColumn.js
-function DSe(e) {
+function kSe(e) {
if (!e._columnPrototype) {
e._columnPrototype = { table: e };
let t = Object.values(e._features);
@@ -59140,7 +59153,7 @@ function DSe(e) {
}
return e._columnPrototype;
}
-function OSe(e, t, n, r) {
+function ASe(e, t, n, r) {
let i = {
...e.getDefaultColumnDef(),
...t
@@ -59160,53 +59173,53 @@ function OSe(e, t, n, r) {
} else c = (e) => e[i.accessorKey];
}
if (!s) throw Error();
- let l = DSe(e), u = Object.create(l);
+ let l = kSe(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);
return u;
}
// node_modules/@tanstack/table-core/dist/core/featureStubs.js
-function lq(e) {
+function cq(e) {
return e.getIsVisible?.() ?? !0;
}
-function kSe(e) {
+function jSe(e) {
return e.getVisibleLeafColumns?.() ?? e.getAllLeafColumns();
}
-function uq(e, t) {
+function lq(e, t) {
let n = e, r = t;
return n.getOrderColumnsFn?.()(r) ?? n._orderGroupedColumns?.(r) ?? t;
}
-function dq(e, t, n, r) {
+function uq(e, t, n, r) {
return e._orderByColumnPinning?.(t, n, r) ?? t;
}
-function fq(e, t) {
+function dq(e, t) {
return e._expandRows?.(t) ?? t;
}
-function ASe(e) {
+function MSe(e) {
e.autoResetExpanded?.();
}
-function pq(e) {
+function fq(e) {
e.autoResetPageIndex?.();
}
-function jSe(e) {
+function NSe(e) {
e.autoResetSorting?.();
}
-function MSe(e) {
+function PSe(e) {
e.autoResetCellSelection?.();
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.utils.js
-function NSe(e) {
+function FSe(e) {
return [e, ...e.columns.flatMap((e) => e.getFlatColumns())];
}
-function PSe(e) {
+function ISe(e) {
if (e.columns.length) {
let t = e.columns.flatMap((e) => e.getLeafColumns());
- return uq(e.table, t);
+ return lq(e.table, t);
}
return [e];
}
-function FSe(e) {
+function LSe(e) {
return {
header: (e) => {
let t = e.header.column.columnDef;
@@ -59217,53 +59230,53 @@ function FSe(e) {
...e.options.defaultColumn
};
}
-function mq(e, t, n, r = 0) {
+function pq(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 = OSe(e, o, r, n), c = o;
- s.columns = c.columns ? mq(e, c.columns, s, r + 1) : [], i[a] = s;
+ let o = t[a], s = ASe(e, o, r, n), c = o;
+ s.columns = c.columns ? pq(e, c.columns, s, r + 1) : [], i[a] = s;
}
return i;
}
-function ISe(e) {
- return mq(e, e.options.columns);
+function RSe(e) {
+ return pq(e, e.options.columns);
}
-function LSe(e) {
+function zSe(e) {
return e.getAllColumns().flatMap((e) => e.getFlatColumns());
}
-function RSe(e) {
- let t = XK(), n = e.getAllFlatColumns();
+function BSe(e) {
+ let t = YK(), n = e.getAllFlatColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function zSe(e) {
- return uq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
+function VSe(e) {
+ return lq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
}
-function BSe(e) {
- let t = XK(), n = e.getAllLeafColumns();
+function HSe(e) {
+ let t = YK(), n = e.getAllLeafColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function VSe(e, t) {
+function USe(e, t) {
return e.getAllFlatColumnsById()[t];
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.js
-var HSe = {
+var WSe = {
assignColumnPrototype: (e, t) => {
- sq("coreColumnsFeature", e, t, {
+ oq("coreColumnsFeature", e, t, {
column_getFlatColumns: {
- fn: (e) => NSe(e),
+ fn: (e) => FSe(e),
memoDeps: (e) => [e.table.options.columns]
},
column_getLeafColumns: {
- fn: (e) => PSe(e),
+ fn: (e) => ISe(e),
memoDeps: (e) => [
e.table.atoms.columnOrder?.get(),
e.table.atoms.grouping?.get(),
@@ -59274,25 +59287,25 @@ var HSe = {
});
},
constructTableAPIs: (e) => {
- oq("coreColumnsFeature", e, {
+ aq("coreColumnsFeature", e, {
table_getDefaultColumnDef: {
- fn: () => FSe(e),
+ fn: () => LSe(e),
memoDeps: () => [e.options.defaultColumn]
},
table_getAllColumns: {
- fn: () => ISe(e),
+ fn: () => RSe(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumns: {
- fn: () => LSe(e),
+ fn: () => zSe(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumnsById: {
- fn: () => RSe(e),
+ fn: () => BSe(e),
memoDeps: () => [e.options.columns]
},
table_getAllLeafColumns: {
- fn: () => zSe(e),
+ fn: () => VSe(e),
memoDeps: () => [
e.atoms.columnOrder?.get(),
e.atoms.grouping?.get(),
@@ -59301,15 +59314,15 @@ var HSe = {
]
},
table_getAllLeafColumnsById: {
- fn: () => BSe(e),
+ fn: () => HSe(e),
memoDeps: () => [e.getAllLeafColumns()]
},
- table_getColumn: { fn: (t) => VSe(e, t) }
+ table_getColumn: { fn: (t) => USe(e, t) }
});
}
};
// node_modules/@tanstack/table-core/dist/core/headers/constructHeader.js
-function USe(e) {
+function GSe(e) {
if (!e._headerPrototype) {
e._headerPrototype = { table: e };
let t = Object.values(e._features);
@@ -59317,38 +59330,38 @@ function USe(e) {
}
return e._headerPrototype;
}
-function hq(e, t, n) {
- let r = USe(e), i = Object.create(r);
+function mq(e, t, n) {
+ let r = GSe(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);
return i;
}
// node_modules/@tanstack/table-core/dist/core/headers/buildHeaderGroups.js
-function gq(e, t = 1) {
+function hq(e, t = 1) {
let n = t;
for (let r = 0; r < e.length; r++) {
let i = e[r];
- lq(i) && i.columns.length && (n = Math.max(n, gq(i.columns, t + 1)));
+ cq(i) && i.columns.length && (n = Math.max(n, hq(i.columns, t + 1)));
}
return n;
}
-function WSe(e, t) {
+function KSe(e, t) {
return e ? `${e}_${t}` : String(t);
}
-function GSe(e, t, n, r) {
+function qSe(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 KSe(e, t) {
+function JSe(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) e[r].column === t && n++;
return n;
}
-function _q(e, t, n, r, i, a) {
+function gq(e, t, n, r, i, a) {
let o = {
depth: t,
- id: WSe(r, t),
+ id: KSe(r, t),
headers: []
}, s = [];
for (let i = 0; i < e.length; i++) {
@@ -59356,10 +59369,10 @@ function _q(e, t, n, r, i, a) {
let a = e[i], c = s[s.length - 1], l = a.column.depth === o.depth, u, d = !1;
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 = hq(n, u, {
- id: GSe(r, t, u.id, a.id),
+ let e = mq(n, u, {
+ id: qSe(r, t, u.id, a.id),
isPlaceholder: d,
- placeholderId: d ? String(KSe(s, u)) : void 0,
+ placeholderId: d ? String(JSe(s, u)) : void 0,
depth: t,
index: s.length
});
@@ -59368,18 +59381,18 @@ function _q(e, t, n, r, i, a) {
o.headers.push(a), a.headerGroup = o;
}
for (let e = 0; e < a.length; e++) a[e](o);
- i.push(o), t > 0 && _q(s, t - 1, n, r, i, a);
+ i.push(o), t > 0 && gq(s, t - 1, n, r, i, a);
}
-function vq(e) {
+function _q(e) {
for (let t = 0; t < e.length; t++) {
let n = e[t];
- if (!lq(n.column)) continue;
+ if (!cq(n.column)) continue;
let r = 0;
if (n.subHeaders.length) {
- vq(n.subHeaders);
+ _q(n.subHeaders);
for (let e = 0; e < n.subHeaders.length; e++) {
let t = n.subHeaders[e];
- lq(t.column) && (r += t.colSpan);
+ cq(t.column) && (r += t.colSpan);
}
} else r = 1;
if (n.colSpan = r, n.isPlaceholder && n.subHeaders.length === 1 && n.subHeaders[0].column === n.column) {
@@ -59389,37 +59402,37 @@ function vq(e) {
} else n.rowSpan = 1;
}
}
-function qSe(e, t, n, r) {
- let i = gq(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
- for (let e = 0; e < t.length; e++) e in t && (s[e] = hq(n, t[e], {
+function YSe(e, t, n, r) {
+ let i = hq(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
+ for (let e = 0; e < t.length; e++) e in t && (s[e] = mq(n, t[e], {
depth: i,
index: e
}));
- return _q(s, i - 1, n, r, a, o), a.reverse(), vq(a[0]?.headers ?? []), a;
+ return gq(s, i - 1, n, r, a, o), a.reverse(), _q(a[0]?.headers ?? []), a;
}
// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.utils.js
-function yq(e, t) {
- for (let n = 0; n < e.subHeaders.length; n++) yq(e.subHeaders[n], t);
+function vq(e, t) {
+ for (let n = 0; n < e.subHeaders.length; n++) vq(e.subHeaders[n], t);
t.push(e);
}
-function JSe(e) {
+function XSe(e) {
let t = [];
- return yq(e, t), t;
+ return vq(e, t), t;
}
-function YSe(e) {
+function ZSe(e) {
return {
column: e.column,
header: e,
table: e.column.table
};
}
-function XSe(e) {
- return qSe(e.getAllColumns(), dq(e, kSe(e), (e) => e.id), e);
+function QSe(e) {
+ return YSe(e.getAllColumns(), uq(e, jSe(e), (e) => e.id), e);
}
-function ZSe(e) {
+function $Se(e) {
return [...e.getHeaderGroups()].reverse();
}
-function QSe(e) {
+function eCe(e) {
let t = e.getHeaderGroups(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].headers;
@@ -59427,7 +59440,7 @@ function QSe(e) {
}
return n;
}
-function $Se(e) {
+function tCe(e) {
let t = e.getHeaderGroups()[0]?.headers ?? [], n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].getLeafHeaders();
@@ -59436,23 +59449,23 @@ function $Se(e) {
return n;
}
// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.js
-var eCe = {
+var nCe = {
assignHeaderPrototype: (e, t) => {
- sq("coreHeadersFeature", e, t, {
+ oq("coreHeadersFeature", e, t, {
header_getLeafHeaders: {
- fn: (e) => JSe(e),
+ fn: (e) => XSe(e),
memoDeps: (e) => [e.column.table.options.columns]
},
header_getContext: {
- fn: (e) => YSe(e),
+ fn: (e) => ZSe(e),
memoDeps: (e) => [e.column.table.options.columns]
}
});
},
constructTableAPIs: (e) => {
- oq("coreHeadersFeature", e, {
+ aq("coreHeadersFeature", e, {
table_getHeaderGroups: {
- fn: () => XSe(e),
+ fn: () => QSe(e),
memoDeps: () => [
e.options.columns,
e.atoms.columnOrder?.get(),
@@ -59463,22 +59476,22 @@ var eCe = {
]
},
table_getFooterGroups: {
- fn: () => ZSe(e),
+ fn: () => $Se(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getFlatHeaders: {
- fn: () => QSe(e),
+ fn: () => eCe(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getLeafHeaders: {
- fn: () => $Se(e),
+ fn: () => tCe(e),
memoDeps: () => [e.getHeaderGroups()]
}
});
}
};
// node_modules/@tanstack/table-core/dist/core/rows/constructRow.js
-function tCe(e) {
+function rCe(e) {
if (!e._rowPrototype) {
e._rowPrototype = { table: e };
let t = Object.values(e._features);
@@ -59486,98 +59499,98 @@ function tCe(e) {
}
return e._rowPrototype;
}
-var nCe = (e, t, n, r, i, a, o) => {
- let s = tCe(e), c = Object.create(s);
- c._displayIndexCache = -1, c._uniqueValuesCache = XK(), c._valuesCache = XK(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];
+var iCe = (e, t, n, r, i, a, o) => {
+ let s = rCe(e), c = Object.create(s);
+ c._displayIndexCache = -1, c._uniqueValuesCache = YK(), c._valuesCache = YK(), 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 rCe() {
- return (e) => iq({
+function aCe() {
+ return (e) => rq({
feature: "coreRowModelsFeature",
table: e,
fnName: "table.getCoreRowModel",
memoDeps: () => [e.options.data],
- fn: () => iCe(e, e.options.data),
- onAfterUpdate: rq(() => {
- ASe(e), pq(e), jSe(e), MSe(e);
+ fn: () => oCe(e, e.options.data),
+ onAfterUpdate: nq(() => {
+ MSe(e), fq(e), NSe(e), PSe(e);
})
});
}
-function bq(e, t, n, r = 0, i) {
+function yq(e, t, n, r = 0, i) {
let a = [];
for (let o = 0; o < n.length; o++) {
- let s = n[o], c = nCe(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 = bq(e, t, c.originalSubRows, r + 1, c)));
+ let s = n[o], c = iCe(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 = yq(e, t, c.originalSubRows, r + 1, c)));
}
return a;
}
-function iCe(e, t) {
+function oCe(e, t) {
let n = {
rows: [],
flatRows: [],
- rowsById: XK()
+ rowsById: YK()
};
- return n.rows = bq(e, n, t), n;
+ return n.rows = yq(e, n, t), n;
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.utils.js
-function aCe(e) {
- return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? rCe()(e)), e._rowModels.coreRowModel();
+function sCe(e) {
+ return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? aCe()(e)), e._rowModels.coreRowModel();
}
-function oCe(e) {
+function cCe(e) {
return e.getCoreRowModel();
}
-function sCe(e) {
+function lCe(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 cCe(e) {
+function uCe(e) {
return e.getFilteredRowModel();
}
-function lCe(e) {
+function dCe(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 uCe(e) {
+function fCe(e) {
return e.getGroupedRowModel();
}
-function dCe(e) {
+function pCe(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 fCe(e) {
+function mCe(e) {
return e.getSortedRowModel();
}
-function pCe(e) {
+function hCe(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 mCe(e) {
+function gCe(e) {
return e.getExpandedRowModel();
}
-function hCe(e) {
+function _Ce(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 gCe(e) {
+function vCe(e) {
return e.getPaginatedRowModel();
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.js
-var _Ce = { constructTableAPIs: (e) => {
- oq("coreRowModelsFeature", e, {
- table_getCoreRowModel: { fn: () => aCe(e) },
- table_getPreFilteredRowModel: { fn: () => oCe(e) },
- table_getFilteredRowModel: { fn: () => sCe(e) },
- table_getPreGroupedRowModel: { fn: () => cCe(e) },
- table_getGroupedRowModel: { fn: () => lCe(e) },
- table_getPreSortedRowModel: { fn: () => uCe(e) },
- table_getSortedRowModel: { fn: () => dCe(e) },
- table_getPreExpandedRowModel: { fn: () => fCe(e) },
- table_getExpandedRowModel: { fn: () => pCe(e) },
- table_getPrePaginatedRowModel: { fn: () => mCe(e) },
- table_getPaginatedRowModel: { fn: () => hCe(e) },
- table_getRowModel: { fn: () => gCe(e) }
+var yCe = { constructTableAPIs: (e) => {
+ aq("coreRowModelsFeature", e, {
+ table_getCoreRowModel: { fn: () => sCe(e) },
+ table_getPreFilteredRowModel: { fn: () => cCe(e) },
+ table_getFilteredRowModel: { fn: () => lCe(e) },
+ table_getPreGroupedRowModel: { fn: () => uCe(e) },
+ table_getGroupedRowModel: { fn: () => dCe(e) },
+ table_getPreSortedRowModel: { fn: () => fCe(e) },
+ table_getSortedRowModel: { fn: () => pCe(e) },
+ table_getPreExpandedRowModel: { fn: () => mCe(e) },
+ table_getExpandedRowModel: { fn: () => hCe(e) },
+ table_getPrePaginatedRowModel: { fn: () => gCe(e) },
+ table_getPaginatedRowModel: { fn: () => _Ce(e) },
+ table_getRowModel: { fn: () => vCe(e) }
});
} };
// node_modules/@tanstack/table-core/dist/core/cells/constructCell.js
-function vCe(e) {
+function bCe(e) {
if (!e._cellPrototype) {
e._cellPrototype = { table: e };
let t = Object.values(e._features);
@@ -59585,48 +59598,48 @@ function vCe(e) {
}
return e._cellPrototype;
}
-function yCe(e, t, n) {
- let r = vCe(n), i = Object.create(r);
+function xCe(e, t, n) {
+ let r = bCe(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 bCe(e) {
+function SCe(e) {
let t = e.table.getRowsInDisplayOrder(), n = e._displayIndexCache;
return t[n] === e ? n : -1;
}
-function xCe(e) {
- let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? fq(e, t).rows : t.rows;
+function CCe(e) {
+ let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? dq(e, t).rows : t.rows;
for (let e = 0; e < n.length; e++) n[e]._displayIndexCache = e;
return n;
}
-function SCe(e, t) {
- if (ZK(e._valuesCache, t)) return e._valuesCache[t];
+function wCe(e, t) {
+ if (XK(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 CCe(e, t) {
- if (ZK(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
+function TCe(e, t) {
+ if (XK(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 wCe(e, t) {
+function ECe(e, t) {
return e.getValue(t) ?? e.table.options.renderFallbackValue;
}
-function TCe(e) {
- return xSe(e.subRows, (e) => e.subRows);
+function DCe(e) {
+ return CSe(e.subRows, (e) => e.subRows);
}
-function ECe(e) {
+function OCe(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 DCe(e) {
+function kCe(e) {
if (e.parentId) return e.table.getCoreRowModel().rowsById[e.parentId] ?? e.table.getRow(e.parentId, !0);
}
-function OCe(e) {
+function ACe(e) {
let t = [], n = e;
for (;;) {
let e = n.getParentRow();
@@ -59635,77 +59648,77 @@ function OCe(e) {
}
return t.reverse();
}
-function kCe(e) {
+function jCe(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 = yCe(a, e, e.table), n.set(a, o)), r[i] = o;
+ o || (o = xCe(a, e, e.table), n.set(a, o)), r[i] = o;
}
return r;
}
-function ACe(e) {
- let t = XK(), n = e.getAllCells();
+function MCe(e) {
+ let t = YK(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.column.id] = r;
}
return t;
}
-function jCe(e, t, n, r) {
+function NCe(e, t, n, r) {
return t.options.getRowId?.(e, n, r) ?? (r ? `${r.id}.${n}` : String(n));
}
-function MCe(e, t, n) {
+function PCe(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 NCe = {
+var FCe = {
assignRowPrototype: (e, t) => {
- sq("coreRowsFeature", e, t, {
- row_getDisplayIndex: { fn: (e) => bCe(e) },
+ oq("coreRowsFeature", e, t, {
+ row_getDisplayIndex: { fn: (e) => SCe(e) },
row_getAllCellsByColumnId: {
- fn: (e) => ACe(e),
+ fn: (e) => MCe(e),
memoDeps: (e) => [e.getAllCells()]
},
row_getAllCells: {
- fn: (e) => kCe(e),
+ fn: (e) => jCe(e),
memoDeps: (e) => [e.table.getAllLeafColumns()]
},
row_getLeafRows: {
- fn: (e) => TCe(e),
+ fn: (e) => DCe(e),
memoDeps: (e) => [e.subRows]
},
- row_getParentRow: { fn: (e) => DCe(e) },
- row_getParentRows: { fn: (e) => OCe(e) },
- row_getUniqueValues: { fn: (e, t) => CCe(e, t) },
- row_getValue: { fn: (e, t) => SCe(e, t) },
- row_renderValue: { fn: (e, t) => wCe(e, t) }
+ row_getParentRow: { fn: (e) => kCe(e) },
+ row_getParentRows: { fn: (e) => ACe(e) },
+ row_getUniqueValues: { fn: (e, t) => TCe(e, t) },
+ row_getValue: { fn: (e, t) => wCe(e, t) },
+ row_renderValue: { fn: (e, t) => ECe(e, t) }
});
},
constructTableAPIs: (e) => {
- oq("coreRowsFeature", e, {
+ aq("coreRowsFeature", e, {
table_getRowsInDisplayOrder: {
- fn: () => xCe(e),
+ fn: () => CCe(e),
memoDeps: () => [
e.getPrePaginatedRowModel().rows,
e.options.paginateExpandedRows,
e.options.paginateExpandedRows === !1 ? e.atoms.expanded?.get() : void 0
]
},
- table_getRowId: { fn: (t, n, r) => jCe(t, e, n, r) },
- table_getRow: { fn: (t, n) => MCe(e, t, n) },
+ table_getRowId: { fn: (t, n, r) => NCe(t, e, n, r) },
+ table_getRow: { fn: (t, n) => PCe(e, t, n) },
table_getMaxSubRowDepth: {
- fn: () => ECe(e),
+ fn: () => OCe(e),
memoDeps: () => [e.getCoreRowModel()]
}
});
}
};
// node_modules/@tanstack/table-core/dist/core/table/coreTablesFeature.utils.js
-function xq(e, t, n = (e, t) => e === t) {
+function bq(e, t, n = (e, t) => e === t) {
let r = t === void 0 ? e.options.state : t;
e._reactivity.batch(() => {
if (r) for (let t in r) {
@@ -59716,13 +59729,13 @@ function xq(e, t, n = (e, t) => e === t) {
}
});
}
-function Sq(e, t, n = (e, t) => e === t) {
+function xq(e, t, n = (e, t) => e === t) {
e._reactivity.batch(() => {
- xq(e, t, n), e._reactivity.commit?.();
+ bq(e, t, n), e._reactivity.commit?.();
});
}
-function PCe(e) {
- let t = JK(e.initialState);
+function ICe(e) {
+ let t = qK(e.initialState);
e._reactivity.batch(() => {
let n = Object.keys(t);
for (let r = 0; r < n.length; r++) {
@@ -59733,7 +59746,7 @@ function PCe(e) {
let n = Object.values(e._features);
for (let t = 0; t < n.length; t++) n[t].resetTableInstanceData?.(e);
}
-function FCe(e, t) {
+function LCe(e, t) {
let { features: n, atoms: r, initialState: i } = e.options;
if (!e.options.mergeOptions) return {
...e.options,
@@ -59765,26 +59778,26 @@ function FCe(e, t) {
}
});
}
-function Cq(e, t, n) {
- let r = FCe(e, qK(t, e.options));
- e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && Sq(e, r.state ?? null);
+function Sq(e, t, n) {
+ let r = LCe(e, KK(t, e.options));
+ e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && xq(e, r.state ?? null);
}
// node_modules/@tanstack/table-core/dist/core/coreFeatures.js
-var ICe = {
- coreCellsFeature: ESe,
- coreColumnsFeature: HSe,
- coreHeadersFeature: eCe,
- coreRowModelsFeature: _Ce,
- coreRowsFeature: NCe,
+var RCe = {
+ coreCellsFeature: OSe,
+ coreColumnsFeature: WSe,
+ coreHeadersFeature: nCe,
+ coreRowModelsFeature: yCe,
+ coreRowsFeature: FCe,
coreTablesFeature: { constructTableAPIs: (e) => {
- oq("coreTablesFeature", e, {
- table_reset: { fn: () => PCe(e) },
- table_setOptions: { fn: (t) => Cq(e, t) }
+ aq("coreTablesFeature", e, {
+ table_reset: { fn: () => ICe(e) },
+ table_setOptions: { fn: (t) => Sq(e, t) }
});
} }
};
// node_modules/@tanstack/table-core/dist/helpers/columnHelper.js
-function wq() {
+function Cq() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -59799,21 +59812,21 @@ function wq() {
};
}
// node_modules/@tanstack/table-core/dist/helpers/tableFeatures.js
-function Tq(e) {
+function wq(e) {
return e;
}
// node_modules/@tanstack/table-core/dist/core/table/constructTable.js
-function LCe(e, t = {}) {
+function zCe(e, t = {}) {
return Object.values(e).forEach((e) => {
t = e.getInitialState?.(t) ?? t;
- }), JK(t);
+ }), qK(t);
}
-function RCe(e) {
+function BCe(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: {
- ...ICe,
+ ...RCe,
..._
},
_headerGroupInstanceInitFns: [],
@@ -59851,7 +59864,7 @@ function RCe(e) {
set(e) {
v.optionsStore.set(() => e);
}
- })) : v.options = b, v.initialState = LCe(v._features, v.options.initialState);
+ })) : v.options = b, v.initialState = zCe(v._features, v.options.initialState);
let x = Object.keys(v.initialState);
for (let e = 0; e < x.length; e++) {
let n = x[e];
@@ -59859,14 +59872,14 @@ function RCe(e) {
let e = v.options, t = e.atoms?.[n], r = t ? t.get() : v.baseAtoms[n].get();
if (t) return r;
let i = e.state;
- if (i && ZK(i, n)) {
+ if (i && XK(i, n)) {
let e = i[n];
return e === void 0 ? v.initialState[n] : e;
}
return r;
}, { debugName: `table/atoms/${n}` });
}
- xq(v), v.store = mSe(t.createReadonlyAtom(() => {
+ bq(v), v.store = gSe(t.createReadonlyAtom(() => {
let e = {};
for (let t = 0; t < x.length; t++) {
let n = x[t];
@@ -59874,7 +59887,7 @@ function RCe(e) {
}
return e;
}, {
- compare: UK,
+ compare: HK,
debugName: "table/store"
}));
for (let e = 0; e < y.length; e++) {
@@ -59884,107 +59897,107 @@ function RCe(e) {
return v;
}
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.utils.js
-function zCe() {
- return XK();
+function VCe() {
+ return YK();
}
-function Eq(e, t) {
- Oq(e) && Aq(e.table, (n) => {
- let r = Object.assign(XK(), n), i = t ?? !cq(e, "getIsVisible", Dq), a = e.getLeafColumns();
+function Tq(e, t) {
+ Dq(e) && kq(e.table, (n) => {
+ let r = Object.assign(YK(), n), i = t ?? !sq(e, "getIsVisible", Eq), a = e.getLeafColumns();
for (let e = 0; e < a.length; e++) {
let t = a[e];
- Oq(t) && (r[t.id] = i);
+ Dq(t) && (r[t.id] = i);
}
return r;
});
}
-function Dq(e) {
+function Eq(e) {
let t = e.table.atoms.columnVisibility?.get();
if (!t) return !0;
let n = e.columns;
- return n.length ? n.some((e) => cq(e, "getIsVisible", Dq)) : (ZK(t, e.id) ? t[e.id] : void 0) ?? !0;
+ return n.length ? n.some((e) => sq(e, "getIsVisible", Eq)) : (XK(t, e.id) ? t[e.id] : void 0) ?? !0;
}
-function Oq(e) {
+function Dq(e) {
return (e.columnDef.enableHiding ?? !0) && (e.table.options.enableHiding ?? !0);
}
-function BCe(e) {
+function HCe(e) {
return (t) => {
- Eq(e, t.target.checked);
+ Tq(e, t.target.checked);
};
}
-function VCe(e) {
+function UCe(e) {
let t = e.getAllCells(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e];
- cq(r.column, "getIsVisible", Dq) && n.push(r);
+ sq(r.column, "getIsVisible", Eq) && n.push(r);
}
- return dq(e.table, n, (e) => e.column.id, () => cq(e, "getVisibleCellsByColumnId", kq));
+ return uq(e.table, n, (e) => e.column.id, () => sq(e, "getVisibleCellsByColumnId", Oq));
}
-function kq(e) {
- let t = XK(), n = e.getAllCells();
+function Oq(e) {
+ let t = YK(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
- cq(r.column, "getIsVisible", Dq) && (t[r.column.id] = r);
+ sq(r.column, "getIsVisible", Eq) && (t[r.column.id] = r);
}
return t;
}
-function HCe(e) {
- return e.getAllFlatColumns().filter((e) => cq(e, "getIsVisible", Dq));
+function WCe(e) {
+ return e.getAllFlatColumns().filter((e) => sq(e, "getIsVisible", Eq));
}
-function UCe(e) {
- return e.getAllLeafColumns().filter((e) => cq(e, "getIsVisible", Dq));
+function GCe(e) {
+ return e.getAllLeafColumns().filter((e) => sq(e, "getIsVisible", Eq));
}
-function Aq(e, t) {
- nq(e, "columnVisibility", t);
+function kq(e, t) {
+ tq(e, "columnVisibility", t);
}
-function WCe(e, t) {
- Aq(e, t ? XK() : Object.assign(XK(), JK(e.initialState.columnVisibility ?? {})));
+function KCe(e, t) {
+ kq(e, t ? YK() : Object.assign(YK(), qK(e.initialState.columnVisibility ?? {})));
}
-function jq(e, t) {
- t ??= !Mq(e);
- let n = XK(), r = e.getAllLeafColumns();
+function Aq(e, t) {
+ t ??= !jq(e);
+ let n = YK(), r = e.getAllLeafColumns();
for (let e = 0; e < r.length; e++) {
let i = r[e];
- n[i.id] = t || !Oq(i);
+ n[i.id] = t || !Dq(i);
}
- Aq(e, n);
+ kq(e, n);
}
-function Mq(e) {
- return !e.getAllLeafColumns().some((e) => !cq(e, "getIsVisible", Dq));
+function jq(e) {
+ return !e.getAllLeafColumns().some((e) => !sq(e, "getIsVisible", Eq));
}
-function GCe(e) {
- return e.getAllLeafColumns().some((e) => cq(e, "getIsVisible", Dq));
+function qCe(e) {
+ return e.getAllLeafColumns().some((e) => sq(e, "getIsVisible", Eq));
}
-function KCe(e) {
+function JCe(e) {
return (t) => {
- jq(e, t.target.checked);
+ Aq(e, t.target.checked);
};
}
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.js
-var Nq = {
+var Mq = {
getInitialState: (e) => ({
- columnVisibility: zCe(),
+ columnVisibility: VCe(),
...e
}),
- getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: QK("columnVisibility", e) }),
+ getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: ZK("columnVisibility", e) }),
assignColumnPrototype: (e, t) => {
- sq("columnVisibilityFeature", e, t, {
+ oq("columnVisibilityFeature", e, t, {
column_getIsVisible: {
- fn: (e) => Dq(e),
+ fn: (e) => Eq(e),
memoDeps: (e) => [
t.options.columns,
t.atoms.columnVisibility?.get(),
e.columns
]
},
- column_getCanHide: { fn: (e) => Oq(e) },
- column_getToggleVisibilityHandler: { fn: (e) => BCe(e) },
- column_toggleVisibility: { fn: (e, t) => Eq(e, t) }
+ column_getCanHide: { fn: (e) => Dq(e) },
+ column_getToggleVisibilityHandler: { fn: (e) => HCe(e) },
+ column_toggleVisibility: { fn: (e, t) => Tq(e, t) }
});
},
assignRowPrototype: (e, t) => {
- sq("columnVisibilityFeature", e, t, {
+ oq("columnVisibilityFeature", e, t, {
row_getVisibleCells: {
- fn: (e) => VCe(e),
+ fn: (e) => UCe(e),
memoDeps: (e) => [
e.getAllCells(),
t.atoms.columnPinning?.get(),
@@ -59992,15 +60005,15 @@ var Nq = {
]
},
row_getVisibleCellsByColumnId: {
- fn: (e) => kq(e),
+ fn: (e) => Oq(e),
memoDeps: (e) => [e.getAllCells(), t.atoms.columnVisibility?.get()]
}
});
},
constructTableAPIs: (e) => {
- oq("columnVisibilityFeature", e, {
+ aq("columnVisibilityFeature", e, {
table_getVisibleFlatColumns: {
- fn: () => HCe(e),
+ fn: () => WCe(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -60010,7 +60023,7 @@ var Nq = {
]
},
table_getVisibleLeafColumns: {
- fn: () => UCe(e),
+ fn: () => GCe(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -60019,51 +60032,51 @@ var Nq = {
e.options.groupedColumnMode
]
},
- table_setColumnVisibility: { fn: (t) => Aq(e, t) },
- table_resetColumnVisibility: { fn: (t) => WCe(e, t) },
- table_toggleAllColumnsVisible: { fn: (t) => jq(e, t) },
- table_getIsAllColumnsVisible: { fn: () => Mq(e) },
- table_getIsSomeColumnsVisible: { fn: () => GCe(e) },
- table_getToggleAllColumnsVisibilityHandler: { fn: () => KCe(e) }
+ table_setColumnVisibility: { fn: (t) => kq(e, t) },
+ table_resetColumnVisibility: { fn: (t) => KCe(e, t) },
+ table_toggleAllColumnsVisible: { fn: (t) => Aq(e, t) },
+ table_getIsAllColumnsVisible: { fn: () => jq(e) },
+ table_getIsSomeColumnsVisible: { fn: () => qCe(e) },
+ table_getToggleAllColumnsVisibilityHandler: { fn: () => JCe(e) }
});
}
-}, Pq = 0, Fq = 10;
-function Iq() {
+}, Nq = 0, Pq = 10;
+function Fq() {
return {
- pageIndex: Pq,
- pageSize: Fq
+ pageIndex: Nq,
+ pageSize: Pq
};
}
-function qCe(e) {
+function YCe(e) {
if (e.options.autoResetAll ?? e.options.autoResetPageIndex ?? !e.options.manualPagination) {
- if ((e.atoms.pagination?.get()?.pageIndex ?? Pq) === Pq) return;
- zq(e, !0);
+ if ((e.atoms.pagination?.get()?.pageIndex ?? Nq) === Nq) return;
+ Rq(e, !0);
}
}
-function Lq(e, t) {
- nq(e, "pagination", t);
+function Iq(e, t) {
+ tq(e, "pagination", t);
}
-function JCe(e, t) {
- Lq(e, t ? Iq() : JK(e.initialState.pagination ?? Iq()));
+function XCe(e, t) {
+ Iq(e, t ? Fq() : qK(e.initialState.pagination ?? Fq()));
}
-function Rq(e, t) {
- Lq(e, (n) => {
- let r = qK(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+function Lq(e, t) {
+ Iq(e, (n) => {
+ let r = KK(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
return r = Math.max(0, Math.min(r, i)), {
...n,
pageIndex: r
};
});
}
-function zq(e, t) {
- Rq(e, t ? Pq : e.initialState.pagination?.pageIndex ?? Pq);
+function Rq(e, t) {
+ Lq(e, t ? Nq : e.initialState.pagination?.pageIndex ?? Nq);
}
-function YCe(e, t) {
- Bq(e, t ? Fq : e.initialState.pagination?.pageSize ?? Fq);
+function ZCe(e, t) {
+ zq(e, t ? Pq : e.initialState.pagination?.pageSize ?? Pq);
}
-function Bq(e, t) {
- Lq(e, (e) => {
- let n = Math.max(1, qK(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
+function zq(e, t) {
+ Iq(e, (e) => {
+ let n = Math.max(1, KK(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -60071,231 +60084,231 @@ function Bq(e, t) {
};
});
}
-function XCe(e) {
- let t = Vq(e), n = [];
- return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;
-}
-function ZCe(e) {
- return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;
-}
function QCe(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? Pq, n = Vq(e);
- return n === -1 || n !== 0 && t < n - 1;
+ let t = Bq(e), n = [];
+ return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;
}
function $Ce(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? Pq, n = Vq(e);
- return Number.isFinite(n) && n > 0 && t < n - 1;
+ return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;
}
function ewe(e) {
- return Rq(e, (e) => e - 1);
+ let t = e.atoms.pagination?.get()?.pageIndex ?? Nq, n = Bq(e);
+ return n === -1 || n !== 0 && t < n - 1;
}
function twe(e) {
- return Rq(e, (e) => e + 1);
+ let t = e.atoms.pagination?.get()?.pageIndex ?? Nq, n = Bq(e);
+ return Number.isFinite(n) && n > 0 && t < n - 1;
}
function nwe(e) {
- return Rq(e, 0);
+ return Lq(e, (e) => e - 1);
}
function rwe(e) {
- let t = Vq(e);
- if (!(!Number.isFinite(t) || t <= 0)) return Rq(e, t - 1);
+ return Lq(e, (e) => e + 1);
}
-function Vq(e) {
+function iwe(e) {
+ return Lq(e, 0);
+}
+function awe(e) {
+ let t = Bq(e);
+ if (!(!Number.isFinite(t) || t <= 0)) return Lq(e, t - 1);
+}
+function Bq(e) {
let t = e.options.pageCount;
if (t != null) return t;
- let n = Hq(e), r = e.atoms.pagination?.get()?.pageSize ?? Fq;
+ let n = Vq(e), r = e.atoms.pagination?.get()?.pageSize ?? Pq;
return r === Infinity && Number.isFinite(n) && n > 0 ? 1 : Math.ceil(n / r);
}
-function Hq(e) {
+function Vq(e) {
return e.options.rowCount ?? e.getPrePaginatedRowModel().rows.length;
}
// node_modules/@tanstack/table-core/dist/features/row-pagination/rowPaginationFeature.js
-var Uq = {
+var Hq = {
getInitialState: (e) => ({
...e,
pagination: {
- ...Iq(),
+ ...Fq(),
...e.pagination
}
}),
- getDefaultTableOptions: (e) => ({ onPaginationChange: QK("pagination", e) }),
+ getDefaultTableOptions: (e) => ({ onPaginationChange: ZK("pagination", e) }),
constructTableAPIs: (e) => {
- oq("rowPaginationFeature", e, {
- table_autoResetPageIndex: { fn: () => qCe(e) },
- table_setPagination: { fn: (t) => Lq(e, t) },
- table_resetPagination: { fn: (t) => JCe(e, t) },
- table_setPageIndex: { fn: (t) => Rq(e, t) },
- table_resetPageIndex: { fn: (t) => zq(e, t) },
- table_setPageSize: { fn: (t) => Bq(e, t) },
- table_getPageCount: { fn: () => Vq(e) },
- table_resetPageSize: { fn: (t) => YCe(e, t) },
- table_getPageOptions: { fn: () => XCe(e) },
- table_getCanPreviousPage: { fn: () => ZCe(e) },
- table_getCanNextPage: { fn: () => QCe(e) },
- table_getCanLastPage: { fn: () => $Ce(e) },
- table_previousPage: { fn: () => ewe(e) },
- table_nextPage: { fn: () => twe(e) },
- table_firstPage: { fn: () => nwe(e) },
- table_lastPage: { fn: () => rwe(e) },
- table_getRowCount: { fn: () => Hq(e) }
+ aq("rowPaginationFeature", e, {
+ table_autoResetPageIndex: { fn: () => YCe(e) },
+ table_setPagination: { fn: (t) => Iq(e, t) },
+ table_resetPagination: { fn: (t) => XCe(e, t) },
+ table_setPageIndex: { fn: (t) => Lq(e, t) },
+ table_resetPageIndex: { fn: (t) => Rq(e, t) },
+ table_setPageSize: { fn: (t) => zq(e, t) },
+ table_getPageCount: { fn: () => Bq(e) },
+ table_resetPageSize: { fn: (t) => ZCe(e, t) },
+ table_getPageOptions: { fn: () => QCe(e) },
+ table_getCanPreviousPage: { fn: () => $Ce(e) },
+ table_getCanNextPage: { fn: () => ewe(e) },
+ table_getCanLastPage: { fn: () => twe(e) },
+ table_previousPage: { fn: () => nwe(e) },
+ table_nextPage: { fn: () => rwe(e) },
+ table_firstPage: { fn: () => iwe(e) },
+ table_lastPage: { fn: () => awe(e) },
+ table_getRowCount: { fn: () => Vq(e) }
});
}
};
// node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.utils.js
-function iwe() {
- return XK();
+function owe() {
+ return YK();
}
-function Wq(e, t) {
+function Uq(e, t) {
e.options.onRowSelectionChange?.(t);
}
-function awe(e, t) {
- e._lastSelectedRowId = null, Wq(e, t ? XK() : Object.assign(XK(), JK(e.initialState.rowSelection ?? {})));
+function swe(e, t) {
+ e._lastSelectedRowId = null, Uq(e, t ? YK() : Object.assign(YK(), qK(e.initialState.rowSelection ?? {})));
}
-function Gq(e, t, n) {
- e._lastSelectedRowId = null, Wq(e, (r) => {
- if (t = t === void 0 ? !cq(e, "getIsAllRowsSelected", Jq) : t, n?.deselectAll && !t) return XK();
- let i = Object.assign(XK(), r), a = e.getPreGroupedRowModel().flatRows;
+function Wq(e, t, n) {
+ e._lastSelectedRowId = null, Uq(e, (r) => {
+ if (t = t === void 0 ? !sq(e, "getIsAllRowsSelected", qq) : t, n?.deselectAll && !t) return YK();
+ let i = Object.assign(YK(), r), a = e.getPreGroupedRowModel().flatRows;
if (t) {
let e = /* @__PURE__ */ new Map();
a.forEach((t) => {
- iJ(t, e) && (i[t.id] = !0);
+ rJ(t, e) && (i[t.id] = !0);
});
} else a.forEach((e) => {
- eJ(e) && delete i[e.id];
+ $q(e) && delete i[e.id];
});
return i;
});
}
-function Kq(e, t, n) {
- e._lastSelectedRowId = null, Wq(e, (r) => {
- let i = t === void 0 ? !cq(e, "getIsAllPageRowsSelected", Yq) : t;
- if (n?.deselectAll && !i) return XK();
- let a = Object.assign(XK(), r);
+function Gq(e, t, n) {
+ e._lastSelectedRowId = null, Uq(e, (r) => {
+ let i = t === void 0 ? !sq(e, "getIsAllPageRowsSelected", Jq) : t;
+ if (n?.deselectAll && !i) return YK();
+ let a = Object.assign(YK(), r);
return e.getRowModel().rows.forEach((t) => {
- rJ(a, t.id, i, !0, e, !0);
+ nJ(a, t.id, i, !0, e, !0);
}), a;
});
}
-function owe(e) {
+function cwe(e) {
return e.getCoreRowModel();
}
-function swe(e) {
+function lwe(e) {
let t = e.getCoreRowModel();
- return cq(e, "getIsSomeRowsSelected", Xq) ? sJ(t, e) : {
+ return sq(e, "getIsSomeRowsSelected", Yq) ? oJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: XK()
+ rowsById: YK()
};
}
-function cwe(e) {
+function uwe(e) {
let t = e.getFilteredRowModel();
- return cq(e, "getIsSomeRowsSelected", Xq) ? sJ(t, e) : {
+ return sq(e, "getIsSomeRowsSelected", Yq) ? oJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: XK()
+ rowsById: YK()
};
}
-function lwe(e) {
+function dwe(e) {
let t = e.getSortedRowModel();
- return cq(e, "getIsSomeRowsSelected", Xq) ? sJ(t, e) : {
+ return sq(e, "getIsSomeRowsSelected", Yq) ? oJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: XK()
+ rowsById: YK()
};
}
-function qq(e) {
+function Kq(e) {
return Object.keys(e.atoms.rowSelection?.get() ?? {});
}
-function Jq(e) {
+function qq(e) {
let t = e.getFilteredRowModel().flatRows, n = e.atoms.rowSelection?.get() ?? {}, r = !!(t.length && Object.keys(n).length);
if (r) {
let e = /* @__PURE__ */ new Map();
- t.some((t) => !cJ(t, n) && iJ(t, e)) && (r = !1);
+ t.some((t) => !sJ(t, n) && rJ(t, e)) && (r = !1);
}
return r;
}
-function Yq(e) {
+function Jq(e) {
let t = e.getPaginatedRowModel().flatRows, n = e.atoms.rowSelection?.get() ?? {}, r = /* @__PURE__ */ new Map(), i = !1;
for (let e = 0; e < t.length; e++) {
let a = t[e];
- if (cJ(a, n)) !i && iJ(a, r) && (i = !0);
- else if (iJ(a, r)) return !1;
+ if (sJ(a, n)) !i && rJ(a, r) && (i = !0);
+ else if (rJ(a, r)) return !1;
}
return i;
}
-function Xq(e) {
- return cq(e, "getSelectedRowIds", qq).length > 0;
+function Yq(e) {
+ return sq(e, "getSelectedRowIds", Kq).length > 0;
}
-function uwe(e) {
- return e.getPaginatedRowModel().flatRows.filter((e) => eJ(e)).some((e) => Qq(e) || cq(e, "getIsSomeSelected", $q));
+function fwe(e) {
+ return e.getPaginatedRowModel().flatRows.filter((e) => $q(e)).some((e) => Zq(e) || sq(e, "getIsSomeSelected", Qq));
}
-function dwe(e) {
+function pwe(e) {
return (t) => {
- Gq(e, t.target.checked);
+ Wq(e, t.target.checked);
};
}
-function fwe(e) {
+function mwe(e) {
return (t) => {
- Kq(e, t.target.checked);
+ Gq(e, t.target.checked);
};
}
-function Zq(e, t, n) {
- let r = Qq(e);
- Wq(e.table, (i) => {
+function Xq(e, t, n) {
+ let r = Zq(e);
+ Uq(e.table, (i) => {
t = t === void 0 ? !r : t;
- let a = Object.assign(XK(), i);
- return rJ(a, e.id, t, (n?.selectChildren ?? !0) && nJ(e), e.table), !t && n?.deselectParents && aJ(a, e), a;
+ let a = Object.assign(YK(), i);
+ return nJ(a, e.id, t, (n?.selectChildren ?? !0) && tJ(e), e.table), !t && n?.deselectParents && iJ(a, e), a;
});
}
-function Qq(e) {
- return cJ(e, e.table.atoms.rowSelection?.get() ?? {});
+function Zq(e) {
+ return sJ(e, e.table.atoms.rowSelection?.get() ?? {});
}
-function $q(e) {
- return lJ(e) === "some";
+function Qq(e) {
+ return cJ(e) === "some";
}
-function pwe(e) {
- return lJ(e) === "all";
+function hwe(e) {
+ return cJ(e) === "all";
}
-function eJ(e) {
+function $q(e) {
let t = e.table.options;
return typeof t.enableRowSelection == "function" ? t.enableRowSelection(e) : t.enableRowSelection ?? !0;
}
-function tJ(e) {
+function eJ(e) {
let t = e.table.options;
return typeof t.enableSubRowSelection == "function" ? t.enableSubRowSelection(e) : t.enableSubRowSelection ?? !0;
}
-function nJ(e) {
+function tJ(e) {
let t = e.table.options;
return typeof t.enableMultiRowSelection == "function" ? t.enableMultiRowSelection(e) : t.enableMultiRowSelection ?? !0;
}
-function mwe(e, t) {
- let n = eJ(e);
+function gwe(e, t) {
+ let n = $q(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 && nJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && hwe(e, s, o, t) || Zq(e, o, t), a._lastSelectedRowId = e.id;
+ a.options.enableRowRangeSelection !== !1 && s !== null && tJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && _we(e, s, o, t) || Xq(e, o, t), a._lastSelectedRowId = e.id;
};
}
-function hwe(e, t, n, r) {
+function _we(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];
- if (c < 0 || l < 0 || c >= o.length || l >= o.length || u?.id !== s.id || d?.id !== e.id || !nJ(s) || !nJ(e)) return !1;
+ if (c < 0 || l < 0 || c >= o.length || l >= o.length || u?.id !== s.id || d?.id !== e.id || !tJ(s) || !tJ(e)) return !1;
let f = Math.min(c, l), p = Math.max(c, l);
- return Wq(a, (e) => {
- let t = Object.assign(XK(), e);
+ return Uq(a, (e) => {
+ let t = Object.assign(YK(), e);
for (let e = f; e <= p; e++) {
let s = o[e];
- eJ(s) && nJ(s) && (rJ(t, s.id, n, i, a), !n && r?.deselectParents && aJ(t, s));
+ $q(s) && tJ(s) && (nJ(t, s.id, n, i, a), !n && r?.deselectParents && iJ(t, s));
}
return t;
}), !0;
}
-function rJ(e, t, n, r, i, a) {
+function nJ(e, t, n, r, i, a) {
let o = i.getRow(t, !0);
- n ? (nJ(o) || Object.keys(e).forEach((t) => delete e[t]), eJ(o) && (e[t] = !0)) : (!a || eJ(o)) && delete e[t], r && o.subRows.length && tJ(o) && o.subRows.forEach((t) => rJ(e, t.id, n, r, i, a));
+ n ? (tJ(o) || Object.keys(e).forEach((t) => delete e[t]), $q(o) && (e[t] = !0)) : (!a || $q(o)) && delete e[t], r && o.subRows.length && eJ(o) && o.subRows.forEach((t) => nJ(e, t.id, n, r, i, a));
}
-function iJ(e, t) {
- if (!eJ(e)) return !1;
+function rJ(e, t) {
+ if (!$q(e)) return !1;
let n = e.table;
if (n.options.enableSubRowSelection === !0) return !0;
let r = e.parentId;
@@ -60311,7 +60324,7 @@ function iJ(e, t) {
}
o.push(c);
let r = a[c] ?? n.getRow(c, !0);
- if (!tJ(r)) {
+ if (!eJ(r)) {
s = !1;
break;
}
@@ -60319,50 +60332,50 @@ function iJ(e, t) {
}
return o.forEach((e) => t.set(e, s)), s;
}
-function aJ(e, t) {
+function iJ(e, t) {
let n = t.table.getCoreRowModel().rowsById, r = t.parentId;
for (; r !== void 0;) delete e[r], r = (n[r] ?? t.table.getRow(r, !0)).parentId;
}
-function oJ(e, t, n, r) {
+function aJ(e, t, n, r) {
let i = [];
for (let a = 0; a < e.length; a++) {
- let o = e[a], s = cJ(o, t);
+ let o = e[a], s = sJ(o, t);
if (s && (n.push(o), r[o.id] = o), o.subRows.length) {
- let e = oJ(o.subRows, t, n, r);
+ let e = aJ(o.subRows, t, n, r);
if (s) {
let t = Object.create(Object.getPrototypeOf(o));
- YK(t, o), t.subRows = e, i.push(t);
+ JK(t, o), t.subRows = e, i.push(t);
}
} else s && i.push(o);
}
return i;
}
-function sJ(e, t) {
- let n = [], r = XK(), i = t.atoms.rowSelection?.get() ?? {};
+function oJ(e, t) {
+ let n = [], r = YK(), i = t.atoms.rowSelection?.get() ?? {};
return {
- rows: oJ(e.rows, i, n, r),
+ rows: aJ(e.rows, i, n, r),
flatRows: n,
rowsById: r
};
}
-function cJ(e, t) {
- return !!(ZK(t, e.id) && t[e.id]);
+function sJ(e, t) {
+ return !!(XK(t, e.id) && t[e.id]);
}
-function lJ(e) {
+function cJ(e) {
if (!e.subRows.length) return !1;
let t = e.table.atoms.rowSelection?.get() ?? {}, n = !1, r = !0, i = !1;
for (let a = 0; a < e.subRows.length; a++) {
let o = e.subRows[a];
if (n && !r) break;
- if (eJ(o) && (i = !0, cJ(o, t) ? n = !0 : r = !1), o.subRows.length) {
- let e = lJ(o);
+ if ($q(o) && (i = !0, sJ(o, t) ? n = !0 : r = !1), o.subRows.length) {
+ let e = cJ(o);
e === "all" ? (n = !0, i = !0) : e === "some" ? (n = !0, r = !1, i = !0) : r = !1;
}
}
return i ? r ? "all" : n ? "some" : !1 : !1;
}
// node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.js
-var uJ = {
+var lJ = {
initTableInstanceData: (e) => {
e._lastSelectedRowId = null;
},
@@ -60370,11 +60383,11 @@ var uJ = {
e._lastSelectedRowId = null;
},
getInitialState: (e) => ({
- rowSelection: iwe(),
+ rowSelection: owe(),
...e
}),
getDefaultTableOptions: (e) => ({
- onRowSelectionChange: QK("rowSelection", e),
+ onRowSelectionChange: ZK("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableRowRangeSelection: !0,
@@ -60385,11 +60398,11 @@ var uJ = {
}
}),
assignRowPrototype: (e, t) => {
- sq("rowSelectionFeature", e, t, {
- row_toggleSelected: { fn: (e, t, n) => Zq(e, t, n) },
- row_getIsSelected: { fn: (e) => Qq(e) },
+ oq("rowSelectionFeature", e, t, {
+ row_toggleSelected: { fn: (e, t, n) => Xq(e, t, n) },
+ row_getIsSelected: { fn: (e) => Zq(e) },
row_getIsSomeSelected: {
- fn: (e) => $q(e),
+ fn: (e) => Qq(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
@@ -60397,44 +60410,44 @@ var uJ = {
]
},
row_getIsAllSubRowsSelected: {
- fn: (e) => pwe(e),
+ fn: (e) => hwe(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
e.table.options.enableRowSelection
]
},
- row_getCanSelect: { fn: (e) => eJ(e) },
- row_getCanSelectSubRows: { fn: (e) => tJ(e) },
- row_getCanMultiSelect: { fn: (e) => nJ(e) },
- row_getToggleSelectedHandler: { fn: (e, t) => mwe(e, t) }
+ row_getCanSelect: { fn: (e) => $q(e) },
+ row_getCanSelectSubRows: { fn: (e) => eJ(e) },
+ row_getCanMultiSelect: { fn: (e) => tJ(e) },
+ row_getToggleSelectedHandler: { fn: (e, t) => gwe(e, t) }
});
},
constructTableAPIs: (e) => {
- oq("rowSelectionFeature", e, {
- table_setRowSelection: { fn: (t) => Wq(e, t) },
- table_resetRowSelection: { fn: (t) => awe(e, t) },
- table_toggleAllRowsSelected: { fn: (t, n) => Gq(e, t, n) },
- table_toggleAllPageRowsSelected: { fn: (t, n) => Kq(e, t, n) },
- table_getPreSelectedRowModel: { fn: () => owe(e) },
+ aq("rowSelectionFeature", e, {
+ table_setRowSelection: { fn: (t) => Uq(e, t) },
+ table_resetRowSelection: { fn: (t) => swe(e, t) },
+ table_toggleAllRowsSelected: { fn: (t, n) => Wq(e, t, n) },
+ table_toggleAllPageRowsSelected: { fn: (t, n) => Gq(e, t, n) },
+ table_getPreSelectedRowModel: { fn: () => cwe(e) },
table_getSelectedRowModel: {
- fn: () => swe(e),
+ fn: () => lwe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getCoreRowModel()]
},
table_getFilteredSelectedRowModel: {
- fn: () => cwe(e),
+ fn: () => uwe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getFilteredRowModel()]
},
table_getGroupedSelectedRowModel: {
- fn: () => lwe(e),
+ fn: () => dwe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getSortedRowModel()]
},
table_getSelectedRowIds: {
- fn: () => qq(e),
+ fn: () => Kq(e),
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsAllRowsSelected: {
- fn: () => Jq(e),
+ fn: () => qq(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getFilteredRowModel(),
@@ -60443,7 +60456,7 @@ var uJ = {
]
},
table_getIsAllPageRowsSelected: {
- fn: () => Yq(e),
+ fn: () => Jq(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
@@ -60452,48 +60465,48 @@ var uJ = {
]
},
table_getIsSomeRowsSelected: {
- fn: () => Xq(e),
+ fn: () => Yq(e),
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsSomePageRowsSelected: {
- fn: () => uwe(e),
+ fn: () => fwe(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
e.options.enableRowSelection
]
},
- table_getToggleAllRowsSelectedHandler: { fn: () => dwe(e) },
- table_getToggleAllPageRowsSelectedHandler: { fn: () => fwe(e) }
+ table_getToggleAllRowsSelectedHandler: { fn: () => pwe(e) },
+ table_getToggleAllPageRowsSelectedHandler: { fn: () => mwe(e) }
});
}
-}, gwe = /([0-9]+)/gm;
+}, vwe = /([0-9]+)/gm;
/* @__NO_SIDE_EFFECTS__ */
-function _we(e) {
+function ywe(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 dJ = /* @__PURE__ */ _we({ sort: (e, t) => vwe(e, t) });
-function vwe(e, t) {
+var uJ = /* @__PURE__ */ ywe({ sort: (e, t) => bwe(e, t) });
+function bwe(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.utils.js
-function ywe() {
+function xwe() {
return [];
}
-function fJ(e, t) {
- nq(e, "sorting", t);
+function dJ(e, t) {
+ tq(e, "sorting", t);
}
-function pJ(e, t) {
- fJ(e, t ? [] : JK(e.initialState.sorting ?? []));
+function fJ(e, t) {
+ dJ(e, t ? [] : qK(e.initialState.sorting ?? []));
}
-function bwe(e) {
- e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && pJ(e);
+function Swe(e) {
+ e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && fJ(e);
}
-function mJ(e) {
+function pJ(e) {
let t = e.table._rowModelFns.sortFns, n = e.table.getFilteredRowModel().flatRows.slice(0, 10), r, i = !1;
for (let t = 0; t < n.length; t++) {
let a = n[t].getValue(e.id);
@@ -60501,7 +60514,7 @@ function mJ(e) {
r = "datetime";
break;
}
- if (typeof a == "string" && (i = !0, a.split(gwe).length > 1)) {
+ if (typeof a == "string" && (i = !0, a.split(vwe).length > 1)) {
r = "alphanumeric";
break;
}
@@ -60510,9 +60523,9 @@ function mJ(e) {
let e = t?.[r];
if (e || r === "alphanumeric" && (e = t?.text), e) return e;
}
- return dJ;
+ return uJ;
}
-function hJ(e) {
+function mJ(e) {
let t = e.table.getFilteredRowModel().flatRows.slice(0, 10);
for (let n = 0; n < t.length; n++) {
let r = t[n].getValue(e.id);
@@ -60520,14 +60533,14 @@ function hJ(e) {
}
return "desc";
}
-function gJ(e) {
+function hJ(e) {
let t = e.table._rowModelFns.sortFns;
- return bSe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? mJ(e) : t?.[e.columnDef.sortFn] ?? dJ;
+ return SSe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? pJ(e) : t?.[e.columnDef.sortFn] ?? uJ;
}
-function _J(e, t, n) {
- let r = yJ(e, n && xJ(e)), i = t !== void 0;
- fJ(e.table, (a) => {
- let o = a.findIndex((t) => t.id === e.id), s = o === -1 ? void 0 : a[o], c = [], l, u = i ? t : r === "desc", d = !!(a.length && xJ(e) && n);
+function gJ(e, t, n) {
+ let r = vJ(e, n && bJ(e)), i = t !== void 0;
+ dJ(e.table, (a) => {
+ let o = a.findIndex((t) => t.id === e.id), s = o === -1 ? void 0 : a[o], c = [], l, u = i ? t : r === "desc", d = !!(a.length && bJ(e) && n);
return l = d ? s ? "toggle" : "add" : s ? "toggle" : "replace", l === "toggle" && (i || r || (l = "remove")), l === "add" ? (c = [...a, {
id: e.id,
desc: u
@@ -60543,40 +60556,40 @@ function _J(e, t, n) {
}], c;
});
}
-function vJ(e) {
- return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? hJ(e) === "desc" ? "desc" : "asc";
+function _J(e) {
+ return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? mJ(e) === "desc" ? "desc" : "asc";
}
-function yJ(e, t) {
- let n = vJ(e), r = SJ(e);
+function vJ(e, t) {
+ let n = _J(e), r = xJ(e);
return r ? r !== n && (e.table.options.enableSortingRemoval ?? !0) && (!t || (e.table.options.enableMultiRemove ?? !0)) ? !1 : r === "desc" ? "asc" : "desc" : n;
}
-function bJ(e) {
+function yJ(e) {
return (e.columnDef.enableSorting ?? !0) && (e.table.options.enableSorting ?? !0) && !!e.accessorFn;
}
-function xJ(e) {
+function bJ(e) {
return e.columnDef.enableMultiSort ?? e.table.options.enableMultiSort ?? !!e.accessorFn;
}
-function SJ(e) {
+function xJ(e) {
let t = e.table.atoms.sorting?.get()?.find((t) => t.id === e.id);
return t ? t.desc ? "desc" : "asc" : !1;
}
-function xwe(e) {
+function Cwe(e) {
return e.table.atoms.sorting?.get()?.findIndex((t) => t.id === e.id) ?? -1;
}
-function Swe(e) {
- fJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
+function wwe(e) {
+ dJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
}
-function Cwe(e) {
- let t = bJ(e);
+function Twe(e) {
+ let t = yJ(e);
return (n) => {
- t && _J(e, void 0, xJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
+ t && gJ(e, void 0, bJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
};
}
// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.js
-var CJ = {
+var SJ = {
getInitialState(e) {
return {
- sorting: ywe(),
+ sorting: xwe(),
...e
};
},
@@ -60589,58 +60602,58 @@ var CJ = {
getDefaultTableOptions(e) {
return {
autoResetSorting: !1,
- onSortingChange: QK("sorting", e),
+ onSortingChange: ZK("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
};
},
assignColumnPrototype(e, t) {
- sq("rowSortingFeature", e, t, {
- column_getAutoSortFn: { fn: (e) => mJ(e) },
- column_getAutoSortDir: { fn: (e) => hJ(e) },
- column_getSortFn: { fn: (e) => gJ(e) },
- column_toggleSorting: { fn: (e, t, n) => _J(e, t, n) },
- column_getFirstSortDir: { fn: (e) => vJ(e) },
- column_getNextSortingOrder: { fn: (e, t) => yJ(e, t) },
- column_getCanSort: { fn: (e) => bJ(e) },
- column_getCanMultiSort: { fn: (e) => xJ(e) },
- column_getIsSorted: { fn: (e) => SJ(e) },
- column_getSortIndex: { fn: (e) => xwe(e) },
- column_clearSorting: { fn: (e) => Swe(e) },
- column_getToggleSortingHandler: { fn: (e) => Cwe(e) }
+ oq("rowSortingFeature", e, t, {
+ column_getAutoSortFn: { fn: (e) => pJ(e) },
+ column_getAutoSortDir: { fn: (e) => mJ(e) },
+ column_getSortFn: { fn: (e) => hJ(e) },
+ column_toggleSorting: { fn: (e, t, n) => gJ(e, t, n) },
+ column_getFirstSortDir: { fn: (e) => _J(e) },
+ column_getNextSortingOrder: { fn: (e, t) => vJ(e, t) },
+ column_getCanSort: { fn: (e) => yJ(e) },
+ column_getCanMultiSort: { fn: (e) => bJ(e) },
+ column_getIsSorted: { fn: (e) => xJ(e) },
+ column_getSortIndex: { fn: (e) => Cwe(e) },
+ column_clearSorting: { fn: (e) => wwe(e) },
+ column_getToggleSortingHandler: { fn: (e) => Twe(e) }
});
},
constructTableAPIs(e) {
- oq("rowSortingFeature", e, {
- table_autoResetSorting: { fn: () => bwe(e) },
- table_setSorting: { fn: (t) => fJ(e, t) },
- table_resetSorting: { fn: (t) => pJ(e, t) }
+ aq("rowSortingFeature", e, {
+ table_autoResetSorting: { fn: () => Swe(e) },
+ table_setSorting: { fn: (t) => dJ(e, t) },
+ table_resetSorting: { fn: (t) => fJ(e, t) }
});
}
-}, wwe = typeof window > "u" ? F.useEffect : F.useLayoutEffect;
-function wJ(e, t) {
+}, Ewe = typeof window > "u" ? F.useEffect : F.useLayoutEffect;
+function CJ(e, t) {
let [{ table: n, rootSource: r }] = (0, F.useState)(() => {
- let t = RCe({
+ let t = BCe({
...e,
features: {
- coreReactivityFeature: _Se(),
+ coreReactivityFeature: ySe(),
...e.features
}
});
- return t.Subscribe = ((e) => pSe({
+ return t.Subscribe = ((e) => hSe({
...e,
source: e.source ?? t.store
- })), t.FlexRender = nSe, {
+ })), t.FlexRender = iSe, {
table: t,
- rootSource: gSe(t.store, UK)
+ rootSource: vSe(t.store, HK)
};
}), i = n;
- Cq(i, (t) => ({
+ Sq(i, (t) => ({
...t,
...e
}), { syncExternalState: !1 });
- let a = i.options.state, o = r.get(), s = KK(r, t, { compare: UK });
- return wwe(() => {
- r.markCommitted(o), Sq(i, a ?? null, UK);
+ let a = i.options.state, o = r.get(), s = GK(r, t, { compare: HK });
+ return Ewe(() => {
+ r.markCommitted(o), xq(i, a ?? null, HK);
}), (0, F.useMemo)(() => ({
...n,
options: e,
@@ -60652,10 +60665,10 @@ function wJ(e, t) {
]);
}
// src/react/boardui/components/base/table/table.tsx
-function TJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function wJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: J("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, I.jsx)(bhe, {
+ children: /* @__PURE__ */ (0, I.jsx)(She, {
ref: r,
...i,
className: J("bui-table", e === "sm" && "bui-table-sm", t)
@@ -60663,7 +60676,7 @@ function TJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i
});
}
// src/react/catalog-grid/catalog-table-columns.ts
-var EJ = "peach.catalog-column-widths.v1", DJ = "peach.catalog-column-visibility.v1", Twe = {
+var TJ = "peach.catalog-column-widths.v1", EJ = "peach.catalog-column-visibility.v1", Dwe = {
select: {
width: 48,
min: 48,
@@ -60739,14 +60752,14 @@ var EJ = "peach.catalog-column-widths.v1", DJ = "peach.catalog-column-visibility
min: 112,
max: 400
}
-}, Ewe = {
+}, Owe = {
release: !1,
played: !1,
o: !1,
resolution: !1,
size: !1,
code: !1
-}, Dwe = {
+}, kwe = {
select: "选择",
name: "作品",
dur: "时长",
@@ -60762,7 +60775,7 @@ var EJ = "peach.catalog-column-widths.v1", DJ = "peach.catalog-column-visibility
tags: "标签",
library: "媒体库",
people: "艺人"
-}, OJ = [
+}, DJ = [
"select",
"name",
"people",
@@ -60780,13 +60793,13 @@ var EJ = "peach.catalog-column-widths.v1", DJ = "peach.catalog-column-visibility
"code"
].map((e) => ({
id: e,
- label: Dwe[e],
- ...Twe[e],
+ label: kwe[e],
+ ...Dwe[e],
flex: e === "name",
required: e === "select" || e === "name",
- visible: Ewe[e] !== !1
+ visible: Owe[e] !== !1
}));
-function kJ(e) {
+function OJ(e) {
try {
let t = JSON.parse(localStorage.getItem(e) || "{}");
return t && typeof t == "object" && !Array.isArray(t) ? t : {};
@@ -60794,11 +60807,11 @@ function kJ(e) {
return {};
}
}
-function Owe() {
- return AJ(OJ, EJ, DJ);
+function Awe() {
+ return kJ(DJ, TJ, EJ);
}
-function AJ(e, t, n) {
- let r = kJ(t), i = kJ(n);
+function kJ(e, t, n) {
+ let r = OJ(t), i = OJ(n);
return e.filter((e) => e.id !== "select" && (e.required || (typeof i[e.id] == "boolean" ? i[e.id] === !0 : e.visible))).map((e) => {
let t = r[e.id], n = typeof t == "number" && Number.isFinite(t) && !(e.flex && t === e.width);
return {
@@ -60810,47 +60823,47 @@ function AJ(e, t, n) {
});
}
// src/react/library-processing/completion-row.ts
-var jJ = "peach.catalog.completion-row";
-function MJ() {
+var AJ = "peach.catalog.completion-row";
+function jJ() {
try {
- return localStorage.getItem(jJ) === "1";
+ return localStorage.getItem(AJ) === "1";
} catch {
return !1;
}
}
-function kwe(e) {
+function jwe(e) {
try {
- e ? localStorage.setItem(jJ, "1") : localStorage.removeItem(jJ);
+ e ? localStorage.setItem(AJ, "1") : localStorage.removeItem(AJ);
} catch {}
}
-var Awe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
+var Mwe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
// src/catalog-content-skeleton.ts
-function NJ(e) {
+function MJ(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 jwe(e) {
- return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${z(e)}">` + PJ(Owe(), MJ() ? Awe : "") + "</div>";
+function Nwe(e) {
+ return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${z(e)}">` + NJ(Awe(), jJ() ? Mwe : "") + "</div>";
}
-function PJ(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>${NJ(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;
+function NJ(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>${MJ(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 FJ(e, t) {
- return nG() === "list" ? jwe(e) : oc(e, {
+function PJ(e, t) {
+ return tG() === "list" ? Nwe(e) : ac(e, {
variant: "cards",
className: "catalog-skeleton postercard-skeleton",
cardRatio: t
});
}
// src/react/components/data-table-frame.tsx
-var Mwe = () => {
+var Pwe = () => {
document.documentElement.dataset.columnResizing = "";
};
-function IJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
+function FJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
let i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
let e = i.current?.querySelector(".overflow-x-auto") ?? null;
- zo(e), Mc(e);
+ Ro(e), jc(e);
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: i,
"data-board-data-table": !0,
@@ -60860,11 +60873,11 @@ function IJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
let t = e.target;
if (!(t instanceof Element)) return;
let r = t.closest("[role=\"row\"][data-key]");
- r && tK(e, r) && n(r.dataset.key);
+ r && eK(e, r) && n(r.dataset.key);
} : void 0,
- children: r ? /* @__PURE__ */ (0, I.jsx)(vhe, {
+ children: r ? /* @__PURE__ */ (0, I.jsx)(bhe, {
className: "relative min-w-0",
- onResizeStart: Mwe,
+ onResizeStart: Pwe,
onResize: r.resize,
onResizeEnd: (e) => {
delete document.documentElement.dataset.columnResizing, r.save(e);
@@ -60874,8 +60887,8 @@ function IJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
});
}
// src/react/components/select.tsx
-function LJ({ prefix: e, renderValue: t, size: n, ...r }) {
- if (e == null) return /* @__PURE__ */ (0, I.jsx)(BU, {
+function IJ({ prefix: e, renderValue: t, size: n, ...r }) {
+ if (e == null) return /* @__PURE__ */ (0, I.jsx)(zU, {
...r,
size: n,
renderValue: t
@@ -60885,14 +60898,14 @@ function LJ({ 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)(BU, {
+ return /* @__PURE__ */ (0, I.jsx)(zU, {
...r,
size: n,
renderValue: a
});
}
// src/react/components/table-pagination.tsx
-function RJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
+function LJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
return t <= 1 ? null : /* @__PURE__ */ (0, I.jsxs)("nav", {
"aria-label": r,
"data-pagination-layout": "",
@@ -60931,11 +60944,11 @@ function RJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
});
}
// src/react/components/table-controls.tsx
-function zJ({ label: e, options: t, sorting: n, onChange: r }) {
+function RJ({ label: e, options: t, sorting: n, onChange: r }) {
let i = n[0];
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex flex-none items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsxs)(LJ, {
+ children: [/* @__PURE__ */ (0, I.jsxs)(IJ, {
"aria-label": `${e}排序`,
prefix: "排序",
selectedKey: i?.id ?? "default",
@@ -60945,10 +60958,10 @@ function zJ({ label: e, options: t, sorting: n, onChange: r }) {
desc: i?.desc ?? !1
}]);
},
- children: [/* @__PURE__ */ (0, I.jsx)(VU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(BU, {
id: "default",
children: "默认顺序"
- }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(VU, {
+ }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(BU, {
id: e.id,
children: e.label
}, e.id))]
@@ -60956,7 +60969,7 @@ function zJ({ label: e, options: t, sorting: n, onChange: r }) {
variant: "secondary",
iconOnly: !0,
disabled: !i,
- leadingIcon: oG,
+ leadingIcon: aG,
"data-icon-state": i?.desc ? "b" : "a",
"aria-label": `${e}改为${i?.desc ? "升序" : "降序"}`,
onClick: () => {
@@ -60968,7 +60981,7 @@ function zJ({ label: e, options: t, sorting: n, onChange: r }) {
})]
});
}
-function BJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条", pageSizes: o = [
+function zJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条", pageSizes: o = [
10,
20,
50,
@@ -60983,7 +60996,7 @@ function BJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
children: `${l.toLocaleString()}–${u.toLocaleString()} / ${t.toLocaleString()} ${i}`
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-toolbar-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(LJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(IJ, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(n.pageSize),
@@ -60993,11 +61006,11 @@ function BJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
pageSize: Number(e)
});
},
- children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(VU, {
+ children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(BU, {
id: String(e),
children: `每页 ${e} ${a}`
}, e))
- }), /* @__PURE__ */ (0, I.jsx)(RJ, {
+ }), /* @__PURE__ */ (0, I.jsx)(LJ, {
label: `${e}分页`,
page: c + 1,
pages: s,
@@ -61010,7 +61023,7 @@ function BJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
});
}
// src/react/components/table-column-preferences.ts
-function VJ(e) {
+function BJ(e) {
try {
let t = JSON.parse(localStorage.getItem(e) || "{}");
return t && typeof t == "object" && !Array.isArray(t) ? t : {};
@@ -61018,17 +61031,17 @@ function VJ(e) {
return {};
}
}
-function HJ(e, t) {
+function VJ(e, t) {
try {
localStorage.setItem(e, JSON.stringify(t));
} catch {}
}
-function Nwe(e, t) {
+function Fwe(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];
})), [r, i] = (0, F.useState)(() => {
- let r = VJ(e);
+ let r = BJ(e);
for (let [e, n] of Object.entries(t)) n.flex && r[e] === n.width && delete r[e];
return n(r);
});
@@ -61045,7 +61058,7 @@ function Nwe(e, t) {
...r,
...Object.fromEntries(t)
});
- i(a), HJ(e, a);
+ i(a), VJ(e, a);
},
reset: () => {
i(n({}));
@@ -61055,26 +61068,26 @@ function Nwe(e, t) {
}
};
}
-function Pwe(e, t, n, r = {}) {
+function Iwe(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]))
- }), [a, o] = (0, F.useState)(() => i(VJ(e)));
+ }), [a, o] = (0, F.useState)(() => i(BJ(e)));
return {
visibility: a,
change: (t) => {
let n = i(typeof t == "function" ? t(a) : t);
- o(n), HJ(e, n);
+ o(n), VJ(e, n);
}
};
}
-function UJ(e, t, n) {
+function HJ(e, t, n) {
let r = (0, F.useMemo)(() => Object.fromEntries(t.map((e) => [e.id, {
width: e.width ?? 180,
min: e.min ?? 96,
max: e.max ?? (e.flex ? 2e3 : 800),
flex: e.flex
- }])), [t]), i = Nwe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = Pwe(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 = Fwe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = Iwe(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,
@@ -61093,15 +61106,15 @@ function UJ(e, t, n) {
};
}
// src/react/catalog-grid/catalog-column-widths.ts
-function Fwe() {
- return UJ("catalog", OJ, {
- widths: EJ,
- visibility: DJ
+function Lwe() {
+ return HJ("catalog", DJ, {
+ widths: TJ,
+ visibility: EJ
});
}
// src/react/components/rating-stars.tsx
-var WJ = uV("star");
-function GJ({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
+var UJ = lV("star");
+function WJ({ 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", {
"data-rating-stars": "",
@@ -61124,25 +61137,25 @@ function GJ({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
onClick: () => {
n || t(e);
},
- children: n === e ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Vs("正在保存评分") } }) : /* @__PURE__ */ (0, I.jsx)(WJ, {})
+ children: n === e ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs("正在保存评分") } }) : /* @__PURE__ */ (0, I.jsx)(UJ, {})
}, e) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-rate": e,
"data-on": String(i >= e),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
"data-rating-icon": "",
- children: [/* @__PURE__ */ (0, I.jsx)(WJ, {}), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(UJ, {}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-fill": "",
style: { width: `${Math.max(0, Math.min(1, i - e + 1)) * 100}%` },
- children: /* @__PURE__ */ (0, I.jsx)(WJ, {})
+ children: /* @__PURE__ */ (0, I.jsx)(UJ, {})
})]
})
}, e))
});
}
// src/react/catalog-grid/catalog-table-controls.tsx
-function Iwe({ item: e, actions: t }) {
- let { rating: n } = e, r = fH(), i = (0, F.useRef)(0), a = dP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
- cP(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
+function Rwe({ item: e, actions: t }) {
+ let { rating: n } = e, r = dH(), i = (0, F.useRef)(0), a = uP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
+ sP(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
...e,
rating: t
});
@@ -61154,11 +61167,11 @@ function Iwe({ item: e, actions: t }) {
role: "group",
"aria-label": o,
title: o,
- children: [/* @__PURE__ */ (0, I.jsx)(GJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(WJ, {
value: a,
onRate: c,
busyStar: r.busy ? Number(r.busy) : void 0
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -61171,7 +61184,7 @@ function Iwe({ item: e, actions: t }) {
}) : null]
});
}
-function KJ(e) {
+function GJ(e) {
if (e == null || e === "") return "—";
let t = String(e);
if (/^\d{4}-\d{2}-\d{2}$/.test(t)) return t;
@@ -61186,7 +61199,7 @@ function KJ(e) {
});
}
// src/react/components/selection-actions.tsx
-function qJ({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
+function KJ({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-selection-actions": "",
"data-action-layout": t,
@@ -61198,10 +61211,10 @@ function qJ({ 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)(dH, {
+ }, e.label) : /* @__PURE__ */ (0, I.jsx)(uH, {
size: "small",
href: e.href,
- trailingIcon: gB,
+ trailingIcon: hB,
className: t === "inline" ? "shrink-0" : "w-full",
disabled: e.disabled,
onClick: r,
@@ -61210,15 +61223,15 @@ function qJ({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
});
}
// src/react/components/selection-popover.tsx
-function JJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i, actions: a, actionLayout: o = "inline", empty: s = "暂无可选项" }) {
- let c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), d = /* @__PURE__ */ (0, I.jsx)(qJ, {
+function qJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i, actions: a, actionLayout: o = "inline", empty: s = "暂无可选项" }) {
+ let c = (0, F.useRef)(null), [l, u] = (0, F.useState)(!1), d = /* @__PURE__ */ (0, I.jsx)(KJ, {
actions: a,
layout: o,
onNavigate: () => u(!1)
}, "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)(IV, {
+ children: r.length ? r.map((e) => /* @__PURE__ */ (0, I.jsx)(FV, {
isSelected: e.selected,
className: "min-w-0 [&>span:last-child]:min-w-0 [&>span:last-child]:wrap-anywhere",
isDisabled: e.disabled,
@@ -61238,14 +61251,14 @@ function JJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
"aria-label": t,
onClick: () => u(!0),
children: t
- }), /* @__PURE__ */ (0, I.jsx)(lz, {
+ }), /* @__PURE__ */ (0, I.jsx)(cz, {
triggerRef: c,
isOpen: l,
onOpenChange: u,
placement: "bottom end",
offset: 4,
- className: J(kV, "w-max overscroll-contain"),
- children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(hH, {
+ className: J(OV, "w-max overscroll-contain"),
+ children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(mH, {
"aria-label": e,
"data-selection-placement": t ?? "bottom",
className: "flex w-max max-w-full flex-col gap-2 outline-none",
@@ -61254,13 +61267,13 @@ function JJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
})] });
}
// src/react/components/table-column-controls.tsx
-function YJ({ preferences: e, label: t = "表格" }) {
+function JJ({ preferences: e, label: t = "表格" }) {
let n = e.columns.filter((e) => !e.required);
return /* @__PURE__ */ (0, I.jsxs)("div", {
role: "group",
"aria-label": `${t}列设置`,
className: "flex flex-none gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(JJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(qJ, {
label: `${t}显示列`,
triggerLabel: "显示列",
actionLayout: "fullWidth",
@@ -61288,39 +61301,39 @@ function YJ({ preferences: e, label: t = "表格" }) {
})]
});
}
-function XJ({ preferences: e, id: t }) {
+function YJ({ preferences: e, id: t }) {
let n = e.columns.find((e) => e.id === t);
- return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(khe, { "aria-label": `调整${n.label}列宽` }) : null;
+ return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(jhe, { "aria-label": `调整${n.label}列宽` }) : null;
}
// src/react/components/table-selection-header.tsx
-function ZJ(e, t) {
+function XJ(e, t) {
let n = (t ? e.getPaginatedRowModel() : e.getFilteredRowModel()).flatRows.filter((e) => e.getCanSelect()), r = n.filter((e) => e.getIsSelected()).length;
return {
all: n.length > 0 && r === n.length,
some: r > 0 && r < n.length
};
}
-function QJ({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
- let { all: i, some: a } = ZJ(e, n);
- return /* @__PURE__ */ (0, I.jsx)(IV, {
+function ZJ({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
+ let { all: i, some: a } = XJ(e, n);
+ return /* @__PURE__ */ (0, I.jsx)(FV, {
slot: null,
"aria-label": t,
isDisabled: r,
isSelected: i,
isIndeterminate: a,
onChange: () => {
- let t = !ZJ(e, n).all;
+ let t = !XJ(e, n).all;
n ? e.toggleAllPageRowsSelected(t) : e.toggleAllRowsSelected(t);
}
});
}
// src/react/catalog-grid/catalog-list-page.tsx
-var Lwe = Tq({
- rowSortingFeature: CJ,
- rowSelectionFeature: uJ,
- rowPaginationFeature: Uq,
- columnVisibilityFeature: Nq
-}), $J = OJ.map((e) => e.id), Rwe = [
+var zwe = wq({
+ rowSortingFeature: SJ,
+ rowSelectionFeature: lJ,
+ rowPaginationFeature: Hq,
+ columnVisibilityFeature: Mq
+}), QJ = DJ.map((e) => e.id), Bwe = [
{
id: "name",
label: "名称"
@@ -61357,12 +61370,12 @@ var Lwe = Tq({
id: "played",
label: "观看时间"
}
-], eY = /* @__PURE__ */ new Map();
-function zwe(e) {
- let t = Fwe(), n = eK(), r = iP(e.filters || {}, !1), [i] = (0, F.useState)(() => {
+], $J = /* @__PURE__ */ new Map();
+function Vwe(e) {
+ let t = Lwe(), n = $G(), r = nP(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)(() => eY.get(i) || {
+ }), [a, o] = (0, F.useState)(() => $J.get(i) || {
sorting: [],
pagination: {
pageIndex: 0,
@@ -61370,7 +61383,7 @@ function zwe(e) {
}
}), { sorting: s, pagination: c } = a;
(0, F.useEffect)(() => {
- eY.set(i, a);
+ $J.set(i, a);
}, [i, a]);
let l = c.pageIndex * c.pageSize, u = s[0], d = Ft({
queryKey: [
@@ -61401,9 +61414,9 @@ function zwe(e) {
libraryEmpty: (await B("/api/items?limit=1&thumb=0", t)).total === 0
};
}
- }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : kK(f, e.layout.javImage), [h] = (0, F.useState)(MJ);
+ }), f = d.data?.items || [], p = Number(d.data?.total || 0), m = e.filters?.state === "trash" ? [] : OK(f, e.layout.javImage), [h] = (0, F.useState)(jJ);
(0, F.useEffect)(() => {
- d.data && !d.isPlaceholderData && kwe(m.length > 0);
+ d.data && !d.isPlaceholderData && jwe(m.length > 0);
}, [
d.data,
d.isPlaceholderData,
@@ -61435,19 +61448,19 @@ function zwe(e) {
p,
c.pageIndex
]);
- let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = wJ({
- features: Lwe,
+ let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = CJ({
+ features: zwe,
columns: (0, F.useMemo)(() => {
- let t = wq();
+ let t = Cq();
return t.columns([
t.display({
id: "select",
- header: ({ table: e }) => /* @__PURE__ */ (0, I.jsx)(QJ, {
+ header: ({ table: e }) => /* @__PURE__ */ (0, I.jsx)(ZJ, {
table: e,
label: "全选本页作品",
disabled: d.isPlaceholderData
}),
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(IV, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(FV, {
slot: null,
"aria-label": `选择 ${e.helpers.displayName(t.original, t.original.name || "")}`,
isDisabled: d.isPlaceholderData,
@@ -61459,7 +61472,7 @@ function zwe(e) {
id: "name",
header: "作品",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Bwe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Hwe, {
item: t.original,
props: e,
disabled: d.isPlaceholderData
@@ -61468,12 +61481,12 @@ function zwe(e) {
t.display({
id: "library",
header: "媒体库",
- cell: ({ row: e }) => /* @__PURE__ */ (0, I.jsx)(Vwe, { item: e.original })
+ cell: ({ row: e }) => /* @__PURE__ */ (0, I.jsx)(Uwe, { item: e.original })
}),
t.display({
id: "people",
header: "艺人",
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Hwe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Wwe, {
item: t.original,
props: e
})
@@ -61529,7 +61542,7 @@ function zwe(e) {
id: "rating",
header: "评分",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Iwe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Rwe, {
item: t.original,
actions: e.actions
})
@@ -61550,13 +61563,13 @@ function zwe(e) {
id: "played",
header: "观看时间",
enableSorting: !0,
- cell: ({ row: e }) => KJ(e.original.last_played)
+ cell: ({ row: e }) => GJ(e.original.last_played)
}),
t.accessor((e) => e.first_seen, {
id: "new",
header: "入库时间",
enableSorting: !0,
- cell: ({ row: e }) => KJ(e.original.first_seen)
+ cell: ({ row: e }) => GJ(e.original.first_seen)
}),
t.accessor((e) => e.release_date, {
id: "release",
@@ -61564,7 +61577,7 @@ function zwe(e) {
enableSorting: !0,
cell: ({ row: e }) => e.original.release_date || "—"
})
- ]).sort((e, t) => $J.indexOf(e.id) - $J.indexOf(t.id));
+ ]).sort((e, t) => QJ.indexOf(e.id) - QJ.indexOf(t.id));
}, [
e.helpers,
e.actions,
@@ -61627,9 +61640,9 @@ function zwe(e) {
"aria-label": "作品列表工具栏",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-toolbar-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(YJ, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(zJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(JJ, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(RJ, {
label: "作品列表",
- options: Rwe,
+ options: Bwe,
sorting: s,
onChange: (e) => _.setSorting(e)
})]
@@ -61639,21 +61652,21 @@ function zwe(e) {
"data-completion-skeleton": "",
"aria-hidden": "true",
className: "skeleton-sheen"
- }) : null : /* @__PURE__ */ (0, I.jsx)(AK, {
+ }) : null : /* @__PURE__ */ (0, I.jsx)(kK, {
className: "",
assetIds: m
}),
- d.isError ? /* @__PURE__ */ (0, I.jsx)(FG, {
+ d.isError ? /* @__PURE__ */ (0, I.jsx)(PG, {
message: xn(d.error),
onRetry: () => void d.refetch()
}) : null,
- /* @__PURE__ */ (0, I.jsx)(IJ, {
+ /* @__PURE__ */ (0, I.jsx)(FJ, {
follow: !0,
preferences: t,
onRowClick: e.selectMode ? (t) => {
d.isPlaceholderData || e.actions.toggleSelection(Number(t), !1);
} : void 0,
- children: /* @__PURE__ */ (0, I.jsxs)(TJ, {
+ children: /* @__PURE__ */ (0, I.jsxs)(wJ, {
"aria-label": "作品列表",
size: "sm",
sortDescriptor: u ? {
@@ -61664,48 +61677,48 @@ function zwe(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, I.jsxs)(Zz, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(Qz, {
+ children: [/* @__PURE__ */ (0, I.jsxs)(Xz, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(Zz, {
id: e.id,
isRowHeader: e.id === "name",
allowsSorting: e.column.getCanSort(),
...t.columnProps(e.id),
children: ({ sortDirection: n }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex items-center gap-0.5",
- children: [jK(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [AK(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)(EV, {})
+ children: /* @__PURE__ */ (0, I.jsx)(TV, {})
}) : null]
- }), /* @__PURE__ */ (0, I.jsx)(XJ, {
+ }), /* @__PURE__ */ (0, I.jsx)(YJ, {
preferences: t,
id: e.id
})] })
- }, e.id)), /* @__PURE__ */ (0, I.jsx)(Qz, {
+ }, e.id)), /* @__PURE__ */ (0, I.jsx)(Zz, {
id: "remaining-space",
"aria-label": "行空白区域",
"data-table-space": "",
width: t.spaceWidth,
minWidth: 0
- })] }), /* @__PURE__ */ (0, I.jsx)(tB, {
+ })] }), /* @__PURE__ */ (0, I.jsx)(eB, {
renderEmptyState: () => d.isError ? "作品列表未取得" : "没有符合的作品",
- children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(iB, {
+ children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(rB, {
id: `skeleton-${t}`,
"data-list-skeleton-row": "",
"aria-hidden": "true",
- children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(oB, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: NJ(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(oB, { "data-table-space": "" })]
- }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(iB, {
+ children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(aB, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: MJ(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(aB, { "data-table-space": "" })]
+ }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(rB, {
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)(oB, { children: jK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(oB, { "data-table-space": "" })]
+ children: [e.getVisibleCells().map((e) => /* @__PURE__ */ (0, I.jsx)(aB, { children: AK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(aB, { "data-table-space": "" })]
}, e.id))
})]
})
}),
- d.data ? /* @__PURE__ */ (0, I.jsx)(BJ, {
+ d.data ? /* @__PURE__ */ (0, I.jsx)(zJ, {
label: "作品列表",
total: p,
pagination: c,
@@ -61716,9 +61729,9 @@ function zwe(e) {
]
});
}
-function Bwe({ item: e, props: t, disabled: n }) {
- let r = Eo(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() || "未命名作品";
- tL();
+function Hwe({ 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() || "未命名作品";
+ eL();
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",
@@ -61738,9 +61751,9 @@ function Bwe({ item: e, props: t, disabled: n }) {
children: /* @__PURE__ */ (0, I.jsxs)("span", {
"data-list-picture": "",
children: [
- r.html ? /* @__PURE__ */ (0, I.jsx)(WU, {
+ r.html ? /* @__PURE__ */ (0, I.jsx)(UU, {
artwork: r,
- relayout: (e) => Dl(e, "small")
+ relayout: (e) => El(e, "small")
}) : /* @__PURE__ */ (0, I.jsx)("span", { children: "无预览" }),
i && !a ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-group": "",
@@ -61790,17 +61803,17 @@ function Bwe({ item: e, props: t, disabled: n }) {
})]
});
}
-function Vwe({ item: e }) {
- let t = eK({ names: !0 }), n = e.library_id ? t.get(e.library_id) : void 0;
+function Uwe({ item: e }) {
+ let t = $G({ 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)(LH, { mark: n.icon }), /* @__PURE__ */ (0, I.jsx)("span", { children: n.name })]
+ children: [/* @__PURE__ */ (0, I.jsx)(IH, { mark: n.icon }), /* @__PURE__ */ (0, I.jsx)("span", { children: n.name })]
}) : "—";
}
-function Hwe({ item: e, props: t }) {
- tL();
- let { avatar: n, who: r } = cK(e);
+function Wwe({ item: e, props: t }) {
+ eL();
+ let { avatar: n, who: r } = sK(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-list-people": "",
onClick: (e) => {
@@ -61812,22 +61825,22 @@ function Hwe({ item: e, props: t }) {
});
}
// src/react/catalog-grid/catalog-grid-page.tsx
-function tY(e) {
- let t = rG();
- if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(Wwe, { ...e });
- let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${iP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(zwe, { ...e }, n);
+function eY(e) {
+ let t = nG();
+ if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(Kwe, { ...e });
+ let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${nP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(Vwe, { ...e }, n);
let r = e.mode === "entity" ? "entity" : `catalog:${!!e.wall}`;
- return /* @__PURE__ */ (0, I.jsx)(Gwe, { ...e }, r);
+ return /* @__PURE__ */ (0, I.jsx)(qwe, { ...e }, r);
}
-function Uwe({ name: e }) {
+function Gwe({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function nY({ children: e, selectMode: t }) {
+function tY({ children: e, selectMode: t }) {
let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1);
return (0, F.useLayoutEffect)(() => {
let e = n.current;
@@ -61843,8 +61856,8 @@ function nY({ children: e, selectMode: t }) {
children: e
});
}
-function Wwe(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)(uK, {
+function Kwe(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)(lK, {
item: i,
variant: r,
layout: e.layout,
@@ -61858,13 +61871,13 @@ function Wwe(e) {
return r === "next" ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-next-row": "",
children: i
- }) : /* @__PURE__ */ (0, I.jsx)(nY, {
+ }) : /* @__PURE__ */ (0, I.jsx)(tY, {
selectMode: e.selectMode,
children: i
});
}
-function Gwe(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? que(e) : Kue(e), [s] = (0, F.useState)(() => e.wall ? aP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? aP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
+function qwe(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Yue(e) : rP(e), [s] = (0, F.useState)(() => e.wall ? iP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? iP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
@@ -61890,7 +61903,7 @@ function Gwe(e) {
u.isPlaceholderData,
e.revision
]);
- let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => Yue(u.data?.pages || [], {
+ let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => Zue(u.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -61900,7 +61913,7 @@ function Gwe(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 || sbe(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && nbe(e.item) ? [e.item] : []), y = a ? [] : kK(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = Kwe(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 || lbe(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && ibe(e.item) ? [e.item] : []), y = a ? [] : OK(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = Jwe(e, u.isPlaceholderData ? void 0 : u.data, f, p, b);
(0, F.useLayoutEffect)(() => {
if (!u.data || u.isPlaceholderData) return;
let t = !0;
@@ -61928,12 +61941,12 @@ function Gwe(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)(Jwe, {
+ }, [u.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)(Xwe, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, I.jsx)(uK, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, I.jsx)(lK, {
item: i.item,
grouped: e.groupCollapse !== !1,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
@@ -61945,8 +61958,8 @@ function Gwe(e) {
actions: n,
onOpen: a ? w : C
}, i.item.id), O = () => {
- if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(qxe, {
- sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${iP(e.filters || {}, !!e.excludeVertical)}`,
+ if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(Yxe, {
+ sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${nP(e.filters || {}, !!e.excludeVertical)}`,
items: v,
finite: g,
hasMore: !!u.hasNextPage,
@@ -61954,7 +61967,7 @@ function Gwe(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 ? Xxe({
+ emptyHtml: u.data && !v.length ? Qxe({
libraryEmpty: !!u.data.pages[0]?.libraryEmpty,
matches: h,
hasMore: !!u.hasNextPage,
@@ -61969,7 +61982,7 @@ function Gwe(e) {
javImage: r.javImage
}, g ? "finite" : "explore");
if (u.isPending) return null;
- if (!u.data) return /* @__PURE__ */ (0, I.jsx)(FG, {
+ if (!u.data) return /* @__PURE__ */ (0, I.jsx)(PG, {
message: xn(u.error),
onRetry: () => void u.refetch()
});
@@ -61986,12 +61999,12 @@ function Gwe(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: Que(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(nY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(qwe, {
+ children: ede(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(tY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(Ywe, {
cut: t.strip,
props: e,
onOpen: T
}) : null] }, t.start))
- }), u.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(rY, {
+ }), u.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(nY, {
entity: i,
load: E,
enabled: () => !u.isPlaceholderData && e.canLoadMore?.() !== !1
@@ -62001,14 +62014,14 @@ function Gwe(e) {
ref: b,
"data-media-body": "",
"aria-busy": u.isFetching && !u.isFetchingNextPage,
- children: [/* @__PURE__ */ (0, I.jsx)(AK, { assetIds: y }), e.wall ? O() : /* @__PURE__ */ (0, I.jsx)(IG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(kK, { assetIds: y }), e.wall ? O() : /* @__PURE__ */ (0, I.jsx)(FG, {
pending: u.isPending,
skeletonHtml: e.skeletonHtml,
children: O()
})]
});
}
-function rY({ entity: e, load: t, enabled: n, children: r }) {
+function nY({ entity: e, load: t, enabled: n, children: r }) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(!1), s = (0, F.useRef)(!1), [c, l] = (0, F.useState)({
busy: !1,
error: ""
@@ -62050,7 +62063,7 @@ function rY({ entity: e, load: t, enabled: n, children: r }) {
if (!e) return;
let t = new IntersectionObserver((e) => {
e.some((e) => e.isIntersecting) && d(!1);
- }, { rootMargin: PG });
+ }, { rootMargin: NG });
return a.current = t, t.observe(e), () => {
t.disconnect(), a.current = null;
};
@@ -62072,19 +62085,19 @@ function rY({ entity: e, load: t, enabled: n, children: r }) {
...p,
hidden: !!c.error,
onClick: () => void d(!0),
- dangerouslySetInnerHTML: { __html: Us(Hs) }
- }), c.error ? /* @__PURE__ */ (0, I.jsx)(FG, {
+ dangerouslySetInnerHTML: { __html: Hs(Vs) }
+ }), c.error ? /* @__PURE__ */ (0, I.jsx)(PG, {
message: c.error,
onRetry: () => void d(!0)
}) : null] });
}
-function Kwe(e, t, n, r, i) {
- let a = ["catalog-short-layout", iP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {
+function Jwe(e, t, n, r, i) {
+ let a = ["catalog-short-layout", nP(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 && oP(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
+ return t && aP(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
stamp: o,
cuts: t?.cuts || [],
offset: t?.offset || 0,
@@ -62110,7 +62123,7 @@ function Kwe(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?${$ue(e.filters || {}, p.offset)}`, r.signal).then((e) => {
if (c.current !== p || r.signal.aborted) return;
let t = e.items || [];
t.length ? f({
@@ -62124,9 +62137,9 @@ function Kwe(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 = Xue(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 = Que(n.length - t, h, l);
if (!g.length) return;
- let _ = oP(d.items, p.groups, e.groupCollapse !== !1);
+ let _ = aP(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,
@@ -62143,7 +62156,7 @@ function Kwe(e, t, n, r, i) {
});
}, [d]), m;
}
-function qwe({ cut: e, props: t, onOpen: n }) {
+function Ywe({ cut: e, props: t, onOpen: n }) {
let r = (0, F.useRef)(null), { wireDrag: i } = t;
return (0, F.useEffect)(() => {
r.current && i(r.current);
@@ -62159,12 +62172,12 @@ function qwe({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, I.jsx)(Uwe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(Gwe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]
})
] }), /* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
"data-shorts-row": "",
- children: e.items.map((e) => /* @__PURE__ */ (0, I.jsx)(uK, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, I.jsx)(lK, {
item: e,
variant: "short",
layout: t.layout,
@@ -62179,17 +62192,17 @@ function qwe({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function iY(e, t, n) {
- return Do(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
+function rY(e, t, n) {
+ return Eo(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
-function Jwe({ seed: e, layout: t, helpers: n, actions: r }) {
+function Xwe({ 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 = No(e, n.tagLabel), s = (0, F.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => sP(e, t.javImage)).slice(0, 9);
- return i.current = new Map(n.map((e) => [String(e.id), iY(e, t, !0).html])), n.map((e) => String(e.id));
- }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = iY(e, t, !1);
- return /* @__PURE__ */ (0, I.jsx)(mK, {
+ let o = Mo(e, n.tagLabel), s = (0, F.useCallback)(async () => {
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => oP(e, t.javImage)).slice(0, 9);
+ return i.current = new Map(n.map((e) => [String(e.id), rY(e, t, !0).html])), n.map((e) => String(e.id));
+ }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = rY(e, t, !1);
+ return /* @__PURE__ */ (0, I.jsx)(pK, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -62199,12 +62212,12 @@ function Jwe({ seed: e, layout: t, helpers: n, actions: r }) {
wholeCard: !0,
poster: null,
artwork: l,
- artworkIdentity: c === "small" ? l.html : iY(e, {
+ artworkIdentity: c === "small" ? l.html : rY(e, {
...t,
size: "small"
}, !1).html,
- relayoutArt: (e) => Dl(e, c),
- ratio: sK(e, "grid", t),
+ relayoutArt: (e) => El(e, c),
+ ratio: oK(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -62215,40 +62228,40 @@ function Jwe({ seed: e, layout: t, helpers: n, actions: r }) {
});
}
// src/react/media-sources.ts
-async function aY(e) {
+async function iY(e) {
await H.fetchQuery({
queryKey: yr,
queryFn: () => br(e)
});
}
-var Ywe = (e) => (e?.sources ?? []).filter((e) => vn.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Xwe = "/api/duplicates?limit=120", oY = ["duplicates"], sY = "/api/batch", Zwe = (e, t) => V(sY, {
+var Zwe = (e) => (e?.sources ?? []).filter((e) => vn.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Qwe = "/api/duplicates?limit=120", aY = ["duplicates"], oY = "/api/batch", $we = (e, t) => V(oY, {
ids: e,
operation: t ? "keep-duplicates" : "reconsider-duplicates"
-}), cY = (e) => B(Xwe, e), Qwe = /[\s\-_.()[\]【】/\\]/;
-function $we(e) {
+}), sY = (e) => B(Qwe, e), eTe = /[\s\-_.()[\]【】/\\]/;
+function tTe(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 && !Qwe.test(n[r - 1]);) --r;
+ for (; r > 0 && !eTe.test(n[r - 1]);) --r;
return r >= 8 ? n.slice(0, r) : "";
}
-var eTe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
-async function tTe(e) {
+var nTe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
+async function rTe(e) {
await Promise.all([H.fetchQuery({
- queryKey: oY,
- queryFn: () => cY(e)
- }), aY(e)]);
+ queryKey: aY,
+ queryFn: () => sY(e)
+ }), iY(e)]);
}
-var nTe = {
+var iTe = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, rTe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), lY = (e, t) => rTe(e, t).filter((t) => e.some((e) => e.location !== t)), iTe = (e, t) => t.filter((t) => e.some((e) => lY(e.files, [t]).length));
-function aTe(e, t) {
+}, aTe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), cY = (e, t) => aTe(e, t).filter((t) => e.some((e) => e.location !== t)), oTe = (e, t) => t.filter((t) => e.some((e) => cY(e.files, [t]).length));
+function sTe(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -62267,19 +62280,19 @@ function aTe(e, t) {
}
return n;
}
-function oTe(e, t) {
+function cTe(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 sTe(e, t) {
- for (let n = 0; n < e.length; n += 200) await V(sY, {
+async function lTe(e, t) {
+ for (let n = 0; n < e.length; n += 200) await V(oY, {
ids: e.slice(n, n + 200),
operation: t,
...t === "dispose" ? { disposal_reason: "duplicate" } : {}
});
}
// src/react/media-repair/media-repair.ts
-var uY = "/api/media-repair", dY = ["media-repair"], fY = ["media-repair", "libraries"], cTe = {
+var lY = "/api/media-repair", uY = ["media-repair"], dY = ["media-repair", "libraries"], uTe = {
status: "idle",
library: "",
stage: "",
@@ -62291,39 +62304,39 @@ var uY = "/api/media-repair", dY = ["media-repair"], fY = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, pY = (e) => B(uY, e), mY = async (e) => (await B("/api/libraries", e)).libraries || [];
-async function lTe(e) {
+}, fY = (e) => B(lY, e), pY = async (e) => (await B("/api/libraries", e)).libraries || [];
+async function dTe(e) {
await Promise.all([H.fetchQuery({
+ queryKey: uY,
+ queryFn: () => fY(e)
+ }), H.fetchQuery({
queryKey: dY,
queryFn: () => pY(e)
- }), H.fetchQuery({
- queryKey: fY,
- queryFn: () => mY(e)
})]);
}
-var hY = (e) => Number(e).toLocaleString();
-function uTe(e) {
+var mY = (e) => Number(e).toLocaleString();
+function fTe(e) {
if (e.status === "running") {
- let t = e.total ? `${hY(Math.min(e.checked || 0, e.total))} / ${hY(e.total)}` : "准备中";
+ let t = e.total ? `${mY(Math.min(e.checked || 0, e.total))} / ${mY(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${hY(e.repaired)} 部,${hY(e.failed)} 部修不了` : `修好 ${hY(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${mY(e.repaired)} 部,${mY(e.failed)} 部修不了` : `修好 ${mY(e.repaired)} 部` : "";
}
-var dTe = (e) => `${hY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, fTe = "/api/quality-goals?limit=200", gY = ["quality-goals"], _Y = (e) => B(fTe, e);
-async function pTe(e) {
+var pTe = (e) => `${mY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, mTe = "/api/quality-goals?limit=200", hY = ["quality-goals"], gY = (e) => B(mTe, e);
+async function hTe(e) {
await H.fetchQuery({
- queryKey: gY,
- queryFn: () => _Y(e)
+ queryKey: hY,
+ queryFn: () => gY(e)
});
}
-var mTe = (e) => e.has_cover ? uo(e) : `/poster?id=${e.id}&c=4`;
+var gTe = (e) => e.has_cover ? lo(e) : `/poster?id=${e.id}&c=4`;
// src/selection.ts
-function vY(e, t, n, r, i, a = i || !e.has(r)) {
+function _Y(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 hTe = "/api/review", gTe = "/api/review/decision", _Te = "/api/review/genre", yY = ["review"], bY = {
+var _Te = "/api/review", vTe = "/api/review/decision", yTe = "/api/review/genre", vY = ["review"], yY = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -62333,40 +62346,40 @@ var hTe = "/api/review", gTe = "/api/review/decision", _Te = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, vTe = Object.keys(bY), yTe = "metadata_fields", xY = (e) => typeof e == "string" && Object.hasOwn(bY, e), bTe = {
+}, bTe = Object.keys(yY), xTe = "metadata_fields", bY = (e) => typeof e == "string" && Object.hasOwn(yY, e), STe = {
creator_tags: "creator",
western_identity: "creator"
-}, SY = [
+}, xY = [
"pending",
"later",
"ignored"
-], CY = {
+], SY = {
pending: "待处理",
later: "稍后处理",
ignored: "已忽略"
-}, xTe = {
+}, CTe = {
approved: "已通过",
rejected: "已忽略",
skipped: "稍后处理"
-}, wY = (e) => e === "later" || e === "ignored" ? e : "pending", TY = (e, t) => t === "pending" ? {
+}, CY = (e) => e === "later" || e === "ignored" ? e : "pending", wY = (e, t) => t === "pending" ? {
sections: e.sections,
counts: e.counts
} : e.queues[t];
-function STe(e, t) {
+function wTe(e, t) {
return {
...e,
- ...t(TY(e, "pending")),
+ ...t(wY(e, "pending")),
queues: {
later: t(e.queues.later),
ignored: t(e.queues.ignored)
}
};
}
-function CTe(e, t) {
+function TTe(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;
}
-function EY(e, t) {
+function TY(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -62383,10 +62396,10 @@ function EY(e, t) {
}
return [...n.values()];
}
-function wTe(e, t, n) {
- return n && EY(e, t).find((e) => e.key === n)?.rows || e;
+function ETe(e, t, n) {
+ return n && TY(e, t).find((e) => e.key === n)?.rows || e;
}
-function TTe(e, t) {
+function DTe(e, t) {
let n = gr(e.length, 20), r = _r(t, n);
return {
page: r,
@@ -62394,32 +62407,32 @@ function TTe(e, t) {
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function ETe(e) {
+function OTe(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 DTe(e, t, n, r, i, a) {
- return vY(e, t, n, r, i, a);
+function kTe(e, t, n, r, i, a) {
+ return _Y(e, t, n, r, i, a);
}
-function OTe(e, t) {
+function ATe(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function DY(e, t) {
+function EY(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var OY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function kTe(e, t) {
- let n = DY(e, t), r = OY(e, t);
+var DY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function jTe(e, t) {
+ let n = EY(e, t), r = DY(e, t);
return r ? `${n} · ${r}` : n;
}
-var ATe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", jTe = (e) => String(e.tags || "").split("|").filter(Boolean), MTe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function NTe(e) {
+var MTe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", NTe = (e) => String(e.tags || "").split("|").filter(Boolean), PTe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function FTe(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function PTe(e, t, n, r) {
+function ITe(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -62435,22 +62448,22 @@ function PTe(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var FTe = (e) => ({
+var LTe = (e) => ({
approved: "已通过资料",
rejected: "已忽略资料",
skipped: "已移至稍后处理",
restore: "已恢复待处理"
})[e];
-async function kY(e) {
- let t = await B(hTe, e);
- for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${CY[e]}状态未取得,请刷新或更新写入端`);
+async function OY(e) {
+ let t = await B(_Te, e);
+ for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${SY[e]}状态未取得,请刷新或更新写入端`);
return t;
}
-async function ITe(e) {
- let t = await V(gTe, e);
+async function RTe(e) {
+ let t = await V(vTe, e);
if (t.ok && t.asset_revisions) {
let e = t.asset_revisions;
- H.setQueryData(yY, (t) => t && STe(t, (t) => ({
+ H.setQueryData(vY, (t) => t && wTe(t, (t) => ({
...t,
sections: {
...t.sections,
@@ -62466,33 +62479,33 @@ async function ITe(e) {
}
return t;
}
-function LTe(e, t) {
- let n = H.getQueryData(yY);
- return n && SY.flatMap((t) => TY(n, t).sections[e] || []).find((e) => e.item_key === t.item_key) || t;
+function zTe(e, t) {
+ let n = H.getQueryData(vY);
+ return n && xY.flatMap((t) => wY(n, t).sections[e] || []).find((e) => e.item_key === t.item_key) || t;
}
-var RTe = (e, t) => V(_Te, {
+var BTe = (e, t) => V(yTe, {
genre: e,
tag: t
});
-async function zTe(e) {
+async function VTe(e) {
await H.fetchQuery({
- queryKey: yY,
- queryFn: () => kY(e)
+ queryKey: vY,
+ queryFn: () => OY(e)
});
}
-function BTe(e, t, n) {
+function HTe(e, t, n) {
let r = new Set(t);
- r.size && H.setQueryData(yY, (t) => {
+ r.size && H.setQueryData(vY, (t) => {
if (!t) return t;
- let i = SY.flatMap((n) => TY(t, n).sections[e] || []).filter((e) => r.has(e.item_key));
+ let i = xY.flatMap((n) => wY(t, n).sections[e] || []).filter((e) => r.has(e.item_key));
if (!i.length) return t;
let a = {
skipped: "later",
rejected: "ignored",
restore: "pending",
approved: null
- }[n], o = Object.fromEntries(SY.map((o) => {
- let s = TY(t, o), c = (s.sections[e] || []).filter((e) => !r.has(e.item_key)), l = a === o ? [...c, ...i.map((e) => ({
+ }[n], o = Object.fromEntries(xY.map((o) => {
+ let s = wY(t, o), c = (s.sections[e] || []).filter((e) => !r.has(e.item_key)), l = a === o ? [...c, ...i.map((e) => ({
...e,
decision: n === "restore" ? "pending" : n,
decision_note: ""
@@ -62519,254 +62532,258 @@ function BTe(e, t, n) {
};
});
}
-var VTe = () => H.invalidateQueries({
- queryKey: yY,
+var UTe = () => H.invalidateQueries({
+ queryKey: vY,
exact: !0
});
-function HTe(e, t) {
+function WTe(e, t) {
return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Cr(e.fetched_at)} 的缓存` : e?.error || t;
}
// src/react/data-cleanup/links.ts
-var UTe = "/api/links", AY = "/api/links/check", jY = "/api/links/prune", MY = ["links"], NY = ["links", "check"], PY = ["links", "prune"], WTe = {
+var GTe = "/api/links", kY = "/api/links/check", AY = "/api/links/prune", jY = ["links"], MY = ["links", "check"], NY = ["links", "prune"], KTe = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function FY(e) {
+async function PY(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var IY = (e) => B(UTe, e), LY = (e) => V(AY, { status_only: !0 }, "POST", e), GTe = ({ retry: e, checkId: t }) => FY(V(AY, e ? {
+var FY = (e) => B(GTe, e), IY = (e) => V(kY, { status_only: !0 }, "POST", e), qTe = ({ retry: e, checkId: t }) => PY(V(kY, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), RY = (e) => B(jY, e), KTe = ({ checkId: e, ids: t }) => FY(V(jY, {
+} : { restart: !0 })), LY = (e) => B(AY, e), JTe = ({ checkId: e, ids: t }) => PY(V(AY, {
confirm: !0,
check_id: e,
background: !0,
...t ? { ids: t } : {}
-})), zY = (e) => Number(e || 0).toLocaleString(), qTe = (e) => `已删除 ${zY(e.removed)} 条;${e.marked ? `已隐退女优的 ${zY(e.marked)} 条留作不可点的记录;` : ""}保留 ${zY(e.recovered)} 条未确认失效的链接。`;
-function JTe(e) {
+})), RY = (e) => Number(e || 0).toLocaleString(), YTe = (e) => `已删除 ${RY(e.removed)} 条;${e.marked ? `已隐退女优的 ${RY(e.marked)} 条留作不可点的记录;` : ""}保留 ${RY(e.recovered)} 条未确认失效的链接。`;
+function XTe(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${zY(e.checked)} / ${zY(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${RY(e.checked)} / ${RY(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
// src/configuration-endpoints.ts
-var BY = "/api/configuration", VY = "/api/pick-folder", HY = "/api/settings", UY = "/api/follow/schedule", WY = "/api/feeds/schedule", GY = "/api/thumbnail-jobs", KY = ["settings"], qY = ["follow-schedule"], JY = ["feed-schedule"], YY = ["thumbnail-jobs"], XY = "/api/media-processing", YTe = ["media-processing"], XTe = (e) => B(XY, e), ZY = (e) => B(HY, e), ZTe = (e) => B(UY, e), QTe = (e) => B(WY, e), $Te = (e) => B(GY, e);
-function eEe(e = H) {
+var zY = "/api/configuration", BY = "/api/pick-folder", VY = "/api/settings", HY = "/api/follow/schedule", UY = "/api/feeds/schedule", WY = "/api/thumbnail-jobs", GY = ["settings"], KY = ["follow-schedule"], qY = ["feed-schedule"], JY = ["thumbnail-jobs"], YY = "/api/media-processing", ZTe = ["media-processing"], QTe = (e) => B(YY, e), XY = (e) => B(VY, e), $Te = (e) => B(HY, e), eEe = (e) => B(UY, e), tEe = (e) => B(WY, e);
+function nEe(e = H) {
return e.fetchQuery({
- queryKey: KY,
- queryFn: ({ signal: e }) => ZY(e),
+ queryKey: GY,
+ queryFn: ({ signal: e }) => XY(e),
staleTime: 0
}).catch(() => null);
}
-function QY() {
+function ZY() {
return It({
- mutationFn: (e) => V(HY, e),
- onSuccess: (e) => H.setQueryData(KY, e)
+ mutationFn: (e) => V(VY, e),
+ onSuccess: (e) => H.setQueryData(GY, e)
});
}
-function tEe() {
+function rEe() {
return It({
- mutationFn: (e) => V(UY, {
+ mutationFn: (e) => V(HY, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => H.setQueryData(qY, e)
+ onSuccess: (e) => H.setQueryData(KY, e)
});
}
-var nEe = {
+var iEe = {
follow: {
- url: `${UY}/run`,
- key: qY
+ url: `${HY}/run`,
+ key: KY
},
feed: {
- url: `${WY}/run`,
- key: JY
+ url: `${UY}/run`,
+ key: qY
}
};
-function rEe(e) {
- let { url: t, key: n } = nEe[e];
+function aEe(e) {
+ let { url: t, key: n } = iEe[e];
return It({
mutationFn: () => V(t, {}),
onSuccess: (e) => H.setQueryData(n, e)
});
}
-var iEe = (e) => e?.running ? 3e3 : !1;
-function aEe() {
+var oEe = (e) => e?.running ? 3e3 : !1;
+function sEe() {
return It({
- mutationFn: (e) => V(GY, { mode: e }),
- onSuccess: (e) => H.setQueryData(YY, e)
+ mutationFn: (e) => V(WY, { mode: e }),
+ onSuccess: (e) => H.setQueryData(JY, e)
});
}
// src/react/data-cleanup/organize.ts
-var oEe = "/api/organize", sEe = "/api/organize/preview", cEe = "/api/organize/apply", lEe = "/api/organize/rollback", $Y = ["organize"], uEe = "/api/organize/example", dEe = (e, t, n) => B(`${uEe}?${new URLSearchParams({
+var cEe = "/api/organize", lEe = "/api/organize/preview", uEe = "/api/organize/apply", dEe = "/api/organize/rollback", QY = ["organize"], fEe = "/api/organize/example", pEe = (e, t, n) => B(`${fEe}?${new URLSearchParams({
file_template: e,
dir_template: t
-})}`, n), eX = (e) => B(oEe, e);
-async function fEe(e) {
+})}`, n), $Y = (e) => B(cEe, e);
+async function mEe(e) {
await H.fetchQuery({
- queryKey: $Y,
- queryFn: () => eX(e)
+ queryKey: QY,
+ queryFn: () => $Y(e)
});
}
-var pEe = (e) => V(sEe, e), mEe = (e) => V(VY, { initial: e }), hEe = (e) => e.kind === "apply" ? V(cEe, {
+var hEe = (e) => V(lEe, e), gEe = (e) => V(BY, { initial: e }), _Ee = (e) => e.kind === "apply" ? V(uEe, {
...e.request,
confirm: !0
-}) : V(lEe, { confirm: !0 });
-async function gEe(e) {
- H.setQueryData($Y, (t) => t && {
+}) : V(dEe, { confirm: !0 });
+async function vEe(e) {
+ H.setQueryData(QY, (t) => t && {
...t,
templates: e
});
try {
- await V(HY, { organizeTemplates: e });
+ await V(VY, { organizeTemplates: e });
} catch {}
}
-var _Ee = (e, t) => e && {
+var yEe = (e, t) => e && {
...e,
...t
-}, vEe = /目录模板|分隔符|盘符|`\.`/;
-function yEe(e) {
+}, bEe = /目录模板|分隔符|盘符|`\.`/;
+function xEe(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var tX = (e) => Number(e || 0).toLocaleString();
-function bEe(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${tX(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${tX(e.counts.change)} 个文件会改名或移动,${tX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+var eX = (e) => Number(e || 0).toLocaleString();
+function SEe(e) {
+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${eX(t)}`).join(" · ");
+ return Number(e.counts?.change || 0) ? `${eX(e.counts.change)} 个文件会改名或移动,${eX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
}
-function xEe(e) {
+function CEe(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${tX(r)} 个文件${n ? `,${tX(n)} 行未能退回` : ""}。` : `已整理 ${tX(r)} 个文件${n ? `,${tX(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${eX(r)} 个文件${n ? `,${eX(n)} 行未能退回` : ""}。` : `已整理 ${eX(r)} 个文件${n ? `,${eX(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
// src/react/data-cleanup/orphan-records.ts
-var SEe = "/api/orphan-records", CEe = "/api/orphan-records/attach", nX = ["orphan-records"], wEe = [
+var wEe = "/api/orphan-records", TEe = "/api/orphan-records/attach", tX = ["orphan-records"], EEe = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], rX = (e) => B(SEe, e), TEe = (e, t) => V(CEe, {
+], nX = (e) => B(wEe, e), DEe = (e, t) => V(TEe, {
id: e,
target: t
-}), EEe = (e) => V(sY, {
+}), OEe = (e) => V(oY, {
ids: Array.isArray(e) ? e : [e],
operation: "delete"
-}), DEe = (e) => [
+}), kEe = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], OEe = (e) => [...wEe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...DEe(e)].filter(Boolean).join(" · "), kEe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", AEe = (e) => [e.name, kEe(e.duration)].filter(Boolean).join(" · "), iX = "/api/resource-sync/scan", aX = "/api/resource-sync/apply", oX = ["resource-sync", "scan"], sX = ["resource-sync", "apply"], cX = (e) => V(iX, {
+], AEe = (e) => [...EEe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...kEe(e)].filter(Boolean).join(" · "), jEe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", MEe = (e) => [e.name, jEe(e.duration)].filter(Boolean).join(" · "), rX = "/api/resource-sync/scan", iX = "/api/resource-sync/apply", aX = ["resource-sync", "scan"], oX = ["resource-sync", "apply"], sX = (e) => V(rX, {
background: !0,
status_only: !0
-}, "POST", e), jEe = () => V(iX, {
+}, "POST", e), NEe = () => V(rX, {
background: !0,
restart: !0
-}), lX = (e) => B(aX, e), MEe = (e) => V(aX, {
+}), cX = (e) => B(iX, e), PEe = (e) => V(iX, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), uX = (e) => (e?.sources ?? []).some((e) => _n.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function NEe(e) {
- uX(H.getQueryData(yr)) && await Promise.all([H.fetchQuery({
+}), lX = (e) => (e?.sources ?? []).some((e) => _n.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function FEe(e) {
+ lX(H.getQueryData(yr)) && await Promise.all([H.fetchQuery({
+ queryKey: aX,
+ queryFn: () => sX(e)
+ }), H.fetchQuery({
queryKey: oX,
queryFn: () => cX(e)
- }), H.fetchQuery({
- queryKey: sX,
- queryFn: () => lX(e)
})]);
}
-var PEe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), dX = (e) => Number(e || 0).toLocaleString(), FEe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", fX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), pX = (e) => e.vanish ? `${dX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", mX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", IEe = (e) => `将永久删除文件已不在盘上的 ${dX(fX(e))} 条记录和 ${dX(e.empty)} 个空文件夹,并清理 ${dX(e.cache?.files)} 个闲置缓存。${mX(e)}${pX(e)}`, LEe = (e) => `将永久删除文件已不在盘上的 ${dX(fX(e))} 条记录(含回收站里的)、${dX(e.empty)} 个空文件夹,并清理 ${dX(e.cache?.files)} 个闲置缓存。来源根目录保留。${mX(e)}${pX(e)}`, REe = (e) => e.online ? [
- `找不到文件 · 共 ${dX(e.total)} 项`,
- e.vanish ? `${dX(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${dX(e.empty)} 个` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${dX(e.total)} 项`;
-function hX(e) {
+var IEe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), uX = (e) => Number(e || 0).toLocaleString(), LEe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", dX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), fX = (e) => e.vanish ? `${uX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", pX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", REe = (e) => `将永久删除文件已不在盘上的 ${uX(dX(e))} 条记录和 ${uX(e.empty)} 个空文件夹,并清理 ${uX(e.cache?.files)} 个闲置缓存。${pX(e)}${fX(e)}`, zEe = (e) => `将永久删除文件已不在盘上的 ${uX(dX(e))} 条记录(含回收站里的)、${uX(e.empty)} 个空文件夹,并清理 ${uX(e.cache?.files)} 个闲置缓存。来源根目录保留。${pX(e)}${fX(e)}`, BEe = (e) => e.online ? [
+ `找不到文件 · 共 ${uX(e.total)} 项`,
+ e.vanish ? `${uX(e.vanish)} 项带个人记录` : "",
+ e.empty ? `空文件夹 ${uX(e.empty)} 个` : ""
+].filter(Boolean).join(" · ") : `馆藏中有 ${uX(e.total)} 项`;
+function mX(e) {
let t = e.blocked ?? [], n = Number(e.dir_errors || 0), r = e.cache_blocked ?? [], i = Number(e.purged || 0) + Number(e.vanished || 0) + Number(e.reattached || 0) + Number(e.dirs_removed || 0) + Number(e.cache_removed || 0), a = t.length + n + r.length, o = t.slice(0, 3).map((e) => `「${e.name}」`).join("、") + (t.length > 3 ? " 等" : "");
return {
done: i,
left: a,
rest: [
- t.length ? `${dX(t.length)} 条记录没有删除(${o})` : "",
- n ? `${dX(n)} 个文件夹没有删除` : "",
- r.length ? `${dX(r.length)} 个缓存没有清理` : ""
+ t.length ? `${uX(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${uX(n)} 个文件夹没有删除` : "",
+ r.length ? `${uX(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var zEe = (e, t) => {
- let { rest: n } = hX(e), r = `已永久删除 ${dX(e.purged)} 条失效记录和 ${dX(e.dirs_removed)} 个空文件夹,清理 ${dX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${dX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${dX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
+var VEe = (e, t) => {
+ let { rest: n } = mX(e), r = `已永久删除 ${uX(e.purged)} 条失效记录和 ${uX(e.dirs_removed)} 个空文件夹,清理 ${uX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${uX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${uX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, gX = ["performer-delete-candidates"], _X = (e) => B("/api/performer/delete-candidates", e), BEe = (e, t) => B(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), VEe = (e) => V("/api/performer/delete", {
+}, hX = ["performer-delete-candidates"], gX = (e) => B("/api/performer/delete-candidates", e), HEe = (e, t) => B(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), UEe = (e) => V("/api/performer/delete", {
entity_ids: e.entity_ids,
plan: e.plan
-}), HEe = "/api/review?counts=1", vX = ["review", "counts"], UEe = "/api/ads?limit=1", yX = ["junk-summary"], bX = "/api/items?state=trash&limit=1", xX = ["trash-summary"], WEe = [
+}), WEe = "/api/review?counts=1", _X = ["review", "counts"], GEe = "/api/ads?limit=1", vX = ["junk-summary"], yX = "/api/items?state=trash&limit=1", bX = ["trash-summary"], KEe = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], SX = (e) => B(HEe, e), CX = (e) => B(UEe, e), wX = (e) => {
+], xX = (e) => B(WEe, e), SX = (e) => B(GEe, e), CX = (e) => {
let t = sessionStorage.getItem("peach.library");
- return B(t ? `${bX}&library=${encodeURIComponent(t)}` : bX, e);
-}, TX = (e) => Number(e || 0).toLocaleString();
-function GEe(e) {
- let t = bY, 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 B(t ? `${yX}&library=${encodeURIComponent(t)}` : yX, e);
+}, wX = (e) => Number(e || 0).toLocaleString();
+function qEe(e) {
+ let t = yY, 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 KEe(e) {
+function JEe(e) {
if (!e) return "";
- let t = WEe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${TX(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${TX(e.dismissed_total)}`), t.join(" · ");
+ let t = KEe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${wX(e.counts[t])}`);
+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${wX(e.dismissed_total)}`), t.join(" · ");
}
-var qEe = [
+var YEe = [
+ [_X, ({ signal: e }) => xX(e)],
+ [hY, ({ signal: e }) => gY(e)],
+ [bX, ({ signal: e }) => CX(e)],
[vX, ({ signal: e }) => SX(e)],
- [gY, ({ signal: e }) => _Y(e)],
- [xX, ({ signal: e }) => wX(e)],
- [yX, ({ signal: e }) => CX(e)],
- [oY, ({ signal: e }) => cY(e)]
+ [aY, ({ signal: e }) => sY(e)]
];
-async function JEe(e) {
- for (let [t, n] of qEe) H.prefetchQuery({
+async function XEe(e) {
+ for (let [t, n] of YEe) H.prefetchQuery({
queryKey: t,
queryFn: () => n({ signal: e })
});
- await iH(e);
+ await rH(e);
}
-async function YEe(e, t) {
+async function ZEe(e, t) {
switch (e) {
case "organize":
- await fEe(t);
+ await mEe(t);
break;
case "media-repair":
- await lTe(t);
+ await dTe(t);
break;
case "resource-sync":
- await aY(t), await NEe(t);
+ await iY(t), await FEe(t);
break;
case "orphan-records":
await H.prefetchQuery({
- queryKey: nX,
- queryFn: () => rX(t)
+ queryKey: tX,
+ queryFn: () => nX(t)
});
break;
case "batch-delete":
await H.prefetchQuery({
- queryKey: gX,
- queryFn: () => _X(t)
+ queryKey: hX,
+ queryFn: () => gX(t)
});
break;
case "links": await Promise.all([
+ H.prefetchQuery({
+ queryKey: jY,
+ queryFn: () => FY(t)
+ }),
H.prefetchQuery({
queryKey: MY,
queryFn: () => IY(t)
@@ -62774,17 +62791,13 @@ async function YEe(e, t) {
H.prefetchQuery({
queryKey: NY,
queryFn: () => LY(t)
- }),
- H.prefetchQuery({
- queryKey: PY,
- queryFn: () => RY(t)
})
]);
}
}
// src/react/feed-new/feed-new.ts
-var EX = (e) => ["feed-new", e ?? "home"], XEe = 8, ZEe = 1500;
-function QEe(e, t, n) {
+var TX = (e) => ["feed-new", e ?? "home"], QEe = 8, $Ee = 1500;
+function eDe(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -62795,33 +62808,33 @@ function QEe(e, t, n) {
setTimeout(e, n);
})]);
}
-async function $Ee(e, t, n) {
- let r = new URLSearchParams({ limit: String($j().value.feedLimit) });
+async function tDe(e, t, n) {
+ let r = new URLSearchParams({ limit: String(Qj().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 QEe(s, XEe, ZEe), {
+ return n && o.length && await eDe(s, QEe, $Ee), {
items: o,
html: s,
fetching: o.some((e) => e.cover_fetching && !e.has_cover)
};
}
-var DX = (e, t, n = !1) => ({
- queryKey: EX(e),
- queryFn: () => $Ee(e, t, n),
+var EX = (e, t, n = !1) => ({
+ queryKey: TX(e),
+ queryFn: () => tDe(e, t, n),
staleTime: Infinity,
refetchInterval: (e) => e.state.data?.fetching ? 2e3 : !1
-}), OX = (e, t) => Tn("/api/feeds/discovery", {
+}), DX = (e, t) => Tn("/api/feeds/discovery", {
method: "POST",
body: JSON.stringify({
action: t,
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function eDe(e) {
- H.removeQueries({ queryKey: EX(null) }), await H.fetchQuery(DX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+async function nDe(e) {
+ H.removeQueries({ queryKey: TX(null) }), await H.fetchQuery(EX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
// src/react/entity-page/entity-page.ts
-var kX = [
+var OX = [
"loc",
"creator",
"tag",
@@ -62835,52 +62848,52 @@ var kX = [
"browse",
"folder",
"folder_recursive"
-], AX = {
+], kX = {
media: "videos",
set: 0
-}, jX = (e, t) => [
+}, AX = (e, t) => [
"entity",
e,
t
-], tDe = (e, t, n, r) => [
+], rDe = (e, t, n, r) => [
"entity-items",
e,
t,
n,
r
-], MX = (e, t, n, r) => [
+], jX = (e, t, n, r) => [
"entity-photos",
e,
t,
n,
r
-], NX = (e) => String(e || "").split(",").filter(Boolean), nDe = (e, t) => NX(e).includes(t);
-function PX(e, t, n, r, i = 0) {
+], MX = (e) => String(e || "").split(",").filter(Boolean), iDe = (e, t) => MX(e).includes(t);
+function NX(e, t, n, r, i = 0) {
let a = new URLSearchParams();
- a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...NX(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");
- for (let t of kX) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
+ a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...MX(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");
+ for (let t of OX) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
return r.jav && a.set("jav", "1"), a;
}
-async function FX(e, t, n, r, i, a, o) {
- let s = PX(e, t, n, r, i);
+async function PX(e, t, n, r, i, a, o) {
+ let s = NX(e, t, n, r, i);
return o && (s.set("limit", String(o.limit)), s.delete("count"), o.sort && s.set("sort", o.sort), o.dir && s.set("dir", o.dir)), await Tn(`/api/items?${s}`, a ? { signal: a } : {});
}
-var IX = (e) => {
+var FX = (e) => {
let t = {
jav: e.jav,
seed: e.seed
- }, n = PX(e.kind, e.name, e.filters, t).toString();
+ }, n = NX(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: tDe(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => FX(e.kind, e.name, e.filters, t, 0, n),
+ queryKey: rDe(e.kind, e.name, n, e.revision),
+ queryFn: ({ signal: n }) => PX(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
-}, LX = (e, t) => ({
- queryKey: jX(e, t),
+}, IX = (e, t) => ({
+ queryKey: AX(e, t),
queryFn: ({ signal: n }) => Tn(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
-function rDe(e, t, n, r, i, a) {
+function aDe(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)}` : ""}`;
@@ -62889,10 +62902,10 @@ function rDe(e, t, n, r, i, a) {
let s = r ? `&seed=${encodeURIComponent(r)}` : "";
return n ? `/api/photo-set?id=${n}&limit=120${s}` : r ? `/api/photos?${o}&limit=120${s}` : `/api/photos?${o}`;
}
-var RX = (e, t, n, r) => ({
- queryKey: MX(e, t, n, r),
+var LX = (e, t, n, r) => ({
+ queryKey: jX(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await Tn(rDe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
+ let a = await Tn(aDe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@ -62905,8 +62918,8 @@ var RX = (e, t, n, r) => ({
seed: t[0]?.seed || ""
} : void 0,
staleTime: Infinity
-}), zX = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function iDe(e) {
+}), RX = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
+async function oDe(e) {
let { kind: t, name: n } = e;
if (!e.restoreNavigation) for (let e of [
"entity",
@@ -62917,25 +62930,25 @@ async function iDe(e) {
t,
n
] });
- e.resolvedEntity?.id && H.setQueryData(jX(t, n), e.resolvedEntity), await Promise.all([
- H.fetchQuery(LX(t, n)).then((t) => !t || t.error || !t.id ? null : (e.restoreNavigation || H.removeQueries({ queryKey: EX(Number(t.id)) }), H.fetchQuery(DX(Number(t.id), e.helpers.feedRowHtml, !0)))),
- H.fetchQuery(IX(e)),
- H.fetchInfiniteQuery(RX(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? H.fetchInfiniteQuery(RX(t, n, e.media.set, "")) : null
+ e.resolvedEntity?.id && H.setQueryData(AX(t, n), e.resolvedEntity), await Promise.all([
+ H.fetchQuery(IX(t, n)).then((t) => !t || t.error || !t.id ? null : (e.restoreNavigation || H.removeQueries({ queryKey: TX(Number(t.id)) }), H.fetchQuery(EX(Number(t.id), e.helpers.feedRowHtml, !0)))),
+ H.fetchQuery(FX(e)),
+ H.fetchInfiniteQuery(LX(t, n, 0, "")),
+ e.media.media === "photos" && e.media.set ? H.fetchInfiniteQuery(LX(t, n, e.media.set, "")) : null
]);
}
// src/identity-filter.ts
-var BX = [
+var zX = [
["all", "全部"],
["japanese_av", "女优"],
["amateur", "素人"],
["western", "西方"],
["blogger", "网黄博主"],
["animation", "动画作者"]
-], VX = "mb-4 flex flex-wrap gap-2";
-function aDe(e) {
- let t = BX.some(([t]) => t === e) ? e : "all";
- return `<div class="peach-react"><div aria-label="身份分类" class="${VX}">${BX.map(([e, n]) => ks({
+], BX = "mb-4 flex flex-wrap gap-2";
+function sDe(e) {
+ let t = zX.some(([t]) => t === e) ? e : "all";
+ return `<div class="peach-react"><div aria-label="身份分类" class="${BX}">${zX.map(([e, n]) => Os({
variant: e === t ? "primary" : "secondary",
size: "small",
label: n,
@@ -62943,45 +62956,45 @@ function aDe(e) {
})).join("")}</div></div>`;
}
// src/react/follow/online-vocab.ts
-var oDe = "/api/follow/authors", sDe = "/api/follow/tags", cDe = (e) => [
+var cDe = "/api/follow/authors", lDe = "/api/follow/tags", uDe = (e) => [
"follow",
"authors",
e
-], lDe = (e, t) => [
+], dDe = (e, t) => [
"follow",
"tags",
e,
t
];
-function uDe(e, t, n) {
+function fDe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${oDe}?${r}`;
+ return e && r.set("q", e), `${cDe}?${r}`;
}
-function dDe(e, t, n, r) {
+function pDe(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), `${sDe}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${lDe}?${i}`;
}
-var fDe = (e, t, n, r) => B(uDe(e, t, n), r), pDe = (e, t, n, r, i) => B(dDe(e, t, n, r), i), mDe = "/api/index", HX = {
+var mDe = (e, t, n, r) => B(fDe(e, t, n), r), hDe = (e, t, n, r, i) => B(pDe(e, t, n, r), i), gDe = "/api/index", VX = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, hDe = {
+}, _De = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency",
series: "series"
-}, UX = [
+}, HX = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -62991,31 +63004,31 @@ var fDe = (e, t, n, r) => B(uDe(e, t, n), r), pDe = (e, t, n, r, i) => B(dDe(e,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], WX = [
+], UX = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], GX = {
+], WX = {
people: 120,
tags: 100
-}, KX = (e) => e !== "tags", qX = (e) => e === "studios" || e === "agencies";
-function JX(e) {
- if (e.kind === "creators" && e.category === "animation") return JX({
+}, GX = (e) => e !== "tags", KX = (e) => e === "studios" || e === "agencies";
+function qX(e) {
+ if (e.kind === "creators" && e.category === "animation") return qX({
...e,
kind: "performers",
scope: "local"
});
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? WX : UX : e.kind === "performers" && t === "local" ? BX : []).some(([t]) => t === e.category);
+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? UX : HX : e.kind === "performers" && t === "local" ? zX : []).some(([t]) => t === e.category);
return {
...e,
scope: t,
category: n ? e.category : "all"
};
}
-function YX(e) {
+function JX(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -63035,50 +63048,50 @@ function YX(e) {
...i && i !== "all" ? { category: i } : {}
};
}
-var XX = (e, t, n = "all") => [
+var YX = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" || n !== "all" ? [n] : []
];
-function ZX(e, t, n, r, i) {
+function XX(e, t, n, r, i) {
let a = new URLSearchParams({
kind: e,
limit: String(r),
offset: String(i)
});
- return t && a.set("q", t), n !== "all" && a.set("category", n), `${mDe}?${a}`;
+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${gDe}?${a}`;
}
-function QX(e, t = GX.tags) {
- let n = e.what === "people" || e.what === "online-authors" ? GX.people : t, r = {
+function ZX(e, t = WX.tags) {
+ let n = e.what === "people" || e.what === "online-authors" ? WX.people : t, r = {
initialPageParam: 0,
getNextPageParam: (e, t) => e.has_more ? t.reduce((e, t) => e + t.items.length, 0) : void 0
};
switch (e.what) {
case "people": return {
...r,
- queryKey: XX(e.kind, e.q, e.category || "all"),
- queryFn: ({ pageParam: t, signal: r }) => B(ZX(e.kind, e.q, e.category || "all", n, t), r)
+ queryKey: YX(e.kind, e.q, e.category || "all"),
+ queryFn: ({ pageParam: t, signal: r }) => B(XX(e.kind, e.q, e.category || "all", n, t), r)
};
case "tags": return {
...r,
- queryKey: XX("tags", e.q, e.category),
- queryFn: ({ pageParam: t, signal: r }) => B(ZX("tags", e.q, e.category, n, t), r)
+ queryKey: YX("tags", e.q, e.category),
+ queryFn: ({ pageParam: t, signal: r }) => B(XX("tags", e.q, e.category, n, t), r)
};
case "online-authors": return {
...r,
- queryKey: cDe(e.q),
- queryFn: ({ pageParam: t, signal: r }) => fDe(e.q, n, t, r)
+ queryKey: uDe(e.q),
+ queryFn: ({ pageParam: t, signal: r }) => mDe(e.q, n, t, r)
};
case "online-tags": return {
...r,
- queryKey: lDe(e.q, e.category),
- queryFn: ({ pageParam: t, signal: r }) => pDe(e.q, e.category, n, t, r)
+ queryKey: dDe(e.q, e.category),
+ queryFn: ({ pageParam: t, signal: r }) => hDe(e.q, e.category, n, t, r)
};
}
}
-async function gDe(e, t) {
- let n = QX(YX(JX(e)));
+async function vDe(e, t) {
+ let n = ZX(JX(qX(e)));
await H.fetchInfiniteQuery({
queryKey: n.queryKey,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -63090,20 +63103,20 @@ async function gDe(e, t) {
staleTime: Infinity
});
}
-var _De = (e) => e ? e.pages.flatMap((e) => e.items) : [], vDe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, $X = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", yDe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, bDe = {
+var yDe = (e) => e ? e.pages.flatMap((e) => e.items) : [], bDe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, QX = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", xDe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, SDe = {
numeric: !0,
sensitivity: "base"
};
-function eZ(e, t) {
+function $X(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", bDe))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", SDe))) {
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]);
}
return [...n].sort(([e], [t]) => e.localeCompare(t, "zh-CN"));
}
// src/react/index/index-people.tsx
-function tZ({ html: e, face: t, company: n, big: r }) {
+function eZ({ html: e, face: t, company: n, big: r }) {
let i = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");
@@ -63115,18 +63128,18 @@ function tZ({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var xDe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", SDe = uV("rss");
-function nZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
+var CDe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", wDe = lV("rss");
+function tZ({ 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: bU({
+ className: yU({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${xDe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${CDe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -63135,10 +63148,10 @@ function nZ({ 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)(UU, {
+ children: /* @__PURE__ */ (0, I.jsx)(HU, {
variant: "caption",
color: "soft",
- children: /* @__PURE__ */ (0, I.jsx)(SDe, {})
+ children: /* @__PURE__ */ (0, I.jsx)(wDe, {})
})
}) : null,
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -63154,9 +63167,9 @@ function nZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
]
});
}
-function rZ({ kind: e, items: t, layout: n, props: r }) {
- let i = qX(e) || e === "series";
- tL();
+function nZ({ kind: e, items: t, layout: n, props: r }) {
+ let i = KX(e) || e === "series";
+ eL();
let a = n === "big";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-index-grid": "",
@@ -63164,16 +63177,16 @@ function rZ({ 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 || hDe[e], o = r.personAvatar(t, n, a);
- return /* @__PURE__ */ (0, I.jsx)(nZ, {
+ let n = t.entity_kind || _De[e], o = r.personAvatar(t, n, a);
+ return /* @__PURE__ */ (0, I.jsx)(tZ, {
"data-k": t.k,
"data-kind": n,
name: nn(n, t.k, t.entity_id),
- readout: `${yDe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
+ readout: `${xDe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
big: a,
following: t.following,
onPress: () => r.openEntity(n, t.k),
- children: /* @__PURE__ */ (0, I.jsx)(tZ, {
+ children: /* @__PURE__ */ (0, I.jsx)(eZ, {
html: o.html,
face: o.face,
company: i,
@@ -63183,15 +63196,15 @@ function rZ({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function CDe({ items: e, layout: t, props: n }) {
- tL();
+function TDe({ items: e, layout: t, props: n }) {
+ eL();
let r = t === "big";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-index-grid": "",
"data-layout": t,
"data-cells": "people",
className: "index-grid-person gap-3",
- children: e.map((e) => /* @__PURE__ */ (0, I.jsx)(nZ, {
+ children: e.map((e) => /* @__PURE__ */ (0, I.jsx)(tZ, {
"data-follow-author": e.key,
"data-kind": "performer",
name: nn("creator", e.k, e.entity_id),
@@ -63200,7 +63213,7 @@ function CDe({ items: e, layout: t, props: n }) {
onPress: () => {
e.entity_id ? n.openEntity("creator", e.k) : e.held_by ? n.openEntity("creator", e.held_by) : n.openFollowAuthor(e.key);
},
- children: /* @__PURE__ */ (0, I.jsx)(tZ, {
+ children: /* @__PURE__ */ (0, I.jsx)(eZ, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -63209,8 +63222,8 @@ function CDe({ items: e, layout: t, props: n }) {
});
}
// src/board-tooltip.ts
-var iZ = (e) => e.replace(/\s+/g, " ").trim();
-function aZ(e) {
+var rZ = (e) => e.replace(/\s+/g, " ").trim();
+function iZ(e) {
let t = document.createTreeWalker(e, NodeFilter.SHOW_TEXT), n = "", r;
for (; r = t.nextNode();) {
let e = r.parentElement;
@@ -63218,12 +63231,12 @@ function aZ(e) {
let t = document.createRange();
t.selectNodeContents(r), [...t.getClientRects()].some((e) => e.width > 0 && e.height > 0) && getComputedStyle(e).visibility === "visible" && (n += r.textContent);
}
- return iZ(n);
+ return rZ(n);
}
-function oZ(e) {
+function aZ(e) {
let t = e.getBoundingClientRect();
if (t.width && t.height) {
- if (e.matches("a") && aZ(e) && !sZ(e)) {
+ if (e.matches("a") && iZ(e) && !oZ(e)) {
let t = document.createRange();
t.selectNodeContents(e);
let n = t.getBoundingClientRect();
@@ -63236,7 +63249,7 @@ function oZ(e) {
let r = Math.min(...n.map((e) => e.left)), i = Math.min(...n.map((e) => e.top));
return new DOMRect(r, i, Math.max(...n.map((e) => e.right)) - r, Math.max(...n.map((e) => e.bottom)) - i);
}
-function sZ(e) {
+function oZ(e) {
if (e.matches(".middle-truncated") || e.querySelector(".middle-truncated") || [e, ...e.querySelectorAll("*")].some((e) => e.clientWidth > 0 && (e.scrollWidth > e.clientWidth + 1 || e.scrollHeight > e.clientHeight + 1))) return !0;
let t = document.createRange();
t.selectNodeContents(e);
@@ -63247,19 +63260,19 @@ function sZ(e) {
}
return !1;
}
-function wDe() {
+function EDe() {
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) => {
- let n = oZ(t), r = e.getBoundingClientRect();
+ let n = aZ(t), r = e.getBoundingClientRect();
n && (e.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left + (n.width - r.width) / 2))}px`, e.style.top = `${n.top >= r.height + 16 ? n.top - r.height - 8 : Math.min(innerHeight - r.height - 8, n.bottom + 8)}px`);
}, u = () => {
clearTimeout(a), !c() && (clearTimeout(i), e.matches(":popover-open") && e.hidePopover(), e.hidden = !0, e.removeAttribute("data-copy-key"), t && (t.hasAttribute("title") || (t.title = n), r === null ? t.removeAttribute("aria-describedby") : t.setAttribute("aria-describedby", r)), t = null);
}, d = (a, o) => {
if (c() || !(a instanceof Element)) return;
let d = a.closest("[title]");
- (!t?.contains(a) || d && !d.contains(t)) && d && !d.closest(".vjs-control") && d.title.trim() && (u(), t = d, n = d.title, r = d.getAttribute("aria-describedby"), d.removeAttribute("title"), (aZ(d) !== iZ(n) || sZ(d)) && (i = setTimeout(() => {
- if (t !== d || !d.isConnected || !oZ(d)) return;
+ (!t?.contains(a) || d && !d.contains(t)) && d && !d.closest(".vjs-control") && d.title.trim() && (u(), t = d, n = d.title, r = d.getAttribute("aria-describedby"), d.removeAttribute("title"), (iZ(d) !== rZ(n) || oZ(d)) && (i = setTimeout(() => {
+ if (t !== d || !d.isConnected || !aZ(d)) return;
(d.closest("dialog[open]") ?? document.body).append(e), e.textContent = n;
let i = d.getAttribute("data-tooltip-copy-key");
i ? e.setAttribute("data-copy-key", i) : e.removeAttribute("data-copy-key"), e.style.pointerEvents = s() ? "auto" : "", e.hidden = !1, e.showPopover(), l(d), d.setAttribute("aria-describedby", [r, e.id].filter(Boolean).join(" "));
@@ -63283,33 +63296,33 @@ function wDe() {
}), document.addEventListener("keydown", (e) => {
e.key === "Escape" && !c() && u();
}), document.addEventListener("scroll", (n) => {
- if (!t || !fs(n, t)) return;
- let r = oZ(t);
+ if (!t || !ds(n, t)) return;
+ let r = aZ(t);
t.matches(":focus-visible") && r && r.bottom > 0 && r.top < innerHeight ? e.matches(":popover-open") && l(t) : u();
}, !0), window.addEventListener("resize", u);
}
// src/board-controls.ts
-function cZ(e) {
+function sZ(e) {
let t = Number(e.min) || 0, n = Number(e.max) || 100, r = Number(e.value), i = n > t ? Math.max(0, Math.min(100, (r - t) / (n - t) * 100)) : 0;
e.style.setProperty("--board-range-value", `${i}%`);
}
-var lZ = /* @__PURE__ */ new WeakSet();
-function TDe() {
- if (lZ.has(document)) return;
- lZ.add(document);
+var cZ = /* @__PURE__ */ new WeakSet();
+function DDe() {
+ if (cZ.has(document)) return;
+ cZ.add(document);
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(cZ), DDe(e), EDe(e);
+ e.querySelectorAll("input[type=range]").forEach(sZ), kDe(e), ODe(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]") && cZ(t), e(t));
+ for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && sZ(t), e(t));
}).observe(document.body, {
subtree: !0,
childList: !0
}), document.addEventListener("input", (e) => {
- e.target instanceof HTMLInputElement && e.target.type === "range" && cZ(e.target);
- }), wDe();
+ e.target instanceof HTMLInputElement && e.target.type === "range" && sZ(e.target);
+ }), EDe();
}
-function EDe(e) {
+function ODe(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;
@@ -63333,15 +63346,15 @@ function EDe(e) {
r.observe(e);
});
}
-var uZ = /* @__PURE__ */ new Map();
-function DDe(e) {
+var lZ = /* @__PURE__ */ new Map();
+function kDe(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;
e.dataset.boardSegments = "true";
let t = document.createElement("span");
t.className = "board-segment-thumb", t.setAttribute("aria-hidden", "true"), e.prepend(t);
- let n = e.className + (e.getAttribute("aria-label") ?? ""), r = uZ.get(n) ?? null, i = () => {
+ let n = e.className + (e.getAttribute("aria-label") ?? ""), r = lZ.get(n) ?? null, i = () => {
let i = e.querySelector("label:has(input:checked),button[aria-selected=true]");
if (!i || !i.offsetWidth) return;
let a = {
@@ -63350,7 +63363,7 @@ function DDe(e) {
w: i.offsetWidth,
h: i.offsetHeight
};
- Gc(t, r, a, "x"), r = a, uZ.set(n, a);
+ Wc(t, r, a, "x"), r = a, lZ.set(n, a);
};
e.addEventListener("change", i);
let a = new MutationObserver(i);
@@ -63366,8 +63379,8 @@ function DDe(e) {
});
}
// src/react/photo-lightbox/photo-lightbox.ts
-var dZ = "/vendor/swiper/14.4.0/", fZ = null, ODe = () => fZ ??= Promise.all([new Promise((e, t) => {
- let n = `${dZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+var uZ = "/vendor/swiper/14.4.0/", dZ = null, ADe = () => dZ ??= Promise.all([new Promise((e, t) => {
+ let n = `${uZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@ -63381,11 +63394,11 @@ var dZ = "/vendor/swiper/14.4.0/", fZ = null, ODe = () => fZ ??= Promise.all([ne
return;
}
let r = document.createElement("script");
- r.src = `${dZ}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
+ r.src = `${uZ}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
})]).then(([, e]) => e).catch((e) => {
- throw fZ = null, e;
+ throw dZ = null, e;
});
-function kDe(e, t, n) {
+function jDe(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);
@@ -63406,46 +63419,46 @@ function kDe(e, t, n) {
}
};
}
-var pZ = (e) => {
+var fZ = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : Xn(t)).replace(" ", "\xA0") : "大小未知";
-}, ADe = (e) => e.asset?.name || e.name || "未命名图片";
-function jDe(e, t) {
+}, MDe = (e) => e.asset?.name || e.name || "未命名图片";
+function NDe(e, t) {
let n = e.asset;
- if (n) return [nr[n.location ?? ""] || n.location || "来源未知", pZ(n.size)].join(" · ");
+ if (n) return [nr[n.location ?? ""] || n.location || "来源未知", fZ(n.size)].join(" · ");
let r = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";
return [
e.source || "在线图片",
r,
- e.size ? pZ(e.size) : ""
+ e.size ? fZ(e.size) : ""
].filter(Boolean).join(" · ");
}
// src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var mZ = null, hZ = null, MDe = 0;
-function NDe() {
- return hZ && mZ?.isConnected || (hZ?.unmount(), mZ = document.createElement("div"), mZ.className = "peach-react", mZ.dataset.photoLightboxHost = "", document.body.append(mZ), hZ = (0, zt.createRoot)(mZ)), hZ;
+var pZ = null, mZ = null, PDe = 0;
+function FDe() {
+ return mZ && pZ?.isConnected || (mZ?.unmount(), pZ = document.createElement("div"), pZ.className = "peach-react", pZ.dataset.photoLightboxHost = "", document.body.append(pZ), mZ = (0, zt.createRoot)(pZ)), mZ;
}
-async function gZ(e, t, n) {
+async function hZ(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await ODe();
+ r = await ADe();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = NDe();
- (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(PDe, {
+ let i = FDe();
+ (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(IDe, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++MDe)));
+ }, ++PDe)));
}
-function _Z() {
- hZ && (0, Rt.flushSync)(() => hZ.render(null));
+function gZ() {
+ mZ && (0, Rt.flushSync)(() => mZ.render(null));
}
-function PDe({ slides: e, index: t, Swiper: n, host: r }) {
+function IDe({ 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: ""
@@ -63488,8 +63501,8 @@ function PDe({ slides: e, index: t, Swiper: n, host: r }) {
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = kDe(e, a, b);
- let m = al(e, f.current, p.current), _ = (e = !1) => {
+ i(t, 0), h.current = jDe(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();
};
g.current = {
@@ -63505,18 +63518,18 @@ function PDe({ slides: e, index: t, Swiper: n, host: r }) {
});
y.observe(e);
let x = (e) => {
- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : _Z());
+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : gZ());
};
return document.addEventListener("keydown", x, !0), () => {
document.removeEventListener("keydown", x, !0), _(), y.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), h.current = null, g.current = null, e.close(), document.body.classList.remove("photolight-open");
};
}, []), (0, F.useLayoutEffect)(() => {
- m.current && cZ(m.current);
+ m.current && sZ(m.current);
}, [y]);
let j = e[_], M = j.asset ?? null, ee = async (e) => {
if (!M || !r || e.getAttribute("aria-busy") === "true") return;
let t = _;
- Zc(e), O(!0), A({
+ Xc(e), O(!0), A({
at: t,
text: ""
});
@@ -63526,7 +63539,7 @@ function PDe({ slides: e, index: t, Swiper: n, host: r }) {
text: await r.revealSource(M.id)
});
} finally {
- Zc(e, !1), O(!1);
+ Xc(e, !1), O(!1);
}
}, N = (e, t) => {
t.naturalWidth && t.naturalHeight && !x[e] && S((n) => ({
@@ -63542,18 +63555,18 @@ function PDe({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), _Z();
+ e.preventDefault(), gZ();
},
onClick: (e) => {
let t = e.target;
- g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && _Z();
+ g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && gZ();
},
children: [
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: _Z,
+ onClick: gZ,
dangerouslySetInnerHTML: { __html: R("x") }
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -63689,10 +63702,10 @@ function PDe({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: ADe(j)
+ children: MDe(j)
}, _), /* @__PURE__ */ (0, I.jsx)("span", {
"data-photo-detail-meta": "",
- children: jDe(j, x[_])
+ children: NDe(j, x[_])
})]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -63700,7 +63713,7 @@ function PDe({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-reveal": "",
hidden: !M || !r,
onClick: (e) => void ee(e.currentTarget),
- dangerouslySetInnerHTML: { __html: (D ? Vs("正在定位") : R("folder-open")) + "<span>在资源管理器中显示</span>" }
+ dangerouslySetInnerHTML: { __html: (D ? Bs("正在定位") : R("folder-open")) + "<span>在资源管理器中显示</span>" }
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-photo-status": "",
@@ -63730,41 +63743,41 @@ function PDe({ slides: e, index: t, Swiper: n, host: r }) {
});
}
// src/react/entity-body/entity-body-page.tsx
-function FDe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(IDe, {
+function LDe(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(RDe, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(LDe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(BDe, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(zDe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(HDe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
-var vZ = GX.people;
-function IDe({ roster: e, props: t }) {
+var _Z = WX.people;
+function RDe({ roster: e, props: t }) {
let { helpers: n, actions: r } = t, i = (0, F.useMemo)(() => ({
personAvatar: n.personAvatar,
openEntity: r.openEntity
- }), [n, r]), [a, o] = (0, F.useState)(vZ), s = (0, F.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, F.useCallback)(async () => {
- o((e) => e + vZ);
+ }), [n, r]), [a, o] = (0, F.useState)(_Z), s = (0, F.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, F.useCallback)(async () => {
+ o((e) => e + _Z);
}, []);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(rZ, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(nZ, {
kind: e.kind,
items: s,
layout: e.layout,
props: i
- }), a < e.people.length ? /* @__PURE__ */ (0, I.jsx)(rY, {
+ }), a < e.people.length ? /* @__PURE__ */ (0, I.jsx)(nY, {
entity: !0,
load: c,
enabled: () => !0
}, a) : null] });
}
-function LDe(e) {
+function zDe(e) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-grid": "",
- children: /* @__PURE__ */ (0, I.jsx)(IG, {
+ children: /* @__PURE__ */ (0, I.jsx)(FG, {
pending: !e.items,
skeletonHtml: e.skeletonHtml,
- children: e.items ? /* @__PURE__ */ (0, I.jsx)(tY, {
+ children: e.items ? /* @__PURE__ */ (0, I.jsx)(eY, {
mode: "entity",
entityKey: e.listScope || `${e.kind}:${e.name}`,
revision: e.revision,
@@ -63786,33 +63799,33 @@ function LDe(e) {
})
});
}
-var RDe = (e) => Array.from({ length: e.n }, (t, n) => ({
+var BDe = (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 || "官方样张"
-})), yZ = (e) => e.sample === !0, bZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, xZ = (e) => yZ(e) ? `/sample-thumb?${bZ(e)}` : `/photo-thumb?id=${e.id}`, zDe = (e) => yZ(e) ? {
- src: `/sample-image?${bZ(e)}`,
- thumb: xZ(e),
+})), vZ = (e) => e.sample === !0, yZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, bZ = (e) => vZ(e) ? `/sample-thumb?${yZ(e)}` : `/photo-thumb?id=${e.id}`, VDe = (e) => vZ(e) ? {
+ src: `/sample-image?${yZ(e)}`,
+ thumb: bZ(e),
name: e.name,
asset: null,
source: e.source
} : {
src: `/photo?id=${e.id}`,
- thumb: xZ(e),
+ thumb: bZ(e),
name: e.name || "",
asset: e
};
-function BDe({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(RDe), ...e.items], [e]), [s, c] = (0, F.useState)(() => /* @__PURE__ */ new Set()), l = (0, F.useCallback)((e) => c((t) => {
+function HDe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(BDe), ...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) => {
- gZ(e, o.map(zDe), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(VDe, {
+ hZ(e, o.map(VDe), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(UDe, {
item: e,
index: t,
lost: s.has(t),
@@ -63830,7 +63843,7 @@ function BDe({ photos: e, props: t }) {
};
}), h = p;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(SZ, {
+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(xZ, {
label: e.code,
title: e.name,
meta: [
@@ -63842,7 +63855,7 @@ function BDe({ photos: e, props: t }) {
...f,
children: o.slice(t, t + e.n).map((e, n) => d(e, t + n))
})] }, e.code)),
- m.length && e.total ? /* @__PURE__ */ (0, I.jsx)(SZ, {
+ m.length && e.total ? /* @__PURE__ */ (0, I.jsx)(xZ, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@ -63851,14 +63864,14 @@ function BDe({ photos: e, props: t }) {
"data-local-wall": "",
children: e.items.map((e, t) => s.has(h + t) ? null : d(e, h + t))
}),
- e.hasMore ? /* @__PURE__ */ (0, I.jsx)(rY, {
+ e.hasMore ? /* @__PURE__ */ (0, I.jsx)(nY, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
}, e.items.length) : null
] });
}
-function SZ({ label: e, title: t, meta: n }) {
+function xZ({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-photo-group": "",
children: [
@@ -63875,7 +63888,7 @@ function SZ({ label: e, title: t, meta: n }) {
]
});
}
-function VDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function UDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -63884,7 +63897,7 @@ function VDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, I.jsx)("img", {
- src: xZ(e),
+ src: bZ(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -63894,9 +63907,9 @@ function VDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
});
}
// src/react/background-job.ts
-var HDe = 2e3, UDe = (e) => e, WDe = (e, t) => t;
-function CZ(e) {
- let { queryKey: t, jobOf: n = UDe, withJob: r = WDe, idlePollMs: i } = e, [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(null), l = (0, F.useRef)(e);
+var WDe = 2e3, GDe = (e) => e, KDe = (e, t) => t;
+function SZ(e) {
+ let { queryKey: t, jobOf: n = GDe, withJob: r = KDe, 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;
});
@@ -63905,7 +63918,7 @@ function CZ(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? HDe : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? WDe : i ?? !1;
}
}), d = It({
mutationFn: (e) => l.current.start(e),
@@ -63929,19 +63942,19 @@ function CZ(e) {
};
}
// src/react/follow-feed/follow-check.ts
-var wZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
-function GDe(e, t) {
- return t ? wZ(e.filter((e) => e.author_key === t || t.startsWith("entity:") && String(e.entity_id) === t.slice(7)).map((e) => e.id)) : [];
+var CZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
+function qDe(e, t) {
+ return t ? CZ(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 KDe({ sources: e, report: t }) {
- let n = wZ(e), [r, i] = (0, F.useState)(""), { running: a, start: o } = CZ({
- queryKey: zr,
- queryFn: ({ signal: e }) => vi(e),
- start: (e) => xi(e),
+function JDe({ sources: e, report: t }) {
+ let n = CZ(e), [r, i] = (0, F.useState)(""), { running: a, start: o } = SZ({
+ queryKey: Rr,
+ queryFn: ({ signal: e }) => _i(e),
+ start: (e) => bi(e),
onError: (e) => i(lr(e)),
onFinish: (e) => {
- e.status === "failed" && i(e.error || "检查失败"), Hi(), H.invalidateQueries({ queryKey: ["follow-feed"] }), t(e);
+ e.status === "failed" && i(e.error || "检查失败"), Vi(), H.invalidateQueries({ queryKey: ["follow-feed"] }), t(e);
}
}), s = a || o.isPending;
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -63949,20 +63962,20 @@ function KDe({ sources: e, report: t }) {
children: [/* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
disabled: !n.length,
- ...fV(s),
+ ...dV(s),
onClick: () => {
n.length && !s && (i(""), o.mutate(n));
},
children: "检查更新"
- }), r ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ }), r ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: r
}) : null]
});
}
// src/react/follow-feed/follow-card.tsx
-var qDe = (e) => Number(e) > 0;
-function TZ({ name: e, actions: t, children: n, ...r }) {
+var YDe = (e) => Number(e) > 0;
+function wZ({ name: e, actions: t, children: n, ...r }) {
return /* @__PURE__ */ (0, I.jsx)("a", {
...r,
href: Pn("creator", e),
@@ -63972,15 +63985,15 @@ function TZ({ name: e, actions: t, children: n, ...r }) {
children: n
});
}
-var EZ = ({ provider: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var TZ = ({ provider: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: uG(e) }
+ dangerouslySetInnerHTML: { __html: lG(e) }
});
-function JDe({ 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);
- }, [o]), s ? /* @__PURE__ */ (0, I.jsx)(EZ, { provider: i }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ }, [o]), s ? /* @__PURE__ */ (0, I.jsx)(TZ, { provider: i }) : /* @__PURE__ */ (0, I.jsx)("img", {
src: l ? t : e,
alt: "",
loading: "lazy",
@@ -63999,8 +64012,8 @@ function JDe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a
} : void 0
});
}
-function YDe(e) {
- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = _a(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) => Bbe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? ya(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = xa({
+function ZDe(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({
cover: p,
coverFace: (f?.thumb_url ? f : u).face,
stack: t.stack,
@@ -64008,7 +64021,7 @@ function YDe(e) {
limit: 9
}), S = (0, F.useRef)(x.faces);
S.current = x.faces;
- let C = dK({
+ let C = uK({
load: async () => S.current,
canFlip: () => S.current.length > 1 && l.canFlip(),
referrerPolicy: "no-referrer"
@@ -64016,7 +64029,7 @@ function YDe(e) {
w.current = C.onPointerLeave;
let T = (0, F.useCallback)((e) => {
e && (e._stopHover = () => w.current());
- }, []), E = hG(u, n, i), D = dG(u), O = u.resource_provider || u.provider, k = (u.tags || []).slice(0, 3), A = vG(u, i), j = _G(t, u), M = u.status === "saved", ee = (e) => {
+ }, []), E = mG(u, n, i), D = uG(u), O = u.resource_provider || u.provider, k = (u.tags || []).slice(0, 3), A = _G(u, i), j = gG(t, u), M = u.status === "saved", ee = (e) => {
e.target.closest("[data-media-tag]") || (l.toggleSelection && (o || e.shiftKey || e.ctrlKey || e.metaKey) ? (e.preventDefault(), l.toggleSelection(u.id, e.shiftKey)) : l.openDetail(u.id));
}, N = (e, t) => {
e.stopPropagation(), t();
@@ -64031,7 +64044,7 @@ function YDe(e) {
"data-collection": x.isMix ? "" : void 0,
"data-selected": a ? "" : void 0,
onClick: ee,
- onMouseDown: nK,
+ onMouseDown: tK,
onMouseEnter: C.onPointerEnter,
onMouseLeave: C.onPointerLeave,
children: [
@@ -64045,7 +64058,7 @@ function YDe(e) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
children: [
- p ? /* @__PURE__ */ (0, I.jsx)(JDe, {
+ p ? /* @__PURE__ */ (0, I.jsx)(XDe, {
src: p,
fallback: m,
width: _?.width,
@@ -64053,7 +64066,7 @@ function YDe(e) {
provider: O,
onLearn: v,
retryKey: e.retryKey
- }, p) : /* @__PURE__ */ (0, I.jsx)(EZ, { provider: O }),
+ }, p) : /* @__PURE__ */ (0, I.jsx)(TZ, { provider: O }),
x.faces.length > 1 ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-mix-faces": "",
hidden: !C.faces.length,
@@ -64073,7 +64086,7 @@ function YDe(e) {
"data-media-badge": "",
title: u.provider_label || u.provider,
"aria-label": `来源:${u.provider_label || u.provider}`,
- dangerouslySetInnerHTML: { __html: uG(u.provider, u.provider_label) }
+ dangerouslySetInnerHTML: { __html: lG(u.provider, u.provider_label) }
}), j ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: j }
@@ -64086,7 +64099,7 @@ function YDe(e) {
},
dangerouslySetInnerHTML: { __html: R("check") }
}) : null,
- qDe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ YDe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-duration": "",
children: Jn(u.duration)
}) : null,
@@ -64157,7 +64170,7 @@ function YDe(e) {
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-meta": "",
- children: [E.entityName ? /* @__PURE__ */ (0, I.jsx)(TZ, {
+ children: [E.entityName ? /* @__PURE__ */ (0, I.jsx)(wZ, {
name: E.entityName,
actions: l,
"data-media-avatar": "",
@@ -64175,31 +64188,31 @@ function YDe(e) {
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: gG(t, u) + z(D) }
+ dangerouslySetInnerHTML: { __html: hG(t, u) + z(D) }
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-byline": "",
"data-follow-byline": "",
children: [
- E.entityName ? /* @__PURE__ */ (0, I.jsx)(TZ, {
+ E.entityName ? /* @__PURE__ */ (0, I.jsx)(wZ, {
name: E.entityName,
actions: l,
"data-media-who": "",
"data-follow-author": "",
title: E.author,
- children: /* @__PURE__ */ (0, I.jsx)(RG, { name: E.author })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: E.author })
}) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-who": "",
"data-follow-author": "",
title: E.author,
- children: /* @__PURE__ */ (0, I.jsx)(RG, { name: E.author })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: E.author })
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-facts": "",
- children: /* @__PURE__ */ (0, I.jsx)(zG, {
+ children: /* @__PURE__ */ (0, I.jsx)(RG, {
value: u.published_at || "",
- label: xG(u),
- title: bG(u)
+ label: bG(u),
+ title: yG(u)
})
}),
E.credited ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -64209,13 +64222,13 @@ function YDe(e) {
}) : null
]
}),
- e.variant === "next" ? e.reason ? /* @__PURE__ */ (0, I.jsx)(VG, {
+ e.variant === "next" ? e.reason ? /* @__PURE__ */ (0, I.jsx)(BG, {
reasons: e.reason.reasons,
- tags: e.reason.tags.map((e) => Rl(e))
- }) : null : /* @__PURE__ */ (0, I.jsx)(BG, {
+ tags: e.reason.tags.map((e) => Ll(e))
+ }) : null : /* @__PURE__ */ (0, I.jsx)(zG, {
"data-follow-labels": "",
tags: k,
- label: Rl,
+ label: Ll,
readOnly: !0,
attrs: (e) => ({
"data-tag-cat": `r34-${u.tag_types?.[e] || "unknown"}`,
@@ -64237,9 +64250,9 @@ function YDe(e) {
]
});
}
-var DZ = (0, F.memo)(YDe);
+var EZ = (0, F.memo)(ZDe);
// src/react/components/use-masonry-grid.ts
-function XDe(e, t) {
+function QDe(e, t) {
let n = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
let t = n.current;
@@ -64274,37 +64287,37 @@ function XDe(e, t) {
}, [e, t]), n;
}
// src/react/follow-manage/manage-route.ts
-var OZ = [
+var DZ = [
["list", "关注列表"],
["add", "添加关注"],
["tags", "标签管理"]
-], kZ = OZ.map(([e]) => e);
-function AZ(e) {
+], OZ = DZ.map(([e]) => e);
+function kZ(e) {
let t = new URLSearchParams(e), n = t.get("tab");
return {
- tab: kZ.find((e) => e === n) || "list",
+ tab: OZ.find((e) => e === n) || "list",
page: Math.max(1, Math.floor(Number(t.get("page"))) || 1),
sort: t.get("sort") || "",
dir: t.get("dir") || ""
};
}
-function jZ(e) {
+function AZ(e) {
let t = new URLSearchParams();
return e.tab !== "list" && t.set("tab", e.tab), e.page > 1 && t.set("page", String(e.page)), e.sort && t.set("sort", e.sort), e.dir && t.set("dir", e.dir), "/subscriptions" + (t.size ? `?${t}` : "");
}
-function MZ(e, t) {
- return !t && new URLSearchParams(e).get("tab") === "wants" ? "/jav?tab=wants" : !t && new URLSearchParams(e).get("tab") === "source" ? "/settings/library?section=%E6%9D%A5%E6%BA%90%E4%B8%8E%E8%AE%A2%E9%98%85" : jZ({
- tab: t || AZ(e).tab,
+function jZ(e, t) {
+ return !t && new URLSearchParams(e).get("tab") === "wants" ? "/jav?tab=wants" : !t && new URLSearchParams(e).get("tab") === "source" ? "/settings/library?section=%E6%9D%A5%E6%BA%90%E4%B8%8E%E8%AE%A2%E9%98%85" : AZ({
+ tab: t || kZ(e).tab,
page: 1,
sort: "",
dir: ""
});
}
// src/react/follow-feed/follow-feed-page.tsx
-var NZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var MZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), ZDe = uV("settings"), PZ = uV("chevron-down"), QDe = uV("history"), $De = uV("arrow-up"), eOe = uV("arrow-down"), tOe = [[
+}), $De = lV("settings"), NZ = lV("chevron-down"), eOe = lV("history"), tOe = lV("arrow-up"), nOe = lV("arrow-down"), rOe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -64313,19 +64326,19 @@ var NZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function nOe(e, t, n) {
+function iOe(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) => {
e.author_key && (d.has(e.author_key) || d.set(e.author_key, []), d.get(e.author_key).push(e));
});
- let f = la([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = la(o.works || [], (e) => e[0], n).slice(0, 24);
+ let f = ca([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = ca(o.works || [], (e) => e[0], n).slice(0, 24);
t.work && !p.some((e) => e[0] === t.work) && p.push([
t.work,
t.work,
0
]);
- let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = la([...u], (e) => e[0], n).slice(0, 20);
+ let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = ca([...u], (e) => e[0], n).slice(0, 20);
t.tags.forEach((e) => {
h.some(([t]) => t === e) || h.push([e, u.get(e) || m]);
});
@@ -64333,7 +64346,7 @@ function nOe(e, t, n) {
videos: 0,
images: 0
};
- r.forEach((e) => ga(e).forEach((e) => {
+ r.forEach((e) => ha(e).forEach((e) => {
g[e === "image" ? "images" : "videos"] += 1;
}));
let _ = t.media === "images" ? "image" : "video";
@@ -64348,7 +64361,7 @@ function nOe(e, t, n) {
workRows: p,
allCount: m,
mediaCounts: g,
- visible: r.filter((e) => ga(e).has(_)),
+ visible: r.filter((e) => ha(e).has(_)),
author: d.has(t.author) && s.has(t.author) ? t.author : "",
provider: l.has(t.provider) ? t.provider : "",
workNames: new Map((o.works || []).map((e) => [e[0], e[1]])),
@@ -64361,28 +64374,28 @@ function nOe(e, t, n) {
n
]);
}
-function rOe(e) {
- let { view: t, seed: n, revision: r, actions: i } = e, a = Lt(ia(t, r)), o = Ft({
- queryKey: aa,
- queryFn: ({ signal: e }) => oa(e)
- }), s = (0, F.useMemo)(() => ca(a.data), [a.data]), c = (0, F.useMemo)(() => new Set((o.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [o.data]), l = (0, F.useMemo)(() => ({
+function aOe(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)
+ }), s = (0, F.useMemo)(() => sa(a.data), [a.data]), c = (0, F.useMemo)(() => new Set((o.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [o.data]), l = (0, F.useMemo)(() => ({
sources: s?.sources || [],
aliases: s?.author_aliases || [],
credentials: c
- }), [s, c]), u = nOe(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;
+ }), [s, c]), u = iOe(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;
(0, F.useEffect)(() => {
- ym(() => location.pathname === "/follow", document.querySelector("#stats [data-filter-frame]"), { pending: d });
+ vm(() => location.pathname === "/follow", document.querySelector("#stats [data-filter-frame]"), { pending: d });
}, [
d,
s,
t
]);
let p = (0, F.useMemo)(() => ({
- tags: ql(u.visible.flatMap(ua).map((e) => ({ tags: e.tags || [] }))),
+ tags: Kl(u.visible.flatMap(la).map((e) => ({ tags: e.tags || [] }))),
providers: [...u.providers].map(([e, t]) => [
e,
t,
- Yi(e)
+ Ji(e)
]),
duration: !!s?.facets?.duration
}), [
@@ -64403,10 +64416,10 @@ function rOe(e) {
p,
i
]);
- let m = aOe(e, !!s);
+ let m = sOe(e, !!s);
if (!s) return a.isError ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-follow-feed": "",
- children: [/* @__PURE__ */ (0, I.jsx)(FZ, {}), /* @__PURE__ */ (0, I.jsx)(FG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(PZ, {}), /* @__PURE__ */ (0, I.jsx)(PG, {
message: xn(a.error),
onRetry: () => void a.refetch()
})]
@@ -64414,12 +64427,12 @@ function rOe(e) {
let h = (e) => i.route({
...t,
...e
- }), g = Ea({
+ }), g = Ta({
...t,
author: u.author,
provider: u.provider
}, {
- authors: new Map([...u.authorSources].map(([e, t]) => [e, fG(t, l)])),
+ authors: new Map([...u.authorSources].map(([e, t]) => [e, dG(t, l)])),
providers: u.providers,
works: u.workNames
}), _ = t.status ? u.counts[t.status] || 0 : u.allCount, v = u.sources.some((e) => e.can_backfill);
@@ -64428,7 +64441,7 @@ function rOe(e) {
ref: m.host,
"data-follow-progress": ""
}, m.generation),
- !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
title: "检查结果",
children: m.report
@@ -64437,7 +64450,7 @@ function rOe(e) {
"data-follow-feed": "",
"data-select-mode": e.selectMode ? "" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(FZ, { children: u.sources.length ? /* @__PURE__ */ (0, I.jsx)(Y, {
+ /* @__PURE__ */ (0, I.jsx)(PZ, { children: u.sources.length ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "primary",
"data-follow-recheck": "",
"aria-label": "检查每个来源的更新",
@@ -64445,23 +64458,23 @@ function rOe(e) {
onClick: () => void m.start(!1),
children: m.starting === "check" ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: Vs("检查中") }
+ dangerouslySetInnerHTML: { __html: Bs("检查中") }
}) : "检查更新"
}) : null }),
- /* @__PURE__ */ (0, I.jsx)(oOe, {
+ /* @__PURE__ */ (0, I.jsx)(cOe, {
facets: u,
pressed: u.author,
context: l,
props: e,
onPick: (e) => h({ author: u.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(sOe, {
+ /* @__PURE__ */ (0, I.jsx)(lOe, {
rows: u.workRows,
pressed: t.work,
props: e,
onPick: (e) => h({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(cOe, {
+ /* @__PURE__ */ (0, I.jsx)(uOe, {
facets: u,
view: t,
total: _,
@@ -64469,9 +64482,9 @@ function rOe(e) {
props: e,
route: h
}),
- /* @__PURE__ */ (0, I.jsx)(lOe, {
+ /* @__PURE__ */ (0, I.jsx)(dOe, {
conditions: g,
- onDrop: (e) => i.route(Da(t, e)),
+ onDrop: (e) => i.route(Ea(t, e)),
onClear: () => h({
author: "",
provider: "",
@@ -64481,8 +64494,8 @@ function rOe(e) {
durMax: 0
})
}),
- u.broken.length ? /* @__PURE__ */ (0, I.jsx)(uOe, { count: u.broken.length }) : null,
- /* @__PURE__ */ (0, I.jsx)(dOe, {
+ u.broken.length ? /* @__PURE__ */ (0, I.jsx)(fOe, { count: u.broken.length }) : null,
+ /* @__PURE__ */ (0, I.jsx)(pOe, {
retryKey: a.dataUpdatedAt,
pending: d,
facets: u,
@@ -64505,14 +64518,14 @@ function rOe(e) {
"data-follow-pagination": "",
children: [s.has_more ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-page-action": "",
- children: s.groups.length < 500 ? /* @__PURE__ */ (0, I.jsxs)(rY, {
+ children: s.groups.length < 500 ? /* @__PURE__ */ (0, I.jsxs)(nY, {
entity: !0,
enabled: () => !m.busyRef.current,
load: async () => {
await a.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, I.jsx)(PZ, { className: "size-(--icon-inline)" }), "加载更多"]
- }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(iOe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(NZ, { className: "size-(--icon-inline)" }), "加载更多"]
+ }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(oOe, {
busy: a.isFetchingNextPage,
error: a.isFetchNextPageError ? xn(a.error) : "",
load: () => {
@@ -64523,17 +64536,17 @@ function rOe(e) {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
- leadingIcon: m.olderBusy ? void 0 : QDe,
+ leadingIcon: m.olderBusy ? void 0 : eOe,
"data-follow-older": "",
"aria-busy": m.busy || void 0,
onClick: () => void m.start(!0),
children: m.olderBusy ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: Vs("抓取中") }
+ dangerouslySetInnerHTML: { __html: Bs("抓取中") }
}), /* @__PURE__ */ (0, I.jsx)("span", { children: "抓取中" })] }) : "抓更早的一页"
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-backfill": "",
- children: Sa(u.sources)
+ children: xa(u.sources)
})]
}) : null]
}) : null
@@ -64541,7 +64554,7 @@ function rOe(e) {
})
] });
}
-function FZ({ children: e }) {
+function PZ({ children: e }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-follow-head": "",
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
@@ -64549,30 +64562,30 @@ function FZ({ children: e }) {
children: "关注"
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-follow-head-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(gL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(hL, {
variant: "secondary",
- leadingIcon: ZDe,
+ leadingIcon: $De,
"data-follow-manage": "",
- href: IZ(),
+ href: FZ(),
children: "管理关注"
}), e]
})]
});
}
-function iOe({ busy: e, error: t, load: n }) {
+function oOe({ busy: e, error: t, load: n }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-entity-more": "",
"aria-busy": e || void 0,
"aria-disabled": e || void 0,
onClick: n,
- children: [/* @__PURE__ */ (0, I.jsx)(PZ, { className: "size-(--icon-inline)" }), "加载更多"]
- }), t ? /* @__PURE__ */ (0, I.jsx)(FG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(NZ, { className: "size-(--icon-inline)" }), "加载更多"]
+ }), t ? /* @__PURE__ */ (0, I.jsx)(PG, {
message: t,
onRetry: n
}) : null] });
}
-function aOe(e, t) {
+function sOe(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
@@ -64597,7 +64610,7 @@ function aOe(e, t) {
ok: !1,
error: e.error
}] } : e;
- g.current.actions.checkReport(n), d(Wi({
+ g.current.actions.checkReport(n), d(Ui({
...n,
status: e.status || "done"
})), m.current = !1, s(!1), p(!1), H.invalidateQueries({ queryKey: ["follow-feed"] }), a((e) => e + 1);
@@ -64634,12 +64647,12 @@ function aOe(e, t) {
olderBusy: c === "older" || f && o
};
}
-function oOe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function cOe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
let a = (0, F.useRef)(null);
(0, F.useEffect)(() => {
r.helpers.wireDrag(a.current);
}, [r.helpers]);
- let o = (t) => fG(e.authorSources.get(t) || [], n);
+ let o = (t) => dG(e.authorSources.get(t) || [], n);
return e.authorOrder.length ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-authors-bar": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
@@ -64647,14 +64660,14 @@ function oOe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
"data-follow-authors": "",
"aria-label": "创作者",
children: e.authorOrder.map((n) => {
- let a = e.authorSources.get(n) || [], s = pG(a), c = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ let a = e.authorSources.get(n) || [], s = fG(a), c = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: mG(a, o(n)) }
+ dangerouslySetInnerHTML: { __html: pG(a, o(n)) }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-name": "",
children: o(n)
})] });
- return s ? /* @__PURE__ */ (0, I.jsx)(TZ, {
+ return s ? /* @__PURE__ */ (0, I.jsx)(wZ, {
name: s,
actions: r.actions,
"data-follow-author": n,
@@ -64671,7 +64684,7 @@ function oOe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
})
}) : null;
}
-function sOe({ rows: e, pressed: t, props: n, onPick: r }) {
+function lOe({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -64692,13 +64705,13 @@ function sOe({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function cOe({ 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 = mL(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = mL(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+function uOe({ 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 = pL(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = pL(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)(lL, {
+ return /* @__PURE__ */ (0, I.jsx)(cL, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -64750,7 +64763,7 @@ function cOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: R(i) }
}, e);
})
- }), /* @__PURE__ */ (0, I.jsx)(NZ, {})] }) : null, /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, I.jsx)(MZ, {})] }) : null, /* @__PURE__ */ (0, I.jsxs)("div", {
ref: f,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -64759,7 +64772,7 @@ function cOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"aria-label": "状态",
"data-entity-states": "",
onPointerLeave: h.leave,
- children: [Qi.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: [Zi.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-entity-state": e,
"data-follow-filter": e,
@@ -64770,7 +64783,7 @@ function cOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
t.status !== e && a({ status: e });
},
children: n
- }, e)), v ? /* @__PURE__ */ (0, I.jsx)(NZ, {}) : null]
+ }, e)), v ? /* @__PURE__ */ (0, I.jsx)(MZ, {}) : null]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: p,
"data-entity-tags": "",
@@ -64783,16 +64796,16 @@ function cOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
title: n,
"aria-label": `来源:${n}`,
onClick: () => a({ provider: e.provider === t ? "" : t }),
- dangerouslySetInnerHTML: { __html: uG(t, n) }
+ dangerouslySetInnerHTML: { __html: lG(t, n) }
}, t)),
- _.length && e.tagRows.length ? /* @__PURE__ */ (0, I.jsx)(NZ, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(uL, {
+ _.length && e.tagRows.length ? /* @__PURE__ */ (0, I.jsx)(MZ, {}) : null,
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(lL, {
"data-follow-tag": n,
"data-entity-press": "",
- "data-tag-cat": `r34-${Oa(e.groups, n)}`,
+ "data-tag-cat": `r34-${Da(e.groups, n)}`,
pressed: t.tags.includes(n),
onPress: () => a({ tags: t.tags.includes(n) ? t.tags.filter((e) => e !== n) : [...t.tags, n] }),
- children: [Rl(n), r ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [Ll(n), r ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-count-badge": n,
children: String(r)
}) : null]
@@ -64804,23 +64817,23 @@ function cOe({ 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)(nL, {
+ children: /* @__PURE__ */ (0, I.jsx)(tL, {
text: `${n.toLocaleString()} 项更新 · 显示 ${e.visible.length.toLocaleString()}`,
busy: r
})
}),
- /* @__PURE__ */ (0, I.jsx)(TV, {
+ /* @__PURE__ */ (0, I.jsx)(wV, {
currentHref: () => location.pathname + location.search,
kind: "creator"
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(kG, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(OG, {
+ /* @__PURE__ */ (0, I.jsx)(OG, { onPress: s.shuffle }),
+ y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(DG, {
label: "图片布局",
value: i.photoLayout,
- options: tOe,
+ options: rOe,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
@@ -64837,7 +64850,7 @@ function cOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: R("captions-off") }
})]
})] }) : null,
- $i.map(([e, n]) => {
+ Qi.map(([e, n]) => {
let r = t.sort === e;
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
@@ -64845,14 +64858,14 @@ function cOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"data-follow-sort": e,
"data-entity-press": "",
"aria-pressed": r,
- "aria-label": wa(e, n, t.sort, t.dir) || void 0,
+ "aria-label": Ca(e, n, t.sort, t.dir) || void 0,
onClick: () => {
- let n = Ca(e, t.sort, t.dir);
+ let n = Sa(e, t.sort, t.dir);
n && a(n);
},
- children: [n, r ? /* @__PURE__ */ (0, I.jsx)(aG, {
- a: $De,
- b: eOe,
+ children: [n, r ? /* @__PURE__ */ (0, I.jsx)(iG, {
+ a: tOe,
+ b: nOe,
state: t.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
@@ -64863,7 +64876,7 @@ function cOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
] })
});
}
-function lOe({ conditions: e, onDrop: t, onClear: n }) {
+function dOe({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -64888,21 +64901,21 @@ function lOe({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function uOe({ count: e }) {
+function fOe({ 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(IZ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
+ dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${R("alert")}<span>${e} 个来源上次检查失败,去<a class="flink" href="${z(FZ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
});
}
-var IZ = () => MZ(window.location.search);
-function dOe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
+var FZ = () => jZ(window.location.search);
+function pOe({ 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)(IG, {
+ children: /* @__PURE__ */ (0, I.jsx)(FG, {
pending: e,
skeletonHtml: () => c.listSkeletonHtml(s.media),
- children: e ? null : /* @__PURE__ */ (0, I.jsx)(fOe, {
+ children: e ? null : /* @__PURE__ */ (0, I.jsx)(mOe, {
facets: t,
data: n,
context: r,
@@ -64914,29 +64927,29 @@ function dOe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a
})
});
}
-function fOe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
- let { view: s, actions: c } = r, l = RZ(r), u = i ? {
+function mOe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
+ let { view: s, actions: c } = r, l = LZ(r), u = i ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
- } : {}, d = XDe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
+ } : {}, d = QDe(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)(DZ, {
+ return /* @__PURE__ */ (0, I.jsx)(EZ, {
group: t,
authorSources: o,
media: s.media,
retryKey: a,
context: n,
- selected: r.selected.has(LZ(t, s)),
+ selected: r.selected.has(IZ(t, s)),
selectMode: r.selectMode,
- busy: l.busy.get(LZ(t, s)) || "",
- failure: l.failures.get(LZ(t, s)) || "",
+ busy: l.busy.get(IZ(t, s)) || "",
+ failure: l.failures.get(IZ(t, s)) || "",
actions: c,
onStatus: l.status,
onSave: l.save
}, `${u}:${s.media}`);
- }) : /* @__PURE__ */ (0, I.jsx)(pOe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(hOe, {
data: t,
filtered: !!(s.status || e.author || e.provider || s.work || s.tags.length || s.durMin || s.durMax),
checkAction: o,
@@ -64949,7 +64962,7 @@ function fOe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
tags: [],
durMin: 0,
durMax: 0,
- media: t.groups.length ? t.groups.some((e) => ga(e).has("video")) ? "videos" : "images" : s.media
+ media: t.groups.length ? t.groups.some((e) => ha(e).has("video")) ? "videos" : "images" : s.media
})
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: d,
@@ -64959,22 +64972,22 @@ function fOe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
children: f
});
}
-function LZ(e, t) {
- return _a(e, t.media).id;
+function IZ(e, t) {
+ return ga(e, t.media).id;
}
-function pOe({ data: e, filtered: t, clear: n, checkAction: r }) {
+function hOe({ 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)(cV, {
- icon: uV(i ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, I.jsx)(sV, {
+ icon: lV(i ? "search-x" : "rss"),
title: i ? "当前筛选下没有更新" : a ? "还没有更新" : "还没有关注任何来源",
actions: i ? /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
onClick: n,
children: "清除筛选"
- }) : a ? r : /* @__PURE__ */ (0, I.jsx)(gL, {
+ }) : a ? r : /* @__PURE__ */ (0, I.jsx)(hL, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -64983,22 +64996,22 @@ function pOe({ data: e, filtered: t, clear: n, checkAction: r }) {
})
});
}
-var mOe = {
+var gOe = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
-function RZ(e) {
- let { view: t, revision: n, actions: r } = e, [i, a] = (0, F.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, F.useState)(() => /* @__PURE__ */ new Map()), c = ia(t, n).queryKey, l = (e, t, n) => n((n) => {
+function LZ(e) {
+ let { view: t, revision: n, actions: r } = e, [i, a] = (0, F.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, F.useState)(() => /* @__PURE__ */ new Map()), c = ra(t, n).queryKey, l = (e, t, n) => n((n) => {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
}), u = (e, n) => {
- H.setQueryData(c, (r) => r && Ta(r, t, e, n));
+ H.setQueryData(c, (r) => r && wa(r, t, e, n));
}, d = () => void H.invalidateQueries({
queryKey: c,
exact: !0
}), f = (e) => {
- let t = ca(H.getQueryData(c));
+ let t = sa(H.getQueryData(c));
for (let n of t?.groups || []) for (let t of [
n.primary,
...n.variants,
@@ -65011,7 +65024,7 @@ function RZ(e) {
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(mOe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ u(t, n), d(), r.toast(gOe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
await V(Mr, {
item: t,
to: i
@@ -65056,9 +65069,9 @@ function RZ(e) {
};
}
// src/react/entity-body/entity-online.tsx
-function hOe(e) {
+function _Oe(e) {
let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData;
- return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(FG, {
+ return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(PG, {
message: xn(t.error),
onRetry: () => {
t.refetch();
@@ -65066,13 +65079,13 @@ function hOe(e) {
}) : /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list-body": "",
"data-entity-online": "",
- children: /* @__PURE__ */ (0, I.jsxs)(IG, {
+ children: /* @__PURE__ */ (0, I.jsxs)(FG, {
pending: a,
skeletonHtml: () => i.listSkeletonHtml(r),
- children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(gOe, {
+ children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(vOe, {
...e,
data: n
- }), !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(rY, {
+ }), !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(nY, {
entity: !0,
enabled: () => e.canLoadMore?.() !== !1,
load: async () => {
@@ -65082,8 +65095,8 @@ function hOe(e) {
})
});
}
-function gOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
- let u = RZ({
+function vOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
+ let u = LZ({
view: e,
revision: 0,
actions: c
@@ -65100,8 +65113,8 @@ function gOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
"data-layout": o,
"data-images-only": String(s)
} : {}, m = r.length ? r.map((e) => {
- let n = _a(e, t).id, r = d.byId.get(e.primary?.source_id)?.author_key;
- return /* @__PURE__ */ (0, I.jsx)(DZ, {
+ let n = ga(e, t).id, r = d.byId.get(e.primary?.source_id)?.author_key;
+ return /* @__PURE__ */ (0, I.jsx)(EZ, {
group: e,
authorSources: r && d.byAuthor.get(r) || [],
media: t,
@@ -65114,11 +65127,11 @@ function gOe({ 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)(_Oe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(yOe, {
searched: !!(n.groups || []).length || !!(e.status || e.provider || e.tags.length || e.durMin || e.durMax),
clear: l,
actions: c,
- sources: GDe(n.sources || [], e.author)
+ sources: qDe(n.sources || [], e.author)
});
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list": "",
@@ -65127,21 +65140,21 @@ function gOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
children: m
});
}
-function _Oe({ searched: e, clear: t, actions: n, sources: r }) {
+function yOe({ searched: e, clear: t, actions: n, sources: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, I.jsx)(cV, {
- icon: uV(e ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, I.jsx)(sV, {
+ icon: lV(e ? "search-x" : "rss"),
title: e ? "当前筛选下没有更新" : "还没有抓到更新",
actions: e ? /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
onClick: t,
children: "清除筛选"
- }) : r.length ? /* @__PURE__ */ (0, I.jsx)(KDe, {
+ }) : r.length ? /* @__PURE__ */ (0, I.jsx)(JDe, {
sources: r,
report: n.checkReport
- }) : /* @__PURE__ */ (0, I.jsx)(gL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(hL, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -65150,7 +65163,7 @@ function _Oe({ searched: e, clear: t, actions: n, sources: r }) {
})
});
}
-function zZ(e) {
+function RZ(e) {
return {
x0: 0,
y0: 0,
@@ -65158,7 +65171,7 @@ function zZ(e) {
y1: e.height
};
}
-function BZ(e) {
+function zZ(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -65166,40 +65179,40 @@ function BZ(e) {
y1: Math.round(e.y1)
};
}
-function VZ(e) {
+function BZ(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function HZ(e, t) {
- if (!VZ(e)) return {
+function VZ(e, t) {
+ if (!BZ(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return zZ(e);
+ if (t == null || !(t > 0)) return RZ(e);
let n = e.width, r = n / t;
r > e.height && (r = e.height, n = r * t);
let i = (e.width - n) / 2, a = (e.height - r) / 2;
- return BZ({
+ return zZ({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function vOe(e, t) {
- if (!VZ(e) || !(t > 0)) return zZ(e);
+function bOe(e, t) {
+ if (!BZ(e) || !(t > 0)) return RZ(e);
let n = Math.min(e.width, e.height * t);
- return BZ({
+ return zZ({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function yOe(e, t, n) {
- if (!VZ(t) || !(n > 0)) return zZ(t);
- let r = UZ(e, t), i = HZ({
+function xOe(e, t, n) {
+ if (!BZ(t) || !(n > 0)) return RZ(t);
+ let r = HZ(e, t), i = VZ({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -65210,8 +65223,8 @@ function yOe(e, t, n) {
y1: r.y0 + i.y1
};
}
-function UZ(e, t, n = null, r = "width") {
- if (!VZ(t)) return {
+function HZ(e, t, n = null, r = "width") {
+ if (!BZ(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -65220,43 +65233,43 @@ function UZ(e, t, n = null, r = "width") {
let i = Math.min(16, t.width, t.height), a = Math.max(i, Math.min(e.x1 - e.x0, t.width)), o = Math.max(i, Math.min(e.y1 - e.y0, t.height));
n != null && n > 0 && (r === "width" ? (o = a / n, o > t.height && (o = t.height, a = o * n)) : (a = o * n, a > t.width && (a = t.width, o = a / n)), a > t.width && (a = t.width, o = a / n));
let s = Math.max(0, Math.min(e.x0, t.width - a)), c = Math.max(0, Math.min(e.y0, t.height - o));
- return BZ({
+ return zZ({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function WZ(e, t, n, r) {
+function UZ(e, t, n, r) {
let i = e.x1 - e.x0, a = e.y1 - e.y0, o = Math.max(0, Math.min(e.x0 + t, r.width - i)), s = Math.max(0, Math.min(e.y0 + n, r.height - a));
- return BZ({
+ return zZ({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function GZ(e, t, n, r = null) {
- if (!VZ(n) || !(t > 0)) return e;
+function WZ(e, t, n, r = null) {
+ if (!BZ(n) || !(t > 0)) return e;
let i = (e.x0 + e.x1) / 2, a = (e.y0 + e.y1) / 2, o = (e.x1 - e.x0) * t, s = (e.y1 - e.y0) * t;
- return UZ({
+ return HZ({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function bOe(e, t, n, r, i = null) {
+function SOe(e, t, n, r, i = null) {
let a = {
x0: e.x0,
y0: e.y0,
x1: Math.max(e.x0 + 1, t),
y1: Math.max(e.y0 + 1, n)
};
- return UZ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return HZ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function xOe(e, t) {
- return VZ(t) ? {
+function COe(e, t) {
+ return BZ(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -65268,8 +65281,8 @@ function xOe(e, t) {
height: 0
};
}
-function SOe(e, t) {
- if (!VZ(t)) return {
+function wOe(e, t) {
+ if (!BZ(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -65279,7 +65292,7 @@ function SOe(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function COe(e, t) {
+function TOe(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}%`,
@@ -65288,15 +65301,15 @@ function COe(e, t) {
height: `${t.height / r * 100}%`
};
}
-function KZ(e, t, n) {
+function GZ(e, t, n) {
return t > 0 ? e * n / t : 0;
}
-function wOe(e, t) {
+function EOe(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 TOe = .02, qZ = 1.08;
-function JZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var DOe = .02, KZ = 1.08;
+function qZ({ 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)(() => {
u(!1);
@@ -65315,8 +65328,8 @@ function JZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: KZ(e, n.clientWidth, r.width),
- dy: KZ(t, n.clientHeight, r.height)
+ dx: GZ(e, n.clientWidth, r.width),
+ dy: GZ(t, n.clientHeight, r.height)
};
}, [r]);
function m(e) {
@@ -65333,22 +65346,22 @@ function JZ({ 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(WZ(n.box, o.dx, o.dy, r)) : i(bOe(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(UZ(n.box, o.dx, o.dy, r)) : i(SOe(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) * TOe), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * DOe), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
- o[e.key] ? (e.preventDefault(), i(WZ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(GZ(n, e.key === "-" ? 1 / qZ : qZ, r, t)));
+ o[e.key] ? (e.preventDefault(), i(UZ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(WZ(n, e.key === "-" ? 1 / KZ : KZ, r, t)));
}
- let v = n && r ? xOe(UZ(n, r, t), r) : null, y = v ? wOe(v, d) : !1, b = v ? {
+ let v = n && r ? COe(HZ(n, r, t), r) : null, y = v ? EOe(v, d) : !1, b = v ? {
"--crop-l": `${v.left}%`,
"--crop-t": `${v.top}%`,
"--crop-w": `${v.width}%`,
@@ -65367,7 +65380,7 @@ function JZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- VZ({
+ BZ({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -65406,7 +65419,7 @@ function JZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: g,
onKeyDown: _,
onWheel: (e) => {
- n && r && i(GZ(n, e.deltaY > 0 ? qZ : 1 / qZ, r, t));
+ n && r && i(WZ(n, e.deltaY > 0 ? KZ : 1 / KZ, r, t));
},
className: "absolute left-(--crop-l) top-(--crop-t) h-(--crop-h) w-(--crop-w) cursor-move touch-none outline-none ring-2 ring-border-focus-ring ring-inset focus-visible:ring-4",
children: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -65428,13 +65441,13 @@ function JZ({ 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", YZ = "/api/avatar-pick", DOe = "/api/avatar-code-cover", XZ = "/api/avatar-frame", OOe = "/avatar-choice", ZZ = (e, t) => [
+var OOe = "/api/avatar-choices", JZ = "/api/avatar-pick", kOe = "/api/avatar-code-cover", YZ = "/api/avatar-frame", AOe = "/avatar-choice", XZ = (e, t) => [
"avatar-choices",
e,
t
-], QZ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, $Z = (e, t, n, r = "") => `${OOe}${QZ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), eQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", kOe = (e, t, n) => B(EOe + QZ(e, t), n), AOe = (e) => V(DOe, { code: e });
-async function jOe(e, t, n) {
- let r = await V(XZ, {
+], ZZ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, QZ = (e, t, n, r = "") => `${AOe}${ZZ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), $Z = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", jOe = (e, t, n) => B(OOe + ZZ(e, t), n), MOe = (e) => V(kOe, { code: e });
+async function NOe(e, t, n) {
+ let r = await V(YZ, {
kind: e,
id: t,
ref: n.ref
@@ -65447,12 +65460,12 @@ async function jOe(e, t, n) {
bases: r.bases
};
}
-var MOe = (e, t, n) => V(XZ, {
+var POe = (e, t, n) => V(YZ, {
kind: e,
id: t,
url: n
-}), NOe = (e, t, n) => tQ(`${XZ}${QZ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
-async function tQ(e, t) {
+}), FOe = (e, t, n) => eQ(`${YZ}${ZZ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
+async function eQ(e, t) {
let n = await fetch(e, {
method: "POST",
credentials: "same-origin",
@@ -65461,17 +65474,17 @@ async function tQ(e, t) {
if (n.ok) return r;
throw new sr(r?.error || `请求失败(${n.status})`, n.status, r);
}
-function nQ(e, t, n) {
+function tQ(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? yOe(e.focus, t, n) : HZ(t, n);
+ return e.focus && r ? xOe(e.focus, t, n) : VZ(t, n);
}
-var POe = (e) => e.crop && VZ({
+var IOe = (e) => e.crop && BZ({
width: e.width,
height: e.height
});
-async function FOe(e, t, n) {
+async function LOe(e, t, n) {
if (!("file" in n)) {
- await V(YZ, {
+ await V(JZ, {
kind: e,
id: t,
...n
@@ -65484,19 +65497,19 @@ async function FOe(e, t, n) {
i.x1,
i.y1
].join(",")}` : "";
- await tQ(`${YZ}${QZ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
+ await eQ(`${JZ}${ZZ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
}
-var rQ = 2;
-function IOe(e, t) {
+var nQ = 2;
+function ROe(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
- return n.length ? `${e}:图库里按${`「${n.slice(0, rQ).join("」「")}」`}${n.length > rQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
+ return n.length ? `${e}:图库里按${`「${n.slice(0, nQ).join("」「")}」`}${n.length > nQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
}
-var LOe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function ROe(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 ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${LOe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var zOe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function BOe(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 ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${zOe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var iQ = (e) => e.cast > 1, zOe = (e) => iQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, BOe = {
+var rQ = (e) => e.cast > 1, VOe = (e) => rQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, HOe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
@@ -65506,7 +65519,7 @@ var iQ = (e) => e.cast > 1, zOe = (e) => iQ(e) ? `${e.label}:${e.cast.toLocale
social: "社媒头像",
online: "在线作品"
};
-function VOe(e) {
+function UOe(e) {
if (e.startsWith("follow:")) {
let t = e.split(":")[2];
return t === "cover" ? "作品封面" : `内容图片 ${Number(t.replace("image", "") || 0) + 1}`;
@@ -65517,19 +65530,19 @@ function VOe(e) {
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var HOe = (e) => `${BOe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (iQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), UOe = 8, WOe = 3 / 4;
-async function GOe(e, t, n) {
+var WOe = (e) => `${HOe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (rQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), GOe = 8, KOe = 3 / 4;
+async function qOe(e, t, n) {
switch (n.via) {
- case "choice": return { choice: await jOe(e, t, n.choice) };
- case "code": return { choice: await AOe(n.code) };
- case "url": return { choice: await MOe(e, t, n.url) };
+ case "choice": return { choice: await NOe(e, t, n.choice) };
+ case "code": return { choice: await MOe(n.code) };
+ case "url": return { choice: await POe(e, t, n.url) };
case "file": return {
- choice: await NOe(e, t, n.file),
+ choice: await FOe(e, t, n.file),
file: n.file
};
}
}
-function KOe({ kind: e, entityId: t, name: n, onPicked: r }) {
+function JOe({ 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",
@@ -65539,17 +65552,17 @@ function KOe({ 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)(cge, {
+ children: /* @__PURE__ */ (0, I.jsx)(uge, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(aV, {
+ }), /* @__PURE__ */ (0, I.jsx)(iV, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, I.jsx)(qOe, {
+ children: /* @__PURE__ */ (0, I.jsx)(YOe, {
kind: e,
entityId: t,
name: n,
@@ -65558,24 +65571,24 @@ function KOe({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function qOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, F.useRef)(null), o = LV(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = ZZ(e, t), m = (0, F.useRef)(!1), h = Ft({
+function YOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, F.useRef)(null), o = IV(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = XZ(e, t), m = (0, F.useRef)(!1), h = Ft({
queryKey: p,
- queryFn: ({ signal: n }) => kOe(e, t, n),
+ queryFn: ({ signal: n }) => jOe(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
});
(0, F.useEffect)(() => () => {
- m.current && H.removeQueries({ queryKey: ZZ(e, t) });
+ m.current && H.removeQueries({ queryKey: XZ(e, t) });
}, [e, t]);
let g = It({
- mutationFn: (n) => FOe(e, t, n),
+ mutationFn: (n) => LOe(e, t, n),
onSuccess: () => {
m.current = !0, i(), r();
}
}), _ = It({
- mutationFn: (n) => GOe(e, t, n),
+ mutationFn: (n) => qOe(e, t, n),
onMutate: () => {
g.reset();
},
@@ -65596,39 +65609,39 @@ function qOe({ 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 ? "" : ROe(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 ? "" : BOe(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)(oV, { children: /* @__PURE__ */ (0, I.jsx)(YB, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, I.jsx)(aV, { children: /* @__PURE__ */ (0, I.jsx)(JB, { 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)(RL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(LL, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: d ? "框出头像那一块" : "更换头像"
- }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(UU, {
+ }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(HU, {
color: "soft",
children: [S.length.toLocaleString(), " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: d ? zOe(d.choice) : IOe(n, x)
+ children: d ? VOe(d.choice) : ROe(n, x)
}),
- T ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ T ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
children: T
}) : null,
- C ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ C ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
action: E ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- ...fV(h.isFetching),
+ ...dV(h.isFetching),
onClick: () => {
h.isFetching || h.refetch();
},
@@ -65638,14 +65651,14 @@ function qOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(iL, {
- icon: SB,
+ /* @__PURE__ */ (0, I.jsx)(rL, {
+ icon: xB,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), d ? /* @__PURE__ */ (0, I.jsx)(YOe, {
+ }), d ? /* @__PURE__ */ (0, I.jsx)(ZOe, {
kind: e,
entityId: t,
choice: d.choice,
@@ -65665,7 +65678,7 @@ function qOe({ 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: UOe }, (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",
@@ -65678,8 +65691,8 @@ function qOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: HOe(n),
- ...fV(w),
+ title: WOe(n),
+ ...dV(w),
onClick: () => {
w || (n.crop ? (g.reset(), _.reset(), f({ choice: n })) : _.mutate({
via: "choice",
@@ -65688,8 +65701,8 @@ function qOe({ 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)(JOe, {
- src: $Z(e, t, n.ref, eQ(n, n.ref)),
+ /* @__PURE__ */ (0, I.jsx)(XOe, {
+ src: QZ(e, t, n.ref, $Z(n, n.ref)),
choice: n
}),
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -65698,15 +65711,15 @@ function qOe({ 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)(UU, {
+ children: /* @__PURE__ */ (0, I.jsx)(HU, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- iQ(n) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ rQ(n) ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, I.jsxs)(UU, {
+ children: /* @__PURE__ */ (0, I.jsxs)(HU, {
variant: "caption",
color: "gray",
children: [n.cast.toLocaleString(), " 人"]
@@ -65728,7 +65741,7 @@ function qOe({ 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)(iV, {
+ children: /* @__PURE__ */ (0, I.jsx)(rV, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -65738,7 +65751,7 @@ function qOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
type: "submit",
variant: "secondary",
disabled: !l.trim(),
- ...fV(v("code")),
+ ...dV(v("code")),
children: "取封面来框"
})]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -65747,7 +65760,7 @@ function qOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
/* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
onClick: () => a.current?.click(),
- ...fV(v("file")),
+ ...dV(v("file")),
children: "从本机选图片"
}),
/* @__PURE__ */ (0, I.jsx)("input", {
@@ -65767,7 +65780,7 @@ function qOe({ 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)(iV, {
+ children: /* @__PURE__ */ (0, I.jsx)(rV, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -65777,7 +65790,7 @@ function qOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}), /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
disabled: !s.trim(),
- ...fV(v("url")),
+ ...dV(v("url")),
onClick: () => {
w || _.mutate({
via: "url",
@@ -65791,7 +65804,7 @@ function qOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function JOe({ 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);
@@ -65799,7 +65812,7 @@ function JOe({ src: e, choice: t }) {
let s = {
width: t.width,
height: t.height
- }, c = POe(t) ? COe(nQ(t, s, WOe), s) : null, l = r || a ? !0 : void 0;
+ }, c = IOe(t) ? TOe(tQ(t, s, KOe), 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",
@@ -65825,23 +65838,23 @@ function JOe({ src: e, choice: t }) {
})]
});
}
-function YOe({ 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 = eQ(n, s), m = $Z(e, t, s, p), h = LV();
+function ZOe({ 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 = $Z(n, s), m = QZ(e, t, s, p), h = IV();
function g(e) {
c(e), u(null), f(null);
}
- let _ = d && l ? SOe(d, l) : null;
+ let _ = d && l ? wOe(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",
- children: [m ? /* @__PURE__ */ (0, I.jsx)(JZ, {
+ children: [m ? /* @__PURE__ */ (0, I.jsx)(qZ, {
src: m,
aspect: 1,
box: d,
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), VZ(e) && f(s === n.ref ? nQ(n, e, 1) : HZ(e, 1));
+ u(e), BZ(e) && f(s === n.ref ? tQ(n, e, 1) : VZ(e, 1));
},
onBox: f
}) : null, o.length > 1 ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -65855,7 +65868,7 @@ function YOe({ 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: VOe(e)
+ children: UOe(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -65875,12 +65888,12 @@ function YOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
/* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
onClick: i,
- ...fV(r),
+ ...dV(r),
children: "返回备选图片"
}),
n.crop ? null : /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
- ...fV(r),
+ ...dV(r),
onClick: () => {
r || a(null);
},
@@ -65888,7 +65901,7 @@ function YOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}),
/* @__PURE__ */ (0, I.jsx)(Y, {
disabled: !d || !l,
- ...fV(r),
+ ...dV(r),
onClick: () => {
d && !r && a({
ref: s,
@@ -65903,17 +65916,17 @@ function YOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
})] });
}
// src/react/components/source-picture.tsx
-var aQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${encodeURIComponent(t)}${n ? `&attempt=${n}` : ""}`;
-function oQ({ title: e, detail: t, busy: n, onRetry: r }) {
+var iQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${encodeURIComponent(t)}${n ? `&attempt=${n}` : ""}`;
+function aQ({ title: e, detail: t, busy: n, onRetry: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-jav-picture-wait": "",
- children: /* @__PURE__ */ (0, I.jsx)(cV, {
+ children: /* @__PURE__ */ (0, I.jsx)(sV, {
size: "compact",
- icon: PB,
+ icon: NB,
title: e,
actions: /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
- ...fV(!!n),
+ ...dV(!!n),
onClick: r,
children: "立即重试"
}),
@@ -65921,9 +65934,9 @@ function oQ({ title: e, detail: t, busy: n, onRetry: r }) {
})
});
}
-function XOe({ code: e }) {
- let t = fH(), [n, r] = (0, F.useState)("");
- return /* @__PURE__ */ (0, I.jsx)(oQ, {
+function QOe({ code: e }) {
+ let t = dH(), [n, r] = (0, F.useState)("");
+ return /* @__PURE__ */ (0, I.jsx)(aQ, {
title: "封面未取得",
detail: t.error || n,
busy: !!t.busy,
@@ -65938,8 +65951,8 @@ function XOe({ code: e }) {
}
});
}
-function sQ({ item: e, image: t, thumbnail: n = !1 }) {
- let [r, i] = (0, F.useState)(0), [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(null), u = t === "cover" && e.has_cover, d = !u && (t !== "cover" || e.source_image), f = n ? "" : t === "cover" ? `${e.code} 封面` : `${e.code} 预览 ${Number(t) + 1}`, p = d ? aQ(e.code, t, r) : u ? uo(e, !0) : e.cover_url || "";
+function oQ({ item: e, image: t, thumbnail: n = !1 }) {
+ let [r, i] = (0, F.useState)(0), [a, o] = (0, F.useState)(null), [s, c] = (0, F.useState)(""), l = (0, F.useRef)(null), u = t === "cover" && e.has_cover, d = !u && (t !== "cover" || e.source_image), f = n ? "" : t === "cover" ? `${e.code} 封面` : `${e.code} 预览 ${Number(t) + 1}`, p = d ? iQ(e.code, t, r) : u ? lo(e, !0) : e.cover_url || "";
if ((0, F.useLayoutEffect)(() => {
let e = l.current;
e?.complete && e.naturalWidth > 0 && o({
@@ -65956,8 +65969,8 @@ function sQ({ item: e, image: t, thumbnail: n = !1 }) {
src: p,
alt: f
})
- }) : n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "封面未取得" }) : /* @__PURE__ */ (0, I.jsx)(XOe, { code: e.code });
- if (s === p) return n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)(oQ, {
+ }) : n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "封面未取得" }) : /* @__PURE__ */ (0, I.jsx)(QOe, { code: e.code });
+ if (s === p) return n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)(aQ, {
title: "图片未取得",
onRetry: () => i((e) => e + 1)
});
@@ -66006,8 +66019,8 @@ function sQ({ item: e, image: t, thumbnail: n = !1 }) {
] });
}
// src/react/components/source-avatar.tsx
-function cQ({ code: e, person: t, detail: n = !1 }) {
- tL();
+function sQ({ code: e, person: t, detail: n = !1 }) {
+ eL();
let r = (0, F.useRef)(null), [i, a] = (0, F.useState)(n || typeof IntersectionObserver > "u");
(0, F.useEffect)(() => {
if (!r.current || i) return;
@@ -66021,7 +66034,7 @@ function cQ({ code: e, person: t, detail: n = !1 }) {
"data-source-initial": "",
children: er(nn("performer", t.name))
}), i && t.source_actor_id ? /* @__PURE__ */ (0, I.jsx)("img", {
- src: aQ(e, `actor:${t.source_actor_id}`),
+ src: iQ(e, `actor:${t.source_actor_id}`),
alt: "",
"data-drop": "self"
}) : null] });
@@ -66031,8 +66044,8 @@ function cQ({ code: e, person: t, detail: n = !1 }) {
}) : o;
}
// src/react/feed-new/feed-new-row.tsx
-function lQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
- let a = (0, F.useContext)(qW), o = (0, F.useRef)(null), [s, c] = (0, F.useState)([]), l = e?.items.length ? e.html : "";
+function cQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
+ let a = (0, F.useContext)(KW), o = (0, F.useRef)(null), [s, c] = (0, F.useState)([]), l = e?.items.length ? e.html : "";
(0, F.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !l, e && i?.(!!l);
}, [
@@ -66064,7 +66077,7 @@ function lQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
u(e);
},
dangerouslySetInnerHTML: { __html: l }
- }), s.map((e, t) => (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(cQ, {
+ }), s.map((e, t) => (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(sQ, {
code: e.dataset.code,
person: {
name: e.dataset.name,
@@ -66073,7 +66086,7 @@ function lQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
}), e, `${l.length}:${t}`))] }) : null;
}
// src/react/entity-hero/glyph.tsx
-function uQ({ name: e }) {
+function lQ({ name: e }) {
let { wide: t, viewBox: n } = Cn(e);
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: n,
@@ -66083,20 +66096,20 @@ function uQ({ name: e }) {
});
}
// src/react/entity-hero/hero-pop.tsx
-function dQ(e, t) {
+function uQ(e, t) {
t.style.removeProperty("max-height");
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
t.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left))}px`;
let i = n.bottom + 8, a = innerHeight - 8 - i, o = n.top - 16, s = r.height <= a || r.height > o && a >= o, c = Math.max(0, s ? a : o);
r.height > c && (t.style.maxHeight = `${c}px`), t.style.top = `${s ? i : n.top - 8 - Math.min(r.height, c)}px`;
}
-var fQ = (e) => !!e?.isConnected && e.matches(":popover-open");
-function pQ(e, t, n, r) {
+var dQ = (e) => !!e?.isConnected && e.matches(":popover-open");
+function fQ(e, t, n, r) {
let i = (0, F.useRef)(r);
i.current = r, (0, F.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && fQ(n.current) ? dQ(t.current, n.current) : i.current();
+ t.current && dQ(n.current) ? uQ(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -66110,17 +66123,17 @@ function pQ(e, t, n, r) {
n
]);
}
-function mQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function pQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
let o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = (0, F.useRef)(!1), d = (0, F.useRef)(0), f = () => {
- clearTimeout(d.current), u.current = !1, fQ(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, dQ(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), s.current && o.current && !fQ(s.current) && (s.current.showPopover(), dQ(o.current, s.current), l(!0));
+ clearTimeout(d.current), s.current && o.current && !dQ(s.current) && (s.current.showPopover(), uQ(o.current, s.current), l(!0));
}, m = () => {
clearTimeout(d.current), d.current = window.setTimeout(() => {
u.current || o.current?.matches(":hover,:focus-visible") || s.current?.matches(":hover") || f();
}, 150);
};
- return pQ(c, o, s, f), (0, F.useEffect)(() => {
+ return fQ(c, o, s, f), (0, F.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -66146,7 +66159,7 @@ function mQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && fQ(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && dQ(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -66164,16 +66177,16 @@ function mQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function ZOe({ following: e, busy: t, onToggle: n, tip: r }) {
+function $Oe({ 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 = () => {
- fQ(o.current) && o.current.hidePopover(), c(!1);
+ dQ(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- !l.current && o.current && i.current && !fQ(o.current) && (o.current.showPopover(), dQ(i.current, o.current), c(!0));
+ !l.current && o.current && i.current && !dQ(o.current) && (o.current.showPopover(), uQ(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return pQ(s, i, o, () => c(!1)), (0, F.useEffect)(() => {
- i.current && fQ(o.current) && dQ(i.current, o.current);
+ return fQ(s, i, o, () => c(!1)), (0, F.useEffect)(() => {
+ i.current && dQ(o.current) && uQ(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, I.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -66182,7 +66195,7 @@ function ZOe({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, I.jsx)(uQ, { name: "rss" }),
+ /* @__PURE__ */ (0, I.jsx)(lQ, { name: "rss" }),
/* @__PURE__ */ (0, I.jsx)("input", {
ref: a,
type: "checkbox",
@@ -66216,29 +66229,29 @@ function ZOe({ following: e, busy: t, onToggle: n, tip: r }) {
});
}
// src/react/entity-hero/name-picker.tsx
-function QOe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function eke({ 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)(jme, {
+ }, []), /* @__PURE__ */ (0, I.jsxs)(Nme, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, I.jsx)(IL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(FL, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, I.jsx)(uQ, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, I.jsx)(lz, {
+ children: /* @__PURE__ */ (0, I.jsx)(lQ, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, I.jsx)(cz, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: kV,
+ className: OV,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, I.jsxs)(Nme, {
+ children: /* @__PURE__ */ (0, I.jsxs)(Fme, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(_z, {
+ /* @__PURE__ */ (0, I.jsx)(gz, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -66246,34 +66259,34 @@ function QOe({ 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)(yz, {
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsxs)(vz, {
id: e.value,
textValue: e.label,
"data-namepick-name": e.value,
- children: [/* @__PURE__ */ (0, I.jsx)(uQ, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.label })]
+ children: [/* @__PURE__ */ (0, I.jsx)(lQ, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.label })]
}, e.value))
}),
- /* @__PURE__ */ (0, I.jsx)(mme, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, I.jsx)(_z, { children: /* @__PURE__ */ (0, I.jsxs)(yz, {
+ /* @__PURE__ */ (0, I.jsx)(gme, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, I.jsx)(gz, { children: /* @__PURE__ */ (0, I.jsxs)(vz, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, I.jsx)(uQ, { name: "plus" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(lQ, { name: "plus" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var $Oe = (e) => e === "studio" || e === "agency", hQ = (e) => e === "performer" || e === "creator", eke = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
-function tke(e, t = "zh-CN") {
+var tke = (e) => e === "studio" || e === "agency", mQ = (e) => e === "performer" || e === "creator", nke = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
+function rke(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
}));
}
-function gQ(e) {
+function hQ(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0,
@@ -66285,13 +66298,13 @@ function gQ(e) {
linked: !1
} : null;
}
-function _Q(e, t) {
+function gQ(e, t) {
let n = Kn(e, "performer"), r = Un(t);
return r && [e.label, n].map(Un).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";
}
-var vQ = (e) => ({ site: zn(e) });
-function nke(e, t) {
- let n = gQ(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+var _Q = (e) => ({ site: zn(e) });
+function ike(e, t) {
+ let n = hQ(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -66301,7 +66314,7 @@ function nke(e, t) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${_Q(e, n)} · ${t}`
+ title: `${gQ(e, n)} · ${t}`
};
}
let r = e.url || "";
@@ -66309,11 +66322,11 @@ function nke(e, t) {
type: "private",
label: e.label || e.hostname || "已记录"
};
- if (hQ(t) && e.link_kind !== "social") return {
+ if (mQ(t) && e.link_kind !== "social") return {
type: "icon",
url: r,
- title: _Q(e, n),
- mark: vQ(e)
+ title: gQ(e, n),
+ mark: _Q(e)
};
if (e.link_kind === "social") {
let t = Hn(r);
@@ -66321,7 +66334,7 @@ function nke(e, t) {
type: "icon",
url: r,
title: e.label || "",
- mark: t ? { brand: t } : vQ(e)
+ mark: t ? { brand: t } : _Q(e)
};
}
return {
@@ -66329,12 +66342,12 @@ function nke(e, t) {
url: r,
title: e.label || "",
text: Kn(e, t, i),
- mark: vQ(e)
+ mark: _Q(e)
};
});
- return [...r, ...rke(a)];
+ return [...r, ...ake(a)];
}
-function rke(e) {
+function ake(e) {
let t = e.filter((e) => e.type === "private");
return t.length < 2 ? e : [...e.filter((e) => e.type !== "private"), {
type: "private",
@@ -66342,8 +66355,8 @@ function rke(e) {
sources: t.map((e) => e.label)
}];
}
-var yQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function ike(e) {
+var vQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function oke(e) {
return [
[
"legal_name",
@@ -66399,7 +66412,7 @@ function ike(e) {
}]
}] : []);
}
-function ake(e) {
+function ske(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -66456,14 +66469,14 @@ function ake(e) {
tags: e.tags
}), t;
}
-function bQ(e, t = 4) {
+function yQ(e, t = 4) {
let n = e.length > t + 1 ? t : e.length;
return {
shown: e.slice(0, n),
rest: e.length - n
};
}
-function oke(e) {
+function cke(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 ? {
@@ -66473,20 +66486,20 @@ function oke(e) {
} : null;
}
// src/react/entity-hero/entity-hero-page.tsx
-function ske(e) {
- return _o({
+function lke(e) {
+ return go({
id: e.id,
hasImage: e.has_image,
version: e.image_version,
rep: e.has_avatar ? e.rep : null,
- style: xo(e.avatar_focus),
+ style: bo(e.avatar_focus),
focus: e.avatar_focus,
standIn: e.avatar_stand_in
});
}
-function cke({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- tL();
- let s = nn(e, n.canonical_name, Number(n.id)), c = rn(e, n.canonical_name, Number(n.id)), l = hQ(e), u = $Oe(e), d = l ? ake(n.profile) : u ? ike(n.company_profile) : [], f = nke(n, e), p = yQ(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, F.useRef)(null), g = (0, F.useRef)(null);
+function uke({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
+ eL();
+ let s = nn(e, n.canonical_name, Number(n.id)), c = rn(e, n.canonical_name, Number(n.id)), l = mQ(e), u = tke(e), d = l ? ske(n.profile) : u ? oke(n.company_profile) : [], f = ike(n, e), p = vQ(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)(() => {
@@ -66499,7 +66512,7 @@ function cke({ 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)(lke, {
+ children: [/* @__PURE__ */ (0, I.jsx)(dke, {
kind: e,
name: s,
helpers: o,
@@ -66507,7 +66520,7 @@ function cke({ 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)(KOe, {
+ children: /* @__PURE__ */ (0, I.jsx)(JOe, {
kind: e,
entityId: Number(n.id),
name: s || t,
@@ -66522,17 +66535,17 @@ function cke({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
"data-entity-title": "",
children: [
/* @__PURE__ */ (0, I.jsx)("h2", {
- lang: LI(s),
+ lang: II(s),
title: c || void 0,
children: s
}),
- e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(QOe, {
+ e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(eke, {
current: n.canonical_name,
- choices: tke(n, Xt()),
+ choices: rke(n, Xt()),
onChoose: a.chooseName,
onAddAlias: a.addAlias
}),
- n.id ? /* @__PURE__ */ (0, I.jsx)(wV, { item: {
+ n.id ? /* @__PURE__ */ (0, I.jsx)(CV, { item: {
entity_id: Number(n.id),
kind: e,
name: n.canonical_name || t,
@@ -66546,7 +66559,7 @@ function cke({ 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)(uke, {
+ /* @__PURE__ */ (0, I.jsx)(fke, {
kind: e,
entity: n,
actions: a
@@ -66567,14 +66580,14 @@ function cke({ 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)(gke, { link: e }, t))
+ children: f.map((e, t) => /* @__PURE__ */ (0, I.jsx)(vke, { link: e }, t))
}) : null,
- p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(_ke, {
+ p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(yke, {
entity: n,
actions: a,
helpers: o
}) : null,
- n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(pke, {
+ n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(hke, {
follow: n.follow,
displayName: s,
actions: a
@@ -66583,11 +66596,11 @@ function cke({ 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)(mke, {
+ children: d.map((e) => /* @__PURE__ */ (0, I.jsx)(gke, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, I.jsx)(hke, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, I.jsx)(_ke, { 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))
@@ -66606,7 +66619,7 @@ function cke({ 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>${ske(e)}` }
+ dangerouslySetInnerHTML: { __html: `<span>${z(er(nn("performer", e.k, e.id)))}</span>${lke(e)}` }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-hero-costar-name": "",
children: nn("performer", e.k, e.id)
@@ -66614,14 +66627,14 @@ function cke({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}, e.k))
})
}) : null]
- }), i ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(lQ, {
+ }), i ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(cQ, {
feedNew: r,
host: i,
wire: o.wireFeedRow,
act: (e, t) => a.feedAction(e, t)
}), i) : null] });
}
-function lke({ kind: e, name: t, helpers: n, people: r, company: i }) {
+function dke({ 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]");
@@ -66635,8 +66648,8 @@ function lke({ kind: e, name: t, helpers: n, people: r, company: i }) {
dangerouslySetInnerHTML: { __html: o }
});
}
-function uke({ kind: e, entity: t, actions: n }) {
- let r = gQ(t), i = (e, t) => (r) => {
+function fke({ kind: e, entity: t, actions: n }) {
+ let r = hQ(t), i = (e, t) => (r) => {
r.preventDefault(), n.openEntity(e, t);
}, a = r ? r.linked ? /* @__PURE__ */ (0, I.jsx)("a", {
href: Pn("agency", r.name, r.id),
@@ -66645,44 +66658,44 @@ function uke({ 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 = oke(e);
+ let e = t.name_display?.groups[Xt()] ?? t.name_groups, r = cke(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- /* @__PURE__ */ (0, I.jsx)(xQ, { entity: t }),
+ /* @__PURE__ */ (0, I.jsx)(bQ, { entity: t }),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, I.jsx)(uQ, { name: "film" }), /* @__PURE__ */ (0, I.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, I.jsx)(lQ, { name: "film" }), /* @__PURE__ */ (0, I.jsx)("span", { children: o })]
}),
- t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(fke, {
+ t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(mke, {
follow: t.follow,
actions: n
}) : null,
a ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, I.jsx)(uQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, I.jsx)(lQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
}) : null,
r ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-meta-item": "names",
children: [
- /* @__PURE__ */ (0, I.jsx)(uQ, { name: "id-card" }),
+ /* @__PURE__ */ (0, I.jsx)(lQ, { name: "id-card" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: r.names.map((e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
- lang: LI(e),
+ lang: II(e),
children: e
}, t))
}),
- r.rest > 0 ? /* @__PURE__ */ (0, I.jsx)(mQ, {
+ r.rest > 0 ? /* @__PURE__ */ (0, I.jsx)(pQ, {
id: "entityAliasPop",
hook: "alias",
rest: r.rest,
label: `另外 ${r.rest.toLocaleString()} 个别名`,
heading: `${r.total.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, I.jsx)("dl", { children: (e?.groups || []).map((e, t) => /* @__PURE__ */ (0, I.jsx)(SQ, {
+ children: /* @__PURE__ */ (0, I.jsx)("dl", { children: (e?.groups || []).map((e, t) => /* @__PURE__ */ (0, I.jsx)(xQ, {
label: e.label,
names: e.names
}, t)) })
@@ -66704,61 +66717,61 @@ function uke({ kind: e, entity: t, actions: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- e === "creator" ? /* @__PURE__ */ (0, I.jsx)(xQ, { entity: t }) : null,
+ e === "creator" ? /* @__PURE__ */ (0, I.jsx)(bQ, { entity: t }) : null,
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, I.jsx)(uQ, { name: "film" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [o, c] })]
+ children: [/* @__PURE__ */ (0, I.jsx)(lQ, { name: "film" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [o, c] })]
}),
a ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, I.jsx)(uQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, I.jsx)(lQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
}) : null,
l ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "片商",
- children: [/* @__PURE__ */ (0, I.jsx)(uQ, { name: "clapperboard" }), /* @__PURE__ */ (0, I.jsx)("a", {
+ children: [/* @__PURE__ */ (0, I.jsx)(lQ, { name: "clapperboard" }), /* @__PURE__ */ (0, I.jsx)("a", {
href: Pn("studio", l.name, l.id),
"data-studio-link": l.name,
onClick: i("studio", l.name),
children: l.name
})]
}) : null,
- s.length ? /* @__PURE__ */ (0, I.jsx)(dke, { aliases: s }) : null
+ s.length ? /* @__PURE__ */ (0, I.jsx)(pke, { aliases: s }) : null
]
});
}
-function dke({ aliases: e }) {
- let { shown: t, rest: n } = bQ(e, 3);
+function pke({ aliases: e }) {
+ let { shown: t, rest: n } = yQ(e, 3);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-meta-item": "names",
"data-company-names": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(uQ, { name: "id-card" }),
+ /* @__PURE__ */ (0, I.jsx)(lQ, { name: "id-card" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: t.map((e, t) => /* @__PURE__ */ (0, I.jsx)("span", { children: e }, t))
}),
- n ? /* @__PURE__ */ (0, I.jsx)(mQ, {
+ n ? /* @__PURE__ */ (0, I.jsx)(pQ, {
id: "entityAliasPop",
hook: "alias",
rest: n,
label: `另外 ${n.toLocaleString()} 个别名`,
heading: `${e.length.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, I.jsx)("dl", { children: /* @__PURE__ */ (0, I.jsx)(SQ, { names: e.map((e) => ({ name: e })) }) })
+ children: /* @__PURE__ */ (0, I.jsx)("dl", { children: /* @__PURE__ */ (0, I.jsx)(xQ, { names: e.map((e) => ({ name: e })) }) })
}) : null
]
});
}
-function fke({ follow: e, actions: t }) {
+function mke({ follow: e, actions: t }) {
let n = e.providers.join(" · ");
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
"data-entity-follow": "",
title: n ? `关注 · ${n}` : "关注",
- children: [/* @__PURE__ */ (0, I.jsx)(uQ, { name: "rss" }), /* @__PURE__ */ (0, I.jsxs)("a", {
+ children: [/* @__PURE__ */ (0, I.jsx)(lQ, { name: "rss" }), /* @__PURE__ */ (0, I.jsxs)("a", {
href: "?media=online",
onClick: (n) => {
n.preventDefault(), t.openFollowAuthor(e.key);
@@ -66767,7 +66780,7 @@ function fke({ follow: e, actions: t }) {
})]
});
}
-function pke({ follow: e, displayName: t, actions: n }) {
+function hke({ follow: e, displayName: t, actions: n }) {
let [r, i] = (0, F.useState)(""), a = async (e, t) => {
if (!r) {
i(e);
@@ -66781,12 +66794,12 @@ function pke({ 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)(sV, {
+ children: e.held.map((e) => /* @__PURE__ */ (0, I.jsxs)(oV, {
tone: "info",
title: `关注里有同名作者 ${e.name}`,
action: /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
- ...fV(r === e.key),
+ ...dV(r === e.key),
onClick: () => {
a(e.key, e.name);
},
@@ -66801,37 +66814,37 @@ function pke({ follow: e, displayName: t, actions: n }) {
}, e.key))
});
}
-function xQ({ entity: e }) {
+function bQ({ entity: e }) {
return e.identity_labels?.length ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "classification",
"data-identity-classification": "",
- children: [/* @__PURE__ */ (0, I.jsx)(uQ, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.identity_labels.join(" · ") })]
+ children: [/* @__PURE__ */ (0, I.jsx)(lQ, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.identity_labels.join(" · ") })]
}) : null;
}
-function SQ({ label: e, names: t }) {
+function xQ({ label: e, names: t }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, I.jsx)("dd", {
"data-wide": e ? void 0 : "",
children: t.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
"data-pop-name": "",
- lang: LI(e.name),
+ lang: II(e.name),
children: [e.name, e.reading ? /* @__PURE__ */ (0, I.jsx)("small", { children: e.reading }) : null]
}, t))
})] });
}
-function mke({ 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)(uQ, { name: e }), t] }), /* @__PURE__ */ (0, I.jsx)("dd", {
+function gke({ 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)(lQ, { 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 hke({ tags: e }) {
- let { shown: t, rest: n } = bQ(e);
+function _ke({ tags: e }) {
+ let { shown: t, rest: n } = yQ(e);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-fact-tag": "",
title: e,
children: e
- }, e)), n ? /* @__PURE__ */ (0, I.jsx)(mQ, {
+ }, e)), n ? /* @__PURE__ */ (0, I.jsx)(pQ, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -66847,10 +66860,10 @@ function hke({ tags: e }) {
})
}) : null] });
}
-function CQ({ mark: e }) {
+function SQ({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, I.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, I.jsx)(uQ, { name: e.brand })
+ children: /* @__PURE__ */ (0, I.jsx)(lQ, { name: e.brand })
});
let t = R("globe") + ("site" in e ? `<img src="${z(e.site)}" alt="" width="20" height="20" loading="lazy" decoding="async" referrerpolicy="no-referrer" data-drop="self">` : "");
return /* @__PURE__ */ (0, I.jsx)("span", {
@@ -66858,7 +66871,7 @@ function CQ({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function gke({ link: e }) {
+function vke({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, I.jsx)("a", {
"data-link": "icon",
@@ -66867,19 +66880,19 @@ function gke({ link: e }) {
rel: "noopener noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, I.jsx)(CQ, { mark: e.mark })
+ children: /* @__PURE__ */ (0, I.jsx)(SQ, { mark: e.mark })
});
case "gone": return /* @__PURE__ */ (0, I.jsx)("span", {
"data-link": "gone",
tabIndex: 0,
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, I.jsx)(CQ, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, I.jsx)(SQ, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-link": "private",
title: e.sources ? e.sources.join("\n") : e.label,
- children: [/* @__PURE__ */ (0, I.jsx)(CQ, { mark: { globe: !0 } }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(SQ, { mark: { globe: !0 } }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-link-label": "",
children: e.sources ? e.label : `来源 · ${e.label}`
})]
@@ -66891,7 +66904,7 @@ function gke({ link: e }) {
rel: "noopener noreferrer",
title: e.title,
children: [
- /* @__PURE__ */ (0, I.jsx)(CQ, { mark: e.mark }),
+ /* @__PURE__ */ (0, I.jsx)(SQ, { mark: e.mark }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-link-label": "",
children: e.text
@@ -66906,7 +66919,7 @@ function gke({ link: e }) {
});
}
}
-function _ke({ entity: e, actions: t, helpers: n }) {
+function yke({ 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);
@@ -66924,35 +66937,35 @@ function _ke({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entry-marks": "",
- children: [yQ(e).map((e, t) => /* @__PURE__ */ (0, I.jsxs)("a", {
+ children: [vQ(e).map((e, t) => /* @__PURE__ */ (0, I.jsxs)("a", {
"data-entry-mark": "",
href: e.url,
target: "_blank",
rel: "noopener noreferrer",
title: e.label,
"aria-label": e.label,
- children: [e.mark ? /* @__PURE__ */ (0, I.jsx)(uQ, { name: e.mark }) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, I.jsx)(lQ, { name: e.mark }) : /* @__PURE__ */ (0, I.jsxs)("span", {
"data-missav-mark": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "AV" })]
}), e.ordinal ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-entry-ordinal": "",
children: e.ordinal
}) : null]
- }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(ZOe, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)($Oe, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: eke(r)
+ tip: nke(r)
}) : null]
});
}
// src/react/entity-page/use-entity-online.ts
-var vke = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
-function yke(e, t, n) {
- let [r, i] = (0, F.useState)(() => va(e));
- r.author !== e && i(va(e));
+var bke = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
+function xke(e, t, n) {
+ let [r, i] = (0, F.useState)(() => _a(e));
+ r.author !== e && i(_a(e));
let [a, o] = (0, F.useState)({
author: e,
media: ""
@@ -66964,24 +66977,24 @@ function yke(e, t, n) {
let s = a.author === e ? a.media : "", c = (t) => o({
author: e,
media: t
- }), l = ia(r, 0), u = Lt({
+ }), l = ra(r, 0), u = Lt({
...l,
enabled: t && !!e
}), d = Ft({
- queryKey: aa,
- queryFn: ({ signal: e }) => oa(e),
+ queryKey: ia,
+ queryFn: ({ signal: e }) => aa(e),
enabled: t
- }), f = (0, F.useMemo)(() => ca(u.data), [u.data]), p = u.isPending || u.isPlaceholderData, m = (0, F.useMemo)(() => {
+ }), f = (0, F.useMemo)(() => sa(u.data), [u.data]), p = u.isPending || u.isPlaceholderData, m = (0, F.useMemo)(() => {
let e = {
videos: 0,
images: 0
};
- return (f?.groups || []).forEach((t) => ga(t).forEach((t) => {
+ return (f?.groups || []).forEach((t) => ha(t).forEach((t) => {
e[t === "image" ? "images" : "videos"] += 1;
})), e;
}, [f]), h = m.images > m.videos ? "images" : "videos";
!s && f && !p && c(h);
- let g = s || h, _ = (0, F.useMemo)(() => (f?.groups || []).filter((e) => ga(e).has(g === "images" ? "image" : "video")), [f, g]), v = (0, F.useMemo)(() => ({
+ let g = s || h, _ = (0, F.useMemo)(() => (f?.groups || []).filter((e) => ha(e).has(g === "images" ? "image" : "video")), [f, g]), v = (0, F.useMemo)(() => ({
sources: f?.sources || [],
aliases: f?.author_aliases || [],
credentials: new Set((d.data?.providers || []).filter((e) => e.present).map((e) => e.provider))
@@ -66996,22 +67009,22 @@ function yke(e, t, n) {
photoLayouts: n.photoLayouts,
imagesOnly: n.imagesOnly,
status: r.status,
- statuses: Qi,
+ statuses: Zi,
provider: r.provider,
providers: (y.providers || []).map((e) => [e, b.get(e) || e]),
tags: x.map(([e, t]) => ({
k: e,
- label: Rl(e),
+ label: Ll(e),
n: t,
selected: r.tags.includes(e),
- cat: Oa(f?.groups || [], e)
+ cat: Da(f?.groups || [], e)
})),
- sorts: $i.map(([e, t]) => ({
+ sorts: Qi.map(([e, t]) => ({
key: e,
label: t,
pressed: r.sort === e,
dir: r.sort === e ? r.dir : "",
- ariaLabel: wa(e, t, r.sort, r.dir)
+ ariaLabel: Ca(e, t, r.sort, r.dir)
}))
}, C = f?.counts || {}, w = r.status ? C[r.status] || 0 : Object.values(C).reduce((e, t) => e + (Number(t) || 0), 0), T = (e) => i((t) => ({
...t,
@@ -67028,15 +67041,15 @@ function yke(e, t, n) {
actions: {
onlineMedia: (e) => c(e),
onlineShuffle: () => T({
- sort: ta,
- seed: vke()
+ sort: ea,
+ seed: bke()
}),
onlineImagesOnly: (e) => n.setImagesOnly(e),
onlineStatus: (e) => T({ status: e }),
onlineProvider: (e) => T({ provider: r.provider === e ? "" : e }),
onlineTag: (e) => T({ tags: r.tags.includes(e) ? r.tags.filter((t) => t !== e) : [...r.tags, e] }),
onlineSort: (e) => {
- let t = Ca(e, r.sort, r.dir);
+ let t = Sa(e, r.sort, r.dir);
t && T(t);
}
},
@@ -67059,8 +67072,8 @@ function yke(e, t, n) {
};
}
// src/react/entity-page/entity-page-view.tsx
-function bke(e) {
- let { kind: t, name: n } = e, r = Ft(LX(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
+function Ske(e) {
+ let { kind: t, name: n } = e, r = Ft(IX(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
kind: t,
name: a
} : void 0), { actions: s } = e;
@@ -67078,17 +67091,17 @@ function bke(e) {
s,
o?.kind,
o?.name
- ]), r.isError ? /* @__PURE__ */ (0, I.jsx)(FG, {
+ ]), r.isError ? /* @__PURE__ */ (0, I.jsx)(PG, {
message: lr(r.error),
onRetry: () => {
r.refetch();
}
- }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(Cke, {
+ }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(Tke, {
...e,
entity: r.data
});
}
-function wQ(e) {
+function CQ(e) {
let [t, n] = (0, F.useState)({
key: e,
n: 1
@@ -67100,22 +67113,22 @@ function wQ(e) {
};
return n(r), r.n;
}
-var xke = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function Ske(e, t) {
+var Cke = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function wke(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t.toLocaleString()} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function Cke(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(RX(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 || zX(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {
+function Tke(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(LX(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 || RX(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
- } : AX, [y, b] = (0, F.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, F.useState)(x);
+ } : kX, [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 = yke(g, w === "online", {
+ let w = l && y === "people" && u.length ? "people" : v.media, T = xke(g, w === "online", {
photoLayout: e.photoLayout,
photoLayouts: e.photoLayouts,
imagesOnly: e.followImagesOnly,
setImagesOnly: e.follow.actions.setImagesOnly
- }), E = w === "photos" || w === "online" && T.media === "images", [D, O] = (0, F.useState)(0), k = IX(e), A = Ft(k), j = wQ(JSON.stringify([k.queryKey, D])), [M] = (0, F.useState)(() => (t === "performer" || t === "studio") && (e.jav || (A.data?.items || []).some((e) => e.is_jav)));
+ }), E = w === "photos" || w === "online" && T.media === "images", [D, O] = (0, F.useState)(0), k = FX(e), A = Ft(k), j = CQ(JSON.stringify([k.queryKey, D])), [M] = (0, F.useState)(() => (t === "performer" || t === "studio") && (e.jav || (A.data?.items || []).some((e) => e.is_jav)));
(0, F.useLayoutEffect)(() => {
s.javContext(M);
}, [s, M]);
@@ -67125,26 +67138,26 @@ function Cke(e) {
}, [e.layout, M]), N = {
jav: e.jav,
seed: e.seed
- }, te = (0, F.useCallback)((e, r, a) => FX(t, n, i, N, e, r, a), [j]), [P, ne] = (0, F.useState)({}), re = v.set, ie = P[re] || "", ae = Lt({
- ...RX(t, n, re, ie),
+ }, te = (0, F.useCallback)((e, r, a) => PX(t, n, i, N, e, r, a), [j]), [P, ne] = (0, F.useState)({}), re = v.set, ie = P[re] || "", ae = Lt({
+ ...LX(t, n, re, ie),
enabled: w === "photos"
- }), oe = ae.data?.pages[0], se = wQ(JSON.stringify(MX(t, n, re, ie))), ce = (0, F.useMemo)(() => {
+ }), oe = ae.data?.pages[0], se = CQ(JSON.stringify(jX(t, n, re, ie))), ce = (0, F.useMemo)(() => {
let e = ae.data?.pages;
if (!e?.[0] || e[0].error) return null;
let t = e[0];
return {
revision: se,
- codeSets: t.id ? [] : zX(t),
+ codeSets: t.id ? [] : RX(t),
items: e.flatMap((e) => e.items || []),
total: t.total || 0,
hasMore: !!e[e.length - 1]?.has_more
};
}, [ae.data, se]), le = ae.refetch, ue = ae.fetchNextPage, de = Ft({
- ...DX(d, o.feedRowHtml),
+ ...EX(d, o.feedRowHtml),
enabled: !!d
}), fe = (0, F.useRef)(e.feedRevision);
(0, F.useEffect)(() => {
- fe.current !== e.feedRevision && (fe.current = e.feedRevision, H.invalidateQueries({ queryKey: EX(d) }));
+ fe.current !== e.feedRevision && (fe.current = e.feedRevision, H.invalidateQueries({ queryKey: TX(d) }));
}, [d, e.feedRevision]);
let pe = !!A.data;
(0, F.useEffect)(() => {
@@ -67158,11 +67171,11 @@ function Cke(e) {
pe,
T.key
]), (0, F.useEffect)(() => {
- c.body.isConnected && !document.getElementById("index")?.hidden && (hm("entity", {
+ c.body.isConnected && !document.getElementById("index")?.hidden && (mm("entity", {
seed: e.seed,
revision: e.revision,
jav: e.jav
- }), !A.isPending && !ae.isPending && ym(() => c.body.isConnected && !document.getElementById("index")?.hidden, c.filter));
+ }), !A.isPending && !ae.isPending && vm(() => c.body.isConnected && !document.getElementById("index")?.hidden, c.filter));
}, [
c,
e.seed,
@@ -67178,7 +67191,7 @@ function Cke(e) {
me.current = !1;
}, []);
let he = (0, F.useCallback)(async () => {
- await H.invalidateQueries({ queryKey: ["entity-route"] }), await H.invalidateQueries({ queryKey: jX(t, n) }), await H.invalidateQueries({ queryKey: [
+ await H.invalidateQueries({ queryKey: ["entity-route"] }), await H.invalidateQueries({ queryKey: AX(t, n) }), await H.invalidateQueries({ queryKey: [
"entity-items",
t,
n
@@ -67212,7 +67225,7 @@ function Cke(e) {
enabled: e
})
}),
- onSuccess: (e, r) => H.setQueryData(jX(t, n), (e) => e && {
+ onSuccess: (e, r) => H.setQueryData(AX(t, n), (e) => e && {
...e,
feed: {
...e.feed,
@@ -67229,7 +67242,7 @@ function Cke(e) {
openEntity: s.openEntity,
chooseName: (e) => {
let n = r.canonical_name;
- e !== n && ul({
+ e !== n && ll({
title: "更改统一名称",
body: `「${e}」将成为这份档案显示的名称,「${n}」留作别名。作品上的署名、搜索和标签都会跟着改写。`,
confirmLabel: "更改统一名称",
@@ -67266,10 +67279,10 @@ function Cke(e) {
let e = await Tn("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- me.current && await H.invalidateQueries({ queryKey: EX(d) });
+ me.current && await H.invalidateQueries({ queryKey: TX(d) });
})();
},
- feedAction: OX,
+ feedAction: DX,
avatarPicked: () => {
s.avatarChanged(), he().then(() => {
me.current && O((e) => e + 1);
@@ -67317,19 +67330,19 @@ function Cke(e) {
(e !== w || v.set) && (b(e === "people" ? "people" : "videos"), s.route(i, e === "photos" || e === "online" ? {
media: e,
set: 0
- } : AX));
+ } : kX));
},
setState: (e) => s.route({
...i,
state: e
- }, AX),
+ }, kX),
toggleTag: s.toggleTag,
clearFilter: s.clearFilter,
clearAll: s.clearAll,
setSort: s.setSort,
reshuffle: async () => {
if (w !== "photos") {
- let r = s.reshuffleVideos(), a = IX({
+ let r = s.reshuffleVideos(), a = FX({
kind: t,
name: n,
filters: {
@@ -67343,7 +67356,7 @@ function Cke(e) {
await H.fetchQuery(a).catch(() => null);
return;
}
- let r = xke(), a = await H.fetchInfiniteQuery(RX(t, n, re, r)).catch(() => null);
+ let r = Cke(), a = await H.fetchInfiniteQuery(LX(t, n, re, r)).catch(() => null);
me.current && a?.pages[0] && !a.pages[0].error && ne((e) => ({
...e,
[re]: r
@@ -67376,9 +67389,9 @@ function Cke(e) {
})
}), [o, le]), we = (r.tags || []).map((e) => ({
k: e.k,
- label: Rl(e.k),
+ label: Ll(e.k),
n: e.n,
- selected: nDe(i.tag, e.k)
+ selected: iDe(i.tag, e.k)
})), Te = [
u.length,
!_,
@@ -67413,14 +67426,14 @@ function Cke(e) {
creator: "",
studio: "",
owner: ""
- }, AX), Ne = "", Pe = !1;
+ }, kX), Ne = "", Pe = !1;
if (w === "people") Ne = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;
else if (w === "online") Pe = T.busy, Ne = `在线 · ${(T.total ?? r.follow?.n ?? 0).toLocaleString()} 项更新`;
else if (w === "videos") {
Pe = !A.data;
- let e = NX(i.tag).length;
+ let e = MX(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()} 张` : Ske(oe, zX(oe).length) : Pe = ae.isPending;
+ } else oe && !oe.error ? Ne = De ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : wke(oe, RX(oe).length) : Pe = ae.isPending;
let Fe = (0, F.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -67437,7 +67450,7 @@ function Cke(e) {
u
]);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(cke, {
+ /* @__PURE__ */ (0, I.jsx)(uke, {
kind: t,
name: n,
entity: r,
@@ -67447,7 +67460,7 @@ function Cke(e) {
actions: be,
helpers: xe
}, D),
- (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Gbe, {
+ (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(qbe, {
kind: t,
name: n,
view: w,
@@ -67464,9 +67477,9 @@ function Cke(e) {
actions: Se,
helpers: Ce
}), c.filter),
- (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Mbe, {
+ (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Pbe, {
enabled: w === "videos",
- children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(hOe, {
+ children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(_Oe, {
view: T.view,
media: T.media,
result: T.result,
@@ -67480,16 +67493,16 @@ function Cke(e) {
actions: e.follow.actions,
canLoadMore: e.canLoadMore,
clearFilters: T.clearFilters
- }) : w === "videos" && A.isError ? /* @__PURE__ */ (0, I.jsx)(FG, {
+ }) : w === "videos" && A.isError ? /* @__PURE__ */ (0, I.jsx)(PG, {
message: lr(A.error),
onRetry: () => {
A.refetch();
}
- }) : je ? /* @__PURE__ */ (0, I.jsx)(wke, {
+ }) : je ? /* @__PURE__ */ (0, I.jsx)(Eke, {
filtered: Ae,
onShowAll: Me,
onOnline: g ? () => Se.setView("online") : void 0
- }) : /* @__PURE__ */ (0, I.jsx)(FDe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(LDe, {
kind: t,
name: n,
view: w,
@@ -67522,9 +67535,9 @@ function Cke(e) {
}), c.body)
] });
}
-function wke({ filtered: e, onShowAll: t, onOnline: n }) {
- return e ? /* @__PURE__ */ (0, I.jsx)(cV, {
- icon: uV("search"),
+function Eke({ filtered: e, onShowAll: t, onOnline: n }) {
+ return e ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ icon: lV("search"),
title: "没有符合条件的视频",
actions: /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
@@ -67532,14 +67545,14 @@ function wke({ filtered: e, onShowAll: t, onOnline: n }) {
children: "清除筛选"
}),
children: "清除筛选后查看名下全部视频。"
- }) : /* @__PURE__ */ (0, I.jsx)(cV, {
- icon: uV("film"),
+ }) : /* @__PURE__ */ (0, I.jsx)(sV, {
+ icon: lV("film"),
title: "还没有视频",
actions: n ? /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
onClick: n,
children: "查看在线作品"
- }) : /* @__PURE__ */ (0, I.jsx)(gL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(hL, {
size: "small",
href: "/",
children: "浏览馆藏"
@@ -67548,30 +67561,30 @@ function wke({ filtered: e, onShowAll: t, onOnline: n }) {
});
}
// src/react/diagnostics/diagnostics.ts
-var TQ = ["diagnostics"], EQ = (e) => B("/api/diagnostics", e);
-async function Tke(e) {
+var wQ = ["diagnostics"], TQ = (e) => B("/api/diagnostics", e);
+async function Dke(e) {
await H.fetchQuery({
- queryKey: TQ,
- queryFn: () => EQ(e),
+ queryKey: wQ,
+ queryFn: () => TQ(e),
staleTime: 1e4
});
}
// src/react/feed-new/feed-new-page.tsx
-function Eke({ host: e, revision: t, helpers: n, actions: r }) {
- let i = Ft(DX(null, n.feedRowHtml)), a = (0, F.useRef)(t);
+function Oke({ host: e, revision: t, helpers: n, actions: r }) {
+ let i = Ft(EX(null, n.feedRowHtml)), a = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
- a.current !== t && (a.current = t, H.invalidateQueries({ queryKey: EX(null) }));
- }, [t]), (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(lQ, {
+ a.current !== t && (a.current = t, H.invalidateQueries({ queryKey: TX(null) }));
+ }, [t]), (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(cQ, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
- act: OX,
+ act: DX,
settled: r.settled
}), e);
}
// src/react/index/index-search.tsx
-var Dke = uV("search");
-function DQ({ label: e, value: t, onQuery: n }) {
+var kke = lV("search");
+function EQ({ 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)(() => {
clearTimeout(o.current), i(t);
@@ -67588,27 +67601,27 @@ function DQ({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, I.jsx)(tV, {
+ children: /* @__PURE__ */ (0, I.jsx)(eV, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, I.jsx)(rV, {
+ children: /* @__PURE__ */ (0, I.jsx)(nV, {
type: "search",
- leadingIcon: Dke,
+ leadingIcon: kke,
spellCheck: !1,
autoComplete: "off",
enterKeyHint: "search",
onKeyDown: (e) => {
- e.key !== "Enter" || a.current || QU(e.nativeEvent) || (e.preventDefault(), clearTimeout(o.current), n(r.trim()));
+ e.key !== "Enter" || a.current || ZU(e.nativeEvent) || (e.preventDefault(), clearTimeout(o.current), n(r.trim()));
}
})
})
});
}
// src/react/index/tag-pagination.ts
-function OQ(e) {
+function DQ(e) {
let [t, n] = (0, F.useState)({
filter: e,
pageIndex: 0,
@@ -67625,7 +67638,7 @@ function OQ(e) {
}), [e])
};
}
-function kQ(e, t, n) {
+function OQ(e, t, n) {
let { pageIndex: r, pageSize: i } = t;
(0, F.useEffect)(() => {
if (e === void 0) return;
@@ -67642,11 +67655,11 @@ function kQ(e, t, n) {
]);
}
// src/react/index/index-tags.tsx
-var AQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var kQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
-}), jQ = uV("pencil"), MQ = (e, t) => ({
+}), AQ = lV("pencil"), jQ = (e, t) => ({
kind: "tag",
name: e.k,
favorite: e.favorite,
@@ -67655,7 +67668,7 @@ var AQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
tag_id: e.id || e.k
} : { entity_id: e.entity_id }
});
-function Oke({ tag: e, actions: t }) {
+function Ake({ 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",
@@ -67664,13 +67677,13 @@ function Oke({ tag: e, actions: t }) {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": $X(t.online, e.cat),
+ "data-tag-cat": QX(t.online, e.cat),
"aria-pressed": n,
title: e.label,
onClick: () => t.press(e.k),
className: "flex h-9 min-w-0 flex-1 cursor-pointer items-center gap-2.25 rounded-lg px-2.5 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: [
- /* @__PURE__ */ (0, I.jsx)(AQ, {}),
+ /* @__PURE__ */ (0, I.jsx)(kQ, {}),
/* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -67681,32 +67694,32 @@ function Oke({ tag: e, actions: t }) {
})
]
}),
- t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(wV, { item: MQ(e, t.online) }),
- t.edit ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(CV, { item: jQ(e, t.online) }),
+ t.edit ? /* @__PURE__ */ (0, I.jsx)(SV, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, I.jsx)(jQ, {})
+ children: /* @__PURE__ */ (0, I.jsx)(AQ, {})
}) : null
]
});
}
-function NQ({ groups: e, actions: t }) {
+function MQ({ groups: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-alphabet": "",
className: "flex flex-col gap-4",
children: e.map(([e, n], r) => /* @__PURE__ */ (0, I.jsxs)("section", {
"data-alpha-group": r,
- className: bU({
+ className: yU({
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)(pW, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, I.jsx)(fW, { 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)(Oke, {
+ children: n.map((e) => /* @__PURE__ */ (0, I.jsx)(Ake, {
tag: e,
actions: t
}, e.k))
@@ -67714,26 +67727,26 @@ function NQ({ groups: e, actions: t }) {
}, e))
});
}
-var kke = "\xA0";
-function PQ({ tags: e, actions: t }) {
+var jke = "\xA0";
+function NQ({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("span", {
"data-tag-token": "",
- "data-tag-cat": $X(t.online, e.cat),
+ "data-tag-cat": QX(t.online, e.cat),
className: "inline-flex max-w-full min-w-0 items-center gap-1 rounded-lg border p-1",
children: [/* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": $X(t.online, e.cat),
+ "data-tag-cat": QX(t.online, e.cat),
"aria-pressed": t.picked.has(e.k),
onClick: () => t.press(e.k),
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 + kke
+ children: e.label + jke
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
@@ -67742,16 +67755,16 @@ function PQ({ 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)(wV, { item: MQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(CV, {
+ children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(CV, { item: jQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(SV, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, I.jsx)(jQ, {})
+ children: /* @__PURE__ */ (0, I.jsx)(AQ, {})
}) : null]
}) : null]
}, e.k))
});
}
-var Ake = [[
+var Mke = [[
"cloud",
"标签云",
"tags"
@@ -67760,34 +67773,34 @@ var Ake = [[
"字母表",
"text-aa"
]];
-function FQ({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
- let d = sL();
- return /* @__PURE__ */ (0, I.jsx)(lL, {
+function PQ({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
+ let d = oL();
+ return /* @__PURE__ */ (0, I.jsx)(cL, {
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)(uL, {
+ children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(lL, {
"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)(uL, {
+ }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, I.jsx)(lL, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !!l.blocked,
onPress: l.onBlocked,
children: "已屏蔽内容"
}) : null]
- }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(uL, {
+ }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(lL, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : $X(n, e),
+ "data-tag-cat": e === "all" ? "all" : QX(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, I.jsx)(AQ, {}), r]
+ children: [/* @__PURE__ */ (0, I.jsx)(kQ, {}), r]
}, e))] }),
bottom: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -67808,19 +67821,19 @@ function FQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, I.jsx)(kz, {
+ /* @__PURE__ */ (0, I.jsx)(Oz, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${rU}`,
- children: Ake.map(([e, t, n]) => {
- let r = uV(n);
- return /* @__PURE__ */ (0, I.jsx)(Az, {
+ className: `ml-auto ${nU}`,
+ children: Mke.map(([e, t, n]) => {
+ let r = lV(n);
+ return /* @__PURE__ */ (0, I.jsx)(kz, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: iU,
+ className: rU,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -67832,13 +67845,13 @@ function FQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
] })
});
}
-function jke({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, I.jsxs)(yj, {
+function Nke({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, I.jsxs)(vj, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e.toLocaleString()} 个标签`,
children: [
- /* @__PURE__ */ (0, I.jsx)(IV, {
+ /* @__PURE__ */ (0, I.jsx)(FV, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -67869,74 +67882,74 @@ function jke({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
});
}
// src/react/toaster.tsx
-var IQ = (e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
+var FQ = (e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), LQ = null, RQ = { "--floating-radius": "var(--radius-2xl)" }, zQ = (e) => `max(${e}px, var(--selection-dock-space, 0px), var(--miniplayer-space, 0px))`;
-function BQ() {
- let e = LQ;
- LQ = null, e?.root.unmount();
-}
-var VQ = (e, t) => {
- if (LQ?.host === e) return;
- BQ();
+}), IQ = null, LQ = { "--floating-radius": "var(--radius-2xl)" }, RQ = (e) => `max(${e}px, var(--selection-dock-space, 0px), var(--miniplayer-space, 0px))`;
+function zQ() {
+ let e = IQ;
+ IQ = null, e?.root.unmount();
+}
+var BQ = (e, t) => {
+ if (IQ?.host === e) return;
+ zQ();
let n = (0, zt.createRoot)(e);
- LQ = {
+ IQ = {
host: e,
root: n
- }, n.render(/* @__PURE__ */ (0, I.jsxs)(zV, { children: [/* @__PURE__ */ (0, I.jsx)(qV, {
+ }, n.render(/* @__PURE__ */ (0, I.jsxs)(RV, { children: [/* @__PURE__ */ (0, I.jsx)(KV, {
id: "receipts",
position: "bottom-right",
closeButton: !0,
gap: 8,
style: {
- ...RQ,
+ ...LQ,
"--width": "min(560px, calc(100vw - 48px))"
},
offset: {
right: 24,
- bottom: `calc(${zQ(24)} + var(--processing-toast-space, 0px))`
+ bottom: `calc(${RQ(24)} + var(--processing-toast-space, 0px))`
},
mobileOffset: {
right: 16,
left: 16,
- bottom: `calc(${zQ(16)} + var(--processing-toast-space, 0px))`
+ bottom: `calc(${RQ(16)} + var(--processing-toast-space, 0px))`
},
toastOptions: { closeButtonAriaLabel: "关闭提示" },
containerAriaLabel: "通知",
icons: {
- success: IQ(t.success, !0),
- error: IQ(t.error, !1)
+ success: FQ(t.success, !0),
+ error: FQ(t.error, !1)
}
- }), /* @__PURE__ */ (0, I.jsx)(qV, {
+ }), /* @__PURE__ */ (0, I.jsx)(KV, {
id: "processing",
position: "bottom-right",
gap: 8,
expand: !0,
style: {
- ...RQ,
+ ...LQ,
"--width": "min(400px, calc(100vw - 32px))"
},
offset: {
right: 24,
- bottom: zQ(24)
+ bottom: RQ(24)
},
mobileOffset: {
right: 16,
left: 16,
- bottom: zQ(16)
+ bottom: RQ(16)
},
toastOptions: { closeButtonAriaLabel: "关闭任务提示" },
containerAriaLabel: "后台任务"
})] }));
-}, Mke = 6e3, HQ = (e, t) => {
+}, Pke = 6e3, VQ = (e, t) => {
if (!String(t.html ?? "").trim()) return;
- let n = t.alert ? HV.error : HV.success, r = t.action;
+ let n = t.alert ? VV.error : VV.success, r = t.action;
n(/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
toasterId: "receipts",
- duration: t.timeout > 0 ? t.timeout : Mke,
+ duration: t.timeout > 0 ? t.timeout : Pke,
action: r ? {
label: r.label,
onClick: (e) => {
@@ -67944,7 +67957,7 @@ var VQ = (e, t) => {
}
} : void 0
});
-}, UQ = (e) => e.id ?? e.entity_id, WQ = {
+}, HQ = (e) => e.id ?? e.entity_id, UQ = {
rename: "重命名标签",
merge: "合并标签",
hide: "隐藏标签",
@@ -67952,26 +67965,26 @@ var VQ = (e, t) => {
repair: "整理重复标签",
block: "屏蔽内容",
unblock: "恢复内容"
-}, GQ = (e, t) => V("/api/tag-management/preview", e, "POST", t);
-async function KQ(e, t, n) {
+}, WQ = (e, t) => V("/api/tag-management/preview", e, "POST", t);
+async function GQ(e, t, n) {
if (n?.aborted) return !1;
let r = t.tags.map((e) => `「${e.k}」`).join("、"), i = e.operation === "merge" || e.operation === "repair" ? `合并 ${t.tags.length} 个标签,涉及 ${t.assets} 个资源,重叠关联 ${t.overlap} 个。旧名称保留为别名。此操作无法直接撤销。` : e.operation === "rename" ? `${r}将更名为「${t.name || e.name}」,涉及 ${t.assets} 个资源。旧名称保留为别名。` : e.operation === "block" ? `屏蔽带有${r}任一标签的内容及其其它版本,涉及 ${t.assets} 个资源。可在「已屏蔽内容」中恢复。` : e.operation === "unblock" ? `解除${r}的内容屏蔽,涉及 ${t.assets} 个资源。` : `${e.operation === "hide" ? "隐藏" : "恢复"} ${t.tags.length} 个标签,涉及 ${t.assets} 个资源。${e.operation === "hide" ? "可在“已隐藏”中恢复。" : ""}`;
- return !(await ul({
- title: WQ[e.operation],
+ return !(await ll({
+ title: UQ[e.operation],
body: i,
- confirmLabel: WQ[e.operation],
+ confirmLabel: UQ[e.operation],
onConfirm: () => V("/api/tag-management", {
...e,
token: t.token
}, "POST", n)
- })).confirmed || n?.aborted ? !1 : (await H.invalidateQueries(), HQ(`tag-management-${Date.now()}`, {
- html: `已${WQ[e.operation]}`,
+ })).confirmed || n?.aborted ? !1 : (await H.invalidateQueries(), VQ(`tag-management-${Date.now()}`, {
+ html: `已${UQ[e.operation]}`,
alert: !1,
timeout: 6e3,
action: null
}), !0);
}
-function qQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {
+function KQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {
let a = (0, F.useRef)({
operation: e,
selected: t,
@@ -67980,24 +67993,24 @@ function qQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
scope: i
}), o = (0, F.useRef)({
name: t[0]?.k || "",
- target_id: t[0] ? UQ(t[0]) : 0
+ target_id: t[0] ? HQ(t[0]) : 0
}), [s, c] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
- let e = new AbortController(), t = a.current, n = cl({
- title: WQ[t.operation],
+ let e = new AbortController(), t = a.current, n = sl({
+ title: UQ[t.operation],
confirmLabel: "预览影响范围",
confirmDisabled: !0,
body: "<div class=\"peach-react\" data-tag-editor-fields></div>",
onConfirm: async () => {
let n = {
operation: t.operation,
- ids: t.selected.map(UQ),
+ ids: t.selected.map(HQ),
...t.scope === "online" ? { scope: t.scope } : {},
...t.operation === "rename" ? { name: o.current.name.trim() } : { target_id: o.current.target_id }
};
return {
command: n,
- plan: await GQ(n, e.signal)
+ plan: await WQ(n, e.signal)
};
}
});
@@ -68008,14 +68021,14 @@ function qQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
if (!e.signal.aborted) {
if (n.confirmed) {
let r = n.result;
- await KQ(r.command, r.plan, e.signal) && t.done();
+ await GQ(r.command, r.plan, e.signal) && t.done();
}
e.signal.aborted || t.close();
}
}), () => {
e.abort(), n.close();
};
- }, []), s ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Nke, {
+ }, []), s ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Fke, {
operation: a.current.operation,
selected: a.current.selected,
dialog: s.dialog,
@@ -68024,8 +68037,8 @@ function qQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
}
}), s.host) : null;
}
-function Nke({ operation: e, selected: t, dialog: n, update: r }) {
- let [i, a] = (0, F.useState)(t[0]?.k || ""), [o, s] = (0, F.useState)(t[0] ? UQ(t[0]) : 0);
+function Fke({ operation: e, selected: t, dialog: n, update: r }) {
+ let [i, a] = (0, F.useState)(t[0]?.k || ""), [o, s] = (0, F.useState)(t[0] ? HQ(t[0]) : 0);
return (0, F.useEffect)(() => {
r({
name: i,
@@ -68038,28 +68051,28 @@ function Nke({ operation: e, selected: t, dialog: n, update: r }) {
e,
t,
r
- ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(iV, {
+ ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(rV, {
autoFocus: !0,
"aria-label": "标签名称",
value: i,
onChange: a,
maxLength: 80
- }) : /* @__PURE__ */ (0, I.jsx)(LJ, {
+ }) : /* @__PURE__ */ (0, I.jsx)(IJ, {
"aria-label": "保留的标签",
prefix: "保留",
selectedKey: String(o),
onSelectionChange: (e) => {
- let n = t.find((t) => String(UQ(t)) === String(e));
- n && s(UQ(n));
+ let n = t.find((t) => String(HQ(t)) === String(e));
+ n && s(HQ(n));
},
- children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(VU, {
- id: String(UQ(e)),
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(BU, {
+ id: String(HQ(e)),
children: e.k
- }, UQ(e)))
+ }, HQ(e)))
});
}
// src/react/index/tag-manager.tsx
-function JQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r, onView: i, onJump: a, scope: o = "local" }) {
+function qQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r, onView: i, onJump: a, scope: o = "local" }) {
let s = o === "online", c = (0, F.useRef)(null), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(t), [p, m] = (0, F.useState)(n), h = r ? t : d, g = i ? n : p, _ = e ?? l, [v, y] = (0, F.useState)(!1), [b, x] = (0, F.useState)(!1), S = JSON.stringify([
o,
_,
@@ -68067,7 +68080,7 @@ function JQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
g,
v,
b
- ]), { pagination: C, onChange: w } = OQ(S), T = new URLSearchParams({
+ ]), { pagination: C, onChange: w } = DQ(S), T = new URLSearchParams({
limit: String(C.pageSize),
offset: String(C.pageIndex * C.pageSize),
q: _,
@@ -68084,25 +68097,25 @@ function JQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
],
queryFn: ({ signal: e }) => B(`/api/tag-management?${T}`, e)
});
- kQ(E.data?.total, C, w);
+ OQ(E.data?.total, C, w);
let [D, O] = (0, F.useState)(/* @__PURE__ */ new Map());
(0, F.useEffect)(() => {
O(/* @__PURE__ */ new Map());
}, [S]);
- let k = new Set(D.keys()), [A, j] = (0, F.useState)(null), M = fH(), ee = E.data?.items || [], N = ee, te = (s ? WX : UX).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 = dH(), ee = E.data?.items || [], N = ee, te = (s ? UX : HX).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" ? eZ(P, (e) => e) : [], re = [...D.values()], ie = (e) => {
+ })), ne = g === "alphabet" ? $X(P, (e) => e) : [], re = [...D.values()], ie = (e) => {
M.run(e.operation, async (t) => {
let n = s ? {
...e,
scope: o
} : e;
- return KQ(n, await GQ(n, t), t);
+ return GQ(n, await WQ(n, t), t);
}, (e) => {
e && O(/* @__PURE__ */ new Map());
});
- }, ae = re.map(UQ), oe = {
+ }, ae = re.map(HQ), oe = {
online: s,
favorites: s,
picked: k,
@@ -68123,13 +68136,13 @@ function JQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
children: [
e === void 0 ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mb-4 flex",
- children: /* @__PURE__ */ (0, I.jsx)(DQ, {
+ children: /* @__PURE__ */ (0, I.jsx)(EQ, {
label: "过滤标签",
value: l,
onQuery: u
})
}) : null,
- /* @__PURE__ */ (0, I.jsx)(FQ, {
+ /* @__PURE__ */ (0, I.jsx)(PQ, {
categories: te,
category: h,
online: s,
@@ -68157,7 +68170,7 @@ function JQ({ 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)(dL, {
+ E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, I.jsx)(uL, {
busy: M.busy === "repair",
onPress: () => ie({
operation: "repair",
@@ -68165,20 +68178,20 @@ function JQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}),
children: "整理重复标签"
}) : null,
- N.length ? /* @__PURE__ */ (0, I.jsx)(dL, {
+ N.length ? /* @__PURE__ */ (0, I.jsx)(uL, {
onPress: () => O((e) => new Map([...e, ...N.map((e) => [e.k, e])])),
children: "选择本页"
}) : null,
- k.size ? /* @__PURE__ */ (0, I.jsx)(dL, {
+ k.size ? /* @__PURE__ */ (0, I.jsx)(uL, {
onPress: () => O(/* @__PURE__ */ new Map()),
children: "清空选择"
}) : null
] })
}),
- E.isPending ? /* @__PURE__ */ (0, I.jsx)("div", { dangerouslySetInnerHTML: { __html: ic({
+ E.isPending ? /* @__PURE__ */ (0, I.jsx)("div", { dangerouslySetInnerHTML: { __html: rc({
mode: g,
pageSize: C.pageSize
- }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -68186,33 +68199,33 @@ function JQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
children: "立即重试"
}),
children: "无法读取标签"
- }) : N.length ? g === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(NQ, {
+ }) : N.length ? g === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(MQ, {
groups: ne,
actions: oe
- }) : /* @__PURE__ */ (0, I.jsx)(PQ, {
+ }) : /* @__PURE__ */ (0, I.jsx)(NQ, {
tags: P,
actions: oe
- }) : /* @__PURE__ */ (0, I.jsx)(sV, {
+ }) : /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
children: "没有符合条件的标签。"
}),
E.data ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mt-5",
- children: /* @__PURE__ */ (0, I.jsx)(BJ, {
+ children: /* @__PURE__ */ (0, I.jsx)(zJ, {
label: "标签管理",
total: E.data.total,
pagination: C,
onChange: w,
unit: "个标签",
pageUnit: "个",
- pageSizes: rc
+ pageSizes: nc
})
}) : null,
- M.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ M.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: M.error
}) : null,
- /* @__PURE__ */ (0, I.jsxs)(yj, {
+ /* @__PURE__ */ (0, I.jsxs)(vj, {
label: "标签管理操作",
count: `已选 ${k.size} 个标签`,
visible: k.size > 0,
@@ -68234,7 +68247,7 @@ function JQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
/* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- ...fV(!!M.busy),
+ ...dV(!!M.busy),
onClick: () => ie({
operation: v ? "restore" : "hide",
ids: ae
@@ -68244,7 +68257,7 @@ function JQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
s ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- ...fV(!!M.busy),
+ ...dV(!!M.busy),
onClick: () => ie({
operation: b ? "unblock" : "block",
ids: ae
@@ -68253,7 +68266,7 @@ function JQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}) : null
]
}),
- A ? /* @__PURE__ */ (0, I.jsx)(qQ, {
+ A ? /* @__PURE__ */ (0, I.jsx)(KQ, {
operation: A,
selected: re,
scope: o,
@@ -68264,7 +68277,7 @@ function JQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
});
}
// src/react/index/index-page.tsx
-var Pke = [
+var Ike = [
{
value: "studios",
label: "厂牌",
@@ -68280,7 +68293,7 @@ var Pke = [
label: "系列",
symbol: "list"
}
-], Fke = [{
+], Lke = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -68288,7 +68301,7 @@ var Pke = [
value: "online",
label: "在线",
symbol: "rss"
-}], Ike = [
+}], Rke = [
{
value: "performers",
label: "艺人",
@@ -68304,7 +68317,7 @@ var Pke = [
label: "在线",
symbol: "rss"
}
-], Lke = {
+], zke = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -68333,20 +68346,20 @@ var Pke = [
"layout-grid"
]]
};
-function Rke({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, I.jsx)(eU, {
- "aria-label": `${HX[e]}索引版式`,
+function Bke({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, I.jsx)($H, {
+ "aria-label": `${VX[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none ${tU}`,
- children: Lke[e === "series" ? "series" : qX(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = uV(n);
- return /* @__PURE__ */ (0, I.jsx)(Az, {
+ className: `flex-none ${eU}`,
+ children: zke[e === "series" ? "series" : KX(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = lV(n);
+ return /* @__PURE__ */ (0, I.jsx)(kz, {
value: e,
"aria-label": t,
- className: Vve,
+ className: Uve,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -68356,8 +68369,8 @@ function Rke({ kind: e, layout: t, onChange: n }) {
})
});
}
-function zke(e) {
- let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => JX({
+function Vke(e) {
+ let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => qX({
kind: e.kind,
q: e.q,
scope: e.scope,
@@ -68370,8 +68383,8 @@ function zke(e) {
e.view,
e.category
]), [o, s] = (0, F.useState)(a);
- a !== o && (s(a), i(JX(e)));
- let [c, l] = (0, F.useState)(e.layout), [u, d] = (0, F.useState)(/* @__PURE__ */ new Set()), [f, p] = (0, F.useState)("any"), m = (0, F.useRef)(null), { kind: h, q: g, scope: _, view: v, category: y } = r, b = HX[h], x = h === "tags" && _ === "online", S = h === "performers" && _ === "online";
+ a !== o && (s(a), i(qX(e)));
+ let [c, l] = (0, F.useState)(e.layout), [u, d] = (0, F.useState)(/* @__PURE__ */ new Set()), [f, p] = (0, F.useState)("any"), m = (0, F.useRef)(null), { kind: h, q: g, scope: _, view: v, category: y } = r, b = VX[h], x = h === "tags" && _ === "online", S = h === "performers" && _ === "online";
(0, F.useEffect)(() => {
if (r.kind === e.kind && r.scope === e.scope && r.category === e.category) return;
let t = !0;
@@ -68390,7 +68403,7 @@ function zke(e) {
...t
};
i(o), e.route(o, { replace: a });
- }, { pagination: w, onChange: T } = OQ(JSON.stringify(r)), E = QX(YX(r), w.pageSize), D = Lt({
+ }, { pagination: w, onChange: T } = DQ(JSON.stringify(r)), E = ZX(JX(r), w.pageSize), D = Lt({
queryKey: h === "tags" && (w.pageIndex || w.pageSize !== 100) ? [
...E.queryKey,
"page",
@@ -68405,23 +68418,23 @@ function zke(e) {
getNextPageParam: h === "tags" ? () => void 0 : E.getNextPageParam,
enabled: !(t && h === "tags"),
placeholderData: ke
- }), O = _De(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;
+ }), O = yDe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;
(0, F.useEffect)(() => {
- ym(() => window.location.pathname === `/${h}` && !!m.current?.isConnected, m.current?.querySelector("[data-index-body]"), { pending: k });
+ vm(() => window.location.pathname === `/${h}` && !!m.current?.isConnected, m.current?.querySelector("[data-index-body]"), { pending: k });
}, [
D.data,
D.isPending,
D.isPlaceholderData,
r
- ]), kQ(h === "tags" && !D.isPlaceholderData ? j : void 0, w, T);
- let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : vDe(O.length, !!D.hasNextPage), ee = `${h}:${_}:${g}`, N = (0, F.useRef)(null), te = D.data?.pages[0]?.categories;
+ ]), OQ(h === "tags" && !D.isPlaceholderData ? j : void 0, w, T);
+ let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : bDe(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
});
let P = te ?? (N.current?.key === ee ? N.current.counts : void 0), ne = D.isPending && !P, re = ([e]) => e === "all" || ne || Number(P?.[e] || 0) > 0;
(0, F.useLayoutEffect)(() => {
- m.current && El(m.current);
+ m.current && Tl(m.current);
}, [c]);
let ie = (0, F.useMemo)(() => h === "tags" ? O.map((t) => ({
...t,
@@ -68430,15 +68443,15 @@ function zke(e) {
O,
h,
x
- ]), ae = (0, F.useMemo)(() => h === "tags" && v === "alphabet" ? eZ(ie, (t) => x ? t : e.tagLabel(t)) : [], [
+ ]), ae = (0, F.useMemo)(() => h === "tags" && v === "alphabet" ? $X(ie, (t) => x ? t : e.tagLabel(t)) : [], [
ie,
v,
h,
x
]), oe = (t) => {
l(t), e.savePreference({ layout: t });
- }, se = h === "tags" ? /* @__PURE__ */ (0, I.jsx)(mW, {
- tabs: Fke,
+ }, se = h === "tags" ? /* @__PURE__ */ (0, I.jsx)(pW, {
+ tabs: Lke,
value: _,
label: "词表",
onChange: (e) => {
@@ -68448,8 +68461,8 @@ function zke(e) {
view: e === "online" ? "alphabet" : v
});
}
- }) : qX(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(mW, {
- tabs: Pke,
+ }) : KX(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(pW, {
+ tabs: Ike,
value: h,
label: "资料类型",
onChange: (e) => C({ kind: e })
@@ -68458,7 +68471,7 @@ function zke(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
}) : ie.find((e) => e.k === t)?.entity_id ? e.openEntity("tag", t) : e.showTags([t], "all");
- }, le = (x ? WX : UX).filter(re);
+ }, le = (x ? UX : HX).filter(re);
return /* @__PURE__ */ (0, I.jsxs)("div", {
ref: m,
"data-index-page": h,
@@ -68473,10 +68486,10 @@ function zke(e) {
className: "flex flex-none items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: b
}),
- KX(h) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ GX(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)(nL, {
+ children: /* @__PURE__ */ (0, I.jsx)(tL, {
text: k ? void 0 : D.isError ? "" : M,
busy: k,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -68485,18 +68498,18 @@ function zke(e) {
})
})
}) : null,
- KX(h) ? /* @__PURE__ */ (0, I.jsx)(Rke, {
+ GX(h) ? /* @__PURE__ */ (0, I.jsx)(Bke, {
kind: h,
layout: c,
onChange: oe
}) : null,
- /* @__PURE__ */ (0, I.jsx)(TV, { kind: h === "tags" ? "tag" : h === "series" ? "series" : h === "studios" ? "studio" : h === "agencies" ? "agency" : h === "creators" ? "creator" : "performer" }),
+ /* @__PURE__ */ (0, I.jsx)(wV, { kind: h === "tags" ? "tag" : h === "series" ? "series" : h === "studios" ? "studio" : h === "agencies" ? "agency" : h === "creators" ? "creator" : "performer" }),
h === "tags" ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: t ? "primary" : "ghost",
iconOnly: !0,
className: "flex-none",
"data-tag-mode": "",
- leadingIcon: uV("pencil"),
+ leadingIcon: lV("pencil"),
"aria-label": t ? "返回标签浏览" : "管理标签",
title: t ? "返回标签浏览" : "管理标签",
"aria-pressed": t,
@@ -68504,7 +68517,7 @@ function zke(e) {
e.exitSelectMode(), d(/* @__PURE__ */ new Set()), n(!t);
}
}) : null,
- /* @__PURE__ */ (0, I.jsx)(DQ, {
+ /* @__PURE__ */ (0, I.jsx)(EQ, {
label: `过滤${b}`,
value: g,
onQuery: (e) => {
@@ -68513,8 +68526,8 @@ function zke(e) {
})
]
}),
- h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(mW, {
- tabs: Ike,
+ h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(pW, {
+ tabs: Rke,
value: S ? "online" : h,
label: "人物名册",
onChange: (t) => {
@@ -68526,7 +68539,7 @@ function zke(e) {
}
}) : null,
se,
- t && h === "tags" ? /* @__PURE__ */ (0, I.jsx)(JQ, {
+ t && h === "tags" ? /* @__PURE__ */ (0, I.jsx)(qQ, {
scope: _,
search: g,
category: y,
@@ -68540,8 +68553,8 @@ function zke(e) {
}, _) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
h === "performers" && _ === "local" ? /* @__PURE__ */ (0, I.jsx)("div", {
"aria-label": "身份分类",
- className: VX,
- children: BX.filter((e) => e[0] === y || re(e)).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Y, {
+ className: BX,
+ children: zX.filter((e) => e[0] === y || re(e)).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Y, {
variant: y === e ? "primary" : "secondary",
size: "small",
"aria-pressed": y === e,
@@ -68549,7 +68562,7 @@ function zke(e) {
children: t
}, e))
}) : null,
- h === "tags" ? /* @__PURE__ */ (0, I.jsx)(FQ, {
+ h === "tags" ? /* @__PURE__ */ (0, I.jsx)(PQ, {
categories: le,
category: y,
online: x,
@@ -68565,20 +68578,20 @@ function zke(e) {
}) : null,
/* @__PURE__ */ (0, I.jsx)("div", {
"data-index-body": "",
- children: /* @__PURE__ */ (0, I.jsx)(IG, {
+ children: /* @__PURE__ */ (0, I.jsx)(FG, {
pending: k,
- skeletonHtml: () => h === "tags" ? ic({
+ skeletonHtml: () => h === "tags" ? rc({
mode: v,
pageSize: w.pageSize
- }) : sc({
+ }) : oc({
kind: h,
layout: c,
mode: v
}),
children: (() => {
if (k) return null;
- if (D.isError) return /* @__PURE__ */ (0, I.jsx)(cV, {
- icon: uV("alert"),
+ if (D.isError) return /* @__PURE__ */ (0, I.jsx)(sV, {
+ icon: lV("alert"),
title: `没能读取${b}`,
actions: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -68587,7 +68600,7 @@ function zke(e) {
}),
children: xn(D.error)
});
- if (!O.length) return /* @__PURE__ */ (0, I.jsx)(Vke, {
+ if (!O.length) return /* @__PURE__ */ (0, I.jsx)(Uke, {
kind: h,
filtered: !!g || y !== "all",
online: x || S,
@@ -68596,12 +68609,12 @@ function zke(e) {
category: "all"
})
});
- if (S) return /* @__PURE__ */ (0, I.jsx)(CDe, {
+ if (S) return /* @__PURE__ */ (0, I.jsx)(TDe, {
items: O,
layout: c,
props: e
});
- if (KX(h)) return /* @__PURE__ */ (0, I.jsx)(rZ, {
+ if (GX(h)) return /* @__PURE__ */ (0, I.jsx)(nZ, {
kind: h,
items: O,
layout: c,
@@ -68612,10 +68625,10 @@ function zke(e) {
picked: u,
press: ce
};
- return v === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(NQ, {
+ return v === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(MQ, {
groups: ae,
actions: t
- }) : /* @__PURE__ */ (0, I.jsx)(PQ, {
+ }) : /* @__PURE__ */ (0, I.jsx)(NQ, {
tags: ie,
actions: t
});
@@ -68624,14 +68637,14 @@ function zke(e) {
}),
h === "tags" && !k && !D.isError ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mt-5",
- children: /* @__PURE__ */ (0, I.jsx)(BJ, {
+ children: /* @__PURE__ */ (0, I.jsx)(zJ, {
label: "标签",
total: j ?? O.length,
pagination: w,
onChange: T,
unit: "个标签",
pageUnit: "个",
- pageSizes: rc
+ pageSizes: nc
})
}) : null,
A ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -68645,11 +68658,11 @@ function zke(e) {
onClick: () => void D.fetchNextPage(),
children: [D.isFetchingNextPage ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: Vs("正在载入下一批") }
+ dangerouslySetInnerHTML: { __html: Bs("正在载入下一批") }
}) : null, "载入更多"]
})
}) : null,
- h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(jke, {
+ h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(Nke, {
count: u.size,
match: f,
onMatch: p,
@@ -68663,7 +68676,7 @@ function zke(e) {
]
});
}
-var Bke = {
+var Hke = {
tags: "标签",
performers: "艺人",
creators: "卖家",
@@ -68671,9 +68684,9 @@ var Bke = {
agencies: "事务所",
series: "系列"
};
-function Vke({ kind: e, filtered: t, online: n, onClear: r }) {
- if (t) return /* @__PURE__ */ (0, I.jsx)(cV, {
- icon: uV("search"),
+function Uke({ kind: e, filtered: t, online: n, onClear: r }) {
+ if (t) return /* @__PURE__ */ (0, I.jsx)(sV, {
+ icon: lV("search"),
title: "没有符合条件的内容",
actions: /* @__PURE__ */ (0, I.jsx)(Y, {
size: "small",
@@ -68682,16 +68695,16 @@ function Vke({ kind: e, filtered: t, online: n, onClear: r }) {
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : Bke[e], a = /* @__PURE__ */ (0, I.jsx)(gL, {
+ let i = n && e === "performers" ? "创作者" : Hke[e], a = /* @__PURE__ */ (0, I.jsx)(hL, {
size: "small",
variant: n ? "primary" : "secondary",
href: "/subscriptions?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, I.jsx)(cV, {
- icon: uV(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, I.jsx)(sV, {
+ icon: lV(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
- actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(gL, {
+ actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(hL, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -68699,15 +68712,15 @@ function Vke({ kind: e, filtered: t, online: n, onClear: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var YQ = {
+var JQ = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, Hke = (e) => YQ[e.junk_kind || "other"] || YQ.other;
-function Uke(e) {
+}, Wke = (e) => JQ[e.junk_kind || "other"] || JQ.other;
+function Gke(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -68718,40 +68731,40 @@ function Uke(e) {
glyph: "check"
};
}
-var XQ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), Wke = (e, t) => [
+var YQ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), Kke = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function Gke({ kind: e, view: t }) {
+function qke({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function Kke(e, t) {
- let n = await B(`/api/ads?${Gke(e)}`, t);
+async function Jke(e, t) {
+ let n = await B(`/api/ads?${qke(e)}`, t);
return {
...n,
items: n.items || []
};
}
// src/react/junk-queue/junk-card.tsx
-function ZQ({ name: e }) {
+function XQ({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-var QQ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function qke({ 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 = Uke(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]") || QQ(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
+var ZQ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
+function Yke({ 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] = Wke(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]") || ZQ(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));
}, y = (t) => {
- t.stopPropagation(), QQ(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
+ t.stopPropagation(), ZQ(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
}, b = (t) => {
t.preventDefault(), t.stopPropagation(), s !== "reveal" && (c("reveal"), u(""), a.reveal(e).then(u, () => {}).finally(() => c("")));
}, x = (t) => (n) => {
@@ -68782,7 +68795,7 @@ function qke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"data-junk-kind": d,
"data-selected": n ? "" : void 0,
onClick: v,
- onMouseDown: nK,
+ onMouseDown: tK,
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
@@ -68790,7 +68803,7 @@ function qke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
children: [
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, I.jsx)(ZQ, { name: p }), /* @__PURE__ */ (0, I.jsx)("b", { children: f })]
+ children: [/* @__PURE__ */ (0, I.jsx)(XQ, { name: p }), /* @__PURE__ */ (0, I.jsx)("b", { children: f })]
}),
g ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-art": "thumb",
@@ -68802,7 +68815,7 @@ function qke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(ZQ, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(XQ, { name: "check" })
})
]
}),
@@ -68838,8 +68851,8 @@ function qke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
onClick: b,
children: [s === "reveal" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-spinner": "",
- dangerouslySetInnerHTML: { __html: Vs("正在定位") }
- }) : /* @__PURE__ */ (0, I.jsx)(ZQ, { name: "folder-open" }), /* @__PURE__ */ (0, I.jsx)("span", {
+ dangerouslySetInnerHTML: { __html: Bs("正在定位") }
+ }) : /* @__PURE__ */ (0, I.jsx)(XQ, { name: "folder-open" }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -68851,7 +68864,7 @@ function qke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": h.label,
...S(h.operation),
onClick: x(h.operation),
- children: [/* @__PURE__ */ (0, I.jsx)(ZQ, { name: h.glyph }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(XQ, { name: h.glyph }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: h.label
})]
@@ -68863,7 +68876,7 @@ function qke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"aria-label": "移入回收站",
...S("dispose"),
onClick: x("dispose"),
- children: [/* @__PURE__ */ (0, I.jsx)(ZQ, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(XQ, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -68878,9 +68891,9 @@ function qke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var Jke = (0, F.memo)(qke);
+var Xke = (0, F.memo)(Yke);
// src/react/components/collection-summary.tsx
-function $Q({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+function QQ({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-collection-summary": "",
className: `${i ? "" : "mb-5 "}flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5
@@ -68906,31 +68919,31 @@ function $Q({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
});
}
// src/react/junk-queue/junk-count.tsx
-function e$({ name: e }) {
+function $Q({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function t$({ scope: e, count: t }) {
+function e$({ scope: e, count: t }) {
return t ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [" ", /* @__PURE__ */ (0, I.jsx)("span", {
"data-count-badge": `junk:${e}`,
children: t.toLocaleString()
})] }) : null;
}
-function Yke({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = LV(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = mL(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? NU.map(([e]) => XQ(t, e)).join(",") : ""}`), l = IU(s), u = (e) => {
+function Zke({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = IV(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = pL(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? MU.map(([e]) => YQ(t, e)).join(",") : ""}`), l = FU(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") || FU()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || PU()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-junk-count": "",
children: [/* @__PURE__ */ (0, I.jsx)("div", {
"data-junk-summary": "",
"aria-live": "polite",
- children: /* @__PURE__ */ (0, I.jsx)($Q, {
- label: LU(s),
+ children: /* @__PURE__ */ (0, I.jsx)(QQ, {
+ label: IU(s),
figure: d,
pending: !t && !n,
flush: !0
@@ -68950,17 +68963,17 @@ function Yke({ route: e, page: t, failed: n, onNavigate: r }) {
onClick: u,
onPointerLeave: c.leave,
children: [
- NU.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {
- href: FU(e, s),
+ MU.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {
+ href: PU(e, s),
"data-junk-kind-link": e,
"aria-current": e === o ? "page" : void 0,
onPointerEnter: c.hover,
children: [
- /* @__PURE__ */ (0, I.jsx)(e$, { name: r }),
+ /* @__PURE__ */ (0, I.jsx)($Q, { name: r }),
n,
- /* @__PURE__ */ (0, I.jsx)(t$, {
+ /* @__PURE__ */ (0, I.jsx)(e$, {
scope: e,
- count: t ? XQ(t, e) : 0
+ count: t ? YQ(t, e) : 0
})
]
}, e || "all")),
@@ -68974,9 +68987,9 @@ function Yke({ route: e, page: t, failed: n, onNavigate: r }) {
"aria-current": s === "dismissed" ? "page" : void 0,
onPointerEnter: s === "dismissed" ? void 0 : c.hover,
children: [
- /* @__PURE__ */ (0, I.jsx)(e$, { name: l.glyph }),
+ /* @__PURE__ */ (0, I.jsx)($Q, { name: l.glyph }),
l.label,
- /* @__PURE__ */ (0, I.jsx)(t$, {
+ /* @__PURE__ */ (0, I.jsx)(e$, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -68988,33 +69001,33 @@ function Yke({ route: e, page: t, failed: n, onNavigate: r }) {
});
}
// src/react/junk-queue/junk-queue-page.tsx
-var Xke = uV("check"), Zke = (e, t) => e[1] === t.view && e[2] === t.kind;
-function Qke(e) {
+var Qke = lV("check"), $ke = (e, t) => e[1] === t.view && e[2] === t.kind;
+function eAe(e) {
let t = {
kind: e.kind,
view: e.view
}, n = Ft({
- queryKey: Wke(t, e.revision),
- queryFn: ({ signal: e }) => Kke(t, e),
- placeholderData: (e, n) => n && Zke(n.queryKey, t) ? e : void 0
+ queryKey: Kke(t, e.revision),
+ queryFn: ({ signal: e }) => Jke(t, e),
+ placeholderData: (e, n) => n && $ke(n.queryKey, t) ? e : void 0
});
(0, F.useEffect)(() => {
n.isFetching || e.settled?.(e.revision);
}, [n.isFetching, e.revision]);
- let r = $ke(e.countRow), i = n.isPending;
+ let r = tAe(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 && tc(r, "junk");
+ r && n.data && ec(r, "junk");
}, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Yke, {
+ let { navigate: a } = e.actions, o = r ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Zke, {
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)(eAe, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [o, /* @__PURE__ */ (0, I.jsx)(nAe, {
props: e,
data: n.data,
pending: i,
@@ -69022,7 +69035,7 @@ function Qke(e) {
retry: () => void n.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function $ke(e) {
+function tAe(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!e) return;
@@ -69032,8 +69045,8 @@ function $ke(e) {
};
}, [e]), t;
}
-function eAe({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = dxe(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 nAe({ props: e, data: t, pending: n, error: r, retry: i }) {
+ let a = pxe(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", {
@@ -69041,16 +69054,16 @@ function eAe({ props: e, data: t, pending: n, error: r, retry: i }) {
"data-grid-reveal": a.fading ? "" : void 0,
children: [a.layer, (() => {
if (n) return null;
- if (!t) return /* @__PURE__ */ (0, I.jsx)(FG, {
+ if (!t) return /* @__PURE__ */ (0, I.jsx)(PG, {
message: xn(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, I.jsx)(cV, {
- icon: Xke,
+ return /* @__PURE__ */ (0, I.jsx)(sV, {
+ icon: Qke,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
- actions: t ? /* @__PURE__ */ (0, I.jsx)(gL, {
+ actions: t ? /* @__PURE__ */ (0, I.jsx)(hL, {
size: "small",
href: "/junk-files",
children: "查看待判断"
@@ -69063,7 +69076,7 @@ function eAe({ 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)(Jke, {
+ children: u.map((t) => /* @__PURE__ */ (0, I.jsx)(Xke, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -69072,7 +69085,7 @@ function eAe({ props: e, data: t, pending: n, error: r, retry: i }) {
actions: e.actions
}, t.id))
}),
- u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(tAe, { onMore: f }, s) : null,
+ u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(rAe, { 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",
@@ -69082,39 +69095,39 @@ function eAe({ props: e, data: t, pending: n, error: r, retry: i }) {
})()]
});
}
-function tAe({ onMore: e }) {
+function rAe({ onMore: e }) {
let t = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
let n = t.current;
if (!n || typeof IntersectionObserver > "u") return;
let r = new IntersectionObserver((t) => {
t.some((e) => e.isIntersecting) && e();
- }, { rootMargin: PG });
+ }, { rootMargin: NG });
return r.observe(n), () => r.disconnect();
}, [e]), /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
"data-load-more": "",
onClick: e,
- dangerouslySetInnerHTML: { __html: Us(Hs) }
+ dangerouslySetInnerHTML: { __html: Hs(Vs) }
});
}
// src/react/components/fieldset-layout.ts
-var nAe = bU({
+var iAe = yU({
padding: "none",
className: "overflow-hidden"
-}), n$ = {
+}), t$ = {
split: "min-w-0 p-6",
stack: "flex min-h-30 min-w-0 flex-1 flex-col px-5 pt-5 pb-4 max-cleanup-tight:min-h-0 max-cleanup-tight:p-4.5"
-}, r$ = {
+}, n$ = {
split: "flex flex-wrap items-center justify-end gap-2 self-stretch p-6 max-[1001px]:justify-start max-[1001px]:pt-0",
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 i$(e) {
- return `${nAe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
+function r$(e) {
+ return `${iAe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
}
// src/react/data-cleanup/cleanup-entry.ts
-var a$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", o$ = {
- face: bU({
+var i$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", a$ = {
+ face: yU({
padding: "none",
radius: "plain",
interactive: !0,
@@ -69126,34 +69139,34 @@ var a$ = "inline-grid w-full grid-cols-2 gap-3 max-cleanup-tight:grid-cols-1", o
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"
-}, rAe = [
+}, aAe = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], iAe = [
+], oAe = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function aAe(e = {}) {
- return `${bU({
+function sAe(e = {}) {
+ return `${yU({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var oAe = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", sAe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function s$({ interactive: e = !1 } = {}) {
- return bU({
+var cAe = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", lAe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+function o$({ interactive: e = !1 } = {}) {
+ return yU({
padding: "none",
radius: "plain",
interactive: e,
className: "flex min-h-33 flex-col gap-2 p-4 text-left"
});
}
-var c$ = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function cAe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+var s$ = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
+function uAe({ 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",
@@ -69186,13 +69199,13 @@ function cAe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMet
})
] });
}
-function lAe({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function dAe({ 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 ${rAe[n % 4]} ${iAe[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${aAe[n % 4]} ${oAe[n % 4]}`,
children: /* @__PURE__ */ (0, I.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -69213,96 +69226,96 @@ function lAe({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
] });
}
// src/management.ts
-var l$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", u$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", d$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", f$ = "disabled data-skeleton-action", uAe = "aria-disabled=\"true\"", p$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, m$ = (e, t, n) => `<div class="${n$[n]}"><div class="flex flex-col gap-2">
+var c$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", l$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", u$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", d$ = "disabled data-skeleton-action", fAe = "aria-disabled=\"true\"", f$ = (e) => `<div class="peach-react"><div class="flex flex-col gap-4">${e}</div></div>`, p$ = (e, t, n) => `<div class="${t$[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 dAe() {
- return p$(`<section aria-label="扫描与采集" class="${i$("stack")}" data-cleanup-task data-cleanup-processing>
- ${m$("扫描与采集", l$, "stack")}
- <footer class="${r$.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>${Es("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${ks({
+function pAe() {
+ return f$(`<section aria-label="扫描与采集" class="${r$("stack")}" data-cleanup-task data-cleanup-processing>
+ ${p$("扫描与采集", c$, "stack")}
+ <footer class="${n$.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({
label: "同步新增文件",
- attrs: f$
- })}${ks({
+ attrs: d$
+ })}${Os({
glyph: "chevron-down",
- attrs: `${f$} aria-label="更多同步方式"`
+ attrs: `${d$} aria-label="更多同步方式"`
})}</span></footer>
</section>`);
}
-function fAe() {
- return p$(`<section aria-label="媒体修复" class="${i$("split")}" data-cleanup-task data-cleanup-processing>
- ${m$("媒体修复", u$, "split")}
- <footer class="${r$.split}">${js(d$, {
+function mAe() {
+ return f$(`<section aria-label="媒体修复" class="${r$("split")}" data-cleanup-task data-cleanup-processing>
+ ${p$("媒体修复", l$, "split")}
+ <footer class="${n$.split}">${As(u$, {
className: "w-48",
- attrs: uAe
- })}${ks({
+ attrs: fAe
+ })}${Os({
label: "开始修复",
- attrs: f$
+ attrs: d$
})}</footer>
</section>`);
}
-function pAe() {
- let e = (e, t, n, r = "") => `<div class="${o$.face}"><span class="${o$.icon}">${Es(t, "size-5")}</span><span class="${o$.body}"><span class="${o$.title}">${e}</span><span class="${o$.summary}">${n}</span>${r ? `<span class="${o$.detail}">${r}</span>` : ""}</span>${Es("chevron-right", o$.arrow)}</div>`, t = (e, t) => `<div class="${s$()}"><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">${Es(t, "size-4")}</i><span>${e}</span></span><strong class="block text-title-1-medium tabular-nums text-text-primary">${d$}</strong><span class="block min-h-4 text-caption-1-regular text-text-tertiary">${d$}</span></div>`, n = (e) => `<h2 class="text-title-2-medium! m-0! text-text-primary">${e}</h2>`, r = (t) => Xf.filter((e) => e.key === "batch-delete" === t).map((t) => e(t.title, t.icon, t.description)).join("");
+function hAe() {
+ let e = (e, t, n, r = "") => `<div class="${a$.face}"><span class="${a$.icon}">${Ts(t, "size-5")}</span><span class="${a$.body}"><span class="${a$.title}">${e}</span><span class="${a$.summary}">${n}</span>${r ? `<span class="${a$.detail}">${r}</span>` : ""}</span>${Ts("chevron-right", a$.arrow)}</div>`, t = (e, t) => `<div class="${o$()}"><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">${u$}</strong><span class="block min-h-4 text-caption-1-regular text-text-tertiary">${u$}</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="${c$}">${[
+ <section class="flex flex-col gap-4">${n("待处理事项")}<div class="${s$}">${[
["人工复核", "square-check-big"],
["重复文件", "file-stack"],
["垃圾文件", "file-archive"],
["高清版", "sparkles"],
["回收站", "trash"]
].map(([e, n]) => t(e, n)).join("")}</div></section>
- <div id="libraryProcessing" class="scroll-mt-20">${dAe()}</div>
- <section class="flex flex-col gap-4">${n("整理与维护")}<div class="${a$}">${r(!1)}</div></section>
- <section class="flex flex-col gap-4">${n("清理与删除")}<div class="${a$}">${r(!0)}</div></section>
+ <div id="libraryProcessing" class="scroll-mt-20">${pAe()}</div>
+ <section class="flex flex-col gap-4">${n("整理与维护")}<div class="${i$}">${r(!1)}</div></section>
+ <section class="flex flex-col gap-4">${n("清理与删除")}<div class="${i$}">${r(!0)}</div></section>
</div></div>`;
}
// src/react/components/fieldset.tsx
-var mAe = bU({
+var gAe = yU({
padding: "none",
radius: "surface",
className: "overflow-hidden"
-}), hAe = "border-t border-border-button-default p-4 first:border-t-0";
-function gAe({ id: e, children: t }) {
+}), _Ae = "border-t border-border-button-default p-4 first:border-t-0";
+function vAe({ id: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
children: t
});
}
-function h$({ id: e, gap: t = "none", children: n }) {
+function m$({ id: e, gap: t = "none", children: n }) {
return /* @__PURE__ */ (0, I.jsx)("h3", {
id: e,
className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,
children: n
});
}
-function g$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function h$({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
return /* @__PURE__ */ (0, I.jsxs)("section", {
id: r,
"aria-label": t,
"aria-labelledby": n,
...o,
- className: i$(e),
+ className: r$(e),
children: [/* @__PURE__ */ (0, I.jsx)("div", {
- className: n$[e],
+ className: t$[e],
children: a
}), i ? /* @__PURE__ */ (0, I.jsx)("footer", {
- className: r$[e],
+ className: n$[e],
children: i
}) : null]
});
}
// src/react/components/name-link.tsx
-function _$({ className: e, ...t }) {
+function g$({ className: e, ...t }) {
return /* @__PURE__ */ (0, I.jsx)("a", {
...t,
className: J("text-body-2-medium underline-offset-4 hover:underline", e)
});
}
// src/react/components/issue-row.tsx
-function v$({ title: e, href: t, children: n }) {
+function _$({ title: e, href: t, children: n }) {
return /* @__PURE__ */ (0, I.jsxs)("li", {
className: "flex min-w-0 flex-col gap-1 border-b border-current/15 py-2 pr-6 wrap-anywhere first:pt-0 last:border-b-0 last:pb-0",
- children: [t ? /* @__PURE__ */ (0, I.jsx)(_$, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(g$, {
href: t,
children: e
}) : /* @__PURE__ */ (0, I.jsx)("span", {
@@ -69312,23 +69325,23 @@ function v$({ title: e, href: t, children: n }) {
});
}
// src/react/components/status-label.tsx
-var _Ae = {
+var yAe = {
success: "lime",
progress: "blue",
warning: "yellow",
error: "rose",
neutral: "neutral"
};
-function y$({ tone: e = "neutral", ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(UU, {
+function v$({ tone: e = "neutral", ...t }) {
+ return /* @__PURE__ */ (0, I.jsx)(HU, {
"data-status-tone": e,
variant: "caption",
- color: _Ae[e],
+ color: yAe[e],
...t
});
}
// src/react/components/path-line.tsx
-function vAe({ className: e }) {
+function bAe({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -69341,8 +69354,8 @@ function vAe({ className: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-folder-open" })
});
}
-var yAe = "打开文件管理器失败,请重试";
-function b$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
+var xAe = "打开文件管理器失败,请重试";
+function y$({ 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)(() => () => {
l.current = !1;
@@ -69353,7 +69366,7 @@ function b$({ 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 : yAe);
+ l.current && c(e instanceof sr ? e.message : xAe);
} finally {
l.current && o(!1);
}
@@ -69368,12 +69381,12 @@ function b$({ 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)(iL, {
- icon: vAe,
+ children: [/* @__PURE__ */ (0, I.jsx)(rL, {
+ icon: bAe,
size: "small",
"aria-label": "在资源管理器中显示",
onClick: () => void u(),
- ...fV(a)
+ ...dV(a)
}), r]
})]
}), s ? /* @__PURE__ */ (0, I.jsx)("p", {
@@ -69383,7 +69396,7 @@ function b$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
});
}
// src/react/library-processing/issue-export.ts
-async function bAe(e, t) {
+async function SAe(e, t) {
if (!e.job_id) throw Error("请先选择有问题记录的任务");
let n = [], r = 1, i = "";
for (let a = 0; a < r; a += 200) {
@@ -69406,69 +69419,69 @@ async function bAe(e, t) {
rows: n
}, null, 2);
}
-function xAe(e, t) {
+function CAe(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 SAe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", CAe = (e) => {
+var wAe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", TAe = (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(",")}。`;
-}, wAe = (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} 部视频预览。` : "") + CAe(e);
-function TAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = rve(e), o = fH(), s = fH(), [c, l] = (0, F.useState)(""), u = QV(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = eve(e.notes || {}), p = !!t || !e.archived && e.status === "failed", m = !t && !e.archived && $V(e), h = p || !e.archived && !u && (!!f || !!e.issue_count), g = !u && !!e.job_id && !e.archived, _ = e.issues_log || "", v = XV(e), y = LV(), b = (t) => void s.run(t ? "archive" : "unarchive", (n) => V(JV, {
+}, EAe = (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} 部视频预览。` : "") + TAe(e);
+function DAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = ave(e), o = dH(), s = dH(), [c, l] = (0, F.useState)(""), u = ZV(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = nve(e.notes || {}), p = !!t || !e.archived && e.status === "failed", m = !t && !e.archived && QV(e), h = p || !e.archived && !u && (!!f || !!e.issue_count), g = !u && !!e.job_id && !e.archived, _ = e.issues_log || "", v = YV(e), y = IV(), 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(YV, n), l(t ? e.job_id : "");
+ H.setQueryData(JV, n), l(t ? e.job_id : "");
}), x = e.issue_count && !u ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- ...fV(!!o.busy),
- onClick: () => void o.run("export", (t) => bAe(e, t), (t) => {
- xAe(e.job_id, t), i("已导出问题清单");
+ ...dV(!!o.busy),
+ onClick: () => void o.run("export", (t) => SAe(e, t), (t) => {
+ CAe(e.job_id, t), i("已导出问题清单");
}),
children: "导出完整问题清单"
}) : null, S = p ? [
t || e.error || "处理未完成,请重试",
- m ? eH : "",
+ m ? $V : "",
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)(ove, {
+ v ? /* @__PURE__ */ (0, I.jsx)(cve, {
state: e,
slow: v
- }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "warning",
title: "处理较慢",
- children: SAe
+ children: wAe
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "success",
title: "处理完成",
- children: wAe(n)
+ children: EAe(n)
}) : null,
- (n ?? e).status === "cancelled" && !e.archived ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ (n ?? e).status === "cancelled" && !e.archived ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
title: "已取消上次任务",
children: "已取得的资料和预览已保留,这一轮不会自动继续,需要时重新同步。"
}) : null,
- h ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ h ? /* @__PURE__ */ (0, I.jsx)(oV, {
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)(dH, {
- href: tH,
+ m ? /* @__PURE__ */ (0, I.jsx)(uH, {
+ href: eH,
size: "small",
- trailingIcon: gB,
+ trailingIcon: hB,
children: "查看全部内容"
}) : null,
d ? /* @__PURE__ */ (0, I.jsx)(Y, {
@@ -69482,7 +69495,7 @@ function TAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
variant: "secondary",
size: "small",
"aria-label": "归档提示",
- ...fV(!!s.busy),
+ ...dV(!!s.busy),
onClick: () => b(!0),
children: "归档"
}) : null
@@ -69490,7 +69503,7 @@ function TAe({ 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)(IH, {
+ children: /* @__PURE__ */ (0, I.jsx)(FH, {
summary: a.label,
contentClassName: "gap-0",
children: /* @__PURE__ */ (0, I.jsx)("div", {
@@ -69498,7 +69511,7 @@ function TAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
children: /* @__PURE__ */ (0, I.jsx)("ul", {
ref: y,
className: "max-h-96 overflow-y-auto",
- children: a.items.map((e) => /* @__PURE__ */ (0, I.jsxs)(v$, {
+ children: a.items.map((e) => /* @__PURE__ */ (0, I.jsxs)(_$, {
title: e.label,
href: e.href,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
@@ -69514,7 +69527,7 @@ function TAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}) : null, _ ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "-mx-3 mt-3 border-t border-current/20 px-3 pt-3 text-text-secondary",
- children: /* @__PURE__ */ (0, I.jsx)(b$, {
+ children: /* @__PURE__ */ (0, I.jsx)(y$, {
path: _,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -69527,70 +69540,70 @@ function TAe({ 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)(sV, {
+ e.archived && c === e.job_id && !t ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- ...fV(!!s.busy),
+ ...dV(!!s.busy),
onClick: () => b(!1),
children: "撤销"
}),
children: "已归档上一趟的问题提示,完整记录仍保留。"
}) : null,
- o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "warning",
children: o.error || s.error
}) : null
]
});
}
-function x$(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = CH(e), o = It({
- mutationFn: (e) => V(JV, e),
+function b$(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = SH(e), o = It({
+ mutationFn: (e) => V(qV, e),
onSuccess: (e) => {
- a(), H.setQueryData(YV, e), H.invalidateQueries({ queryKey: YV });
+ a(), H.setQueryData(JV, e), H.invalidateQueries({ queryKey: JV });
}
});
(0, F.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = QH(c), u = o.error ? lr(o.error) : r.isError ? r.data ? aH : lr(r.error) : "", d = o.isPending || QV(s), f = async (e) => {
+ let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = ZH(c), u = o.error ? lr(o.error) : r.isError ? r.data ? iH : lr(r.error) : "", d = o.isPending || ZV(s), f = async (e) => {
d || (o.reset(), await o.mutateAsync(e));
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, I.jsx)(g$, {
+ children: [/* @__PURE__ */ (0, I.jsx)(h$, {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(dH, {
+ /* @__PURE__ */ (0, I.jsx)(uH, {
href: "/sources",
size: "small",
- trailingIcon: gB,
+ trailingIcon: hB,
children: "来源和凭证"
}),
- /* @__PURE__ */ (0, I.jsx)(dH, {
+ /* @__PURE__ */ (0, I.jsx)(uH, {
href: "/settings/diagnostics",
size: "small",
- trailingIcon: gB,
+ trailingIcon: hB,
children: "诊断与日志"
}),
- s.candidates ? /* @__PURE__ */ (0, I.jsx)(dH, {
+ s.candidates ? /* @__PURE__ */ (0, I.jsx)(uH, {
href: "/review",
size: "small",
- trailingIcon: gB,
+ trailingIcon: hB,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(OK, {
+ /* @__PURE__ */ (0, I.jsx)(DK, {
scan: !0,
busy: o.isPending,
- occupied: QV(s),
+ occupied: ZV(s),
metadataOnly: s?.metadata_only,
speedMode: s.speed_mode,
pendingCount: s.new_asset_count,
onRun: f,
- onOccupied: () => t(Q_e(s))
+ onOccupied: () => t(eve(s))
})
] }),
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -69600,7 +69613,7 @@ function x$(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)(h$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, I.jsx)(UU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(m$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, I.jsx)(HU, {
variant: "caption",
color: "blue",
children: /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -69608,31 +69621,31 @@ function x$(e) {
children: [s.new_asset_count.toLocaleString(), " 部待补全"]
})
}) : null]
- }), l && (QV(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(Y, {
+ }), l && (ZV(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- onClick: () => ZH(c, !0),
+ onClick: () => XH(c, !0),
children: "显示进度浮窗"
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: l$
+ children: c$
}),
s.status === "paused" && !s.total ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, I.jsx)(y$, { children: "已暂停" })
- }) : QV(s) ? /* @__PURE__ */ (0, I.jsx)(mve, { state: s }) : null,
- QV(s) ? /* @__PURE__ */ (0, I.jsx)("p", {
+ children: /* @__PURE__ */ (0, I.jsx)(v$, { children: "已暂停" })
+ }) : ZV(s) ? /* @__PURE__ */ (0, I.jsx)(gve, { state: s }) : null,
+ ZV(s) ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary tabular-nums",
"data-processing-eta": "",
- children: nH(s)
+ children: tH(s)
}) : null,
- QV(s) ? /* @__PURE__ */ (0, I.jsx)(WH, { traffic: s.traffic }) : null,
- QV(s) ? /* @__PURE__ */ (0, I.jsx)(SH, { state: s }) : null
+ ZV(s) ? /* @__PURE__ */ (0, I.jsx)(UH, { traffic: s.traffic }) : null,
+ ZV(s) ? /* @__PURE__ */ (0, I.jsx)(xH, { state: s }) : null
]
})
- }), /* @__PURE__ */ (0, I.jsx)(TAe, {
+ }), /* @__PURE__ */ (0, I.jsx)(DAe, {
state: s,
problem: u,
settled: i,
@@ -69647,32 +69660,32 @@ function x$(e) {
});
}
// src/react/playlists/playlists.ts
-var EAe = "/api/playlists", S$ = "/api/playlist", C$ = ["playlists"], w$ = (e) => B(EAe, e);
-async function DAe(e) {
+var OAe = "/api/playlists", x$ = "/api/playlist", S$ = ["playlists"], C$ = (e) => B(OAe, e);
+async function kAe(e) {
await H.fetchQuery({
- queryKey: C$,
- queryFn: () => w$(e),
+ queryKey: S$,
+ queryFn: () => C$(e),
staleTime: 0
});
}
-var OAe = () => H.invalidateQueries({
- queryKey: C$,
+var AAe = () => H.invalidateQueries({
+ queryKey: S$,
exact: !0
-}), kAe = (e) => e.current_asset_id || e.preview_asset_id || null, AAe = (e) => `/poster?id=${e}&c=4`, jAe = (e) => V(S$, {
+}), jAe = (e) => e.current_asset_id || e.preview_asset_id || null, MAe = (e) => `/poster?id=${e}&c=4`, NAe = (e) => V(x$, {
action: "create",
name: e,
asset_ids: []
-}), MAe = (e, t) => V(S$, {
+}), PAe = (e, t) => V(x$, {
action: "rename",
id: e,
name: t
-}), NAe = (e) => V(S$, {
+}), FAe = (e) => V(x$, {
action: "delete",
id: e
-}), PAe = (e) => B(`${S$}?id=${e}`).catch(() => null);
-function FAe(e) {
+}), IAe = (e) => B(`${x$}?id=${e}`).catch(() => null);
+function LAe(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return V(S$, {
+ return V(x$, {
action: "create",
name: e.name,
asset_ids: t,
@@ -69681,9 +69694,13 @@ function FAe(e) {
});
}
// src/react/scraping/custom-source-data.ts
-var T$ = "/api/custom-metadata", E$ = ["custom-metadata"], D$ = (e) => B(T$, e), IAe = "/api/scraping", LAe = "/api/scraping/settings", RAe = "/api/scraping/check", O$ = "/api/scraping/check-all", k$ = "/api/scraping/cover", zAe = "/api/scraping/amane-bridge", BAe = "/api/scraping/amane-bridge/check", VAe = "/api/scraping/amane-bridge/rebuild", A$ = ["scraping"], j$ = ["scraping", "cover"], M$ = ["scraping", "check-all"], N$ = ["scraping", "amane-bridge"], HAe = 262144, P$ = (e) => B(IAe, e), F$ = (e) => B(k$, e), I$ = (e) => B(O$, e), L$ = (e) => B(zAe, e);
-async function UAe(e) {
+var w$ = "/api/custom-metadata", T$ = ["custom-metadata"], E$ = (e) => B(w$, e), RAe = "/api/scraping", zAe = "/api/scraping/settings", BAe = "/api/scraping/check", D$ = "/api/scraping/check-all", O$ = "/api/scraping/cover", VAe = "/api/scraping/amane-bridge", HAe = "/api/scraping/amane-bridge/check", UAe = "/api/scraping/amane-bridge/rebuild", k$ = ["scraping"], A$ = ["scraping", "cover"], j$ = ["scraping", "check-all"], M$ = ["scraping", "amane-bridge"], WAe = 262144, N$ = (e) => B(RAe, e), P$ = (e) => B(O$, e), F$ = (e) => B(D$, e), I$ = (e) => B(VAe, e);
+async function GAe(e) {
await Promise.all([
+ H.fetchQuery({
+ queryKey: k$,
+ queryFn: () => N$(e)
+ }),
H.fetchQuery({
queryKey: A$,
queryFn: () => P$(e)
@@ -69697,32 +69714,28 @@ async function UAe(e) {
queryFn: () => I$(e)
}),
H.fetchQuery({
- queryKey: N$,
- queryFn: () => L$(e)
- }),
- H.fetchQuery({
- queryKey: E$,
- queryFn: () => D$(e)
+ queryKey: T$,
+ queryFn: () => E$(e)
})
]);
}
-function WAe(e, t) {
+function KAe(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 R$ = /* @__PURE__ */ new Set([
+var L$ = /* @__PURE__ */ new Set([
"performer",
"creator",
"studio",
"agency",
"series"
-]), z$ = /* @__PURE__ */ new Set([
+]), R$ = /* @__PURE__ */ new Set([
"asset",
"jav",
"post",
"photo",
"release"
]);
-function B$(e) {
+function z$(e) {
let t = e.pool ?? [], n = Math.min(e.size ?? e.items.length, t.length);
if (t.length <= n) return e;
let r = ((e.offset ?? 0) + n) % t.length;
@@ -69732,15 +69745,15 @@ function B$(e) {
items: Array.from({ length: n }, (e, n) => t[(r + n) % t.length])
};
}
-var V$ = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function GAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
+var B$ = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
+function qAe({ 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,
index: c++
};
return l.push(t), t;
- }, d = t.filter((t) => !e || V$(t).includes(V$(e)));
+ }, d = t.filter((t) => !e || B$(t).includes(B$(e)));
if (!e) {
if (s.length) {
let e = ({ pending: e, pool: t, offset: n, size: r, ...i }) => ({
@@ -69751,9 +69764,9 @@ function GAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
kind: i.kind,
item: e
})),
- pending: e ? z$.has(i.kind) ? 5 : 3 : void 0,
+ pending: e ? R$.has(i.kind) ? 5 : 3 : void 0,
shuffle: (t?.length ?? 0) > i.items.length || void 0
- }), t = s.filter((e) => !z$.has(e.kind)).map(e);
+ }), t = s.filter((e) => !R$.has(e.kind)).map(e);
return d.length && t.push({
label: "搜索记录",
options: d.map((e) => u({
@@ -69764,7 +69777,7 @@ function GAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
tabs: null,
recent: null,
left: t,
- right: s.filter((e) => z$.has(e.kind)).map(e),
+ right: s.filter((e) => R$.has(e.kind)).map(e),
empty: !1,
options: l
};
@@ -69814,7 +69827,7 @@ function GAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: n,
more: r
};
- }, g = m.filter((e) => !z$.has(e.kind)).map(h), _ = m.filter((e) => z$.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);
+ }, g = m.filter((e) => !R$.has(e.kind)).map(h), _ = m.filter((e) => R$.has(e.kind)).map(h), v = f && !m.some((e) => e.items.length);
return {
tabs: f && a.length > 1 ? [...a] : null,
recent: p,
@@ -69824,16 +69837,16 @@ function GAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: l
};
}
-function KAe(e, t, n = Math.random) {
+function JAe(e, t, n = Math.random) {
let r = [...e];
for (let e = r.length - 1; e > 0; --e) {
let t = Math.floor(n() * (e + 1));
[r[e], r[t]] = [r[t], r[e]];
}
- return r.filter((e) => !t.some((t) => V$(t) === V$(e))).slice(0, 5);
+ return r.filter((e) => !t.some((t) => B$(t) === B$(e))).slice(0, 5);
}
// src/react/search/search-page.tsx
-var qAe = () => ({
+var YAe = () => ({
dismissed: !1,
history: [],
pool: [],
@@ -69859,7 +69872,7 @@ var qAe = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), H$ = (e) => GAe({
+}), V$ = (e) => qAe({
query: e.query,
history: e.history,
picks: e.picks,
@@ -69868,27 +69881,27 @@ var qAe = () => ({
tabs: e.tabs,
kind: e.kind,
recommendations: e.recommendations
-}), JAe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), U$ = 4e3, YAe = 5e3, W$ = 1200;
-function XAe(e) {
+}), XAe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), H$ = 4e3, ZAe = 5e3, U$ = 1200;
+function QAe(e) {
if (window.requestIdleCallback) {
- let t = window.requestIdleCallback(e, { timeout: U$ });
+ let t = window.requestIdleCallback(e, { timeout: H$ });
return () => window.cancelIdleCallback(t);
}
- let t = window.setTimeout(e, U$);
+ let t = window.setTimeout(e, H$);
return () => window.clearTimeout(t);
}
-var G$ = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
+var W$ = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
-function ZAe(e) {
+function $Ae(e) {
let t = (0, F.useRef)(e);
t.current = e;
let n = (0, F.useRef)(null);
- n.current ??= qAe();
+ n.current ??= YAe();
let r = n.current, i = (0, F.useRef)(null), [, a] = (0, F.useReducer)((e) => e + 1, 0), o = (0, F.useRef)(null);
- o.current ??= $Ae(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= tje(() => 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 = () => {
@@ -69899,7 +69912,7 @@ function ZAe(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, YAe);
+ let u = window.setInterval(s.rotatePlaceholder, ZAe);
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);
};
@@ -69907,7 +69920,7 @@ function ZAe(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 = H$(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(tje, {
+ let c = V$(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(rje, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -69916,7 +69929,7 @@ function ZAe(e) {
onRemove: s.remove
}, `${t.type}:${t.value}:${t.index}`), d = (e) => e.href ? /* @__PURE__ */ (0, I.jsx)("a", {
href: e.href,
- onMouseDown: J$,
+ onMouseDown: q$,
onClick: (t) => {
t.ctrlKey || t.metaKey || t.shiftKey || t.altKey || (t.preventDefault(), s.openPath(e.href));
},
@@ -69933,15 +69946,15 @@ function ZAe(e) {
"aria-label": `${e.label}换一批`,
title: "换一批",
"aria-busy": f(e.kind) || void 0,
- onMouseDown: J$,
+ onMouseDown: q$,
onClick: () => s.reshuffle(e.kind),
- children: /* @__PURE__ */ (0, I.jsx)(G$, { name: "shuffle" })
+ children: /* @__PURE__ */ (0, I.jsx)(W$, { name: "shuffle" })
}), d(e)]
}) : d(e)] }),
e.pending ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-search-items": "",
"aria-busy": "true",
- children: QAe(e)
+ children: eje(e)
}) : e.kind ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-search-items": "",
children: e.options.map(u)
@@ -69955,7 +69968,7 @@ function ZAe(e) {
"data-search-recommendations": !r.query && r.recommendations.length ? "" : void 0,
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, I.jsx)(eje, {
+ c.tabs ? /* @__PURE__ */ (0, I.jsx)(nje, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -69981,7 +69994,7 @@ function ZAe(e) {
]
});
}
-function K$(e, t) {
+function G$(e, t) {
let n = e.flatMap((e) => e.items.flatMap((e) => [
e.card ? t.coverHtml(e.card) : "",
e.avatarHtml || "",
@@ -69993,9 +70006,9 @@ function K$(e, t) {
t && (new Image().src = t);
}
}
-var q$ = "\xA0";
-function QAe(e) {
- let t = z$.has(e.kind ?? "");
+var K$ = "\xA0";
+function eje(e) {
+ let t = R$.has(e.kind ?? "");
return Array.from({ length: e.pending ?? 0 }, (e, n) => t ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-search-option": "work",
"data-search-placeholder": "",
@@ -70007,10 +70020,10 @@ function QAe(e) {
"data-search-meta": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-search-name": "",
- children: q$
+ children: K$
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-sub": "",
- children: q$
+ children: K$
})]
})]
}, n) : /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -70021,15 +70034,15 @@ function QAe(e) {
"data-search-meta": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-search-name": "",
- children: q$
+ children: K$
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-sub": "",
- children: q$
+ children: K$
})]
})]
}, n));
}
-function $Ae(e, t, n, r) {
+function tje(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 () => {
@@ -70040,7 +70053,7 @@ function $Ae(e, t, n, r) {
t.history = Array.isArray(e.items) ? e.items.map(String) : [];
} catch {}
}, l = (t) => {
- t && e().historyLimit && (s([t, ...o().filter((e) => V$(e) !== V$(t))]), V("/api/search-history", { query: t }).catch(() => null));
+ t && e().historyLimit && (s([t, ...o().filter((e) => B$(e) !== B$(t))]), V("/api/search-history", { query: t }).catch(() => null));
}, u = (n) => {
let r = i();
r.dataset.suggestion = n, t.cancelRoll();
@@ -70065,7 +70078,7 @@ function $Ae(e, t, n, r) {
t.recommendationLoading = !0;
let r = t.recommendationRequest;
n.recommendations().then(({ groups: n, words: o }) => {
- r === t.recommendationRequest && (t.words = o, !i().dataset.suggestion && !a() && o.length && u(o[Math.floor(Math.random() * o.length)]), t.recommendationsFilling ? (t.recommendations = n, t.recommendationsFilling = !1, K$(n.map(B$), e().helpers), a() && !i().value.trim() && x()) : (t.nextRecommendations = n, K$(n, e().helpers)));
+ r === t.recommendationRequest && (t.words = o, !i().dataset.suggestion && !a() && o.length && u(o[Math.floor(Math.random() * o.length)]), t.recommendationsFilling ? (t.recommendations = n, t.recommendationsFilling = !1, G$(n.map(z$), e().helpers), a() && !i().value.trim() && x()) : (t.nextRecommendations = n, G$(n, e().helpers)));
}, () => {
r === t.recommendationRequest && t.recommendationsFilling && (t.recommendations = [], t.recommendationsFilling = !1, a() && !i().value.trim() && x());
}).finally(() => {
@@ -70073,18 +70086,18 @@ function $Ae(e, t, n, r) {
});
}, m = () => {
let n = e().helpers;
- n.recommendations && (t.nextRecommendations && (t.recommendations = t.nextRecommendations, t.nextRecommendations = null, K$(t.recommendations.map(B$), n)), !t.recommendations.length && (t.recommendations = n.pendingRecommendations?.() ?? [], t.recommendationsFilling = !0, p()));
+ n.recommendations && (t.nextRecommendations && (t.recommendations = t.nextRecommendations, t.nextRecommendations = null, G$(t.recommendations.map(z$), n)), !t.recommendations.length && (t.recommendations = n.pendingRecommendations?.() ?? [], t.recommendationsFilling = !0, p()));
}, h = () => {
- t.cancelIdle(), t.cancelIdle = XAe(() => {
+ t.cancelIdle(), t.cancelIdle = QAe(() => {
t.nextRecommendations || p();
});
}, g = h, _ = (n) => {
- t.recommendations = t.recommendations.map((e) => e.kind === n ? B$(e) : e), t.shuffled = {
+ t.recommendations = t.recommendations.map((e) => e.kind === n ? z$(e) : e), t.shuffled = {
...t.shuffled,
- [n]: Date.now() + W$
- }, window.setTimeout(r, W$);
+ [n]: Date.now() + U$
+ }, window.setTimeout(r, U$);
let i = t.recommendations.find((e) => e.kind === n);
- i && K$([B$(i)], e().helpers), r();
+ i && G$([z$(i)], e().helpers), r();
}, v = async (e, n = "") => {
let r = ++t.suggestRequest;
n || (t.asked = e);
@@ -70111,9 +70124,9 @@ function $Ae(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 ? [] : KAe(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : JAe(t.pool, o()), t.active = -1;
let a = n();
- a && (JAe(H$(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (XAe(V$(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, S = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -70125,7 +70138,7 @@ function $Ae(e, t, n, r) {
n && e !== t.kind && (t.kind = e, clearTimeout(t.timer), x(), t.rewind = !0, v(n, e).then(() => {
a() && t.kind === e && x();
}));
- }, w = () => y() ? H$(t).options : [], T = (e) => {
+ }, w = () => y() ? V$(t).options : [], T = (e) => {
let n = w();
return n.length ? (t.active = (t.active + e + n.length) % n.length, t.reveal = !0, r(), !0) : !1;
}, E = (t, n) => {
@@ -70134,16 +70147,16 @@ function $Ae(e, t, n, r) {
}, D = (t, n) => {
i().blur(), l(n), e().actions.openEntity(t, n);
}, O = (t) => {
- t.type === "suggest" && t.item.followMedia && t.item.id && e().actions.openFollow ? (i().blur(), e().actions.openFollow(t.item.id, t.item.followMedia, t.item.mediaIndex ?? null)) : t.type === "suggest" && t.item.href ? k(t.item.href) : t.type === "more" ? (E(!1, !0), i().blur()) : t.type === "suggest" && t.kind === "asset" && t.item.id != null ? (i().blur(), e().actions.openItem(t.item.id)) : t.type === "suggest" && R$.has(t.kind) ? D(t.kind, t.value) : (i().value = t.value, E(!1, !0));
+ t.type === "suggest" && t.item.followMedia && t.item.id && e().actions.openFollow ? (i().blur(), e().actions.openFollow(t.item.id, t.item.followMedia, t.item.mediaIndex ?? null)) : t.type === "suggest" && t.item.href ? k(t.item.href) : t.type === "more" ? (E(!1, !0), i().blur()) : t.type === "suggest" && t.kind === "asset" && t.item.id != null ? (i().blur(), e().actions.openItem(t.item.id)) : t.type === "suggest" && L$.has(t.kind) ? D(t.kind, t.value) : (i().value = t.value, E(!1, !0));
}, k = (t) => {
b(), i().blur(), e().actions.openPath?.(t);
};
return {
input: (n) => {
- t.cancelRoll(), !QU(n) && (t.dismissed = !1, e().helpers.typed(i()), S());
+ t.cancelRoll(), !ZU(n) && (t.dismissed = !1, e().helpers.typed(i()), S());
},
key: (n) => {
- if (QU(n)) return;
+ if (ZU(n)) return;
let r = i();
if (n.key === "Escape") {
if (y()) {
@@ -70180,7 +70193,7 @@ function $Ae(e, t, n, r) {
await V("/api/search-history", {
operation: "remove",
query: e
- }).catch(() => null), s(o().filter((t) => V$(t) !== V$(e))), t.active = -1, r();
+ }).catch(() => null), s(o().filter((t) => B$(t) !== B$(e))), t.active = -1, r();
},
pickKind: C,
openPath: k,
@@ -70190,7 +70203,7 @@ function $Ae(e, t, n, r) {
rotatePlaceholder: d
};
}
-function eje({ tabs: e, kind: t, onPick: n, wire: r }) {
+function nje({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
r(i.current);
@@ -70204,9 +70217,9 @@ function eje({ 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)(pW, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, I.jsx)(fW, { value: i }) : null]
}, e || "all");
- return /* @__PURE__ */ (0, I.jsxs)(NI, {
+ return /* @__PURE__ */ (0, I.jsxs)(MI, {
ref: i,
"data-search-tabs": "",
"data-pill-nav": "",
@@ -70215,9 +70228,9 @@ function eje({ tabs: e, kind: t, onPick: n, wire: r }) {
children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]
});
}
-var J$ = (e) => e.preventDefault();
-function tje({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
- tL();
+var q$ = (e) => e.preventDefault();
+function rje({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+ eL();
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -70229,33 +70242,33 @@ function tje({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-search-option": "more",
...o,
- onMouseDown: J$,
+ onMouseDown: q$,
children: [
"查看全部 ",
e.total.toLocaleString(),
" 个视频",
- /* @__PURE__ */ (0, I.jsx)(G$, { name: "chevron-right" })
+ /* @__PURE__ */ (0, I.jsx)(W$, { name: "chevron-right" })
]
});
if (e.type !== "suggest") return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-search-option": "",
...o,
children: [
- /* @__PURE__ */ (0, I.jsx)(G$, { name: e.type === "history" ? "history" : "sparkles" }),
+ /* @__PURE__ */ (0, I.jsx)(W$, { name: e.type === "history" ? "history" : "sparkles" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: e.value }),
e.type === "history" ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-remove-history": e.value,
"aria-label": `删除历史 ${e.value}`,
- onMouseDown: J$,
+ onMouseDown: q$,
onClick: (t) => {
t.stopPropagation(), a(e.value);
},
- children: /* @__PURE__ */ (0, I.jsx)(G$, { name: "x" })
+ children: /* @__PURE__ */ (0, I.jsx)(W$, { name: "x" })
}) : null
]
});
- let { item: s, kind: c } = e, l = R$.has(c) ? c : void 0;
+ let { item: s, kind: c } = e, l = L$.has(c) ? c : void 0;
if ([
"asset",
"jav",
@@ -70269,8 +70282,8 @@ function tje({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "work",
"data-open-item": c === "asset" ? s.id : void 0,
...o,
- onMouseDown: J$,
- children: [/* @__PURE__ */ (0, I.jsx)(Y$, {
+ onMouseDown: q$,
+ children: [/* @__PURE__ */ (0, I.jsx)(J$, {
card: s.card,
helpers: n
}), /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -70299,9 +70312,9 @@ function tje({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-search-option": "person",
"data-open-entity": l,
...o,
- onMouseDown: J$,
+ onMouseDown: q$,
children: [
- /* @__PURE__ */ (0, I.jsx)(X$, {
+ /* @__PURE__ */ (0, I.jsx)(Y$, {
item: s,
kind: c
}),
@@ -70324,11 +70337,11 @@ function tje({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
type: "button",
"data-open-work": e.id,
"aria-label": `打开 ${e.code || s.value}`,
- onMouseDown: J$,
+ onMouseDown: q$,
onClick: (t) => {
t.stopPropagation(), i(e);
},
- children: /* @__PURE__ */ (0, I.jsx)(Y$, {
+ children: /* @__PURE__ */ (0, I.jsx)(J$, {
card: e,
helpers: n
})
@@ -70342,7 +70355,7 @@ function tje({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
"data-open-entity": l,
...o,
children: [
- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, I.jsx)(X$, {
+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, I.jsx)(Y$, {
item: s,
kind: c
}) : null,
@@ -70355,13 +70368,13 @@ function tje({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:
]
});
}
-function Y$({ card: e, helpers: t }) {
+function J$({ card: e, helpers: t }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-pic": "",
dangerouslySetInnerHTML: { __html: t.coverHtml(e) }
});
}
-function X$({ item: e, kind: t }) {
+function Y$({ item: e, kind: t }) {
if (e.avatarHtml) return /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-face": "",
dangerouslySetInnerHTML: { __html: e.avatarHtml }
@@ -70372,7 +70385,7 @@ function X$({ item: e, kind: t }) {
image_version: e.image_version,
avatar_focus: e.avatar_focus,
avatar_stand_in: e.avatar_stand_in
- }, r = vo(e.value, n, e.rep || null, t, e.mark || null, e.has_logo ? e.value : "", "icon", void 0, !0);
+ }, r = _o(e.value, n, e.rep || null, t, e.mark || null, e.has_logo ? e.value : "", "icon", void 0, !0);
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-search-face": "",
"data-kind": t,
@@ -70380,28 +70393,28 @@ function X$({ item: e, kind: t }) {
});
}
// src/react/settings/configuration.ts
-var Z$ = ["configuration"], Q$ = (e) => B(BY, e);
-async function nje(e) {
+var X$ = ["configuration"], Z$ = (e) => B(zY, e);
+async function ije(e) {
await H.fetchQuery({
- queryKey: Z$,
- queryFn: () => Q$(e)
+ queryKey: X$,
+ queryFn: () => Z$(e)
});
}
// src/react/settings-panel/legacy-controls.tsx
-var $$ = (e) => e.map(([e, t, n]) => n ? [
+var Q$ = (e) => e.map(([e, t, n]) => n ? [
e,
t,
n
] : [e, t]);
-function e1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
+function $$({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant: o, text: s = !1, epoch: c, onChoose: l }) {
let u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(l);
return f.current = l, (0, F.useLayoutEffect)(() => {
let e = u.current;
- e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = el(t, n, $$(r), i, {
+ e && (d.current && d.current.value === i && d.current.epoch === c || (e.innerHTML = $c(t, n, Q$(r), i, {
attr: a,
className: o,
text: s
- }), tl(e, a, (e) => {
+ }), el(e, a, (e) => {
d.current = {
value: e,
epoch: c
@@ -70415,18 +70428,18 @@ function e1({ id: e, name: t, legend: n, options: r, value: i, attr: a, variant:
ref: u
});
}
-function t1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
+function e1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a = !1, hidden: o, describedBy: s, epoch: c, onPick: l, decorate: u }) {
let d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(-1), m = (0, F.useRef)(l);
return m.current = l, (0, F.useLayoutEffect)(() => {
let e = d.current;
if (!e) return;
if (p.current !== c || !f.current) {
- e.innerHTML = hs($$(n), r, { label: t });
- let i = gs(e.firstElementChild);
+ e.innerHTML = ms(Q$(n), r, { label: t });
+ let i = hs(e.firstElementChild);
i.addEventListener("change", () => m.current(i.value)), f.current = i, p.current = c;
}
let o = f.current;
- o.value !== r && (o.value = r), o.disabled !== i && (o.disabled = i), o.getAttribute("aria-busy") === "true" !== a && Zc(o, a), u?.(o);
+ o.value !== r && (o.value = r), o.disabled !== i && (o.disabled = i), o.getAttribute("aria-busy") === "true" !== a && Xc(o, a), u?.(o);
}), /* @__PURE__ */ (0, I.jsx)("div", {
id: e,
ref: d,
@@ -70434,7 +70447,7 @@ function t1({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function rje({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function aje({ 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
@@ -70444,14 +70457,14 @@ function rje({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
onSettle: o
}, (0, F.useLayoutEffect)(() => {
let i = s.current;
- i && !c.current && (i.insertAdjacentHTML("beforeend", rl({
+ i && !c.current && (i.insertAdjacentHTML("beforeend", nl({
value: r,
min: 0,
max: n,
step: 1,
label: t,
attr: `data-glow-dial="${e}"`
- })), c.current = il(i.lastElementChild, {
+ })), c.current = rl(i.lastElementChild, {
onInput: (e) => l.current.onStep(e),
onChange: (e) => l.current.onSettle(e)
}));
@@ -70468,7 +70481,7 @@ function rje({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
});
}
// src/react/settings-panel/glow-settings.tsx
-var ije = [
+var oje = [
[
"strength",
"强度",
@@ -70495,8 +70508,8 @@ var ije = [
100
]
];
-function aje({ host: e, spot: t, index: n, glow: r }) {
- let i = _le[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = LV(), [l, u] = (0, F.useState)("all");
+function sje({ host: e, spot: t, index: n, glow: r }) {
+ let i = vle[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = IV(), [l, u] = (0, F.useState)("all");
(0, F.useLayoutEffect)(() => {
let [e, t, n] = [
a.current,
@@ -70505,11 +70518,11 @@ function aje({ host: e, spot: t, index: n, glow: r }) {
];
e && t && n && (t.addEventListener("click", () => {
n.style.width = `${t.offsetWidth}px`;
- }), ps(e, t, n));
+ }), fs(e, t, n));
}, []);
let d = r[t].color, f = (n) => {
let r = e.store.value.homeGlow;
- r[t].color = Gj(n, r[t].color), r.preset = "custom", e.store.save(), e.changed("glow"), ss(), o.current?.focus();
+ r[t].color = Wj(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,
@@ -70534,7 +70547,7 @@ function aje({ host: e, spot: t, index: n, glow: r }) {
children: d
})]
}),
- /* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-down" })
+ /* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "popmenu",
@@ -70546,7 +70559,7 @@ function aje({ host: e, spot: t, index: n, glow: r }) {
"data-glow-pills": "",
role: "group",
"aria-label": "色系",
- children: ble.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: xle.map(([e, t]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-pill": e,
"aria-pressed": e === l,
@@ -70560,7 +70573,7 @@ function aje({ host: e, spot: t, index: n, glow: r }) {
"data-glow-palette": "",
role: "radiogroup",
"aria-label": `${i}颜色`,
- children: xle.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Sle.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
role: "radio",
"aria-checked": n === d,
@@ -70577,8 +70590,8 @@ function aje({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function oje({ host: e }) {
- let t = e.store.value.homeGlow, n = Rj(t.preset);
+function cje({ host: e }) {
+ let t = e.store.value.homeGlow, n = Lj(t.preset);
return /* @__PURE__ */ (0, I.jsxs)("section", {
"data-glow-setting": "",
id: "homeGlowControls",
@@ -70597,10 +70610,10 @@ function oje({ host: e }) {
"data-glow-current": "",
children: ["当前配色", /* @__PURE__ */ (0, I.jsx)("b", {
"data-glow-preset-name": "",
- children: vle(t.preset)
+ children: yle(t.preset)
})]
}),
- /* @__PURE__ */ (0, I.jsx)(FM, {
+ /* @__PURE__ */ (0, I.jsx)(PM, {
store: e.store,
label: "光晕配色"
}),
@@ -70611,7 +70624,7 @@ function oje({ host: e }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-fields": "",
- children: ije.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(rje, {
+ children: oje.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(aje, {
field: r,
label: i,
max: a,
@@ -70632,7 +70645,7 @@ function oje({ host: e }) {
className: "geist-button",
"data-glow-reset": "",
onClick: () => {
- e.store.value.homeGlow = qj(null), e.store.save(), e.changed("glow");
+ e.store.value.homeGlow = Kj(null), e.store.save(), e.changed("glow");
},
children: "恢复默认"
})
@@ -70651,7 +70664,7 @@ function oje({ host: e }) {
"data-glow-colour-card": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-stops": "",
- children: Fj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(aje, {
+ children: Pj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(sje, {
host: e,
spot: n,
index: r,
@@ -70663,7 +70676,7 @@ function oje({ host: e }) {
});
}
// src/react/settings-panel/number-setting.tsx
-var sje = {
+var lje = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -70710,22 +70723,22 @@ var sje = {
optional: !0,
fallback: 60
}
-}, n1 = (e) => `peach.number.${e}`;
-function r1(e, t) {
+}, t1 = (e) => `peach.number.${e}`;
+function n1(e, t) {
if (t !== "分钟" || !Number.isInteger(e) || e < 1440) return "";
let n = e / 1440;
return Number.isInteger(n) ? `${n.toLocaleString()} 天` : `约 ${n.toFixed(1)} 天`;
}
-function i1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = sje[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
- d.current ||= wj(Number(localStorage.getItem(n1(e))), o, s, n && n > 0 ? n : l);
+function r1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
+ let a = lje[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
+ d.current ||= Cj(Number(localStorage.getItem(t1(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)));
}, [n]);
let b = () => {
let t = v.current;
- t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(n1(e), String(d.current)), y.current(d.current)));
+ t && (!t.value || !t.checkValidity() ? (t.setAttribute("aria-invalid", "true"), _(`请输入 ${o}–${s} 的整数(${c})`)) : (t.removeAttribute("aria-invalid"), _(""), d.current = Number(t.value), localStorage.setItem(t1(e), String(d.current)), y.current(d.current)));
}, x = (0, F.useRef)(b);
x.current = b, (0, F.useEffect)(() => {
let e = v.current;
@@ -70735,7 +70748,7 @@ function i1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}, []);
let S = f > 0, C = () => {
let t = v.current;
- t?.removeAttribute("aria-invalid"), _(""), S ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(n1(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
+ t?.removeAttribute("aria-invalid"), _(""), S ? (t && t.value && t.checkValidity() && (d.current = Number(t.value)), localStorage.setItem(t1(e), String(d.current)), p(0), y.current(0)) : (p(d.current), h(String(d.current)), y.current(d.current));
}, w = r || n === null;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-number-setting": "",
@@ -70772,7 +70785,7 @@ function i1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
}
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": "true",
- children: [c, r1(Number(m), c) ? ` · ${r1(Number(m), c)}` : ""]
+ children: [c, n1(Number(m), c) ? ` · ${n1(Number(m), c)}` : ""]
})]
}), /* @__PURE__ */ (0, I.jsx)("small", {
id: `${e}-error`,
@@ -70785,7 +70798,7 @@ function i1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
});
}
// src/react/boardui/components/base/kbd/kbd.tsx
-function cje({ className: e, ref: t, ...n }) {
+function uje({ className: e, ref: t, ...n }) {
return /* @__PURE__ */ (0, I.jsx)("kbd", {
ref: t,
className: J("inline-flex items-center justify-center rounded-full bg-kbd-background px-1 py-0.5 font-sans text-caption-1-semibold tracking-normal whitespace-nowrap text-kbd-foreground", e),
@@ -70793,7 +70806,7 @@ function cje({ className: e, ref: t, ...n }) {
});
}
// src/react/components/keycap.tsx
-function lje({ keys: e, plus: t }) {
+function dje({ keys: e, plus: t }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-keycaps": "",
children: e.map((e, n) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t && n ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -70808,15 +70821,15 @@ function lje({ keys: e, plus: t }) {
});
}
// src/keyboard-shortcut.ts
-var a1 = "peach.sfw-shortcut", uje = "Shift+KeyS", o1 = /^(?:Key[A-Z]|Digit[0-9]|F(?:[1-9]|1[0-2]))$/, dje = /^(?:Shift|Control|Alt|Meta|OS)(?:Left|Right)?$/, fje = /* @__PURE__ */ new Set([
+var i1 = "peach.sfw-shortcut", fje = "Shift+KeyS", a1 = /^(?:Key[A-Z]|Digit[0-9]|F(?:[1-9]|1[0-2]))$/, pje = /^(?:Shift|Control|Alt|Meta|OS)(?:Left|Right)?$/, mje = /* @__PURE__ */ new Set([
"KeyW",
"KeyT",
"KeyN",
"KeyQ"
]);
-function s1(e) {
+function o1(e) {
let t = String(e || "").split("+"), n = t.pop() || "", r = new Set(t);
- if (!o1.test(n) || [...r].some((e) => ![
+ if (!a1.test(n) || [...r].some((e) => ![
"Ctrl",
"Alt",
"Shift",
@@ -70829,9 +70842,9 @@ function s1(e) {
shift: r.has("Shift"),
meta: r.has("Meta")
};
- return l1(i) ? null : i;
+ return c1(i) ? null : i;
}
-function c1(e) {
+function s1(e) {
return [
e.ctrl && "Ctrl",
e.alt && "Alt",
@@ -70840,15 +70853,15 @@ function c1(e) {
e.code
].filter(Boolean).join("+");
}
-function l1(e) {
- return !e.ctrl && !e.alt && !e.shift && !e.meta ? "至少要带一个修饰键,单独的字母会和播放器快捷键冲突" : (e.ctrl || e.meta) && fje.has(e.code) ? "这个组合被浏览器占用,页面收不到" : "";
+function c1(e) {
+ return !e.ctrl && !e.alt && !e.shift && !e.meta ? "至少要带一个修饰键,单独的字母会和播放器快捷键冲突" : (e.ctrl || e.meta) && mje.has(e.code) ? "这个组合被浏览器占用,页面收不到" : "";
}
-function u1(e) {
- return dje.test(e);
+function l1(e) {
+ return pje.test(e);
}
-function pje(e) {
- if (u1(e.code)) return { state: "waiting" };
- if (!o1.test(e.code)) return {
+function hje(e) {
+ if (l1(e.code)) return { state: "waiting" };
+ if (!a1.test(e.code)) return {
state: "invalid",
problem: "只支持字母、数字和 F1–F12 作主键"
};
@@ -70858,7 +70871,7 @@ function pje(e) {
alt: e.altKey,
shift: e.shiftKey,
meta: e.metaKey
- }, n = l1(t);
+ }, n = c1(t);
return n ? {
state: "invalid",
problem: n
@@ -70867,13 +70880,13 @@ function pje(e) {
shortcut: t
};
}
-function mje(e, t) {
+function gje(e, t) {
return e.code === t.code && e.ctrlKey === t.ctrl && e.altKey === t.alt && e.shiftKey === t.shift && e.metaKey === t.meta;
}
-function d1(e = navigator) {
+function u1(e = navigator) {
return /mac|iphone|ipad|ipod/i.test(e.userAgentData?.platform || e.platform || "");
}
-var hje = {
+var _je = {
ArrowLeft: "←",
ArrowRight: "→",
ArrowUp: "↑",
@@ -70884,10 +70897,10 @@ var hje = {
Backspace: "Backspace",
Tab: "Tab"
};
-function gje(e) {
- return hje[e] ?? e.replace(/^Key|^Digit|^Numpad/, "");
+function vje(e) {
+ return _je[e] ?? e.replace(/^Key|^Digit|^Numpad/, "");
}
-function f1(e, t, n = d1()) {
+function d1(e, t, n = u1()) {
let r = n ? [
"⌃",
"⌥",
@@ -70904,30 +70917,30 @@ function f1(e, t, n = d1()) {
e.shift,
e.meta
];
- return [...r.filter((e, t) => i[t]), ...t ? [gje(t)] : []];
+ return [...r.filter((e, t) => i[t]), ...t ? [vje(t)] : []];
}
-function p1(e, t = d1()) {
- return f1(e, e.code, t).join(t ? "" : "+");
+function f1(e, t = u1()) {
+ return d1(e, e.code, t).join(t ? "" : "+");
}
// src/react/settings-panel/shortcut-setting.tsx
-var _je = 600, m1 = {
+var yje = 600, p1 = {
ctrl: !1,
alt: !1,
shift: !1,
meta: !1
-}, h1 = (e) => ({
+}, m1 = (e) => ({
ctrl: e.ctrlKey,
alt: e.altKey,
shift: e.shiftKey,
meta: e.metaKey
});
-function vje({ current: e, onChange: t }) {
+function bje({ current: e, onChange: t }) {
let [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(""), [o, s] = (0, F.useState)({
- modifiers: m1,
+ modifiers: p1,
code: null
}), [c, l] = (0, F.useState)(null), u = () => {
r(!1), a(""), s({
- modifiers: m1,
+ modifiers: p1,
code: null
});
};
@@ -70938,16 +70951,16 @@ function vje({ current: e, onChange: t }) {
u();
return;
}
- let n = u1(e.code);
+ let n = l1(e.code);
s({
- modifiers: h1(e),
+ modifiers: m1(e),
code: n ? null : e.code
}), a("");
- let r = pje(e);
+ let r = hje(e);
r.state === "invalid" && a(r.problem), r.state === "done" && (t(r.shortcut), l(r.shortcut), u());
}, r = (e) => {
e.stopPropagation(), s((t) => t.code === null ? {
- modifiers: h1(e),
+ modifiers: m1(e),
code: null
} : t);
};
@@ -70956,16 +70969,16 @@ function vje({ current: e, onChange: t }) {
};
}, [n, t]), (0, F.useEffect)(() => {
if (!c) return;
- let e = window.setTimeout(() => l(null), _je);
+ let e = window.setTimeout(() => l(null), yje);
return () => window.clearTimeout(e);
}, [c]);
- let d = d1(), f = (e, t, n) => f1(e, t, d).map((e) => ({
+ let d = u1(), f = (e, t, n) => d1(e, t, d).map((e) => ({
label: e,
state: n
})), p = (e) => ({
label: e,
state: "slot"
- }), m = o.modifiers.ctrl || o.modifiers.alt || o.modifiers.shift || o.modifiers.meta, h = c ? f(c, c.code, "done") : n ? o.code ? f(o.modifiers, o.code, i ? "invalid" : "down") : m ? [...f(o.modifiers, null, "down"), p("键")] : [p("修饰键"), p("键")] : null, g = c1(e) !== uje, _ = c ? `已改为 ${p1(c, d)}` : n ? i || "按下新的组合键,Esc 取消" : "输入框外随时开关。";
+ }), m = o.modifiers.ctrl || o.modifiers.alt || o.modifiers.shift || o.modifiers.meta, h = c ? f(c, c.code, "done") : n ? o.code ? f(o.modifiers, o.code, i ? "invalid" : "down") : m ? [...f(o.modifiers, null, "down"), p("键")] : [p("修饰键"), p("键")] : null, g = s1(e) !== fje, _ = c ? `已改为 ${f1(c, d)}` : n ? i || "按下新的组合键,Esc 取消" : "输入框外随时开关。";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-row": "",
children: [/* @__PURE__ */ (0, I.jsxs)("span", { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: "SFW 快捷键" }), /* @__PURE__ */ (0, I.jsx)("small", {
@@ -70976,13 +70989,13 @@ function vje({ current: e, onChange: t }) {
"data-setting-shortcut": "",
className: "peach-react",
children: [
- h ? /* @__PURE__ */ (0, I.jsx)(lje, {
+ h ? /* @__PURE__ */ (0, I.jsx)(dje, {
keys: h,
plus: !d
- }) : /* @__PURE__ */ (0, I.jsx)(cje, {
+ }) : /* @__PURE__ */ (0, I.jsx)(uje, {
"data-shortcut-keys": "",
- "aria-label": `当前快捷键 ${p1(e, d)}`,
- children: p1(e, d)
+ "aria-label": `当前快捷键 ${f1(e, d)}`,
+ children: f1(e, d)
}),
g && !n && !c ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -71005,13 +71018,13 @@ function vje({ current: e, onChange: t }) {
});
}
// src/react/sidebar/sidebar-order.ts
-function g1(e) {
- let { mutate: t } = QY();
+function h1(e) {
+ let { mutate: t } = ZY();
return (0, F.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
}
-function _1(e, t, n, r) {
+function g1(e, t, n, r) {
if (t === n) return null;
let i = [...e], a = i.indexOf(t);
if (a < 0) return null;
@@ -71020,23 +71033,23 @@ function _1(e, t, n, r) {
return o < 0 ? null : (i.splice(o + +!!r, 0, t), i);
}
// src/react/settings-panel/sidebar-order.tsx
-var yje = "__home__", v1 = (e) => e === "" ? yje : e;
-function bje({ host: e }) {
- let t = g1(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 = _1(n, e, r, i);
+var xje = "__home__", _1 = (e) => e === "" ? xje : e;
+function Sje({ host: e }) {
+ let t = h1(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 = g1(n, e, r, i);
a && t(a);
}, _ = (e, r) => {
let i = n.indexOf(e), a = i + r;
if (i < 0 || a < 0 || a >= n.length) return;
let o = [...n];
[o[i], o[a]] = [o[a], o[i]], t(o);
- }, v = a.find(([e]) => v1(e) === o) ?? a[0], y = () => {
- h.current && us(h.current), l(!1);
+ }, v = a.find(([e]) => _1(e) === o) ?? a[0], y = () => {
+ h.current && ls(h.current), l(!1);
}, b = () => {
let e = h.current;
if (!e) return;
let t = !c;
- t ? ls(e) : us(e), l(t), t && e.querySelector("[aria-selected=\"true\"]")?.focus();
+ t ? cs(e) : ls(e), l(t), t && e.querySelector("[aria-selected=\"true\"]")?.focus();
}, x = (e) => {
if (e.key === "Escape") {
e.preventDefault(), y(), m.current?.focus();
@@ -71051,7 +71064,7 @@ function bje({ host: e }) {
}, C = (e) => ({
draggable: !0,
onDragStart: (t) => {
- d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", v1(e));
+ d(e), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", _1(e));
},
onDragOver: (t) => {
if (u === null || u === e) return;
@@ -71083,9 +71096,9 @@ function bje({ host: e }) {
/* @__PURE__ */ (0, I.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(BF, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, I.jsx)(zF, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, I.jsx)(BF, { name: a ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(zF, { name: a ?? "" }),
/* @__PURE__ */ (0, I.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -71099,7 +71112,7 @@ function bje({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -71109,7 +71122,7 @@ function bje({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -71121,11 +71134,11 @@ function bje({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, I.jsx)(BF, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, I.jsx)(zF, { name: "eye-off" })
})
]
})]
- }, v1(e))), /* @__PURE__ */ (0, I.jsxs)("div", {
+ }, _1(e))), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-sidebar-add-row": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-sidebar-add-picker": "",
@@ -71141,13 +71154,13 @@ function bje({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(BF, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(zF, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(BF, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(zF, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -71158,15 +71171,15 @@ function bje({ host: e }) {
children: a.map(([e, t, n]) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "option",
- "data-sidebar-add-option": v1(e),
+ "data-sidebar-add-option": _1(e),
"aria-selected": v?.[0] === e,
tabIndex: v?.[0] === e ? 0 : -1,
onKeyDown: x,
onClick: () => {
- s(v1(e)), y(), m.current?.focus();
+ s(_1(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, I.jsx)(BF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
- }, v1(e)))
+ children: [/* @__PURE__ */ (0, I.jsx)(zF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
+ }, _1(e)))
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -71182,13 +71195,13 @@ function bje({ host: e }) {
});
}
// src/react/settings-panel/settings-panel.tsx
-var y1 = [
+var v1 = [
["外观与导航", "ri-palette-line"],
["浏览与播放", "ri-play-circle-line"],
["JAV 与新作", "jav"],
["搜索与推荐", "ri-search-line"],
["内容显示", "ri-shield-check-line"]
-], xje = [
+], Cje = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -71197,7 +71210,7 @@ var y1 = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], Sje = [["desc", "降序"], ["asc", "升序"]], Cje = [[
+], wje = [["desc", "降序"], ["asc", "升序"]], Tje = [[
"cover",
"官方封面",
""
@@ -71205,7 +71218,7 @@ var y1 = [
"thumbnail",
"预览图",
""
-]], wje = [
+]], Eje = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -71224,88 +71237,88 @@ var y1 = [
"切片",
"隐藏切片"
]
-], Tje = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", b1 = null, x1 = {
+], Dje = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", y1 = null, b1 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
configurable: null
-}, S1 = 0, C1 = null, w1 = /* @__PURE__ */ new Set();
-function Eje(e) {
- return w1.add(e), () => {
- w1.delete(e);
+}, x1 = 0, S1 = null, C1 = /* @__PURE__ */ new Set();
+function Oje(e) {
+ return C1.add(e), () => {
+ C1.delete(e);
};
}
-function Dje() {
- for (let e of [...w1]) e();
+function kje() {
+ for (let e of [...C1]) e();
}
-function T1(e) {
- x1 = {
- ...x1,
+function w1(e) {
+ b1 = {
+ ...b1,
...e
- }, (0, Rt.flushSync)(Dje);
+ }, (0, Rt.flushSync)(kje);
}
-async function Oje(e) {
- let t = x1.epoch, n = await e.configurable();
- x1.open && x1.epoch === t && T1({ configurable: n });
+async function Aje(e) {
+ let t = b1.epoch, n = await e.configurable();
+ b1.open && b1.epoch === t && w1({ configurable: n });
}
-function kje(e = "") {
- let t = b1;
+function jje(e = "") {
+ let t = y1;
if (!t) return;
- let n = y1.findIndex(([t]) => t === e);
- if (x1.open && !x1.closing) {
- n >= 0 && n !== x1.tab && T1({ tab: n });
+ let n = v1.findIndex(([t]) => t === e);
+ if (b1.open && !b1.closing) {
+ n >= 0 && n !== b1.tab && w1({ tab: n });
return;
}
- ss(), S1 += 1, C1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let r = eEe();
- T1({
+ os(), x1 += 1, S1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
+ let r = nEe();
+ w1({
open: !0,
closing: !1,
configurable: null,
- epoch: x1.epoch + 1,
- tab: n >= 0 ? n : x1.tab
+ epoch: b1.epoch + 1,
+ tab: n >= 0 ? n : b1.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), Oje(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), Aje(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
-function E1(e = !0) {
- if (!x1.open || x1.closing) return;
- let t = ++S1;
- e && b1?.closed?.(), T1({ closing: !0 });
+function T1(e = !0) {
+ if (!b1.open || b1.closing) return;
+ let t = ++x1;
+ e && y1?.closed?.(), w1({ closing: !0 });
let n = () => {
- t === S1 && x1.closing && (T1({
+ t === x1 && b1.closing && (w1({
open: !1,
closing: !1
- }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), C1 instanceof HTMLElement && document.contains(C1) && C1.focus(), C1 = null);
+ }), document.documentElement.style.overflow = "", document.body.classList.remove("settings-open"), S1 instanceof HTMLElement && document.contains(S1) && S1.focus(), S1 = null);
};
matchMedia("(prefers-reduced-motion: reduce)").matches ? queueMicrotask(n) : (document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 380));
}
-var Aje = {
- open: kje,
- close: E1,
- isOpen: () => x1.open,
+var Mje = {
+ open: jje,
+ close: T1,
+ isOpen: () => b1.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function jje(e) {
- return b1 = e, Aje;
+function Nje(e) {
+ return y1 = e, Mje;
}
-function Mje() {
- let e = (0, F.useSyncExternalStore)(Eje, () => x1);
- return b1 ? /* @__PURE__ */ (0, I.jsx)(Fje, {
- host: b1,
+function Pje() {
+ let e = (0, F.useSyncExternalStore)(Oje, () => b1);
+ return y1 ? /* @__PURE__ */ (0, I.jsx)(Lje, {
+ host: y1,
view: e
}) : null;
}
-function Nje(e) {
+function Fje(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(Tje)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(Dje)].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 D1 = (e) => `settings-tab-${e}`, O1 = (e) => `settings-group-${e}`;
-function Pje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
+var E1 = (e) => `settings-tab-${e}`, D1 = (e) => `settings-group-${e}`;
+function Ije({ 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;
@@ -71320,12 +71333,12 @@ function Pje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
w: e.offsetWidth,
h: e.offsetHeight
}, i = s.current;
- s.current = r, Gc(n, t ? i : null, r, "y");
+ s.current = r, Wc(n, t ? i : null, r, "y");
}, d = (0, F.useRef)(u);
d.current = u, (0, F.useLayoutEffect)(() => {
let e = a.current;
if (!e) return;
- jc(e);
+ Ac(e);
let t = new ResizeObserver(() => d.current(l.current[c.current], !1));
return t.observe(e), () => t.disconnect();
}, []), (0, F.useLayoutEffect)(() => {
@@ -71333,7 +71346,7 @@ function Pje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
c.current = e, d.current(l.current[e], t);
}, [e, t]);
let f = (e, t) => {
- let n = y1.length, r = t;
+ let n = v1.length, r = t;
if (e.key === "ArrowRight" || e.key === "ArrowDown") r = (t + 1) % n;
else if (e.key === "ArrowLeft" || e.key === "ArrowUp") r = (t + n - 1) % n;
else if (e.key === "Home") r = 0;
@@ -71362,11 +71375,11 @@ function Pje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
role: "presentation",
children: "设置"
}),
- y1.map(([t, n], r) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ v1.map(([t, n], r) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
- id: D1(r),
- "aria-controls": O1(r),
+ id: E1(r),
+ "aria-controls": D1(r),
"aria-selected": r === e,
tabIndex: r === e ? 0 : -1,
ref: (e) => {
@@ -71377,7 +71390,7 @@ function Pje({ 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)(BF, { name: n }) : /* @__PURE__ */ (0, I.jsx)(tfe, { name: n }), t]
+ children: [n === "jav" ? /* @__PURE__ */ (0, I.jsx)(zF, { name: n }) : /* @__PURE__ */ (0, I.jsx)(rfe, { name: n }), t]
}, t)),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-settings-service": "",
@@ -71388,27 +71401,27 @@ function Pje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onClick: r,
title: n === !1 ? "请在运行 Peach 的设备上打开 Peach 配置" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(BF, { name: "folder-cog" }),
+ /* @__PURE__ */ (0, I.jsx)(zF, { name: "folder-cog" }),
"Peach 配置",
- /* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-right" })
+ /* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-right" })
]
})
})
]
});
}
-function k1({ index: e, tab: t, children: n, cards: r = !1 }) {
+function O1({ index: e, tab: t, children: n, cards: r = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("section", {
"data-setting-group": "",
"data-setting-layout": r ? "cards" : void 0,
- id: O1(e),
+ id: D1(e),
role: "tabpanel",
- "aria-labelledby": D1(e),
+ "aria-labelledby": E1(e),
hidden: e !== t,
- children: [/* @__PURE__ */ (0, I.jsx)("h3", { children: y1[e][0] }), n]
+ children: [/* @__PURE__ */ (0, I.jsx)("h3", { children: v1[e][0] }), n]
});
}
-function A1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
+function k1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Setting$/, "")}Description`, checked: i, onToggle: a }) {
return /* @__PURE__ */ (0, I.jsxs)("label", {
"data-setting-row": "",
children: [/* @__PURE__ */ (0, I.jsxs)("span", { children: [/* @__PURE__ */ (0, I.jsx)("b", { children: t }), n ? /* @__PURE__ */ (0, I.jsx)("small", {
@@ -71425,7 +71438,7 @@ function A1({ id: e, title: t, description: n, describedBy: r = `${e.replace(/Se
})]
});
}
-function j1({ title: e, description: t, kind: n, children: r }) {
+function A1({ title: e, description: t, kind: n, children: r }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-row": "",
"data-setting-sort": n === "sort" ? "" : void 0,
@@ -71433,7 +71446,7 @@ function j1({ 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 Fje({ host: e, view: t }) {
+function Lje({ 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];
@@ -71444,17 +71457,17 @@ function Fje({ host: e, view: t }) {
u.current = l, (0, F.useLayoutEffect)(() => {
let t = o.current;
if (!t || !r.current) return;
- s.current = zo(t) ?? s.current, e.attached(r.current);
+ s.current = Ro(t) ?? s.current, e.attached(r.current);
let n = () => u.current();
return t.addEventListener("scroll", n, { passive: !0 }), () => t.removeEventListener("scroll", n);
}, [e]), (0, F.useLayoutEffect)(() => {
let e = c.current !== t.tab;
- c.current = t.tab, o.current && (o.current.scrollTop = 0), e && a.current && nc(a.current, "h2"), u.current();
+ c.current = t.tab, o.current && (o.current.scrollTop = 0), e && a.current && tc(a.current, "h2"), u.current();
}, [t.tab, t.epoch]), (0, F.useLayoutEffect)(() => {
s.current?.();
});
let d = t.epoch, f = (t) => {
- t !== x1.tab && (T1({ tab: t }), e.selectSection?.(y1[t][0]));
+ t !== b1.tab && (w1({ tab: t }), e.selectSection?.(v1[t][0]));
}, p = () => e.store.save();
return /* @__PURE__ */ (0, I.jsx)("section", {
"data-settings-panel": "",
@@ -71465,9 +71478,9 @@ function Fje({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: Nje,
+ onKeyDown: Fje,
onClick: (e) => {
- e.target === e.currentTarget && E1();
+ e.target === e.currentTarget && T1();
},
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-settings-card": "",
@@ -71478,27 +71491,27 @@ function Fje({ host: e, view: t }) {
ref: a,
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
id: "settingsTitle",
- children: y1[t.tab][0]
- }), /* @__PURE__ */ (0, I.jsx)(dV, {
+ children: v1[t.tab][0]
+ }), /* @__PURE__ */ (0, I.jsx)(uV, {
id: "settingsClose",
label: "关闭设置",
- onPress: () => E1()
+ onPress: () => T1()
})]
}),
- /* @__PURE__ */ (0, I.jsx)(Pje, {
+ /* @__PURE__ */ (0, I.jsx)(Ije, {
tab: t.tab,
epoch: d,
configurable: t.configurable,
onSelect: f,
openConfiguration: () => {
- E1(!1), e.openConfiguration();
+ T1(!1), e.openConfiguration();
}
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-settings-scroll": "",
ref: o,
children: [
- /* @__PURE__ */ (0, I.jsxs)(k1, {
+ /* @__PURE__ */ (0, I.jsxs)(O1, {
index: 0,
tab: t.tab,
cards: !0,
@@ -71506,9 +71519,9 @@ function Fje({ host: e, view: t }) {
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-card": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, I.jsx)(A1, {
title: "主题",
- children: /* @__PURE__ */ (0, I.jsx)(e1, {
+ children: /* @__PURE__ */ (0, I.jsx)($$, {
id: "themeSetting",
name: "theme",
legend: "主题",
@@ -71536,7 +71549,7 @@ function Fje({ host: e, view: t }) {
onChange: (t) => e.setHighContrast(t.target.checked)
})]
}),
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, I.jsx)(k1, {
id: "uiSoundsSetting",
title: "界面音效",
checked: n.uiSounds,
@@ -71544,7 +71557,7 @@ function Fje({ host: e, view: t }) {
n.uiSounds = t, p(), e.changed("uiSounds");
}
}),
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, I.jsx)(k1, {
id: "homeGlowSetting",
title: "侧栏光晕",
checked: n.homeGlow.on,
@@ -71554,7 +71567,7 @@ function Fje({ host: e, view: t }) {
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(oje, { host: e }),
+ /* @__PURE__ */ (0, I.jsx)(cje, { host: e }),
/* @__PURE__ */ (0, I.jsxs)("section", {
"data-setting-block": "",
"aria-labelledby": "sidebarOrderTitle",
@@ -71566,35 +71579,35 @@ function Fje({ host: e, view: t }) {
"data-setting-card": "",
children: /* @__PURE__ */ (0, I.jsx)("section", {
"data-sidebar-setting": "",
- children: /* @__PURE__ */ (0, I.jsx)(bje, { host: e })
+ children: /* @__PURE__ */ (0, I.jsx)(Sje, { host: e })
})
})]
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(Lje, {
+ /* @__PURE__ */ (0, I.jsx)(zje, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsx)(Rje, {
+ /* @__PURE__ */ (0, I.jsx)(Bje, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsxs)(k1, {
+ /* @__PURE__ */ (0, I.jsxs)(O1, {
index: 3,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, I.jsx)(Hje, {
+ /* @__PURE__ */ (0, I.jsx)(Wje, {
host: e,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, I.jsx)(A1, {
title: "相关推荐数量",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "relatedLimitSetting",
- children: /* @__PURE__ */ (0, I.jsx)(i1, {
+ children: /* @__PURE__ */ (0, I.jsx)(r1, {
id: "relatedLimitSetting",
label: "相关推荐数量",
value: n.relatedLimit,
@@ -71604,31 +71617,31 @@ function Fje({ host: e, view: t }) {
}, d)
})
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, I.jsx)(A1, {
title: "口味与记录",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(gL, {
+ children: /* @__PURE__ */ (0, I.jsx)(hL, {
variant: "secondary",
href: "/taste",
- onClick: () => E1(!1),
+ onClick: () => T1(!1),
children: "打开口味与记录"
})
})
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)(k1, {
+ /* @__PURE__ */ (0, I.jsxs)(O1, {
index: 4,
tab: t.tab,
- children: [/* @__PURE__ */ (0, I.jsx)(A1, {
+ children: [/* @__PURE__ */ (0, I.jsx)(k1, {
id: "censorSetting",
title: "SFW 模式",
describedBy: "sfwDescription",
checked: e.censored(),
description: "隐藏敏感画面,停止悬停预览。",
onToggle: (t) => e.setCensored(t)
- }), /* @__PURE__ */ (0, I.jsx)(vje, {
+ }), /* @__PURE__ */ (0, I.jsx)(bje, {
current: e.sfwShortcut(),
onChange: e.setSfwShortcut
})]
@@ -71639,19 +71652,19 @@ function Fje({ host: e, view: t }) {
})
});
}
-function Ije(e, t) {
+function Rje(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
- n.querySelector("[data-icon-swap]") || (n.innerHTML = qs("arrow-up", "arrow-down", "a", {
+ n.querySelector("[data-icon-swap]") || (n.innerHTML = Ks("arrow-up", "arrow-down", "a", {
className: "gselectmark",
iconClass: "gselectmark"
- }) + "<span data-sort-direction-label></span>"), Js(n, t ? "a" : "b");
+ }) + "<span data-sort-direction-label></span>"), qs(n, t ? "a" : "b");
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function Lje({ host: e, tab: t, epoch: n }) {
+function zje({ 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)(k1, {
+ return /* @__PURE__ */ (0, I.jsxs)(O1, {
index: 1,
tab: t,
children: [
@@ -71659,11 +71672,11 @@ function Lje({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品列表"
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, I.jsx)(A1, {
title: "每批加载作品",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "batchSizeSetting",
- children: /* @__PURE__ */ (0, I.jsx)(i1, {
+ children: /* @__PURE__ */ (0, I.jsx)(r1, {
id: "batchSizeSetting",
label: "每批作品",
value: r.batchSize,
@@ -71673,24 +71686,24 @@ function Lje({ host: e, tab: t, epoch: n }) {
}, n)
})
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, I.jsx)(A1, {
title: "默认排序",
kind: "sort",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-setting-sort-controls": "",
- children: [/* @__PURE__ */ (0, I.jsx)(t1, {
+ children: [/* @__PURE__ */ (0, I.jsx)(e1, {
id: "defaultSortSetting",
label: "默认排序",
- options: xje,
+ options: Cje,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
r.defaultSort = t, i(), e.changed("defaultSort");
}
- }), /* @__PURE__ */ (0, I.jsx)(t1, {
+ }), /* @__PURE__ */ (0, I.jsx)(e1, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: Sje,
+ options: wje,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -71698,13 +71711,13 @@ function Lje({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => Ije(e, o)
+ decorate: (e) => Rje(e, o)
})]
})
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, I.jsx)(A1, {
title: "视频卡片大小",
- children: /* @__PURE__ */ (0, I.jsx)(e1, {
+ children: /* @__PURE__ */ (0, I.jsx)($$, {
id: "javSizeSetting",
name: "video-size",
legend: "视频卡片大小",
@@ -71730,16 +71743,16 @@ function Lje({ host: e, tab: t, epoch: n }) {
}
})]
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, I.jsx)(A1, {
title: "悬停预览延迟",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "hoverDelaySetting",
- children: /* @__PURE__ */ (0, I.jsx)(i1, {
+ children: /* @__PURE__ */ (0, I.jsx)(r1, {
id: "hoverDelaySetting",
label: "悬停预览延迟",
value: r.hoverDelaySeconds,
onApply: (t) => {
- r.hoverDelaySeconds = wj(t, 0, 60, 5), i(), e.changed("hoverDelay");
+ r.hoverDelaySeconds = Cj(t, 0, 60, 5), i(), e.changed("hoverDelay");
}
}, n)
})
@@ -71748,16 +71761,16 @@ function Lje({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "播放"
}),
- /* @__PURE__ */ (0, I.jsx)(Vje, {
+ /* @__PURE__ */ (0, I.jsx)(Uje, {
host: e,
epoch: n
})
]
});
}
-function Rje({ host: e, tab: t, epoch: n }) {
+function Bje({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
- return /* @__PURE__ */ (0, I.jsxs)(k1, {
+ return /* @__PURE__ */ (0, I.jsxs)(O1, {
index: 2,
tab: t,
children: [
@@ -71765,24 +71778,24 @@ function Rje({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品显示"
}),
- /* @__PURE__ */ (0, I.jsx)(zje, {
+ /* @__PURE__ */ (0, I.jsx)(Vje, {
host: e,
epoch: n
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, I.jsx)(A1, {
title: "默认图片",
- children: /* @__PURE__ */ (0, I.jsx)(e1, {
+ children: /* @__PURE__ */ (0, I.jsx)($$, {
id: "javImageSetting",
name: "jav-image",
legend: "默认图片",
- options: Cje,
+ options: Tje,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
text: !0,
epoch: n,
onChoose: (t) => {
- r.javImage = to(t), i(), e.changed("javImage");
+ r.javImage = eo(t), i(), e.changed("javImage");
}
})
}),
@@ -71790,21 +71803,21 @@ function Rje({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "新作显示"
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, I.jsx)(A1, {
title: "显示数量",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "feedLimitSetting",
- children: /* @__PURE__ */ (0, I.jsx)(i1, {
+ children: /* @__PURE__ */ (0, I.jsx)(r1, {
id: "feedLimitSetting",
label: "新作显示数量",
value: r.feedLimit,
onApply: (t) => {
- r.feedLimit = wj(t, 1, 100, 12), i(), e.changed("feedLimit");
+ r.feedLimit = Cj(t, 1, 100, 12), i(), e.changed("feedLimit");
}
}, n)
})
}),
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, I.jsx)(k1, {
id: "feedAutoScrollSetting",
title: "自动滚动",
checked: r.feedAutoScroll,
@@ -71812,7 +71825,7 @@ function Rje({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- wje.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(Bje, {
+ Eje.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(Hje, {
host: e,
id: t,
settingKey: n,
@@ -71822,19 +71835,19 @@ function Rje({ host: e, tab: t, epoch: n }) {
]
});
}
-function zje({ host: e, epoch: t }) {
+function Vje({ host: e, epoch: t }) {
let n = Ft({
- queryKey: KY,
- queryFn: ({ signal: e }) => ZY(e),
+ queryKey: GY,
+ queryFn: ({ signal: e }) => XY(e),
staleTime: 0
- }), r = QY(), [i, a] = (0, F.useState)(null), o = n.data?.performerNameLanguage;
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(j1, {
+ }), r = ZY(), [i, a] = (0, F.useState)(null), o = n.data?.performerNameLanguage;
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(A1, {
title: "女优名称",
description: /* @__PURE__ */ (0, I.jsx)("small", {
"data-copy-key": "performer-name-language-help",
children: "名称与别名只显示所选语言的写法;缺少对应时保留当前名称。偏好保存在数据库,其他设备读取同一份设置。"
}),
- children: /* @__PURE__ */ (0, I.jsx)(t1, {
+ children: /* @__PURE__ */ (0, I.jsx)(e1, {
id: "performerNameLanguageSetting",
label: "女优名称",
epoch: t,
@@ -71852,20 +71865,20 @@ function zje({ host: e, epoch: t }) {
}));
}
})
- }), n.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ }), n.isError ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: "未取得数据库中的名称偏好,请重新打开设置。"
}) : null] });
}
-function Bje({ host: e, id: t, settingKey: n, label: r, title: i }) {
- let a = QY(), [o, s] = (0, F.useState)(null), c = (0, F.useRef)(null), l = e.store.value, u = (t) => {
- s(t), Zc(c.current), a.mutate({ [n]: t }, {
+function Hje({ host: e, id: t, settingKey: n, label: r, title: i }) {
+ let a = ZY(), [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) => {
l[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);
},
onError: (t) => e.failure(`保存${r}开关`, t),
onSettled: () => {
- s(null), Zc(c.current, !1);
+ s(null), Xc(c.current, !1);
}
});
};
@@ -71882,10 +71895,10 @@ function Bje({ host: e, id: t, settingKey: n, label: r, title: i }) {
})]
});
}
-function Vje({ host: e, epoch: t }) {
+function Uje({ 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)(A1, {
+ /* @__PURE__ */ (0, I.jsx)(k1, {
id: "detailAutoplaySetting",
title: "打开详情自动播放",
checked: n.detailAutoplay,
@@ -71893,7 +71906,7 @@ function Vje({ host: e, epoch: t }) {
n.detailAutoplay = e, r();
}
}),
- /* @__PURE__ */ (0, I.jsx)(A1, {
+ /* @__PURE__ */ (0, I.jsx)(k1, {
id: "miniplayerSetting",
title: "离开详情后小窗播放",
checked: n.miniplayer,
@@ -71901,11 +71914,11 @@ function Vje({ host: e, epoch: t }) {
n.miniplayer = t, r(), e.changed("miniplayer");
}
}),
- /* @__PURE__ */ (0, I.jsx)(j1, {
+ /* @__PURE__ */ (0, I.jsx)(A1, {
title: "快进 / 快退步长",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "seekSecondsSetting",
- children: /* @__PURE__ */ (0, I.jsx)(i1, {
+ children: /* @__PURE__ */ (0, I.jsx)(r1, {
id: "seekSecondsSetting",
label: "快进 / 快退",
value: n.seekSeconds,
@@ -71917,25 +71930,25 @@ function Vje({ host: e, epoch: t }) {
})
] });
}
-function Hje({ host: e, epoch: t }) {
- let n = e.store.value, r = QY();
- return /* @__PURE__ */ (0, I.jsx)(j1, {
+function Wje({ host: e, epoch: t }) {
+ let n = e.store.value, r = ZY();
+ return /* @__PURE__ */ (0, I.jsx)(A1, {
title: "搜索记录数量",
children: /* @__PURE__ */ (0, I.jsx)("div", {
id: "searchHistoryLimitSetting",
- children: /* @__PURE__ */ (0, I.jsx)(i1, {
+ children: /* @__PURE__ */ (0, I.jsx)(r1, {
id: "searchHistoryLimitSetting",
label: "搜索记录",
value: n.searchHistoryLimit,
onApply: (t) => {
- n.searchHistoryLimit = wj(t, 0, 50, 10), e.store.save(), e.changed("searchHistoryLimit"), r.mutate({ searchHistoryLimit: n.searchHistoryLimit }, { onError: () => {} });
+ n.searchHistoryLimit = Cj(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 Uje(e, t, n, r) {
+function Gje(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,
@@ -71970,7 +71983,7 @@ function Uje(e, t, n, r) {
let m = (t) => {
let n = c.current;
if (!n || (c.current = null, !n.started)) return;
- let r = d.current.picked, i = n.keys.filter((e) => e !== n.key), o = t ? r.slot : null, l = o === null || o === r.origin ? null : _1(d.current.order, n.key, i[Math.min(o, i.length - 1)], o === i.length);
+ let r = d.current.picked, i = n.keys.filter((e) => e !== n.key), o = t ? r.slot : null, l = o === null || o === r.origin ? null : g1(d.current.order, n.key, i[Math.min(o, i.length - 1)], o === i.length);
p(), e.current.style.minHeight = n.minHeight, document.body.style.cursor = n.cursor, n.node.style.removeProperty("--sidebar-drag-x"), n.node.style.removeProperty("--sidebar-drag-y"), u.current = !0, (0, Rt.flushSync)(() => {
a(null), l && d.current.commit(l), s(l ? `${n.node.ariaLabel},已移动到第 ${o + 1} 项` : t && o === r.origin ? "顺序未变" : "已取消排序");
}), d.current.settled();
@@ -72032,7 +72045,7 @@ function Uje(e, t, n, r) {
e.preventDefault();
let a = f().map((e) => e.dataset.nav), o = a.indexOf(i), c = e.key === "ArrowDown", l = a[o + (c ? 1 : -1)];
if (l === void 0) return;
- let u = _1(t, i, l, c);
+ let u = g1(t, i, l, c);
u && (p(), (0, Rt.flushSync)(() => n(u)), s(`${e.currentTarget.ariaLabel},已移动到第 ${o + (c ? 2 : 0)} 项`), r());
}, v = i ? f().filter((e) => e.dataset.nav !== i.key) : [], y = !!i && i.slot !== null && i.slot !== i.origin;
return {
@@ -72071,68 +72084,68 @@ function Uje(e, t, n, r) {
};
}
// src/react/sidebar/sidebar-island.tsx
-var M1 = "__home__", Wje = {
+var j1 = "__home__", Kje = {
creator: 26,
tag: 30,
tech: 16
-}, N1 = 180, P1 = null, F1 = {
+}, M1 = 180, N1 = null, P1 = {
props: {
content: null,
filters: {},
latest: null
},
epoch: 0
-}, I1 = /* @__PURE__ */ new Set();
-function Gje(e) {
- return I1.add(e), () => {
- I1.delete(e);
+}, F1 = /* @__PURE__ */ new Set();
+function qje(e) {
+ return F1.add(e), () => {
+ F1.delete(e);
};
}
-function L1() {
- for (let e of [...I1]) e();
+function I1() {
+ for (let e of [...F1]) e();
}
-var Kje = {
+var Jje = {
render(e) {
- F1 = {
- ...F1,
+ P1 = {
+ ...P1,
props: e
- }, (0, Rt.flushSync)(L1);
+ }, (0, Rt.flushSync)(I1);
},
navChanged() {
- F1 = {
- ...F1,
- epoch: F1.epoch + 1
- }, (0, Rt.flushSync)(L1);
+ P1 = {
+ ...P1,
+ epoch: P1.epoch + 1
+ }, (0, Rt.flushSync)(I1);
}
};
-function qje(e) {
- return P1 = e, F1 = {
- ...F1,
+function Yje(e) {
+ return N1 = e, P1 = {
+ ...P1,
props: {
content: null,
filters: {},
latest: null
}
- }, Kje;
+ }, Jje;
}
-function Jje() {
- let e = (0, F.useSyncExternalStore)(Gje, () => F1);
- return P1 ? /* @__PURE__ */ (0, I.jsx)(Yje, {
- host: P1,
+function Xje() {
+ let e = (0, F.useSyncExternalStore)(qje, () => P1);
+ return N1 ? /* @__PURE__ */ (0, I.jsx)(Zje, {
+ host: N1,
props: e.props,
epoch: e.epoch
}) : null;
}
-function Yje({ host: e, props: t, epoch: n }) {
+function Zje({ 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)(Xje, {
+ /* @__PURE__ */ (0, I.jsx)(Qje, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, I.jsx)(Qje, {
+ t.content ? /* @__PURE__ */ (0, I.jsx)(eMe, {
host: e,
content: t.content,
filters: t.filters,
@@ -72140,8 +72153,8 @@ function Yje({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function Xje({ host: e, epoch: t, version: n }) {
- let r = g1(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 = mL(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || M1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function Qje({ host: e, epoch: t, version: n }) {
+ let r = h1(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 = pL(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || j1 : "").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());
[
@@ -72160,7 +72173,7 @@ function Xje({ host: e, epoch: t, version: n }) {
i.disconnect(), cancelAnimationFrame(a), document.removeEventListener("board:sidebar", o);
};
}, [e, d]);
- let f = Uje(c, i, r, () => requestAnimationFrame(d)), p = e.scroll.parentElement;
+ let f = Gje(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,
@@ -72196,8 +72209,8 @@ function Xje({ host: e, epoch: t, version: n }) {
alt: "",
decoding: "async",
draggable: !1
- }) : /* @__PURE__ */ (0, I.jsx)(BF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
- }, t || M1);
+ }) : /* @__PURE__ */ (0, I.jsx)(zF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ }, t || j1);
}),
f.hint ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-drop-line": "",
@@ -72218,8 +72231,8 @@ function Xje({ host: e, epoch: t, version: n }) {
ref: l
}), p) : null] });
}
-var R1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function Zje(e) {
+var L1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
+function $je(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -72233,17 +72246,17 @@ function Zje(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function Qje({ host: e, content: t, filters: n, latest: r }) {
+function eMe({ 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" && tc(e.scroll, "drawer");
+ t.kind === "catalog" && ec(e.scroll, "drawer");
}, [
e,
i,
t.kind
]);
- let a = t.kind === "catalog" ? $je(e, t.facets, n, r, i) : eMe(e, t, n), o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(tMe, {
+ let a = t.kind === "catalog" ? tMe(e, t.facets, n, r, i) : nMe(e, t, n), o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(rMe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -72252,11 +72265,11 @@ function Qje({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function $je(e, t, n, r, i) {
- let a = Zje(r), o = (t, r, i) => {
+function tMe(e, t, n, r, i) {
+ let a = $je(r), o = (t, r, i) => {
if (!t.length) return null;
- let o = R1(n, r);
- return /* @__PURE__ */ (0, I.jsx)(V1, {
+ let o = L1(n, r);
+ return /* @__PURE__ */ (0, I.jsx)(B1, {
rows: t,
filterKey: r,
multi: i,
@@ -72266,7 +72279,7 @@ function $je(e, t, n, r, i) {
});
}, s = (t, s, c, l, u, d) => {
if (!c.length) return null;
- let f = R1(n, l), p = c.some((e) => f.includes(e.value));
+ let f = L1(n, l), p = c.some((e) => f.includes(e.value));
if (!d) return {
title: t,
kind: s,
@@ -72278,12 +72291,12 @@ function $je(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, I.jsx)(rMe, {
+ body: /* @__PURE__ */ (0, I.jsx)(aMe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: Wje[d],
+ limit: Kje[d],
filterKey: l,
selected: f,
counts: a,
@@ -72298,7 +72311,7 @@ function $je(e, t, n, r, i) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, I.jsx)(W1, {
+ body: /* @__PURE__ */ (0, I.jsx)(U1, {
host: e,
filters: n
})
@@ -72313,7 +72326,7 @@ function $je(e, t, n, r, i) {
title: "关注标签",
kind: "online",
active: !1,
- body: /* @__PURE__ */ (0, I.jsx)(H1, {
+ body: /* @__PURE__ */ (0, I.jsx)(V1, {
rows: t.followTags,
host: e,
selected: null,
@@ -72322,14 +72335,14 @@ function $je(e, t, n, r, i) {
} : null
];
}
-function eMe(e, t, n) {
- let r = t.providers || [], i = R1(n, "provider"), a = new Set(t.selected);
+function nMe(e, t, n) {
+ let r = t.providers || [], i = L1(n, "provider"), a = new Set(t.selected);
return [
r.length ? {
title: "来源",
kind: "src",
active: r.some((e) => i.includes(e.value)),
- body: /* @__PURE__ */ (0, I.jsx)(V1, {
+ body: /* @__PURE__ */ (0, I.jsx)(B1, {
rows: r,
filterKey: "provider",
multi: !1,
@@ -72343,7 +72356,7 @@ function eMe(e, t, n) {
title: "时长",
kind: "meta",
active: !1,
- body: /* @__PURE__ */ (0, I.jsx)(W1, {
+ body: /* @__PURE__ */ (0, I.jsx)(U1, {
host: e,
filters: n,
commit: e.setFollowDuration
@@ -72353,7 +72366,7 @@ function eMe(e, t, n) {
title: "内容标签",
kind: "online",
active: t.tags.some((e) => a.has(e.value)),
- body: /* @__PURE__ */ (0, I.jsx)(H1, {
+ body: /* @__PURE__ */ (0, I.jsx)(V1, {
rows: t.tags,
host: e,
selected: a,
@@ -72362,25 +72375,25 @@ function eMe(e, t, n) {
} : null
];
}
-function z1(e, t) {
+function R1(e, t) {
let n = null;
try {
n = sessionStorage.getItem(`peach.sidebar.group.${e}`);
} catch {}
return n === null ? t : n === "open";
}
-function tMe({ 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)(() => z1(e, n)), u = (0, F.useRef)(!1);
+function rMe({ 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)(() => R1(e, n)), u = (0, F.useRef)(!1);
(0, F.useLayoutEffect)(() => {
let t = o.current, r = s.current;
if (!t || !r) return;
- let i = u.current ? z1(e, n) : c;
+ let i = u.current ? R1(e, n) : c;
u.current = !0, t.open !== i && (t.open = i, r.inert = !i, r.style.height = "", r.classList.contains("ui-fcollapse") && r.classList.toggle("ui-fcollapse-settled", i), l(i));
}, [i]);
let d = (t) => {
if (t?.preventDefault(), !o.current || !s.current) return;
let n = !c;
- Vo(o.current, s.current, n), l(n);
+ Bo(o.current, s.current, n), l(n);
try {
sessionStorage.setItem(`peach.sidebar.group.${e}`, n ? "open" : "closed");
} catch {}
@@ -72395,7 +72408,7 @@ function tMe({ 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)(BF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -72406,7 +72419,7 @@ function tMe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
children: /* @__PURE__ */ (0, I.jsx)("div", {
"data-sidebar-body": "",
id: `sidebar-group-${encodeURIComponent(e)}`,
- children: /* @__PURE__ */ (0, I.jsx)(B1.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(z1.Provider, {
value: d,
children: a
})
@@ -72415,15 +72428,15 @@ function tMe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
})]
});
}
-var B1 = (0, F.createContext)(() => {});
-function nMe({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(BF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
+var z1 = (0, F.createContext)(() => {});
+function iMe({ dot: e }) {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(zF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
}) : /* @__PURE__ */ (0, I.jsx)("i", { "data-sidebar-cost": e.cost }) : null;
}
-function V1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
+function B1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a, onToggle: o = a.toggleChip }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => {
@@ -72440,7 +72453,7 @@ function V1({ 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)(nMe, { dot: e.dot }),
+ /* @__PURE__ */ (0, I.jsx)(iMe, { dot: e.dot }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -72455,8 +72468,8 @@ function V1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
})
});
}
-function rMe({ 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)(B1), [d, f] = (0, F.useState)(null), [p, m] = (0, F.useState)(e);
+function aMe({ 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)(z1), [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;
return (0, F.useLayoutEffect)(() => {
@@ -72468,10 +72481,10 @@ function rMe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
};
if (_) {
let t = e.body.closest("details");
- e.body.classList.add("ui-fcollapse"), Go(e.body, e.before, () => !!t?.open && !e.body.inert);
+ e.body.classList.add("ui-fcollapse"), Wo(e.body, e.before, () => !!t?.open && !e.body.inert);
}
t(), requestAnimationFrame(t);
- }, [d, _]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(V1, {
+ }, [d, _]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(B1, {
rows: _ ? v : v.slice(0, i),
filterKey: a,
multi: !1,
@@ -72496,10 +72509,10 @@ function rMe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, I.jsx)(BF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(zF, { name: "chevron-down" })
}) : null] });
}
-function H1({ rows: e, host: t, selected: n, badges: r }) {
+function V1({ rows: e, host: t, selected: n, badges: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-sidebar-chips": "",
children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)("button", {
@@ -72521,10 +72534,10 @@ function H1({ rows: e, host: t, selected: n, badges: r }) {
}, e.value))
});
}
-var U1 = (e, t) => e ? Math.min(N1, Number(e) / 60) : t;
-function W1({ host: e, filters: t, commit: n = e.setDuration }) {
- let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, F.useState)(r), [o, s] = (0, F.useState)(() => [U1(t.dur_min, 0), U1(t.dur_max, N1)]), [c, l] = (0, F.useState)("max");
- i !== r && (a(r), s([U1(t.dur_min, 0), U1(t.dur_max, N1)]));
+var H1 = (e, t) => e ? Math.min(M1, Number(e) / 60) : t;
+function U1({ host: e, filters: t, commit: n = e.setDuration }) {
+ let r = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [i, a] = (0, F.useState)(r), [o, s] = (0, F.useState)(() => [H1(t.dur_min, 0), H1(t.dur_max, M1)]), [c, l] = (0, F.useState)("max");
+ i !== r && (a(r), s([H1(t.dur_min, 0), H1(t.dur_max, M1)]));
let [u, d] = o, f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = (0, F.useRef)(null), h = (0, F.useRef)(o);
h.current = o;
let g = (e, t) => {
@@ -72537,11 +72550,11 @@ function W1({ host: e, filters: t, commit: n = e.setDuration }) {
}, [n]), (0, F.useLayoutEffect)(() => {
let e = f.current;
if (!e) return;
- e.style.setProperty("--lo", `${u / N1 * 100}%`), e.style.setProperty("--hi", `${d / N1 * 100}%`);
+ e.style.setProperty("--lo", `${u / M1 * 100}%`), e.style.setProperty("--hi", `${d / M1 * 100}%`);
let t = e.getBoundingClientRect();
e.querySelectorAll("[data-sidebar-range-tip]").forEach((e) => {
let n = e.dataset.rangeEnd === "max" ? d : u;
- e.style.left = `${n / N1 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
+ e.style.left = `${n / M1 * 100}%`, e.style.setProperty("--range-tip-shift", "0px");
let r = e.getBoundingClientRect(), i = r.right > t.right ? t.right - r.right : r.left < t.left ? t.left - r.left : 0;
i && e.style.setProperty("--range-tip-shift", `${Math.round(i)}px`);
});
@@ -72551,7 +72564,7 @@ function W1({ host: e, filters: t, commit: n = e.setDuration }) {
"data-range-end": e,
"data-range-active": c === e ? "" : void 0,
"aria-hidden": "true",
- children: e === "max" && t >= N1 ? "不限" : `${t} 分钟`
+ children: e === "max" && t >= M1 ? "不限" : `${t} 分钟`
});
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-sidebar-duration": "",
@@ -72566,7 +72579,7 @@ function W1({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMin",
type: "range",
min: "0",
- max: N1,
+ max: M1,
step: "5",
value: u,
"aria-label": "最短时长(分钟)",
@@ -72577,7 +72590,7 @@ function W1({ host: e, filters: t, commit: n = e.setDuration }) {
id: "durMax",
type: "range",
min: "0",
- max: N1,
+ max: M1,
step: "5",
value: d,
"aria-label": "最长时长(分钟)",
@@ -72591,8 +72604,8 @@ function W1({ host: e, filters: t, commit: n = e.setDuration }) {
});
}
// src/diagnostics-skeleton.ts
-function G1() {
- let e = (e) => ks({
+function W1() {
+ let e = (e) => Os({
label: e,
variant: "secondary",
attrs: "disabled data-skeleton-action"
@@ -72605,11 +72618,11 @@ function G1() {
</div></div>`;
}
// src/react/settings/library-policy-copy.ts
-var K1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", iMe = [
+var G1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", oMe = [
"自动补全",
"仅使用本地资料",
"自定义"
-], aMe = [
+], sMe = [
[
"读本地 NFO 和图片",
"✓",
@@ -72640,7 +72653,7 @@ var K1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
"—",
"可选"
]
-], oMe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", q1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", J1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", Y1 = "只填域名,留空用默认地址", sMe = [
+], cMe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", K1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", q1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", J1 = "只填域名,留空用默认地址", lMe = [
{
provider: "coomer",
label: "Coomer",
@@ -72730,8 +72743,8 @@ var K1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
label: "SubscribeStar",
requirement: "none"
}
-], X1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", cMe = "peach.configuration.shape.v1";
-function Z1() {
+], Y1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", uMe = "peach.configuration.shape.v1";
+function X1() {
try {
let e = JSON.parse(localStorage.getItem("peach.configuration.shape.v1") || "{}");
return e && typeof e == "object" ? e : {};
@@ -72739,31 +72752,31 @@ function Z1() {
return {};
}
}
-function lMe(e, t) {
+function dMe(e, t) {
try {
- let n = Z1();
+ let n = X1();
if (JSON.stringify(n[e]) === JSON.stringify(t)) return;
- localStorage.setItem(cMe, JSON.stringify({
+ localStorage.setItem(uMe, JSON.stringify({
...n,
[e]: t
}));
} catch {}
}
-var Q1 = (e) => Z1()[e], $1 = (e) => e === !0, e0 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, t0 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], n0 = "disabled data-skeleton-action", r0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, i0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, a0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, o0 = (e = "3em") => a0(e, "24px"), s0 = () => a0("var(--icon-inline)", "var(--icon-inline)"), c0 = (e, t = "primary", n = "medium") => ks({
+var Z1 = (e) => X1()[e], Q1 = (e) => e === !0, $1 = (e, t) => Number.isInteger(e) && e > 0 ? Math.min(e, t) : 0, e0 = (e, t, n) => Array.isArray(e) ? e.slice(0, t).map(n) : [], t0 = "disabled data-skeleton-action", n0 = (e = "60%") => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, r0 = (e = "100%") => `<span class="skeleton ui-configuration-skeleton-input" style="width:${e}"></span>`, i0 = (e, t) => `<span class="skeleton shrink-0" style="width:${e};height:${t}"></span>`, a0 = (e = "3em") => i0(e, "24px"), o0 = () => i0("var(--icon-inline)", "var(--icon-inline)"), s0 = (e, t = "primary", n = "medium") => Os({
label: e,
variant: t,
size: n,
- attrs: n0
-}), l0 = (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>`, u0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, uMe = (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">${s0()}${e}</span>` : e}</p>`;
+ attrs: t0
+}), c0 = (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>`, l0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, fMe = (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">${o0()}${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;
-}, d0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${uMe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? l0(n, i) : ""}</div></section>`, f0 = (e, t, n, r = "") => {
+}, u0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${fMe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? c0(n, i) : ""}</div></section>`, d0 = (e, t, n, r = "") => {
let i = `<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>`;
return `<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">${r ? `<div class="flex min-w-0 items-center gap-3">${r}${i}</div>` : i}${n}</div>`;
-}, p0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => f0(e, t, `<span class="skeleton ${n}"></span>`), m0 = (e, t = "", n = "4em") => f0(e, t, r0(n)), h0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, g0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, _0 = (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>${i0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, v0 = (e) => `<div class="flex flex-col gap-1">${g0(e)}${js(r0("8em"))}</div>`, y0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${a0("16px", "16px")}${e}</span>`, b0 = (e) => `<span class="inline-flex items-center gap-1">${s0()}${e}</span>`, x0 = (e, t = !1) => `<span class="flex w-fit items-center gap-1 text-body-2-medium text-text-secondary">${Es("chevron-right", `size-(--icon-inline) shrink-0${t ? " rotate-90" : ""}`)}${e}</span>`, dMe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), S0 = (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">${dMe.has(e) ? r0("100%") + r0("80%") + r0("6em") : r0("6em")}</dd></div>`).join("")}</dl>`, fMe = sMe;
-function pMe(e = Q1("credentials")) {
- let t = new Set(t0(e?.done, 64, String));
- return fMe.map((e) => {
+}, f0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => d0(e, t, `<span class="skeleton ${n}"></span>`), p0 = (e, t = "", n = "4em") => d0(e, t, n0(n)), m0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, h0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, g0 = (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>${r0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, _0 = (e) => `<div class="flex flex-col gap-1">${h0(e)}${As(n0("8em"))}</div>`, v0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${i0("16px", "16px")}${e}</span>`, y0 = (e) => `<span class="inline-flex items-center gap-1">${o0()}${e}</span>`, b0 = (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>`, pMe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), x0 = (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">${pMe.has(e) ? n0("100%") + n0("80%") + n0("6em") : n0("6em")}</dd></div>`).join("")}</dl>`, mMe = lMe;
+function hMe(e = Z1("credentials")) {
+ let t = new Set(e0(e?.done, 64, String));
+ return mMe.map((e) => {
let n = t.has(e.provider);
return {
...e,
@@ -72772,141 +72785,141 @@ function pMe(e = Q1("credentials")) {
};
});
}
-function mMe(e) {
- let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = o0() + (n && !e.done ? t.map(() => o0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${a0("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 ? h0(z(e.why)) : ""}</div>`;
- let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + h0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? h0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => _0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${c0("保存配置")}</div>${x0("凭据文件")}</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>${x0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
+function gMe(e) {
+ let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = a0() + (n && !e.done ? t.map(() => a0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${i0("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 ? m0(z(e.why)) : ""}</div>`;
+ let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + m0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? m0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => g0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${s0("保存配置")}</div>${b0("凭据文件")}</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>${b0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
}
-function C0() {
- let e = pMe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
- return d0("来源凭据", u0(`<div class="flex flex-col gap-4">${[
+function S0() {
+ let e = hMe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
+ return u0("来源凭据", l0(`<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(mMe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? r0("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(gMe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? n0("5em") : "" });
}
-function w0() {
- let e = t0(Q1("indexers")?.open, 20, $1).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">${Es("chevron-right", `size-(--icon-inline) shrink-0 text-text-secondary${e ? " rotate-90" : ""}`)}${r0("6em")}${r0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${_0("名称")}${_0("Torznab 地址")}${_0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${y0("启用")}${c0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
- return d0("资源搜索", u0(`<div class="flex min-w-0 flex-col gap-4">${x0("索引器连接帮助")}${e}</div>`), c0("添加索引器", "secondary") + c0("保存配置"));
+function C0() {
+ let e = e0(Z1("indexers")?.open, 20, Q1).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" : ""}`)}${n0("6em")}${n0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${g0("名称")}${g0("Torznab 地址")}${g0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${v0("启用")}${s0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
+ return u0("资源搜索", l0(`<div class="flex min-w-0 flex-col gap-4">${b0("索引器连接帮助")}${e}</div>`), s0("添加索引器", "secondary") + s0("保存配置"));
}
-function T0() {
- let e = Q1("javBrowser"), t = $1(e?.enabled);
- return d0("浏览器添加 JAV", u0(`<div class="flex min-w-0 flex-col gap-4">${`<div class="min-w-0 bg-background-primary-default rounded-2xl shadow-card p-5 border border-border-button-default flex flex-col gap-3"><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-medium text-text-primary">Peach 用户脚本</span>${r0("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${o0()}</div><p class="text-caption-1-regular text-text-secondary">${r0("70%")}</p><div class="flex flex-wrap items-center gap-2">${c0("重新检测", "secondary")}</div></div>`}${v0("浏览器添加的下载渠道")}${$1(e?.ready) ? "" : h0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${_0("Peach 地址")}</div>`), (t ? c0("关闭浏览器添加", "secondary") : "") + c0(t ? "更新渠道与令牌" : "启用并生成令牌"));
+function w0() {
+ let e = Z1("javBrowser"), t = Q1(e?.enabled);
+ return u0("浏览器添加 JAV", l0(`<div class="flex min-w-0 flex-col gap-4">${`<div class="min-w-0 bg-background-primary-default rounded-2xl shadow-card p-5 border border-border-button-default flex flex-col gap-3"><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-medium text-text-primary">Peach 用户脚本</span>${n0("4em")}</div><div class="flex flex-wrap items-center justify-between gap-3"><span class="text-body-regular text-text-secondary">浏览器添加</span>${a0()}</div><p class="text-caption-1-regular text-text-secondary">${n0("70%")}</p><div class="flex flex-wrap items-center gap-2">${s0("重新检测", "secondary")}</div></div>`}${_0("浏览器添加的下载渠道")}${Q1(e?.ready) ? "" : m0("请在媒体库中添加支持云下载的网盘,并配置账号与目标目录。")}${g0("Peach 地址")}</div>`), (t ? s0("关闭浏览器添加", "secondary") : "") + s0(t ? "更新渠道与令牌" : "启用并生成令牌"));
}
-var E0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${g0(e)}${js(r0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${_0(`${e}地址`)}</div><div class="w-full sm:w-28">${_0(`${e}端口`)}</div></div>${x0("代理认证")}` : "") + "</div>";
-function D0() {
- let e = Q1("cloudProxy"), t = t0(e?.accounts, 12, (e) => Array.isArray(e) ? [$1(e[0]), $1(e[1])] : [!1, !1]), n = e0(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${g0(b0(r0("6em")))}${h0(r0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${g0(b0(r0("8em")))}${h0(r0("50%"))}${E0("数据代理", e)}${E0("API 代理", t)}<div class="flex justify-end">${c0("保存配置")}</div></div>`).join("") : h0(r0("60%"));
- return d0("CloudDrive 代理", u0(`${h0(X1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), c0("重新读取", "secondary"));
+var T0 = (e, t) => `<div class="flex min-w-0 flex-col gap-3">${h0(e)}${As(n0("6em"))}` + (t ? `<div class="flex flex-wrap gap-3"><div class="min-w-40 flex-1">${g0(`${e}地址`)}</div><div class="w-full sm:w-28">${g0(`${e}端口`)}</div></div>${b0("代理认证")}` : "") + "</div>";
+function E0() {
+ let e = Z1("cloudProxy"), t = e0(e?.accounts, 12, (e) => Array.isArray(e) ? [Q1(e[0]), Q1(e[1])] : [!1, !1]), n = $1(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${h0(y0(n0("6em")))}${m0(n0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${h0(y0(n0("8em")))}${m0(n0("50%"))}${T0("数据代理", e)}${T0("API 代理", t)}<div class="flex justify-end">${s0("保存配置")}</div></div>`).join("") : m0(n0("60%"));
+ return u0("CloudDrive 代理", l0(`${m0(Y1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), s0("重新读取", "secondary"));
}
-var O0 = (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>`, hMe = (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">${i0()}</span>${ks({
+var D0 = (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>`, _Me = (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">${r0()}</span>${Os({
glyph: "folder-search",
variant: "secondary",
- attrs: n0
+ attrs: t0
})}</div>
- <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${O0("来源", js(r0("6em")), "w-full @lg:w-60")}${O0("读取策略", js(r0("4em")), "w-full @lg:w-32")}${e > 1 ? O0("移到媒体库", js(r0("4em")), "w-full @lg:w-48") : ""}</div></div>
- </div>`, gMe = (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>${ks({
+ <div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${D0("来源", As(n0("6em")), "w-full @lg:w-60")}${D0("读取策略", As(n0("4em")), "w-full @lg:w-32")}${e > 1 ? D0("移到媒体库", As(n0("4em")), "w-full @lg:w-48") : ""}</div></div>
+ </div>`, vMe = (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: n0
-})}${i0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${js(r0("4em"), { prefix: "处理方式" })}</div>
- <div data-library-folders>${hMe(t).repeat(e)}<div class="flex">${ks({
+ attrs: t0
+})}${r0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${As(n0("4em"), { prefix: "处理方式" })}</div>
+ <div data-library-folders>${_Me(t).repeat(e)}<div class="flex">${Os({
label: "添加文件夹",
variant: "secondary",
- attrs: n0
-})}</div></div></div>`, _Me = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${K1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, vMe = "<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 yMe(e = Q1("media")) {
- let t = t0(e?.folders, 12, (e) => e0(e, 50)).filter(Boolean);
+ attrs: t0
+})}</div></div></div>`, yMe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${G1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, bMe = "<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 xMe(e = Z1("media")) {
+ let t = e0(e?.folders, 12, (e) => $1(e, 50)).filter(Boolean);
return t.length ? {
folders: t,
- cloud: $1(e?.cloud)
+ cloud: Q1(e?.cloud)
} : {
folders: [1],
cloud: !1
};
}
-function bMe() {
- let e = Q1("discovery"), t = $1(e?.enabled), n = t && $1(e?.cloud), r = n && $1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${i0()}</span>${js(r0("4em"), { prefix: "对应目录" })}${ks({
+function SMe() {
+ let e = Z1("discovery"), t = Q1(e?.enabled), n = t && Q1(e?.cloud), r = n && Q1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${r0()}</span>${As(n0("4em"), { prefix: "对应目录" })}${Os({
glyph: "trash",
variant: "secondary",
- attrs: n0
+ attrs: t0
})}</div>`;
- return d0("自动发现新文件", u0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${o0()}</div>`) + p0("发现新文件后自动入库", t ? r0("10em") : "") + p0("监视本机文件夹", t && $1(e?.watchLocal) ? r0("12em") : "") + p0("接收 CloudDrive2 通知", "网盘目录有变化时由 CloudDrive2 推送过来。") + (n ? f0("Webhook 配置", r0("20em"), "") : "") + (r ? u0(x0("查看配置"), !0) : "") + (n ? u0(`<div class="flex flex-col gap-3">${g0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(e0(e?.prefixes, 20))}</div><div>${c0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? c0("更换密钥", "secondary") : "") + c0("保存配置"));
-}
-var xMe = () => {
- let e = yMe();
- return d0("媒体库与目录", u0(`${_Me}<div class="flex flex-col gap-4">${e.folders.map((t) => gMe(t, e.folders.length)).join("")}</div>
- <div class="self-start">${c0("添加媒体库", "secondary")}</div>
- <p class="text-body-2-regular text-text-secondary">${q1}</p>
- ${e.cloud ? vMe : ""}<span class="text-body-medium text-text-primary">${r0("15em")}</span>`), c0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? D0() : "") + bMe() + d0("番号识别规则", u0(`${r0("90%")}${r0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), c0("保存配置")) + d0("视频预览", p0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + p0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + p0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
-}, SMe = () => `<div>${c0("采集来源与登录状态", "secondary")}</div>` + C0() + d0("关注采集", f0("自动检查更新", "", "<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>") + m0("订阅源拉取") + p0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + m0("头像刷新", "重新获取关注创作者的头像。") + m0("favicon 刷新", "重新获取来源站点的图标。")) + w0() + d0("作品资料站点", u0(`<p class="text-body-2-regular text-text-secondary">${J1}</p>${_0(b0("JavDB 地址"), Y1)}${_0(b0("MISSAV 地址"), Y1)}`), c0("保存配置")), CMe = () => {
- let e = Q1("downloads"), t = $1(e?.pikpak), n = $1(e?.pikpakRoots) ? v0(b0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${g0(b0("PikPak 根目录对应的媒体目录"))}${h0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = $1(e?.cloud) ? d0("云下载", u0(_0("CloudDrive2 地址") + _0("CloudDrive2 API 令牌", "需要离线任务权限。") + ($1(e?.has115) ? _0(b0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? _0(b0("PikPak 目标目录"), "目录要已经存在。") + n : "") + _0("等待上限(小时)", r0("14em"))), c0("检查连接", "secondary") + c0("保存配置")) : "", i = $1(e?.pikpakLoggedIn);
- return r + (t ? d0("PikPak 账号", i ? S0(["账号", r0("4em")]) : u0(_0("账号") + _0("密码") + y0("保存密码,登录过期时自动重新登录")), i ? c0("登出", "secondary") : ($1(e?.browserLogin) ? c0("用浏览器登录", "secondary") : "") + c0("登录"), {
- aside: o0(),
+ return u0("自动发现新文件", l0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${a0()}</div>`) + f0("发现新文件后自动入库", t ? n0("10em") : "") + f0("监视本机文件夹", t && Q1(e?.watchLocal) ? n0("12em") : "") + f0("接收 CloudDrive2 通知", "网盘目录有变化时由 CloudDrive2 推送过来。") + (n ? d0("Webhook 配置", n0("20em"), "") : "") + (r ? l0(b0("查看配置"), !0) : "") + (n ? l0(`<div class="flex flex-col gap-3">${h0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat($1(e?.prefixes, 20))}</div><div>${s0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? s0("更换密钥", "secondary") : "") + s0("保存配置"));
+}
+var CMe = () => {
+ let e = xMe();
+ return u0("媒体库与目录", l0(`${yMe}<div class="flex flex-col gap-4">${e.folders.map((t) => vMe(t, e.folders.length)).join("")}</div>
+ <div class="self-start">${s0("添加媒体库", "secondary")}</div>
+ <p class="text-body-2-regular text-text-secondary">${K1}</p>
+ ${e.cloud ? bMe : ""}<span class="text-body-medium text-text-primary">${n0("15em")}</span>`), s0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? E0() : "") + SMe() + u0("番号识别规则", l0(`${n0("90%")}${n0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), s0("保存配置")) + u0("视频预览", f0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + f0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + f0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
+}, wMe = () => `<div>${s0("采集来源与登录状态", "secondary")}</div>` + S0() + u0("关注采集", d0("自动检查更新", "", "<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>") + p0("订阅源拉取") + f0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + p0("头像刷新", "重新获取关注创作者的头像。") + p0("favicon 刷新", "重新获取来源站点的图标。")) + C0() + u0("作品资料站点", l0(`<p class="text-body-2-regular text-text-secondary">${q1}</p>${g0(y0("JavDB 地址"), J1)}${g0(y0("MISSAV 地址"), J1)}`), s0("保存配置")), TMe = () => {
+ let e = Z1("downloads"), t = Q1(e?.pikpak), n = Q1(e?.pikpakRoots) ? _0(y0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${h0(y0("PikPak 根目录对应的媒体目录"))}${m0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = Q1(e?.cloud) ? u0("云下载", l0(g0("CloudDrive2 地址") + g0("CloudDrive2 API 令牌", "需要离线任务权限。") + (Q1(e?.has115) ? g0(y0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? g0(y0("PikPak 目标目录"), "目录要已经存在。") + n : "") + g0("等待上限(小时)", n0("14em"))), s0("检查连接", "secondary") + s0("保存配置")) : "", i = Q1(e?.pikpakLoggedIn);
+ return r + (t ? u0("PikPak 账号", i ? x0(["账号", n0("4em")]) : l0(g0("账号") + g0("密码") + v0("保存密码,登录过期时自动重新登录")), i ? s0("登出", "secondary") : (Q1(e?.browserLogin) ? s0("用浏览器登录", "secondary") : "") + s0("登录"), {
+ aside: a0(),
mark: !0
- }) : "") + T0();
-}, k0 = {
+ }) : "") + w0();
+}, O0 = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
-}, A0 = {
+}, k0 = {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function wMe(e) {
- let t = e === "locked" ? "" : _0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + _0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
- return (k0[e] ? h0(k0[e]) : "") + (e === "open" ? a0("100%", "64px") : "") + (e === "password" || e === "legacy" ? y0("关闭访问密码") : "") + (e === "password" ? _0("当前访问密码 *") : "") + t;
+function EMe(e) {
+ let t = e === "locked" ? "" : g0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + g0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
+ return (O0[e] ? m0(O0[e]) : "") + (e === "open" ? i0("100%", "64px") : "") + (e === "password" || e === "legacy" ? v0("关闭访问密码") : "") + (e === "password" ? g0("当前访问密码 *") : "") + t;
}
-function j0() {
- let e = Q1("devices");
- return d0("已登录的设备", Array.from({ length: Math.max(1, e0(e?.rows, 8)) }, () => f0(r0("8em"), r0("14em"), r0("3em"), a0("20px", "20px"))).join(""), $1(e?.manageable) ? c0("撤销其他设备", "secondary") : "", $1(e?.manageable) ? { status: "修改访问密码会让全部设备退出。" } : {});
+function A0() {
+ let e = Z1("devices");
+ return u0("已登录的设备", Array.from({ length: Math.max(1, $1(e?.rows, 8)) }, () => d0(n0("8em"), n0("14em"), n0("3em"), i0("20px", "20px"))).join(""), Q1(e?.manageable) ? s0("撤销其他设备", "secondary") : "", Q1(e?.manageable) ? { status: "修改访问密码会让全部设备退出。" } : {});
}
-var TMe = () => {
- let e = Q1("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = $1(e?.tunnelNamed), r = (n && $1(e?.tunnelNamedMode) ? h0(A0.named) + _0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + _0("隧道令牌", r0("16em")) : h0(A0.quick)) + ($1(e?.tunnelNote) ? a0("100%", "64px") : ""), i = e0(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">${_0([
+var DMe = () => {
+ let e = Z1("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = Q1(e?.tunnelNamed), r = (n && Q1(e?.tunnelNamedMode) ? m0(k0.named) + g0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + g0("隧道令牌", n0("16em")) : m0(k0.quick)) + (Q1(e?.tunnelNote) ? i0("100%", "64px") : ""), i = $1(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">${g0([
"本机地址",
"手机连接地址",
"备用 IP 地址"
- ][t])}</div>${c0("复制地址", "secondary")}</div>`).join("");
- return (i || $1(e?.port) ? d0("访问地址", u0(a + (i ? a0("100%", "40px") : "") + ($1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${g0("谁可以访问")}${a0("min(100%, 20em)", "36px")}</div>` + ($1(e?.lan) ? _0("局域网访问地址") : "") : "") + ($1(e?.port) ? _0("端口") : "")), $1(e?.port) ? c0("保存配置") : "", $1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + d0("访问密码", u0(wMe(t)), t === "locked" ? "" : c0("保存配置")) + (t === "password" || t === "legacy" ? j0() : "") + d0("Cloudflare 公网入口", u0((n ? a0("10.5em", "36px") : "") + r), c0("启动公网入口", n ? "secondary" : "primary") + (n ? c0("保存配置") : ""), { aside: o0() }) + d0("Peach 代理", p0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + ($1(e?.proxyAddress) ? u0(_0("代理地址"), !0) : ""), c0("保存配置"));
-}, EMe = [
+ ][t])}</div>${s0("复制地址", "secondary")}</div>`).join("");
+ return (i || Q1(e?.port) ? u0("访问地址", l0(a + (i ? i0("100%", "40px") : "") + (Q1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${h0("谁可以访问")}${i0("min(100%, 20em)", "36px")}</div>` + (Q1(e?.lan) ? g0("局域网访问地址") : "") : "") + (Q1(e?.port) ? g0("端口") : "")), Q1(e?.port) ? s0("保存配置") : "", Q1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + u0("访问密码", l0(EMe(t)), t === "locked" ? "" : s0("保存配置")) + (t === "password" || t === "legacy" ? A0() : "") + u0("Cloudflare 公网入口", l0((n ? i0("10.5em", "36px") : "") + r), s0("启动公网入口", n ? "secondary" : "primary") + (n ? s0("保存配置") : ""), { aside: a0() }) + u0("Peach 代理", f0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + (Q1(e?.proxyAddress) ? l0(g0("代理地址"), !0) : ""), s0("保存配置"));
+}, OMe = [
"版本",
"操作系统",
"数据目录",
"设置文件",
"日志目录"
-], DMe = () => {
- let e = Q1("maintenance"), t = [
+], kMe = () => {
+ let e = Z1("maintenance"), t = [
"当前版本",
"安装方式",
"更新通道",
"最新版本",
"下载内容"
- ].slice(0, Math.max(4, e0(e?.releaseFacts, 5))), n = e0(e?.releaseNotes, 4), r = e0(e?.storageRows, 12), i = e0(e?.storageNotes, 3), a = t0(e?.facts, 12, (e) => z(String(e))), o = `<span class="self-start">${o0("6em")}</span>`, s = (t) => !e || $1(t), c = s(e?.reporting) ? p0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + ($1(e?.reportingIdle) ? u0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${p0("上传馆藏与口味明细", $1(e?.sharingNotice) ? r0("12em") : "")}${$1(e?.sharingIdle) ? u0(o, !0) : ""}${l0(c0("预览上传内容", "secondary"))}</div>` : "";
- return d0("检查更新", S0(t) + (n ? u0(h0(r0("50%")).repeat(n), !0) : ""), c0("检查更新"), {
- aside: o0("4em"),
- status: r0("5em")
- }) + d0("自动更新", p0("自动检查新版本") + p0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + p0("检查频率", $1(e?.autoUpdateHelp) ? r0("12em") : "", "ui-configuration-skeleton-select"), c0("保存配置")) + d0("开机自启", p0("开机后启动 Peach") + p0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + p0("在桌面创建快捷方式", $1(e?.desktopNote) ? r0("12em") : "") + ($1(e?.startupNote) ? u0(h0(r0("60%")), !0) : ""), c0("保存配置")) + d0("视频播放", p0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + d0("存储空间", S0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => f0(r0("6em"), "", r0("4em"))).join("") : u0(h0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? u0(h0(r0("80%")).repeat(i), !0) : ""), c0("更改位置", "secondary") + c0(r ? "重新统计" : "统计占用")) + (c || l ? d0("数据上传", c + l) : "") + d0("运行信息", S0(a.length ? a : EMe)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${f0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", c0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? d0("卸载 Peach", ($1(e?.uninstallHelp) ? u0(h0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + p0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + u0(x0("数据目录"), !0), c0("卸载 Peach"), { status: r0("16em") }) : "");
+ ].slice(0, Math.max(4, $1(e?.releaseFacts, 5))), n = $1(e?.releaseNotes, 4), r = $1(e?.storageRows, 12), i = $1(e?.storageNotes, 3), a = e0(e?.facts, 12, (e) => z(String(e))), o = `<span class="self-start">${a0("6em")}</span>`, s = (t) => !e || Q1(t), c = s(e?.reporting) ? f0("发送版本统计与错误诊断(推荐)", "上传版本、系统信息、故障类型、代码位置与发生次数。") + (Q1(e?.reportingIdle) ? l0(o, !0) : "") : "", l = s(e?.sharing) ? `<div class="border-t border-separator-border">${f0("上传馆藏与口味明细", Q1(e?.sharingNotice) ? n0("12em") : "")}${Q1(e?.sharingIdle) ? l0(o, !0) : ""}${c0(s0("预览上传内容", "secondary"))}</div>` : "";
+ return u0("检查更新", x0(t) + (n ? l0(m0(n0("50%")).repeat(n), !0) : ""), s0("检查更新"), {
+ aside: a0("4em"),
+ status: n0("5em")
+ }) + u0("自动更新", f0("自动检查新版本") + f0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + f0("检查频率", Q1(e?.autoUpdateHelp) ? n0("12em") : "", "ui-configuration-skeleton-select"), s0("保存配置")) + u0("开机自启", f0("开机后启动 Peach") + f0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + f0("在桌面创建快捷方式", Q1(e?.desktopNote) ? n0("12em") : "") + (Q1(e?.startupNote) ? l0(m0(n0("60%")), !0) : ""), s0("保存配置")) + u0("视频播放", f0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + u0("存储空间", x0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => d0(n0("6em"), "", n0("4em"))).join("") : l0(m0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? l0(m0(n0("80%")).repeat(i), !0) : ""), s0("更改位置", "secondary") + s0(r ? "重新统计" : "统计占用")) + (c || l ? u0("数据上传", c + l) : "") + u0("运行信息", x0(a.length ? a : OMe)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${d0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", s0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? u0("卸载 Peach", (Q1(e?.uninstallHelp) ? l0(m0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + f0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + l0(b0("数据目录"), !0), s0("卸载 Peach"), { status: n0("16em") }) : "");
};
-function OMe(e) {
+function AMe(e) {
switch (e) {
- case "系统诊断": return G1();
- case "来源与订阅": return SMe();
- case "下载渠道": return CMe();
- case "网络与访问": return TMe();
- case "应用与维护": return DMe();
- default: return xMe();
+ case "系统诊断": return W1();
+ case "来源与订阅": return wMe();
+ case "下载渠道": return TMe();
+ case "网络与访问": return DMe();
+ case "应用与维护": return kMe();
+ default: return CMe();
}
}
-function kMe(e = "媒体库与入库") {
- return `<div class="peach-react"><div class="ui-configpage">${`<div class="ui-board-local-nav" data-section-nav data-section-items>${Object.values(Af).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">${OMe(e)}</div></div></div>`;
+function jMe(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">${AMe(e)}</div></div></div>`;
}
// src/filter-controls-skeleton.ts
-var M0 = (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>` : Es(e, "size-4 shrink-0"), N0 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", P0 = (e, t, n) => `<span data-entity-layout="" class="${rU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${iU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${N0}>${M0(r)}</span>`).join("")}</span>`;
-function F0(e, t, { folders: n = !0 } = {}) {
- let r = nG(), i = new URLSearchParams(location.search), a = t && r === "cards" ? P0(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")}" ${N0}>${M0("ri-folder-3-line")}</button>` : "";
- return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${N0}>${M0("shuffle")}</button>${a}${P0("馆藏显示方式", r, [[
+var j0 = (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"), M0 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", N0 = (e, t, n) => `<span data-entity-layout="" class="${nU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${rU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${M0}>${j0(r)}</span>`).join("")}</span>`;
+function P0(e, t, { folders: n = !0 } = {}) {
+ let r = tG(), i = new URLSearchParams(location.search), a = t && r === "cards" ? N0(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")}" ${M0}>${j0("ri-folder-3-line")}</button>` : "";
+ return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${M0}>${j0("shuffle")}</button>${a}${N0("馆藏显示方式", r, [[
"cards",
"卡片",
"ri-layout-grid-line"
@@ -72914,21 +72927,21 @@ function F0(e, t, { folders: n = !0 } = {}) {
"list",
"列表",
"ri-list-unordered"
- ]])}${o}${e.map((e) => `<button type="button" data-entity-sort="${z(e.key)}" aria-pressed="${e.pressed}" ${N0}>${z(e.label)}${e.dir ? M0(e.dir === "asc" ? "arrow-up" : "arrow-down") : ""}</button>`).join("")}</span>`;
+ ]])}${o}${e.map((e) => `<button type="button" data-entity-sort="${z(e.key)}" aria-pressed="${e.pressed}" ${M0}>${z(e.label)}${e.dir ? j0(e.dir === "asc" ? "arrow-up" : "arrow-down") : ""}</button>`).join("")}</span>`;
}
// src/catalog-filter-skeleton.ts
-var I0 = 64, L0 = (e) => e.replace(/[&<>"]/g, (e) => ({
+var F0 = 64, I0 = (e) => e.replace(/[&<>"]/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;"
-})[e]), AMe = (e) => e.repeat(I0), R0 = (e) => AMe(`<span data-catalog-placeholder="${e}" aria-hidden="true"><span></span><span>&nbsp;</span></span>`);
-function jMe(e, t, n) {
- let r = e.map((e) => `<a href="${L0(e.href)}" data-catalog-view="${L0(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${L0(e.label)}</a>`).join(""), i = jG();
- 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">${R0("performer")}</div>` : "") + (i.studios ? `<div data-catalog-tier="studios">${R0("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(I0) + `</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>${Ds()}</span>` + (n ? F0(n.sorts, n.layout) : "") + "</div></div></div></div>";
+})[e]), MMe = (e) => e.repeat(F0), L0 = (e) => MMe(`<span data-catalog-placeholder="${e}" aria-hidden="true"><span></span><span>&nbsp;</span></span>`);
+function NMe(e, t, n) {
+ let r = e.map((e) => `<a href="${I0(e.href)}" data-catalog-view="${I0(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${I0(e.label)}</a>`).join(""), i = AG();
+ 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">${L0("performer")}</div>` : "") + (i.studios ? `<div data-catalog-tier="studios">${L0("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(F0) + `</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 ? P0(n.sorts, n.layout) : "") + "</div></div></div></div>";
}
// src/react/jav/release-table-columns.ts
-var z0 = "peach.table.jav-releases.widths.v1", B0 = "peach.table.jav-releases.visibility.v1", MMe = {
+var R0 = "peach.table.jav-releases.widths.v1", z0 = "peach.table.jav-releases.visibility.v1", PMe = {
name: {
width: 300,
min: 240,
@@ -72974,7 +72987,7 @@ var z0 = "peach.table.jav-releases.widths.v1", B0 = "peach.table.jav-releases.vi
min: 112,
max: 320
}
-}, NMe = {
+}, FMe = {
name: "作品",
people: "艺人",
studio: "厂牌",
@@ -72984,12 +72997,12 @@ var z0 = "peach.table.jav-releases.widths.v1", B0 = "peach.table.jav-releases.vi
score: "来源评分",
release: "发行时间",
actions: "操作"
-}, PMe = {
+}, IMe = {
code: "code",
dur: "duration",
score: "source_score",
release: "release_date"
-}, V0 = [
+}, B0 = [
"name",
"people",
"studio",
@@ -73001,18 +73014,18 @@ var z0 = "peach.table.jav-releases.widths.v1", B0 = "peach.table.jav-releases.vi
"code"
].map((e) => ({
id: e,
- label: NMe[e],
- ...MMe[e],
+ label: FMe[e],
+ ...PMe[e],
flex: e === "name",
required: e === "name",
visible: e !== "code"
}));
-function FMe() {
- return AJ(V0, z0, B0);
+function LMe() {
+ return kJ(B0, R0, z0);
}
// src/jav-skeleton.ts
-var H0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, IMe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, U0 = "w-full min-w-0";
-function W0() {
+var V0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, RMe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, H0 = "w-full min-w-0";
+function U0() {
return [
"w-20",
"w-16",
@@ -73022,83 +73035,83 @@ function W0() {
"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 G0(e, t = uM()) {
- if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${H0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${IMe("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">${H0("80%")}${H0("60%")}${H0("40%")}</div></div>`).join("")}</div>`;
- let n = vM({
- ..._M({
+function W0(e, t = lM()) {
+ if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${V0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${RMe("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">${V0("80%")}${V0("60%")}${V0("40%")}</div></div>`).join("")}</div>`;
+ let n = _M({
+ ...gM({
active: !0,
home: !1,
portrait: !1
}),
size: t
});
- return `<div data-media-grid class="${U0}" data-skeleton="jav-discover">${Array.from({ length: 6 }, () => `<div data-jav-skeleton-card data-media-card data-jav-card class="flex min-w-0 flex-col gap-3">
+ return `<div data-media-grid class="${H0}" data-skeleton="jav-discover">${Array.from({ length: 6 }, () => `<div data-jav-skeleton-card data-media-card data-jav-card class="flex min-w-0 flex-col gap-3">
<span data-jav-skeleton-cover class="skeleton block w-full rounded-2lg" style="aspect-ratio:${n}"></span>
<div data-media-meta><span data-jav-skeleton-avatar class="skeleton block shrink-0"></span><div data-media-text>
- <div data-media-title>${H0("85%")}${H0("65%")}</div><div data-media-byline>${H0("55%")}</div>
+ <div data-media-title>${V0("85%")}${V0("65%")}</div><div data-media-byline>${V0("55%")}</div>
<div data-media-tags><span class="skeleton block h-5 w-20 rounded-md"></span><span class="skeleton block h-5 w-24 rounded-md"></span></div>
</div></div>
<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 LMe = {
+var zMe = {
releases: "筛选新作",
discover: "筛选推荐",
wants: "筛选想要"
};
-function RMe(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>${H0("100%")}</div>${G0(e)}` : e === "releases" ? `<section class="flex min-w-0 flex-col gap-4">${zMe()}${nG() === "list" ? `<div data-catalog-table>${PJ(FMe())}</div>` : G0(e)}</section>` : `<section class="flex min-w-0 flex-col gap-4">${BMe()}${G0(e)}</section>`;
+function BMe(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>${V0("100%")}</div>${W0(e)}` : e === "releases" ? `<section class="flex min-w-0 flex-col gap-4">${VMe()}${tG() === "list" ? `<div data-catalog-table>${NJ(LMe())}</div>` : W0(e)}</section>` : `<section class="flex min-w-0 flex-col gap-4">${HMe()}${W0(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">${Os("", t, LMe[e] || "筛选")}</div>${ks({
+ <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, zMe[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">${aU.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">${iU.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 zMe() {
- let e = new URLSearchParams(location.search), t = e.get("sort") || "release_date", n = e.get("dir") === "asc" ? "asc" : "desc", r = sW.map(([e, r, i]) => ({
+function VMe() {
+ let e = new URLSearchParams(location.search), t = e.get("sort") || "release_date", n = e.get("dir") === "asc" ? "asc" : "desc", r = oW.map(([e, r, i]) => ({
key: e,
label: r,
ariaLabel: i,
pressed: e === t,
dir: e === t ? n : ""
}));
- return `<div data-catalog-tiers="" aria-busy="true"><div data-catalog-tier="performers" data-skeleton="tiers">${R0("performer")}</div><div data-catalog-tier="studios">${R0("studio")}</div></div>
+ return `<div data-catalog-tiers="" aria-busy="true"><div data-catalog-tier="performers" data-skeleton="tiers">${L0("performer")}</div><div data-catalog-tier="studios">${L0("studio")}</div></div>
<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-tags>${W0()}</div></div>
+ <div data-catalog-scroll><div data-catalog-tags>${U0()}</div></div>
</div>
<div data-filter-row="bottom" aria-busy="true" class="flex min-h-12 min-w-0 items-center gap-3 px-3 py-2">
<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>
- ${F0(r, {
+ ${P0(r, {
name: "jav-layout",
label: "JAV 卡片版式",
- value: uM(),
- options: aM
+ value: lM(),
+ options: iM
}, { folders: !1 })}
</div>
</div>`;
}
-function BMe() {
- 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="" ${uM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Es(t, "size-4")}</span>`;
+function HMe() {
+ 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="" ${lM() === 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>${W0()}</div></div>
+ <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>${U0()}</div></div>
</div>
<div data-filter-row="bottom" aria-busy="true" class="flex min-h-12 min-w-0 items-center gap-3 px-3 py-2">
<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>
- ${Ds()}
- <span data-entity-sorts><button type="button" data-entity-batch data-filter-action data-skeleton-action data-jav-metadata-update title="更新资料" aria-label="更新资料" disabled>${Es("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>
- ${oW.map(([e, t]) => `<button type="button" data-entity-sort="${e}" data-entity-press aria-pressed="${e === "taste"}">${t}${e === "taste" ? Es("arrow-down", "size-3.5") : ""}</button>`).join("")}
+ ${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>
+ ${aW.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 K0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", q0 = (e = "60%") => `<span class="${K0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, J0 = "disabled data-skeleton-action", Y0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
-function VMe() {
+var G0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", K0 = (e = "60%") => `<span class="${G0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, q0 = "disabled data-skeleton-action", J0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
+function UMe() {
let e = [
"馆藏视频",
"看过",
@@ -73106,27 +73119,27 @@ function VMe() {
"使用空间"
].map((e, t) => `
<div class="min-w-0 rounded-2xl shadow-card flex flex-col overflow-hidden pt-4 text-left ${t === 0 ? "ring-2 ring-border-focus-ring bg-background-primary-default" : "bg-background-secondary-default"}">
- <span class="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"><i class="${K0} size-7 max-sm:size-6"></i>${e}</span>
- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3 max-sm:text-title-3-medium">${q0("4em")}</b>
- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${q0("6em")}</small>
- </div>`).join(""), t = (e) => `<section class="${Y0}" data-stats-chart>
- <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${q0("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
+ <span class="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"><i class="${G0} size-7 max-sm:size-6"></i>${e}</span>
+ <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3 max-sm:text-title-3-medium">${K0("4em")}</b>
+ <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${K0("6em")}</small>
+ </div>`).join(""), t = (e) => `<section class="${J0}" data-stats-chart>
+ <header class="flex flex-wrap items-end justify-between gap-x-4 gap-y-1"><span class="flex min-w-0 flex-col gap-1"><h3 class="text-title-2-medium text-text-primary">${e}</h3><b class="text-display-4-medium">${K0("4em")}</b></span><small class="text-caption-1-regular text-text-secondary">个视频</small></header>
<svg class="h-75 w-full max-sm:h-65 text-background-tertiary-default" viewBox="0 0 200 200" fill="none" stroke="currentColor" stroke-width="12">${[
76,
54,
32
].map((e) => `<circle cx="100" cy="100" r="${e}"/>`).join("")}</svg>
- <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${q0()}</span><b class="text-title-2-medium">${q0("3em")}</b><small class="text-caption-1-regular">${q0()}</small></div>`).join("")}</div>
+ <div class="inline-grid w-full grid-cols-3 gap-2 max-sm:grid-cols-2">${Array.from({ length: 3 }, () => `<div class="flex min-w-0 flex-col gap-1 rounded-xl bg-background-tertiary-default p-2.5"><span class="text-caption-1-regular">${K0()}</span><b class="text-title-2-medium">${K0("3em")}</b><small class="text-caption-1-regular">${K0()}</small></div>`).join("")}</div>
</section>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
- <p class="text-caption-1-regular text-text-secondary">数据库中的当前统计 · ${q0("12em")}</p>
+ <p class="text-caption-1-regular text-text-secondary">数据库中的当前统计 · ${K0("12em")}</p>
<div class="flex flex-col gap-4"><div class="inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4" data-stats-metrics>${e}</div>
<div class="flex flex-col gap-5"><div class="inline-grid w-full gap-5 md:grid-cols-2">${t("网盘与本地")}${t("媒体库")}</div>
<div class="inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3">${[
"时长",
"画质",
"文件类型"
- ].map((e) => `<section class="${Y0}"><h3 class="text-title-2-medium">${e}</h3><div class="${K0} h-64"></div></section>`).join("")}</div>
+ ].map((e) => `<section class="${J0}"><h3 class="text-title-2-medium">${e}</h3><div class="${G0} h-64"></div></section>`).join("")}</div>
</div>
</div>
<section class="rounded-surface bg-background-secondary-default dark:bg-background-primary-default">
@@ -73135,11 +73148,11 @@ function VMe() {
"最近看过",
"标签来源"
].map((e) => `<span>${e}</span>`).join("")}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${K0} h-7"></div>`).join("")}</div>
+ <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${G0} h-7"></div>`).join("")}</div>
</section>
</div></div>`;
}
-function HMe() {
+function WMe() {
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 = [
"浏览记录",
"口味维度",
@@ -73147,20 +73160,20 @@ function HMe() {
"私有导出"
].map((e) => `
<div class="min-w-0 rounded-2xl shadow-card bg-background-secondary-default flex flex-col overflow-hidden pt-4 text-left">
- <span class="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"><i class="${K0} size-7 max-sm:size-6"></i>${e}</span>
- <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${q0("4em")}</b>
- <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${q0("6em")}</small>
- </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${K0} h-6"></div>`).join(""), r = (e) => `<section class="${Y0}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${K0} h-40"></div></section>`;
+ <span class="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"><i class="${G0} size-7 max-sm:size-6"></i>${e}</span>
+ <b class="px-4 pt-3 pb-4 text-title-1-medium max-sm:px-3 max-sm:pb-3">${K0("4em")}</b>
+ <small class="mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular max-sm:px-3 max-sm:py-2">${K0("6em")}</small>
+ </div>`).join(""), n = Array.from({ length: 6 }, () => `<div class="${G0} h-6"></div>`).join(""), r = (e) => `<section class="${J0}"><h3 class="text-title-2-medium text-text-primary">${e}</h3><div class="${G0} h-40"></div></section>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
<div class="flex flex-col gap-5">
<div class="flex flex-wrap items-center justify-between gap-3">${e(["浏览器记录", "Peach 内部"])}
- <div class="flex flex-wrap items-center gap-2">${js("全部时间")}<span data-button-group data-split-button data-variant="primary">${ks({
+ <div class="flex flex-wrap items-center gap-2">${As("全部时间")}<span data-button-group data-split-button data-variant="primary">${Os({
glyph: "compass",
label: "读取浏览器历史",
- attrs: J0
- })}${ks({
+ attrs: q0
+ })}${Os({
glyph: "chevron-down",
- attrs: J0
+ attrs: q0
})}</span></div>
</div>
<div class="inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4" data-taste-metrics>${t}</div>
@@ -73178,11 +73191,11 @@ function HMe() {
4,
5
].map((t) => `${(100 + e * Math.sin(t * Math.PI / 3)).toFixed(1)},${(100 - e * Math.cos(t * Math.PI / 3)).toFixed(1)}`).join(" ")}"/>`).join("")}</svg>
- <small class="text-caption-1-regular">${q0("8em")}</small></div>
+ <small class="text-caption-1-regular">${K0("8em")}</small></div>
<div class="flex min-w-0 grow flex-col justify-around gap-3">${n}</div>
</section>
<div class="inline-grid w-full items-start gap-5 lg:grid-cols-2">${r("浏览活跃时间")}${r("每日活跃")}</div>
- <section class="${Y0}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${K0} h-72 max-sm:h-48"></div></section>
+ <section class="${J0}"><h3 class="text-title-2-medium text-text-primary">创作者线索来源</h3><div class="${G0} h-72 max-sm:h-48"></div></section>
<section class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col">
<div class="px-4 pt-3">${e([
"标签",
@@ -73190,123 +73203,123 @@ function HMe() {
"常访问网站",
"浏览线索"
])}</div>
- <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${K0} h-7"></div>`).join("")}</div>
+ <div class="flex flex-col gap-3 px-4 pt-3.5 pb-4">${Array.from({ length: 5 }, () => `<div class="${G0} h-7"></div>`).join("")}</div>
</section>
</div>
</div></div>`;
}
-function UMe() {
+function GMe() {
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="${K0} 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">${q0("70%")}</span>
- ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${q0("3em")}</span>`).join("")}
- <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${q0("75%")}</span>
+ <span class="${G0} 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">${K0("70%")}</span>
+ ${Array.from({ length: 3 }, () => `<span class="font-mono text-caption-1-regular leading-5">${K0("3em")}</span>`).join("")}
+ <span class="col-start-2 -col-end-1 min-w-0 pt-0.5 font-mono text-caption-1-regular leading-5 max-duplicate-narrow:col-span-full">${K0("75%")}</span>
</div>`, t = `<section class="mb-6 overflow-hidden rounded-surface bg-background-secondary-default dark:bg-background-primary-default" data-duplicate-group>
<div class="flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default">
- <b class="text-title-2-medium">${q0("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${q0("8em")}</span>
+ <b class="text-title-2-medium">${K0("5em")}</b><span class="font-mono text-caption-1-regular leading-5">${K0("8em")}</span>
<span class="ml-auto flex flex-wrap gap-2 max-compact:ml-0 max-compact:w-full">${[
"留最大",
"留最长",
"整组回收"
- ].map((e) => ks({
+ ].map((e) => Os({
variant: "secondary",
size: "small",
label: e,
- attrs: J0
+ attrs: q0
})).join("")}</span>
</div>${e.repeat(2)}</section>`;
return `<div class="peach-react"><div class="mx-auto w-full max-w-board pb-10.5">
<div data-collection-summary class="mb-5 flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5 max-compact:flex-col max-compact:items-start max-compact:gap-3 max-compact:p-4 dark:bg-background-primary-default">
- <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${q0("4em")}</strong></div><p class="text-body-regular text-text-secondary">${q0("12em")}</p>
+ <div class="flex min-w-0 flex-col gap-2"><span class="text-body-regular text-text-secondary">重复内容</span><strong class="text-display-4-medium">${K0("4em")}</strong></div><p class="text-body-regular text-text-secondary">${K0("12em")}</p>
</div>
- <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${J0} class="h-8 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
+ <div data-filter-glass data-glass-pane class="mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5"><h3 class="mr-1 text-body-medium">批量保留</h3>${["全部保留最大", "全部保留最长"].map((e) => `<button ${q0} class="h-8 rounded-full border border-separator-border px-3 text-body-2-medium">${e}</button>`).join("")}</div>
${t.repeat(2)}
</div></div>`;
}
-function WMe() {
+function KMe() {
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="${K0} 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">${q0("80%")}</h3><p class="text-body-2-regular">${q0("60%")}</p></div>
+ <div class="flex min-w-0 gap-4"><span class="${G0} 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">${K0("80%")}</h3><p class="text-body-2-regular">${K0("60%")}</p></div>
</div>
- <footer class="flex justify-end">${ks({
+ <footer class="flex justify-end">${Os({
variant: "secondary",
size: "small",
label: "查看版本",
- attrs: J0
+ attrs: q0
})}</footer>
</li>`;
return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">
- ${Ls("待升级")}
+ ${Is("待升级")}
<ul class="card-grid-cover gap-5">${e.repeat(6)}</ul>
</div></div>`;
}
// src/board-skeleton.ts
-var X0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, GMe = () => `${X0("80%")}${X0("48%")}`, Z0 = (e, t) => e.repeat(t), Q0 = "disabled data-skeleton-action", $0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, e2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, KMe = "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", t2 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
+var Y0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, qMe = () => `${Y0("80%")}${Y0("48%")}`, X0 = (e, t) => e.repeat(t), Z0 = "disabled data-skeleton-action", Q0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, $0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, JMe = "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", e2 = () => `<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="${KMe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${$0("3em")}</b></div>`).join("")}</div>`, qMe = (e = "") => OZ.some(([t]) => t === e) ? e : "list", n2 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${OZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, r2 = (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>`, JMe = ({ table: e, sort: t, dir: n }) => {
+].map((e) => `<div class="${JMe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${Q0("3em")}</b></div>`).join("")}</div>`, YMe = (e = "") => DZ.some(([t]) => t === e) ? e : "list", t2 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${DZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, n2 = (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>`, XMe = ({ 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">${$0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${ks({
+ 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">${Q0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Os({
glyph: "refresh-cw",
label: "检查全部",
compact: !0,
- attrs: Q0
- })}<span data-follow-toolbar-controls class="contents"><span data-button-group role="group">${ks({
+ attrs: Z0
+ })}<span data-follow-toolbar-controls class="contents"><span data-button-group role="group">${Os({
variant: "ghost",
glyph: "layout-grid",
attrs: `aria-pressed="${!e}"`
- })}${ks({
+ })}${Os({
variant: "ghost",
glyph: "table",
attrs: `aria-pressed="${e}"`
- })}</span><span class="flex flex-none items-center gap-2">${js(r, { prefix: "排序" })}${ks({
+ })}</span><span class="flex flex-none items-center gap-2">${As(r, { prefix: "排序" })}${Os({
variant: "secondary",
glyph: n === "asc" ? "arrow-up" : "arrow-down"
- })}</span>${e ? "" : ks({
+ })}</span>${e ? "" : Os({
variant: "secondary",
glyph: "chevron-up",
label: "全部收起",
compact: !0,
- attrs: Q0
+ attrs: Z0
})}</span></div></div>`;
-}, i2 = () => `<span class="flex shrink-0 items-center gap-1">${ks({
+}, r2 = () => `<span class="flex shrink-0 items-center gap-1">${Os({
variant: "secondary",
size: "small",
glyph: "refresh-cw",
- attrs: Q0
-})}${ks({
+ attrs: Z0
+})}${Os({
variant: "secondary",
size: "small",
glyph: "trash",
- attrs: Q0
-})}</span>`, YMe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${r2()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${$0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${e2(14, 14)}</span>${e2(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">${$0("113px")}</span>${i2()}</span></div>`, a2 = (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>${e2(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${$0("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">${ks({
+ attrs: Z0
+})}</span>`, ZMe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${n2()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${Q0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${$0(14, 14)}</span>${$0(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">${Q0("113px")}</span>${r2()}</span></div>`, i2 = (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>${$0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${Q0("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",
- attrs: Q0
-})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${e2(14, 14)}${e2(14, 14)}</span><span class="flex flex-none items-center gap-2">${ks({
+ attrs: Z0
+})}<span class="flex shrink-0 items-center gap-1 max-sm:mr-auto">${$0(14, 14)}${$0(14, 14)}</span><span class="flex flex-none items-center gap-2">${Os({
variant: "secondary",
size: "small",
glyph: "check-check",
label: "全选",
- attrs: Q0
-})}${ks({
+ attrs: Z0
+})}${Os({
variant: "secondary",
size: "small",
glyph: "chevron-up",
label: "收起",
- attrs: Q0
-})}</span></span></div><div data-source-divider>${Z0(YMe(), e)}</div></section>`, XMe = () => {
+ attrs: Z0
+})}</span></span></div><div data-source-divider>${X0(ZMe(), e)}</div></section>`, QMe = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
-}, ZMe = [
+}, $Me = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@ -73314,94 +73327,94 @@ var X0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, GMe
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
-], QMe = {
+], eNe = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, o2 = "<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>", $Me = (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>${ZMe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${QMe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${o2}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${Z0(`<tr>${[
- r2(),
- `<span class="flex min-w-0 items-center gap-2">${e2(32, 32, !0)}${$0("5em")}</span>`,
- $0("10em"),
- `<span class="flex items-center gap-1.5">${e2(14, 14)}${$0("4em")}</span>`,
- e2(48, 24),
- $0("113px"),
- i2()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, eNe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${$0("111px")}</span><div data-toolbar-actions>${js(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${e2(204, 32)}</div></div>`, tNe = () => `<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">${$0("120px")}</h3>${[
+}, a2 = "<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>", tNe = (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>${$Me.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${eNe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${a2}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${X0(`<tr>${[
+ n2(),
+ `<span class="flex min-w-0 items-center gap-2">${$0(32, 32, !0)}${Q0("5em")}</span>`,
+ Q0("10em"),
+ `<span class="flex items-center gap-1.5">${$0(14, 14)}${Q0("4em")}</span>`,
+ $0(48, 24),
+ Q0("113px"),
+ r2()
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, nNe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${Q0("111px")}</span><div data-toolbar-actions>${As(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${$0(204, 32)}</div></div>`, rNe = () => `<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">${Q0("120px")}</h3>${[
"72%",
"56%",
"64%",
"40%"
-].map((e) => `<span class="text-body-medium">${$0(e)}</span>`).join("")}</div>`, nNe = (e) => {
- let t = qMe(e.followTab);
- if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${t2()}<div class="flex flex-col gap-6">${n2(t)}<div class="flex flex-col gap-4">${tNe()}</div></div></div></div>`;
- let n = e.followLayout === "table", r = mr(e.followSort, e.followDir), i = e.followPageSize || XMe(), a = n ? $Me(i, r) : `${r2("全选本页")}<div class="flex flex-col gap-3">${a2(3)}${a2(4)}${a2(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${t2()}<div class="flex flex-col gap-6">${n2(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"}">${JMe({
+].map((e) => `<span class="text-body-medium">${Q0(e)}</span>`).join("")}</div>`, iNe = (e) => {
+ let t = YMe(e.followTab);
+ if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${e2()}<div class="flex flex-col gap-6">${t2(t)}<div class="flex flex-col gap-4">${rNe()}</div></div></div></div>`;
+ let n = e.followLayout === "table", r = mr(e.followSort, e.followDir), i = e.followPageSize || QMe(), a = n ? tNe(i, r) : `${n2("全选本页")}<div class="flex flex-col gap-3">${i2(3)}${i2(4)}${i2(3)}</div>`;
+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${e2()}<div class="flex flex-col gap-6">${t2(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"}">${XMe({
table: n,
...r
- })}${a}${eNe(n, i)}</div></div></div></div></div>`;
+ })}${a}${nNe(n, i)}</div></div></div></div></div>`;
};
-function rNe() {
- 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">${X0("85%")}${X0("65%")}${Z0(GMe(), 4)}</div></aside></div>`;
+function aNe() {
+ 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">${Y0("85%")}${Y0("65%")}${X0(qMe(), 4)}</div></aside></div>`;
}
-function iNe(e, t = {}) {
+function oNe(e, t = {}) {
let n = "";
- if (e === "/stats") n = VMe();
+ if (e === "/stats") n = UMe();
else if (e === "/jav") {
- let e = oU(new URLSearchParams(location.search).get("tab"));
- n = RMe(e === "library" ? "discover" : e);
- } else if (e === "/taste") n = HMe();
- else if (e === "/subscriptions") n = nNe(t);
- else if (e.startsWith("/settings/") && e.split("/")[2] in Af) n = kMe(Af[e.split("/")[2]]);
+ let e = aU(new URLSearchParams(location.search).get("tab"));
+ n = BMe(e === "library" ? "discover" : e);
+ } else if (e === "/taste") n = WMe();
+ else if (e === "/subscriptions") n = iNe(t);
+ else if (e.startsWith("/settings/") && e.split("/")[2] in kf) n = jMe(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">${$0("8em")}</span><span class="text-caption-1-regular">${$0("14em")}</span>${$0("60%")}${$0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${$0("6em")}</div></div></section>`).join("")}</div></div>`;
- else if (e === "/duplicates") n = UMe();
- else if (e === "/quality-goals") n = WMe();
- 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>${ks({
+ ].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">${Q0("8em")}</span><span class="text-caption-1-regular">${Q0("14em")}</span>${Q0("60%")}${Q0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${Q0("6em")}</div></div></section>`).join("")}</div></div>`;
+ else if (e === "/duplicates") n = GMe();
+ else if (e === "/quality-goals") n = KMe();
+ 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: Q0
- })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${Z0("<article class=\"playlistcard skeletoncard\"><i></i><b></b><em></em></article>", 6)}</div></div></section></div>`;
+ attrs: Z0
+ })}</div></header><div class="mx-auto w-full max-w-board"><div class="ui-playlistcards card-grid-cover gap-4.5">${X0("<article class=\"playlistcard skeletoncard\"><i></i><b></b><em></em></article>", 6)}</div></div></section></div>`;
else return "";
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 aNe(e) {
+function sNe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
if (t) return t;
let n = e.ownerDocument.createElement("div");
return n.className = "peach-react", n.dataset.reactOverlays = "", e.append(n), n;
}
-function s2(e) {
+function o2(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return aNe(n ?? t.body);
+ return sNe(n ?? t.body);
}
-var c2 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";
-function oNe(e) {
+var s2 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";
+function cNe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
for (let e = t?.lastElementChild; e; e = e.previousElementSibling) {
- let t = e.matches(c2) ? e : e.querySelector(c2);
+ let t = e.matches(s2) ? e : e.querySelector(s2);
if (t) return t;
}
return null;
}
-function l2(e) {
+function c2(e) {
let t = document.getElementById("toasts"), n = e?.open ? e : document.body;
t && t.parentElement !== n && n.append(t);
}
// src/react/follow-detail/follow-detail.ts
-var u2 = (e) => ["follow-item", e], sNe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, cNe = "/api/follow/save", lNe = "/api/follow/media/hide", d2 = class extends Error {
+var l2 = (e) => ["follow-item", e], lNe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, uNe = "/api/follow/save", dNe = "/api/follow/media/hide", u2 = class extends Error {
constructor() {
super("这条关注内容已不存在");
}
};
-async function f2(e, t) {
- let n = await B(sNe(e), t);
+async function d2(e, t) {
+ let n = await B(lNe(e), t);
for (let t of n.groups || []) {
- let r = ua(t).find((t) => t.id === e);
+ let r = la(t).find((t) => t.id === e);
if (r) return {
item: r,
group: t,
@@ -73409,12 +73422,12 @@ async function f2(e, t) {
aliases: n.author_aliases || []
};
}
- throw new d2();
+ throw new u2();
}
-function uNe(e) {
+function fNe(e) {
for (let [, t] of H.getQueriesData({ queryKey: ["follow-item"] })) {
if (!t?.group) continue;
- let n = ua(t.group).find((t) => t.id === e);
+ let n = la(t.group).find((t) => t.id === e);
if (n) return {
...t,
item: n
@@ -73422,21 +73435,21 @@ function uNe(e) {
}
return null;
}
-async function p2(e, t) {
- let n = u2(e.id), r = da(e.id), i = H.getQueryData(aa) ? null : H.fetchQuery({
- queryKey: aa,
- queryFn: () => oa(t)
+async function f2(e, t) {
+ let n = l2(e.id), r = ua(e.id), i = H.getQueryData(ia) ? null : H.fetchQuery({
+ queryKey: ia,
+ queryFn: () => aa(t)
}), a = r ? {
...r,
item: r.item
- } : H.getQueryData(n) ?? uNe(e.id);
+ } : H.getQueryData(n) ?? fNe(e.id);
a ? H.setQueryData(n, a) : await H.fetchQuery({
queryKey: n,
- queryFn: () => f2(e.id, t)
+ queryFn: () => d2(e.id, t)
}), await i;
}
-function dNe(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 && ya(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);
+function pNe(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,
selected: s,
@@ -73450,32 +73463,32 @@ function dNe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var fNe = (e) => ua(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), pNe = {
+var mNe = (e) => la(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), hNe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, mNe = {
+}, gNe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function hNe(e) {
+function _Ne(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return pNe[t] || t;
+ return hNe[t] || t;
} catch {
return "外部文件页";
}
}
-function m2(e, t) {
- return mNe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+function p2(e, t) {
+ return gNe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function gNe(e, t, n = "") {
+function vNe(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;
@@ -73484,54 +73497,54 @@ function gNe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var _Ne = (e) => String(e.name || "").trim(), h2 = (e, t) => e.tag_types?.[t] || "unknown", vNe = /* @__PURE__ */ new Set([
+var yNe = (e) => String(e.name || "").trim(), m2 = (e, t) => e.tag_types?.[t] || "unknown", bNe = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function yNe(e, t) {
- let n = h2(e, t);
- return `r34-${vNe.has(n) ? n : "general"}`;
+function xNe(e, t) {
+ let n = m2(e, t);
+ return `r34-${bNe.has(n) ? n : "general"}`;
}
-var g2 = [
+var h2 = [
"copyright",
"character",
"artist",
"general",
"metadata"
];
-function bNe(e, t) {
+function SNe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
- let n = g2.indexOf(h2(e, t));
- return n < 0 ? g2.length : n;
+ let n = h2.indexOf(m2(e, t));
+ return n < 0 ? h2.length : n;
};
return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
}
-function _2(e, t) {
+function g2(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 xNe = (e, t) => ({
+var CNe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
-}), v2 = (e) => e?.size ? { size: e.size } : {};
-function SNe(e, t) {
+}), _2 = (e) => e?.size ? { size: e.size } : {};
+function wNe(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}`,
thumb: t.thumb_url || e.thumb_url || `/follow-stream?id=${e.id}&media=${t.index}`,
name: t.name || e.title,
- source: m2(t, e),
- ...v2(t)
+ source: p2(t, e),
+ ..._2(t)
})) : r === "image" && i ? [{
src: i,
thumb: e.thumb_url || i,
name: e.title,
- source: m2(a, e),
- ...v2(a)
+ source: p2(a, e),
+ ..._2(a)
}] : e.thumb_url ? [{
src: e.thumb_url,
thumb: e.thumb_url,
@@ -73539,7 +73552,7 @@ function SNe(e, t) {
source: e.provider_label || e.provider || "在线图片"
}] : [];
}
-var CNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", y2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", b2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", x2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", S2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", C2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", w2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", T2 = "disabled data-skeleton-action", E2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, D2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, O2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, k2 = (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>`, wNe = [
+var TNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", v2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", y2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", b2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", x2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", S2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", C2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", w2 = "disabled data-skeleton-action", T2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, E2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, D2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, O2 = (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>`, ENe = [
"3em",
"5em",
"5em",
@@ -73549,7 +73562,7 @@ var CNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", y2
"8em",
"8em",
"10em"
-], TNe = [
+], DNe = [
"5.8em",
"6.4em",
"7em",
@@ -73559,121 +73572,121 @@ var CNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", y2
"5.8em",
"9em",
"9em"
-], A2 = (e, t) => ks({
+], k2 = (e, t) => Os({
variant: e,
size: "small",
- label: E2(t)
+ label: T2(t)
});
-function ENe() {
- return `<section class="${i$("stack")}">
- <div class="${n$.stack}">${O2("整理", "mb-3")}
- <p class="text-body-regular text-text-secondary">${y2}</p>
+function ONe() {
+ return `<section class="${r$("stack")}">
+ <div class="${t$.stack}">${D2("整理", "mb-3")}
+ <p class="text-body-regular text-text-secondary">${v2}</p>
<div class="mt-3 flex flex-col gap-3">
- <div class="flex min-w-0 flex-wrap items-start gap-2">${js(E2("3em"), {
+ <div class="flex min-w-0 flex-wrap items-start gap-2">${As(T2("3em"), {
prefix: "来源",
className: "w-fit min-w-25",
attrs: "aria-disabled=\"true\""
})}
- <div class="flex min-w-0 basis-64 flex-1 items-start gap-2">${k2("留空整理整个来源", { className: "min-w-0 flex-1" })}<button type="button" class="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 size-9">${Es("folder-search", "size-5 shrink-0")}</button></div>
+ <div class="flex min-w-0 basis-64 flex-1 items-start gap-2">${O2("留空整理整个来源", { className: "min-w-0 flex-1" })}<button type="button" class="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 size-9">${Ts("folder-search", "size-5 shrink-0")}</button></div>
</div>
- <p class="text-caption-1-regular text-text-secondary">${b2}</p>
- ${k2(E2("12em"), { label: "文件名模板" })}${k2(E2("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">${wNe.map((e) => A2("secondary", e)).join("")}</div></div>
- <p class="text-caption-1-regular text-text-secondary">路径示例:${E2("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">${TNe.map((e) => A2("ghost", e)).join("")}</div></div>
- <p class="text-caption-1-regular leading-4.5 text-text-secondary">${x2}</p>
+ <p class="text-caption-1-regular text-text-secondary">${y2}</p>
+ ${O2(T2("12em"), { label: "文件名模板" })}${O2(T2("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">${ENe.map((e) => k2("secondary", e)).join("")}</div></div>
+ <p class="text-caption-1-regular text-text-secondary">路径示例:${T2("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">${DNe.map((e) => k2("ghost", e)).join("")}</div></div>
+ <p class="text-caption-1-regular leading-4.5 text-text-secondary">${b2}</p>
</div>
</div>
- <footer class="${r$.stack}">${ks({
+ <footer class="${n$.stack}">${Os({
label: "预览",
- attrs: T2
+ attrs: w2
})}</footer>
</section>`;
}
-var DNe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
- <section class="${i$("split")}"><div class="${n$.split}">${O2("资源同步", "mb-2")}
- <p class="max-w-190 text-body-2-regular leading-5 text-text-secondary">${S2}</p></div>
- <footer class="${r$.split}">${ks({
+var kNe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
+ <section class="${r$("split")}"><div class="${t$.split}">${D2("资源同步", "mb-2")}
+ <p class="max-w-190 text-body-2-regular leading-5 text-text-secondary">${x2}</p></div>
+ <footer class="${n$.split}">${Os({
glyph: "git-compare",
label: "检查文件",
- attrs: T2
+ attrs: w2
})}</footer></section>
-</section>`, j2 = (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">${E2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${E2("14em")}</small>` : ""}</div>`, ONe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
- <section class="${i$("stack")}"><div class="${n$.stack}">${O2("链接管理", "mb-2")}
- <div class="link-stat-grid mt-4 gap-x-8 gap-y-3">${j2("链接总数", !0)}${[
+</section>`, A2 = (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">${T2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${T2("14em")}</small>` : ""}</div>`, ANe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
+ <section class="${r$("stack")}"><div class="${t$.stack}">${D2("链接管理", "mb-2")}
+ <div class="link-stat-grid mt-4 gap-x-8 gap-y-3">${A2("链接总数", !0)}${[
0,
1,
2
-].map(() => j2(E2("5em"))).join("")}</div>
+].map(() => A2(T2("5em"))).join("")}</div>
<div class="mt-4 flex min-w-0 flex-col gap-0.5"><span class="text-caption-1-regular text-text-secondary">主要站点</span><div class="flex min-w-0 flex-wrap gap-x-5 gap-y-2">${[
"7em",
"10em",
"8em"
-].map((e) => `<span class="inline-flex min-w-0 items-center gap-1.5 text-body-2-medium">${D2(16, 16)}${E2(e)}${D2(28, 24)}</span>`).join("")}</div></div></div>
- <footer class="${r$.stack}">${ks({
+].map((e) => `<span class="inline-flex min-w-0 items-center gap-1.5 text-body-2-medium">${E2(16, 16)}${T2(e)}${E2(28, 24)}</span>`).join("")}</div></div></div>
+ <footer class="${n$.stack}">${Os({
glyph: "link",
label: "检查死链",
- attrs: T2
+ attrs: w2
})}</footer></section>
</section>`;
-function M2({ 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">${r2()}</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>${o2}</span></span></th>`).join("")}<th data-table-space style="width:0"></th>`, s = `<tr><td>${r2()}</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">${Os("", "", n)}</div>` : "";
- return `<div data-data-table-panel class="${bU({
+function j2({ 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">${n2()}</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>${a2}</span></span></th>`).join("")}<th data-table-space style="width:0"></th>`, s = `<tr><td>${n2()}</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="${yU({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
})}">
- <div data-responsive-toolbar><div data-toolbar-heading>${O2(e, "")}<span class="text-body-2-regular tabular-nums text-text-secondary">${E2("4em")}</span></div>
- <div data-toolbar-actions>${c}<div class="flex flex-none gap-2">${ks({
+ <div data-responsive-toolbar><div data-toolbar-heading>${D2(e, "")}<span class="text-body-2-regular tabular-nums text-text-secondary">${T2("4em")}</span></div>
+ <div data-toolbar-actions>${c}<div class="flex flex-none gap-2">${Os({
variant: "secondary",
label: "显示列"
- })}${ks({
+ })}${Os({
variant: "secondary",
label: "重置列宽"
})}</div>
- <span class="flex flex-none items-center gap-2">${js("默认顺序", { prefix: "排序" })}${ks({
+ <span class="flex flex-none items-center gap-2">${As("默认顺序", { prefix: "排序" })}${Os({
variant: "secondary",
glyph: "arrow-up",
- attrs: T2
+ attrs: w2
})}</span></div></div>
<p class="text-body-2-regular text-text-secondary">${t}</p>
<div data-board-data-table data-resizable-table data-follow-table><div class="relative min-w-0"><div class="w-full overflow-x-auto"><table class="bui-table bui-table-sm" style="min-width:${a}px"><thead><tr>${o}</tr></thead><tbody>${s.repeat(i)}</tbody></table></div></div></div>
- <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">${E2("8em")}</span><div data-toolbar-actions>${js("每页 20 条", { size: "sm" })}</div></div>
+ <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">${T2("8em")}</span><div data-toolbar-actions>${As("每页 20 条", { size: "sm" })}</div></div>
</div>`;
}
-var kNe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${E2(e)}</span><small class="text-caption-1-regular">${E2(t)}</small></span>`, ANe = {
+var jNe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${T2(e)}</span><small class="text-caption-1-regular">${T2(t)}</small></span>`, MNe = {
organize: {
label: "正在读取整理配置",
- body: ENe
+ body: ONe
},
"resource-sync": {
label: "正在读取资源同步状态",
- body: DNe
+ body: kNe
},
"orphan-records": {
label: "正在读取文件已丢失的记录",
- body: () => `<section class="flex scroll-mt-20 flex-col gap-4">${M2({
+ body: () => `<section class="flex scroll-mt-20 flex-col gap-4">${j2({
title: "文件已丢失的记录",
- description: C2,
+ description: S2,
rows: 4,
columns: [
{
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>${kNe("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>${jNe("70%", "40%")}</span>`
},
{
label: "个人记录",
width: 176,
- cell: E2("6em")
+ cell: T2("6em")
},
{
label: "操作",
width: 128,
- cell: ks({
+ cell: Os({
variant: "secondary",
size: "small",
label: "删除记录",
- attrs: T2
+ attrs: w2
})
}
]
@@ -73681,50 +73694,50 @@ var kNe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
},
"media-repair": {
label: "正在读取媒体修复状态",
- body: fAe
+ body: mAe
},
links: {
label: "正在读取链接统计",
- body: ONe
+ body: ANe
},
"batch-delete": {
label: "正在读取女优列表",
- body: () => `<section class="flex min-w-0 scroll-mt-20 flex-col gap-3">${M2({
+ body: () => `<section class="flex min-w-0 scroll-mt-20 flex-col gap-3">${j2({
title: "批量删除",
- description: w2,
+ description: C2,
search: "搜索女优姓名或别名",
rows: 12,
columns: [
{
label: "女优",
width: 280,
- cell: `<span class="flex min-w-0 items-center gap-3">${D2(32, 32, !0)}${E2("5em")}</span>`
+ cell: `<span class="flex min-w-0 items-center gap-3">${E2(32, 32, !0)}${T2("5em")}</span>`
},
{
label: "影片",
width: 104,
- cell: E2("3em")
+ cell: T2("3em")
},
{
label: "文件",
width: 104,
- cell: E2("3em")
+ cell: T2("3em")
},
{
label: "登记大小",
width: 136,
- cell: E2("4em")
+ cell: T2("4em")
}
]
})}</section>`
}
};
-function N2(e) {
- let { label: t, body: n } = ANe[e];
+function M2(e) {
+ let { label: t, body: n } = MNe[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
-var P2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => oc(e, {
+var N2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill: a, cardRatio: o, gridClass: s = "", gridSize: c = "" } = {}) => ac(e, {
variant: r || (t ? "cards" : "panel"),
className: n,
gridClass: s,
@@ -73732,7 +73745,7 @@ var P2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
...i ? { count: i } : {},
...a === void 0 ? {} : { fill: a },
...o ? { cardRatio: o } : {}
-}), jNe = [
+}), NNe = [
"元数据字段",
"创作者标签",
"厂牌 Logo",
@@ -73742,41 +73755,41 @@ var P2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
"FC2 评论标记",
"FC2 跨号相似",
"片尾/出处证据"
-], MNe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">
+], PNe = (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>${jNe.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>${NNe.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>`, NNe = {
- "/data-cleanup": () => pAe(),
- ...Object.fromEntries(Xf.map((e) => [e.path, () => N2(e.key)])),
- "/resource-sync": () => N2("resource-sync"),
- "/review": () => MNe(),
+ <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, FNe = {
+ "/data-cleanup": () => hAe(),
+ ...Object.fromEntries(Yf.map((e) => [e.path, () => M2(e.key)])),
+ "/resource-sync": () => M2("resource-sync"),
+ "/review": () => PNe(),
"/sources": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>
- ${P2("正在读取采集来源", {
+ ${N2("正在读取采集来源", {
cards: !0,
count: 4,
fill: !1,
className: "cleanup-skeleton"
})}</div>`
};
-function F2(e, { followLayout: t, followSort: n, followDir: r }) {
- return iNe(e, {
+function P2(e, { followLayout: t, followSort: n, followDir: r }) {
+ return oNe(e, {
followLayout: t,
...e === "/subscriptions" ? {
followSort: n,
followDir: r
} : {}
- }) || (NNe[e] ?? (() => P2("正在读取页面")))();
+ }) || (FNe[e] ?? (() => N2("正在读取页面")))();
}
-var I2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function L2(e, t) {
- let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = I2(t);
- r && r === n || (e.innerHTML = t, mc(e));
+var F2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function I2(e, t) {
+ let n = e.querySelector("[data-skeleton]")?.dataset.skeleton || "", r = F2(t);
+ r && r === n || (e.innerHTML = t, pc(e));
}
// src/react/components/related-section.tsx
-function R2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {
+function L2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a, online: o = !1, ...s }) {
let c = (0, F.useCallback)((e) => {
- e && (mc(e), t(e));
+ e && (pc(e), t(e));
}, [t]);
return /* @__PURE__ */ (0, I.jsxs)("div", {
...s,
@@ -73787,17 +73800,17 @@ function R2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
children: "接着看"
}), i ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, I.jsx)(FG, {
+ children: /* @__PURE__ */ (0, I.jsx)(PG, {
message: i,
onRetry: a || (() => {})
})
}) : r && !n ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, I.jsx)(cV, {
+ children: /* @__PURE__ */ (0, I.jsx)(sV, {
size: "compact",
- icon: XB,
+ icon: YB,
title: "暂无接着看的内容",
- actions: /* @__PURE__ */ (0, I.jsx)(gL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(hL, {
size: "small",
href: o ? "/follow" : "/",
children: o ? "返回关注" : "浏览馆藏"
@@ -73813,7 +73826,7 @@ function R2({ children: e, wireDrag: t, busy: n, empty: r, error: i, onRetry: a,
});
}
// src/react/components/detail-continuation.tsx
-function z2({ queue: e, children: t, queueCards: n }) {
+function R2({ queue: e, children: t, queueCards: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-detail-continuation": "",
"data-queue-cards": n == null ? void 0 : Math.min(3, n),
@@ -73821,12 +73834,12 @@ function z2({ queue: e, children: t, queueCards: n }) {
});
}
// src/react/components/media-carousel.tsx
-function B2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
+function z2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail: i }) {
let a = (0, F.useRef)(null), o = e.some((e) => e.video), s = !!i;
if ((0, F.useLayoutEffect)(() => {
let e = a.current?.querySelector("[data-media-thumbnails]");
if (!e) return;
- let t = jc(e, { drag: !0 }), n = () => {
+ let t = Ac(e, { drag: !0 }), n = () => {
let n = e.querySelector("[aria-current=\"true\"]");
if (n && e.clientWidth) {
let t = n.getBoundingClientRect(), r = e.getBoundingClientRect(), i = parseFloat(getComputedStyle(e).paddingLeft);
@@ -73844,7 +73857,7 @@ function B2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
]), (0, F.useLayoutEffect)(() => {
let e = a.current, t = e?.querySelector("[data-follow-image-dots]"), n = e?.closest("[data-stage-media]");
if (!e || !t) return;
- let i = jc(t, { drag: !0 }), o = () => {
+ let i = Ac(t, { drag: !0 }), o = () => {
let a = t.querySelector("[aria-current=\"true\"]");
if (a && t.clientWidth) {
let e = a.getBoundingClientRect(), n = t.getBoundingClientRect(), r = parseFloat(getComputedStyle(t).paddingLeft);
@@ -73901,7 +73914,7 @@ function B2({ 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)(PNe, {
+ children: e.map((e, r) => /* @__PURE__ */ (0, I.jsx)(INe, {
item: e,
selected: r === t,
onSelect: n,
@@ -73920,7 +73933,7 @@ function B2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
]
});
}
-function PNe({ item: e, selected: t, onSelect: n, render: r }) {
+function INe({ 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;
@@ -73946,20 +73959,20 @@ function PNe({ item: e, selected: t, onSelect: n, render: r }) {
});
}
// src/react/follow-detail/follow-related.ts
-var FNe = (e, t, n) => [
+var LNe = (e, t, n) => [
"follow-feed",
"related",
e,
t,
n
];
-function V2(e, t, n, r) {
- let i = new Set((t.group ? ua(t.group) : [t.item]).map((e) => e.id)), a = /* @__PURE__ */ new Set(), o = new Set(t.item.tags || []), s = t.sources.find((e) => e.id === t.item.source_id)?.author_key, c = new Map(e.flatMap((e) => e.sources || []).map((e) => [e.id, e]));
+function B2(e, t, n, r) {
+ let i = new Set((t.group ? la(t.group) : [t.item]).map((e) => e.id)), a = /* @__PURE__ */ new Set(), o = new Set(t.item.tags || []), s = t.sources.find((e) => e.id === t.item.source_id)?.author_key, c = new Map(e.flatMap((e) => e.sources || []).map((e) => [e.id, e]));
return e.flatMap((e) => e.groups || []).filter((e) => {
- let t = ua(e);
- return t.some((e) => i.has(e.id) || a.has(e.id)) || !ga(e).has(n === "images" ? "image" : "video") || _a(e, n).status !== "new" ? !1 : (t.forEach((e) => a.add(e.id)), !0);
+ let t = la(e);
+ return t.some((e) => i.has(e.id) || a.has(e.id)) || !ha(e).has(n === "images" ? "image" : "video") || ga(e, n).status !== "new" ? !1 : (t.forEach((e) => a.add(e.id)), !0);
}).map((e, t) => {
- let r = _a(e, n), i = r.source_id === void 0 ? void 0 : c.get(r.source_id);
+ let r = ga(e, n), i = r.source_id === void 0 ? void 0 : c.get(r.source_id);
return {
group: e,
order: t,
@@ -73968,48 +73981,48 @@ function V2(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 INe = /* @__PURE__ */ new Set(["metadata", "artist"]);
-function LNe(e, t, n) {
+var RNe = /* @__PURE__ */ new Set(["metadata", "artist"]);
+function zNe(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(_a(t, n))) s.set(e, (s.get(e) || 0) + 1);
+ 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 = _a(e, n), c = t.source_id === void 0 ? void 0 : o.get(t.source_id), l = r(t).filter((e) => i.has(e) && !INe.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) && !RNe.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 RNe(e, t, n, r) {
+async function BNe(e, t, n, r) {
let i = e.sources.find((t) => t.id === e.item.source_id)?.author_key || "", a = {
- ...va(i),
+ ..._a(i),
status: "new",
media: t,
sort: "rand",
seed: e.item.id
}, o = [], s = async (e, t) => {
- let n = await B(na({
+ let n = await B(ta({
...a,
author: e
}, t), r);
return o.push(n), n;
}, c = await s(i, 0);
- return V2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && V2(o, e, t, n).length < n && await s("", 0), {
+ return B2(o, e, t, n).length < n && c.has_more && await s(i, (c.offset || 0) + 100), i && B2(o, e, t, n).length < n && await s("", 0), {
pages: o,
pageParams: o.map((e) => e.offset || 0)
};
}
// src/react/components/detail-tags.tsx
-var H2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var V2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), zNe = 20;
-function U2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, label: a, onOpen: o, onAdd: s, onRemove: c, busyAttrs: l }) {
+}), VNe = 20;
+function H2({ 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 = fH(), _ = (e) => {
+ }), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = dH(), _ = (e) => {
g.run("rename", async (t) => {
let r = (await H.fetchQuery({
queryKey: ["tag-management", n],
@@ -74020,7 +74033,7 @@ function U2({ 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 < zNe || b.includes(Un(e.k))) : e;
+ }, C = e.length > 24, w = C && !v ? e.filter((e, t) => t < VNe || b.includes(Un(e.k))) : e;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-tags": "",
@@ -74044,9 +74057,9 @@ function U2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
"data-edit-tag": e.k,
title: "修改标签名称",
"aria-label": `修改标签 ${a(e.k)}`,
- ...fV(!!g.busy),
+ ...dV(!!g.busy),
onClick: () => _(e),
- children: /* @__PURE__ */ (0, I.jsx)(H2, { name: "pencil" })
+ children: /* @__PURE__ */ (0, I.jsx)(V2, { name: "pencil" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -74055,7 +74068,7 @@ function U2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
"aria-label": `删除标签 ${a(e.k)}`,
...l(e.k),
onClick: () => c(e),
- children: /* @__PURE__ */ (0, I.jsx)(H2, { name: "x" })
+ children: /* @__PURE__ */ (0, I.jsx)(V2, { name: "x" })
})
]
}, e.k)),
@@ -74064,11 +74077,11 @@ function U2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
size: "small",
"data-tags-more": "",
"aria-expanded": v,
- trailingIcon: v ? vB : hB,
+ trailingIcon: v ? _B : mB,
onClick: () => y(!v),
children: v ? "收起" : `还有 ${e.length - w.length} 个`
}) : null,
- /* @__PURE__ */ (0, I.jsx)(BNe, {
+ /* @__PURE__ */ (0, I.jsx)(HNe, {
tags: e,
candidates: h,
label: a,
@@ -74080,11 +74093,11 @@ function U2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
})
]
}),
- g.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ g.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: g.error
}) : null,
- m.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ m.isError ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -74093,7 +74106,7 @@ function U2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}),
children: "无法读取标签候选"
}) : null,
- u ? /* @__PURE__ */ (0, I.jsx)(qQ, {
+ u ? /* @__PURE__ */ (0, I.jsx)(KQ, {
operation: "rename",
selected: [u],
scope: n,
@@ -74102,8 +74115,8 @@ function U2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}) : null
] });
}
-function BNe({ 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 = LV(), 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 HNe({ 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 = IV(), 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,
@@ -74122,7 +74135,7 @@ function BNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
let [e, t] = [c.current, l.current];
if (!e || !t) return;
"showPopover" in t && t.setAttribute("popover", "manual");
- let n = ps(e.parentElement, e, t);
+ let n = fs(e.parentElement, e, t);
S.current = n;
let r = () => {
let e = x.current;
@@ -74148,7 +74161,7 @@ function BNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
_,
t.length
]);
- let w = p ? ode(_, t, NP()) : {
+ let w = p ? cde(_, t, MP()) : {
recent: [],
results: [],
create: ""
@@ -74162,7 +74175,7 @@ function BNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
], E = (e, t) => {
C(), t || r(e.k);
}, D = (t) => {
- if (!QU(t.nativeEvent)) {
+ if (!ZU(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;
@@ -74191,7 +74204,7 @@ function BNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
"aria-pressed": i,
onClick: () => E(t, i),
children: [
- /* @__PURE__ */ (0, I.jsx)(H2, { name: i ? "check" : "tags" }),
+ /* @__PURE__ */ (0, I.jsx)(V2, { name: i ? "check" : "tags" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-pick-name": "",
children: n(t.k)
@@ -74211,8 +74224,8 @@ function BNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
title: "添加标签",
"aria-label": "添加标签",
"aria-expanded": p,
- ...fV(!!i),
- children: /* @__PURE__ */ (0, I.jsx)(H2, { name: "plus" })
+ ...dV(!!i),
+ children: /* @__PURE__ */ (0, I.jsx)(V2, { name: "plus" })
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: l,
id: "tagPicker",
@@ -74224,8 +74237,8 @@ function BNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
"data-tag-search": "",
children: [s ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: Vs("正在读取标签") }
- }) : /* @__PURE__ */ (0, I.jsx)(H2, { name: "search" }), /* @__PURE__ */ (0, I.jsx)("input", {
+ dangerouslySetInnerHTML: { __html: Bs("正在读取标签") }
+ }) : /* @__PURE__ */ (0, I.jsx)(V2, { name: "search" }), /* @__PURE__ */ (0, I.jsx)("input", {
ref: d,
id: "tagPickSearch",
maxLength: 80,
@@ -74269,7 +74282,7 @@ function BNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
onClick: () => {
C(), r(w.create);
},
- children: [/* @__PURE__ */ (0, I.jsx)(H2, { name: "plus" }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(V2, { name: "plus" }), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-pick-name": "",
children: [
"新建“",
@@ -74286,15 +74299,15 @@ function BNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
})] });
}
// src/react/follow-detail/follow-tags.tsx
-function VNe({ item: e, label: t, actions: n }) {
- let r = fH(), i = () => H.invalidateQueries({ predicate: (e) => [
+function UNe({ item: e, label: t, actions: n }) {
+ let r = dH(), i = () => H.invalidateQueries({ predicate: (e) => [
"follow-feed",
"follow",
"tag-management"
].includes(String(e.queryKey[0])) }), a = (e) => {
- fa(e.item), H.setQueriesData({ queryKey: ["follow-item"] }, (t) => {
+ da(e.item), H.setQueriesData({ queryKey: ["follow-item"] }, (t) => {
if (!t) return t;
- let n = ua(e.group).find((e) => e.id === t.item.id);
+ let n = la(e.group).find((e) => e.id === t.item.id);
return n ? {
...t,
item: n,
@@ -74310,7 +74323,7 @@ function VNe({ item: e, label: t, actions: n }) {
}, "POST", t);
a(n), await i();
}, () => {
- o === "add" && PP(s);
+ o === "add" && NP(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", {
@@ -74326,10 +74339,10 @@ function VNe({ item: e, label: t, actions: n }) {
"aria-label": "内容标签",
"data-follow-tag-editor": "",
"data-follow-detail-tags": "",
- children: [/* @__PURE__ */ (0, I.jsx)(U2, {
- tags: bNe(e, t).map((t) => ({
+ children: [/* @__PURE__ */ (0, I.jsx)(H2, {
+ tags: SNe(e, t).map((t) => ({
k: t,
- cat: yNe(e, t)
+ cat: xNe(e, t)
})),
scope: "online",
adding: !!r.busy,
@@ -74338,30 +74351,30 @@ function VNe({ item: e, label: t, actions: n }) {
onOpen: n.openTag,
onAdd: (e) => o("add", e),
onRemove: (e) => o("remove", e.k),
- busyAttrs: () => fV(!!r.busy)
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ busyAttrs: () => dV(!!r.busy)
+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: r.error
}) : null]
});
}
// src/react/follow-detail/follow-detail-page.tsx
-var W2 = (e) => Number(e) > 0, HNe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var U2 = (e) => Number(e) > 0, WNe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), G2 = R("external-link", "ui-externalmark");
-function UNe(e) {
+}), W2 = R("external-link", "ui-externalmark");
+function GNe(e) {
let { id: t, actions: n } = e, r = Ft({
- queryKey: u2(t),
- queryFn: ({ signal: e }) => f2(t, e)
+ queryKey: l2(t),
+ queryFn: ({ signal: e }) => d2(t, e)
}), i = Ft({
- queryKey: aa,
- queryFn: ({ signal: e }) => oa(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)(KNe, {
+ return r.data ? /* @__PURE__ */ (0, I.jsx)(JNe, {
...e,
data: r.data,
- context: xNe(r.data, a),
+ context: CNe(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, I.jsx)("div", {
@@ -74370,9 +74383,9 @@ function UNe(e) {
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-media": "",
"data-follow-detail-media": "none",
- children: [/* @__PURE__ */ (0, I.jsx)(K2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, I.jsx)(G2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? WNe(r.error) ? /* @__PURE__ */ (0, I.jsx)(GNe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(FG, {
+ children: r.isError ? KNe(r.error) ? /* @__PURE__ */ (0, I.jsx)(qNe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(PG, {
message: xn(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -74380,17 +74393,17 @@ function UNe(e) {
})
});
}
-var WNe = (e) => e instanceof d2 || e instanceof sr && e.status === 404;
-function GNe({ onBack: e }) {
+var KNe = (e) => e instanceof u2 || e instanceof sr && e.status === 404;
+function qNe({ onBack: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-gone": "",
onClick: (t) => {
t.target.closest("[data-note-action]") && e();
},
- dangerouslySetInnerHTML: { __html: Bs("这条关注内容已不存在,可能已被来源删除或已清理。", { actionLabel: "回到关注" }) }
+ dangerouslySetInnerHTML: { __html: zs("这条关注内容已不存在,可能已被来源删除或已清理。", { actionLabel: "回到关注" }) }
});
}
-var K2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
+var G2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -74399,8 +74412,8 @@ var K2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function KNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
- let { item: c, group: l } = e, u = dNe(c, l, n, i), d = QNe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
+function JNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
+ let { item: c, group: l } = e, u = pNe(c, l, n, i), d = ePe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
key: "",
kind: ""
}), h = {
@@ -74420,20 +74433,20 @@ function KNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
c,
u.kind
]);
- let g = !u.embedded.length && u.collection ? fNe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(X2, {
+ let g = !u.embedded.length && u.collection ? mNe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(Y2, {
item: c,
current: u.selected.index,
helpers: o,
actions: s,
onMedia: r
- }) : u.collection ? g ? /* @__PURE__ */ (0, I.jsx)(X2, {
+ }) : u.collection ? g ? /* @__PURE__ */ (0, I.jsx)(Y2, {
item: g,
current: null,
helpers: o,
actions: s,
onMedia: r,
currentId: c.id
- }) : /* @__PURE__ */ (0, I.jsx)(YNe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(ZNe, {
group: u.collection,
itemId: c.id,
helpers: o,
@@ -74443,14 +74456,14 @@ function KNe({ 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)(JNe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(XNe, {
item: c,
media: u,
helpers: o,
actions: s,
onMedia: r,
issues: h
- }, f), /* @__PURE__ */ (0, I.jsx)(XNe, {
+ }, f), /* @__PURE__ */ (0, I.jsx)(QNe, {
item: c,
data: e,
context: t,
@@ -74460,9 +74473,9 @@ function KNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
helpers: o,
actions: s
})]
- }), /* @__PURE__ */ (0, I.jsx)(z2, {
+ }), /* @__PURE__ */ (0, I.jsx)(R2, {
queue: _,
- children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(qNe, {
+ children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(YNe, {
data: e,
media: u.kind === "image" ? "images" : u.kind === "video" ? "videos" : i,
limit: a,
@@ -74472,23 +74485,23 @@ function KNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
}) : null
})] });
}
-function qNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
+function YNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
let o = Ft({
- queryKey: FNe(e.item.id, t, n),
- queryFn: ({ signal: r }) => RNe(e, t, n, r)
- }), [s] = (0, F.useState)(() => P2("正在读取推荐", {
+ queryKey: LNe(e.item.id, t, n),
+ queryFn: ({ signal: r }) => BNe(e, t, n, r)
+ }), [s] = (0, F.useState)(() => N2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
})), c = (0, F.useMemo)(() => ({
openDetail: a.openItem,
openAuthor: a.openAuthor,
canFlip: a.canFlip
- }), [a]), l = V2(o.data?.pages || [], e, t, n), u = LNe(o.data?.pages || [], e, t), d = o.data?.pages.at(-1)?.sources || e.sources, f = {
+ }), [a]), l = B2(o.data?.pages || [], e, t, n), u = zNe(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
};
- return /* @__PURE__ */ (0, I.jsx)(R2, {
+ return /* @__PURE__ */ (0, I.jsx)(L2, {
online: !0,
"data-follow-related": "",
wireDrag: i.wireDrag,
@@ -74498,11 +74511,11 @@ function qNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
onRetry: () => {
o.refetch();
},
- children: o.data ? l.map((e) => /* @__PURE__ */ (0, I.jsx)(DZ, {
+ children: o.data ? l.map((e) => /* @__PURE__ */ (0, I.jsx)(EZ, {
variant: "next",
group: e,
media: t,
- authorSources: _2(e.primary, d),
+ authorSources: g2(e.primary, d),
context: f,
selected: !1,
selectMode: !1,
@@ -74516,8 +74529,8 @@ function qNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
})
});
}
-function JNe({ 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 = SNe(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 XNe({ 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 = wNe(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);
@@ -74531,14 +74544,14 @@ function JNe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-framed": d ? "" : void 0,
style: { "--follow-frame-ratio": d ? d.toFixed(4) : void 0 },
children: [
- /* @__PURE__ */ (0, I.jsx)(K2, { onClose: n.close }),
+ /* @__PURE__ */ (0, I.jsx)(G2, { onClose: n.close }),
h ? null : g ? /* @__PURE__ */ (0, I.jsx)("img", {
"data-follow-detail-poster": "",
"data-zoomable": p.length ? "" : void 0,
src: v,
alt: e.title,
referrerPolicy: "no-referrer",
- onClick: p.length ? () => void gZ(Math.max(0, l), p) : void 0,
+ onClick: p.length ? () => void hZ(Math.max(0, l), p) : void 0,
onError: () => {
_ && v !== _ ? (y(_), i.thumbFallback()) : i.failed();
}
@@ -74546,10 +74559,10 @@ function JNe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: lG(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: cG(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, I.jsx)("span", { children: "没有可用预览" })]
}),
- u ? /* @__PURE__ */ (0, I.jsx)(B2, {
+ u ? /* @__PURE__ */ (0, I.jsx)(z2, {
items: c,
position: l,
onSelect: r,
@@ -74566,11 +74579,11 @@ function JNe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
]
});
}
-var q2 = ({ kind: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var K2 = ({ kind: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-nothumb": "",
dangerouslySetInnerHTML: { __html: R(e === "image" ? "image-off" : "play") }
});
-function J2({ src: e }) {
+function q2({ src: e }) {
let [t, n] = (0, F.useState)(!1);
return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {
src: e,
@@ -74580,27 +74593,27 @@ function J2({ src: e }) {
onError: () => n(!0)
});
}
-function Y2(e) {
+function J2(e) {
return (0, F.useCallback)((t) => {
t && e.wireDrag(t);
}, [e]);
}
-function YNe({ group: e, itemId: t, helpers: n, actions: r }) {
- let i = ya(e), a = Y2(n);
- return /* @__PURE__ */ (0, I.jsx)(vK, {
+function ZNe({ group: e, itemId: t, helpers: n, actions: r }) {
+ let i = va(e), a = J2(n);
+ return /* @__PURE__ */ (0, I.jsx)(_K, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
onClose: r.close,
listRef: a,
- summary: `${dG(e.primary)} · ${i.length} 个视频`,
+ summary: `${uG(e.primary)} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = gNe(e, n, i ? n.provider_label : ""), o = i ? lG(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, I.jsxs)(yK, {
+ let i = e.duplicates.includes(n), a = vNe(e, n, i ? n.provider_label : ""), o = i ? cG(n.provider, n.provider_label) : "";
+ return /* @__PURE__ */ (0, I.jsxs)(vK, {
current: n.id === t,
"data-follow-queue-item": n.id,
onClick: () => r.openItem(n.id),
- pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(J2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(q2, { kind: "video" }), W2(n.duration) ? /* @__PURE__ */ (0, I.jsx)("i", {
+ pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(q2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(K2, { kind: "video" }), U2(n.duration) ? /* @__PURE__ */ (0, I.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: Jn(n.duration)
@@ -74618,15 +74631,15 @@ function YNe({ group: e, itemId: t, helpers: n, actions: r }) {
children: a.label
}), /* @__PURE__ */ (0, I.jsx)("time", {
dateTime: n.published_at || "",
- children: bG(n)
+ children: yG(n)
})]
})]
}, n.id);
})
});
}
-function X2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
- let o = e.media_items || [], s = Y2(r), c = [];
+function Y2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i, onMedia: a }) {
+ let o = e.media_items || [], s = J2(r), c = [];
o.forEach((e) => {
let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);
n || (n = {
@@ -74636,26 +74649,26 @@ function X2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, c.push(n)), n.items.push(e);
});
let l = (t) => e.id === n ? a(t.index) : i.openItem(e.id, t.index);
- return /* @__PURE__ */ (0, I.jsx)(vK, {
+ return /* @__PURE__ */ (0, I.jsx)(_K, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
onClose: i.close,
listRef: s,
- summary: `${dG(e)} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(Wxe, {
+ summary: `${uG(e)} · ${o.length} 个媒体`,
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(Kxe, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(yK, {
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(vK, {
current: n.index === t,
"data-follow-media-owner": e.id,
"data-follow-media-item": n.index,
"data-media-kind": n.media_kind || "",
onClick: () => l(n),
- pic: n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(J2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(q2, { kind: n.media_kind || "" }),
+ pic: n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(q2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(K2, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, I.jsx)("b", {
"data-middle-truncate": "",
- children: _Ne(n)
+ children: yNe(n)
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -74663,13 +74676,13 @@ function X2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function XNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function QNe({ 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: [],
duplicates: [],
has_wip: e.variant_kind === "wip"
- }, f = _G(d, e), p = hG(e, _2(e, t.sources), n), m = p.credited ? "" : e.author && Un(e.author) !== Un(p.author) ? e.author : "", h = vG(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {
+ }, f = gG(d, e), p = mG(e, g2(e, t.sources), n), m = p.credited ? "" : e.author && Un(e.author) !== Un(p.author) ? e.author : "", h = _G(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -74685,7 +74698,7 @@ function XNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-title": "",
"data-follow-detail-name": "",
"data-reveal-line": "",
- dangerouslySetInnerHTML: { __html: gG(d, e) + z(dG(e)) }
+ dangerouslySetInnerHTML: { __html: hG(d, e) + z(uG(e)) }
}), e.url ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@ -74693,7 +74706,7 @@ function XNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
rel: "noreferrer noopener",
title: "打开来源页面",
"aria-label": "打开来源页面",
- dangerouslySetInnerHTML: { __html: G2 }
+ dangerouslySetInnerHTML: { __html: W2 }
}) : null]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -74701,8 +74714,8 @@ function XNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"data-stage-meta": "",
"data-reveal-line": "",
children: [
- /* @__PURE__ */ (0, I.jsx)("span", { children: bG(e) }),
- W2(e.duration) ? /* @__PURE__ */ (0, I.jsx)("span", { children: Jn(e.duration) }) : null,
+ /* @__PURE__ */ (0, I.jsx)("span", { children: yG(e) }),
+ U2(e.duration) ? /* @__PURE__ */ (0, I.jsx)("span", { children: Jn(e.duration) }) : null,
f ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: f }
@@ -74719,7 +74732,7 @@ function XNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
children: "创作者"
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-id-row": "",
- children: p.entityName ? /* @__PURE__ */ (0, I.jsxs)(TZ, {
+ children: p.entityName ? /* @__PURE__ */ (0, I.jsxs)(wZ, {
name: p.entityName,
actions: s,
"data-id-cell": "creator",
@@ -74751,7 +74764,7 @@ function XNe({ 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)(ZNe, { text: e.summary }, e.id) : null,
+ e.summary ? /* @__PURE__ */ (0, I.jsx)($Ne, { text: e.summary }, e.id) : null,
h ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-follow-media-issue": "",
children: h
@@ -74774,9 +74787,9 @@ function XNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [hNe(e), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [_Ne(e), /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: G2 }
+ dangerouslySetInnerHTML: { __html: W2 }
})]
}, e))
}) : null,
@@ -74876,7 +74889,7 @@ function XNe({ 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)(J2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(HNe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, I.jsx)(q2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(WNe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -74885,7 +74898,7 @@ function XNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-live": "polite",
children: i.failure
}),
- /* @__PURE__ */ (0, I.jsx)(VNe, {
+ /* @__PURE__ */ (0, I.jsx)(UNe, {
item: e,
label: o.tagLabel,
actions: s
@@ -74894,7 +74907,7 @@ function XNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function ZNe({ text: e }) {
+function $Ne({ 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;
@@ -74907,7 +74920,7 @@ function ZNe({ text: e }) {
ref: t,
"data-follow-detail-summary": "",
"data-long-text": "",
- lang: LI(e),
+ lang: II(e),
"data-clamped": n ? void 0 : "",
children: e
}), i || n ? /* @__PURE__ */ (0, I.jsx)(Y, {
@@ -74919,8 +74932,8 @@ function ZNe({ text: e }) {
children: n ? "收起" : "展开"
}) : null] });
}
-function QNe(e, t, n) {
- let r = e.id, i = u2(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), l = (e, t) => o((n) => {
+function ePe(e, t, n) {
+ let r = e.id, i = l2(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;
}), u = (e) => {
@@ -74930,7 +74943,7 @@ function QNe(e, t, n) {
...t.item,
status: e
}
- }), pa(r, e);
+ }), fa(r, e);
}, d = (e) => {
c(xn(e) || "操作失败"), t.failure("更新关注状态", e);
}, f = It({
@@ -74939,7 +74952,7 @@ function QNe(e, t, n) {
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && aW(), t.toast(CNe(n), { undo: i === "saved" ? void 0 : async () => {
+ u(n), c(""), n === "ignored" && iW(), t.toast(TNe(n), { undo: i === "saved" ? void 0 : async () => {
await V(Mr, {
item: r,
to: i
@@ -74949,7 +74962,7 @@ function QNe(e, t, n) {
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
}), p = It({
- mutationFn: () => V(cNe, { item: r }),
+ mutationFn: () => V(uNe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到数据库");
},
@@ -74957,7 +74970,7 @@ function QNe(e, t, n) {
onSettled: () => l("save", !1)
}), m = It({
mutationFn: async ({ index: e, hidden: t }) => {
- await V(lNe, {
+ await V(dNe, {
item: r,
media: e,
hidden: t
@@ -74968,17 +74981,17 @@ function QNe(e, t, n) {
},
onSuccess: (e, { hidden: r, next: a }) => {
let o = H.getQueryData(i);
- o && fa(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
+ o && da(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
},
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
}), h = Ft({
- queryKey: Iye(r),
- queryFn: ({ signal: e }) => zye(r, e)
+ queryKey: Rye(r),
+ queryFn: ({ signal: e }) => Vye(r, e)
}).data?.want ?? null, g = It({
- mutationFn: async (e) => (e ? await iW([e.id]) : await rW({ follow: r }), !e),
+ mutationFn: async (e) => (e ? await rW([e.id]) : await nW({ follow: r }), !e),
onSuccess: (e) => {
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), aW();
+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), iW();
},
onError: d,
onSettled: () => l("want", !1)
@@ -75017,11 +75030,11 @@ function QNe(e, t, n) {
};
}
// src/react/components/identity-cell.tsx
-function Z2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
- tL();
+function X2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
+ eL();
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>` + _o({
+ dangerouslySetInnerHTML: { __html: `<span>${z(er(o))}</span>` + go({
kind: e,
id: t.id,
hasImage: t.has_image,
@@ -75033,7 +75046,7 @@ function Z2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a })
}) : /* @__PURE__ */ (0, I.jsxs)("span", {
"data-id-face": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", { children: e === "studio" ? $n(t.name, 2) : er(t.name) }), e === "studio" && t.has_logo ? /* @__PURE__ */ (0, I.jsx)("img", {
- src: mo(t.name, "icon", t.logo_version),
+ src: po(t.name, "icon", t.logo_version),
alt: "",
width: 128,
height: 128,
@@ -75064,7 +75077,7 @@ function Z2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a })
children: c
});
}
-function Q2({ people: e, onOpen: t }) {
+function Z2({ people: e, onOpen: t }) {
if (!e.length) return null;
let n = (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
@@ -75097,7 +75110,7 @@ function Q2({ people: e, onOpen: t }) {
});
}
// src/react/components/folded-title.ts
-function $2(e) {
+function Q2(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;
@@ -75114,9 +75127,9 @@ function $2(e) {
};
}
// src/react/item-detail/catalog-picture.tsx
-function e4({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
+function $2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
let [i, a] = (0, F.useState)(""), [o, s] = (0, F.useState)(0);
- if (n && t > 0 && e.code) return /* @__PURE__ */ (0, I.jsx)(sQ, {
+ if (n && t > 0 && e.code) return /* @__PURE__ */ (0, I.jsx)(oQ, {
item: {
code: e.code,
has_cover: !1,
@@ -75125,12 +75138,12 @@ function e4({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
image: String(t - 1),
thumbnail: r
});
- let c = t < 0 ? uo(e, !0) : `/${r ? "sample-thumb" : "sample-image"}?code=${encodeURIComponent(e.code || "")}&n=${t}`;
+ let c = t < 0 ? lo(e, !0) : `/${r ? "sample-thumb" : "sample-image"}?code=${encodeURIComponent(e.code || "")}&n=${t}`;
return r ? i === c ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)("img", {
src: c,
alt: "",
onError: () => a(c)
- }) : i === c ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ }) : i === c ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -75148,34 +75161,34 @@ function e4({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
}, o);
}
// src/react/jav-detail/jav-detail.ts
-var t4 = (e) => ["jav-detail", e], n4 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), $Ne = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), r4 = (e, t) => H.ensureQueryData({
- queryKey: t4(e.code),
- queryFn: () => n4(e.code, t),
+var e4 = (e) => ["jav-detail", e], t4 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), tPe = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), n4 = (e, t) => H.ensureQueryData({
+ queryKey: e4(e.code),
+ queryFn: () => t4(e.code, t),
staleTime: 216e5,
revalidateIfStale: !0
});
-function ePe(e, t) {
+function nPe(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 i4 = "peach.playback-target.v1", a4 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];
-function tPe() {
+var r4 = "peach.playback-target.v1", i4 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];
+function rPe() {
try {
- return localStorage.getItem(i4) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;
+ return localStorage.getItem(r4) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;
} catch {
return "local:default";
}
}
-function o4({ id: e, onOpened: t }) {
- let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(tPe), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = fH();
+function a4({ id: e, onOpened: t }) {
+ let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(rPe), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = dH();
(0, F.useEffect)(() => {
let e = new AbortController();
return B("/api/local-players", e.signal).then((t) => {
- e.signal.aborted || (r(t.players), a((e) => t.players.some((t) => `local:${t.id}` === e) || a4.some(([t]) => t === e) ? e : t.players.length ? `local:${t.players[0].id}` : "m3u"));
+ e.signal.aborted || (r(t.players), a((e) => t.players.some((t) => `local:${t.id}` === e) || i4.some(([t]) => t === e) ? e : t.players.length ? `local:${t.players[0].id}` : "m3u"));
}).catch((t) => {
- e.signal.aborted || (r([]), a((e) => a4.some(([t]) => t === e) ? e : "m3u"), l(String(t.message || t)));
+ e.signal.aborted || (r([]), a((e) => i4.some(([t]) => t === e) ? e : "m3u"), l(String(t.message || t)));
}), () => e.abort();
}, [u]);
let p = () => void f.run("open", async (t) => {
@@ -75199,29 +75212,29 @@ function o4({ id: e, onOpened: t }) {
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-local-playback-row": "",
- children: [/* @__PURE__ */ (0, I.jsx)(t1, {
+ children: [/* @__PURE__ */ (0, I.jsx)(e1, {
id: `external-player-${e}`,
label: "外部播放器",
- options: [...(n || []).map((e) => [`local:${e.id}`, e.label]), ...a4],
+ options: [...(n || []).map((e) => [`local:${e.id}`, e.label]), ...i4],
value: i,
disabled: n === null || !!f.busy,
epoch: u * 2 + Number(n !== null),
onPick: (e) => {
a(e), s(null), f.setError("");
try {
- localStorage.setItem(i4, e);
+ localStorage.setItem(r4, e);
} catch {}
}
}), /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
"aria-label": "使用外部播放器打开",
disabled: n === null,
- ...fV(f.busy === "open"),
+ ...dV(f.busy === "open"),
onClick: p,
children: "打开"
})]
}),
- f.error || c ? /* @__PURE__ */ (0, I.jsx)(PH, { children: f.error || c }) : null,
+ f.error || c ? /* @__PURE__ */ (0, I.jsx)(NH, { children: f.error || c }) : null,
c ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
disabled: !!f.busy,
@@ -75230,16 +75243,16 @@ function o4({ id: e, onOpened: t }) {
},
children: "重新检测播放器"
}) : null,
- o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(iV, {
+ o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(rV, {
label: "网络播放地址",
value: o.url,
isReadOnly: !0
- }), /* @__PURE__ */ (0, I.jsx)(NH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
+ }), /* @__PURE__ */ (0, I.jsx)(MH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
]
});
}
// src/react/boardui/components/base/switch/switch.tsx
-var nPe = jI({
+var iPe = AI({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -75301,8 +75314,8 @@ var nPe = jI({
}
}
});
-function rPe({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = nPe[t];
+function aPe({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = iPe[t];
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: J("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? J("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"),
@@ -75312,12 +75325,12 @@ function rPe({ state: e, size: t = "md", shape: n = "pill" }) {
})
});
}
-function s4({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(nhe, {
+function o4({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(ihe, {
ref: i,
...a,
className: (t) => J("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)(rPe, {
+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(aPe, {
state: e,
size: n,
shape: r
@@ -75328,12 +75341,12 @@ function s4({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
});
}
// src/react/cover-crop/cover-crop.ts
-var iPe = "/api/cover-crop", aPe = (e, t) => V(iPe, {
+var oPe = "/api/cover-crop", sPe = (e, t) => V(oPe, {
code: e,
box: t
});
// src/react/cover-crop/cover-crop-page.tsx
-function c4({ className: e }) {
+function s4({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -75346,7 +75359,7 @@ function c4({ className: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-crop" })
});
}
-function oPe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function cPe({ 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",
@@ -75356,13 +75369,13 @@ function oPe({ code: e, coverUrl: t, box: n, onSaved: r }) {
title: "裁剪封面:框出正封那一块",
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)(c4, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, I.jsx)(aV, {
+ children: /* @__PURE__ */ (0, I.jsx)(s4, { className: "size-3.75" })
+ }), /* @__PURE__ */ (0, I.jsx)(iV, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, I.jsx)(sPe, {
+ children: /* @__PURE__ */ (0, I.jsx)(lPe, {
code: e,
coverUrl: t,
box: n,
@@ -75371,9 +75384,9 @@ function oPe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function sPe({ 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 = LV(), f = It({
- mutationFn: (t) => aPe(e, t),
+function lPe({ 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 = IV(), f = It({
+ mutationFn: (t) => sPe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -75385,19 +75398,19 @@ function sPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : vOe(e, ro);
- c(UZ(t, e, null));
+ } : bOe(e, no);
+ c(HZ(t, e, null));
}
let m = f.isPending;
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)(oV, { children: /* @__PURE__ */ (0, I.jsx)(c4, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, I.jsx)(aV, { children: /* @__PURE__ */ (0, I.jsx)(s4, { className: "size-6" }) }),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(RL, {
+ /* @__PURE__ */ (0, I.jsx)(LL, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -75406,14 +75419,14 @@ function sPe({ 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)(sV, {
+ f.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: lr(f.error)
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(iL, {
- icon: SB,
+ /* @__PURE__ */ (0, I.jsx)(rL, {
+ icon: xB,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -75423,24 +75436,24 @@ function sPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
/* @__PURE__ */ (0, I.jsx)("div", {
ref: d,
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",
- children: /* @__PURE__ */ (0, I.jsx)(JZ, {
+ children: /* @__PURE__ */ (0, I.jsx)(qZ, {
src: t,
- aspect: l ? ro : null,
+ aspect: l ? no : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- VZ(e) && p(e);
+ BZ(e) && p(e);
},
onBox: c
})
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
- children: [/* @__PURE__ */ (0, I.jsx)(s4, {
+ children: [/* @__PURE__ */ (0, I.jsx)(o4, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(UZ(s, a, ro));
+ u(e), e && s && a && c(HZ(s, a, no));
},
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -75450,14 +75463,14 @@ function sPe({ 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)(Y, {
variant: "secondary",
- ...fV(m),
+ ...dV(m),
onClick: () => {
m || f.mutate(null);
},
children: "恢复默认"
}), /* @__PURE__ */ (0, I.jsx)(Y, {
disabled: !s || !a,
- ...fV(m),
+ ...dV(m),
onClick: () => {
s && !m && f.mutate(s);
},
@@ -75468,21 +75481,21 @@ function sPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
] });
}
// src/react/item-detail/item-detail-page.tsx
-var l4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var c4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), u4 = ({ html: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+}), l4 = ({ html: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
-}), d4 = (e) => Number(e) > 0 ? Xn(Number(e)) : "大小未知";
-function cPe(e) {
+}), u4 = (e) => Number(e) > 0 ? Xn(Number(e)) : "大小未知";
+function uPe(e) {
let { queue: t, actions: n } = e, r = Ft({
- queryKey: t ? mP(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => CP(t, e.helpers, n),
+ queryKey: t ? pP(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => SP(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? EP(i, e.id) : t ? null : e.id, o = Ft({
- queryKey: pP(a ?? 0),
- queryFn: ({ signal: e }) => SP(a, e),
+ }), i = t && r.data || null, a = i ? TP(i, e.id) : t ? null : e.id, o = Ft({
+ queryKey: fP(a ?? 0),
+ queryFn: ({ signal: e }) => xP(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -75493,9 +75506,9 @@ function cPe(e) {
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-media": "",
"data-item-media": "none",
- children: [/* @__PURE__ */ (0, I.jsx)(f4, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
+ children: [/* @__PURE__ */ (0, I.jsx)(d4, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, I.jsx)(FG, {
+ children: e ? /* @__PURE__ */ (0, I.jsx)(PG, {
message: xn(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
@@ -75505,13 +75518,13 @@ function cPe(e) {
})
});
}
- return /* @__PURE__ */ (0, I.jsx)(lPe, {
+ return /* @__PURE__ */ (0, I.jsx)(dPe, {
...e,
- item: rde(o.data, i),
+ item: ade(o.data, i),
queue: i
}, o.data.id);
}
-var f4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
+var d4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -75520,23 +75533,23 @@ var f4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function lPe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = wPe(t, r, i.tagLabel), o = (0, F.useRef)(t);
+function dPe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = EPe(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(hP, {
+ n?.kind === "playlist" && V(mP, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = qN() ? "" : pde(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = DP(n, t.id);
+ let s = GN() ? "" : hde(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = EP(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)(uPe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(fPe, {
item: t,
gate: s,
helpers: i,
@@ -75549,22 +75562,22 @@ function lPe(e) {
autoplay: !0
}, c.id);
}
- }), /* @__PURE__ */ (0, I.jsx)(hPe, {
+ }), /* @__PURE__ */ (0, I.jsx)(_Pe, {
item: t,
queue: n,
write: a,
helpers: i,
actions: r
})]
- }), /* @__PURE__ */ (0, I.jsx)(z2, {
+ }), /* @__PURE__ */ (0, I.jsx)(R2, {
queueCards: n?.kind === "parts" || n?.kind === "editions" ? n.items.length : void 0,
- queue: n ? /* @__PURE__ */ (0, I.jsx)(fPe, {
+ queue: n ? /* @__PURE__ */ (0, I.jsx)(mPe, {
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)(CPe, {
+ children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, I.jsx)(TPe, {
...e,
item: n ? {
...t,
@@ -75573,12 +75586,12 @@ function lPe(e) {
}) : null
})] });
}
-function uPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
+function fPe({ 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: t4(e.code || ""),
+ queryKey: e4(e.code || ""),
queryFn: ({ signal: t }) => {
let n = d.current;
- return d.current = !1, n4(e.code, t, n);
+ return d.current = !1, t4(e.code, t, n);
},
staleTime: 216e5,
enabled: !!e.is_jav && !!e.code && !e.sample_images?.length
@@ -75623,7 +75636,7 @@ function uPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
"data-item-gallery": h ? "" : void 0,
"data-item-picture": l === -2 ? void 0 : "",
children: [
- /* @__PURE__ */ (0, I.jsx)(f4, { onClose: r.close }),
+ /* @__PURE__ */ (0, I.jsx)(d4, { onClose: r.close }),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-player-toolbar": "",
children: [
@@ -75633,21 +75646,21 @@ function uPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
"data-jav-preview-toggle": "",
"aria-pressed": l !== -2,
onClick: () => g(l === -2 ? m[0].index : -2),
- children: [/* @__PURE__ */ (0, I.jsx)(l4, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
+ children: [/* @__PURE__ */ (0, I.jsx)(c4, { name: l === -2 ? "image" : "play" }), l === -2 ? "查看图片" : "播放正片"]
}) : null,
/* @__PURE__ */ (0, I.jsx)("span", { "data-player-net-slot": "" })
]
}),
- h ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [l === -2 ? null : /* @__PURE__ */ (0, I.jsx)(e4, {
+ h ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [l === -2 ? null : /* @__PURE__ */ (0, I.jsx)($2, {
item: e,
image: l,
source: p.find((e) => e.index === l)?.source
- }, e.id), /* @__PURE__ */ (0, I.jsx)(B2, {
+ }, e.id), /* @__PURE__ */ (0, I.jsx)(z2, {
items: m,
position: Math.max(0, m.findIndex((e) => e.index === l)),
onSelect: g,
below: !0,
- renderThumbnail: (t) => /* @__PURE__ */ (0, I.jsx)(e4, {
+ renderThumbnail: (t) => /* @__PURE__ */ (0, I.jsx)($2, {
item: e,
image: t.index === -2 ? m[0].index : t.index,
source: p.find((e) => e.index === (t.index === -2 ? m[0].index : t.index))?.source,
@@ -75663,7 +75676,7 @@ function uPe({ 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)(Y, {
variant: "secondary",
- ...fV(f.isFetching),
+ ...dV(f.isFetching),
title: f.data?.message || xn(f.error),
"aria-label": "立即重试样图",
onClick: () => {
@@ -75672,7 +75685,7 @@ function uPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: "立即重试"
})
}) : null,
- t === "offline" ? /* @__PURE__ */ (0, I.jsx)(dPe, {
+ t === "offline" ? /* @__PURE__ */ (0, I.jsx)(pPe, {
item: e,
badge: y,
helpers: n,
@@ -75683,7 +75696,7 @@ function uPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: [
/* @__PURE__ */ (0, I.jsx)("b", { children: "ISO 原盘" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: "请使用支持原盘的外部播放器打开。" }),
- /* @__PURE__ */ (0, I.jsx)(o4, {
+ /* @__PURE__ */ (0, I.jsx)(a4, {
id: e.id,
onOpened: () => r.toast("已请求打开本地播放器")
}, e.id)
@@ -75693,7 +75706,7 @@ function uPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
role: "status",
"data-item-gate": "online",
children: [
- /* @__PURE__ */ (0, I.jsx)(u4, { html: y }),
+ /* @__PURE__ */ (0, I.jsx)(l4, { html: y }),
/* @__PURE__ */ (0, I.jsx)("b", { children: "在线作品" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: "这条没有对应的关注条目,媒体地址无从解析。" }),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -75708,12 +75721,12 @@ function uPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
id: "gate",
"data-item-gate": "metered",
onClick: () => s("clicked"),
- children: [/* @__PURE__ */ (0, I.jsx)(u4, { html: y }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["点此开始拉流 · ", d4(e.size)] })]
+ children: [/* @__PURE__ */ (0, I.jsx)(l4, { html: y }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["点此开始拉流 · ", u4(e.size)] })]
}) : null
]
});
}
-function dPe({ item: e, badge: t, helpers: n, actions: r }) {
+function pPe({ 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);
@@ -75724,7 +75737,7 @@ function dPe({ item: e, badge: t, helpers: n, actions: r }) {
role: "status",
"data-item-gate": "offline",
children: [
- /* @__PURE__ */ (0, I.jsx)(u4, { html: t }),
+ /* @__PURE__ */ (0, I.jsx)(l4, { html: t }),
/* @__PURE__ */ (0, I.jsx)("b", { children: "媒体目录无法访问" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: n.offlineReason(String(e.root_id || e.location || "")) }),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -75738,8 +75751,8 @@ function dPe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function fPe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = lde(e), a = (0, F.useRef)(null), o = mPe(e, t, r), s = (0, F.useRef)(o);
+function mPe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = dde(e), a = (0, F.useRef)(null), o = gPe(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, {
@@ -75747,7 +75760,7 @@ function fPe({ 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 = pPe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
+ }, [n, e.kind]), l = hPe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -75766,7 +75779,7 @@ function fPe({ queue: e, itemId: t, helpers: n, actions: r }) {
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, I.jsx)(vK, {
+ return /* @__PURE__ */ (0, I.jsx)(_K, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@ -75775,11 +75788,11 @@ function fPe({ 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 ${sde[i.edition_label] || "censored"}`,
+ className: `javedition ${lde[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && TP(i);
- return /* @__PURE__ */ (0, I.jsxs)(yK, {
+ }) : null, s = e.kind === "playlist" && wP(i);
+ return /* @__PURE__ */ (0, I.jsxs)(vK, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
@@ -75789,25 +75802,25 @@ function fPe({ queue: e, itemId: t, helpers: n, actions: r }) {
onClick: () => {
s || r.openQueueItem(d, i.id);
},
- pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(u4, { html: ko(i, n.javImage()) }), /* @__PURE__ */ (0, I.jsx)("i", {
+ pic: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(l4, { html: Oo(i, n.javImage()) }), /* @__PURE__ */ (0, I.jsx)("i", {
className: "mono",
"data-mix-item-duration": "",
children: Jn(i.duration)
})] }),
- lead: /* @__PURE__ */ (0, I.jsx)(u4, { html: Mo(i) }),
+ lead: /* @__PURE__ */ (0, I.jsx)(l4, { html: jo(i) }),
after: e.kind === "playlist" ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-queue-edit": "",
children: [/* @__PURE__ */ (0, I.jsx)("i", {
"data-queue-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(l4, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, I.jsx)(c4, { name: "grip-vertical" })
}), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-queue-remove": i.id,
title: "移出播放列表",
"aria-label": "移出播放列表",
onClick: () => o.remove(i.id),
- children: /* @__PURE__ */ (0, I.jsx)(l4, { name: "x" })
+ children: /* @__PURE__ */ (0, I.jsx)(c4, { name: "x" })
})]
}) : null,
children: [/* @__PURE__ */ (0, I.jsxs)("span", {
@@ -75818,14 +75831,14 @@ function fPe({ 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 ? FP(i.part_label) : No(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? PP(i.part_label) : Mo(i, n.tagLabel)
})]
}, i.id);
})
});
}
-function pPe(e, t) {
- let n = It({ mutationFn: (t) => V(hP, {
+function hPe(e, t) {
+ let n = It({ mutationFn: (t) => V(mP, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -75838,11 +75851,11 @@ function pPe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function mPe(e, t, n) {
- let r = mP({
+function gPe(e, t, n) {
+ let r = pP({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (H.setQueryData(r, wP(e)), e), a = (t) => V(hP, {
+ }), i = (e) => (H.setQueryData(r, CP(e)), e), a = (t) => V(mP, {
id: e.playlistId,
...t
}).then((e) => e.playlist), o = It({
@@ -75858,8 +75871,8 @@ function mPe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = dde(s, t, r, c);
- if (fde(l, s)) return;
+ let l = pde(s, t, r, c);
+ if (mde(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -75870,7 +75883,7 @@ function mPe(e, t, n) {
},
remove: (e) => {
let r = s;
- ul({
+ ll({
title: "移出播放列表",
body: "这个视频将从播放列表移除,视频文件保留。",
confirmLabel: "移出播放列表",
@@ -75901,7 +75914,7 @@ function mPe(e, t, n) {
}
};
}
-function hPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function _Pe({ 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": "",
@@ -75909,7 +75922,7 @@ function hPe({ 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)(gPe, {
+ /* @__PURE__ */ (0, I.jsx)(vPe, {
item: e,
queue: t,
helpers: r,
@@ -75921,7 +75934,7 @@ function hPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, I.jsx)(vPe, {
+ /* @__PURE__ */ (0, I.jsx)(bPe, {
item: e,
write: n
}),
@@ -75932,7 +75945,7 @@ function hPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
children: [
e.width && e.height ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, I.jsx)(l4, { name: "monitor" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [
+ children: [/* @__PURE__ */ (0, I.jsx)(c4, { name: "monitor" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [
e.width,
"×",
e.height
@@ -75940,11 +75953,11 @@ function hPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
}) : null,
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, I.jsx)(l4, { name: "hard-drive" }), /* @__PURE__ */ (0, I.jsx)("span", { children: d4(e.size) })]
+ children: [/* @__PURE__ */ (0, I.jsx)(c4, { name: "hard-drive" }), /* @__PURE__ */ (0, I.jsx)("span", { children: u4(e.size) })]
}),
e.release_date ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
- children: [/* @__PURE__ */ (0, I.jsx)(l4, { name: "calendar" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.release_date })]
+ children: [/* @__PURE__ */ (0, I.jsx)(c4, { name: "calendar" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.release_date })]
}) : null,
e.region_label ? /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
@@ -75952,32 +75965,32 @@ function hPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"data-open-region": e.region || "",
title: e.region_settled ? "已判定的产地;打开同产地的作品" : "按番号或厂牌推断的产地,批量判定后不再变;打开同产地的作品",
onClick: () => i.openRegion(e.region || ""),
- children: [/* @__PURE__ */ (0, I.jsx)(l4, { name: "globe" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
+ children: [/* @__PURE__ */ (0, I.jsx)(c4, { name: "globe" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.region_label, e.region_settled ? "" : "(推断)"] })]
}) : null
]
}),
- (e.medium || "video") === "video" && !a && !String(e.name || "").toLowerCase().endsWith(".iso") ? /* @__PURE__ */ (0, I.jsx)(o4, {
+ (e.medium || "video") === "video" && !a && !String(e.name || "").toLowerCase().endsWith(".iso") ? /* @__PURE__ */ (0, I.jsx)(a4, {
id: e.id,
onOpened: () => i.toast("已请求打开本地播放器")
}, e.id) : null,
- /* @__PURE__ */ (0, I.jsx)(yPe, {
+ /* @__PURE__ */ (0, I.jsx)(xPe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, I.jsx)(bPe, {
+ /* @__PURE__ */ (0, I.jsx)(SPe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, I.jsx)(AK, {
- assetIds: kK([e], r.javImage()),
+ /* @__PURE__ */ (0, I.jsx)(kK, {
+ assetIds: OK([e], r.javImage()),
onComplete: () => {
- H.invalidateQueries({ queryKey: pP(e.id) });
+ H.invalidateQueries({ queryKey: fP(e.id) });
}
}),
- /* @__PURE__ */ (0, I.jsx)(xPe, { item: e }),
+ /* @__PURE__ */ (0, I.jsx)(CPe, { item: e }),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -75991,7 +76004,7 @@ function hPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.liked,
...o("like"),
onClick: () => n.preference({ liked: !e.liked }),
- children: /* @__PURE__ */ (0, I.jsx)(l4, { name: "thumbs-up" })
+ children: /* @__PURE__ */ (0, I.jsx)(c4, { name: "thumbs-up" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -76003,7 +76016,7 @@ function hPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-controls": "preferencePanel",
"data-has-reason": String(!!e.like_reason),
onClick: () => c((e) => !e),
- children: /* @__PURE__ */ (0, I.jsx)(l4, { name: "notebook-pen" })
+ children: /* @__PURE__ */ (0, I.jsx)(c4, { name: "notebook-pen" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -76014,7 +76027,7 @@ function hPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "dislike",
...o("dislike"),
onClick: () => n.feedback("dislike"),
- children: /* @__PURE__ */ (0, I.jsx)(l4, { name: "thumbs-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(c4, { name: "thumbs-down" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -76025,7 +76038,7 @@ function hPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.feedback === "seen",
...o("seen"),
onClick: () => n.feedback("seen"),
- children: /* @__PURE__ */ (0, I.jsx)(l4, { name: "eye" })
+ children: /* @__PURE__ */ (0, I.jsx)(c4, { name: "eye" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -76036,7 +76049,7 @@ function hPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.watch_later,
...o("later"),
onClick: n.later,
- children: /* @__PURE__ */ (0, I.jsx)(l4, { name: e.watch_later ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, I.jsx)(c4, { name: e.watch_later ? "check" : "bookmark-plus" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -76045,7 +76058,7 @@ function hPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-label": "加入播放列表",
title: "加入播放列表",
onClick: () => i.addToPlaylist(e),
- children: /* @__PURE__ */ (0, I.jsx)(l4, { name: "playlist" })
+ children: /* @__PURE__ */ (0, I.jsx)(c4, { name: "playlist" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -76056,7 +76069,7 @@ function hPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": !!e.better_version,
...o("quality"),
onClick: n.quality,
- children: /* @__PURE__ */ (0, I.jsx)(l4, { name: "sparkles" })
+ children: /* @__PURE__ */ (0, I.jsx)(c4, { name: "sparkles" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -76067,11 +76080,11 @@ function hPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-pressed": e.disposal === "trash",
...o("dispose"),
onClick: () => n.feedback("dispose"),
- children: /* @__PURE__ */ (0, I.jsx)(l4, { name: "trash" })
+ children: /* @__PURE__ */ (0, I.jsx)(c4, { name: "trash" })
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(SPe, {
+ /* @__PURE__ */ (0, I.jsx)(wPe, {
item: e,
open: s,
write: n
@@ -76082,7 +76095,7 @@ function hPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
...o("o"),
onClick: () => n.feedback("o"),
children: [
- /* @__PURE__ */ (0, I.jsx)(l4, { name: "sperm" }),
+ /* @__PURE__ */ (0, I.jsx)(c4, { name: "sperm" }),
/* @__PURE__ */ (0, I.jsx)("span", { children: "记一次高潮" }),
/* @__PURE__ */ (0, I.jsx)("b", {
className: "mono",
@@ -76095,8 +76108,8 @@ function hPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function gPe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
- let { text: a, expanded: o, foldable: s, toggle: c } = $2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + ude(e, t);
+function vPe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+ let { text: a, expanded: o, foldable: s, toggle: c } = Q2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + fde(e, t);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -76123,23 +76136,23 @@ function gPe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: c,
- children: /* @__PURE__ */ (0, I.jsx)(AH, {})
+ children: /* @__PURE__ */ (0, I.jsx)(kH, {})
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, I.jsx)(oPe, {
+ children: /* @__PURE__ */ (0, I.jsx)(cPe, {
code: e.cover_key || e.code || "",
- coverUrl: uo(e),
+ coverUrl: lo(e),
box: e.poster_box || null,
onSaved: (t) => {
H.invalidateQueries({
- queryKey: pP(e.id),
+ queryKey: fP(e.id),
exact: !0
- }), lP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
+ }), cP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(_Pe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(yPe, {
id: e.id,
actions: r,
onStatus: i
@@ -76149,7 +76162,7 @@ function gPe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function _Pe({ id: e, actions: t, onStatus: n }) {
+function yPe({ 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 () => {
@@ -76168,7 +76181,7 @@ function _Pe({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void a(),
- dangerouslySetInnerHTML: { __html: r === "reveal" ? Vs("正在定位") : R("folder-open") }
+ dangerouslySetInnerHTML: { __html: r === "reveal" ? Bs("正在定位") : R("folder-open") }
}), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-sync": e,
@@ -76179,18 +76192,18 @@ function _Pe({ id: e, actions: t, onStatus: n }) {
"aria-disabled": !0
} : {},
onClick: () => void o(),
- children: /* @__PURE__ */ (0, I.jsx)(l4, { name: "folder-sync" })
+ children: /* @__PURE__ */ (0, I.jsx)(c4, { name: "folder-sync" })
})] });
}
-function vPe({ item: e, write: t }) {
- let n = dP(e.rating);
+function bPe({ item: e, write: t }) {
+ let n = uP(e.rating);
return /* @__PURE__ */ (0, I.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": uP(e.rating),
- children: [/* @__PURE__ */ (0, I.jsx)(GJ, {
+ "data-value": lP(e.rating),
+ children: [/* @__PURE__ */ (0, I.jsx)(WJ, {
value: n,
onRate: (e) => t.rate(e),
busyStar: [
@@ -76204,14 +76217,14 @@ function vPe({ item: e, write: t }) {
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: $ue(e.rating)
+ children: tde(e.rating)
})]
});
}
-function yPe({ item: e, actions: t }) {
- let n = (0, F.useMemo)(() => ide(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
+function xPe({ item: e, actions: t }) {
+ let n = (0, F.useMemo)(() => ode(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)(Z2, {
+ return /* @__PURE__ */ (0, I.jsx)(X2, {
kind: e,
person: n,
onOpen: t.openEntity,
@@ -76243,19 +76256,19 @@ function yPe({ item: e, actions: t }) {
onClick: t.openUnowned,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-id-face": "",
- children: /* @__PURE__ */ (0, I.jsx)(l4, { name: "user-round" })
+ children: /* @__PURE__ */ (0, I.jsx)(c4, { name: "user-round" })
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-id-name": "",
children: "未归属"
})]
})
})]
- }, "unowned") : s(go(e), "performer", n.cast, a && !r ? /* @__PURE__ */ (0, I.jsxs)(Y, {
+ }, "unowned") : s(ho(e), "performer", n.cast, a && !r ? /* @__PURE__ */ (0, I.jsxs)(Y, {
variant: "secondary",
size: "small",
id: "castMore",
"data-cast-more": "",
- trailingIcon: hB,
+ trailingIcon: mB,
"aria-expanded": !1,
onClick: () => i(!0),
children: [
@@ -76274,18 +76287,18 @@ function yPe({ item: e, actions: t }) {
children: [c.length ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-identity-primary": "",
children: c
- }) : null, /* @__PURE__ */ (0, I.jsx)(Q2, {
+ }) : null, /* @__PURE__ */ (0, I.jsx)(Z2, {
people: n.series,
onOpen: t.openEntity
})]
});
}
-function bPe({ item: e, write: t, helpers: n, actions: r }) {
+function SPe({ item: e, write: t, helpers: n, actions: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-tags": "",
- children: /* @__PURE__ */ (0, I.jsx)(U2, {
+ children: /* @__PURE__ */ (0, I.jsx)(H2, {
id: "detailTags",
- tags: ade(e, n),
+ tags: sde(e, n),
candidates: n.tagCandidates(),
label: n.tagLabel,
adding: [...t.busy].some((e) => e.startsWith("add:")),
@@ -76296,8 +76309,8 @@ function bPe({ item: e, write: t, helpers: n, actions: r }) {
}, e.id)
});
}
-function xPe({ item: e }) {
- let t = mde(e);
+function CPe({ item: e }) {
+ let t = gde(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -76331,7 +76344,7 @@ function xPe({ item: e }) {
})]
});
}
-function SPe({ item: e, open: t, write: n }) {
+function wPe({ 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();
@@ -76365,17 +76378,17 @@ function SPe({ item: e, open: t, write: n }) {
"aria-label": "提交喜爱理由",
...n.busyAttrs("preference"),
onClick: () => n.preference({ reason: r }),
- dangerouslySetInnerHTML: { __html: o ? `${Vs("正在提交喜爱理由")}<span>提交中</span>` : "<span>提交</span>" }
+ dangerouslySetInnerHTML: { __html: o ? `${Bs("正在提交喜爱理由")}<span>提交中</span>` : "<span>提交</span>" }
})]
})]
});
}
-function CPe(e) {
+function TPe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Ft({
- queryKey: ede(t.id, n),
- queryFn: async ({ signal: e }) => (await B(nde(t.id, n), e)).items || []
+ queryKey: nde(t.id, n),
+ queryFn: async ({ signal: e }) => (await B(ide(t.id, n), e)).items || []
}), [o] = (0, F.useState)(() => r.relatedSkeletonHtml());
- return /* @__PURE__ */ (0, I.jsx)(R2, {
+ return /* @__PURE__ */ (0, I.jsx)(L2, {
wireDrag: r.wireDrag,
busy: a.isPending,
empty: a.data?.length === 0,
@@ -76383,7 +76396,7 @@ function CPe(e) {
onRetry: () => {
a.refetch();
},
- children: a.data ? /* @__PURE__ */ (0, I.jsx)(tY, {
+ children: a.data ? /* @__PURE__ */ (0, I.jsx)(eY, {
mode: "items",
variant: "next",
items: a.data,
@@ -76396,11 +76409,11 @@ function CPe(e) {
revision: 0,
wireDrag: r.wireDrag,
skeletonHtml: () => ""
- }) : /* @__PURE__ */ (0, I.jsx)(u4, { html: o })
+ }) : /* @__PURE__ */ (0, I.jsx)(l4, { html: o })
});
}
-function wPe(e, t, n) {
- let r = e.id, i = pP(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 EPe(e, t, n) {
+ let r = e.id, i = fP(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) => {
@@ -76416,7 +76429,7 @@ function wPe(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return cP(r, n), t;
+ return sP(r, n), t;
}, m = (e, t) => V(e, {
id: r,
...t
@@ -76431,7 +76444,7 @@ function wPe(e, t, n) {
run: n
}));
}, _ = async (e, t) => {
- let n = await m(gP, t === void 0 ? { kind: e } : {
+ let n = await m(hP, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -76451,21 +76464,21 @@ function wPe(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = fP(n, e);
- await _("rate", r), t.toast(r ? `已评 ${dP(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = dP(n, e);
+ await _("rate", r), t.toast(r ? `已评 ${uP(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(IP(e, r), { undo: async () => {
+ t.toast(FP(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(vP, {});
+ let e = await m(_P, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(vP, {})).watch_later });
+ p({ watch_later: (await m(_P, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -76475,9 +76488,9 @@ function wPe(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(yP, { wanted: !e.wanted });
+ }), r = await m(vP, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(yP, e));
+ n(await m(vP, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -76491,7 +76504,7 @@ function wPe(e, t, n) {
});
u("保存中…");
try {
- o(await m(bP, {
+ o(await m(yP, {
liked: a,
reason: i
}));
@@ -76501,7 +76514,7 @@ function wPe(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(bP, r));
+ o(await m(yP, r));
} });
});
},
@@ -76510,41 +76523,41 @@ function wPe(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => AP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(_P, {
+ p((t) => kP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(gP, {
operation: "add",
tag: e.k
- }), p((t) => jP(t, e));
+ }), p((t) => AP(t, e));
} });
}),
addTag: (e) => {
let r = e.trim();
r && g(`add:${r}`, "添加标签", async () => {
- let e = await m(_P, {
+ let e = await m(gP, {
operation: "add",
tag: r
});
if (!e.ok) return;
let i = e.tag || r;
- kP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => jP(e, {
+ OP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => AP(e, {
k: i,
cat: "general"
- })), PP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
- await m(_P, {
+ })), NP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
+ await m(gP, {
operation: "remove",
tag: i
- }), p((e) => AP(e, i));
+ }), p((e) => kP(e, i));
} }));
});
}
};
}
// src/react/publication-cache.ts
-var p4 = 864e5, m4 = (e) => {
+var f4 = 864e5, p4 = (e) => {
let t = new Date(e);
return Date.UTC(t.getFullYear(), t.getMonth(), t.getDate());
};
-function h4(e) {
+function m4(e) {
let t = /^(\d{4})-(\d{2})-(\d{2})(?:$|T)/.exec(e || "");
if (!t) return;
let n = Number(t[1]), r = Number(t[2]) - 1, i = Number(t[3]), a = new Date(Date.UTC(n, r, i));
@@ -76552,25 +76565,25 @@ function h4(e) {
let o = new Date(Date.UTC(n, r + 2, 0)).getUTCDate();
return Date.UTC(n, r + 1, Math.min(i, o));
}
-function TPe(e, t = Date.now()) {
- let n = h4(e);
- return n !== void 0 && m4(t) > n ? Infinity : p4;
+function DPe(e, t = Date.now()) {
+ let n = m4(e);
+ return n !== void 0 && p4(t) > n ? Infinity : f4;
}
-function g4(e, t, n = Date.now()) {
- return !Number.isFinite(e) || e <= 0 || e > n ? !1 : TPe(t, n) === Infinity ? m4(e) > h4(t) : n - e < p4;
+function h4(e, t, n = Date.now()) {
+ return !Number.isFinite(e) || e <= 0 || e > n ? !1 : DPe(t, n) === Infinity ? p4(e) > m4(t) : n - e < f4;
}
// src/react/wants/resource-cache.ts
-var _4 = "peach.want-resources.v2";
-function v4(e) {
+var g4 = "peach.want-resources.v2";
+function _4(e) {
return !e.cache_stale && (e.complete === !0 || !e.warnings?.length);
}
-function y4(e, t, n) {
- return !!e && !e.cache_stale && (e.state === "error" || !v4(e) ? Date.now() - t < 6e4 : g4(t, n));
+function v4(e, t, n) {
+ return !!e && !e.cache_stale && (e.state === "error" || !_4(e) ? Date.now() - t < 6e4 : h4(t, n));
}
-function b4() {
+function y4() {
try {
- let e = JSON.parse(localStorage.getItem(_4) || "[]");
- return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && v4(e.result) && e.result.items.every((e) => e && [
+ let e = JSON.parse(localStorage.getItem(g4) || "[]");
+ return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items) && _4(e.result) && e.result.items.every((e) => e && [
"magnet",
"ed2k",
"url"
@@ -76579,23 +76592,23 @@ function b4() {
return [];
}
}
-function EPe(e, t) {
- let n = b4().find((t) => t.code === e);
- return n && g4(n.saved, t) ? n : void 0;
+function OPe(e, t) {
+ let n = y4().find((t) => t.code === e);
+ return n && h4(n.saved, t) ? n : void 0;
}
-function DPe(e) {
- let t = new Map(b4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
+function kPe(e) {
+ let t = new Map(y4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
for (let r of e) {
if (!r.code) continue;
let e = t.get(`all-sources:${r.code}`);
- e && g4(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
+ e && h4(e.saved, r.release_date) && n.set(r.code, e.result.items.some((e) => e.protocol === "magnet"));
}
return n;
}
-function OPe(e, t) {
- if (t.state === "ready" && v4(t)) try {
- let n = b4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
- localStorage.setItem(_4, JSON.stringify([{
+function APe(e, t) {
+ if (t.state === "ready" && _4(t)) try {
+ let n = y4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
+ localStorage.setItem(g4, JSON.stringify([{
code: e,
saved: Number.isFinite(r) ? r : Date.now(),
result: t
@@ -76603,15 +76616,15 @@ function OPe(e, t) {
} catch {}
}
// src/react/wants/resource-display.ts
-function kPe(e) {
+function jPe(e) {
let t = (e ?? "").trim(), n = /^([\d,]+)\s*B$/i.exec(t);
return /^[\d,.]+$/.test(t) ? "大小未知" : n ? Xn(Number(n[1].replaceAll(",", ""))) : e || "大小未知";
}
-function APe(e) {
+function MPe(e) {
return /^更多评论.*(?:VIP|官方 App)/.test(e) ? "来源只返回了部分评论,资源链接可能不完整。" : e;
}
// src/react/wants/want-magnets.tsx
-function x4({ icon: e, children: t, title: n }) {
+function b4({ icon: e, children: t, title: n }) {
return /* @__PURE__ */ (0, I.jsxs)("span", {
title: n,
className: "inline-flex items-center gap-1",
@@ -76621,8 +76634,8 @@ function x4({ icon: e, children: t, title: n }) {
}), t]
});
}
-function S4({ 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 = fH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => EPe(h, e.release_date), [h, e.release_date]);
+function x4({ 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 = dH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => OPe(h, e.release_date), [h, e.release_date]);
(0, F.useEffect)(() => {
if (!s.current || c) return;
let e = new IntersectionObserver((t) => {
@@ -76642,22 +76655,22 @@ function S4({ 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", OPe(h, i), i;
+ return m.current = n && i.state === "busy", APe(h, i), i;
},
initialData: g?.result,
initialDataUpdatedAt: g?.saved,
enabled: c,
retry: !1,
- staleTime: (t) => y4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
+ staleTime: (t) => v4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) ? Infinity : 0,
gcTime: 864e5,
- refetchOnMount: (t) => !y4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",
+ refetchOnMount: (t) => !v4(t.state.data, Date.parse(t.state.data?.checked_at || "") || t.state.dataUpdatedAt, e.release_date) && "always",
refetchOnWindowFocus: !1,
refetchInterval: (e) => e.state.data?.state === "busy" && 3e3
});
(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) && Rye(e.id, _.data.items.some((e) => e.protocol === "magnet"));
+ !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && Bye(e.id, _.data.items.some((e) => e.protocol === "magnet"));
}, [
_.data,
o,
@@ -76665,7 +76678,7 @@ function S4({ 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(GU, {
+ let n = await V(WU, {
magnet: r.uri,
provider: v.key,
target: v.target,
@@ -76676,7 +76689,7 @@ function S4({ 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: KU });
+ d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: GU });
});
}, b = (e) => {
f.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));
@@ -76694,39 +76707,39 @@ function S4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
}), /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- leadingIcon: VB,
- ...fV(x),
+ leadingIcon: BB,
+ ...dV(x),
onClick: () => {
x || (m.current = !0, _.refetch());
},
children: "重新查询"
})]
}),
- x ? /* @__PURE__ */ (0, I.jsx)(wH, { label: "正在查找资源链接" }) : null,
- S ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ x ? /* @__PURE__ */ (0, I.jsx)(CH, { label: "正在查找资源链接" }) : null,
+ S ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
title: "资源链接未取得",
children: S
}) : null,
- _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(sV, {
+ _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
- children: APe(e)
+ children: MPe(e)
}, e)),
- _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(gL, {
+ _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(hL, {
variant: "secondary",
size: "small",
className: "self-start",
- trailingIcon: EB,
+ trailingIcon: TB,
href: _.data.source_url,
target: "_blank",
rel: "noopener noreferrer",
children: "查看来源页"
}) : null,
- _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
children: "暂未找到资源链接。"
}) : null,
- f.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ f.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
title: "操作未完成",
children: f.error
@@ -76741,7 +76754,7 @@ function S4({ 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)(UU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(HU, {
variant: "caption",
color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",
children: e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ED2K" : "网页链接"
@@ -76755,26 +76768,26 @@ function S4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
"data-resource-facts": "",
className: "flex flex-wrap gap-x-2 gap-y-1 text-caption-1-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, I.jsx)(x4, {
- icon: Bge,
+ /* @__PURE__ */ (0, I.jsx)(b4, {
+ icon: Hge,
children: e.source
}),
- /* @__PURE__ */ (0, I.jsx)(x4, {
- icon: NB,
+ /* @__PURE__ */ (0, I.jsx)(b4, {
+ icon: MB,
title: e.size ? `来源大小:${e.size}` : void 0,
- children: kPe(e.size)
+ children: jPe(e.size)
}),
- e.files ? /* @__PURE__ */ (0, I.jsx)(x4, {
- icon: kge,
+ e.files ? /* @__PURE__ */ (0, I.jsx)(b4, {
+ icon: jge,
children: e.files.replaceAll("個", "个")
}) : null,
- /* @__PURE__ */ (0, I.jsx)(x4, {
- icon: mge,
+ /* @__PURE__ */ (0, I.jsx)(b4, {
+ icon: gge,
title: e.source === "JavDB 评论" ? "评论日期" : "收录日期",
children: e.date ? e.date.slice(0, 10) : "日期未知"
}),
- e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, I.jsx)(x4, {
- icon: BB,
+ e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, I.jsx)(b4, {
+ icon: zB,
children: e
}, e))
]
@@ -76783,11 +76796,11 @@ function S4({ 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)(gL, {
+ /* @__PURE__ */ (0, I.jsx)(hL, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: EB,
+ trailingIcon: TB,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -76796,18 +76809,18 @@ function S4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
/* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
size: "small",
- leadingIcon: Dge,
- ...fV(f.busy === `copy:${e.id}`),
+ leadingIcon: kge,
+ ...dV(f.busy === `copy:${e.id}`),
onClick: () => b(e),
children: "复制链接"
}),
e.protocol === "magnet" ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "primary",
size: "small",
- leadingIcon: v ? zH(v.key) : yge,
+ leadingIcon: v ? RH(v.key) : xge,
title: v ? `下载到 ${v.label}` : void 0,
disabled: t || !n?.available || !v || r,
- ...fV(f.busy === e.id),
+ ...dV(f.busy === e.id),
onClick: () => y(e),
children: r ? "已添加" : "添加下载"
}) : null
@@ -76818,7 +76831,7 @@ function S4({ 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)(IH, {
+ }), e.length > 3 ? /* @__PURE__ */ (0, I.jsx)(FH, {
summary: `更多资源(${e.length - 3} 条)`,
children: /* @__PURE__ */ (0, I.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
@@ -76830,10 +76843,10 @@ function S4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
});
}
// src/react/jav-detail/review-cache.ts
-var C4 = "peach.jav-reviews.v2";
-function w4() {
+var S4 = "peach.jav-reviews.v2";
+function C4() {
try {
- let e = localStorage.getItem(C4) || "[]";
+ let e = localStorage.getItem(S4) || "[]";
if (e.length > 2e6) return [];
let t = JSON.parse(e);
return Array.isArray(t) ? t.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.ok === !0 && !e.result.cache_stale && Number.isInteger(e.result.page) && e.result.page >= 1 && e.result.page <= 8 && Array.isArray(e.result.items) && e.result.items.length <= 10 && e.result.items.every((e) => typeof e?.id == "string" && typeof e.content == "string" && typeof e.username == "string" && typeof e.created_at == "string")) : [];
@@ -76841,21 +76854,21 @@ function w4() {
return [];
}
}
-function jPe(e, t) {
+function NPe(e, t) {
if (t.ok && !t.cache_stale) try {
let n = Date.parse(t.checked_at || ""), r = [{
code: e,
saved: Number.isFinite(n) ? n : Date.now(),
result: t
- }, ...w4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
- i.length <= 2e6 && localStorage.setItem(C4, i);
+ }, ...C4().filter((n) => n.code !== e || n.result.page !== t.page)].slice(0, 128), i = JSON.stringify(r);
+ i.length <= 2e6 && localStorage.setItem(S4, i);
} catch {}
}
-function MPe(e, t) {
- let n = w4(), r = [], i = Infinity;
+function PPe(e, t) {
+ let n = C4(), r = [], i = Infinity;
for (let a = 1; a <= 8; a++) {
let o = n.find((t) => t.code === e && t.result.page === a);
- if (!o || !g4(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
+ if (!o || !h4(o.saved, t) || (r.push(o.result), i = Math.min(i, o.saved), !o.result.more)) break;
}
return r.length ? {
pages: r,
@@ -76863,16 +76876,16 @@ function MPe(e, t) {
saved: i
} : void 0;
}
-function NPe(e, t, n) {
- return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && g4(Date.parse(e.checked_at || "") || t, n));
+function FPe(e, t, n) {
+ return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && h4(Date.parse(e.checked_at || "") || t, n));
}
// src/react/jav-detail/jav-detail-page.tsx
-function PPe(e) {
+function IPe(e) {
let t = (0, F.useRef)(!1), n = Ft({
- queryKey: t4(e.code),
+ queryKey: e4(e.code),
queryFn: ({ signal: n }) => {
let r = t.current;
- return t.current = !1, n4(e.code, n, r);
+ return t.current = !1, t4(e.code, n, r);
},
staleTime: 216e5
}), r = () => {
@@ -76882,21 +76895,21 @@ function PPe(e) {
"data-jav-detail": "",
"data-item-detail": "",
"data-stage-grid": "",
- children: n.data ? /* @__PURE__ */ (0, I.jsx)(FPe, {
+ children: n.data ? /* @__PURE__ */ (0, I.jsx)(LPe, {
...e,
item: n.data,
retry: r,
retrying: n.isFetching
}, e.code) : /* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-failure": "",
- children: [/* @__PURE__ */ (0, I.jsx)(T4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, I.jsx)(FG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(w4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, I.jsx)(PG, {
message: lr(n.error),
onRetry: r
}) : null]
})
});
}
-var T4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
+var w4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-stage-close": "",
id: "closeStage",
@@ -76905,7 +76918,7 @@ var T4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function FPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
+function LPe({ 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)(() => {
@@ -76925,13 +76938,13 @@ function FPe({ 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 = fH(), m = () => {
- p.run("want", async (e) => d ? (await iW([d], e), null) : (await rW({ code: t.code }, e)).want.id, (t) => {
- f(t), H.setQueryData(t4(e), (e) => e && {
+ ], [l, u] = (0, F.useState)(null), [d, f] = (0, F.useState)(t.want_id), p = dH(), m = () => {
+ p.run("want", async (e) => d ? (await rW([d], e), null) : (await nW({ code: t.code }, e)).want.id, (t) => {
+ f(t), H.setQueryData(e4(e), (e) => e && {
...e,
wanted: !!t,
want_id: t
- }), n.receipt(t ? "已加入想要" : "已取消想要"), aW(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
+ }), n.receipt(t ? "已加入想要" : "已取消想要"), iW(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
});
};
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
@@ -76940,24 +76953,24 @@ function FPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-jav-art": "",
"data-jav-playing": o === -2 ? "" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(T4, { close: n.close }),
+ /* @__PURE__ */ (0, I.jsx)(w4, { close: n.close }),
t.preview_video_url ? /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-jav-preview-toggle": "",
"aria-pressed": o === -2,
onClick: () => s(o === -2 ? -1 : -2),
- children: [/* @__PURE__ */ (0, I.jsx)(E4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
+ children: [/* @__PURE__ */ (0, I.jsx)(T4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
}) : null,
- o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(RPe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(sQ, {
+ o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(BPe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(oQ, {
item: t,
image: o === -1 ? "cover" : String(o)
}, t.code),
- /* @__PURE__ */ (0, I.jsx)(B2, {
+ /* @__PURE__ */ (0, I.jsx)(z2, {
items: c,
position: Math.max(0, c.findIndex((e) => e.index === o)),
onSelect: s,
below: !0,
- renderThumbnail: (e) => /* @__PURE__ */ (0, I.jsx)(sQ, {
+ renderThumbnail: (e) => /* @__PURE__ */ (0, I.jsx)(oQ, {
item: t,
image: e.index < 0 ? "cover" : String(e.index),
thumbnail: !0
@@ -76971,33 +76984,33 @@ function FPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-stage-side-content": "",
"data-jav-info": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(IPe, { item: t }),
- Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(O4, { score: Number(t.score) }) : null,
+ /* @__PURE__ */ (0, I.jsx)(RPe, { item: t }),
+ Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(D4, { score: Number(t.score) }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "mono",
"data-stage-meta": "",
"data-reveal-line": "",
- children: [/* @__PURE__ */ (0, I.jsx)(D4, {
+ children: [/* @__PURE__ */ (0, I.jsx)(E4, {
glyph: "calendar",
label: "发行日期",
value: t.release_date
- }), /* @__PURE__ */ (0, I.jsx)(D4, {
+ }), /* @__PURE__ */ (0, I.jsx)(E4, {
glyph: "clock",
label: "时长",
value: t.duration ? `${t.duration} 分钟` : void 0
})]
}),
- /* @__PURE__ */ (0, I.jsx)(LPe, {
+ /* @__PURE__ */ (0, I.jsx)(zPe, {
item: t,
navigate: n.navigate
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-facts": "",
- children: [/* @__PURE__ */ (0, I.jsx)(D4, {
+ children: [/* @__PURE__ */ (0, I.jsx)(E4, {
glyph: "briefcase",
label: "发行商",
value: t.publisher
- }), /* @__PURE__ */ (0, I.jsx)(D4, {
+ }), /* @__PURE__ */ (0, I.jsx)(E4, {
glyph: "clapperboard",
label: "导演",
value: t.director
@@ -77017,23 +77030,23 @@ function FPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
children: /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-tag": e.name,
- title: Rl(e.name),
+ title: Ll(e.name),
onClick: () => n.openTag(e.name),
- children: Rl(e.name)
+ children: Ll(e.name)
})
}, e.name))
}) : null,
t.summary ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-jav-summary": "",
"data-long-text": "",
- lang: LI(t.summary),
+ lang: II(t.summary),
children: t.summary
}) : null,
- t.message ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ t.message ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
- ...fV(a),
+ ...dV(a),
onClick: i,
children: "立即重试"
}),
@@ -77042,10 +77055,10 @@ function FPe({ 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)(gL, {
+ t.source_url ? /* @__PURE__ */ (0, I.jsx)(hL, {
"data-button-link": "",
variant: "secondary",
- trailingIcon: EB,
+ trailingIcon: TB,
href: t.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -77055,7 +77068,7 @@ function FPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
variant: "secondary",
disabled: r,
"aria-pressed": !!d,
- ...fV(!!p.busy),
+ ...dV(!!p.busy),
onClick: m,
children: d ? "取消想要" : "想要"
}),
@@ -77073,16 +77086,16 @@ function FPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
})
]
}),
- p.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ p.error ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "error",
children: p.error
}) : null,
- /* @__PURE__ */ (0, I.jsx)(zPe, {
+ /* @__PURE__ */ (0, I.jsx)(VPe, {
code: t.code,
count: t.comments_count,
released: t.release_date
}),
- /* @__PURE__ */ (0, I.jsx)(BPe, {
+ /* @__PURE__ */ (0, I.jsx)(HPe, {
item: t,
actions: n,
readOnly: r
@@ -77090,24 +77103,24 @@ function FPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
]
})
}),
- /* @__PURE__ */ (0, I.jsx)($U, {
+ /* @__PURE__ */ (0, I.jsx)(QU, {
prefill: l,
close: () => u(null),
receipt: n.receipt
})
] });
}
-var E4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var T4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: R(e) }
-}), D4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, I.jsxs)("span", {
+}), E4 = ({ glyph: e, label: t, value: n }) => n ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-spec-item": "",
title: t,
- children: [/* @__PURE__ */ (0, I.jsx)(E4, { name: e }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ children: [/* @__PURE__ */ (0, I.jsx)(T4, { name: e }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
}) : null;
-function IPe({ item: e }) {
- let { text: t, expanded: n, foldable: r, toggle: i } = $2(e.title), a = e.title === e.code ? "" : e.title;
+function RPe({ item: e }) {
+ let { text: t, expanded: n, foldable: r, toggle: i } = Q2(e.title), a = e.title === e.code ? "" : e.title;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-title": "",
children: [/* @__PURE__ */ (0, I.jsx)("h1", {
@@ -77123,7 +77136,7 @@ function IPe({ 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: LI(a),
+ lang: II(a),
children: a
})] }) : null]
})
@@ -77137,25 +77150,25 @@ function IPe({ item: e }) {
"aria-label": n ? "收起标题" : "展开标题",
title: n ? "收起标题" : "展开完整标题",
onClick: i,
- children: /* @__PURE__ */ (0, I.jsx)(AH, {})
+ children: /* @__PURE__ */ (0, I.jsx)(kH, {})
})
})]
});
}
-function O4({ score: e, review: t = !1 }) {
+function D4({ score: e, review: t = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-rating": "",
"data-jav-rating": "",
"data-review-rating": t ? "" : void 0,
role: "img",
"aria-label": `${t ? "评论" : "JavDB"}评分 ${e} / 5`,
- children: [/* @__PURE__ */ (0, I.jsx)(GJ, { value: e }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(WJ, { value: e }), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-rating-value": "",
children: [e.toFixed(1), " / 5"]
})]
});
}
-function LPe({ item: e, navigate: t }) {
+function zPe({ 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,
@@ -77164,14 +77177,14 @@ function LPe({ item: e, navigate: t }) {
children: r
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-id-row": "",
- children: i.map((r) => /* @__PURE__ */ (0, I.jsx)(Z2, {
+ children: i.map((r) => /* @__PURE__ */ (0, I.jsx)(X2, {
kind: t,
person: {
...r,
id: r.id ?? null
},
onOpen: n,
- face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, I.jsx)(cQ, {
+ face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, I.jsx)(sQ, {
code: e.code,
person: r,
detail: !0
@@ -77188,7 +77201,7 @@ function LPe({ item: e, navigate: t }) {
r("performer", "出演者", e.performer_refs.filter((e) => !e.gender || e.gender === "unknown"), "unknown"),
r("studio", "厂牌", e.studio_refs)
]
- }), /* @__PURE__ */ (0, I.jsx)(Q2, {
+ }), /* @__PURE__ */ (0, I.jsx)(Z2, {
people: e.series_refs.map((e) => ({
...e,
id: e.id ?? null
@@ -77197,18 +77210,18 @@ function LPe({ item: e, navigate: t }) {
})]
});
}
-function RPe({ src: e }) {
+function BPe({ 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), Bue(i, {
+ return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), Hue(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)(sV, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
@@ -77221,8 +77234,8 @@ function RPe({ src: e }) {
}) : null
});
}
-function zPe({ code: e, count: t, released: n }) {
- let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => MPe(e, n), [e, n]), s = (0, F.useRef)(!1), c = Lt({
+function VPe({ code: e, count: t, released: n }) {
+ let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => PPe(e, n), [e, n]), s = (0, F.useRef)(!1), c = Lt({
queryKey: ["jav-reviews", e],
enabled: i,
initialPageParam: 1,
@@ -77231,12 +77244,12 @@ function zPe({ code: e, count: t, released: n }) {
pageParams: o.pageParams
} : void 0,
initialDataUpdatedAt: o?.saved,
- staleTime: (e) => NPe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
+ staleTime: (e) => FPe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
gcTime: 864e5,
refetchOnWindowFocus: !1,
queryFn: async ({ signal: t, pageParam: n }) => {
- let i = await $Ne(e, n, t, s.current);
- if (jPe(e, i), !i.ok || i.cache_stale) {
+ let i = await tPe(e, n, t, s.current);
+ if (NPe(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,
@@ -77246,7 +77259,7 @@ function zPe({ code: e, count: t, released: n }) {
}
return i;
},
- getNextPageParam: ePe
+ getNextPageParam: nPe
});
(0, F.useEffect)(() => {
c.isFetching || (s.current = !1);
@@ -77254,10 +77267,10 @@ function zPe({ 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)(IH, {
+ children: /* @__PURE__ */ (0, I.jsxs)(FH, {
trailing: !0,
summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(hge, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(_ge, { "aria-hidden": !0 }),
"评论",
t > 0 ? ` · ${t}` : ""
] }),
@@ -77294,7 +77307,7 @@ function zPe({ code: e, count: t, released: n }) {
"data-jav-review-meta": "",
children: [
/* @__PURE__ */ (0, I.jsx)("b", { children: e.username }),
- Number(e.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(O4, {
+ Number(e.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(D4, {
score: Number(e.score),
review: !0
}) : null,
@@ -77306,28 +77319,28 @@ function zPe({ code: e, count: t, released: n }) {
]
}), /* @__PURE__ */ (0, I.jsx)("p", {
"data-long-text": "",
- lang: LI(e.content),
+ lang: II(e.content),
children: e.content
})]
}, e.id)),
- d ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ d ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
- ...fV(c.isFetching),
+ ...dV(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
children: "立即重试"
}),
children: d
- }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(sV, {
+ }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(oV, {
tone: "neutral",
children: "暂无评论"
}) : null,
!d && l.length ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
- ...fV(c.isFetching),
+ ...dV(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
@@ -77335,13 +77348,13 @@ function zPe({ code: e, count: t, released: n }) {
}) : null,
c.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(Y, {
variant: "secondary",
- ...fV(c.isFetchingNextPage),
+ ...dV(c.isFetchingNextPage),
onClick: () => {
c.isFetchingNextPage || c.fetchNextPage();
},
children: "更多评论"
}) : null,
- !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(sV, {
+ !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(oV, {
tone: "neutral",
children: [
"已显示 ",
@@ -77353,21 +77366,21 @@ function zPe({ code: e, count: t, released: n }) {
})
});
}
-function BPe({ item: e, actions: t, readOnly: n }) {
+function HPe({ item: e, actions: t, readOnly: n }) {
let [r, i] = (0, F.useState)(!1), a = Ft({
- queryKey: KU,
+ queryKey: GU,
enabled: r,
- queryFn: ({ signal: e }) => B(`${GU}?limit=50`, e)
+ queryFn: ({ signal: e }) => B(`${WU}?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)(IH, {
+ children: /* @__PURE__ */ (0, I.jsx)(FH, {
trailing: !0,
- summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(E4, { name: "link" }), "资源"] }),
+ summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(T4, { name: "link" }), "资源"] }),
onOpenChange: (e) => {
i(e), e && c(!0);
},
- children: s ? /* @__PURE__ */ (0, I.jsx)(S4, {
+ children: s ? /* @__PURE__ */ (0, I.jsx)(x4, {
want: {
id: 0,
code: e.code,
@@ -77384,31 +77397,31 @@ function BPe({ item: e, actions: t, readOnly: n }) {
});
}
// src/react/stage/stage-player.ts
-var k4 = null, A4 = null, j4 = null, M4 = null, N4 = null, P4 = !1, F4 = 0, I4 = null, L4 = () => !1, R4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function VPe(e, t) {
- k4 = e, L4 = () => t.isOpen(), I4 = () => t.requestClose(), Qle({
+var O4 = null, k4 = null, A4 = null, j4 = null, M4 = null, N4 = !1, P4 = 0, F4 = null, I4 = () => !1, L4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
+function UPe(e, t) {
+ O4 = e, I4 = () => t.isOpen(), F4 = () => t.requestClose(), $le({
...e.player,
stage: () => document.getElementById("stage")
- }), $le({
- inMiniplayer: (e) => A4?.player === e,
- kind: (e) => A4?.player === e ? A4.kind : j4?.kind ?? M4?.kind ?? "item",
- expand: () => i3(),
- toMiniplayer: () => a3()
- }), z4 || (z4 = !0, addEventListener("pagehide", () => HN()));
-}
-var z4 = !1;
-function B4() {
- if (!k4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
- return k4;
-}
-function V4(e) {
- M4 = e;
-}
-var HPe = () => M4;
-function H4(e, t) {
- let { kind: n, item: r, media: i = null } = t, a = R4(n, r.id, i?.index ?? null);
- if (A4 && A4.key === a) return WPe(e, A4);
- A4 && r3();
+ }), eue({
+ inMiniplayer: (e) => k4?.player === e,
+ kind: (e) => k4?.player === e ? k4.kind : A4?.kind ?? j4?.kind ?? "item",
+ expand: () => r3(),
+ toMiniplayer: () => i3()
+ }), R4 || (R4 = !0, addEventListener("pagehide", () => BN()));
+}
+var R4 = !1;
+function z4() {
+ if (!O4) throw Error("舞台播放器还没有接上宿主(configureStagePlayer)");
+ return O4;
+}
+function B4(e) {
+ j4 = e;
+}
+var WPe = () => j4;
+function V4(e, t) {
+ let { kind: n, item: r, media: i = null } = t, a = L4(n, r.id, i?.index ?? null);
+ if (k4 && k4.key === a) return KPe(e, k4);
+ k4 && n3();
let o = {
player: null,
kind: n,
@@ -77416,52 +77429,52 @@ function H4(e, t) {
mediaIndex: i?.index ?? null,
key: a
};
- j4 = o;
+ A4 = 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 = tP(s, {
+ let c = $N(s, {
kind: n,
item: r,
media: i,
autoplay: t.autoplay,
resume: t.resume ?? null,
onPlayer: (e) => {
- j4 === o && (o.player = e);
+ A4 === o && (o.player = e);
},
- handedOff: (e) => A4?.player === e
+ handedOff: (e) => k4?.player === e
});
return () => {
- let e = !!o.player && A4?.player === o.player;
- j4 === o && (j4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), HN());
+ let e = !!o.player && k4?.player === o.player;
+ A4 === o && (A4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), BN());
};
}
-async function UPe(e, t, n) {
+async function GPe(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("这条作品没有可播放的视频");
if (r.location === "online") throw Error("请打开详情播放在线作品");
if (r.cost === "metered") throw Error("请打开详情确认计费来源");
- let i = await B4().player.loadSourceStatus();
- if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(B4().player.offlineReason(String(r.root_id || r.location || "")));
+ let i = await z4().player.loadSourceStatus();
+ if (n.throwIfAborted(), i[String(r.root_id || r.location || "")] === !1) throw Error(z4().player.offlineReason(String(r.root_id || r.location || "")));
let a = {
kind: "item",
item: r,
title: String(r.title || r.name || ""),
sub: String(r.performers?.[0] || r.creator || "未归属")
};
- V4(a);
- let o = H4(t, {
+ B4(a);
+ let o = V4(t, {
kind: "item",
item: r,
autoplay: !0
}), s = !1;
return (e = !1) => {
- s || (s = !0, e && M4 === a && W4(!0), o(), M4 === a && V4(null));
+ s || (s = !0, e && j4 === a && U4(!0), o(), j4 === a && B4(null));
};
}
-function WPe(e, t) {
+function KPe(e, t) {
let { player: n } = t;
- t3(t), A4 = null, n3(), n.el().classList.remove("vjs-peach-mini"), $N(e), e.append(n.el()), GM(n);
+ e3(t), k4 = null, t3(), n.el().classList.remove("vjs-peach-mini"), ZN(e), e.append(n.el()), UM(n);
let r = {
player: n,
kind: t.kind,
@@ -77469,23 +77482,23 @@ function WPe(e, t) {
mediaIndex: t.mediaIndex,
key: t.key
};
- j4 = r;
- let i = eP(n, e);
- return KM(n), () => {
- j4 === r && (j4 = null), i(), A4?.player !== n && (WM() === n && GM(null), NN(n), HN());
+ A4 = r;
+ let i = QN(n, e);
+ return WM(n), () => {
+ A4 === r && (A4 = null), i(), k4?.player !== n && (HM() === n && UM(null), jN(n), BN());
};
}
-var U4 = () => {
- let e = j4?.player;
+var H4 = () => {
+ let e = A4?.player;
return e && !e.isDisposed() ? e : null;
};
-function W4(e) {
- let t = P4;
- P4 = !1, A4?.pending && r3();
- let n = j4, r = n?.player, i = M4;
- if (!n || !r || r.isDisposed() || !i || !N4) return;
- let a = B4().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && JPe({
+function U4(e) {
+ let t = N4;
+ N4 = !1, k4?.pending && n3();
+ let n = A4, r = n?.player, i = j4;
+ if (!n || !r || r.isDisposed() || !i || !M4) return;
+ let a = z4().player.settings();
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && XPe({
player: r,
kind: n.kind,
item: n.item,
@@ -77493,46 +77506,46 @@ function W4(e) {
key: n.key
}, i);
}
-function G4(e, t) {
- P4 = !1, A4 && (A4.kind === e && A4.item.id === t ? (A4.pending = !0, n3()) : r3());
+function W4(e, t) {
+ N4 = !1, k4 && (k4.kind === e && k4.item.id === t ? (k4.pending = !0, t3()) : n3());
}
-function K4(e) {
- N4 = e, N4 && $4();
+function G4(e) {
+ M4 = e, M4 && Q4();
}
-var q4 = () => !!A4 && !A4.pending && !A4.player.isDisposed();
-function GPe() {
- return q4() ? N4?.frame.querySelector("video") ?? null : null;
+var K4 = () => !!k4 && !k4.pending && !k4.player.isDisposed();
+function qPe() {
+ return K4() ? M4?.frame.querySelector("video") ?? null : null;
}
-function KPe() {
- return L4() ? document.getElementById("stage")?.querySelector("video") ?? null : U4()?.el().querySelector("video") ?? GPe();
+function JPe() {
+ return I4() ? document.getElementById("stage")?.querySelector("video") ?? null : H4()?.el().querySelector("video") ?? qPe();
}
-function J4(e) {
- N4 && (N4.title.textContent = e.title || "", N4.sub.textContent = e.sub || "", N4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
+function q4(e) {
+ M4 && (M4.title.textContent = e.title || "", M4.sub.textContent = e.sub || "", M4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
}
-function Y4(e = A4?.item) {
- if (!N4) return;
- let t = N4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
- N4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
+function J4(e = k4?.item) {
+ if (!M4) return;
+ let t = M4.frame.querySelector("video"), n = t?.videoWidth || Number(e?.width) || 16, r = t?.videoHeight || Number(e?.height) || 9;
+ M4.frame.style.setProperty("--miniplayer-aspect", `${Math.max(n, r)}/${r}`);
}
-function X4() {
- let e = A4?.player;
- if (!e || e.isDisposed() || !N4) return;
+function Y4() {
+ let e = k4?.player;
+ if (!e || e.isDisposed() || !M4) return;
let t = e.paused();
- N4.play.setAttribute("aria-label", t ? "播放" : "暂停"), N4.play.querySelector("[data-icon-swap]") || (N4.play.innerHTML = qs("player-pause", "player-play", t ? "b" : "a")), Js(N4.play, t ? "b" : "a");
+ M4.play.setAttribute("aria-label", t ? "播放" : "暂停"), M4.play.querySelector("[data-icon-swap]") || (M4.play.innerHTML = Ks("player-pause", "player-play", t ? "b" : "a")), qs(M4.play, t ? "b" : "a");
}
-function Z4() {
- let e = A4?.player;
- if (!e || e.isDisposed() || !N4) return;
- let t = qn(A4?.item.duration) || qn(e.duration());
- N4.time.textContent = `${Yn(e.currentTime())} / ${t ? Yn(t) : "0:00"}`;
-}
-var Q4 = () => Math.max(1, Number(B4().player.settings().seekSeconds) || 10);
-function $4() {
- if (!N4 || !k4) return;
- let e = Q4();
- for (let [t, n] of [[N4.back, `后退 ${e} 秒`], [N4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
-}
-function e3(e) {
+function X4() {
+ let e = k4?.player;
+ if (!e || e.isDisposed() || !M4) return;
+ let t = qn(k4?.item.duration) || qn(e.duration());
+ M4.time.textContent = `${Yn(e.currentTime())} / ${t ? Yn(t) : "0:00"}`;
+}
+var Z4 = () => Math.max(1, Number(z4().player.settings().seekSeconds) || 10);
+function Q4() {
+ if (!M4 || !O4) return;
+ let e = Z4();
+ for (let [t, n] of [[M4.back, `后退 ${e} 秒`], [M4.ahead, `前进 ${e} 秒`]]) t.setAttribute("aria-label", n), t.title = n;
+}
+function $4(e) {
let t = (t, n) => {
e.player.on(t, n), e.off.push(() => {
try {
@@ -77544,17 +77557,17 @@ function e3(e) {
"play",
"pause",
"ended"
- ], X4), t([
+ ], Y4), t([
"timeupdate",
"durationchange",
"loadedmetadata"
- ], Z4), t("loadedmetadata", () => Y4()), X4(), Z4(), Y4(), $4();
+ ], X4), t("loadedmetadata", () => J4()), Y4(), X4(), J4(), Q4();
}
-function t3(e) {
+function e3(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function qPe() {
- let e = N4?.root;
+function YPe() {
+ let e = M4?.root;
if (!e) return;
let t = e.hidden;
if (e.hidden = !1, !t) return;
@@ -77562,8 +77575,8 @@ function qPe() {
let n = () => e.removeAttribute("data-miniplayer-enter");
e.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 500);
}
-function n3() {
- let e = N4?.root;
+function t3() {
+ let e = M4?.root;
if (e) {
e.hidden = !0;
for (let t of [
@@ -77574,73 +77587,73 @@ function n3() {
e.style.transform = "";
}
}
-function JPe(e, t) {
- if (!N4) return;
+function XPe(e, t) {
+ if (!M4) return;
let n = {
...e,
meta: t,
off: [],
pending: !1
};
- A4 = n, F4++, e.player.el().classList.add("vjs-peach-mini"), N4.frame.prepend(e.player.el()), J4(t), e3(n), qPe(), KM(e.player);
+ k4 = n, P4++, e.player.el().classList.add("vjs-peach-mini"), M4.frame.prepend(e.player.el()), q4(t), $4(n), YPe(), WM(e.player);
}
-function r3() {
- let e = A4;
- e && t3(e), A4 = null, F4++;
+function n3() {
+ let e = k4;
+ e && e3(e), k4 = null, P4++;
let t = e?.player ?? null;
- t && WM() === t && GM(null), NN(t), t && HN(), N4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), HM(), n3();
+ t && HM() === t && UM(null), jN(t), t && BN(), M4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), VM(), t3();
}
-function i3() {
- if (!q4() || !A4) return;
- let { kind: e, item: t, mediaIndex: n } = A4;
- B4().expand(e, t.id, n);
+function r3() {
+ if (!K4() || !k4) return;
+ let { kind: e, item: t, mediaIndex: n } = k4;
+ z4().expand(e, t.id, n);
}
-function a3() {
- q4() && !L4() ? i3() : L4() && U4() && I4 && (P4 = !0, I4());
+function i3() {
+ K4() && !I4() ? r3() : I4() && H4() && F4 && (N4 = !0, F4());
}
-function YPe() {
- let e = A4?.player;
+function ZPe() {
+ let e = k4?.player;
e && !e.isDisposed() && (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
-function o3(e) {
- let t = A4?.player;
+function a3(e) {
+ let t = k4?.player;
if (!t || t.isDisposed()) return;
- let n = qn(t.duration()) || qn(A4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + Q4() * e);
+ let n = qn(t.duration()) || qn(k4?.item.duration) || 0, r = Math.max(0, (Number(t.currentTime()) || 0) + Z4() * e);
t.currentTime(n ? Math.min(n, r) : r);
}
-function s3(e) {
- return !(!q4() || !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 || B4().sourceOffline(String(e.root_id || e.location || "")));
-}
-async function XPe(e) {
- if (!q4() || !A4 || !N4) return;
- let t = ++F4, n = await Tn(`/api/item?id=${e}`).catch(() => null);
- if (t !== F4 || !q4() || !A4 || !N4 || !n || n.error) return;
- if (!s3(n)) {
- B4().openItem(e);
+function o3(e) {
+ return !(!K4() || !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 || z4().sourceOffline(String(e.root_id || e.location || "")));
+}
+async function QPe(e) {
+ if (!K4() || !k4 || !M4) return;
+ let t = ++P4, n = await Tn(`/api/item?id=${e}`).catch(() => null);
+ if (t !== P4 || !K4() || !k4 || !M4 || !n || n.error) return;
+ if (!o3(n)) {
+ z4().openItem(e);
return;
}
- let r = A4;
- t3(r), WM() === r.player && GM(null), NN(r.player), HN(), N4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ let r = k4;
+ e3(r), HM() === r.player && UM(null), jN(r.player), BN(), M4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
- i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", N4.frame.prepend(i);
+ i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", M4.frame.prepend(i);
let a = {
kind: "item",
item: n,
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- J4(a), tP(i, {
+ q4(a), $N(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
- if (t !== F4) {
- r && WM() === r && GM(null), NN(r);
+ if (t !== P4) {
+ r && HM() === r && UM(null), jN(r);
return;
}
if (!r) {
- r3(), B4().openItem(e);
+ n3(), z4().openItem(e);
return;
}
r.el().classList.add("vjs-peach-mini");
@@ -77649,25 +77662,25 @@ async function XPe(e) {
kind: "item",
item: n,
mediaIndex: null,
- key: R4("item", n.id, null),
+ key: L4("item", n.id, null),
meta: a,
off: [],
pending: !1
};
- A4 = i, e3(i);
+ k4 = i, $4(i);
}
- }), Y4(n);
+ }), J4(n);
}
// src/react/stage/miniplayer.tsx
-var c3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
+var s3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
-}), ZPe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, l3 = (e) => (t) => {
+}), $Pe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, c3 = (e) => (t) => {
t.stopPropagation(), e();
-}, QPe = (0, F.memo)(function() {
+}, eFe = (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)(() => (K4({
+ return (0, F.useLayoutEffect)(() => (G4({
root: e.current,
frame: n.current,
play: r.current,
@@ -77677,7 +77690,7 @@ var c3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => K4(null)), []), (0, F.useEffect)(() => tFe(e.current, t.current), []), (0, F.useEffect)(() => $Pe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
+ }), () => G4(null)), []), (0, F.useEffect)(() => rFe(e.current, t.current), []), (0, F.useEffect)(() => tFe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -77701,24 +77714,24 @@ var c3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
id: "miniplayerExpand",
"aria-label": "展开到详情",
"aria-keyshortcuts": "i",
- onClick: l3(i3),
- children: /* @__PURE__ */ (0, I.jsx)(c3, { name: "maximize-2" })
+ onClick: c3(r3),
+ children: /* @__PURE__ */ (0, I.jsx)(s3, { name: "maximize-2" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-miniplayer-button": "close",
id: "miniplayerClose",
"aria-label": "关闭小窗",
- onClick: l3(r3),
- children: /* @__PURE__ */ (0, I.jsx)(c3, { name: "x" })
+ onClick: c3(n3),
+ children: /* @__PURE__ */ (0, I.jsx)(s3, { name: "x" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: a,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerBack",
- onClick: l3(() => o3(-1)),
- children: /* @__PURE__ */ (0, I.jsx)(c3, { name: "rotate-ccw" })
+ onClick: c3(() => a3(-1)),
+ children: /* @__PURE__ */ (0, I.jsx)(s3, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: r,
@@ -77727,16 +77740,16 @@ var c3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: l3(YPe),
- dangerouslySetInnerHTML: ZPe
+ onClick: c3(ZPe),
+ dangerouslySetInnerHTML: $Pe
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: o,
type: "button",
"data-miniplayer-seek": "",
id: "miniplayerAhead",
- onClick: l3(() => o3(1)),
- children: /* @__PURE__ */ (0, I.jsx)(c3, { name: "rotate-cw" })
+ onClick: c3(() => a3(1)),
+ children: /* @__PURE__ */ (0, I.jsx)(s3, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, I.jsx)("span", {
ref: i,
@@ -77753,7 +77766,7 @@ var c3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
"data-miniplayer-info": "",
id: "miniplayerInfo",
"aria-label": "展开到详情",
- onClick: () => i3(),
+ onClick: () => r3(),
children: [/* @__PURE__ */ (0, I.jsx)("span", {
ref: s,
"data-miniplayer-title": "",
@@ -77767,7 +77780,7 @@ var c3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
})
});
});
-function $Pe(e) {
+function tFe(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");
@@ -77781,7 +77794,7 @@ function $Pe(e) {
n.disconnect(), r.disconnect(), window.removeEventListener("resize", t), document.documentElement.style.removeProperty("--miniplayer-space");
};
}
-function eFe(e, t, n) {
+function nFe(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
@@ -77803,7 +77816,7 @@ function eFe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function tFe(e, t) {
+function rFe(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 = {
@@ -77829,7 +77842,7 @@ function tFe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), eFe(e, i.dx, i.dy));
+ }, 0), nFe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -77840,57 +77853,57 @@ function tFe(e, t) {
};
}
// src/react/stage/stage.tsx
-var u3 = null, d3 = null, f3 = null, p3 = /* @__PURE__ */ new Set(), m3 = 0, h3 = null, g3 = !1, _3 = !1, v3 = () => {
+var l3 = null, u3 = null, d3 = null, f3 = /* @__PURE__ */ new Set(), p3 = 0, m3 = null, h3 = !1, g3 = !1, _3 = () => {
let e = document.getElementById("stage");
return e instanceof HTMLDialogElement ? e : null;
};
-function y3() {
- if (!u3) throw Error("舞台还没有接上宿主(configureStage)");
- return u3;
+function v3() {
+ if (!l3) throw Error("舞台还没有接上宿主(configureStage)");
+ return l3;
}
-function nFe(e) {
- return p3.add(e), () => {
- p3.delete(e);
+function iFe(e) {
+ return f3.add(e), () => {
+ f3.delete(e);
};
}
-function rFe() {
- for (let e of [...p3]) e();
+function aFe() {
+ for (let e of [...f3]) e();
}
-function b3() {
- (0, Rt.flushSync)(rFe);
+function y3() {
+ (0, Rt.flushSync)(aFe);
}
-function iFe({ view: e }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(aFe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(QPe, {})] });
+function oFe({ view: e }) {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(sFe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(eFe, {})] });
}
-var x3 = () => /* @__PURE__ */ (0, I.jsx)("div", {
+var b3 = () => /* @__PURE__ */ (0, I.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: rNe() }
+ dangerouslySetInnerHTML: { __html: aNe() }
});
-function S3(e) {
+function x3(e) {
let t = e.currentTarget;
if (e.target !== t) return !1;
let n = t.getBoundingClientRect();
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
-function C3() {
- let e = v3(), t = e && oNe(e);
+function S3() {
+ let e = _3(), t = e && cNe(e);
t ? (t.focus({ preventScroll: !0 }), t.dispatchEvent(new KeyboardEvent("keydown", {
key: "Escape",
bubbles: !0,
cancelable: !0
- }))) : w3();
+ }))) : C3();
}
-function aFe({ view: e }) {
+function sFe({ view: e }) {
let t = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
let e = t.current, n = (t) => {
- t.target === e && (t.preventDefault(), C3());
+ t.target === e && (t.preventDefault(), S3());
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(cPe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(PPe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(UNe, { ...r.props }, r.props.id);
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(uPe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(IPe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(GNe, { ...r.props }, r.props.id);
return /* @__PURE__ */ (0, I.jsxs)("dialog", {
ref: t,
id: "stage",
@@ -77898,27 +77911,27 @@ function aFe({ view: e }) {
"data-stage-kind": r.kind,
"aria-label": "作品详情",
onKeyDown: (e) => {
- e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), C3());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), S3());
},
onPointerDown: (e) => {
- _3 = S3(e);
+ g3 = x3(e);
},
onClick: (e) => {
- _3 && S3(e) && w3();
+ g3 && x3(e) && C3();
},
children: [
- n === "skeleton" ? /* @__PURE__ */ (0, I.jsx)(x3, {}, "skeleton") : null,
+ n === "skeleton" ? /* @__PURE__ */ (0, I.jsx)(b3, {}, "skeleton") : null,
n === "reveal" ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-stage-fade": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(x3, {})
+ children: /* @__PURE__ */ (0, I.jsx)(b3, {})
}, "fade") : null,
n === "skeleton" ? null : /* @__PURE__ */ (0, I.jsx)("div", {
"data-stage-scroll": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(TD, {
- getContainer: () => s2(t.current),
+ children: /* @__PURE__ */ (0, I.jsx)(wD, {
+ getContainer: () => o2(t.current),
children: i
})
})
@@ -77926,14 +77939,14 @@ function aFe({ view: e }) {
]
});
}
-function w3() {
- d3 && !g3 && (g3 = !0, d3.request.actions.close());
+function C3() {
+ u3 && !h3 && (h3 = !0, u3.request.actions.close());
}
-function T3(e, t) {
- let n = v3();
+function w3(e, t) {
+ let n = _3();
n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);
}
-function E3(e) {
+function T3(e) {
if (e.kind === "jav") return {
kind: "jav",
props: {
@@ -77941,30 +77954,30 @@ function E3(e) {
readOnly: e.readOnly,
actions: {
...e.actions,
- close: w3
+ close: C3
}
}
};
let t = e.resume ?? null, n = (n) => {
let r = t && (e.id == null || e.id === n) ? t : null;
return t = null, r;
- }, r = () => y3().player.settings(), i = () => d3?.request === e;
+ }, r = () => v3().player.settings(), i = () => u3?.request === e;
if (e.kind === "item") {
let { kind: t, resume: a, actions: o, ...s } = e, c = {
...o,
- close: w3,
+ close: C3,
present: (e, t) => {
let n = e.performers;
- V4({
+ B4({
kind: "item",
item: e,
title: String(e.title || e.name || ""),
sub: String(n?.[0] || e.creator || "未归属")
- }), T3(r().ambientMode, r().theaterMode), queueMicrotask(() => {
+ }), w3(r().ambientMode, r().theaterMode), queueMicrotask(() => {
i() && o.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => H4(e, {
+ mountPlayer: (e, t, r, i) => V4(e, {
kind: "item",
item: t,
autoplay: i?.autoplay,
@@ -77982,18 +77995,18 @@ function E3(e) {
}
let { kind: a, resume: o, actions: s, ...c } = e, l = {
...s,
- close: w3,
+ close: C3,
present: (e, t) => {
- V4({
+ B4({
kind: "follow",
item: e,
title: e.title || "",
sub: e.author || e.source_label || ""
- }), T3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
+ }), w3(t === "video" && r().ambientMode, t === "video" && r().theaterMode), queueMicrotask(() => {
i() && s.present(e, t);
});
},
- mountPlayer: (e, t, r, i) => H4(e, {
+ mountPlayer: (e, t, r, i) => V4(e, {
kind: "follow",
item: t,
media: r,
@@ -78010,106 +78023,106 @@ function E3(e) {
}
};
}
-function oFe(e, t) {
+function cFe(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 = () => {
- clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), d3?.generation === t && d3.phase === "reveal" && (d3 = {
- ...d3,
+ clearTimeout(r), n?.removeEventListener("transitionend", a), e.removeAttribute("data-stage-reveal"), e.removeAttribute("data-stage-revealing"), u3?.generation === t && u3.phase === "reveal" && (u3 = {
+ ...u3,
phase: "content"
- }, b3());
+ }, y3());
}, a = (e) => {
e.target === n && i();
};
n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);
}
-function D3(e) {
- let t = v3();
- return !d3 || d3.content.kind !== e || g3 || !t?.open || t.hasAttribute("data-closing") ? null : t;
+function E3(e) {
+ let t = _3();
+ return !u3 || u3.content.kind !== e || h3 || !t?.open || t.hasAttribute("data-closing") ? null : t;
}
-async function sFe(e) {
- !f3 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (f3 = {
+async function lFe(e) {
+ !d3 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (d3 = {
left: window.scrollX,
top: window.scrollY,
anchor: document.activeElement
});
- let t = D3(e.kind);
+ let t = E3(e.kind);
if (t) {
- await lFe(e, t);
+ await dFe(e, t);
return;
}
- d3 && O3({ miniplayer: !1 });
- let n = ++m3, r = new AbortController();
- h3 = r, g3 = !1, _3 = !1, e.kind === "jav" ? r3() : G4(e.kind, e.id ?? NaN);
- let i = E3(e);
- d3 = {
+ u3 && D3({ miniplayer: !1 });
+ let n = ++p3, r = new AbortController();
+ m3 = r, h3 = !1, g3 = !1, e.kind === "jav" ? n3() : W4(e.kind, e.id ?? NaN);
+ let i = T3(e);
+ u3 = {
generation: n,
request: e,
content: i,
phase: "skeleton"
};
- let a = i.kind === "item" ? OP(i.props, r.signal) : i.kind === "jav" ? r4(i.props, r.signal) : p2(i.props, r.signal);
- if (n !== m3 || d3?.request !== e) {
+ let a = i.kind === "item" ? DP(i.props, r.signal) : i.kind === "jav" ? n4(i.props, r.signal) : f2(i.props, r.signal);
+ if (n !== p3 || u3?.request !== e) {
await a.catch(() => {});
return;
}
- let o = cFe(i);
- d3 = {
- ...d3,
+ let o = uFe(i);
+ u3 = {
+ ...u3,
phase: o ? "content" : "skeleton"
- }, b3();
- let s = v3();
+ }, y3();
+ let s = _3();
if (!s) {
await a.catch(() => {});
return;
}
- o || mc(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), l2(s);
+ o || pc(s), document.body.setAttribute("data-detail-open", ""), s.open || s.showModal(), c2(s);
try {
await a;
} catch {
if (r.signal.aborted) return;
}
- if (n !== m3 || !d3 || o) return;
+ if (n !== p3 || !u3 || o) return;
let c = !!s.querySelector(".skeleton-awaiting");
- d3 = {
- ...d3,
+ u3 = {
+ ...u3,
phase: c ? "content" : "reveal"
- }, b3(), c || oFe(s, n), nc(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, y3(), c || cFe(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 cFe(e) {
- if (e.kind === "jav") return !!H.getQueryData(t4(e.props.code));
- if (e.kind === "follow") return !!H.getQueryData(u2(e.props.id));
- let { queue: t, id: n } = e.props, r = t ? H.getQueryData(mP(t)) : null;
+function uFe(e) {
+ if (e.kind === "jav") return !!H.getQueryData(e4(e.props.code));
+ if (e.kind === "follow") return !!H.getQueryData(l2(e.props.id));
+ let { queue: t, id: n } = e.props, r = t ? H.getQueryData(pP(t)) : null;
if (t && !r) return !1;
- let i = r ? EP(r, n) : n;
- return i != null && !!H.getQueryData(pP(i));
+ let i = r ? TP(r, n) : n;
+ return i != null && !!H.getQueryData(fP(i));
}
-async function lFe(e, t) {
- let n = ++m3;
- h3?.abort();
+async function dFe(e, t) {
+ let n = ++p3;
+ m3?.abort();
let r = new AbortController();
- h3 = r, _3 = !1;
- let i = E3(e);
+ m3 = r, g3 = !1;
+ let i = T3(e);
try {
- i.kind === "item" ? await OP(i.props, r.signal) : i.kind === "jav" ? await r4(i.props, r.signal) : await p2(i.props, r.signal);
+ i.kind === "item" ? await DP(i.props, r.signal) : i.kind === "jav" ? await n4(i.props, r.signal) : await f2(i.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
- if (n !== m3 || !d3 || D3(e.kind) !== t) return;
- e.kind === "jav" ? r3() : G4(e.kind, e.id ?? NaN), Pl(t), HM(), d3 = {
- ...d3,
+ if (n !== p3 || !u3 || E3(e.kind) !== t) return;
+ e.kind === "jav" ? n3() : W4(e.kind, e.id ?? NaN), Nl(t), VM(), u3 = {
+ ...u3,
request: e,
content: i,
phase: "content"
- }, b3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), nc(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, y3(), t.removeAttribute("data-stage-reveal"), t.removeAttribute("data-stage-revealing"), t.querySelector(":scope > [data-stage-scroll]")?.scrollTo({ top: 0 }), tc(t, ":scope>:not([data-stage-fade]) [data-reveal-line]");
let a = document.activeElement;
a !== t && t.contains(a) || (t.querySelector("[data-mix-item][aria-current=\"true\"]") || t.querySelector("#closeStage"))?.focus({ preventScroll: !0 });
}
-function uFe() {
- l2(null);
- let e = v3();
+function fFe() {
+ c2(null);
+ let e = _3();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
let n = 0, r = () => {
clearTimeout(n), e.removeEventListener("animationend", i), t();
@@ -78119,14 +78132,14 @@ function uFe() {
e.addEventListener("animationend", i), n = window.setTimeout(r, 380);
}));
}
-function O3({ miniplayer: e = !0 } = {}) {
- if (m3++, h3?.abort(), h3 = null, W4(e), !d3) return;
- let t = v3();
- t && Pl(t), HM(), l2(null), t?.open && t.close(), d3 = null, g3 = !1, _3 = !1, b3(), V4(null), document.body.removeAttribute("data-detail-open");
- let n = f3;
- f3 = null;
+function D3({ miniplayer: e = !0 } = {}) {
+ if (p3++, m3?.abort(), m3 = null, U4(e), !u3) return;
+ let t = _3();
+ t && Nl(t), VM(), c2(null), t?.open && t.close(), u3 = null, h3 = !1, g3 = !1, y3(), B4(null), document.body.removeAttribute("data-detail-open");
+ let n = d3;
+ d3 = null;
let r = () => {
- !d3 && n?.anchor.isConnected && n.anchor.getClientRects().length && window.scrollTo({
+ !u3 && n?.anchor.isConnected && n.anchor.getClientRects().length && window.scrollTo({
left: n.left,
top: n.top,
behavior: "instant"
@@ -78134,80 +78147,80 @@ function O3({ miniplayer: e = !0 } = {}) {
};
r(), requestAnimationFrame(r);
}
-function dFe(e) {
- d3 && (d3 = {
- ...d3,
- content: d3.content.kind === "item" ? {
+function pFe(e) {
+ u3 && (u3 = {
+ ...u3,
+ content: u3.content.kind === "item" ? {
kind: "item",
props: {
- ...d3.content.props,
+ ...u3.content.props,
...e
}
- } : d3.content.kind === "jav" ? d3.content : {
+ } : u3.content.kind === "jav" ? u3.content : {
kind: "follow",
props: {
- ...d3.content.props,
+ ...u3.content.props,
...e.relatedLimit === void 0 ? {} : { relatedLimit: e.relatedLimit }
}
}
- }, b3());
+ }, y3());
}
-function fFe() {
- let e = HPe(), t = e?.kind === "item" ? e.item : null, n = t ? Ao(t, y3().player.settings().javImage) : "";
+function mFe() {
+ let e = WPe(), t = e?.kind === "item" ? e.item : null, n = t ? ko(t, v3().player.settings().javImage) : "";
if (!n) return;
- let r = U4();
+ let r = H4();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var pFe = {
- open: sFe,
- update: dFe,
- exit: uFe,
- dispose: O3,
- requestClose: w3,
- requestEscape: C3,
- repaintPoster: fFe,
- isOpen: () => !!d3,
- showing: () => d3 && D3(d3.content.kind) ? d3.content.kind : null,
- activeVideo: () => KPe(),
- mountWallPlayer: UPe,
+var hFe = {
+ open: lFe,
+ update: pFe,
+ exit: fFe,
+ dispose: D3,
+ requestClose: C3,
+ requestEscape: S3,
+ repaintPoster: mFe,
+ isOpen: () => !!u3,
+ showing: () => u3 && E3(u3.content.kind) ? u3.content.kind : null,
+ activeVideo: () => JPe(),
+ mountWallPlayer: GPe,
toggleTheater: () => {
- d3 && bN(!y3().player.settings().theaterMode);
+ u3 && vN(!v3().player.settings().theaterMode);
},
- toggleMiniplayer: () => a3(),
- closeMiniplayer: () => r3(),
- miniplayerActive: () => q4(),
- miniplayerTakesCard: (e) => s3(e),
+ toggleMiniplayer: () => i3(),
+ closeMiniplayer: () => n3(),
+ miniplayerActive: () => K4(),
+ miniplayerTakesCard: (e) => o3(e),
miniplayerPlay: (e) => {
- XPe(e);
+ QPe(e);
}
};
-function mFe(e) {
- return u3 = e, VPe(e, {
- isOpen: () => !!d3,
- requestClose: w3
- }), pFe;
+function gFe(e) {
+ return l3 = e, UPe(e, {
+ isOpen: () => !!u3,
+ requestClose: C3
+ }), hFe;
}
-function hFe() {
- let e = (0, F.useSyncExternalStore)(nFe, () => d3);
- return u3 ? /* @__PURE__ */ (0, I.jsx)(iFe, { view: e }) : null;
+function _Fe() {
+ let e = (0, F.useSyncExternalStore)(iFe, () => u3);
+ return l3 ? /* @__PURE__ */ (0, I.jsx)(oFe, { view: e }) : null;
}
// src/react/stats/stats.ts
-var gFe = "/api/stats", k3 = ["stats"], A3 = (e) => B(gFe, e);
-async function _Fe(e) {
+var vFe = "/api/stats", O3 = ["stats"], k3 = (e) => B(vFe, e);
+async function yFe(e) {
await H.fetchQuery({
- queryKey: k3,
- queryFn: () => A3(e)
+ queryKey: O3,
+ queryFn: () => k3(e)
});
}
-var j3 = (e) => e != null && Number.isFinite(e), vFe = (e) => j3(e) ? e.toLocaleString() : "未取得", yFe = (e, t) => j3(e) && j3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, bFe = (e, t) => {
- let n = yFe(e, t);
- return !n && j3(e) && e > 0 && j3(t) && t > 0 ? "<1%" : `${n}%`;
-}, M3 = (e) => {
- if (!j3(e)) return "未取得";
+var A3 = (e) => e != null && Number.isFinite(e), bFe = (e) => A3(e) ? e.toLocaleString() : "未取得", xFe = (e, t) => A3(e) && A3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, SFe = (e, t) => {
+ let n = xFe(e, t);
+ return !n && A3(e) && e > 0 && A3(t) && t > 0 ? "<1%" : `${n}%`;
+}, j3 = (e) => {
+ if (!A3(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)} 分钟`;
-}, N3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, P3 = (e) => (e.max_reached || 0) * 100, xFe = (e) => e.kind === "online" ? "在线直接观看" : N3(e) < P3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", SFe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
-function CFe(e, t = 6) {
+}, M3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, N3 = (e) => (e.max_reached || 0) * 100, CFe = (e) => e.kind === "online" ? "在线直接观看" : M3(e) < N3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", wFe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
+function TFe(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);
@@ -78217,7 +78230,7 @@ function CFe(e, t = 6) {
bytes: i.reduce((e, t) => e + (t.bytes ?? 0), 0)
}];
}
-var wFe = (e) => Math.max(1, ...e) * 1.1, TFe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, EFe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), DFe = {
+var EFe = (e) => Math.max(1, ...e) * 1.1, DFe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, OFe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), kFe = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -78225,18 +78238,18 @@ var wFe = (e) => Math.max(1, ...e) * 1.1, TFe = (e, t) => e > 0 ? Math.max(e, t
audio: "音频",
account: "账号",
other: "其它文件"
-}, OFe = (e) => e.map((e) => ({
- name: DFe[e.k] ?? e.k,
+}, AFe = (e) => e.map((e) => ({
+ name: kFe[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), kFe = {
+})).sort((e, t) => t.value - e.value), jFe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, F3 = (e, t = {}) => e.map((e) => ({
+}, P3 = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), AFe = (e) => F3(e, kFe), jFe = [
+})), MFe = (e) => P3(e, jFe), NFe = [
[
1,
1,
@@ -78272,12 +78285,12 @@ var wFe = (e) => Math.max(1, ...e) * 1.1, TFe = (e, t) => e > 0 ? Math.max(e, t
Infinity,
"≥10"
]
-], MFe = (e) => jFe.map(([t, n, r]) => ({
+], PFe = (e) => NFe.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
}));
// node_modules/d3-array/src/max.js
-function I3(e, t) {
+function F3(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
else {
@@ -78287,7 +78300,7 @@ function I3(e, t) {
return n;
}
// node_modules/d3-array/src/min.js
-function L3(e, t) {
+function I3(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
else {
@@ -78297,7 +78310,7 @@ function L3(e, t) {
return n;
}
// node_modules/d3-array/src/sum.js
-function R3(e, t) {
+function L3(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -78307,64 +78320,64 @@ function R3(e, t) {
return n;
}
// node_modules/d3-sankey/src/align.js
-function NFe(e, t) {
+function FFe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
// node_modules/d3-sankey/src/constant.js
-function z3(e) {
+function R3(e) {
return function() {
return e;
};
}
// node_modules/d3-sankey/src/sankey.js
+function z3(e, t) {
+ return V3(e.source, t.source) || e.index - t.index;
+}
function B3(e, t) {
- return H3(e.source, t.source) || e.index - t.index;
+ return V3(e.target, t.target) || e.index - t.index;
}
function V3(e, t) {
- return H3(e.target, t.target) || e.index - t.index;
-}
-function H3(e, t) {
return e.y0 - t.y0;
}
-function U3(e) {
+function H3(e) {
return e.value;
}
-function PFe(e) {
+function IFe(e) {
return e.index;
}
-function FFe(e) {
+function LFe(e) {
return e.nodes;
}
-function IFe(e) {
+function RFe(e) {
return e.links;
}
-function W3(e, t) {
+function U3(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function G3({ nodes: e }) {
+function W3({ nodes: e }) {
for (let t of e) {
let e = t.y0, n = e;
for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function LFe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = PFe, c = NFe, l, u, d = FFe, f = IFe, p = 6;
+function zFe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = IFe, c = FFe, l, u, d = LFe, f = RFe, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
links: f.apply(null, arguments)
};
- return h(e), g(e), _(e), v(e), x(e), G3(e), e;
+ return h(e), g(e), _(e), v(e), x(e), W3(e), e;
}
m.update = function(e) {
- return G3(e), e;
+ return W3(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : z3(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : R3(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : z3(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : R3(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -78372,9 +78385,9 @@ function LFe() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : z3(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : R3(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : z3(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : R3(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -78390,12 +78403,12 @@ function LFe() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = W3(n, t)), typeof i != "object" && (i = r.target = W3(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = U3(n, t)), typeof i != "object" && (i = r.target = U3(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
}
if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);
}
function g({ nodes: e }) {
- for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(R3(t.sourceLinks, U3), R3(t.targetLinks, U3)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(L3(t.sourceLinks, H3), L3(t.targetLinks, H3)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -78420,7 +78433,7 @@ function LFe() {
}
}
function y({ nodes: t }) {
- let r = I3(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = F3(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
for (let n of t) {
let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));
n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];
@@ -78429,7 +78442,7 @@ function LFe() {
return o;
}
function b(e) {
- let n = L3(e, (e) => (r - t - (e.length - 1) * o) / R3(e, U3));
+ let n = I3(e, (e) => (r - t - (e.length - 1) * o) / L3(e, H3));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -78446,7 +78459,7 @@ function LFe() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (I3(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (F3(n, (e) => e.length) - 1)), b(n);
for (let e = 0; e < p; ++e) {
let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);
C(n, t, r), S(n, t, r);
@@ -78465,7 +78478,7 @@ function LFe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(H3), w(i, n);
+ l === void 0 && i.sort(V3), w(i, n);
}
}
function C(e, t, n) {
@@ -78481,7 +78494,7 @@ function LFe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(H3), w(i, n);
+ l === void 0 && i.sort(V3), w(i, n);
}
}
function w(e, n) {
@@ -78502,12 +78515,12 @@ function LFe() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(V3);
- for (let { target: { targetLinks: t } } of e) t.sort(B3);
+ for (let { source: { sourceLinks: e } } of t) e.sort(B3);
+ for (let { target: { targetLinks: t } } of e) t.sort(z3);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(V3), n.sort(B3);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(B3), n.sort(z3);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -78536,15 +78549,15 @@ function LFe() {
return m;
}
// node_modules/d3-path/src/path.js
-var K3 = Math.PI, q3 = 2 * K3, J3 = 1e-6, RFe = q3 - J3;
-function Y3() {
+var G3 = Math.PI, K3 = 2 * G3, q3 = 1e-6, BFe = K3 - q3;
+function J3() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function X3() {
- return new Y3();
+function Y3() {
+ return new J3();
}
-Y3.prototype = X3.prototype = {
- constructor: Y3,
+J3.prototype = Y3.prototype = {
+ constructor: J3,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -78565,11 +78578,11 @@ Y3.prototype = X3.prototype = {
var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
if (i < 0) throw Error("negative radius: " + i);
if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
- else if (d > J3) {
- if (!(Math.abs(u * s - c * l) > J3) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > q3) {
+ if (!(Math.abs(u * s - c * l) > q3) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
else {
- var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((K3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > J3 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
+ var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((G3 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > q3 && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
}
}
},
@@ -78577,7 +78590,7 @@ Y3.prototype = X3.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) > J3 || Math.abs(this._y1 - l) > J3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % q3 + q3), d > RFe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > J3 && (this._ += "A" + n + "," + n + ",0," + +(d >= K3) + "," + 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) > q3 || Math.abs(this._y1 - l) > q3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % K3 + K3), d > BFe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > q3 && (this._ += "A" + n + "," + n + ",0," + +(d >= G3) + "," + 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";
@@ -78587,93 +78600,93 @@ Y3.prototype = X3.prototype = {
}
};
// node_modules/d3-shape/src/constant.js
-function Z3(e) {
+function X3(e) {
return function() {
return e;
};
}
// node_modules/d3-shape/src/point.js
-function zFe(e) {
+function VFe(e) {
return e[0];
}
-function BFe(e) {
+function HFe(e) {
return e[1];
}
// node_modules/d3-shape/src/array.js
-var VFe = Array.prototype.slice;
+var UFe = Array.prototype.slice;
// node_modules/d3-shape/src/link/index.js
-function HFe(e) {
+function WFe(e) {
return e.source;
}
-function UFe(e) {
+function GFe(e) {
return e.target;
}
-function WFe(e) {
- var t = HFe, n = UFe, r = zFe, i = BFe, a = null;
+function KFe(e) {
+ var t = WFe, n = GFe, r = VFe, i = HFe, a = null;
function o() {
- var o, s = VFe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = X3(), 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;
+ var o, s = UFe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = Y3(), 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) {
return arguments.length ? (t = e, o) : t;
}, o.target = function(e) {
return arguments.length ? (n = e, o) : n;
}, o.x = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : Z3(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : X3(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : Z3(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : X3(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function GFe(e, t, n, r, i) {
+function qFe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function KFe() {
- return WFe(GFe);
+function JFe() {
+ return KFe(qFe);
}
// node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function qFe(e) {
+function YFe(e) {
return [e.source.x1, e.y0];
}
-function JFe(e) {
+function XFe(e) {
return [e.target.x0, e.y1];
}
-function YFe() {
- return KFe().source(qFe).target(JFe);
+function ZFe() {
+ return JFe().source(YFe).target(XFe);
}
// src/react/taste/taste.ts
-var XFe = "/api/taste", Q3 = "/api/taste/refresh", ZFe = "/api/taste/import", $3 = "/api/taste/source", e6 = (e) => ["taste", e], QFe = ["taste", "refresh"], $Fe = [
+var QFe = "/api/taste", Z3 = "/api/taste/refresh", $Fe = "/api/taste/import", Q3 = "/api/taste/source", $3 = (e) => ["taste", e], eIe = ["taste", "refresh"], tIe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], eIe = 2e3, tIe = (e) => e?.stale && !e.error ? eIe : !1, nIe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
+], nIe = 2e3, rIe = (e) => e?.stale && !e.error ? nIe : !1, iIe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
month: "numeric",
day: "numeric",
hour: "2-digit",
minute: "2-digit"
-}) : "—", rIe = (e, t) => V($3, {
+}) : "—", aIe = (e, t) => V(Q3, {
...e,
window: t
-}), t6 = (e, t, n = !1) => B(`${XFe}?window=${e}${n ? "&retry=1" : ""}`, t), iIe = (e) => B(Q3, e);
-async function aIe(e, t) {
+}), e6 = (e, t, n = !1) => B(`${QFe}?window=${e}${n ? "&retry=1" : ""}`, t), oIe = (e) => B(Z3, e);
+async function sIe(e, t) {
await H.fetchQuery({
- queryKey: e6(e),
- queryFn: () => t6(e, t)
+ queryKey: $3(e),
+ queryFn: () => e6(e, t)
});
}
-var oIe = (e) => V(Q3, {
+var cIe = (e) => V(Z3, {
window: e,
background: !0
-}), sIe = (e, t) => V($3, {
+}), lIe = (e, t) => V(Q3, {
operation: "remove",
source_key: e,
window: t
});
-async function cIe(e) {
- let t = await fetch(ZFe, {
+async function uIe(e) {
+ let t = await fetch($Fe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -78691,52 +78704,52 @@ async function cIe(e) {
}
return n;
}
-var lIe = 1e4, n6 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
-function uIe(e) {
+var dIe = 1e4, t6 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
+function fIe(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", {
month: "numeric",
day: "numeric"
- }) : n6(e);
+ }) : t6(e);
return `${t} · ${r(e.range_start)}–${r(e.range_end)}`;
}
-var dIe = M3, fIe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), pIe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function mIe(e) {
+var pIe = j3, mIe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), hIe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function gIe(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 hIe(e) {
- let t = e.map(pIe), n = Math.max(1, ...t);
+function _Ie(e) {
+ let t = e.map(hIe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var r6 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
+var n6 = (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 gIe(e) {
- let t = r6(e, 6);
+function vIe(e) {
+ let t = n6(e, 6);
return t.length < 3 ? [] : t;
}
-var i6 = {
+var r6 = {
width: 720,
height: 435
-}, _Ie = {
+}, yIe = {
source: 145,
target: 545
-}, a6 = 30, vIe = 240;
-function o6(e, t, n) {
+}, i6 = 30, bIe = 240;
+function a6(e, t, n) {
let r = /* @__PURE__ */ new Map();
for (let n of e) r.set(n[t], (r.get(n[t]) ?? 0) + n.value);
if (r.size <= 12) return (e) => e;
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 yIe(e = []) {
+function xIe(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
- let n = o6(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = o6(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
+ let n = a6(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = a6(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
for (let e of t) {
let t = n(e.source), a = r(e.target), o = JSON.stringify([t, a]), s = i.get(o);
s ? s.value += e.value : i.set(o, {
@@ -78745,7 +78758,7 @@ function yIe(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) * a6 + vIe), u = LFe().nodeId((e) => e.id).nodeWidth(10).nodePadding(a6).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) * i6 + bIe), u = zFe().nodeId((e) => e.id).nodeWidth(10).nodePadding(i6).extent([[155, 16], [535, l]])({
nodes: [...o.map((e) => ({
id: `source:${e}`,
name: e,
@@ -78760,7 +78773,7 @@ function yIe(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), d = a.reduce((e, t) => e + t.value, 0), f = YFe();
+ }), d = a.reduce((e, t) => e + t.value, 0), f = ZFe();
return {
nodes: u.nodes.map((e) => ({
id: e.id,
@@ -78788,17 +78801,17 @@ function yIe(e = []) {
};
}),
total: d,
- height: l + i6.height - 404
+ height: l + r6.height - 404
};
}
-var bIe = (e) => tr(e, 17), s6 = {
+var SIe = (e) => tr(e, 17), o6 = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, xIe = [[
+}, CIe = [[
"big",
"大图 · 竖幅头像",
"maximize"
@@ -78806,7 +78819,7 @@ var bIe = (e) => tr(e, 17), s6 = {
"compact",
"紧凑 · 圆形头像",
"layout-grid"
-]], SIe = [[
+]], wIe = [[
"big",
"大图 · 完整标识",
"maximize"
@@ -78814,7 +78827,7 @@ var bIe = (e) => tr(e, 17), s6 = {
"compact",
"紧凑 · 圆形标识",
"layout-grid"
-]], CIe = [[
+]], TIe = [[
"big",
"大图 · 系列图片",
"maximize"
@@ -78822,7 +78835,7 @@ var bIe = (e) => tr(e, 17), s6 = {
"compact",
"紧凑 · 系列图片",
"layout-grid"
-]], wIe = [
+]], EIe = [
[
"studios",
"厂牌",
@@ -78838,7 +78851,7 @@ var bIe = (e) => tr(e, 17), s6 = {
"系列",
"file-stack"
]
-], TIe = [[
+], DIe = [[
"local",
"本地",
"hard-drive"
@@ -78846,7 +78859,7 @@ var bIe = (e) => tr(e, 17), s6 = {
"online",
"在线",
"rss"
-]], EIe = [
+]], OIe = [
[
"performers",
"艺人",
@@ -78862,7 +78875,7 @@ var bIe = (e) => tr(e, 17), s6 = {
"在线",
"rss"
]
-], DIe = [[
+], kIe = [[
"cloud",
"标签云",
"tags"
@@ -78870,8 +78883,8 @@ var bIe = (e) => tr(e, 17), s6 = {
"alphabet",
"字母表",
"text-aa"
-]], c6 = (e) => e === "compact" ? "compact" : "big";
-function l6(e, t) {
+]], s6 = (e) => e === "compact" ? "compact" : "big";
+function c6(e, t) {
let n = new URLSearchParams(t);
return {
kind: e,
@@ -78881,7 +78894,7 @@ function l6(e, t) {
category: n.get("category") || "all"
};
}
-var u6 = (e, t, n) => Ws(e.map(([e, t, n]) => ({
+var l6 = (e, t, n) => Us(e.map(([e, t, n]) => ({
value: e,
label: t,
symbol: n
@@ -78889,43 +78902,43 @@ var u6 = (e, t, n) => Ws(e.map(([e, t, n]) => ({
active: t,
label: n,
className: "indextabs"
-}), OIe = (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">
+}), AIe = (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">${el("tag-view", "标签视图", DIe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
-function kIe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
- let o = s6[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? el("people-layout", o + "索引版式", e === "series" ? CIe : c ? SIe : xIe, a) : "";
+ <span class="ml-auto">${$c("tag-view", "标签视图", kIe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
+function jIe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
+ let o = o6[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? $c("people-layout", o + "索引版式", e === "series" ? TIe : c ? wIe : CIe, 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}
- ${Ds("default")}
- ${e === "tags" ? ks({
+ ${Es("default")}
+ ${e === "tags" ? Os({
variant: "ghost",
glyph: "pencil",
attrs: "data-tag-mode data-skeleton-action disabled tabindex=\"-1\" aria-label=\"管理标签\""
}) : ""}
- <div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Os("", t, "过滤" + o)}</div>
+ <div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", t, "过滤" + o)}</div>
</div>
- ${e === "tags" ? u6(TIe, n, "词表") : e === "performers" || e === "creators" ? u6(EIe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? u6(wIe, e, "资料类型") : ""}
- ${e === "tags" ? OIe(r) : ""}
- ${e === "performers" && n !== "online" ? aDe(i) : ""}
- ${sc({
+ ${e === "tags" ? l6(DIe, n, "词表") : e === "performers" || e === "creators" ? l6(OIe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? l6(EIe, e, "资料类型") : ""}
+ ${e === "tags" ? AIe(r) : ""}
+ ${e === "performers" && n !== "online" ? sDe(i) : ""}
+ ${oc({
kind: e,
layout: a,
mode: r
})}`;
}
-var AIe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
-function d6(e, t, n) {
- let r = kIe(t, n);
- e.querySelector("[data-skeleton]")?.dataset.skeleton !== AIe(r) && (e.innerHTML = r, mc(e));
+var MIe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
+function u6(e, t, n) {
+ let r = jIe(t, n);
+ e.querySelector("[data-skeleton]")?.dataset.skeleton !== MIe(r) && (e.innerHTML = r, pc(e));
}
// src/react/router/pages/index-entity.tsx
-var jIe = () => mu, MIe = () => $l, f6 = () => document.getElementById("index");
-function p6(e, t, n = {}) {
- let r = (0, F.useSyncExternalStore)(wu, jIe);
- tf();
- let i = Vf(Pp.navigation.location.pathname), a = (0, F.useRef)({
+var NIe = () => pu, PIe = () => Ql, d6 = () => document.getElementById("index");
+function f6(e, t, n = {}) {
+ let r = (0, F.useSyncExternalStore)(Cu, NIe);
+ ef();
+ let i = Bf(Np.navigation.location.pathname), a = (0, F.useRef)({
mounted: !0,
epoch: -1,
opens: -1,
@@ -78949,8 +78962,8 @@ function p6(e, t, n = {}) {
r !== 0 && queueMicrotask(() => {
let t = a.current;
if (!t.mounted) return;
- let n = t.epoch !== e || t.opens !== mu, r = t.opens !== mu;
- if (t.epoch = e, t.opens = mu, Vf(Pp.navigation.location.pathname)) {
+ let n = t.epoch !== e || t.opens !== pu, r = t.opens !== pu;
+ if (t.epoch = e, t.opens = pu, Bf(Np.navigation.location.pathname)) {
n && o.current.options.onCovered?.();
return;
}
@@ -78971,38 +78984,38 @@ function p6(e, t, n = {}) {
i
]);
}
-async function NIe(e, t, n, r) {
- let i = f6();
+async function FIe(e, t, n, r) {
+ let i = d6();
if (!i) return;
- let a = `/${t}`, o = l6(t, n), s = c6($j().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
- c || (e.surfaceChanged("index", a), d6(i, o, s), ym(r, i, { pending: !0 })), await bp(a, {
+ let a = `/${t}`, o = c6(t, n), s = s6(Qj().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
+ c || (e.surfaceChanged("index", a), u6(i, o, s), vm(r, i, { pending: !0 })), await yp(a, {
...o,
layout: s,
- selectMode: $l,
+ selectMode: Ql,
configurable: !!e.configurable?.()
}, {
container: i,
isCurrent: r,
reuse: c
- }) && r() && (e.surfaceShown?.("index", a), ym(r, i));
+ }) && r() && (e.surfaceShown?.("index", a), vm(r, i));
}
-function PIe(e) {
- let t = f6(), n = t ? hp(t) : null;
+function IIe(e) {
+ let t = d6(), n = t ? mp(t) : null;
return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;
}
-function FIe({ epoch: e }) {
- let t = (0, F.useContext)(qW), n = tf(), r = n.pathname.split("/").filter(Boolean)[0];
- return p6(e, (e, i) => {
- t && NIe(t, r, n.search, i);
- }, { shown: () => PIe(`/${r}`) }), null;
+function LIe({ epoch: e }) {
+ let t = (0, F.useContext)(KW), n = ef(), r = n.pathname.split("/").filter(Boolean)[0];
+ return f6(e, (e, i) => {
+ t && FIe(t, r, n.search, i);
+ }, { shown: () => IIe(`/${r}`) }), null;
}
-function IIe() {
- let e = KW(), t = (0, F.useSyncExternalStore)(wu, MIe), n = (0, F.useRef)(t);
+function RIe() {
+ let e = GW(), t = (0, F.useSyncExternalStore)(Cu, PIe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
- n.current !== t && (n.current = t, window.location.pathname === "/tags" && Sp(f6(), { selectMode: t }));
- }, [t]), /* @__PURE__ */ (0, I.jsx)(FIe, { epoch: e }, e);
+ n.current !== t && (n.current = t, window.location.pathname === "/tags" && xp(d6(), { selectMode: t }));
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(LIe, { epoch: e }, e);
}
-function LIe(e) {
+function zIe(e) {
let t;
try {
t = decodeURIComponent(e);
@@ -79016,9 +79029,9 @@ function LIe(e) {
name: a
} : null;
}
-var m6 = /* @__PURE__ */ new WeakMap();
-function RIe(e) {
- let t = m6.get(e);
+var p6 = /* @__PURE__ */ new WeakMap();
+function BIe(e) {
+ let t = p6.get(e);
return t || (t = {
helpers: {
...e.grid.helpers,
@@ -79028,14 +79041,14 @@ function RIe(e) {
...e.grid.actions,
revealSource: e.revealSource
}
- }, m6.set(e, t)), t;
+ }, p6.set(e, t)), t;
}
-function h6() {
- let e = f6(), t = e ? hp(e) : null;
+function m6() {
+ let e = d6(), t = e ? mp(e) : null;
return !!t && t.path.endsWith("/*") && t.host.isConnected;
}
-async function zIe(e, t, n, r, i, a, o) {
- let s = f6();
+async function VIe(e, t, n, r, i, a, o) {
+ let s = d6();
if (!s) return;
let { segment: c, kind: l, name: u } = n;
if (!a()) return;
@@ -79048,9 +79061,9 @@ async function zIe(e, t, n, r, i, a, o) {
body: d.content.querySelector("[data-entity-body]>.peach-react")
}, h = {
...t.props(l, u, i),
- ...gm("entity")
+ ...hm("entity")
};
- hm("entity", {
+ mm("entity", {
seed: h.seed,
revision: h.revision,
jav: h.jav
@@ -79058,9 +79071,9 @@ async function zIe(e, t, n, r, i, a, o) {
let g = {
...h,
hosts: m,
- card: RIe(e),
+ card: BIe(e),
resolvedEntity: o,
- restoreNavigation: _m(),
+ restoreNavigation: gm(),
actions: {
...h.actions,
javContext: (e) => {
@@ -79068,21 +79081,21 @@ async function zIe(e, t, n, r, i, a, o) {
}
}
};
- await bp(`/${c}/*`, g, {
+ await yp(`/${c}/*`, g, {
container: s,
isCurrent: a,
beforePlace: () => e.surfaceChanged("entity", r),
place: (e) => (e.replaceChildren(...f), p.firstElementChild)
- }) && a() && h6() && (e.surfaceShown?.("entity", r), ym(a, m.filter));
+ }) && a() && m6() && (e.surfaceShown?.("entity", r), vm(a, m.filter));
}
-function BIe({ target: e }) {
- let t = (0, F.useContext)(qW), n = KW(), r = tf();
- return p6(n, (n, i) => {
+function HIe({ target: e }) {
+ let t = (0, F.useContext)(KW), n = GW(), r = ef();
+ return f6(n, (n, i) => {
let a = t?.entity;
t && a && (async () => {
- if (n || !h6()) {
+ if (n || !m6()) {
if (t.surfaceChanged("entity", r.pathname), await a.loading(e.kind, e.name, i), !i()) return;
- ym(i, f6(), { pending: !0 });
+ vm(i, d6(), { pending: !0 });
}
let o = new URLSearchParams({ kind: e.kind });
o.set(/^[0-9]+$/.test(e.name) ? "id" : "name", e.name);
@@ -79093,186 +79106,186 @@ function BIe({ target: e }) {
e.name
],
queryFn: ({ signal: e }) => B(`/api/entity?${o}`, e),
- staleTime: _m() ? Infinity : 0
+ staleTime: gm() ? Infinity : 0
}).catch(() => null);
if (!i()) return;
if (s?.redirect) {
- Fp(Pn(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {
+ Pp(Pn(s.redirect.kind, s.redirect.name, s.redirect.id) + r.search + r.hash, {
replace: !0,
- state: Pp.navigation.location.state
+ state: Np.navigation.location.state
});
return;
}
if (!s?.id || s.error) {
- a.missing(e.kind), ym(i);
+ a.missing(e.kind), vm(i);
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) ? ym(i, f6()?.querySelector("[data-entity-filter]")) : zIe(t, a, {
+ l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? vm(i, d6()?.querySelector("[data-entity-filter]")) : VIe(t, a, {
...e,
name: c
- }, r.pathname, r.search, i, s) : Fp(l + r.search + r.hash, {
+ }, r.pathname, r.search, i, s) : Pp(l + r.search + r.hash, {
replace: !0,
- state: Pp.navigation.location.state
+ state: Np.navigation.location.state
});
})();
- }, { shown: () => h6() && !f6()?.hidden }), null;
+ }, { shown: () => m6() && !d6()?.hidden }), null;
}
-function VIe() {
- let e = LIe(tf().pathname);
- return e ? /* @__PURE__ */ (0, I.jsx)(BIe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
+function UIe() {
+ let e = zIe(ef().pathname);
+ return e ? /* @__PURE__ */ (0, I.jsx)(HIe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
}
// src/react/router/pages/follow.tsx
-var g6 = () => document.getElementById("stats"), HIe = () => bu;
-async function UIe(e, t) {
- let n = g6(), r = e.follow;
+var h6 = () => document.getElementById("stats"), WIe = () => yu;
+async function GIe(e, t) {
+ let n = h6(), r = e.follow;
if (!n || !r) return;
- let i = gm("follow"), a = r.refresh(i), o = r.props();
- if (hm("follow", {
+ let i = hm("follow"), a = r.refresh(i), o = r.props();
+ if (mm("follow", {
view: o.view,
seed: o.seed,
revision: o.revision
}), a) return;
- let s = H.getQueryData(ia(o.view, o.revision).queryKey) !== void 0;
- s || (e.surfaceChanged("follow", "/follow"), L2(n, r.skeleton()), ym(t, n, { pending: !0 })), await bp("/follow", o, {
+ let s = H.getQueryData(ra(o.view, o.revision).queryKey) !== void 0;
+ s || (e.surfaceChanged("follow", "/follow"), I2(n, r.skeleton()), vm(t, n, { pending: !0 })), await yp("/follow", o, {
container: n,
isCurrent: t,
beforePlace: s ? () => e.surfaceChanged("follow", "/follow") : void 0
- }), t() && ym(t, n.querySelector("[data-filter-frame]"));
+ }), t() && vm(t, n.querySelector("[data-filter-frame]"));
}
-function WIe() {
- let e = g6(), t = e ? hp(e) : null;
+function KIe() {
+ let e = h6(), t = e ? mp(e) : null;
return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;
}
-function GIe() {
- let e = (0, F.useContext)(qW);
- return p6(KW(), (t, n) => {
- e && UIe(e, n);
+function qIe() {
+ let e = (0, F.useContext)(KW);
+ return f6(GW(), (t, n) => {
+ e && GIe(e, n);
}, {
- shown: WIe,
+ shown: KIe,
onCovered: () => {
- Pp.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
+ Np.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
}
}), null;
}
-function _6(e) {
- let t = e ? hp(e) : null;
+function g6(e) {
+ let t = e ? mp(e) : null;
return !!t && t.path === "/playlists" && t.host.isConnected;
}
-async function KIe(e, t) {
- let n = g6();
- n && (e.surfaceChanged("playlists", "/playlists"), L2(n, F2("/playlists", {
+async function JIe(e, t) {
+ let n = h6();
+ n && (e.surfaceChanged("playlists", "/playlists"), I2(n, P2("/playlists", {
followLayout: "",
followSort: "",
followDir: ""
- })), ym(t, n, { pending: !0 }), await bp("/playlists", { revision: bu }, {
+ })), vm(t, n, { pending: !0 }), await yp("/playlists", { revision: yu }, {
container: n,
isCurrent: t
- }), t() && ym(t));
+ }), t() && vm(t));
}
-function qIe() {
- let e = (0, F.useContext)(qW), t = (0, F.useSyncExternalStore)(wu, HIe), n = (0, F.useRef)(t);
+function YIe() {
+ let e = (0, F.useContext)(KW), t = (0, F.useSyncExternalStore)(Cu, WIe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
if (n.current === t) return;
n.current = t;
- let e = g6();
- _6(e) && Sp(e, { revision: t });
- }, [t]), p6(KW(), (t, n) => {
- e && KIe(e, n);
+ let e = h6();
+ g6(e) && xp(e, { revision: t });
+ }, [t]), f6(GW(), (t, n) => {
+ e && JIe(e, n);
}, { shown: () => {
- let e = g6();
- return _6(e) && !e.hidden;
+ let e = h6();
+ return g6(e) && !e.hidden;
} }), null;
}
// src/react/router/pages/immerse.tsx
-function JIe() {
- let e = new URLSearchParams(Pp.navigation.location.search).get("id");
+function XIe() {
+ let e = new URLSearchParams(Np.navigation.location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function YIe() {
- let e = (0, F.useContext)(qW);
- return WW(() => {
- e?.openImmerse(JIe());
+function ZIe() {
+ let e = (0, F.useContext)(KW);
+ return UW(() => {
+ e?.openImmerse(XIe());
}, !0), null;
}
-function XIe() {
- return /* @__PURE__ */ (0, I.jsx)(YIe, {}, KW());
+function QIe() {
+ return /* @__PURE__ */ (0, I.jsx)(ZIe, {}, GW());
}
// src/react/router/pages/managed.tsx
-var ZIe = () => mu > 0, v6 = () => (0, F.useSyncExternalStore)(wu, ZIe), y6 = () => $j().value.followLayout === "table" ? "table" : "default", b6 = () => new URLSearchParams(window.location.search);
-function x6(e) {
+var $Ie = () => pu > 0, _6 = () => (0, F.useSyncExternalStore)(Cu, $Ie), v6 = () => Qj().value.followLayout === "table" ? "table" : "default", y6 = () => new URLSearchParams(window.location.search);
+function b6(e) {
return Tn("/healthz", { signal: e.controller.signal }).catch((e) => {
if (En(e)) return null;
throw e;
});
}
-function S6(e, t) {
+function x6(e, t) {
return {
readOnly: !!e?.ledger_read_only,
readOnlyMessage: e?.ledger_read_only_message || "本机当前只能浏览",
writerUrl: e?.ledger_writer_origin ? new URL(t, e.ledger_writer_origin).href : ""
};
}
-async function QIe(e, t) {
+async function eLe(e, t) {
if (e === "/jav") {
- let e = await x6(t);
+ let e = await b6(t);
return t.live ? {
- tab: oU(b6().get("tab")),
+ tab: aU(y6().get("tab")),
readOnly: !!e?.ledger_read_only
} : null;
}
if (e === "/stats") return {};
if (e === "/taste") {
- let e = pu;
+ let e = fu;
return W({ cameFromSetup: !1 }), { onboarding: e };
}
if (e.startsWith("/settings/")) {
window.location.hash === "#peachProxy" && W({ configurationRequestedSection: "网络与访问" });
- let t = b6().get("section") || du || jf(e);
+ let t = y6().get("section") || uu || Af(e);
return t ? { section: t } : {};
}
if (e === "/review") {
- let e = b6().get("category") || "", n = await x6(t);
+ let e = y6().get("category") || "", n = await b6(t);
return t.live ? {
- category: xY(e) ? e : "",
- queue: wY(b6().get("queue")),
- ...S6(n, "/review")
+ category: bY(e) ? e : "",
+ queue: CY(y6().get("queue")),
+ ...x6(n, "/review")
} : null;
}
if (e === "/subscriptions") {
- let e = AZ("?" + b6().toString()), n = await x6(t);
+ let e = kZ("?" + y6().toString()), n = await b6(t);
if (!t.live) return null;
- let r = $j().value;
+ let r = Qj().value;
return {
...e,
pageSize: Number(r.followPageSize) || 20,
- layout: y6(),
- ...S6(n, "/subscriptions")
+ layout: v6(),
+ ...x6(n, "/subscriptions")
};
}
return {};
}
-async function $Ie(e, t, n) {
- let r = Pp.navigation.seq, i = () => n.live && Pp.navigation.seq === r;
- if (e === "/jav" && oU(b6().get("tab")) === "library") {
- Pp.replace(Hve(window.location.search));
+async function tLe(e, t, n) {
+ let r = Np.navigation.seq, i = () => n.live && Np.navigation.seq === r;
+ if (e === "/jav" && aU(y6().get("tab")) === "library") {
+ Np.replace(Wve(window.location.search));
return;
}
- if (e === "/subscriptions" && b6().get("tab") === "wants") {
- Fp("/jav?tab=wants", { replace: !0 });
+ if (e === "/subscriptions" && y6().get("tab") === "wants") {
+ Pp("/jav?tab=wants", { replace: !0 });
return;
}
- if (e === "/subscriptions" && b6().get("tab") === "source") {
- Fp("/settings/subscriptions", { replace: !0 });
+ if (e === "/subscriptions" && y6().get("tab") === "source") {
+ Pp("/settings/subscriptions", { replace: !0 });
return;
}
let a = document.getElementById("stats");
if (!a) return;
- t.surfaceChanged("management", e), L2(a, F2(e, {
- followLayout: y6(),
- followSort: b6().get("sort") || "",
- followDir: b6().get("dir") || ""
- })), ym(i, a, { pending: !0 }), e === "/taste" && (W({ state: {
+ t.surfaceChanged("management", e), I2(a, P2(e, {
+ followLayout: v6(),
+ followSort: y6().get("sort") || "",
+ followDir: y6().get("dir") || ""
+ })), vm(i, a, { pending: !0 }), e === "/taste" && (W({ state: {
...U,
creator: "",
studio: "",
@@ -79287,37 +79300,37 @@ async function $Ie(e, t, n) {
q: "",
jav: ""
} }), t.clearSearch());
- let o = await QIe(e, n);
+ let o = await eLe(e, n);
if (!o) return;
- let s = await bp(e, o, {
+ let s = await yp(e, o, {
container: a,
isCurrent: i
});
- if (s && (n.revision = hp(a)?.revision ?? 0), e.startsWith("/settings/") && s && W({ configurationRequestedSection: "" }), s && i()) {
+ if (s && (n.revision = mp(a)?.revision ?? 0), e.startsWith("/settings/") && s && W({ configurationRequestedSection: "" }), s && i()) {
let { hash: t } = window.location;
e === "/settings/library" && t === "#libraryProcessing" ? queueMicrotask(() => {
- i() && Fp("/data-cleanup#libraryProcessing", {
+ i() && Pp("/data-cleanup#libraryProcessing", {
replace: !0,
state: null
});
- }) : ym(i);
+ }) : vm(i);
}
}
-function C6({ path: e }) {
- let t = KW();
- tf();
- let n = Vf(Pp.navigation.location.pathname), r = (0, F.useRef)(n ? null : t), i = (0, F.useRef)(n);
+function S6({ path: e }) {
+ let t = GW();
+ ef();
+ let n = Bf(Np.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)(eLe, {
+ return /* @__PURE__ */ (0, I.jsx)(nLe, {
path: e,
covered: r.current === null
}, `${a} ${r.current ?? "covered"}`);
}
-function eLe({ path: e, covered: t }) {
- let n = (0, F.useContext)(qW), r = v6(), i = (0, F.useRef)(null);
+function nLe({ path: e, covered: t }) {
+ let n = (0, F.useContext)(KW), r = _6(), i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
- e.startsWith("/settings/") && Sp(document.getElementById("stats"), { section: jf(e) });
+ e.startsWith("/settings/") && xp(document.getElementById("stats"), { section: Af(e) });
}, [e]), (0, F.useEffect)(() => {
if (t || !n || !r || i.current) return;
let a = {
@@ -79326,45 +79339,45 @@ function eLe({ path: e, covered: t }) {
controller: new AbortController()
};
i.current = a, queueMicrotask(() => {
- a.live && $Ie(e, n, a);
+ a.live && tLe(e, n, a);
});
}, [r]), (0, F.useEffect)(() => () => {
let e = i.current;
e && (e.live = !1, e.controller.abort());
}, []), null;
}
-function tLe() {
- let e = v6(), t = (0, F.useRef)(!1);
+function rLe() {
+ let e = _6(), t = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
- if (!e || t.current || Vf(Pp.navigation.location.pathname)) return;
+ if (!e || t.current || Bf(Np.navigation.location.pathname)) return;
t.current = !0;
let n = !0;
return queueMicrotask(() => {
- n && Fp("/data-cleanup/resource-sync", { replace: !0 });
+ n && Pp("/data-cleanup/resource-sync", { replace: !0 });
}), () => {
n = !1;
};
}, [e]), null;
}
// src/react/router/route-chunk.ts
-var w6 = [], T6 = "peach.chunkReloadAt", nLe = 3e4;
-async function rLe() {
+var C6 = [], w6 = "peach.chunkReloadAt", iLe = 3e4;
+async function aLe() {
try {
- let e = Number(sessionStorage.getItem(T6) || 0);
- if (Date.now() - e < nLe || !(await fetch("/healthz", {
+ let e = Number(sessionStorage.getItem(w6) || 0);
+ if (Date.now() - e < iLe || !(await fetch("/healthz", {
cache: "no-store",
credentials: "same-origin"
})).ok) return;
- sessionStorage.setItem(T6, String(Date.now())), location.reload();
+ sessionStorage.setItem(w6, String(Date.now())), location.reload();
} catch {}
}
-function E6(e) {
+function T6(e) {
let t = null, n = null, r = () => n ??= e().then((e) => (t = { module: e }, e), (e) => {
throw n = null, e;
});
- return w6.push(r), {
+ return C6.push(r), {
preload: () => r().catch(async (e) => {
- throw await rLe(), e;
+ throw await aLe(), e;
}),
get: () => {
if (!t) throw Error("页面代码还没装载");
@@ -79372,10 +79385,10 @@ function E6(e) {
}
};
}
-function iLe() {
+function oLe() {
let e = globalThis.requestIdleCallback;
if (typeof e != "function") return;
- let t = [...w6], n = () => {
+ let t = [...C6], n = () => {
let r = t.shift();
r && e(() => {
r().catch(() => {}).finally(n);
@@ -79384,31 +79397,31 @@ function iLe() {
document.readyState === "complete" ? n() : window.addEventListener("load", n, { once: !0 });
}
// src/react/router/managed-routes.tsx
-async function D6(e, t) {
+async function E6(e, t) {
let [n, r] = await Promise.allSettled([e.preload(), t]);
if (r.status === "rejected") throw r.reason;
if (n.status === "rejected") throw n.reason;
}
-var O6 = E6(() => import("./peach-app.jav-page-CvsnSwyE.js")), k6 = E6(() => import("./peach-app.stats-page-Domc7MK7.js")), A6 = E6(() => import("./peach-app.taste-page-DBsNS6-3.js")), j6 = E6(() => import("./peach-app.review-page-B1VG9j0D.js")), M6 = E6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), N6 = E6(() => import("./peach-app.duplicates-page-BHkh7UmS.js")), P6 = E6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), F6 = E6(() => import("./peach-app.scraping-page-C1N85_Sm.js")), I6 = E6(async () => {
+var D6 = T6(() => import("./peach-app.jav-page-CvsnSwyE.js")), O6 = T6(() => import("./peach-app.stats-page-Domc7MK7.js")), k6 = T6(() => import("./peach-app.taste-page-DBsNS6-3.js")), A6 = T6(() => import("./peach-app.review-page-B1VG9j0D.js")), j6 = T6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), M6 = T6(() => import("./peach-app.duplicates-page-BHkh7UmS.js")), N6 = T6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), P6 = T6(() => import("./peach-app.scraping-page-C1N85_Sm.js")), F6 = T6(async () => {
let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-C6CCxz0L.js"), import("./peach-app.diagnostics-page-DS1L_wLs.js")]);
return {
ConfigurationPage: e,
DiagnosticsPage: t
};
-}), L6 = E6(() => import("./peach-app.activity-page-BakH9pKt.js")), R6 = E6(() => import("./peach-app.follow-manage-page-CePb_ntJ.js")), z6 = E6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
-function aLe(e, t, n) {
+}), I6 = T6(() => import("./peach-app.activity-page-BakH9pKt.js")), L6 = T6(() => import("./peach-app.follow-manage-page-CePb_ntJ.js")), R6 = T6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
+function sLe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
}
let r = t.managePath(e);
- H6(r) ? n(r) : t.openManage(e);
+ V6(r) ? n(r) : t.openManage(e);
}
-var B6 = (e) => ({
- element: /* @__PURE__ */ (0, I.jsx)(C6, { path: e }),
- prefetch: (t, n) => D6(I6, Promise.all([nje(n), ...e === "/settings/diagnostics" ? [Tke(n)] : []]).then(() => {})),
+var z6 = (e) => ({
+ element: /* @__PURE__ */ (0, I.jsx)(S6, { path: e }),
+ prefetch: (t, n) => E6(F6, Promise.all([ije(n), ...e === "/settings/diagnostics" ? [Dke(n)] : []]).then(() => {})),
page: (t, n) => {
- let { ConfigurationPage: r, DiagnosticsPage: i } = I6.get();
+ let { ConfigurationPage: r, DiagnosticsPage: i } = F6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
receipt: (e) => n.receipt(e),
reopenTutorial: n.reopenTutorial,
@@ -79419,12 +79432,12 @@ var B6 = (e) => ({
})
});
}
-}), V6 = {
- ...Xf.reduce((e, t) => (e[t.path] = {
- element: /* @__PURE__ */ (0, I.jsx)(C6, { path: t.path }),
- prefetch: (e, n) => D6(M6, YEe(t.key, n)),
+}), B6 = {
+ ...Yf.reduce((e, t) => (e[t.path] = {
+ element: /* @__PURE__ */ (0, I.jsx)(S6, { path: t.path }),
+ prefetch: (e, n) => E6(j6, ZEe(t.key, n)),
page: (e, n) => {
- let { DataCleanupToolPage: r } = M6.get();
+ let { DataCleanupToolPage: r } = j6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
tool: t.key,
failure: n.failure,
@@ -79433,10 +79446,10 @@ var B6 = (e) => ({
}
}, e), {}),
"/jav": {
- element: /* @__PURE__ */ (0, I.jsx)(C6, { path: "/jav" }),
- prefetch: (e, t) => D6(O6, qye(e.tab, t)),
+ element: /* @__PURE__ */ (0, I.jsx)(S6, { path: "/jav" }),
+ prefetch: (e, t) => E6(D6, Yye(e.tab, t)),
page: (e, t) => {
- let { JavPage: n } = O6.get();
+ let { JavPage: n } = D6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
...e,
navigate: t.navigate,
@@ -79445,21 +79458,21 @@ var B6 = (e) => ({
}
},
"/stats": {
- element: /* @__PURE__ */ (0, I.jsx)(C6, { path: "/stats" }),
- prefetch: (e, t) => D6(k6, _Fe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(S6, { path: "/stats" }),
+ prefetch: (e, t) => E6(O6, yFe(t)),
page: (e, t) => {
- let { StatsPage: n } = k6.get();
+ let { StatsPage: n } = O6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
- tagLabel: Rl,
+ tagLabel: Ll,
onTag: t.openTag
});
}
},
"/taste": {
- element: /* @__PURE__ */ (0, I.jsx)(C6, { path: "/taste" }),
- prefetch: (e, t) => D6(A6, aIe("all", t)),
+ element: /* @__PURE__ */ (0, I.jsx)(S6, { path: "/taste" }),
+ prefetch: (e, t) => E6(k6, sIe("all", t)),
page: (e, t, n) => {
- let { TastePage: r } = A6.get();
+ let { TastePage: r } = k6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
onSignal: t.openTasteSignal,
navigate: n,
@@ -79469,10 +79482,10 @@ var B6 = (e) => ({
}
},
"/review": {
- element: /* @__PURE__ */ (0, I.jsx)(C6, { path: "/review" }),
- prefetch: (e, t) => D6(j6, zTe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(S6, { path: "/review" }),
+ prefetch: (e, t) => E6(A6, VTe(t)),
page: (e, t) => {
- let { ReviewPage: n } = j6.get();
+ let { ReviewPage: n } = A6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
...e,
route: t.routeReview,
@@ -79484,23 +79497,23 @@ var B6 = (e) => ({
}
},
"/data-cleanup": {
- element: /* @__PURE__ */ (0, I.jsx)(C6, { path: "/data-cleanup" }),
- prefetch: (e, t) => D6(M6, JEe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(S6, { path: "/data-cleanup" }),
+ prefetch: (e, t) => E6(j6, XEe(t)),
page: (e, t, n) => {
- let { DataCleanupPage: r } = M6.get();
+ let { DataCleanupPage: r } = j6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
navigate: n,
failure: t.failure,
- open: (e) => aLe(e, t, n),
+ open: (e) => sLe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
});
}
},
"/duplicates": {
- element: /* @__PURE__ */ (0, I.jsx)(C6, { path: "/duplicates" }),
- prefetch: (e, t) => D6(N6, tTe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(S6, { path: "/duplicates" }),
+ prefetch: (e, t) => E6(M6, rTe(t)),
page: (e, t) => {
- let { DuplicatesPage: n } = N6.get();
+ let { DuplicatesPage: n } = M6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
openItem: t.openItem,
failure: t.failure,
@@ -79509,46 +79522,46 @@ var B6 = (e) => ({
}
},
"/quality-goals": {
- element: /* @__PURE__ */ (0, I.jsx)(C6, { path: "/quality-goals" }),
- prefetch: (e, t) => D6(P6, pTe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(S6, { path: "/quality-goals" }),
+ prefetch: (e, t) => E6(N6, hTe(t)),
page: (e, t) => {
- let { QualityGoalsPage: n } = P6.get();
+ let { QualityGoalsPage: n } = N6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
openItem: t.openItem,
- javTitleHtml: BI,
- javDisplayName: zI,
+ javTitleHtml: zI,
+ javDisplayName: RI,
toast: (e) => t.receipt(e),
srcBadge: t.srcBadge
});
}
},
"/sources": {
- element: /* @__PURE__ */ (0, I.jsx)(C6, { path: "/sources" }),
- prefetch: (e, t) => D6(F6, UAe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(S6, { path: "/sources" }),
+ prefetch: (e, t) => E6(P6, GAe(t)),
page: (e, t) => {
- let { ScrapingPage: n } = F6.get();
+ let { ScrapingPage: n } = P6.get();
return /* @__PURE__ */ (0, I.jsx)(n, { toast: (e) => t.toast(e) });
}
},
- "/settings/library": B6("/settings/library"),
- "/settings/subscriptions": B6("/settings/subscriptions"),
- "/settings/downloads": B6("/settings/downloads"),
- "/settings/network": B6("/settings/network"),
- "/settings/maintenance": B6("/settings/maintenance"),
- "/settings/diagnostics": B6("/settings/diagnostics"),
+ "/settings/library": z6("/settings/library"),
+ "/settings/subscriptions": z6("/settings/subscriptions"),
+ "/settings/downloads": z6("/settings/downloads"),
+ "/settings/network": z6("/settings/network"),
+ "/settings/maintenance": z6("/settings/maintenance"),
+ "/settings/diagnostics": z6("/settings/diagnostics"),
"/tasks": {
- element: /* @__PURE__ */ (0, I.jsx)(C6, { path: "/tasks" }),
- prefetch: (e, t) => D6(L6, bpe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(S6, { path: "/tasks" }),
+ prefetch: (e, t) => E6(I6, Spe(t)),
page: () => {
- let { ActivityPage: e } = L6.get();
+ let { ActivityPage: e } = I6.get();
return /* @__PURE__ */ (0, I.jsx)(e, {});
}
},
"/subscriptions": {
- element: /* @__PURE__ */ (0, I.jsx)(C6, { path: "/subscriptions" }),
- prefetch: (e, t) => D6(R6, zi(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(S6, { path: "/subscriptions" }),
+ prefetch: (e, t) => E6(L6, Ri(t)),
page: (e, t) => {
- let { FollowManagePage: n } = R6.get();
+ let { FollowManagePage: n } = L6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
...e,
route: t.routeFollowManage,
@@ -79558,12 +79571,12 @@ var B6 = (e) => ({
});
}
}
-}, H6 = (e) => Object.hasOwn(V6, e), oLe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(tLe, {}) } }, sLe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(XIe, {}) } }, U6 = {
+}, V6 = (e) => Object.hasOwn(B6, e), cLe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(rLe, {}) } }, lLe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(QIe, {}) } }, H6 = {
"/playlists": {
- element: /* @__PURE__ */ (0, I.jsx)(qIe, {}),
- prefetch: (e, t) => D6(z6, DAe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(YIe, {}),
+ prefetch: (e, t) => E6(R6, kAe(t)),
page: (e, t) => {
- let { PlaylistsPage: n } = z6.get();
+ let { PlaylistsPage: n } = R6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
revision: e.revision,
openPlaylist: t.openPlaylist,
@@ -79574,102 +79587,102 @@ var B6 = (e) => ({
}
},
"/follow": {
- element: /* @__PURE__ */ (0, I.jsx)(GIe, {}),
- prefetch: (e, t) => sa(e, t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(rOe, { ...e })
- }
-}, W6 = (e) => Object.hasOwn(U6, e), G6 = {
- element: /* @__PURE__ */ (0, I.jsx)(IIe, {}),
- prefetch: (e, t) => gDe(e, t),
- page: (e, t) => /* @__PURE__ */ (0, I.jsx)(zke, {
+ element: /* @__PURE__ */ (0, I.jsx)(qIe, {}),
+ prefetch: (e, t) => oa(e, t),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(aOe, { ...e })
+ }
+}, U6 = (e) => Object.hasOwn(H6, e), W6 = {
+ element: /* @__PURE__ */ (0, I.jsx)(RIe, {}),
+ prefetch: (e, t) => vDe(e, t),
+ page: (e, t) => /* @__PURE__ */ (0, I.jsx)(Vke, {
...e,
route: t.routeIndex,
savePreference: t.savePeopleLayout,
exitSelectMode: t.exitSelectMode,
personAvatar: t.personAvatar,
authorAvatar: t.authorAvatar,
- tagLabel: Rl,
+ tagLabel: Ll,
openEntity: t.openEntity,
showTags: t.showIndexTags,
openFollowAuthor: t.openFollowAuthor,
openFollowTag: t.openFollowTag
})
+}, G6 = {
+ "/performers": W6,
+ "/creators": W6,
+ "/studios": W6,
+ "/agencies": W6,
+ "/tags": W6,
+ "/series": W6
}, K6 = {
- "/performers": G6,
- "/creators": G6,
- "/studios": G6,
- "/agencies": G6,
- "/tags": G6,
- "/series": G6
+ element: /* @__PURE__ */ (0, I.jsx)(UIe, {}),
+ prefetch: (e) => oDe(e),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(Ske, { ...e })
}, q6 = {
- element: /* @__PURE__ */ (0, I.jsx)(VIe, {}),
- prefetch: (e) => iDe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(bke, { ...e })
+ "/performers/*": K6,
+ "/studios/*": K6,
+ "/creators/*": K6,
+ "/series/*": K6,
+ "/agencies/*": K6,
+ "/tags/*": K6
}, J6 = {
- "/performers/*": q6,
- "/studios/*": q6,
- "/creators/*": q6,
- "/series/*": q6,
- "/agencies/*": q6,
- "/tags/*": q6
-}, Y6 = {
"/": {
- element: /* @__PURE__ */ (0, I.jsx)(HW, {}),
- prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(tY, { ...e })
+ element: /* @__PURE__ */ (0, I.jsx)(VW, {}),
+ prefetch: (e, t) => Jue(e, tG(), t),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(eY, { ...e })
},
"/junk-files": {
- element: /* @__PURE__ */ (0, I.jsx)(HW, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(VW, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(Qke, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(eAe, { ...e })
}
-}, X6 = (e) => Object.hasOwn(Y6, e), cLe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(Mve, { ...e }) : /* @__PURE__ */ (0, I.jsx)(x$, { ...e }), Z6 = {
+}, Y6 = (e) => Object.hasOwn(J6, e), uLe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(Pve, { ...e }) : /* @__PURE__ */ (0, I.jsx)(b$, { ...e }), X6 = {
"catalog-filter": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(rxe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(axe, { ...e })
},
"feed-new": {
- prefetch: (e) => eDe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(Eke, { ...e })
+ prefetch: (e) => nDe(e),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(Oke, { ...e })
},
"library-processing": {
- prefetch: (e, t) => iH(t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(cLe, { ...e })
+ prefetch: (e, t) => rH(t),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(uLe, { ...e })
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(ZAe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)($Ae, { ...e })
}
-}, Q6 = (e) => Object.hasOwn(Z6, e), $6 = {
+}, Z6 = (e) => Object.hasOwn(X6, e), Q6 = {
"batch-dock": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(mle, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(hle, {})
},
"glow-picker": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Xle, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Zle, {})
},
"manage-header": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)($fe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(tpe, {})
},
immerse: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Yde, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Zde, {})
},
"settings-panel": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Mje, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Pje, {})
},
sidebar: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Jje, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Xje, {})
},
stage: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(hFe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(_Fe, {})
}
-}, e8 = (e) => Object.hasOwn($6, e), t8 = [
+}, $6 = (e) => Object.hasOwn(Q6, e), e8 = [
"/",
"/wall",
"/unseen",
@@ -79679,99 +79692,99 @@ var B6 = (e) => ({
"/junk-files"
];
[
- ...Object.keys(V6),
- ...Object.keys(U6),
- ...Object.keys(K6),
- ...Object.keys(J6),
- ...t8
+ ...Object.keys(B6),
+ ...Object.keys(H6),
+ ...Object.keys(G6),
+ ...Object.keys(q6),
+ ...e8
];
-var n8 = (e) => H6(e) || W6(e) || Object.hasOwn(K6, e) || Object.hasOwn(J6, e) || X6(e) || Q6(e) || e8(e);
-function r8(e) {
- return H6(e) ? V6[e] : W6(e) ? U6[e] : X6(e) ? Y6[e] : Q6(e) ? Z6[e] : e8(e) ? $6[e] : Object.hasOwn(K6, e) ? K6[e] : J6[e];
+var t8 = (e) => V6(e) || U6(e) || Object.hasOwn(G6, e) || Object.hasOwn(q6, e) || Y6(e) || Z6(e) || $6(e);
+function n8(e) {
+ return V6(e) ? B6[e] : U6(e) ? H6[e] : Y6(e) ? J6[e] : Z6(e) ? X6[e] : $6(e) ? Q6[e] : Object.hasOwn(G6, e) ? G6[e] : q6[e];
}
-function lLe(e, t, n) {
- return n8(e) ? r8(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
+function dLe(e, t, n) {
+ return t8(e) ? n8(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
-function uLe(e, t, n, r) {
- return r8(e).page(t, n, r);
+function fLe(e, t, n, r) {
+ return n8(e).page(t, n, r);
}
// src/react/application-residents.ts
-var i8 = null, a8 = null, o8 = 0, s8 = /* @__PURE__ */ new Set();
-function dLe(e) {
- return i8 = e, a8 && e(a8), () => {
- i8 === e && (i8 = null);
+var r8 = null, i8 = null, a8 = 0, o8 = /* @__PURE__ */ new Set();
+function pLe(e) {
+ return r8 = e, i8 && e(i8), () => {
+ r8 === e && (r8 = null);
};
}
-function fLe(e) {
- return i8 && (a8 = e, i8(e), mp(Promise.resolve(lLe)), iLe()), Promise.resolve();
+function mLe(e) {
+ return r8 && (i8 = e, r8(e), pp(Promise.resolve(dLe)), oLe()), Promise.resolve();
}
-async function c8(e, t, n = (e) => e) {
- let r = o8;
- if (t.isConnected || s8.add(t), !await bp(e, {}, {
+async function s8(e, t, n = (e) => e) {
+ let r = a8;
+ if (t.isConnected || o8.add(t), !await yp(e, {}, {
container: t,
resident: !0,
- isCurrent: () => !!i8 && r === o8,
+ isCurrent: () => !!r8 && r === a8,
place: () => n(t)
- }) || r !== o8 || !i8) throw new DOMException("应用已卸载", "AbortError");
+ }) || r !== a8 || !r8) throw new DOMException("应用已卸载", "AbortError");
}
-function pLe() {
- o8 += 1, i8 = null, a8 = null, l8 = null, u8 = null, p8 = null, m8 = null, g8 = null, _8 = null, y8 = null, b8 = null, S8 = null, C8 = null, T8 = null, E8 = null, O8 = null;
- for (let e of s8) e.remove();
- s8.clear(), BQ();
+function hLe() {
+ a8 += 1, r8 = null, i8 = null, c8 = null, l8 = null, f8 = null, p8 = null, h8 = null, g8 = null, v8 = null, y8 = null, x8 = null, S8 = null, w8 = null, T8 = null, D8 = null;
+ for (let e of o8) e.remove();
+ o8.clear(), zQ();
}
-var l8 = null, u8 = null;
-function d8(e) {
- return l8 ??= (async () => {
- let t = mFe(e), n = document.createElement("div");
- return n.dataset.stageHost = "", await c8("stage", n, (e) => (document.body.append(e), e)), u8 = t, t;
- })(), l8;
+var c8 = null, l8 = null;
+function u8(e) {
+ return c8 ??= (async () => {
+ let t = gFe(e), n = document.createElement("div");
+ return n.dataset.stageHost = "", await s8("stage", n, (e) => (document.body.append(e), e)), l8 = t, t;
+ })(), c8;
}
-var f8 = () => u8, p8 = null, m8 = null;
-function mLe(e) {
- return p8 ??= (async () => {
- let t = Jde(e), n = document.createElement("div");
- return n.dataset.immerseHost = "", await c8("immerse", n, (e) => (document.body.append(e), e)), m8 = t, t;
- })(), p8;
-}
-var h8 = () => m8, g8 = null, _8 = null;
-function hLe(e) {
- return g8 ??= (async () => {
- let t = jje(e), n = document.createElement("div");
- return n.dataset.settingsHost = "", await c8("settings-panel", n, (e) => (document.body.append(e), e)), _8 = t, t;
- })(), g8;
-}
-var v8 = () => _8, y8 = null, b8 = null;
+var d8 = () => l8, f8 = null, p8 = null;
function gLe(e) {
- return y8 ??= (async () => {
- let t = qje(e);
- return await c8("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), b8 = t, t;
- })(), y8;
+ return f8 ??= (async () => {
+ let t = Xde(e), n = document.createElement("div");
+ return n.dataset.immerseHost = "", await s8("immerse", n, (e) => (document.body.append(e), e)), p8 = t, t;
+ })(), f8;
}
-var x8 = () => b8, S8 = null, C8 = null;
+var m8 = () => p8, h8 = null, g8 = null;
function _Le(e) {
- return S8 ??= (async () => {
- let t = Qfe(e);
- return await c8("manage-header", e.root, (e) => (e.replaceChildren(), e)), C8 = t, t;
- })(), S8;
+ return h8 ??= (async () => {
+ let t = Nje(e), n = document.createElement("div");
+ return n.dataset.settingsHost = "", await s8("settings-panel", n, (e) => (document.body.append(e), e)), g8 = t, t;
+ })(), h8;
}
-var w8 = () => C8, T8 = null, E8 = null;
+var _8 = () => g8, v8 = null, y8 = null;
function vLe(e) {
- return T8 ??= (async () => {
- let t = ple(e);
- return await c8("batch-dock", e.root), E8 = t, t;
- })(), T8;
+ return v8 ??= (async () => {
+ let t = Yje(e);
+ return await s8("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), y8 = t, t;
+ })(), v8;
}
-var D8 = () => E8, O8 = null;
+var b8 = () => y8, x8 = null, S8 = null;
function yLe(e) {
- return O8 ??= (async () => {
- Yle(e), await c8("glow-picker", e.root);
- })(), O8;
-}
-function k8(e, t, n, r) {
- VQ(e, t), HQ(n, r);
+ return x8 ??= (async () => {
+ let t = epe(e);
+ return await s8("manage-header", e.root, (e) => (e.replaceChildren(), e)), S8 = t, t;
+ })(), x8;
+}
+var C8 = () => S8, w8 = null, T8 = null;
+function bLe(e) {
+ return w8 ??= (async () => {
+ let t = mle(e);
+ return await s8("batch-dock", e.root), T8 = t, t;
+ })(), w8;
+}
+var E8 = () => T8, D8 = null;
+function xLe(e) {
+ return D8 ??= (async () => {
+ Xle(e), await s8("glow-picker", e.root);
+ })(), D8;
+}
+function O8(e, t, n, r) {
+ BQ(e, t), VQ(n, r);
}
// src/application/receipts.js
-var A8 = {
+var k8 = {
toastBody: void 0,
toastSeq: void 0,
toast: void 0,
@@ -79780,13 +79793,13 @@ var A8 = {
rollSeed: void 0,
seededSample: void 0
};
-function bLe() {
- VQ(L("#toasts"), {
+function SLe() {
+ BQ(L("#toasts"), {
success: R("check"),
error: R("circle-alert")
- }), A8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : z(e && typeof e == "object" ? e.text ?? "" : e ?? ""), A8.toastSeq = 0, A8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
- let a = `toast-${++A8.toastSeq}`, o = (e, t, n, r) => {
- $o(i || (t ? "error" : "success")), k8(L("#toasts"), {
+ }), k8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : z(e && typeof e == "object" ? e.text ?? "" : e ?? ""), k8.toastSeq = 0, k8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
+ let a = `toast-${++k8.toastSeq}`, o = (e, t, n, r) => {
+ Qo(i || (t ? "error" : "success")), O8(L("#toasts"), {
success: R("check"),
error: R("circle-alert")
}, a, {
@@ -79796,15 +79809,15 @@ function bLe() {
action: r && !t ? {
label: r.label,
run: (e) => {
- Zc(e), r.run();
+ Xc(e), r.run();
}
} : null
});
};
- return o(A8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(A8.toastBody(e), t, n, null) };
- }, A8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
+ return o(k8.toastBody(e), n, t, r), { replaceMessage: (e, { warn: t = !1, timeout: n = 4e3 } = {}) => o(k8.toastBody(e), t, n, null) };
+ }, k8.actionReceipt = (e, { undo: t = null, timeout: n = t ? 8e3 : 6e3 } = {}) => {
let r = null;
- return r = A8.toast({ text: e }, {
+ return r = k8.toast({ text: e }, {
timeout: n,
action: t ? {
label: "撤销",
@@ -79817,14 +79830,14 @@ function bLe() {
}
} : null
}), r;
- }, A8.actionFailure = (e, t) => A8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), A8.rollSeed = () => ir(), A8.seededSample = (e, t, n, r = (e) => e.k) => {
+ }, k8.actionFailure = (e, t) => k8.toast({ text: `${e}失败:${t?.message || "请重试"}` }, { warn: !0 }), k8.rollSeed = () => ir(), k8.seededSample = (e, t, n, r = (e) => e.k) => {
if (e.length <= t) return e;
let i = new Set([...e].sort((e, t) => rr(n, r(e)) - rr(n, r(t))).slice(0, t).map(r));
return e.filter((e) => i.has(r(e)));
};
}
// src/react/catalog-grid/catalog-state.ts
-var xLe = [
+var CLe = [
"loc",
"creator",
"studio",
@@ -79845,10 +79858,10 @@ var xLe = [
"folder",
"folder_recursive"
];
-function j8(e, t, n, r = n.defaultSort) {
- return Pj(e, t, n.defaultSort, n.defaultSortDirection, r);
+function A8(e, t, n, r = n.defaultSort) {
+ return Nj(e, t, n.defaultSort, n.defaultSortDirection, r);
}
-function SLe(e, t, n) {
+function wLe(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",
@@ -79864,7 +79877,7 @@ function SLe(e, t, n) {
region: o("region") || "",
year: o("year") || "",
state: kn[r] || o("state") || "",
- ...j8(o("sort"), o("dir"), t),
+ ...A8(o("sort"), o("dir"), t),
seed: o("seed") || n(),
q: o("q") || "",
jav: o("jav") || "",
@@ -79874,18 +79887,18 @@ function SLe(e, t, n) {
folder_recursive: o("folder_recursive") === "0" ? "0" : ""
};
}
-function CLe(e, t) {
+function TLe(e, t) {
return e.split(",").filter(Boolean).filter((e) => t[e] !== !1).join(",") || e;
}
-function wLe(e) {
+function ELe(e) {
let t = On[e.state ?? ""] || "/", n = new URLSearchParams();
- for (let t of xLe) {
+ for (let t of CLe) {
let r = e[t];
- !r || t === "tag_match" && r === "all" || t === "dir" && r === jj(e.sort ?? "") || n.set(t, r);
+ !r || t === "tag_match" && r === "all" || t === "dir" && r === Aj(e.sort ?? "") || n.set(t, r);
}
return !On[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");
}
-function TLe(e, t, n) {
+function DLe(e, t, n) {
return {
loc: e.loc ?? "",
creator: "",
@@ -79901,7 +79914,7 @@ function TLe(e, t, n) {
year: "",
state: "",
sort: t.defaultSort,
- dir: Nj(t.defaultSort, t.defaultSort, t.defaultSortDirection),
+ dir: Mj(t.defaultSort, t.defaultSort, t.defaultSortDirection),
seed: n(),
q: "",
jav: "",
@@ -79911,7 +79924,7 @@ function TLe(e, t, n) {
folder_recursive: ""
};
}
-function M8(e) {
+function j8(e) {
return {
state: e,
barsContext: {
@@ -79922,7 +79935,7 @@ function M8(e) {
};
}
// src/react/catalog-grid/catalog-controller.ts
-var ELe = class {
+var OLe = class {
currentRevision = 0;
currentPage = "";
painting = null;
@@ -79967,44 +79980,44 @@ var ELe = class {
let e = [...this.waiters.values()];
this.waiters.clear(), e.forEach((e) => e());
}
-}, N8 = Infinity, P8 = 0, DLe = (e, t = P8) => [
+}, M8 = Infinity, N8 = 0, kLe = (e, t = N8) => [
"facets",
e,
t
-], OLe = (e, t, n = P8) => [
+], ALe = (e, t, n = N8) => [
"tops",
e,
t,
n
-], kLe = (e, t = P8) => [
+], jLe = (e, t = N8) => [
"tops",
e,
t
];
-async function F8(e) {
+async function P8(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 ALe(e, t) {
+function MLe(e, t) {
return Promise.all([H.fetchQuery({
- queryKey: DLe(e),
+ queryKey: kLe(e),
queryFn: () => Tn(`/api/facets${e ? `?${e}` : ""}`),
- staleTime: N8
+ staleTime: M8
}), H.fetchQuery({
- queryKey: OLe(t, e),
- queryFn: () => F8(t),
- staleTime: N8
+ queryKey: ALe(t, e),
+ queryFn: () => P8(t),
+ staleTime: M8
})]);
}
-function jLe(e) {
+function NLe(e) {
return H.fetchQuery({
- queryKey: kLe(e),
- queryFn: () => F8(e),
- staleTime: N8
+ queryKey: jLe(e),
+ queryFn: () => P8(e),
+ staleTime: M8
});
}
-function I8() {
- P8 += 1;
+function F8() {
+ N8 += 1;
let e = (e) => e.state.fetchStatus === "idle";
H.removeQueries({
queryKey: ["facets"],
@@ -80015,7 +80028,7 @@ function I8() {
});
}
// src/application/navigation-items.ts
-var L8 = [
+var I8 = [
[
"",
"首页",
@@ -80066,7 +80079,7 @@ var L8 = [
"管理",
"wrench"
]
-], R8 = [
+], L8 = [
[
"stats",
"统计",
@@ -80112,18 +80125,18 @@ var L8 = [
"Peach 配置",
"folder-cog"
]
-], z8 = [
+], R8 = [
"stats",
"taste",
"cleanup",
"follow",
"activity",
"configuration"
-], MLe = (e) => R8.filter(([t]) => z8.includes(t) && (t !== "configuration" || e)), B8 = R8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
+], PLe = (e) => L8.filter(([t]) => R8.includes(t) && (t !== "configuration" || e)), z8 = L8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
e === "follow" ? "follow-manage" : e === "cleanup" ? "data-cleanup" : e,
t,
n
-]]), NLe = [...L8, ...B8], PLe = {
+]]), FLe = [...I8, ...z8], ILe = {
stats: "stats",
review: "review",
"data-cleanup": "cleanup",
@@ -80131,54 +80144,54 @@ var L8 = [
"follow-manage": "follow",
quality: "quality",
activity: "activity"
-}, V8 = [
+}, B8 = [
["0", "不限时间"],
["7", "最近 7 天"],
["30", "最近 30 天"],
["90", "最近 90 天"]
];
// src/react/index/index-controller.ts
-function H8({ kind: e, q: t, scope: n, view: r, category: i }) {
+function V8({ kind: e, q: t, scope: n, view: r, category: i }) {
let a = new URLSearchParams();
return t && a.set("q", t), e === "tags" && (a.set("view", r), n === "online" && a.set("scope", n), i !== "all" && a.set("category", i)), e === "performers" && n === "online" && a.set("scope", n), e === "performers" && n !== "online" && i !== "all" && a.set("category", i), `/${e}` + (a.size ? `?${a}` : "");
}
-function U8(e, t, n) {
+function H8(e, t, n) {
let r = e.entity_id || e.id, i = t === "studio" || t === "agency";
return {
- html: vo(e.k, r ? {
+ html: _o(e.k, r ? {
id: r,
has_image: e.has_image,
image_version: e.image_version,
logo_version: e.logo_version,
avatar_stand_in: e.avatar_stand_in
} : null, e.has_avatar && !i ? e.rep : null, t, e.mark, e.has_logo ? e.k : "", i && n ? "large" : "ring", i ? null : e.avatar_focus, !0),
- face: bo(e.avatar_focus)
+ face: yo(e.avatar_focus)
};
}
-function W8(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" ${Ha({ fallbacks: [e.avatar_fallback || ""] })}>` : "";
+function U8(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 FLe(e) {
+function LLe(e) {
let t = (t) => {
- e.adoptFollowView(t), e.hideIndex(), e.openPage(Aa(t));
+ e.adoptFollowView(t), e.hideIndex(), e.openPage(ka(t));
};
return {
route(t, { replace: n = !1 } = {}) {
- e.route(H8(t), n);
+ e.route(V8(t), n);
},
- personAvatar: U8,
- authorAvatar: W8,
+ personAvatar: H8,
+ authorAvatar: U8,
openFollowAuthor(n) {
- t(ja(e.followView(), n));
+ t(Aa(e.followView(), n));
},
openFollowTag(n) {
- t(Ma(e.followView(), n));
+ t(ja(e.followView(), n));
}
};
}
// src/application/effects.ts
-var G8 = class {
+var W8 = class {
cleanups = /* @__PURE__ */ new Set();
active = !0;
disposed = !1;
@@ -80259,56 +80272,56 @@ var G8 = class {
}
if (e.length) throw AggregateError(e, "应用资源清理未全部完成");
}
-}, K8 = new G8();
-function ILe() {
- return K8.dispose(), K8 = new G8(), K8;
+}, G8 = new W8();
+function RLe() {
+ return G8.dispose(), G8 = new W8(), G8;
}
// src/application/source-action.ts
-function LLe(e) {
+function zLe(e) {
return async (t, n, { button: r = null } = {}) => {
if (r?.getAttribute("aria-busy") === "true") return;
let i = r?.innerHTML ?? "", a = r?.textContent?.trim() ?? "";
- r && (Zc(r), r.innerHTML = `${Vs("正在定位")}${a ? `<span>${z(a)}</span>` : ""}`), n.textContent = "";
+ r && (Xc(r), r.innerHTML = `${Bs("正在定位")}${a ? `<span>${z(a)}</span>` : ""}`), n.textContent = "";
try {
await e.request(t), n.textContent = "", e.success();
} catch (t) {
n.textContent = e.failureText(t);
} finally {
- r && (Zc(r, !1), r.innerHTML = i);
+ r && (Xc(r, !1), r.innerHTML = i);
}
};
}
// src/react/entity-page/entity-route.ts
-var q8 = () => Object.fromEntries(kX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
-function J8(e, t) {
- let n = new URLSearchParams(e), r = q8();
- for (let e of kX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
+var K8 = () => Object.fromEntries(OX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
+function q8(e, t) {
+ let n = new URLSearchParams(e), r = K8();
+ for (let e of OX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
return {
...r,
- ...Pj(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
+ ...Nj(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
};
}
-function Y8(e) {
+function J8(e) {
let t = new URLSearchParams();
- for (let n of kX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === jj(e.sort || "") || t.set(n, e[n]);
+ for (let n of OX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Aj(e.sort || "") || t.set(n, e[n]);
return t.toString();
}
-function X8(e) {
+function Y8(e) {
let t = new URLSearchParams(e), n = t.get("set") || "", r = t.get("media");
return {
media: r === "photos" || r === "online" ? r : "videos",
set: r === "photos" && /^\d+$/.test(n) ? Number(n) : 0
};
}
-function Z8(e, t) {
- let n = new URLSearchParams(Y8(e));
+function X8(e, t) {
+ let n = new URLSearchParams(J8(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 RLe(e, t, n, r) {
- let i = Z8(n, r);
+function BLe(e, t, n, r) {
+ let i = X8(n, r);
return Pn(e, t) + (i ? `?${i}` : "");
}
-function zLe() {
+function VLe() {
let e = "";
return {
fresh(t, n) {
@@ -80317,22 +80330,22 @@ function zLe() {
read(t, n, r, i) {
let a = e === Pn(t, n) && !r;
e = "";
- let o = a ? q8() : { ...J8(r, i) };
+ let o = a ? K8() : { ...q8(r, i) };
return t === "creator" && (o.creator = ""), {
filters: o,
media: a ? {
media: "videos",
set: 0
- } : X8(r)
+ } : Y8(r)
};
}
};
}
// src/react/entity-page/photo-surface.ts
-function BLe(e, t) {
+function HLe(e, t) {
return e.entityWall && e.entityCurrent && e.indexVisible || e.pathname === "/follow" && e.followMedia === "images" && e.statsVisible ? !0 : t();
}
-function VLe(e) {
+function ULe(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);
@@ -80354,12 +80367,12 @@ function VLe(e) {
};
}
// src/react/entity-page/entity-controller.ts
-function HLe(e, t, n) {
+function WLe(e, t, n) {
let r = (t, n, r, i = {
media: "videos",
set: 0
}, { push: a = !0 } = {}) => {
- if (a && e.route(RLe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
+ if (a && e.route(BLe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
e.releaseBodyPreviews();
let o = e.state();
return e.push({
@@ -80373,7 +80386,7 @@ function HLe(e, t, n) {
if (s) return s;
let c = () => {
let n = e.context();
- return n?.kind === t && n.name === a ? n.filters : q8();
+ return n?.kind === t && n.name === a ? n.filters : K8();
}, l = {
...n,
route: (e, n) => {
@@ -80386,7 +80399,7 @@ function HLe(e, t, n) {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let n = c(), i = Mj(e, n.sort || "new", n.dir || "");
+ let n = c(), i = jj(e, n.sort || "new", n.dir || "");
i && r(t, a, {
...n,
...i
@@ -80437,7 +80450,7 @@ function HLe(e, t, n) {
};
}
// src/react/entity-page/entity-loading.ts
-function ULe(e) {
+function GLe(e) {
return async (t, n, r) => {
e.paintSkeleton(t, n), e.resetView(), e.shapesReady(t, n) || e.waitShapes().then(() => {
r() && e.syncParts(t, n);
@@ -80447,8 +80460,8 @@ function ULe(e) {
};
}
// src/react/entity-page/entity-portrait.ts
-function WLe(e, t) {
- let n = e === "studio" || e === "agency", r = t.id ? _o({
+function KLe(e, t) {
+ let n = e === "studio" || e === "agency", r = t.id ? go({
kind: e,
id: t.id,
hasImage: t.has_image,
@@ -80461,19 +80474,19 @@ function WLe(e, t) {
logoVariant: "large",
alt: z(t.canonical_name),
lazy: !1,
- style: n ? "" : xo(t.avatar_focus),
+ style: n ? "" : bo(t.avatar_focus),
focus: n ? null : t.avatar_focus,
dropStyle: !0,
thumb: !1
}) : "", i = e === "creator" ? t.follow : null;
- return r || (i?.avatar ? `<img src="${z(i.avatar)}" alt="${z(t.canonical_name)}" referrerpolicy="no-referrer" ${Ha({ fallbacks: [i.avatar_fallback || ""] })}>` : "");
+ 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 GLe(e) {
- let t = zLe(), n = {
+function qLe(e) {
+ let t = VLe(), n = {
...e.helpers,
- portraitImg: WLe
- }, r = HLe(e.controller, n, e.actions);
+ portraitImg: KLe
+ }, r = WLe(e.controller, n, e.actions);
return {
...r,
helpers: n,
@@ -80482,20 +80495,20 @@ function GLe(e) {
let { filters: o, media: s } = t.read(n, i, a, e.sortPreference());
return r.props(n, i, o, s);
},
- loading: ULe(e.loading),
- photos: VLe(e.photos)
+ loading: GLe(e.loading),
+ photos: ULe(e.photos)
};
}
// src/card-art/feed-identity.ts
-function KLe(e) {
+function JLe(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 ? "" : vo(t.name, t, null);
+ 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>`;
}).join("");
return r.length > 1 ? `<div class="mavstack">${i}</div>` : i;
}
// src/application/feed.js
-var Q8 = {
+var Z8 = {
FEED_SKELETON_CARDS: void 0,
feedNewSkeletonHtml: void 0,
entityShapes: void 0,
@@ -80511,112 +80524,112 @@ var Q8 = {
feedNewActions: void 0,
HERO_WIDE_PX: void 0
};
-function $8(e) {
- return e.has_cover ? Co(e, "big") : !e.cover_url || !e.code ? e.cover_fetching ? `<span class="nopic" data-feed-cover-state="fetching">${Us("抓取中")}</span>` : "<span class=\"nopic\" data-feed-cover-state=\"missing\">无封面</span>" : Co(e, "big").replace(/ src="[^"]*"/, ` src="${z(po(e))}" data-panel-prior="1"`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"nopic\"");
+function Q8(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 qLe(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 = $8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? BI({
+function YLe(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 = Q8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? zI({
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:${cM}">${n}
+ ${a}<div class="pic" style="--card-ratio:${sM}">${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">${KLe(e)}<div class="mtext"><span class="t">${i}</span>
+ <div class="meta">${JLe(e)}<div class="mtext"><span class="t">${i}</span>
<div class="s mono">${t || (e.title ? "" : "资料还没取到")}</div></div></div></article>`;
}
-function JLe() {
+function XLe() {
let e = document.getElementById("peach-entity-shape");
if (e) try {
let t = JSON.parse(e.textContent || "null");
if (!t?.id || typeof t.kind != "string" || !Array.isArray(t.names) || !Array.isArray(t.parts)) return;
- Q8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${Un(e)}`, t.parts]));
+ Z8.entityShapes = new Map([String(t.id), ...t.names].map((e) => [`${t.kind}/${Un(e)}`, t.parts]));
} catch {}
}
-async function e5() {
- let e = K8, t = await Tn("/api/entity/shapes", { signal: e.signal }).catch(() => null);
- return e.isActive && t && !t.error && (Q8.entityShapesComplete = !0, Q8.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${Un(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && n5(t.home.feed), o5(location.pathname) && r5(L("#feedNew"))), Q8.entityShapes;
+async function $8() {
+ let e = G8, t = await Tn("/api/entity/shapes", { signal: e.signal }).catch(() => null);
+ return e.isActive && t && !t.error && (Z8.entityShapesComplete = !0, Z8.entityShapes = new Map((t.entities || []).flatMap((e) => [String(e.id), ...e.names].map((t) => [`${e.kind}/${Un(t)}`, e.parts]))), typeof t.home?.feed == "boolean" && t5(t.home.feed), a5(location.pathname) && n5(L("#feedNew"))), Z8.entityShapes;
}
-var t5 = "peach.home-feed.v1";
-function n5(e) {
+var e5 = "peach.home-feed.v1";
+function t5(e) {
X.homeHasFeed = e;
try {
- localStorage.setItem(t5, e ? "1" : "0");
+ localStorage.setItem(e5, e ? "1" : "0");
} catch {}
}
-function YLe() {
+function ZLe() {
try {
- let e = localStorage.getItem(t5);
+ let e = localStorage.getItem(e5);
return e === "1" || e !== "0" && null;
} catch {
return null;
}
}
-function r5(e) {
- !e || gp(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = Q8.feedNewSkeletonHtml())));
+function n5(e) {
+ !e || hp(e) || e.querySelector("[data-feed-id]") || (e.hidden = X.homeHasFeed !== !0, X.homeHasFeed === !0 && (e.setAttribute("aria-busy", "true"), e.querySelector(".feednewskeleton") || (e.innerHTML = Z8.feedNewSkeletonHtml())));
}
-function XLe(e, t) {
- return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : Bs(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
+function QLe(e, t) {
+ return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : zs(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
variant: "warning",
className: "feednetwork",
actionLabel: "配置连接方式",
actionHref: "/sources"
});
}
-function i5(e, t = "") {
- let n = e && !e.error && e.items || [], r = t && n.length ? `<a class="feednewall" href="${z(t)}" style="--card-ratio:${cM}">${R("chevron-right")}<span>查看全部新作</span></a>` : "";
- return XLe(e?.cover_network, n) + `<div class="feednewrow srow">${n.map(qLe).join("")}${r}</div>`;
+function r5(e, t = "") {
+ let n = e && !e.error && e.items || [], r = t && n.length ? `<a class="feednewall" href="${z(t)}" style="--card-ratio:${sM}">${R("chevron-right")}<span>查看全部新作</span></a>` : "";
+ return QLe(e?.cover_network, n) + `<div class="feednewrow srow">${n.map(YLe).join("")}${r}</div>`;
}
-function a5(e) {
- e && (u9(e), Z.appSettings.feedAutoScroll && Vc(e));
+function i5(e) {
+ e && (l9(e), Z.appSettings.feedAutoScroll && Bc(e));
}
-function o5(e) {
+function a5(e) {
return jn(e) && e !== "/junk-files";
}
-function ZLe() {
+function $Le() {
let e = L("#feedNew");
- gp(e) ? e.hidden = X.homeHasFeed !== !0 : (r5(e), bp("feed-new", {
+ hp(e) ? e.hidden = X.homeHasFeed !== !0 : (n5(e), yp("feed-new", {
host: e,
- revision: Q8.feedRevision,
- helpers: Q8.feedNewHelpers,
- actions: Q8.feedNewActions
+ revision: Z8.feedRevision,
+ helpers: Z8.feedNewHelpers,
+ actions: Z8.feedNewActions
}, {
container: e,
- isCurrent: () => o5(location.pathname)
+ isCurrent: () => a5(location.pathname)
}));
}
-function s5() {
+function o5() {
let e = L("#feedNew");
- e.querySelectorAll(".feednewrow").forEach(Hc), e.hidden = !0;
+ e.querySelectorAll(".feednewrow").forEach(Vc), e.hidden = !0;
}
-function c5() {
- Q8.feedRevision += 1, Sp(L("#feedNew"), { revision: Q8.feedRevision }), f5({ feedRevision: Q8.feedRevision });
+function s5() {
+ Z8.feedRevision += 1, xp(L("#feedNew"), { revision: Z8.feedRevision }), d5({ feedRevision: Z8.feedRevision });
}
-function QLe() {
- document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? Vc(e) : Hc(e));
+function eRe() {
+ document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? Bc(e) : Vc(e));
}
-var l5 = 0;
-function $Le([e]) {
- let t = e.contentRect.width >= Q8.HERO_WIDE_PX;
- cancelAnimationFrame(l5), l5 = requestAnimationFrame(() => {
- l5 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);
+var c5 = 0;
+function tRe([e]) {
+ let t = e.contentRect.width >= Z8.HERO_WIDE_PX;
+ cancelAnimationFrame(c5), c5 = requestAnimationFrame(() => {
+ c5 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);
});
}
-function eRe() {
- Q8.FEED_SKELETON_CARDS = 8, Q8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${cM}"></div>
+function nRe() {
+ Z8.FEED_SKELETON_CARDS = 8, Z8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${sM}"></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(Q8.FEED_SKELETON_CARDS)}</div>`, Q8.entityShapes = null, Q8.entityShapesComplete = !1, Q8.hasEntityShape = (e, t) => Q8.entityShapesComplete || !!Q8.entityShapes?.has(`${e}/${Un(t)}`), Q8.hasEntityPart = (e, t, n) => !!t && !!Q8.entityShapes?.get(`${e}/${Un(t)}`)?.includes(n), Q8.feedNewSkeletonSection = () => `<section class="feednew">${Q8.feedNewSkeletonHtml()}</section>`, Q8.COSTAR_SKELETON_PEOPLE = 12, Q8.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(Q8.COSTAR_SKELETON_PEOPLE)}</div></div>`, Q8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, Q8.feedRevision = 0, Q8.feedNewHelpers = {
- feedRowHtml: i5,
- wireFeedRow: (e) => a5(e)
- }, Q8.feedNewActions = { settled: (e) => n5(e) }, Q8.HERO_WIDE_PX = 900, K8.resize($Le).observe(L("#index"));
+ <div class="s mono"><span class="skeleton">&#8203;</span></div></div></div></article>`.repeat(Z8.FEED_SKELETON_CARDS)}</div>`, Z8.entityShapes = null, Z8.entityShapesComplete = !1, Z8.hasEntityShape = (e, t) => Z8.entityShapesComplete || !!Z8.entityShapes?.has(`${e}/${Un(t)}`), Z8.hasEntityPart = (e, t, n) => !!t && !!Z8.entityShapes?.get(`${e}/${Un(t)}`)?.includes(n), Z8.feedNewSkeletonSection = () => `<section class="feednew">${Z8.feedNewSkeletonHtml()}</section>`, Z8.COSTAR_SKELETON_PEOPLE = 12, Z8.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(Z8.COSTAR_SKELETON_PEOPLE)}</div></div>`, Z8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, Z8.feedRevision = 0, Z8.feedNewHelpers = {
+ feedRowHtml: r5,
+ wireFeedRow: (e) => i5(e)
+ }, Z8.feedNewActions = { settled: (e) => t5(e) }, Z8.HERO_WIDE_PX = 900, G8.resize(tRe).observe(L("#index"));
}
// src/entity-skeleton.ts
-function tRe(e, t, n, r = "") {
+function rRe(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">
@@ -80630,7 +80643,7 @@ function tRe(e, t, n, r = "") {
<div class="entitysection">${o}</div></div></section>`;
}
// src/application/entity.js
-var u5 = {
+var l5 = {
ENTITY_FILTER_KEYS: void 0,
emptyEntityFilters: void 0,
parseEntityFilters: void 0,
@@ -80655,16 +80668,16 @@ var u5 = {
sourceToolButtons: void 0,
application: void 0
};
-function d5() {
- let e = hp(L("#index"));
+function u5() {
+ let e = mp(L("#index"));
return e && e.path.endsWith("/*") && e.host.isConnected ? e : null;
}
-function f5(e) {
- u5.entityPageCurrent() && Sp(L("#index"), e);
+function d5(e) {
+ l5.entityPageCurrent() && xp(L("#index"), e);
}
-function p5() {
- if (Yl.type === "item") return Yl;
- let e = d5();
+function f5() {
+ if (Jl.type === "item") return Jl;
+ let e = u5();
if (e) {
let { kind: t, name: n, filters: r } = e.props;
return {
@@ -80674,64 +80687,64 @@ function p5() {
filters: { ...r }
};
}
- return Yl;
+ return Jl;
}
-function m5(e, t, n = d7()) {
- return JRe(n).map(([n, r]) => {
- let i = e === n, a = Mj(n, e, t);
+function p5(e, t, n = u7()) {
+ return XRe(n).map(([n, r]) => {
+ let i = e === n, a = jj(n, e, t);
return {
key: n,
label: r,
pressed: i,
- dir: i && Aj(n, t) ? t === "asc" ? "asc" : "desc" : "",
- ariaLabel: a ? `按${r}${a.dir ? Aj(a.sort, a.dir) : ""}排序` : ""
+ dir: i && kj(n, t) ? t === "asc" ? "asc" : "desc" : "",
+ ariaLabel: a ? `按${r}${a.dir ? kj(a.sort, a.dir) : ""}排序` : ""
};
});
}
-function h5(e, t, n, r = u5.EMPTY_ENTITY_MEDIA, i = {}) {
- return u5.application.route(e, t, n, r, i);
+function m5(e, t, n, r = l5.EMPTY_ENTITY_MEDIA, i = {}) {
+ return l5.application.route(e, t, n, r, i);
}
-function g5() {
- return BLe({
- entityWall: u5.entityPageWall,
- entityCurrent: u5.entityPageCurrent(),
+function h5() {
+ return HLe({
+ entityWall: l5.entityPageWall,
+ entityCurrent: l5.entityPageCurrent(),
indexVisible: !L("#index").hidden,
pathname: location.pathname,
followMedia: $.followMediaView,
statsVisible: !L("#stats").hidden
}, () => [...document.querySelectorAll(".followphotowall")].some((e) => e.getClientRects().length > 0));
}
-function _5() {
- u5.photos.sync();
+function g5() {
+ l5.photos.sync();
}
-function v5() {
- g5() ? Hle(mM()) : DM();
+function _5() {
+ h5() ? Ule(pM()) : EM();
}
-function nRe(e) {
- u5.photos.setSize(e);
+function iRe(e) {
+ l5.photos.setSize(e);
}
-var y5 = LLe({
+var v5 = zLe({
request: (e) => Tn("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e })
}),
- success: () => A8.toast({ text: "已在资源管理器中显示" }),
- failureText: (e) => u5.sourceHint(e instanceof Error ? e.message : String(e))
+ success: () => k8.toast({ text: "已在资源管理器中显示" }),
+ failureText: (e) => l5.sourceHint(e instanceof Error ? e.message : String(e))
});
-async function b5(e) {
+async function y5(e) {
let t = { textContent: "" };
- return await y5(e, t), t.textContent;
+ return await v5(e, t), t.textContent;
}
-async function rRe(e) {
+async function aRe(e) {
let t = { textContent: "" }, n = [];
- return await x5(e, t, (e) => {
+ return await b5(e, t, (e) => {
e.items && (n = e.items.map((e) => e.id));
}), {
text: t.textContent,
removed: n
};
}
-async function x5(e, t, n) {
+async function b5(e, t, n) {
t.textContent = "正在核对目录…";
try {
let r = await Tn("/api/purge-missing", {
@@ -80739,12 +80752,12 @@ async function x5(e, t, n) {
body: JSON.stringify({ id: e })
});
if (r.ok === !1) {
- t.textContent = u5.sourceHint(r.error);
+ t.textContent = l5.sourceHint(r.error);
return;
}
- if (t.textContent = r.removed ? `${u5.syncedText(r)}(核对 ${r.checked} 项${r.unreadable ? `,${r.unreadable} 项未能读取` : ""})` : r.unreadable ? `目录有 ${r.unreadable} 项暂时无法读取,本次未改动` : `目录内 ${r.checked} 项都还在,无需改动`, r.removed) {
+ if (t.textContent = r.removed ? `${l5.syncedText(r)}(核对 ${r.checked} 项${r.unreadable ? `,${r.unreadable} 项未能读取` : ""})` : r.unreadable ? `目录有 ${r.unreadable} 项暂时无法读取,本次未改动` : `目录内 ${r.checked} 项都还在,无需改动`, r.removed) {
let e = (r.items || []).filter((e) => e.disposal !== "reattached").map((e) => e.id);
- n && n(r), A8.actionReceipt(u5.syncedText(r), { undo: e.length ? async () => {
+ n && n(r), k8.actionReceipt(l5.syncedText(r), { undo: e.length ? async () => {
await Tn("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -80756,23 +80769,23 @@ async function x5(e, t, n) {
restored: e.length
});
} : null });
- } else A8.actionReceipt("目录核对完成,无需改动");
+ } else k8.actionReceipt("目录核对完成,无需改动");
} catch (e) {
- t.textContent = u5.sourceHint(e.message), A8.actionFailure("核对目录", e);
+ t.textContent = l5.sourceHint(e.message), k8.actionFailure("核对目录", e);
}
}
-function iRe(e) {
- return `<div class="srctools">${u5.sourceToolButtons(e)}
+function oRe(e) {
+ return `<div class="srctools">${l5.sourceToolButtons(e)}
<span class="srcstate" aria-live="polite"></span></div>`;
}
-function aRe(e, t) {
+function sRe(e, t) {
let n = e.querySelector(".srcstate");
if (!n) return;
let r = e.querySelector("[data-reveal]"), i = e.querySelector("[data-sync]");
- r && K8.handler(r, "onclick", () => y5(Number(r.dataset.reveal), n, { button: r })), i && K8.handler(i, "onclick", () => x5(Number(i.dataset.sync), n, t));
+ r && G8.handler(r, "onclick", () => v5(Number(r.dataset.reveal), n, { button: r })), i && G8.handler(i, "onclick", () => b5(Number(i.dataset.sync), n, t));
}
-async function oRe(e, t) {
- let n = cl({
+async function cRe(e, t) {
+ let n = sl({
title: "添加别名",
description: "图库按名字查找图片,添加别名可能找到更多备选图片;也可以将别名设为统一显示的名称。",
body: "<label class=\"modalfield\"><span>别名</span>\n <input class=\"geist-input\" name=\"alias\" maxlength=\"80\" autocomplete=\"off\"\n placeholder=\"另一种写法,或另一个艺名\"></label>" + (e.length ? `<div class="modalfield"><span>自己添过的</span>
@@ -80783,9 +80796,9 @@ async function oRe(e, t) {
confirmDisabled: !0,
onConfirm: () => t({ alias: r.value.trim() })
}), r = n.dialog.querySelector("[name=alias]");
- K8.handler(r, "oninput", () => {
+ G8.handler(r, "oninput", () => {
n.confirmButton.disabled = !r.value.trim();
- }), n.dialog.querySelectorAll("[data-alias-drop]").forEach((e) => K8.handler(e, "onclick", async () => {
+ }), n.dialog.querySelectorAll("[data-alias-drop]").forEach((e) => G8.handler(e, "onclick", async () => {
let r = e.dataset.aliasDrop;
n.close();
try {
@@ -80794,54 +80807,54 @@ async function oRe(e, t) {
remove: !0
});
} catch (e) {
- A8.actionFailure("撤销别名", e);
+ k8.actionFailure("撤销别名", e);
return;
}
- A8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {
+ k8.actionReceipt(`已撤销别名 ${r}`, { undo: async () => {
await t({ alias: r });
} });
}));
let { confirmed: i, result: a } = await n.done;
- i && (a?.added ? A8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {
+ i && (a?.added ? k8.actionReceipt(`已添加别名 ${a.alias}`, { undo: async () => {
await t({
alias: a.alias,
remove: !0
});
- } }) : A8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));
+ } }) : k8.actionReceipt(`${a?.alias} 已经是这份档案中的名字`));
}
-function S5(e, t) {
- let n = ["performer", "studio"].includes(e) && Q8.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>${Ds()}${e === "agency" ? "" : F0(m5(U.sort, U.dir, n), n ? {
+function x5(e, t) {
+ let n = ["performer", "studio"].includes(e) && Z8.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" ? "" : P0(p5(U.sort, U.dir, n), n ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: uM(),
- options: aM
- } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${N0}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${N0}>${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}" ${N0}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = tRe(e, r, e === "agency" ? sc({
+ value: lM(),
+ options: iM
+ } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${M0}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${M0}>${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}" ${M0}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = rRe(e, r, e === "agency" ? oc({
kind: "performers",
- layout: R5.peopleIndexLayout()
- }) : FJ("正在读取作品", vM(_M({
+ layout: L5.peopleIndexLayout()
+ }) : PJ("正在读取作品", _M(gM({
active: n,
home: !1,
portrait: !1
}))), i);
- L("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? C5(e, t) : (L("#index").innerHTML = a, C5(e, t), mc(L("#index")));
+ L("#index").firstElementChild?.dataset.skeleton === `entity/${e}` ? S5(e, t) : (L("#index").innerHTML = a, S5(e, t), pc(L("#index")));
}
-function C5(e, t) {
+function S5(e, t) {
let n = L("#index").firstElementChild;
if (n?.dataset.skeleton !== `entity/${e}`) return;
let r = (e, t, n) => {
t && !e ? n() : !t && e && e.remove();
};
- r(n.querySelector(".entityfoot"), e !== "agency" && Q8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", Q8.costarSkeletonFoot())), r(n.querySelector(".feednew"), Q8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", Q8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && Q8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", Q8.factsSkeleton()));
+ r(n.querySelector(".entityfoot"), e !== "agency" && Z8.hasEntityPart(e, t, "costars"), () => n.querySelector(".entityhero")?.insertAdjacentHTML("beforeend", Z8.costarSkeletonFoot())), r(n.querySelector(".feednew"), Z8.hasEntityPart(e, t, "feed"), () => n.querySelector(".entitysection")?.insertAdjacentHTML("beforebegin", Z8.feedNewSkeletonSection())), r(n.querySelector(".entityfacts"), e === "performer" && Z8.hasEntityPart(e, t, "facts"), () => n.querySelector(".entityprofile")?.insertAdjacentHTML("beforeend", Z8.factsSkeleton()));
}
-function w5(e) {
- let t = Mn[e] || e, n = s6[t] || "条目", r = s6[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
+function C5(e) {
+ let t = Mn[e] || e, n = o6[t] || "条目", r = o6[t] ? `<a class="geist-button primary" href="/${t}">返回${n}列表</a>` : "";
L("#index").innerHTML = Z.emptyState("search-x", `找不到这个${n}`, "名字可能拼错了,或者已经合并到别的名字下;回列表里重新找。", { actions: r });
}
-function T5(e, t) {
- O9(u5.application.fresh(e, t));
+function w5(e, t) {
+ D9(l5.application.fresh(e, t));
}
-function sRe() {
- u5.ENTITY_FILTER_KEYS = [
+function lRe() {
+ l5.ENTITY_FILTER_KEYS = [
"loc",
"creator",
"tag",
@@ -80852,164 +80865,164 @@ function sRe() {
"year",
"sort",
"dir"
- ], u5.emptyEntityFilters = q8, u5.parseEntityFilters = (e) => J8(e, {
+ ], l5.emptyEntityFilters = K8, l5.parseEntityFilters = (e) => q8(e, {
sort: Z.appSettings.defaultSort,
dir: Z.appSettings.defaultSortDirection
- }), u5.entityFilterSearch = Y8, u5.cloneBarsContext = (e) => e && e.type === "entity" ? {
+ }), l5.entityFilterSearch = J8, l5.cloneBarsContext = (e) => e && e.type === "entity" ? {
...e,
filters: { ...e.filters }
- } : e, u5.activeFilterState = () => {
- let e = p5();
+ } : e, l5.activeFilterState = () => {
+ let e = f5();
return e.type === "home" ? U : e.filters;
}, L("#q").value = U.q, X.rememberSearchValue();
}
-function cRe() {
- u5.entityPageView = "", u5.entityPageWall = !1, u5.entityPageRevision = 0, u5.entityPageCurrent = () => !!d5(), u5.entityPageLive = (e, t) => {
- let n = d5();
+function uRe() {
+ l5.entityPageView = "", l5.entityPageWall = !1, l5.entityPageRevision = 0, l5.entityPageCurrent = () => !!u5(), l5.entityPageLive = (e, t) => {
+ let n = u5();
return !!n && !L("#index").hidden && n.props.kind === e && n.props.name === t;
- }, u5.EMPTY_ENTITY_MEDIA = {
+ }, l5.EMPTY_ENTITY_MEDIA = {
media: "videos",
set: 0
- }, u5.parseMediaView = X8, u5.entityViewSearch = Z8, u5.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, u5.entityBodySkeleton = () => e9(), u5.entityPageHelpers = {
+ }, l5.parseMediaView = Y8, l5.entityViewSearch = X8, l5.entityBodyCanLoadMore = () => !L("#index").hidden && L("#stats").hidden, l5.entityBodySkeleton = () => $7(), l5.entityPageHelpers = {
wireDrag: (e) => {
- e && u9(e);
+ e && l9(e);
},
wireScroller: (e) => {
- e && jc(e);
+ e && Ac(e);
},
- wireFeedRow: (e) => a5(e),
- feedRowHtml: i5,
- receipt: (e, t) => A8.actionReceipt(e, t),
- failure: (e, t) => A8.actionFailure(e, t),
- aliasForm: (e, t) => oRe(e, t),
- sourceToolsHtml: (e) => iRe(e),
- wireSourceTools: (e, t) => aRe(e, t),
- comboItems: (e) => U7(e),
- sortKeys: (e, t, n) => m5(e, t, n)
- }, u5.entityFollowActions = {
+ wireFeedRow: (e) => i5(e),
+ feedRowHtml: r5,
+ receipt: (e, t) => k8.actionReceipt(e, t),
+ failure: (e, t) => k8.actionFailure(e, t),
+ aliasForm: (e, t) => cRe(e, t),
+ sourceToolsHtml: (e) => oRe(e),
+ wireSourceTools: (e, t) => sRe(e, t),
+ comboItems: (e) => H7(e),
+ sortKeys: (e, t, n) => p5(e, t, n)
+ }, l5.entityFollowActions = {
...$.followFeedActions,
route: () => {},
shuffle: () => {},
loaded: () => {},
toggleSelection: () => {}
- }, u5.SOURCE_HINTS = {
+ }, l5.SOURCE_HINTS = {
"source offline": "媒体库无法访问,暂时无法核对文件;恢复连接后重试",
"source not mapped": "本机没有映射这个来源的盘符",
"file missing": "找不到源文件;点击右侧的扫描按钮,重新检查目录并更新数据库记录",
"unsupported platform": "当前服务端系统不支持直接定位文件",
"reveal failed": "打开文件管理器失败,请重试"
- }, u5.sourceHint = (e) => u5.SOURCE_HINTS[e] || e, u5.syncedText = (e) => [
+ }, l5.sourceHint = (e) => l5.SOURCE_HINTS[e] || e, l5.syncedText = (e) => [
e.trashed ? `已把 ${e.trashed} 项移入回收站` : "",
e.vanished ? `${e.vanished} 项带个人记录,已标为已消失` : "",
e.reattached ? `${e.reattached} 项的记录已接到库里的另一个版本` : ""
- ].filter(Boolean).join(","), u5.sourceToolButtons = (e) => `
+ ].filter(Boolean).join(","), l5.sourceToolButtons = (e) => `
<button type="button" data-reveal="${e}" title="在文件管理器里打开源文件所在目录"
aria-label="定位源文件">${R("folder-open")}</button>
<button type="button" data-sync="${e}" title="核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失"
aria-label="同步删除">${R("folder-sync")}</button>`;
}
-function lRe() {
- u5.application = GLe({
+function dRe() {
+ l5.application = qLe({
controller: {
context: () => {
- let e = p5();
+ let e = f5();
return e.type === "entity" ? e : null;
},
- live: (e, t) => u5.entityPageLive(e, t),
- current: () => u5.entityPageCurrent(),
+ live: (e, t) => l5.entityPageLive(e, t),
+ current: () => l5.entityPageCurrent(),
route: (e, t = !1) => Q.route(e, t),
suffix: () => location.search + location.hash,
restoreHomeContext: () => W({ barsContext: {
type: "home",
filters: U
} }),
- releaseBodyPreviews: () => Pl(L("#index [data-entity-body]")),
- push: f5,
+ releaseBodyPreviews: () => Nl(L("#index [data-entity-body]")),
+ push: d5,
state: () => ({
seed: String(U.seed || ""),
jav: U.jav === "1"
}),
preferences: () => ({
- revision: u5.entityPageRevision,
- feedRevision: Q8.feedRevision,
- photoSize: mM(),
- photoLayout: hM(),
- photoLayouts: sM,
+ revision: l5.entityPageRevision,
+ feedRevision: Z8.feedRevision,
+ photoSize: pM(),
+ photoLayout: mM(),
+ photoLayouts: oM,
followImagesOnly: !!Z.appSettings.followImagesOnly,
- javLayout: uM(),
- javLayouts: aM,
+ javLayout: lM(),
+ javLayouts: iM,
states: X.VIEW_PILLS,
- peopleLayout: R5.peopleIndexLayout(),
- layout: $7(),
- selectMode: $l,
- selected: new Set(Zl),
+ peopleLayout: L5.peopleIndexLayout(),
+ layout: Q7(),
+ selectMode: Ql,
+ selected: new Set(Xl),
seekSeconds: Z.appSettings.seekSeconds,
groupCollapse: Z.appSettings.groupCollapse,
- wireDrag: u9,
- skeletonHtml: u5.entityBodySkeleton,
- canLoadMore: u5.entityBodyCanLoadMore,
+ wireDrag: l9,
+ skeletonHtml: l5.entityBodySkeleton,
+ canLoadMore: l5.entityBodyCanLoadMore,
follow: {
helpers: $.followFeedHelpers,
- actions: u5.entityFollowActions
+ actions: l5.entityFollowActions
}
}),
- changeFilter: A7,
- rollSeed: () => A8.rollSeed(),
+ changeFilter: k7,
+ rollSeed: () => k8.rollSeed(),
writeSeed: (e) => {
- U.seed = e, Cu();
- },
- setJavLayout: m7,
- javLayout: uM,
- setPhotoLayout: bM,
- syncPhotoWalls: _5,
- openEntity: T5,
- photoViewActive: g5,
+ U.seed = e, Su();
+ },
+ setJavLayout: p7,
+ javLayout: lM,
+ setPhotoLayout: yM,
+ syncPhotoWalls: g5,
+ openEntity: w5,
+ photoViewActive: h5,
recordPainted: (e, t) => {
- u5.entityPageView = e, u5.entityPageWall = t;
+ l5.entityPageView = e, l5.entityPageWall = t;
},
- syncDensity: v5,
- scheduleSticky: x7,
- releasePage: () => Cp(L("#index")),
- showMissing: w5,
- dropBars: I8
+ syncDensity: _5,
+ scheduleSticky: b7,
+ releasePage: () => Sp(L("#index")),
+ showMissing: C5,
+ dropBars: F8
},
loading: {
- shapesReady: (e, t) => Q8.hasEntityShape(e, t),
- waitShapes: G5,
- paintSkeleton: S5,
+ shapesReady: (e, t) => Z8.hasEntityShape(e, t),
+ waitShapes: W5,
+ paintSkeleton: x5,
resetView: () => {
- W({ detailReturnBarsContext: null }), u5.entityPageView = "", u5.entityPageWall = !1;
+ W({ detailReturnBarsContext: null }), l5.entityPageView = "", l5.entityPageWall = !1;
},
- loadShapes: e5,
- syncParts: C5
+ loadShapes: $8,
+ syncParts: S5
},
photos: {
preferences: () => ({
- size: mM(),
- layout: hM(),
+ size: pM(),
+ layout: mM(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
walls: () => document.querySelectorAll(".followphotowall"),
- pushEntity: f5,
- pushFollow: N9,
- syncDensity: v5,
- storeSize: Ble
+ pushEntity: d5,
+ pushFollow: M9,
+ syncDensity: _5,
+ storeSize: Vle
},
- helpers: u5.entityPageHelpers,
+ helpers: l5.entityPageHelpers,
actions: {
- toggleTag: H7,
- openFollowAuthor: V5,
+ toggleTag: V7,
+ openFollowAuthor: B5,
javContext: (e) => W({ entityJavLayout: !!e })
},
sortPreference: () => ({
sort: Z.appSettings.defaultSort,
dir: Z.appSettings.defaultSortDirection
})
- }), u5.photos = u5.application.photos, u5.entityPageHelpers = u5.application.helpers;
+ }), l5.photos = l5.application.photos, l5.entityPageHelpers = l5.application.helpers;
}
// src/application/playlists.js
-var E5 = { playlistWrite: void 0 };
-function uRe(e, t) {
+var T5 = { playlistWrite: void 0 };
+function fRe(e, t) {
e === "tag" ? (W({ state: {
...U,
tag: t,
@@ -81019,17 +81032,17 @@ function uRe(e, t) {
q: "",
state: "",
orient: ""
- } }), X.clearSearchField(), Q.route(C7()), X5(), B7()) : T5(e, t);
+ } }), X.clearSearchField(), Q.route(S7()), Y5(), z7()) : w5(e, t);
}
-function D5(e = "") {
+function E5(e = "") {
return `<label class="modalfield"><span>名称</span><input class="geist-input" name="name"
maxlength="80" placeholder="输入名称" value="${z(e)}"></label>`;
}
-async function dRe({ title: e, count: t, save: n }) {
- let r = cl({
+async function pRe({ title: e, count: t, save: n }) {
+ let r = sl({
title: "保存为播放列表",
description: `这个 Mix 的 ${t} 个视频会存成一份可以继续播放的列表。`,
- body: D5(e),
+ body: E5(e),
confirmLabel: "保存为播放列表",
onConfirm: () => {
let e = r.dialog.querySelector("[name=\"name\"]").value.trim();
@@ -81039,28 +81052,28 @@ async function dRe({ title: e, count: t, save: n }) {
});
r.dialog.querySelector("[name=\"name\"]").select();
let { confirmed: i, result: a } = await r.done;
- i && (await g9(a.id, a.current_asset_id, !0), A8.actionReceipt("已保存为播放列表", { undo: async () => {
- await E5.playlistWrite({
+ i && (await h9(a.id, a.current_asset_id, !0), k8.actionReceipt("已保存为播放列表", { undo: async () => {
+ await T5.playlistWrite({
action: "delete",
id: a.id
- }), O9("/playlists");
+ }), D9("/playlists");
} }));
}
-async function fRe(e) {
- let t = ((await Tn("/api/playlists")).items || []).map((e) => `<label class="pickrow">${Ks(`data-pick-playlist="${e.id}"`)}
- <span class="pickrowtext"><b>${z(e.name)}</b><small>${e.item_count} 个视频</small></span></label>`).join(""), n = cl({
+async function mRe(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: "加入播放列表",
description: "勾选要加入的列表,或者填个名称新建一份。",
- body: D5() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : Bs("还没有播放列表,填个名称就能新建一份。", { size: "small" })),
+ body: E5() + (t ? `<div class="picklist" role="group" aria-label="已有播放列表">${t}</div>` : zs("还没有播放列表,填个名称就能新建一份。", { size: "small" })),
confirmLabel: "保存",
confirmDisabled: !0,
onConfirm: async () => {
- let t = n.dialog.querySelector("[name=\"name\"]").value.trim(), r = [...n.dialog.querySelectorAll("[data-pick-playlist]:checked")].map((e) => +e.dataset.pickPlaylist), i = t ? (await E5.playlistWrite({
+ let t = n.dialog.querySelector("[name=\"name\"]").value.trim(), r = [...n.dialog.querySelectorAll("[data-pick-playlist]:checked")].map((e) => +e.dataset.pickPlaylist), i = t ? (await T5.playlistWrite({
action: "create",
name: t,
asset_ids: [e.id]
})).playlist : null;
- for (let t of r) await E5.playlistWrite({
+ for (let t of r) await T5.playlistWrite({
action: "add",
id: t,
asset_ids: [e.id]
@@ -81074,46 +81087,46 @@ async function fRe(e) {
let e = n.dialog.querySelector("[name=\"name\"]").value.trim();
n.confirmButton.disabled = !e && !n.dialog.querySelector("[data-pick-playlist]:checked");
};
- K8.listen(n.dialog, "input", r), K8.listen(n.dialog, "change", r);
+ G8.listen(n.dialog, "input", r), G8.listen(n.dialog, "change", r);
let { confirmed: i, result: a } = await n.done;
if (!i) return;
let o = +!!a.created + a.added.length;
- A8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {
- for (let t of a.added) await E5.playlistWrite({
+ k8.actionReceipt(`已加入 ${o} 个播放列表`, { undo: async () => {
+ for (let t of a.added) await T5.playlistWrite({
action: "remove",
id: t,
asset_id: e.id
});
- a.created && await E5.playlistWrite({
+ a.created && await T5.playlistWrite({
action: "delete",
id: a.created.id
});
} });
}
-function O5() {
- Pl(), m9(!1), Y5();
- let e = hp(L("#stats"));
- e?.path !== "/playlists" || !e.host.isConnected ? W({ pageOpens: mu + 1 }) : (J5({ manage: !1 }), W({ playlistsRevision: bu + 1 }));
+function D5() {
+ Nl(), p9(!1), J5();
+ let e = mp(L("#stats"));
+ e?.path !== "/playlists" || !e.host.isConnected ? W({ pageOpens: pu + 1 }) : (q5({ manage: !1 }), W({ playlistsRevision: yu + 1 }));
}
-function pRe(e) {
+function hRe(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 : ""));
}
-function k5(e) {
- W({ configurationRequestedSection: e }), Q.navigatePath(Ff(e));
+function O5(e) {
+ W({ configurationRequestedSection: e }), Q.navigatePath(Pf(e));
}
-function mRe() {
- E5.playlistWrite = (e) => Tn("/api/playlist", {
+function gRe() {
+ T5.playlistWrite = (e) => Tn("/api/playlist", {
method: "POST",
body: JSON.stringify(e)
});
}
// src/react/catalog-grid/selection-controller.ts
-function A5(e) {
+function k5(e) {
return e === "/follow" ? "follow" : e === "/junk-files" ? "junk" : "catalog";
}
-function j5(e, t, n, r, i = !1) {
+function A5(e, t, n, r, i = !1) {
return i && (e.selected.clear(), e.followSelected.clear()), {
selectMode: r,
selectSurface: r ? t.selectMode ? t.selectSurface : n : "",
@@ -81121,23 +81134,23 @@ function j5(e, t, n, r, i = !1) {
followLastSelectedId: i ? null : t.followLastSelectedId
};
}
-function M5(e, t, n, r, i, a = !1) {
- let o = n === "follow", s = vY(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
+function j5(e, t, n, r, i, a = !1) {
+ let o = n === "follow", s = _Y(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
return {
- ...j5(e, t, n, !0),
+ ...A5(e, t, n, !0),
...o ? { followLastSelectedId: s } : { lastSelectedId: s }
};
}
-function hRe(e, t, n, r) {
- let i = A5(t);
+function _Re(e, t, n, r) {
+ let i = k5(t);
return {
count: (i === "follow" ? e.followSelected : e.selected).size,
context: i === "catalog" && r === "trash" ? "trash" : i,
- junkDismissed: PU(n).view === "dismissed"
+ junkDismissed: NU(n).view === "dismissed"
};
}
// src/application/selection.js
-var N5 = {
+var M5 = {
batchDockProps: void 0,
trashCount: void 0,
currentSelectSurface: void 0,
@@ -81145,43 +81158,43 @@ var N5 = {
BATCH_RUNNERS: void 0,
coverRecheck: void 0
};
-function P5() {
- Z7({
- selected: new Set(Zl),
- selectMode: $l
- }), f5({
+function N5() {
+ X7({
+ selected: new Set(Xl),
+ selectMode: Ql
+ }), d5({
+ selected: new Set(Xl),
+ selectMode: Ql
+ }), M9({
selected: new Set(Zl),
- selectMode: $l
- }), N9({
- selected: new Set(Ql),
- selectMode: $l
- }), N5.batchDockProps = TRe(), D8() && (D8().render(N5.batchDockProps), Z.syncGlassOptics());
+ selectMode: Ql
+ }), M5.batchDockProps = DRe(), E8() && (E8().render(M5.batchDockProps), Z.syncGlassOptics());
}
-function F5(e, t = !1) {
- W(j5({
- selected: Zl,
- followSelected: Ql
- }, L5(), A5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", $l), $l && Pl(), L("#selectMode").setAttribute("aria-pressed", String($l)), P5();
+function P5(e, t = !1) {
+ W(A5({
+ selected: Xl,
+ followSelected: Zl
+ }, I5(), k5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Ql), Ql && Nl(), L("#selectMode").setAttribute("aria-pressed", String(Ql)), N5();
}
-function gRe() {
- return [...H5.gridCards()].map((e) => +e.dataset.id);
+function vRe() {
+ return [...V5.gridCards()].map((e) => +e.dataset.id);
}
-function I5(e, t = !1) {
- W(M5({
- selected: Zl,
- followSelected: Ql
- }, L5(), A5(location.pathname), gRe(), e, t)), F5(!0);
+function F5(e, t = !1) {
+ W(j5({
+ selected: Xl,
+ followSelected: Zl
+ }, I5(), k5(location.pathname), vRe(), e, t)), P5(!0);
}
-function _Re() {
+function yRe() {
return [...document.querySelectorAll("[data-follow-list] > [data-follow-item]")].map((e) => +e.dataset.followItem);
}
-function vRe(e, t = !1) {
- W(M5({
- selected: Zl,
- followSelected: Ql
- }, L5(), "follow", _Re(), e, t)), F5(!0);
+function bRe(e, t = !1) {
+ W(j5({
+ selected: Xl,
+ followSelected: Zl
+ }, I5(), "follow", yRe(), e, t)), P5(!0);
}
-async function yRe(e, t) {
+async function xRe(e, t) {
let n = {
like: "喜欢",
seen: "标为看过",
@@ -81196,14 +81209,14 @@ async function yRe(e, t) {
dispose: "移入回收站",
restore: "还原所选项目",
delete: "永久删除所选项目"
- }, i = [...Zl];
- if (i.length) return ul({
+ }, i = [...Xl];
+ if (i.length) return ll({
title: r[e],
body: `将处理选中的 ${i.length} 项。${e === "delete" ? "文件和馆藏记录会永久删除,无法恢复。" : e === "dispose" ? "馆藏记录可在回收站还原。" : ""}`,
confirmLabel: r[e],
danger: e === "delete",
onConfirm: async () => {
- Zc(t);
+ Xc(t);
try {
let t = await Tn("/api/batch", {
method: "POST",
@@ -81213,9 +81226,9 @@ async function yRe(e, t) {
})
});
if (t.blocked && t.blocked.length) throw Error(`已永久删除 ${t.purged} 项;${t.blocked.length} 项未能删除,仍在回收站:\n` + t.blocked.slice(0, 5).map((e) => `${e.path}(${e.reason})`).join("\n"));
- F5(!1, !0), await g7();
+ P5(!1, !0), await h7();
let r = e === "dispose" ? "restore" : e === "restore" ? "dispose" : null;
- A8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
+ k8.actionReceipt(`已${n[e]} ${i.length} 项`, { undo: r ? async () => {
if (r === "dispose" && t.restored_reasons) for (let e of [
null,
"manual",
@@ -81240,23 +81253,23 @@ async function yRe(e, t) {
operation: r
})
});
- await g7();
+ await h7();
} : null });
} catch (e) {
- throw Zc(t, !1), e;
+ throw Xc(t, !1), e;
} finally {
- Zc(t, !1), P5();
+ Xc(t, !1), N5();
}
}
});
}
-async function bRe() {
- let e = [...Zl];
+async function SRe() {
+ let e = [...Xl];
if (!e.length) return;
- let t = cl({
+ let t = sl({
title: "判定产地",
description: `选中的 ${e.length} 项归为同一个产地。判定之后,刮削和自动推断不再改写产地。`,
- body: "<div class=\"chips\" role=\"group\" aria-label=\"产地\">" + N5.REGION_CHOICES.map(([e, t]) => `<button type="button" class="chip" aria-pressed="false" data-region-pick="${e}">
+ body: "<div class=\"chips\" role=\"group\" aria-label=\"产地\">" + M5.REGION_CHOICES.map(([e, t]) => `<button type="button" class="chip" aria-pressed="false" data-region-pick="${e}">
<span class="chip-label">${t}</span></button>`).join("") + "</div>",
confirmLabel: "判定产地",
confirmDisabled: !0,
@@ -81276,14 +81289,14 @@ async function bRe() {
};
}
});
- t.dialog.querySelectorAll("[data-region-pick]").forEach((e) => K8.handler(e, "onclick", () => {
+ t.dialog.querySelectorAll("[data-region-pick]").forEach((e) => G8.handler(e, "onclick", () => {
t.dialog.querySelectorAll("[data-region-pick]").forEach((t) => t.setAttribute("aria-pressed", String(t === e))), t.confirmButton.disabled = !1;
}));
let { confirmed: n, result: r } = await t.done;
- n && (F5(!1, !0), await g7(), A8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
+ n && (P5(!1, !0), await h7(), k8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
}
-async function xRe(e, t) {
- let n = [...Ql];
+async function CRe(e, t) {
+ let n = [...Zl];
if (!n.length) return;
let r = {
save: "保存到数据库",
@@ -81294,13 +81307,13 @@ async function xRe(e, t) {
seen: "标记为已看",
ignored: "忽略所选作品"
};
- return ul({
+ return ll({
title: i[e],
body: `将处理选中的 ${n.length} 项关注作品。`,
confirmLabel: i[e],
danger: !1,
onConfirm: async () => {
- Zc(t);
+ Xc(t);
try {
await Tn(e === "save" ? "/api/follow/save" : "/api/follow/status", {
method: "POST",
@@ -81308,17 +81321,17 @@ async function xRe(e, t) {
items: n,
to: e
})
- }), F5(!1, !0), location.pathname === "/follow" && W({ pageOpens: mu + 1 }), A8.actionReceipt(`已${r[e]} ${n.length} 项`);
+ }), P5(!1, !0), location.pathname === "/follow" && W({ pageOpens: pu + 1 }), k8.actionReceipt(`已${r[e]} ${n.length} 项`);
} catch (e) {
- throw Zc(t, !1), e;
+ throw Xc(t, !1), e;
} finally {
- Zc(t, !1), P5();
+ Xc(t, !1), N5();
}
}
});
}
-async function SRe(e, t) {
- let n = [...Zl];
+async function wRe(e, t) {
+ let n = [...Xl];
if (!n.length) return;
let r = {
"dismiss-junk": "不是垃圾",
@@ -81329,13 +81342,13 @@ async function SRe(e, t) {
"reconsider-junk": "重新检查文件",
dispose: "移入回收站"
};
- return ul({
+ return ll({
title: i[e],
body: `将处理选中的 ${n.length} 个文件。`,
confirmLabel: i[e],
danger: !1,
onConfirm: async () => {
- Zc(t);
+ Xc(t);
try {
await Tn("/api/batch", {
method: "POST",
@@ -81344,142 +81357,142 @@ async function SRe(e, t) {
operation: e,
...e === "dispose" ? { disposal_reason: "junk" } : {}
})
- }), F5(!1, !0), await G7();
+ }), P5(!1, !0), await W7();
let t = e === "dispose" ? "restore" : e === "dismiss-junk" ? "reconsider-junk" : e === "reconsider-junk" ? "dismiss-junk" : null;
- A8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
+ k8.actionReceipt(`已批量${r[e]}:${n.length} 项`, { undo: t ? async () => {
await Tn("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: n,
operation: t
})
- }), await G7();
+ }), await W7();
} : null });
} catch (e) {
- throw Zc(t, !1), e;
+ throw Xc(t, !1), e;
} finally {
- Zc(t, !1), P5();
+ Xc(t, !1), N5();
}
}
});
}
-function CRe() {
- vLe({
+function TRe() {
+ bLe({
root: L("[data-batch-dock]"),
run: (e, t, n) => {
- N5.BATCH_RUNNERS[e]?.(t, n);
+ M5.BATCH_RUNNERS[e]?.(t, n);
}
}).then((e) => {
- e.render(N5.batchDockProps), Z.syncGlassOptics();
+ e.render(M5.batchDockProps), Z.syncGlassOptics();
}).catch(() => {});
}
-function wRe() {
- N5.batchDockProps = {
+function ERe() {
+ M5.batchDockProps = {
count: 0,
context: "catalog",
junkDismissed: !1
- }, N5.trashCount = null, N5.currentSelectSurface = () => A5(location.pathname), K8.handler(L("#selectMode"), "onclick", () => F5(!$l, !!$l)), N5.REGION_CHOICES = [
+ }, M5.trashCount = null, M5.currentSelectSurface = () => k5(location.pathname), G8.handler(L("#selectMode"), "onclick", () => P5(!Ql, !!Ql)), M5.REGION_CHOICES = [
["jp", "日本"],
["kr", "韩国"],
["cn", "国产"],
["west", "欧美"],
["other", "其他"],
["none", "撤回判定"]
- ], N5.BATCH_RUNNERS = {
- batch: yRe,
- region: bRe,
- follow: xRe,
- junk: SRe,
- clear: () => F5(!1, !0)
- }, K8.handler(L("#density"), "onclick", () => {
- g5() ? nRe(mM() === "big" ? "small" : "big") : Vle();
- }), DM(), Ml({
- selecting: () => $l,
- censored: () => o9(),
+ ], M5.BATCH_RUNNERS = {
+ batch: xRe,
+ region: SRe,
+ follow: CRe,
+ junk: wRe,
+ clear: () => P5(!1, !0)
+ }, G8.handler(L("#density"), "onclick", () => {
+ h5() ? iRe(pM() === "big" ? "small" : "big") : Hle();
+ }), EM(), jl({
+ selecting: () => Ql,
+ censored: () => a9(),
delaySeconds: () => Z.appSettings.hoverDelaySeconds
- }), K8.listen(window, "pagehide", () => Pl()), K8.listen(document, "visibilitychange", () => {
- document.hidden && Pl();
- }), kl(), N5.coverRecheck = 0, K8.listen(window, "resize", () => {
- El(L("#index")), clearTimeout(N5.coverRecheck), N5.coverRecheck = K8.delay(() => L("#index").querySelectorAll("img.cover").forEach((e) => {
- e.complete && _l(e);
+ }), G8.listen(window, "pagehide", () => Nl()), G8.listen(document, "visibilitychange", () => {
+ document.hidden && Nl();
+ }), Ol(), M5.coverRecheck = 0, G8.listen(window, "resize", () => {
+ Tl(L("#index")), clearTimeout(M5.coverRecheck), M5.coverRecheck = G8.delay(() => L("#index").querySelectorAll("img.cover").forEach((e) => {
+ e.complete && gl(e);
}), 200);
}, { passive: !0 });
}
-function L5() {
+function I5() {
return {
- selectMode: $l,
- selectSurface: nu,
- lastSelectedId: eu,
- followLastSelectedId: tu
+ selectMode: Ql,
+ selectSurface: tu,
+ lastSelectedId: $l,
+ followLastSelectedId: eu
};
}
-function TRe() {
- return hRe({
- selected: Zl,
- followSelected: Ql
+function DRe() {
+ return _Re({
+ selected: Xl,
+ followSelected: Zl
}, location.pathname, location.search, U.state);
}
// src/application/index.js
-var R5 = {
+var L5 = {
peopleIndexLayout: void 0,
personAvatar: void 0
};
-function ERe() {
+function ORe() {
return Z.appSettings.followLayout === "table" ? "table" : "default";
}
-function DRe() {
- return AZ(location.search);
+function kRe() {
+ return kZ(location.search);
}
-function ORe(e) {
- return jZ(e);
+function ARe(e) {
+ return AZ(e);
}
-function kRe(e) {
- Q.route(ORe(e));
+function jRe(e) {
+ Q.route(ARe(e));
}
-function ARe(e = "") {
- return MZ(location.search, e);
+function MRe(e = "") {
+ return jZ(location.search, e);
}
-function jRe(e) {
- return W8(e);
+function NRe(e) {
+ return U8(e);
}
-function z5(e) {
- return H8(e);
+function R5(e) {
+ return V8(e);
}
-function B5() {
- L("#stats").hidden = !0, L("#index").hidden = !1, q7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
+function z5() {
+ L("#stats").hidden = !0, L("#index").hidden = !1, K7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
}
-function MRe(e, t) {
+function PRe(e, t) {
W({ state: {
...U,
state: "",
tag: e.join(","),
tag_match: t
- } }), F5(!1, !1), Q.route(C7()), X5(), w9(), B7();
+ } }), P5(!1, !1), Q.route(S7()), Y5(), C9(), z7();
}
-function V5(e) {
- R5.controller.openFollowAuthor(e);
+function B5(e) {
+ L5.controller.openFollowAuthor(e);
}
-function NRe(e) {
- R5.controller.openFollowTag(e);
+function FRe(e) {
+ L5.controller.openFollowTag(e);
}
-function PRe() {
- $.FOLLOW_MANAGE_TABS = kZ, K8.listen(document, "click", (e) => {
- e.target.closest?.("[data-empty-settings]") && k5("媒体库与入库");
- }), R5.peopleIndexLayout = () => c6(Z.appSettings.peopleLayout), R5.personAvatar = U8;
+function IRe() {
+ $.FOLLOW_MANAGE_TABS = OZ, G8.listen(document, "click", (e) => {
+ e.target.closest?.("[data-empty-settings]") && O5("媒体库与入库");
+ }), L5.peopleIndexLayout = () => s6(Z.appSettings.peopleLayout), L5.personAvatar = H8;
}
-function FRe() {
- R5.controller = FLe({
+function LRe() {
+ L5.controller = LLe({
route: Q.route,
- followView: A9,
- adoptFollowView: j9,
+ followView: k9,
+ adoptFollowView: A9,
hideIndex: () => {
L("#index").hidden = !0;
},
- openPage: O9
+ openPage: D9
});
}
// src/application/loading.js
-var H5 = {
+var V5 = {
setGridCards: void 0,
gridCards: void 0,
managementPlaceholder: void 0,
@@ -81488,58 +81501,58 @@ var H5 = {
ENTITY_SHAPES_WAIT: void 0,
syncPageTitle: void 0
};
-function U5(e = "正在读取作品") {
+function H5(e = "正在读取作品") {
if (location.pathname === "/wall") {
L("#loadSentinel").hidden = !0;
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 = xye(PU(location.search)), mc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && M7({
+ 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 = Cye(NU(location.search)), pc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && j7({
count: null,
- ...F7()
- })), L("#loadSentinel").hidden = !0, X7()) return;
- let r = L("#grid"), i = e9(e), a = r.querySelector(".catalog-skeleton");
- (a?.dataset.skeleton !== I2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== t9()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : H5.setGridCards(i), mc(L("#grid")));
+ ...P7()
+ })), L("#loadSentinel").hidden = !0, Y7()) return;
+ let r = L("#grid"), i = $7(e), a = r.querySelector(".catalog-skeleton");
+ (a?.dataset.skeleton !== F2(i) || Number(a.querySelector("[style]")?.style.getPropertyValue("--skeleton-card-ratio")) !== e9()) && (a ? r.innerHTML = `<div class="grid">${i}</div>` : V5.setGridCards(i), pc(L("#grid")));
}
-function W5() {
- L("#catalogFilter").style.display = "none", j7();
+function U5() {
+ L("#catalogFilter").style.display = "none", A7();
}
-function G5() {
+function W5() {
let e = new Promise((e) => {
- let t = H5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
+ let t = V5.ENTITY_SHAPES_WAIT, n = performance.now(), r = () => {
let i = performance.now();
- t -= Math.min(i - n, 50), n = i, t > 0 ? K8.delay(r, Math.min(t, 50)) : e();
+ t -= Math.min(i - n, 50), n = i, t > 0 ? G8.delay(r, Math.min(t, 50)) : e();
};
- K8.delay(r, 50);
+ G8.delay(r, 50);
});
- return Promise.race([H5.entityShapesReady ||= e5(), e]);
+ return Promise.race([V5.entityShapesReady ||= $8(), e]);
}
-function IRe() {
+function RRe() {
let e = decodeURIComponent(location.pathname);
- if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), W5(), cbe();
- else if (/^\/assets\/\d+$/.test(e)) W5();
- else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) W5();
- else if (e === "/junk-files") U5("正在读取垃圾文件");
- else if (e === "/jav" && oU(new URLSearchParams(location.search).get("tab")) === "library") U5("正在读取馆藏");
+ if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), U5(), ube();
+ else if (/^\/assets\/\d+$/.test(e)) U5();
+ else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) U5();
+ else if (e === "/junk-files") H5("正在读取垃圾文件");
+ else if (e === "/jav" && aU(new URLSearchParams(location.search).get("tab")) === "library") H5("正在读取馆藏");
else if (Q.managedPagePath(e)) {
- W5();
+ U5();
let t = L("#stats");
- t.hidden = !1, q7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : H5.managementPlaceholder(e), mc(t);
- } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) W5(), B5(), d6(L("#index"), l6(e.slice(1), location.search), R5.peopleIndexLayout());
+ t.hidden = !1, K7(), t.innerHTML = e.startsWith("/follow") && e !== "/subscriptions" ? $.followSkeletonHtml("正在读取关注内容") : V5.managementPlaceholder(e), pc(t);
+ } else if (/^\/(performers|creators|studios|agencies|tags)$/.test(e)) U5(), z5(), u6(L("#index"), c6(e.slice(1), location.search), L5.peopleIndexLayout());
else if (/^\/(?:performers|creators|studios|agencies|series|tags)\//.test(e)) {
- W5(), L("#index").hidden = !1, q7();
+ U5(), L("#index").hidden = !1, K7();
let t = Nn[e.split("/")[1]], n = e.split("/").slice(2).join("/");
- (Q8.hasEntityShape(t, n) ? Promise.resolve() : G5()).then(() => {
- L("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (S5(t, n), mc(L("#index")));
+ (Z8.hasEntityShape(t, n) ? Promise.resolve() : W5()).then(() => {
+ L("#index").firstElementChild || decodeURIComponent(location.pathname) !== e || (x5(t, n), pc(L("#index")));
});
- } else Q.routeMeta(e) ? U5() : (q7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
+ } else Q.routeMeta(e) ? H5() : (K7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
}
-function LRe() {
- $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => P2(t, {
+function zRe() {
+ $.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => N2(t, {
cards: !0,
className: "follow-content-skeleton postercard-skeleton",
gridClass: e === "images" ? "followlist followphotowall" : "",
- gridSize: mM()
+ gridSize: pM()
}), $.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>
@@ -81547,37 +81560,37 @@ function LRe() {
<div class="board-filter-frame" data-filter-frame>
<div class="tagbar followfilters" data-filter-row="top" data-skeleton-tier="pill"></div>
<div class="count followcount" data-filter-row="bottom"><span class="mono"><span class="countskeleton"></span></span></div></div>
- ${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = Us(Hs), H5.setGridCards = (e) => ac(L("#grid"), () => {
+ ${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = Hs(Vs), V5.setGridCards = (e) => ic(L("#grid"), () => {
L("#grid").innerHTML = `<div class="grid">${e}</div>`;
- }), H5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), H5.managementPlaceholder = (e) => F2(e, {
- followLayout: ERe(),
+ }), V5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), V5.managementPlaceholder = (e) => P2(e, {
+ followLayout: ORe(),
...(({ sort: e, dir: t, tab: n }) => ({
followSort: e,
followDir: t,
followTab: n
- }))(DRe())
- }), H5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", H5.entityShapesReady = null, H5.ENTITY_SHAPES_WAIT = 400, H5.syncPageTitle = (e) => {
- let t = new URL(e, location.origin), n = tp(decodeURIComponent(t.pathname))?.title;
- document.title = n ? `${n} · Peach` : "Peach · 蜜桃", document.body.dataset.surface = t.pathname, S9();
+ }))(kRe())
+ }), V5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", V5.entityShapesReady = null, V5.ENTITY_SHAPES_WAIT = 400, V5.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, x9();
};
}
// src/sidebar-skeleton.ts
-var K5 = (e) => e.replace(/[&<>"']/g, (e) => ({
+var G5 = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function RRe(e, t, n) {
+function BRe(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-${K5(r)}"/></svg>`;
- return `<button type="button" data-nav="${K5(e)}" aria-pressed="${n(e)}" aria-label="${K5(t)}">${i}<span>${K5(t)}</span></button>`;
+ 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-${G5(r)}"/></svg>`;
+ return `<button type="button" data-nav="${G5(e)}" aria-pressed="${n(e)}" aria-label="${G5(t)}">${i}<span>${G5(t)}</span></button>`;
}).join("")}</div>`;
}
// src/application/filter-scroll.js
-function zRe(e, t, n, r = !1) {
+function VRe(e, t, n, r = !1) {
if (t = Math.max(0, t), !e || !n || r || t <= 8) return {
y: t,
origin: t,
@@ -81595,7 +81608,7 @@ function zRe(e, t, n, r = !1) {
};
}
// src/application/layout.js
-var q5 = {
+var K5 = {
sidebarProps: void 0,
sidebarSurface: void 0,
sidebarCatalog: void 0,
@@ -81617,25 +81630,25 @@ var q5 = {
mobileFilterHost: void 0,
mobileFilterPath: void 0
};
-function J5({ manage: e = !0, placeholder: t = "" } = {}) {
- L("#stats").hidden = !1, L("#index").hidden = !0, q7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? i7() : (a7(""), w9()), t && L2(L("#stats"), t);
+function q5({ manage: e = !0, placeholder: t = "" } = {}) {
+ L("#stats").hidden = !1, L("#index").hidden = !0, K7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0, e ? r7() : (i7(""), C9()), t && I2(L("#stats"), t);
}
-function Y5() {
- L("#javLibraryHeader").hidden = !0, X.hideCatalogCombo(), W5(), document.body.classList.remove("entity-open", "index-open");
+function J5() {
+ L("#javLibraryHeader").hidden = !0, X.hideCatalogCombo(), U5(), document.body.classList.remove("entity-open", "index-open");
}
-function X5() {
- L("#javLibraryHeader").hidden = !jn(location.pathname) || !d7(), document.body.classList.remove("entity-open", "index-open"), Cp(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, o5(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", j7(), i7(), o7();
+function Y5() {
+ L("#javLibraryHeader").hidden = !jn(location.pathname) || !u7(), document.body.classList.remove("entity-open", "index-open"), Sp(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, a5(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", A7(), r7(), a7();
}
-function BRe() {
- Q.route("/"), X5();
+function HRe() {
+ Q.route("/"), Y5();
}
-function Z5({ tags: e = [], providers: t = [], duration: n = !1 }) {
- C9({
+function X5({ tags: e = [], providers: t = [], duration: n = !1 }) {
+ S9({
content: e.length || t.length || n ? {
kind: "follow",
tags: e.map(([e, t]) => ({
value: e,
- label: Rl(e),
+ label: Ll(e),
n: t
})),
selected: [...$.followTags],
@@ -81653,72 +81666,72 @@ function Z5({ tags: e = [], providers: t = [], duration: n = !1 }) {
filters: $.followSidebarFilters()
});
}
-function Q5(e) {
- Vze({
- ...A9(),
+function Z5(e) {
+ Uze({
+ ...k9(),
...e
- }), C9({ filters: $.followSidebarFilters() });
+ }), S9({ filters: $.followSidebarFilters() });
}
-function $5() {
+function Q5() {
return matchMedia("(max-width:760px)").matches;
}
-function e7(e) {
+function $5(e) {
let t = L("#drawer"), n = !e && t.contains(document.activeElement);
- t.inert = !e && $5(), t.classList.toggle("open", e), L("#scrim").classList.toggle("on", e), document.body.classList.toggle("drawer-open", !!e), document.dispatchEvent(new Event("board:sidebar")), L("#filterBtn").setAttribute("aria-expanded", String(!!e)), L("#filterBtn").setAttribute("aria-controls", "drawer"), L("#filterBtn").setAttribute("aria-label", e ? "收起侧栏" : "展开侧栏"), n && L("#filterBtn").focus(), sessionStorage.setItem("board.sidebar", e ? "open" : "closed");
+ t.inert = !e && Q5(), t.classList.toggle("open", e), L("#scrim").classList.toggle("on", e), document.body.classList.toggle("drawer-open", !!e), document.dispatchEvent(new Event("board:sidebar")), L("#filterBtn").setAttribute("aria-expanded", String(!!e)), L("#filterBtn").setAttribute("aria-controls", "drawer"), L("#filterBtn").setAttribute("aria-label", e ? "收起侧栏" : "展开侧栏"), n && L("#filterBtn").focus(), sessionStorage.setItem("board.sidebar", e ? "open" : "closed");
}
-function t7() {
- $5() && e7(!1);
+function e7() {
+ Q5() && $5(!1);
}
-function VRe() {
- fu === null && (W({ runtimeConfigurable: !1 }), Tn("/healthz").then((e) => {
- W({ runtimeConfigurable: !!e.configurable }), fu && r7() && i7();
+function URe() {
+ du === null && (W({ runtimeConfigurable: !1 }), Tn("/healthz").then((e) => {
+ W({ runtimeConfigurable: !!e.configurable }), du && n7() && r7();
}).catch(() => {}));
}
-function n7(e = "", t = !1) {
- if (!t && !Nf(location.pathname)) {
- let t = Pp.navigation;
- Pp.push(Ff(e), { settingsBackground: {
+function t7(e = "", t = !1) {
+ if (!t && !Mf(location.pathname)) {
+ let t = Np.navigation;
+ Np.push(Pf(e), { settingsBackground: {
pathname: location.pathname,
search: location.search,
state: t.location.state,
seq: t.seq
} });
- } else !t && e && Fp(Ff(e), {
+ } else !t && e && Pp(Pf(e), {
replace: !0,
- state: Pp.navigation.location.state
+ state: Np.navigation.location.state
});
- return e ||= Pf(location.pathname), hLe(q5.settingsHost()).then((t) => (t.open(e), t));
+ return e ||= Nf(location.pathname), _Le(K5.settingsHost()).then((t) => (t.open(e), t));
}
-function HRe() {
- Nf(location.pathname) && (If(Pp.navigation.location.state) ? Pp.go(-1) : Q.navigatePath("/", !0));
+function WRe() {
+ Mf(location.pathname) && (Ff(Np.navigation.location.state) ? Np.go(-1) : Q.navigatePath("/", !0));
}
-function URe() {
+function GRe() {
return {
scroll: L("#drawerScroll"),
store: Z.settingsStore,
- navCatalog: q5.NAV_CATALOG,
- navOn: v7,
- navTo: y7,
+ navCatalog: K5.NAV_CATALOG,
+ navOn: _7,
+ navTo: v7,
navToTop: () => {
- t7(), vm();
+ e7(), _m();
},
- toggleChip: (e, t, n) => A7((r) => {
+ toggleChip: (e, t, n) => k7((r) => {
if (n) {
let n = String(r[e] || "").split(",").filter(Boolean), i = n.indexOf(t);
i >= 0 ? n.splice(i, 1) : n.push(t), r[e] = n.join(",");
} else r[e] = r[e] === t ? "" : t;
}),
- setDuration: (e, t) => A7((n) => {
+ setDuration: (e, t) => k7((n) => {
n.len = "", n.dur_min = e ? String(e * 60) : "", n.dur_max = t < 180 ? String(t * 60) : "";
}),
openFollowTag: (e) => {
- $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followFilter = "saved", $.followDurMin = $.followDurMax = 0, $.followTags = /* @__PURE__ */ new Set([e]), e7(!1), O9(k9());
+ $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followFilter = "saved", $.followDurMin = $.followDurMax = 0, $.followTags = /* @__PURE__ */ new Set([e]), $5(!1), D9(O9());
},
selectFollowTag: (e) => {
- $.followTags = /* @__PURE__ */ new Set([e]), e7(!1), O9(k9());
+ $.followTags = /* @__PURE__ */ new Set([e]), $5(!1), D9(O9());
},
- selectFollowProvider: (e) => Q5({ provider: $.followProviders.has(e) ? "" : e }),
- setFollowDuration: (e, t) => Q5({
+ selectFollowProvider: (e) => Z5({ provider: $.followProviders.has(e) ? "" : e }),
+ setFollowDuration: (e, t) => Z5({
durMin: e ? e * 60 : 0,
durMax: t < 180 ? t * 60 : 0
}),
@@ -81727,76 +81740,76 @@ function URe() {
}
};
}
-function WRe() {
+function KRe() {
let e = L("#drawerScroll"), t = [...e.querySelector("[data-sidebar-head]")?.children || []];
- e.innerHTML = RRe(Z.appSettings.sidebarOrder, q5.NAV_CATALOG, v7), e.querySelector("[data-sidebar-head]").append(...t), K8.listen(e, "click", (e) => {
- if (x8()) return;
+ e.innerHTML = BRe(Z.appSettings.sidebarOrder, K5.NAV_CATALOG, _7), e.querySelector("[data-sidebar-head]").append(...t), G8.listen(e, "click", (e) => {
+ if (b8()) return;
let t = e.target.closest?.("[data-nav]");
- t && y7(t.dataset.nav);
- }), gLe(URe()).then((e) => e.render(q5.sidebarProps)).catch(() => {});
+ t && v7(t.dataset.nav);
+ }), vLe(GRe()).then((e) => e.render(K5.sidebarProps)).catch(() => {});
}
-async function GRe() {
- let e = K8, t = null;
+async function qRe() {
+ let e = G8, t = null;
try {
t = await Tn("/api/settings", { signal: e.signal });
} catch {
return;
}
- e.isActive && eM(t, (e) => Z.settingsEffects[e]?.());
+ e.isActive && $j(t, (e) => Z.settingsEffects[e]?.());
}
-function r7() {
+function n7() {
return Q.routeMeta(decodeURIComponent(location.pathname))?.route.section || (U.state === "ads" ? "cleanup" : "");
}
-function i7() {
- let e = r7();
- VRe(), e && W5(), L("#count").classList.toggle("no-tagbar", !!e), w9(), e !== "trash" && (N5.trashCount = null), a7(e);
+function r7() {
+ let e = n7();
+ URe(), e && U5(), L("#count").classList.toggle("no-tagbar", !!e), C9(), e !== "trash" && (M5.trashCount = null), i7(e);
}
-function KRe(e) {
+function JRe(e) {
return {
section: e,
path: decodeURIComponent(location.pathname),
- sections: q5.MANAGE_SECTIONS,
- menu: e ? q5.manageMenuSections() : [],
- trash: N5.trashCount
+ sections: K5.MANAGE_SECTIONS,
+ menu: e ? K5.manageMenuSections() : [],
+ trash: M5.trashCount
};
}
-function a7(e = r7()) {
- o7();
- let t = KRe(e), n = w8();
+function i7(e = n7()) {
+ a7();
+ let t = JRe(e), n = C8();
if (n) n.render(t);
else {
- let e = $de(t);
- e !== q5.manageHeaderSkeleton && (q5.manageHeaderSkeleton = e, q5.manageHeaderRoot().innerHTML = e);
+ let e = tfe(t);
+ e !== K5.manageHeaderSkeleton && (K5.manageHeaderSkeleton = e, K5.manageHeaderRoot().innerHTML = e);
}
- let r = IF(t)?.title || "";
- r !== q5.lastManagePageLabel && (q5.lastManagePageLabel = r, r && nc(q5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
+ let r = FF(t)?.title || "";
+ r !== K5.lastManagePageLabel && (K5.lastManagePageLabel = r, r && tc(K5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
}
-function qRe() {
- let e = q5.manageHeaderRoot();
- K8.listen(e, "click", (e) => {
- if (w8()) return;
+function YRe() {
+ let e = K5.manageHeaderRoot();
+ G8.listen(e, "click", (e) => {
+ if (C8()) return;
let t = e.target.closest?.("[data-manage]");
- if (t) u7(t.dataset.manage);
+ if (t) l7(t.dataset.manage);
else if (e.target.closest?.("[data-manage-crumb] a[href]")) {
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]") && V7();
- }), _Le({
+ } else e.target.closest?.("[data-empty-trash]") && B7();
+ }), yLe({
root: e,
- openManage: u7,
+ openManage: l7,
openDataCleanup: () => Q.navigatePath("/data-cleanup"),
- emptyTrash: V7
- }).then(() => a7()).catch(() => {});
+ emptyTrash: B7
+ }).then(() => i7()).catch(() => {});
}
-function o7() {
+function a7() {
let e = L("#listTitle");
if (!e) return;
- let t = decodeURIComponent(location.pathname), n = !r7() && jn(t) && An[U.state] || "";
+ let t = decodeURIComponent(location.pathname), n = !n7() && jn(t) && An[U.state] || "";
e.hidden = !n, n && (e.textContent = n);
let r = L("#catalogPageHeading");
- r.hidden = !!r7() || !jn(t) || !!n || U.jav === "1", s7(r, U.q);
+ r.hidden = !!n7() || !jn(t) || !!n || U.jav === "1", o7(r, U.q);
}
-function s7(e, t) {
+function o7(e, t) {
let n = e?.querySelector("[data-page-title]");
if (!n) return;
let r = String(t || "").trim(), i = r ? `搜索结果:「${r}」` : "首页";
@@ -81809,10 +81822,10 @@ function s7(e, t) {
let n = document.createElement("span");
return n.textContent = e, t !== void 0 && (n.dataset.titleWords = t), n;
};
- n.replaceChildren(a("搜索结果:「"), a(r, r), a("」")), n.title = i, l7(n), c7 ??= new ResizeObserver((e) => e.forEach((e) => l7(e.target))), c7.observe(n), document.fonts?.ready.then(() => l7(n));
+ n.replaceChildren(a("搜索结果:「"), a(r, r), a("」")), n.title = i, c7(n), s7 ??= new ResizeObserver((e) => e.forEach((e) => c7(e.target))), s7.observe(n), document.fonts?.ready.then(() => c7(n));
}
-var c7 = null;
-function l7(e) {
+var s7 = null;
+function c7(e) {
let t = e.querySelector("[data-title-words]");
if (!t || !e.clientWidth) return;
let n = t.dataset.titleWords;
@@ -81824,76 +81837,76 @@ function l7(e) {
}
t.textContent = r.slice(0, o).join("") + "…";
}
-function u7(e = "stats") {
+function l7(e = "stats") {
let t = Q.routePathOf("section", e);
- t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", Cu(), Q.route(FU()), X5(), w9(), B7());
+ t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", Su(), Q.route(PU()), Y5(), C9(), z7());
}
-function d7() {
+function u7() {
let e = decodeURIComponent(location.pathname);
- return e === "/" ? U.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? U.jav === "1" || gu : !1;
+ return e === "/" ? U.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? U.jav === "1" || hu : !1;
}
-function JRe(e = d7()) {
- let t = Tj.filter(([e]) => e !== "seed");
- return e ? [Ej, ...t] : t;
+function XRe(e = u7()) {
+ let t = wj.filter(([e]) => e !== "seed");
+ return e ? [Tj, ...t] : t;
}
-function f7() {
+function d7() {
return decodeURIComponent(location.pathname) === "/" && U.jav !== "1";
}
-function p7() {
- return dM(f7());
+function f7() {
+ return uM(d7());
}
-function YRe(e) {
- Rle(e), h7(), L("#grid").hidden || n9();
+function ZRe(e) {
+ zle(e), m7(), L("#grid").hidden || t9();
}
-function m7(e) {
- yM(e), h7(), n9();
+function p7(e) {
+ vM(e), m7(), t9();
}
-function h7() {
+function m7() {
document.querySelectorAll("[data-video-layout]").forEach((e) => {
- e.checked = e.value === p7();
- }), X.catalogFilterProps && M7({ layout: P7() });
+ e.checked = e.value === f7();
+ }), X.catalogFilterProps && j7({ layout: N7() });
}
-function XRe(e) {
- zle(e), h7(), n9();
+function QRe(e) {
+ Ble(e), m7(), t9();
}
-async function g7() {
- I8(), X.mixRelatedCache.clear(), await Promise.all([_7(), B7()]);
+async function h7() {
+ F8(), X.mixRelatedCache.clear(), await Promise.all([g7(), z7()]);
}
-async function _7() {
- if (u5.entityPageCurrent() && !L("#index").hidden) {
- f5({ revision: ++u5.entityPageRevision });
+async function g7() {
+ if (l5.entityPageCurrent() && !L("#index").hidden) {
+ d5({ revision: ++l5.entityPageRevision });
return;
}
let e = decodeURIComponent(location.pathname);
- if (tp(e)?.reload === "reopen" || e === "/follow") {
- W({ pageOpens: mu + 1 });
+ if (ep(e)?.reload === "reopen" || e === "/follow") {
+ W({ pageOpens: pu + 1 });
return;
}
let t = Q.routeMeta(e);
- t?.route.reload ? await t.route.reload() : await G7();
+ t?.route.reload ? await t.route.reload() : await W7();
}
-function v7(e) {
- let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = q5.DIRECT_MANAGE_NAV[e];
- if (r) return r7() === r;
+function _7(e) {
+ let t = decodeURIComponent(location.pathname), n = Q.routeMeta(t)?.route.nav || "", r = K5.DIRECT_MANAGE_NAV[e];
+ if (r) return n7() === r;
if (e === "manage") {
- let e = r7();
- return !!e && !Z.appSettings.sidebarOrder.some((t) => q5.DIRECT_MANAGE_NAV[t] === e);
+ let e = n7();
+ return !!e && !Z.appSettings.sidebarOrder.some((t) => K5.DIRECT_MANAGE_NAV[t] === e);
}
- return e === "jav" ? t === "/jav" || d7() : e === "shorts" ? U.orient === "竖屏" : e === "" ? t === "/" && !r7() && !U.state && !d7() && U.orient !== "竖屏" : On[e] ? n === e && U.orient !== "竖屏" : n ? n === e : t === "/" && U.state === e && U.orient !== "竖屏";
+ return e === "jav" ? t === "/jav" || u7() : e === "shorts" ? U.orient === "竖屏" : e === "" ? t === "/" && !n7() && !U.state && !u7() && U.orient !== "竖屏" : On[e] ? n === e && U.orient !== "竖屏" : n ? n === e : t === "/" && U.state === e && U.orient !== "竖屏";
}
-function y7(e) {
- let t = fm(e);
+function v7(e) {
+ let t = dm(e);
if (t === location.pathname + location.search + location.hash) return;
- if (t7(), t) {
+ if (e7(), t) {
Q.navigatePath(t);
return;
}
- if (q5.DIRECT_MANAGE_NAV[e]) {
- u7(q5.DIRECT_MANAGE_NAV[e]);
+ if (K5.DIRECT_MANAGE_NAV[e]) {
+ l7(K5.DIRECT_MANAGE_NAV[e]);
return;
}
if (e === "manage") {
- u7();
+ l7();
return;
}
if (e === "jav") {
@@ -81901,25 +81914,25 @@ function y7(e) {
return;
}
if (e === "") {
- w7();
+ C7();
return;
}
let n = On[e] ? null : Q.routePathOf("nav", e);
- n ? Q.openRoutePath(n) : (e === "shorts" ? (U.orient = "竖屏", U.state = "") : (U.orient = "", U.state = e), Cu(), Q.route(C7()), w9(), B7());
+ n ? Q.openRoutePath(n) : (e === "shorts" ? (U.orient = "竖屏", U.state = "") : (U.orient = "", U.state = e), Su(), Q.route(S7()), C9(), z7());
}
-function b7() {
+function y7() {
let e = decodeURIComponent(location.pathname), t = e.split("/").filter(Boolean);
- $l && nu !== N5.currentSelectSurface() && F5(!1, !0);
+ Ql && tu !== M5.currentSelectSurface() && P5(!1, !0);
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, _5(), !i && $l && F5(!1, !0);
+ L("#selectMode").hidden = !i, L("#density").hidden = !a, g5(), !i && Ql && P5(!1, !0);
}
-function ZRe() {
+function $Re() {
let e = [...document.querySelectorAll("[data-filter-frame]")], t = e.find((e) => e.offsetParent !== null);
- (t !== q5.mobileFilterHost || location.pathname !== q5.mobileFilterPath) && (q5.mobileFilterScroll = null), q5.mobileFilterHost = t, q5.mobileFilterPath = location.pathname;
+ (t !== K5.mobileFilterHost || location.pathname !== K5.mobileFilterPath) && (K5.mobileFilterScroll = null), K5.mobileFilterHost = t, K5.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\"]");
- q5.mobileFilterScroll = zRe(q5.mobileFilterScroll, n, innerWidth <= 760, r);
+ K5.mobileFilterScroll = VRe(K5.mobileFilterScroll, n, innerWidth <= 760, r);
for (let n of e) {
- let e = n === t && q5.mobileFilterScroll.free;
+ let e = n === t && K5.mobileFilterScroll.free;
if (e && n.style.setProperty("--filter-free-top", `${-n.offsetHeight - 12}px`), e === n.hasAttribute("data-filter-free")) continue;
let r = n.getBoundingClientRect().top;
n.getAnimations().forEach((e) => e.id === "filter-slide" && e.cancel()), n.toggleAttribute("data-filter-free", e);
@@ -81931,54 +81944,54 @@ function ZRe() {
});
}
}
-function QRe() {
- ZRe(), [".board-filter-frame", "#count"].forEach((e) => {
+function eze() {
+ $Re(), [".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 x7() {
- q5.stickyFrame ||= K8.frame(() => {
- q5.stickyFrame = 0, QRe();
+function b7() {
+ K5.stickyFrame ||= G8.frame(() => {
+ K5.stickyFrame = 0, eze();
});
}
-function $Re() {
+function tze() {
$.followSidebarFilters = () => ({
provider: [...$.followProviders][0] || "",
dur_min: $.followDurMin || "",
dur_max: $.followDurMax || ""
- }), K8.handler(L("#filterBtn"), "onclick", () => e7(!L("#drawer").classList.contains("open"))), q5.SIDEBAR_ITEMS = L8, q5.MANAGE_SECTIONS = R8, q5.MANAGE_MENU_SECTIONS = z8, q5.manageMenuSections = () => MLe(fu === !0), q5.OPTIONAL_SIDEBAR_ITEMS = B8, q5.NAV_CATALOG = NLe, q5.DIRECT_MANAGE_NAV = PLe, q5.settingsHost = () => ({
- selectSection: (e) => Fp(Ff(e), {
+ }), G8.handler(L("#filterBtn"), "onclick", () => $5(!L("#drawer").classList.contains("open"))), K5.SIDEBAR_ITEMS = I8, K5.MANAGE_SECTIONS = L8, K5.MANAGE_MENU_SECTIONS = R8, K5.manageMenuSections = () => PLe(du === !0), K5.OPTIONAL_SIDEBAR_ITEMS = z8, K5.NAV_CATALOG = FLe, K5.DIRECT_MANAGE_NAV = ILe, K5.settingsHost = () => ({
+ selectSection: (e) => Pp(Pf(e), {
replace: !0,
- state: Pp.navigation.location.state
+ state: Np.navigation.location.state
}),
- closed: HRe,
+ closed: WRe,
store: Z.settingsStore,
changed: (e) => Z.settingsEffects[e]?.(),
- sound: (e) => $o(e),
- navCatalog: q5.NAV_CATALOG,
- themeOptions: Nle,
- videoLayouts: aM,
- followInitialRanges: V8,
- videoLayout: () => p7(),
- setVideoLayout: XRe,
- censored: o9,
- setCensored: c9,
- sfwShortcut: l9,
- setSfwShortcut: bze,
+ sound: (e) => Qo(e),
+ navCatalog: K5.NAV_CATALOG,
+ themeOptions: Ple,
+ videoLayouts: iM,
+ followInitialRanges: B8,
+ videoLayout: () => f7(),
+ setVideoLayout: QRe,
+ censored: a9,
+ setCensored: s9,
+ sfwShortcut: c9,
+ setSfwShortcut: Sze,
highContrast: () => document.documentElement.classList.contains("board-high-contrast"),
- setHighContrast: xze,
- receipt: (e) => A8.actionReceipt(e),
- failure: A8.actionFailure,
- syncRemote: (e) => eM(e, (e) => Z.settingsEffects[e]?.()),
+ setHighContrast: Cze,
+ receipt: (e) => k8.actionReceipt(e),
+ failure: k8.actionFailure,
+ syncRemote: (e) => $j(e, (e) => Z.settingsEffects[e]?.()),
openConfiguration: () => Q.navigatePath("/settings/library"),
attached: () => Z.syncGlassOptics(),
- configurable: () => Tn("/healthz").then((e) => (W({ runtimeConfigurable: !!e.configurable }), fu)).catch(() => null)
- }), K8.handler(L("#settingsBtn"), "onclick", () => void n7()), q5.lastManagePageLabel = "", q5.manageHeaderSkeleton = "", q5.manageHeaderRoot = () => L("[data-manage-header]"), window.__scrolling = !1, q5.scrollT = null, q5.stickyFrame = 0, q5.mobileFilterScroll = null, q5.mobileFilterHost = null, q5.mobileFilterPath = "", K8.listen(document, "focusin", x7), K8.listen(document, "focusout", x7), K8.listen(window, "scroll", () => {
- x7(), location.pathname === "/follow" && M9() && W({ followScrollY: scrollY }), window.__scrolling = !0, Pl(), clearTimeout(q5.scrollT), q5.scrollT = K8.delay(() => {
+ configurable: () => Tn("/healthz").then((e) => (W({ runtimeConfigurable: !!e.configurable }), du)).catch(() => null)
+ }), G8.handler(L("#settingsBtn"), "onclick", () => void t7()), K5.lastManagePageLabel = "", K5.manageHeaderSkeleton = "", K5.manageHeaderRoot = () => L("[data-manage-header]"), window.__scrolling = !1, K5.scrollT = null, K5.stickyFrame = 0, K5.mobileFilterScroll = null, K5.mobileFilterHost = null, K5.mobileFilterPath = "", G8.listen(document, "focusin", b7), G8.listen(document, "focusout", b7), G8.listen(window, "scroll", () => {
+ b7(), location.pathname === "/follow" && j9() && W({ followScrollY: scrollY }), window.__scrolling = !0, Nl(), clearTimeout(K5.scrollT), K5.scrollT = G8.delay(() => {
window.__scrolling = !1;
}, 180);
- }, { passive: !0 }), K8.listen(window, "resize", x7, { passive: !0 }), K8.handler(L("#scrim"), "onclick", () => e7(!1));
+ }, { passive: !0 }), G8.listen(window, "resize", b7, { passive: !0 }), G8.handler(L("#scrim"), "onclick", () => $5(!1));
}
// src/application/catalog.js
var X = {
@@ -82017,43 +82030,43 @@ var X = {
junkQueueHelpers: void 0,
junkQueueActions: void 0
};
-function eze() {
- X.initialParams.has("loc") || (U.loc = S7(U.loc), Cu());
+function nze() {
+ X.initialParams.has("loc") || (U.loc = x7(U.loc), Su());
}
-function S7(e) {
- return CLe(e, Z.sourceOnline);
+function x7(e) {
+ return TLe(e, Z.sourceOnline);
}
-function C7(e = U) {
- return wLe(e);
+function S7(e = U) {
+ return ELe(e);
}
-function tze() {
- W(M8(TLe(U, Z.appSettings, A8.rollSeed)));
+function rze() {
+ W(j8(DLe(U, Z.appSettings, k8.rollSeed)));
}
-function w7(e = null) {
- tze(), e && (Object.assign(U, e), Cu()), Q.route(e ? C7() : "/"), X.clearSearchField(), m9(!1), w9(), B7();
+function C7(e = null) {
+ rze(), e && (Object.assign(U, e), Su()), Q.route(e ? S7() : "/"), X.clearSearchField(), p9(!1), C9(), z7();
}
-function nze(e, t = null) {
+function ize(e, t = null) {
let n = e.id;
- !e.medium || e.medium === "video" ? v9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : I5(n);
+ !e.medium || e.medium === "video" ? _9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : F5(n);
}
-function T7(e) {
+function w7(e) {
return X.mixRelatedCache.has(e) || X.mixRelatedCache.set(e, Tn("/api/related?id=" + e + "&limit=28").then((t) => (t.items || []).filter((t) => t.id !== e)).catch((t) => {
throw X.mixRelatedCache.delete(e), t;
})), X.mixRelatedCache.get(e);
}
-function rze(e, t) {
- f8()?.miniplayerTakesCard(e) ? f8().miniplayerPlay(e.id) : E7(e, t);
+function aze(e, t) {
+ d8()?.miniplayerTakesCard(e) ? d8().miniplayerPlay(e.id) : T7(e, t);
}
-function E7(e, t) {
- e.edition_group ? Oze(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? kze(e.part_group.seed_id, e.id, !0, t) : v9(e.id, !0, null, t);
+function T7(e, t) {
+ e.edition_group ? Aze(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? jze(e.part_group.seed_id, e.id, !0, t) : _9(e.id, !0, null, t);
}
-async function ize(e, t) {
+async function oze(e, t) {
try {
let n = await Tn("/api/watch-later", {
method: "POST",
body: JSON.stringify({ id: e.id })
});
- e.watch_later = n.watch_later, t(!!n.watch_later), A8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
+ e.watch_later = n.watch_later, t(!!n.watch_later), k8.actionReceipt(n.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
let n = await Tn("/api/watch-later", {
method: "POST",
body: JSON.stringify({ id: e.id })
@@ -82061,10 +82074,10 @@ async function ize(e, t) {
e.watch_later = n.watch_later, t(!!n.watch_later);
} });
} catch (e) {
- A8.actionFailure("更新稍后看", e);
+ k8.actionFailure("更新稍后看", e);
}
}
-async function aze(e, t) {
+async function sze(e, t) {
try {
await Tn("/api/batch", {
method: "POST",
@@ -82072,9 +82085,9 @@ async function aze(e, t) {
ids: [e.id],
operation: t
})
- }), await G7();
+ }), await W7();
let n = t === "restore" ? "dispose" : "restore";
- A8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
+ k8.actionReceipt(t === "restore" ? "已还原" : "已移入回收站", { undo: async () => {
await Tn("/api/batch", {
method: "POST",
body: JSON.stringify({
@@ -82082,14 +82095,14 @@ async function aze(e, t) {
operation: n,
...n === "dispose" ? { disposal_reason: e.disposal_reason ?? null } : {}
})
- }), await G7();
+ }), await W7();
} });
} catch (e) {
- throw A8.actionFailure("操作", e), e;
+ throw k8.actionFailure("操作", e), e;
}
}
-async function oze(e, t, n, r) {
- let i = Number(e.rating) || 0, a = fP(i, t), o = async (t, r) => {
+async function cze(e, t, n, r) {
+ let i = Number(e.rating) || 0, a = dP(i, t), o = async (t, r) => {
let i = (await Tn("/api/feedback", {
method: "POST",
body: JSON.stringify({
@@ -82103,15 +82116,15 @@ async function oze(e, t, n, r) {
};
try {
let e = await o(a, r);
- A8.actionReceipt(e ? `已评 ${dP(e)} 星` : "已取消评分", { undo: () => o(i) });
+ k8.actionReceipt(e ? `已评 ${uP(e)} 星` : "已取消评分", { undo: () => o(i) });
} catch (e) {
- throw r?.aborted || A8.actionFailure("评分", e), e;
+ throw r?.aborted || k8.actionFailure("评分", e), e;
}
}
-async function D7(e) {
+async function E7(e) {
let t = new URLSearchParams();
- if (d7() && t.set("jav", "1"), e.type === "entity" ? (t.set("scope_kind", e.kind), t.set("scope_name", e.name)) : e.type === "item" && t.set("id", String(e.id)), e.type === "home" && U.state && t.set("state", U.state), e.type !== "item") {
- let e = u5.activeFilterState();
+ if (u7() && t.set("jav", "1"), e.type === "entity" ? (t.set("scope_kind", e.kind), t.set("scope_name", e.name)) : e.type === "item" && t.set("id", String(e.id)), e.type === "home" && U.state && t.set("state", U.state), e.type !== "item") {
+ let e = l5.activeFilterState();
[
"loc",
"creator",
@@ -82132,33 +82145,33 @@ async function D7(e) {
e[n] && t.set(n, e[n]);
});
}
- return ALe(t.toString(), X.topsQueryParams(e).toString());
+ return MLe(t.toString(), X.topsQueryParams(e).toString());
}
-function O7(e) {
- p5().type !== "entity" && M7({ tags: I7(e) }), C9({ filters: { ...e } }), W7();
+function D7(e) {
+ f5().type !== "entity" && j7({ tags: F7(e) }), S9({ filters: { ...e } }), U7();
}
-async function k7(e) {
- let t = ++X.facetCountsSeq, [n] = await D7(e);
- t === X.facetCountsSeq && (e.type === "home" && (d9.facets = n), C9({ latest: a9(n, e) }));
+async function O7(e) {
+ let t = ++X.facetCountsSeq, [n] = await E7(e);
+ t === X.facetCountsSeq && (e.type === "home" && (u9.facets = n), S9({ latest: i9(n, e) }));
}
-function A7(e) {
- let t = p5();
+function k7(e) {
+ let t = f5();
if (t.type === "entity") {
let n = { ...t.filters };
- e(n), h5(t.kind, t.name, n), O7(n), k7(p5());
+ e(n), m5(t.kind, t.name, n), D7(n), O7(f5());
} else if (t.type === "item") {
- let t = u5.cloneBarsContext(Xl);
- if (m9(!1), W({ detailReturnBarsContext: null }), t && t.type === "entity") {
- e(t.filters), h5(t.kind, t.name, t.filters) ? B7() : W({ pageOpens: mu + 1 });
+ let t = l5.cloneBarsContext(Yl);
+ if (p9(!1), W({ detailReturnBarsContext: null }), t && t.type === "entity") {
+ e(t.filters), m5(t.kind, t.name, t.filters) ? z7() : W({ pageOpens: pu + 1 });
return;
}
e(U), W({ barsContext: {
type: "home",
filters: U
- } }), Q.route(C7()), X5(), B7();
- } else e(U), Cu(), Q.route(C7()), O7(U), k7(Yl);
+ } }), Q.route(S7()), Y5(), z7();
+ } else e(U), Su(), Q.route(S7()), D7(U), O7(Jl);
}
-function sze() {
+function lze() {
return {
tiers: null,
tiersPending: !1,
@@ -82176,204 +82189,204 @@ function sze() {
combo: [],
comboHidden: !0,
comboHost: L("#combo"),
- actions: N7(),
+ actions: M7(),
helpers: {
- wireDrag: u9,
+ wireDrag: l9,
wireScroller: (e) => {
- e && jc(e);
+ e && Ac(e);
}
}
};
}
-function j7() {
- X.catalogFilterProps && M7({});
+function A7() {
+ X.catalogFilterProps && j7({});
}
-function M7(e) {
+function j7(e) {
let t = L("#catalogFilter"), n = t.style.display === "none" || document.body.matches(".entity-open,.index-open");
e = {
...e,
offscreen: n
}, X.catalogFilterProps = {
- ...X.catalogFilterProps || sze(),
+ ...X.catalogFilterProps || lze(),
...e
- }, !X.catalogFilterMounting && (gp(t) ? Sp(t, e) : (!t.firstChild && !n && (t.innerHTML = jMe(X.catalogViews(), X.catalogFilterProps.state, F7()), mc(t)), X.catalogFilterMounting = bp("catalog-filter", X.catalogFilterProps, {
+ }, !X.catalogFilterMounting && (hp(t) ? xp(t, e) : (!t.firstChild && !n && (t.innerHTML = NMe(X.catalogViews(), X.catalogFilterProps.state, P7()), pc(t)), X.catalogFilterMounting = yp("catalog-filter", X.catalogFilterProps, {
container: t,
isCurrent: () => !0
- }).then(() => Sp(t, X.catalogFilterProps)).finally(() => {
+ }).then(() => xp(t, X.catalogFilterProps)).finally(() => {
X.catalogFilterMounting = null;
})));
}
-function N7() {
+function M7() {
return {
currentHref: () => {
- let e = new URL(C7(), location.origin);
+ let e = new URL(S7(), location.origin);
return e.searchParams.set("loc", U.loc || ""), e.searchParams.set("thumb", U.thumb || "0"), e.searchParams.set("sort", U.sort || ""), e.searchParams.set("dir", U.dir || ""), e.pathname + e.search;
},
- openEntity: (e, t) => T5(e, t),
+ openEntity: (e, t) => w5(e, t),
setView: (e) => {
- U.state = e, Cu(), M7({ state: e }), Q.route(C7()), B7();
+ U.state = e, Su(), j7({ state: e }), Q.route(S7()), z7();
},
- toggleTag: (e) => H7(e),
- clearFilter: (e) => A7((t) => {
+ toggleTag: (e) => V7(e),
+ clearFilter: (e) => k7((t) => {
t[e] = "";
}),
- clearAll: () => A7((e) => {
+ clearAll: () => k7((e) => {
e.tag = "", e.creator = "", e.studio = "", e.owner = "";
}),
setSort: (e) => {
- let t = Mj(e, U.sort, U.dir);
- t && (U.sort = t.sort, U.dir = t.dir, Cu(), i9());
+ let t = jj(e, U.sort, U.dir);
+ t && (U.sort = t.sort, U.dir = t.dir, Su(), r9());
},
- reshuffle: () => yze(),
+ reshuffle: () => xze(),
setLayout: (e) => {
- d7() ? m7(e) : YRe(e);
+ u7() ? p7(e) : ZRe(e);
},
moreTops: async (e) => {
let t = X.catalogTopsPages;
if (!t) return [];
- let n = (await jLe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
- return e === "performers" ? n.map(L7) : n.map(R7);
+ let n = (await NLe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
+ return e === "performers" ? n.map(I7) : n.map(L7);
}
};
}
-function P7() {
- return d7() ? {
+function N7() {
+ return u7() ? {
name: "jav-layout",
label: "JAV 卡片版式",
- value: uM(),
- options: aM
- } : f7() ? {
+ value: lM(),
+ options: iM
+ } : d7() ? {
name: "home-layout",
label: "首页卡片版式",
- value: p7(),
- options: aM
+ value: f7(),
+ options: iM
} : null;
}
-function F7() {
+function P7() {
return {
- sorts: m5(U.sort, U.dir),
- layout: P7(),
+ sorts: p5(U.sort, U.dir),
+ layout: N7(),
state: U.state || "",
trash: U.state === "trash"
};
}
-function I7(e) {
+function F7(e) {
return X.catalogTagRows.map((t) => ({
...t,
selected: X.tagPressed(e.tag, t.k)
}));
}
-function L7(e) {
+function I7(e) {
return {
name: e.k,
- ringHtml: `<span data-tier-initial>${z(er(nn("performer", e.k, e.id)))}</span>${_o({
+ ringHtml: `<span data-tier-initial>${z(er(nn("performer", e.k, e.id)))}</span>${go({
id: e.id,
hasImage: e.has_image,
version: e.image_version,
rep: e.has_avatar ? e.rep : null,
- style: xo(e.avatar_focus),
+ style: bo(e.avatar_focus),
focus: e.avatar_focus,
standIn: e.avatar_stand_in
})}`
};
}
-function R7(e) {
+function L7(e) {
return {
name: e.k,
fallback: $n(e.k, 2),
- logo: e.has_logo ? mo(e.k, "icon", e.logo_version) : ""
+ logo: e.has_logo ? po(e.k, "icon", e.logo_version) : ""
};
}
-function cze(e, t) {
- X.barsPendingSeq = t, X.catalogFilterProps?.tiers ? M7({
+function uze(e, t) {
+ X.barsPendingSeq = t, X.catalogFilterProps?.tiers ? j7({
tiersPending: !0,
state: e.state || ""
- }) : (X.barsRendered = "", M7({
+ }) : (X.barsRendered = "", j7({
tiers: null,
tiersPending: !0,
state: e.state || ""
}));
}
-function z7(e) {
- X.barsPendingSeq === e && (X.barsPendingSeq = 0, M7({ tiersPending: !1 }));
+function R7(e) {
+ X.barsPendingSeq === e && (X.barsPendingSeq = 0, j7({ tiersPending: !1 }));
}
-async function B7() {
+async function z7() {
let e = ++X.barsRequestSeq;
- if (C9(), !Kl(location.pathname) || Yl.type === "item") return;
- let t = p5(), n = u5.activeFilterState(), r = JSON.stringify([
+ if (S9(), !Gl(location.pathname) || Jl.type === "item") return;
+ let t = f5(), n = l5.activeFilterState(), r = JSON.stringify([
t,
n,
U.state || "",
U.seed || "",
- d7()
+ u7()
]);
- cze(n, e);
+ uze(n, e);
let i;
try {
- i = await D7(t);
+ i = await E7(t);
} catch (t) {
- throw z7(e), t;
+ throw R7(e), t;
}
let [a, o] = i;
if (e !== X.barsRequestSeq) {
- z7(e);
+ R7(e);
return;
}
let s = r + "\n" + JSON.stringify([a, o]);
if (s === X.barsRendered) {
- X.barsPendingSeq = 0, M7({ tiersPending: !1 }), q5.sidebarCatalog && C9({
- content: q5.sidebarCatalog,
+ X.barsPendingSeq = 0, j7({ tiersPending: !1 }), K5.sidebarCatalog && S9({
+ content: K5.sidebarCatalog,
filters: { ...n }
});
return;
}
- X.barsRendered = s, t.type === "home" && (d9.facets = a);
+ X.barsRendered = s, t.type === "home" && (u9.facets = a);
let c = a.tags || [];
- Za(o.performers), Za(o.studios);
- let l = t.type === "home" && !d7() && !U.state && !U.q && !a.locations.some((e) => e.n > 0);
+ Xa(o.performers), Xa(o.studios);
+ let l = t.type === "home" && !u7() && !U.state && !U.q && !a.locations.some((e) => e.n > 0);
X.catalogTopsPages = {
context: t,
performers: 0,
studios: 0
};
- let u = X.tagList(n.tag), d = new Map(c.map((e) => [e.k, e])), f = u.map((e) => d.get(e) || { k: e }), p = c.filter((e) => !u.includes(e.k)), m = A8.seededSample(p, X.TAGS_FIRST, `tags:${U.seed || ""}`), h = new Set(m.map((e) => e.k));
+ let u = X.tagList(n.tag), d = new Map(c.map((e) => [e.k, e])), f = u.map((e) => d.get(e) || { k: e }), p = c.filter((e) => !u.includes(e.k)), m = k8.seededSample(p, X.TAGS_FIRST, `tags:${U.seed || ""}`), h = new Set(m.map((e) => e.k));
X.catalogTagRows = f.concat(m, p.filter((e) => !h.has(e.k))).map((e) => ({
k: e.k,
- label: Rl(e.k),
+ label: Ll(e.k),
n: e.n ?? null
- })), X.barsPendingSeq = 0, M7({
+ })), X.barsPendingSeq = 0, j7({
tiers: {
key: String(X.barsRequestSeq),
- performers: o.performers.map(L7),
- studios: o.studios.map(R7)
+ performers: o.performers.map(I7),
+ studios: o.studios.map(L7)
},
tiersPending: !1,
empty: l,
- tags: I7(n),
+ tags: F7(n),
tagFirst: f.length + m.length,
views: X.catalogViews(),
state: n.state || ""
- }), W7(), q5.sidebarCatalog = {
+ }), U7(), K5.sidebarCatalog = {
kind: "catalog",
- key: String(++q5.sidebarContentSeq),
- facets: a9(a, t)
- }, C9({
- content: q5.sidebarCatalog,
+ key: String(++K5.sidebarContentSeq),
+ facets: i9(a, t)
+ }, S9({
+ content: K5.sidebarCatalog,
filters: { ...n },
latest: null
});
}
-function lze(e, t) {
- d9.total = e, U.state === "trash" && (N5.trashCount = {
- total: d9.total,
+function dze(e, t) {
+ u9.total = e, U.state === "trash" && (M5.trashCount = {
+ total: u9.total,
shown: t
- }), i7(), M7({ count: {
- total: d9.total,
+ }), r7(), j7({ count: {
+ total: u9.total,
shown: t
} });
}
-function V7() {
- return ul({
+function B7() {
+ return ll({
title: "清空回收站",
body: "回收站中的全部文件和馆藏记录将永久删除,无法恢复。",
confirmLabel: "清空回收站",
@@ -82382,19 +82395,19 @@ function V7() {
try {
let e = await Tn("/api/trash/empty", { method: "POST" });
if (e.blocked && e.blocked.length) throw Error(`已永久删除 ${e.purged} 项;${e.blocked.length} 项未能删除,仍在回收站:\n` + e.blocked.slice(0, 5).map((e) => `${e.path}(${e.reason})`).join("\n"));
- A8.actionReceipt(`已永久删除 ${e.purged} 项`);
+ k8.actionReceipt(`已永久删除 ${e.purged} 项`);
} finally {
- await G7();
+ await W7();
}
}
});
}
-function H7(e) {
- A7((t) => {
+function V7(e) {
+ k7((t) => {
t.tag = e ? X.withTagToggled(t.tag, e) : "";
});
}
-function U7(e) {
+function H7(e) {
let t = [];
return e.creator && t.push({
kind: "clear",
@@ -82415,16 +82428,16 @@ function U7(e) {
}), X.tagList(e.tag).forEach((e) => t.push({
kind: "untag",
key: e,
- label: Rl(e)
+ label: Ll(e)
})), t;
}
-function W7() {
- M7({
- combo: U7(U),
+function U7() {
+ j7({
+ combo: H7(U),
comboHidden: !X.catalogOnScreen()
});
}
-async function G7() {
+async function W7() {
let e = Q.claimSurface(Q.surfacePath());
if (W({
barsContext: {
@@ -82432,113 +82445,113 @@ async function G7() {
filters: U
},
detailReturnBarsContext: null
- }), m9(!1), U.state === "ads") return fze(e);
- X.controller.page === "/junk-files" && q7(), U5(), X5();
- let t = J7(e);
- if (o5(location.pathname) && U.browse !== "folders") {
- if (await H5.entityShapesReady, !Q.surfaceCurrent(e)) return;
- ZLe();
- } else s5();
- return W7(), L("#count").classList.remove("manage-static", "junkcount"), t;
-}
-function K7(e) {
+ }), p9(!1), U.state === "ads") return mze(e);
+ X.controller.page === "/junk-files" && K7(), H5(), Y5();
+ let t = q7(e);
+ if (a5(location.pathname) && U.browse !== "folders") {
+ if (await V5.entityShapesReady, !Q.surfaceCurrent(e)) return;
+ $Le();
+ } else o5();
+ return U7(), L("#count").classList.remove("manage-static", "junkcount"), t;
+}
+function G7(e) {
X.controller.settle(e);
}
-function q7() {
+function K7() {
let e = L("#grid");
- Pl(e), Cp(e), X.controller.clear(), e.innerHTML = "";
+ Nl(e), Sp(e), X.controller.clear(), e.innerHTML = "";
}
-function J7(e) {
- return Q7("/", dze, e, { place: Uze });
+function q7(e) {
+ return Z7("/", pze, e, { place: Gze });
}
-function uze(e) {
- return Q7("/junk-files", mze, e);
+function fze(e) {
+ return Z7("/junk-files", gze, e);
}
-function Y7() {
- return !!hp(L("#grid"));
+function J7() {
+ return !!mp(L("#grid"));
}
-function X7() {
- return X.controller.taken(Y7());
+function Y7() {
+ return X.controller.taken(J7());
}
-function Z7(e) {
- Sp(L("#grid"), e);
+function X7(e) {
+ xp(L("#grid"), e);
}
-function Q7(e, t, n, r = {}) {
+function Z7(e, t, n, r = {}) {
let i = L("#grid");
- X.controller.page && X.controller.page !== e && q7();
- let a = X.controller.begin(e, Y7()), o = t();
- if (!a.mount) return Z7(o), a.settled;
- Pl(i);
- let s = () => Cp(i);
- return a.signal.addEventListener("abort", s, { once: !0 }), bp(e, o, {
+ X.controller.page && X.controller.page !== e && K7();
+ let a = X.controller.begin(e, J7()), o = t();
+ if (!a.mount) return X7(o), a.settled;
+ Nl(i);
+ let s = () => Sp(i);
+ return a.signal.addEventListener("abort", s, { once: !0 }), yp(e, o, {
...r,
container: i,
isCurrent: () => Q.surfaceCurrent(n) && a.isCurrent()
}).catch((e) => console.error(e)).finally(() => {
- a.signal.removeEventListener("abort", s), a.finish(Y7());
+ a.signal.removeEventListener("abort", s), a.finish(J7());
}), a.settled;
}
-function $7() {
- let e = f7();
- return _M({
- active: d7() || e,
+function Q7() {
+ let e = d7();
+ return gM({
+ active: u7() || e,
home: e,
portrait: U.orient === "竖屏"
});
}
-function e9(e = "正在读取作品") {
- return FJ(e, t9());
+function $7(e = "正在读取作品") {
+ return PJ(e, e9());
}
-function t9() {
- return U ? vM($7()) : 16 / 9;
+function e9() {
+ return U ? _M(Q7()) : 16 / 9;
}
-function n9() {
- X7() && (Pl(L("#grid")), Z7({
- layout: $7(),
+function t9() {
+ Y7() && (Nl(L("#grid")), X7({
+ layout: Q7(),
seekSeconds: Z.appSettings.seekSeconds
- })), u5.entityPageCurrent() && (Pl(L("#index [data-entity-hero]")), f5({
- layout: $7(),
+ })), l5.entityPageCurrent() && (Nl(L("#index [data-entity-hero]")), d5({
+ layout: Q7(),
seekSeconds: Z.appSettings.seekSeconds
}));
}
-function dze() {
+function pze() {
let e = decodeURIComponent(location.pathname), t = jn(e), n = U.state === "trash";
return {
mode: "catalog",
helpers: X.gridHelpers,
actions: X.gridActions,
- layout: $7(),
+ layout: Q7(),
wall: e === "/wall",
- restoreNavigation: _m(),
- selectMode: $l,
- selected: new Set(Zl),
+ restoreNavigation: gm(),
+ selectMode: Ql,
+ selected: new Set(Xl),
seekSeconds: Z.appSettings.seekSeconds,
revision: X.controller.revision,
- wireDrag: u9,
- settled: K7,
- skeletonHtml: () => e9(),
+ wireDrag: l9,
+ settled: G7,
+ skeletonHtml: () => $7(),
filters: { ...U },
batchSize: Z.appSettings.batchSize,
groupCollapse: Z.appSettings.groupCollapse,
excludeVertical: t && e !== "/wall" && !U.q && !U.orient && U.browse !== "folders" || U.jav === "1",
mix: t && e !== "/wall" && !n && U.browse !== "folders",
- shorts: t && e !== "/wall" && !d7() && U.orient !== "竖屏" && !n && U.browse !== "folders",
+ shorts: t && e !== "/wall" && !u7() && U.orient !== "竖屏" && !n && U.browse !== "folders",
countRow: L("#count"),
- onCount: lze,
- onCountFailed: () => M7({ count: !1 }),
- emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : TK({
- jav: d7() && !t,
- configurable: fu,
+ onCount: dze,
+ onCountFailed: () => j7({ count: !1 }),
+ emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : wK({
+ jav: u7() && !t,
+ configurable: du,
filtered: !t
}),
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function fze(e) {
+function mze(e) {
let t = L("#count");
- return X.controller.page === "/junk-files" && Y7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (q7(), U5("正在读取垃圾文件")), X5(), W7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), uze(e);
+ return X.controller.page === "/junk-files" && J7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (K7(), H5("正在读取垃圾文件")), Y5(), U7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), fze(e);
}
-async function pze(e, t) {
+async function hze(e, t) {
let n = [e.id], r = t === "dispose", i = t === "reconsider-junk";
try {
await Tn("/api/batch", {
@@ -82548,41 +82561,41 @@ async function pze(e, t) {
operation: t,
...r ? { disposal_reason: "junk" } : {}
})
- }), await G7();
+ }), await W7();
let e = r ? "restore" : i ? "dismiss-junk" : "reconsider-junk";
- A8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
+ k8.actionReceipt(r ? "已移入回收站" : i ? "已重新加入垃圾判断" : "已标记为不是垃圾", { undo: async () => {
await Tn("/api/batch", {
method: "POST",
body: JSON.stringify({
ids: n,
operation: e
})
- }), await G7();
+ }), await W7();
} });
} catch (e) {
- throw A8.actionFailure("操作", e), e;
+ throw k8.actionFailure("操作", e), e;
}
}
-function mze() {
+function gze() {
return {
- ...PU(location.search),
+ ...NU(location.search),
helpers: X.junkQueueHelpers,
actions: X.junkQueueActions,
batchSize: Z.appSettings.batchSize,
revision: X.controller.revision,
- selectMode: $l,
- selected: new Set(Zl),
+ selectMode: Ql,
+ selected: new Set(Xl),
countRow: L("#count"),
- settled: K7,
- skeletonHtml: () => P2("正在读取垃圾文件", {
+ settled: G7,
+ skeletonHtml: () => N2("正在读取垃圾文件", {
cards: !0,
className: "catalog-skeleton postercard-skeleton"
}),
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function hze() {
- X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => j8(e, t, Z.appSettings, n), W(M8(SLe(location, Z.appSettings, A8.rollSeed))), X.searchValueSnapshot = {
+function _ze() {
+ X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => A8(e, t, Z.appSettings, n), W(j8(wLe(location, Z.appSettings, k8.rollSeed))), X.searchValueSnapshot = {
text: "",
scrollLeft: 0
}, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = L("#q")) => {
@@ -82597,58 +82610,58 @@ function hze() {
text: t.value,
scrollLeft: t.scrollLeft || 0
}, r = e || (n.text ? n : X.searchValueSnapshot);
- X.cancelSearchDissolve(), X.cancelSearchDissolve = Zs(t, t.parentElement, r), X.searchValueSnapshot = {
+ X.cancelSearchDissolve(), X.cancelSearchDissolve = Xs(t, t.parentElement, r), X.searchValueSnapshot = {
text: "",
scrollLeft: 0
};
};
}
-function gze() {
- K8.handler(L("#wallBtn"), "onclick", () => {
- F5(!1, !0);
- let e = p5(), t = {
- ...u5.activeFilterState(),
- jav: d7() ? "1" : ""
+function vze() {
+ G8.handler(L("#wallBtn"), "onclick", () => {
+ P5(!1, !0);
+ let e = f5(), t = {
+ ...l5.activeFilterState(),
+ jav: u7() ? "1" : ""
};
- e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(Kxe(void 0, t));
+ e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(Jxe(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) => BI(e, t),
- displayName: (e, t) => zI(e, t),
- tagLabel: (e) => Rl(e)
+ titleHtml: (e, t) => zI(e, t),
+ displayName: (e, t) => RI(e, t),
+ tagLabel: (e) => Ll(e)
}, X.gridActions = {
wallPlayer: async (e, t, n) => {
- let r = await d8(d9.stageHost);
+ let r = await u8(u9.stageHost);
return n.throwIfAborted(), r.mountWallPlayer(e, t, n);
},
- wallDetails: E7,
- open: (e, t) => rze(e, t),
- openResource: (e, t) => f8()?.miniplayerTakesCard(e) ? f8().miniplayerPlay(e.id) : nze(e, t),
- openShort: (e) => f8()?.miniplayerTakesCard(e) ? f8().miniplayerPlay(e.id) : x9(e.id),
- openShorts: () => x9(),
- openMix: (e, t) => Dze(e, e, !0, t),
- openEntity: (e, t) => T5(e, t),
- openUnowned: () => w7({ owner: "none" }),
+ wallDetails: T7,
+ open: (e, t) => aze(e, t),
+ openResource: (e, t) => d8()?.miniplayerTakesCard(e) ? d8().miniplayerPlay(e.id) : ize(e, t),
+ openShort: (e) => d8()?.miniplayerTakesCard(e) ? d8().miniplayerPlay(e.id) : b9(e.id),
+ openShorts: () => b9(),
+ openMix: (e, t) => kze(e, e, !0, t),
+ openEntity: (e, t) => w5(e, t),
+ openUnowned: () => C7({ owner: "none" }),
toggleTag: (e) => {
- A7((t) => {
+ k7((t) => {
t.tag = X.tagPressed(t.tag, e) ? "" : e;
});
},
- toggleSelection: (e, t) => I5(e, t),
- watchLater: (e, t) => ize(e, t),
- rate: (e, t, n, r) => oze(e, t, n, r),
- resourceOperation: (e, t) => aze(e, t),
- mixRelated: (e) => T7(e),
- canFlip: () => !$l && !o9() && !window.__scrolling && !X.reduceMotion()
+ toggleSelection: (e, t) => F5(e, t),
+ watchLater: (e, t) => oze(e, t),
+ rate: (e, t, n, r) => cze(e, t, n, r),
+ resourceOperation: (e, t) => sze(e, t),
+ mixRelated: (e) => w7(e),
+ canFlip: () => !Ql && !a9() && !window.__scrolling && !X.reduceMotion()
}, X.topsQueryParams = (e, t = 0) => {
let n = new URLSearchParams({
n: "60",
seed: U.seed || ""
});
- return t && n.set("page", String(t)), d7() && n.set("jav", "1"), e.type === "home" && U.state && n.set("state", U.state), e.type === "home" && U.folder && (n.set("folder", U.folder), U.folder_recursive && n.set("folder_recursive", U.folder_recursive)), n;
+ return t && n.set("page", String(t)), u7() && n.set("jav", "1"), e.type === "home" && U.state && n.set("state", U.state), e.type === "home" && U.folder && (n.set("folder", U.folder), U.folder_recursive && n.set("folder_recursive", U.folder_recursive)), n;
}, X.facetCountsSeq = 0, X.VIEW_PILLS = [
{
k: "",
@@ -82669,38 +82682,38 @@ function gze() {
], X.catalogViews = () => X.VIEW_PILLS.map((e) => ({
...e,
href: e.k ? On[e.k] : "/"
- })), X.TAGS_FIRST = 26, K8.listen(L("#catalogFilter"), "click", (e) => {
+ })), X.TAGS_FIRST = 26, G8.listen(L("#catalogFilter"), "click", (e) => {
let t = e.target.closest?.("[data-catalog-view]");
- t && !e.defaultPrevented && (e.preventDefault(), N7().setView(t.dataset.catalogView));
+ t && !e.defaultPrevented && (e.preventDefault(), M7().setView(t.dataset.catalogView));
}), X.catalogOnScreen = () => L("#index").hidden && L("#stats").hidden, X.COMBO_LABELS = {
creator: "创作者",
studio: "厂牌",
owner: "归属"
}, X.hideCatalogCombo = () => {
- X.catalogFilterProps && M7({ comboHidden: !0 });
+ X.catalogFilterProps && j7({ comboHidden: !0 });
};
}
-function _ze() {
+function yze() {
X.junkQueueHelpers = { badgeHtml: (e, t) => Z.srcBadge(e, t) }, X.junkQueueActions = {
navigate: (e) => {
- $l && F5(!1, !0), Q.route(e);
+ Ql && P5(!1, !0), Q.route(e);
},
- toggleSelection: (e, t) => I5(e, t),
- open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : v9(e.id, !0, null, t),
+ toggleSelection: (e, t) => F5(e, t),
+ open: (e, t) => e.junk_kind === "image" ? window.open("/photo?id=" + e.id, "_blank", "noopener") : _9(e.id, !0, null, t),
reveal: async (e) => {
try {
return await Tn("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e.id })
- }), A8.toast({ text: "已在资源管理器中显示" }), "";
+ }), k8.toast({ text: "已在资源管理器中显示" }), "";
} catch (e) {
- return u5.sourceHint(e.message);
+ return l5.sourceHint(e.message);
}
},
- operate: (e, t) => pze(e, t)
+ operate: (e, t) => hze(e, t)
};
}
-X.controller = new ELe();
+X.controller = new OLe();
// src/application/preferences.js
var Z = {
sourceOnline: void 0,
@@ -82723,8 +82736,8 @@ var Z = {
emptyState: void 0,
CENSOR_KEY: void 0
};
-async function r9() {
- let e = K8;
+async function n9() {
+ let e = G8;
try {
let t = await Sr(e.signal);
if (!e.isActive) return Z.sourceOnline;
@@ -82734,18 +82747,18 @@ async function r9() {
if (!e.isActive) return Z.sourceOnline;
Z.sourceOnline = {}, Z.sourceProblems = {};
}
- return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), eze(), Z.sourceOnline;
+ return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), nze(), Z.sourceOnline;
}
-function i9() {
+function r9() {
let e = Q.surfacePath();
- if (!jn(e) || e === "/junk-files") return G7();
+ if (!jn(e) || e === "/junk-files") return W7();
let t = Z.nextCatalogLoad();
- return Fp(C7(), {
+ return Pp(S7(), {
replace: !0,
- state: Pp.navigation.location.state
+ state: Np.navigation.location.state
}), t;
}
-function vze(e) {
+function bze(e) {
if (e === "local") return {
kind: "glyph",
name: "hard-drive"
@@ -82754,7 +82767,7 @@ function vze(e) {
kind: "glyph",
name: "rss"
};
- let t = vs[e];
+ let t = _s[e];
return t ? t.startsWith("data:") ? {
kind: "image",
src: t
@@ -82766,8 +82779,8 @@ function vze(e) {
cost: "free"
};
}
-function a9(e, t) {
- let n = (e, t = (e) => e.label || Rl(e.k)) => (e || []).map((e) => ({
+function i9(e, t) {
+ let n = (e, t = (e) => e.label || Ll(e.k)) => (e || []).map((e) => ({
value: String(e.k),
label: t(e),
n: e.n ?? null
@@ -82777,7 +82790,7 @@ function a9(e, t) {
value: e.k,
label: nr[e.k] || e.k,
n: e.n ?? null,
- dot: vze(e.k),
+ dot: bze(e.k),
...Z.sourceOffline(e.k) ? { offline: Z.OFFLINE_HINT } : {}
})),
regions: n(e.regions),
@@ -82786,29 +82799,29 @@ function a9(e, t) {
creators: n(r, (e) => nn("creator", e.k)),
tags: n(e.tags),
tech: n(e.tech),
- followTags: n(e.follow_tags, (e) => Rl(e.k)),
+ followTags: n(e.follow_tags, (e) => Ll(e.k)),
duration: !!e.stats?.duration
};
}
-async function yze(e = !1) {
- if (e && (document.hidden || !jn(decodeURIComponent(location.pathname)) || d9.stageOpen() || d9.immerseOpen() || $l || Zl.size || document.activeElement === L("#q"))) return !1;
+async function xze(e = !1) {
+ if (e && (document.hidden || !jn(decodeURIComponent(location.pathname)) || u9.stageOpen() || u9.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;
if (t === "skip") return;
if (e === "/playlists") {
- O5();
+ D5();
return;
}
let n = t === "reopen" ? e : "/stats";
- pm(), n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, Pp.navigation.location.state) : Q.navigatePath(n);
+ fm(), n === e ? Q.navigatePath(location.pathname + location.search + location.hash, !0, Np.navigation.location.state) : Q.navigatePath(n);
} else if (L("#index").hidden) {
- U.sort = "seed", U.dir = "", U.seed = A8.rollSeed(), Cu(), I8(), M7({ refreshing: !0 });
+ U.sort = "seed", U.dir = "", U.seed = k8.rollSeed(), Su(), F8(), j7({ refreshing: !0 });
try {
- pm();
- let e = i9();
- await null, await Promise.all([e, B7()]);
+ fm();
+ let e = r9();
+ await null, await Promise.all([e, z7()]);
} finally {
- M7({ refreshing: !1 });
+ j7({ refreshing: !1 });
}
return e || window.scrollTo({
top: 0,
@@ -82816,90 +82829,90 @@ async function yze(e = !1) {
}), !0;
}
}
-function o9() {
+function a9() {
return document.body.classList.contains("censor");
}
-function s9(e) {
+function o9(e) {
document.body.classList.toggle("censor", e), Z.settingsStore.notify();
}
-function c9(e) {
- localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), s9(e), e && Pl();
+function s9(e) {
+ localStorage.setItem(Z.CENSOR_KEY, e ? "1" : "0"), o9(e), e && Nl();
}
-function l9() {
- return s1(localStorage.getItem("peach.sfw-shortcut")) || s1("Shift+KeyS");
+function c9() {
+ return o1(localStorage.getItem("peach.sfw-shortcut")) || o1("Shift+KeyS");
}
-function bze(e) {
- e ? localStorage.setItem(a1, c1(e)) : localStorage.removeItem(a1), Z.settingsStore.notify();
+function Sze(e) {
+ e ? localStorage.setItem(i1, s1(e)) : localStorage.removeItem(i1), Z.settingsStore.notify();
}
-function xze(e) {
+function Cze(e) {
localStorage.setItem("peach.high-contrast", String(e)), document.documentElement.classList.toggle("board-high-contrast", e), Z.settingsStore.notify();
}
-function u9(e) {
- return jc(e, { drag: !0 });
+function l9(e) {
+ return Ac(e, { drag: !0 });
}
-function Sze() {
- ["#nrow", "#count"].forEach((e) => u9(L(e))), document.querySelectorAll(".tier,.srow").forEach(u9);
+function wze() {
+ ["#nrow", "#count"].forEach((e) => l9(L(e))), document.querySelectorAll(".tier,.srow").forEach(l9);
}
-function Cze() {
+function Tze() {
let e = new URLSearchParams(location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function wze() {
+function Eze() {
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 = $j(), Z.appSettings = Z.settingsStore.value, Zt(Z.appSettings.performerNameLanguage), Z.saveSettings = () => Z.settingsStore.save(), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`), Qo(Z.appSettings.uiSounds), is(), rM(), Ile(), OM(), jM(), MM(), 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 = Qj(), 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(), nM(), Lle(), DM(), AM(), jM(), 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), H5.syncPageTitle(location.href), X.barsRendered = "", B7();
+ Zt(Z.appSettings.performerNameLanguage), V5.syncPageTitle(location.href), X.barsRendered = "", z7();
},
- theme: () => rM(),
+ theme: () => nM(),
uiSounds: () => {
- Qo(Z.appSettings.uiSounds), Z.appSettings.uiSounds && $o("toggle-on");
+ Zo(Z.appSettings.uiSounds), Z.appSettings.uiSounds && Qo("toggle-on");
},
- glowFrame: () => AM(),
+ glowFrame: () => kM(),
glow: () => {
- AM(), jM();
+ kM(), AM();
},
batchSize: () => {
- location.pathname === "/" && G7();
+ location.pathname === "/" && W7();
},
defaultSort: () => {
- U.sort = Z.appSettings.defaultSort, U.dir = Nj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Cu(), location.pathname === "/" && i9();
+ U.sort = Z.appSettings.defaultSort, U.dir = Mj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && r9();
},
sortDirection: () => {
- U.dir = Nj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Cu(), location.pathname === "/" && i9();
+ U.dir = Mj(U.sort, Z.appSettings.defaultSort, Z.appSettings.defaultSortDirection), Su(), location.pathname === "/" && r9();
},
hoverDelay: () => {
Z.appSettings.hoverDelaySeconds || document.querySelectorAll("[data-previewing],[data-longhover]").forEach((e) => {
- Il(e, "previewing", !1), Il(e, "longhover", !1);
+ Fl(e, "previewing", !1), Fl(e, "longhover", !1);
}), document.documentElement.style.setProperty("--hover-delay", `${Z.appSettings.hoverDelaySeconds}s`);
},
- seekSeconds: () => n9(),
- groupCollapse: () => _7(),
- feedAutoScroll: () => QLe(),
- feedLimit: () => c5(),
- feedCompilations: () => c5(),
+ seekSeconds: () => t9(),
+ groupCollapse: () => g7(),
+ feedAutoScroll: () => eRe(),
+ feedLimit: () => s5(),
+ feedCompilations: () => s5(),
miniplayer: () => {
- Z.appSettings.miniplayer || f8()?.closeMiniplayer();
+ Z.appSettings.miniplayer || d8()?.closeMiniplayer();
},
javImage: () => {
- oo(document, Z.appSettings.javImage), n9(), document.querySelectorAll("img[data-jav-image].cover").forEach(pl), Eze();
+ ao(document, Z.appSettings.javImage), t9(), document.querySelectorAll("img[data-jav-image].cover").forEach(fl), Oze();
},
- searchHistoryLimit: () => Sp(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
+ searchHistoryLimit: () => xp(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {
- ...Object.fromEntries(Object.entries(vs).map(([e, t]) => [e, t.startsWith("data:") ? `<img class="source-icon" src="${t}" alt="">` : R(t)])),
+ ...Object.fromEntries(Object.entries(_s).map(([e, t]) => [e, t.startsWith("data:") ? `<img class="source-icon" src="${t}" alt="">` : R(t)])),
online: R("rss")
}, Z.srcBadge = (e, t, n) => {
let r = `${nr[e] || e}${t === "metered" ? " · 计费" : ""}`;
return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${z(r)}" aria-label="${z(r)}">` + (Z.SRCICON[e] || "") + "</span>";
- }, Z.emptyState = Gs;
+ }, Z.emptyState = Ws;
}
-function Tze() {
- Z.CENSOR_KEY = "peach-censor", s9(localStorage.getItem(Z.CENSOR_KEY) === "1");
+function Dze() {
+ Z.CENSOR_KEY = "peach-censor", o9(localStorage.getItem(Z.CENSOR_KEY) === "1");
}
// src/application/media.js
-var d9 = {
+var u9 = {
total: void 0,
facets: void 0,
stageHost: void 0,
@@ -82910,18 +82923,18 @@ var d9 = {
immerseOpen: void 0,
requestedImmerseId: void 0
};
-function f9() {
+function d9() {
let e = Number(new URLSearchParams(location.search).get("t"));
return Number.isFinite(e) && e > 0 ? {
time: e,
autoplay: !1
} : null;
}
-function p9() {
- return f8()?.exit() || Promise.resolve();
+function f9() {
+ return d8()?.exit() || Promise.resolve();
}
-function m9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
- Q.queueOpenRequest !== r && T9(), f8()?.dispose({ miniplayer: n }), W({
+function p9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null } = {}) {
+ Q.queueOpenRequest !== r && w9(), d8()?.dispose({ miniplayer: n }), W({
activeQueue: null,
pendingQueueRoute: null,
presentedItem: null
@@ -82929,15 +82942,15 @@ function m9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null
detailOriginAnchor: null,
detailOriginAbove: !1,
detailReturnNeedsRestore: !1
- }), x7(), e && Q.route(ru || "/");
+ }), b7(), e && Q.route(nu || "/");
}
-function Eze() {
- f8()?.repaintPoster();
+function Oze() {
+ d8()?.repaintPoster();
}
-function h9(e, t, n, r, i = null, a = {}) {
+function m9(e, t, n, r, i = null, a = {}) {
t = +t;
- let o = su?.kind === e && (e === "playlist" ? su.playlistId : su.seedId) === t;
- r && !o && W({ detailReturnPath: location.pathname + location.search }), r && Gf();
+ let o = ou?.kind === e && (e === "playlist" ? ou.playlistId : ou.seedId) === t;
+ r && !o && W({ detailReturnPath: location.pathname + location.search }), r && Wf();
let s = e === "playlist" ? {
kind: e,
playlistId: t,
@@ -82948,38 +82961,38 @@ function h9(e, t, n, r, i = null, a = {}) {
fresh: !o
};
if (a.autoplay && (s.autoplay = !0), r) {
- T9();
+ w9();
let e = Q.queueOpenRequest = {
- seq: Pp.navigation.seq,
+ seq: Np.navigation.seq,
cancelled: !1
};
- Q.requestedQueue = () => v9(n == null ? null : +n, !1, s, i, !0, e), W({ queueOpens: hu + 1 });
- } else return v9(n == null ? null : +n, !1, s, i, r);
+ Q.requestedQueue = () => _9(n == null ? null : +n, !1, s, i, !0, e), W({ queueOpens: mu + 1 });
+ } else return _9(n == null ? null : +n, !1, s, i, r);
}
-function Dze(e, t = e, n = !0, r = null) {
- return h9("mix", e, t, n, r);
+function kze(e, t = e, n = !0, r = null) {
+ return m9("mix", e, t, n, r);
}
-function Oze(e, t = e, n = !0, r = null) {
- return h9("editions", e, t, n, r);
+function Aze(e, t = e, n = !0, r = null) {
+ return m9("editions", e, t, n, r);
}
-function kze(e, t = e, n = !0, r = null) {
- return h9("parts", e, t, n, r);
+function jze(e, t = e, n = !0, r = null) {
+ return m9("parts", e, t, n, r);
}
-function g9(e, t = null, n = !0) {
- return h9("playlist", e, t, n);
+function h9(e, t = null, n = !0) {
+ return m9("playlist", e, t, n);
}
-function _9() {
+function g9() {
return !!L("#grid").querySelector("[data-id],[data-mix-seed]") || !!document.querySelector("[data-video-wall]") || !L("#index").hidden || !L("#stats").hidden;
}
-async function v9(e, t = !0, n = null, r = null, i = !1, a = null) {
+async function _9(e, t = !0, n = null, r = null, i = !1, a = null) {
if (a?.cancelled) return;
- if (a || T9(), t && !n) {
- W({ detailReturnPath: location.pathname + location.search }), E9("/assets/" + +e, "item", () => v9(e, !1, null, r));
+ if (a || w9(), t && !n) {
+ W({ detailReturnPath: location.pathname + location.search }), T9("/assets/" + +e, "item", () => _9(e, !1, null, r));
return;
}
- Pl(), e = e == null ? null : +e;
- let o = r?.isConnected ? r : iu?.isConnected ? iu : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : au, c = _9(), l = ou || !t && !c, u = Yl.type === "item" ? Xl : u5.cloneBarsContext(p5());
- t ? W({ detailReturnPath: location.pathname + location.search }) : i || W({ detailReturnPath: Jf() || ru }), t && Gf(), f8()?.showing() !== "item" && m9(!1, !0, {
+ Nl(), e = e == null ? null : +e;
+ let o = r?.isConnected ? r : ru?.isConnected ? ru : null, s = r?.isConnected ? r.getBoundingClientRect().top + r.getBoundingClientRect().height / 2 > window.innerHeight / 2 : iu, c = g9(), l = au || !t && !c, u = Jl.type === "item" ? Yl : l5.cloneBarsContext(f5());
+ t ? W({ detailReturnPath: location.pathname + location.search }) : i || W({ detailReturnPath: qf() || nu }), t && Wf(), d8()?.showing() !== "item" && p9(!1, !0, {
miniplayer: !1,
preserveQueueRequest: a
}), W({
@@ -82990,172 +83003,172 @@ async function v9(e, t = !0, n = null, r = null, i = !1, a = null) {
kind: n.kind,
seedId: n.seedId,
playlistId: n.playlistId
- } }), W({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, Yf("item"));
- let d = await d8(d9.stageHost);
+ } }), W({ pendingQueueRoute: n && i ? `${n.kind}=${n.kind === "playlist" ? n.playlistId : n.seedId}` : null }), t && !n && Q.route("/assets/" + e, !1, Jf("item"));
+ let d = await u8(u9.stageHost);
if (a?.cancelled) return;
let f = a ? {
- ...d9.itemDetailActions,
+ ...u9.itemDetailActions,
present: (e, t) => {
- a.cancelled || d9.itemDetailActions.present(e, t);
+ a.cancelled || u9.itemDetailActions.present(e, t);
},
redirect: (e) => {
- a.cancelled || d9.itemDetailActions.redirect(e);
+ a.cancelled || u9.itemDetailActions.redirect(e);
}
- } : d9.itemDetailActions;
+ } : u9.itemDetailActions;
await d.open({
kind: "item",
id: e,
queue: n,
relatedLimit: Z.appSettings.relatedLimit > 0 ? +Z.appSettings.relatedLimit : 0,
- helpers: d9.itemDetailHelpers,
+ helpers: u9.itemDetailHelpers,
actions: f,
grid: {
helpers: X.gridHelpers,
actions: X.gridActions
},
- layout: $7(),
- selectMode: $l,
- selected: new Set(Zl),
+ layout: Q7(),
+ selectMode: Ql,
+ selected: new Set(Xl),
seekSeconds: Z.appSettings.seekSeconds,
- resume: t || e == null ? null : f9()
- }), x7();
+ resume: t || e == null ? null : d9()
+ }), b7();
}
-async function y9() {
- let e = u5.cloneBarsContext(Xl), t = ru || "/", n = ou;
- await p9(), m9(!1, !1, { miniplayer: !1 }), W({ detailReturnBarsContext: null }), Kf(), W({ barsContext: e || {
+async function v9() {
+ let e = l5.cloneBarsContext(Yl), t = nu || "/", n = au;
+ await f9(), p9(!1, !1, { miniplayer: !1 }), W({ detailReturnBarsContext: null }), Gf(), W({ barsContext: e || {
type: "home",
filters: U
- } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? W({ pageOpens: mu + 1 }) : (B7(), location.pathname === "/playlists" && O5()));
+ } }), n && Q.managedPagePath(new URL(t, location.href).pathname) ? Q.navigatePath(t) : (Q.route(t), n ? W({ pageOpens: pu + 1 }) : (z7(), location.pathname === "/playlists" && D5()));
}
-async function b9(e, t = !0) {
+async function y9(e, t = !0) {
if (t) {
- W({ detailReturnPath: location.pathname + location.search }), E9("/works/" + encodeURIComponent(e), "jav", () => b9(e, !1));
+ W({ detailReturnPath: location.pathname + location.search }), T9("/works/" + encodeURIComponent(e), "jav", () => y9(e, !1));
return;
}
- let n = Pp.navigation.seq, r = u5.cloneBarsContext(p5()), i = !_9(), a = Jf() || (i ? "/jav?tab=discover" : ru) || "/jav?tab=discover";
- f8()?.showing() !== "jav" && m9(!1, !0, { miniplayer: !1 }), W({
+ let n = Np.navigation.seq, r = l5.cloneBarsContext(f5()), i = !g9(), a = qf() || (i ? "/jav?tab=discover" : nu) || "/jav?tab=discover";
+ d8()?.showing() !== "jav" && p9(!1, !0, { miniplayer: !1 }), W({
detailReturnPath: a,
detailReturnBarsContext: r,
detailReturnNeedsRestore: i
- }), Pl();
- let [o, s] = await Promise.all([d8(d9.stageHost), B("/healthz")]);
- Pp.navigation.seq === n && (await o.open({
+ }), Nl();
+ let [o, s] = await Promise.all([u8(u9.stageHost), B("/healthz")]);
+ Np.navigation.seq === n && (await o.open({
kind: "jav",
code: e,
readOnly: !!s.ledger_read_only,
actions: {
- close: () => void y9(),
+ close: () => void v9(),
navigate: (e) => Q.navigatePath(e),
canonicalCode: (t) => {
- Pp.navigation.seq === n && t && t !== e && Fp("/works/" + encodeURIComponent(t) + location.search + location.hash, {
+ Np.navigation.seq === n && t && t !== e && Pp("/works/" + encodeURIComponent(t) + location.search + location.hash, {
replace: !0,
- state: Pp.navigation.location.state
+ state: Np.navigation.location.state
});
},
- openTag: (e) => A7((t) => {
+ openTag: (e) => k7((t) => {
t.tag = e;
}),
- receipt: (e) => A8.toast({ text: e })
+ receipt: (e) => k8.toast({ text: e })
}
- }), x7());
+ }), b7());
}
-async function x9(e = null, t = !0) {
- t ? (d9.requestedImmerseId = e, Q.route("/immerse")) : (f8()?.closeMiniplayer(), await (await mLe(d9.immerseHost)).open(e));
+async function b9(e = null, t = !0) {
+ t ? (u9.requestedImmerseId = e, Q.route("/immerse")) : (d8()?.closeMiniplayer(), await (await gLe(u9.immerseHost)).open(e));
}
-function Aze() {
- d9.total = 0, d9.facets = null, d9.stageHost = {
+function Mze() {
+ u9.total = 0, u9.facets = null, u9.stageHost = {
player: {
settings: () => Z.appSettings,
saveSettings: () => Z.saveSettings(),
- toast: (e, t) => A8.toast({ text: e }, t),
- loadSourceStatus: () => r9(),
+ toast: (e, t) => k8.toast({ text: e }, t),
+ loadSourceStatus: () => n9(),
offlineReason: (e) => Z.offlineReason(e)
},
sourceOffline: (e) => Z.sourceOffline(e),
expand: (e, t, n) => {
- e === "follow" ? F9(t, !0, n) : v9(t, !0);
+ e === "follow" ? P9(t, !0, n) : _9(t, !0);
},
- openItem: (e) => void v9(e)
- }, d9.stageOpen = () => !!f8()?.isOpen();
+ openItem: (e) => void _9(e)
+ }, u9.stageOpen = () => !!d8()?.isOpen();
}
-function jze() {
- d9.itemDetailHelpers = {
+function Nze() {
+ u9.itemDetailHelpers = {
badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),
- titleHtml: (e) => BI(e),
- displayName: (e) => zI(e),
+ titleHtml: (e) => zI(e),
+ displayName: (e) => RI(e),
javImage: () => Z.appSettings.javImage,
- tagLabel: (e) => Rl(e),
+ tagLabel: (e) => Ll(e),
isDurationTag: (e) => ar.has(e),
- tagCandidates: () => d9.facets && d9.facets.tags || [],
+ tagCandidates: () => u9.facets && u9.facets.tags || [],
sourceOffline: (e) => Z.sourceOffline(e),
offlineReason: (e) => Z.offlineReason(e),
- relatedSkeletonHtml: () => P2("正在读取推荐", {
+ relatedSkeletonHtml: () => N2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
}),
- mixRelated: (e) => T7(e),
- wireDrag: (e) => u9(e),
- wireDragReorder: (e, t) => ol(e, t)
- }, d9.itemDetailActions = {
- close: () => y9(),
+ mixRelated: (e) => w7(e),
+ wireDrag: (e) => l9(e),
+ wireDragReorder: (e, t) => al(e, t)
+ }, u9.itemDetailActions = {
+ close: () => v9(),
present: (e) => {
W({ presentedItem: e });
- let t = Xl;
+ let t = Yl;
W({ barsContext: {
type: "item",
id: e.id,
- filters: t?.type === "entity" ? { ...t.filters } : u5.emptyEntityFilters()
- } }), cu && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${cu}`, !1, Yf("item")), W({ pendingQueueRoute: null })), B7();
+ filters: t?.type === "entity" ? { ...t.filters } : l5.emptyEntityFilters()
+ } }), su && (Q.queueOpenRequest = null, Q.route(`/assets/${e.id}?${su}`, !1, Jf("item")), W({ pendingQueueRoute: null })), z7();
},
redirect: (e) => {
- let t = !!cu;
+ let t = !!su;
e.kind === "follow" ? (Q.queueOpenRequest = null, W({
pendingQueueRoute: null,
- followDetailReturnPath: ru || "/"
- }), Q.route(`/posts/${e.id}`, !t, Yf("follow")), F9(e.id, !1, null, !0)) : e.kind === "item" ? v9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? O9("/playlists") : O5() : m9(!1);
+ followDetailReturnPath: nu || "/"
+ }), Q.route(`/posts/${e.id}`, !t, Jf("follow")), P9(e.id, !1, null, !0)) : e.kind === "item" ? _9(e.id, !0) : e.kind === "playlists" ? t || location.pathname !== "/playlists" ? D9("/playlists") : D5() : p9(!1);
},
- openQueueItem: (e, t, n = !0) => void h9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
+ openQueueItem: (e, t, n = !0) => void m9(e.kind, e.kind === "playlist" ? e.playlistId : e.seedId, t, n, null, { autoplay: e.autoplay }),
reopen: () => {
- let e = lu;
+ let e = cu;
if (!e) return;
- let t = su;
- t ? h9(t.kind, t.kind === "playlist" ? t.playlistId : t.seedId, e.id, !1) : v9(e.id, !1);
+ let t = ou;
+ t ? m9(t.kind, t.kind === "playlist" ? t.playlistId : t.seedId, e.id, !1) : _9(e.id, !1);
},
- checkSource: async (e) => (await r9())[e] !== !1,
+ checkSource: async (e) => (await n9())[e] !== !1,
openSavedFollow: () => {
- $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followDurMin = $.followDurMax = 0, $.followFilter = "saved", O9(k9());
+ $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.followDurMin = $.followDurMax = 0, $.followFilter = "saved", D9(O9());
},
- openEntity: (e, t) => T5(e, t),
- openUnowned: () => w7({ owner: "none" }),
- openRegion: (e) => w7({ region: e || "none" }),
- openTag: (e) => A7((t) => {
+ openEntity: (e, t) => w5(e, t),
+ openUnowned: () => C7({ owner: "none" }),
+ openRegion: (e) => C7({ region: e || "none" }),
+ openTag: (e) => k7((t) => {
t.tag = e;
}),
- addToPlaylist: (e) => fRe(e),
- saveMix: (e) => dRe(e),
- editPlaylist: () => O9("/playlists"),
- openPlaylists: () => O9("/playlists"),
- reveal: (e) => b5(e),
- sync: (e) => rRe(e),
+ addToPlaylist: (e) => mRe(e),
+ saveMix: (e) => pRe(e),
+ editPlaylist: () => D9("/playlists"),
+ openPlaylists: () => D9("/playlists"),
+ reveal: (e) => y5(e),
+ sync: (e) => aRe(e),
trashChanged: async (e, t) => {
- U.state === "ads" && (t || e === "trash") && (t || (Kf(), m9(!0, !1, { miniplayer: !1 })), await G7());
+ U.state === "ads" && (t || e === "trash") && (t || (Gf(), p9(!0, !1, { miniplayer: !1 })), await W7());
},
- toast: (e, { undo: t } = {}) => A8.actionReceipt(e, { undo: t }),
- failure: (e, t) => A8.actionFailure(e, t)
- }, d9.immerseHost = {
+ toast: (e, { undo: t } = {}) => k8.actionReceipt(e, { undo: t }),
+ failure: (e, t) => k8.actionFailure(e, t)
+ }, u9.immerseHost = {
filters: () => U,
seekSeconds: () => Z.appSettings.seekSeconds,
sourceOffline: (e) => Z.sourceOffline(e),
- displayName: (e) => zI(e),
+ displayName: (e) => RI(e),
route: (e) => Q.route("/immerse?id=" + e, !0),
- closed: () => w7(),
- openItem: (e) => void v9(e),
- openEntity: (e, t) => T5(e, t),
- openUnowned: () => w7({ owner: "none" }),
- toast: (e, { undo: t } = {}) => A8.actionReceipt(e, { undo: t }),
- warn: (e) => A8.toast({ text: e }, { sound: "warning" }),
- failure: (e, t) => A8.actionFailure(e, t)
- }, d9.immerseOpen = () => !!h8()?.isOpen(), K8.handler(L("#immerseBtn"), "onclick", () => x9());
+ closed: () => C7(),
+ openItem: (e) => void _9(e),
+ openEntity: (e, t) => w5(e, t),
+ openUnowned: () => C7({ owner: "none" }),
+ toast: (e, { undo: t } = {}) => k8.actionReceipt(e, { undo: t }),
+ warn: (e) => k8.toast({ text: e }, { sound: "warning" }),
+ failure: (e, t) => k8.actionFailure(e, t)
+ }, u9.immerseOpen = () => !!m8()?.isOpen(), G8.handler(L("#immerseBtn"), "onclick", () => b9());
}
// src/application/navigation.js
var Q = {
@@ -83177,48 +83190,48 @@ var Q = {
queueOpenRequest: void 0,
initialOverlayOpened: void 0
};
-function S9() {
- let e = x8();
- e ? e.navChanged() : L("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(v7(e.dataset.nav))));
+function x9() {
+ let e = b8();
+ e ? e.navChanged() : L("#drawerScroll")?.querySelectorAll("[data-nav]").forEach((e) => e.setAttribute("aria-pressed", String(_7(e.dataset.nav))));
}
-function C9(e = {}) {
+function S9(e = {}) {
let t = Q.surfacePath();
- t !== q5.sidebarSurface && (q5.sidebarSurface = t, q5.sidebarProps = {
- ...q5.sidebarProps,
+ t !== K5.sidebarSurface && (K5.sidebarSurface = t, K5.sidebarProps = {
+ ...K5.sidebarProps,
content: null,
latest: null
- }), q5.sidebarProps = {
- ...q5.sidebarProps,
+ }), K5.sidebarProps = {
+ ...K5.sidebarProps,
...e
- }, x8()?.render(q5.sidebarProps);
+ }, b8()?.render(K5.sidebarProps);
}
-function w9() {
- C9(), S9(), b7();
+function C9() {
+ S9(), x9(), y7();
}
-function T9() {
+function w9() {
Q.queueOpenRequest && (Q.queueOpenRequest.cancelled = !0), Q.queueOpenRequest = null, Q.requestedQueue = null, W({ pendingQueueRoute: null });
}
-function E9(e, t, n) {
- T9(), Gf(), Q.requestedOverlay = {
+function T9(e, t, n) {
+ w9(), Wf(), Q.requestedOverlay = {
path: e,
open: n
- }, Q.route(e, !1, Yf(t));
+ }, Q.route(e, !1, Jf(t));
}
-function D9() {
- Q.surfaceEpoch++, X.barsRequestSeq++, H5.syncPageTitle(location.href), C9(), Kf();
+function E9() {
+ Q.surfaceEpoch++, X.barsRequestSeq++, V5.syncPageTitle(location.href), S9(), Gf();
}
-function O9(e) {
- Q.route(e), W({ pageOpens: mu + 1 });
+function D9(e) {
+ Q.route(e), W({ pageOpens: pu + 1 });
}
-function Mze() {
+function Pze() {
Q.routeMeta = (e) => {
- let t = tp(e);
+ let t = ep(e);
return t ? { route: t } : null;
- }, Q.routePathOf = (e, t) => Object.keys(ep).find((n) => ep[n][e] === t), Q.catalogPage = (e) => jn(e) || e === "/trash", Q.managedPagePath = (e) => {
- let t = tp(e);
- return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !Vf(e) && e !== "/immerse";
+ }, Q.routePathOf = (e, t) => Object.keys($f).find((n) => $f[n][e] === t), Q.catalogPage = (e) => jn(e) || e === "/trash", Q.managedPagePath = (e) => {
+ let t = ep(e);
+ return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !Bf(e) && e !== "/immerse";
}, Q.openRoutePath = (e) => {
- e === "/immerse" ? x9(Cze()) : e === "/follow" ? P9() : e === "/playlists" || Q.catalogPage(e) ? O9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? ARe() : e) : (F5(!1, !0), O9(z5({
+ e === "/immerse" ? b9(Tze()) : e === "/follow" ? N9() : e === "/playlists" || Q.catalogPage(e) ? D9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? MRe() : e) : (P5(!1, !0), D9(R5({
kind: e.slice(1),
q: "",
scope: "local",
@@ -83227,34 +83240,34 @@ function Mze() {
})));
};
}
-function Nze() {
+function Fze() {
Q.surfaceEpoch = 0, Q.surfacePath = () => decodeURIComponent(location.pathname), Q.surfaceRequests = null, Q.surfaceToken = (e) => ({
epoch: Q.surfaceEpoch,
path: e,
signal: Q.surfaceRequests?.signal
- }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (o5(e) || s5(), Cp(L("#stats"), L("#index")), !jn(e) && e !== "/trash" && q7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
- Q.surfaceEpoch++, X.barsRequestSeq++, Fp(e, {
+ }), Q.surfaceCurrent = (e) => e.epoch === Q.surfaceEpoch && Q.surfacePath() === e.path, Q.claimSurface = (e) => (a5(e) || o5(), Sp(L("#stats"), L("#index")), !jn(e) && e !== "/trash" && K7(), Q.surfaceRequests?.abort(), Q.surfaceRequests = new AbortController(), Q.surfaceEpoch++, Q.surfaceToken(e)), Q.route = (e, t = !1, n) => {
+ Q.surfaceEpoch++, X.barsRequestSeq++, Pp(e, {
replace: t,
state: n
- }), H5.syncPageTitle(e), queueMicrotask(() => {
- b7(), o7(), C9();
+ }), V5.syncPageTitle(e), queueMicrotask(() => {
+ y7(), a7(), S9();
});
}, Q.navigatePath = (e, t = !1, n) => {
- t ? Pp.replace(e, n) : Pp.push(e, n), queueMicrotask(() => {
- b7(), o7();
+ t ? Np.replace(e, n) : Np.push(e, n), queueMicrotask(() => {
+ y7(), a7();
});
}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;
}
// src/jobs.ts
-function Pze(e, t, n) {
+function Ize(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 Fze(e, t = 0, n = 0) {
- return n > 0 ? Pze(e, t, n) : Us(e);
+function Lze(e, t = 0, n = 0) {
+ return n > 0 ? Ize(e, t, n) : Hs(e);
}
-async function Ize(e) {
+async function Rze(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -83269,14 +83282,14 @@ async function Ize(e) {
await t(2e3);
}
}
-function Lze(e) {
- let t = e.note || ((e) => Bs(e, {
+function zze(e) {
+ let t = e.note || ((e) => zs(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || Us, r = e.progress || ((e, t, n) => Fze(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) => Lze(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;
- Ize({
+ Rze({
read: e.read,
active: () => !c && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -83325,25 +83338,25 @@ var $ = {
FOLLOW_MANAGE_TABS: void 0,
followSidebarFilters: void 0
};
-function Rze(e) {
+function Bze(e) {
let t = (e.results || []).filter((e) => !e.ok).length;
- A8.toast({ text: Ui(e) }, {
+ k8.toast({ text: Hi(e) }, {
warn: !!t,
timeout: t ? 8e3 : 6e3,
sound: t ? "warning" : "success",
action: {
label: "查看",
- run: () => P9(!0)
+ run: () => N9(!0)
}
});
}
-function k9() {
- return Aa(A9());
+function O9() {
+ return ka(k9());
}
-function zze() {
+function Vze() {
return $.controller.read();
}
-function A9() {
+function k9() {
return {
status: $.followFilter,
media: $.followMediaView,
@@ -83358,33 +83371,33 @@ function A9() {
seed: $.followSeed
};
}
-function j9(e) {
+function A9(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 Bze() {
- let e = hp(L("#stats"));
+function Hze() {
+ let e = mp(L("#stats"));
return e && e.path === "/follow" && e.host.isConnected ? e : null;
}
-function M9() {
- return !!Bze();
+function j9() {
+ return !!Hze();
}
-function N9(e) {
- M9() && Sp(L("#stats"), e);
+function M9(e) {
+ j9() && xp(L("#stats"), e);
}
-function Vze(e, t = {}) {
+function Uze(e, t = {}) {
return $.controller.route(e, t);
}
-function P9(e = !1) {
+function N9(e = !1) {
$.controller.enter(e);
}
-async function F9(e, t = !0, n = null, r = !1) {
+async function P9(e, t = !0, n = null, r = !1) {
if (t) {
- !location.pathname.startsWith("/posts/") && !r && W({ followDetailReturnPath: location.pathname + location.search }), E9(`/posts/${+e}`, "follow", () => F9(e, !1, n, r));
+ !location.pathname.startsWith("/posts/") && !r && W({ followDetailReturnPath: location.pathname + location.search }), T9(`/posts/${+e}`, "follow", () => P9(e, !1, n, r));
return;
}
- Pl(), e = +e;
+ Nl(), e = +e;
let i = !location.pathname.startsWith("/posts/");
- t && i && !r && W({ followDetailReturnPath: location.pathname + location.search }), !t && !r && W({ followDetailReturnPath: Jf() || "/follow" }), t && Gf(), f8()?.showing() !== "follow" && m9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, Yf("follow")), await (await d8(d9.stageHost)).open({
+ t && i && !r && W({ followDetailReturnPath: location.pathname + location.search }), !t && !r && W({ followDetailReturnPath: qf() || "/follow" }), t && Wf(), d8()?.showing() !== "follow" && p9(!1, !1, { miniplayer: !1 }), t && Q.route(`/posts/${e}`, !1, Jf("follow")), await (await u8(u9.stageHost)).open({
kind: "follow",
id: e,
mediaIndex: n,
@@ -83392,71 +83405,71 @@ async function F9(e, t = !0, n = null, r = !1) {
relatedLimit: Z.appSettings.relatedLimit > 0 ? +Z.appSettings.relatedLimit : 0,
helpers: $.followFeedHelpers,
actions: $.followDetailActions,
- resume: t ? null : f9()
- }), x7();
+ resume: t ? null : d9()
+ }), b7();
}
-async function Hze() {
- await p9(), m9(!1, !1, { miniplayer: !1 }), Kf(), Q.route(uu || "/follow"), !(u5.entityPageView && u5.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && M9() ? (zze(), N9({ view: A9() })) : W({ pageOpens: mu + 1 }));
+async function Wze() {
+ await f9(), p9(!1, !1, { miniplayer: !1 }), Gf(), Q.route(lu || "/follow"), !(l5.entityPageView && l5.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && j9() ? (Vze(), M9({ view: k9() })) : W({ pageOpens: pu + 1 }));
}
-function Uze(e) {
+function Gze(e) {
let t = document.createElement("div");
- return t.className = "peach-react", ac(e, () => {
+ return t.className = "peach-react", ic(e, () => {
e.textContent = "", e.append(t);
}), t;
}
-function Wze() {
- $.followFeedHelpers = Bl({
+function Kze() {
+ $.followFeedHelpers = zl({
wireDrag: (e) => {
- e && u9(e);
+ e && l9(e);
},
wireScroller: (e) => {
- e && jc(e);
+ e && Ac(e);
},
listSkeletonHtml: (e) => $.followContentSkeletonHtml(e),
- jobProgress: Lze
+ jobProgress: zze
}), $.followFeedActions = {
- loaded: (e) => Z5(e),
- openDetail: (e) => F9(e),
+ loaded: (e) => X5(e),
+ openDetail: (e) => P9(e),
openAuthor: (e) => Q.navigatePath(Pn("creator", e)),
- toggleSelection: (e, t) => vRe(e, t),
+ toggleSelection: (e, t) => bRe(e, t),
setImagesOnly: (e) => {
- Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), _5();
+ Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), g5();
},
setPhotoLayout: (e) => {
- bM(e), _5();
+ yM(e), g5();
},
- canFlip: () => !$l && !o9() && !window.__scrolling && !X.reduceMotion(),
- toast: (e, { undo: t } = {}) => A8.actionReceipt(e, { undo: t }),
- failure: (e, t) => A8.actionFailure(e, t),
- checkReport: (e) => Rze(e)
+ canFlip: () => !Ql && !a9() && !window.__scrolling && !X.reduceMotion(),
+ toast: (e, { undo: t } = {}) => k8.actionReceipt(e, { undo: t }),
+ failure: (e, t) => k8.actionFailure(e, t),
+ checkReport: (e) => Bze(e)
}, $.followFeedShell = {
skeleton: () => $.followSkeletonHtml("正在读取关注内容"),
ground: () => {
- f8()?.showing() !== "follow" && (Pl(), m9(!1), Y5(), !M9() && (Q.claimSurface(Q.surfacePath()), J5({ manage: !1 }), L("#stats").querySelector(".peach-react") && Cp(L("#stats")), L("#stats").replaceChildren()));
+ d8()?.showing() !== "follow" && (Nl(), p9(!1), J5(), !j9() && (Q.claimSurface(Q.surfacePath()), q5({ manage: !1 }), L("#stats").querySelector(".peach-react") && Sp(L("#stats")), L("#stats").replaceChildren()));
}
- }, $.followDetailActions = Jl({
- view: A9,
- adoptView: j9,
+ }, $.followDetailActions = ql({
+ view: k9,
+ adoptView: A9,
rememberReturn: (e) => W({ followDetailReturnPath: e }),
- close: () => void Hze(),
- open: (e, t, n) => void F9(e, !0, t, n),
- drawer: Z5,
+ close: () => void Wze(),
+ open: (e, t, n) => void P9(e, !0, t, n),
+ drawer: X5,
openAuthor: (e) => Q.navigatePath(Pn("creator", e))
}, {
- toast: (e, { undo: t } = {}) => A8.actionReceipt(e, { undo: t }),
- failure: A8.actionFailure,
+ toast: (e, { undo: t } = {}) => k8.actionReceipt(e, { undo: t }),
+ failure: k8.actionFailure,
canFlip: $.followFeedActions.canFlip
});
}
-function Gze() {
- $.controller = Na({
+function qze() {
+ $.controller = Ma({
location: () => location,
- view: A9,
- adoptView: j9,
+ view: k9,
+ adoptView: A9,
session: () => ({
- discoverySeed: _u,
- revision: vu,
- scrollY: yu
+ discoverySeed: gu,
+ revision: _u,
+ scrollY: vu
}),
writeSession: (e) => W({
...e.discoverySeed === void 0 ? {} : { followDiscoverySeed: e.discoverySeed },
@@ -83464,63 +83477,63 @@ function Gze() {
...e.scrollY === void 0 ? {} : { followScrollY: e.scrollY }
}),
preferences: () => ({
- selectMode: $l,
- selected: Ql,
- photoSize: mM(),
- photoLayout: hM(),
+ selectMode: Ql,
+ selected: Zl,
+ photoSize: pM(),
+ photoLayout: mM(),
imagesOnly: !!Z.appSettings.followImagesOnly
}),
- live: M9,
- push: N9,
+ live: j9,
+ push: M9,
route: (e) => {
- Q.route(e), hm("follow", {
- view: A9(),
- seed: _u,
- revision: vu
+ Q.route(e), mm("follow", {
+ view: k9(),
+ seed: gu,
+ revision: _u
});
},
- openPage: O9,
- rollSeed: () => Number(A8.rollSeed()),
+ openPage: D9,
+ rollSeed: () => Number(k8.rollSeed()),
enterSeed: () => Math.floor(Math.random() * 4294967295),
revealFeed: () => {
- Pl(), Y5(), J5({ manage: !1 });
+ Nl(), J5(), q5({ manage: !1 });
},
- syncPhotoWalls: _5,
+ syncPhotoWalls: g5,
scrollTop: () => {
- ym(() => location.pathname === "/follow", L("#stats").querySelector("[data-filter-frame]"));
+ vm(() => location.pathname === "/follow", L("#stats").querySelector("[data-filter-frame]"));
}
}, $.followFeedHelpers, $.followFeedActions), $.followFeedActions = $.controller.actions, $.followFeedProps = $.controller.props, $.followFeedShell.refresh = $.controller.refresh, $.followFeedShell.props = $.controller.props;
}
// src/application/lifecycle.js
-function Kze() {
- TDe(), $c(document), zo(document.documentElement, { variant: "page" }), zo(L("#drawerScroll")), K8.own(Xc()), Ga(document.body), X.homeHasFeed = YLe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, q5.sidebarProps = {
+function Jze() {
+ DDe(), Qc(document), Ro(document.documentElement, { variant: "page" }), Ro(L("#drawerScroll")), G8.own(Yc()), Wa(document.body), X.homeHasFeed = ZLe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, K5.sidebarProps = {
content: null,
filters: {},
latest: null
- }, q5.sidebarSurface = "", q5.sidebarCatalog = null, q5.sidebarContentSeq = 0, $.followFilter = "", $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.FOLLOW_FEED_SORTS = [
+ }, K5.sidebarSurface = "", K5.sidebarCatalog = null, K5.sidebarContentSeq = 0, $.followFilter = "", $.followAuthors = /* @__PURE__ */ new Set(), $.followProviders = /* @__PURE__ */ new Set(), $.followTags = /* @__PURE__ */ new Set(), $.followWorks = /* @__PURE__ */ new Set(), $.followMediaView = "videos", $.FOLLOW_FEED_SORTS = [
["new", "更新时间"],
["hot", "热度"],
["dur", "时长"]
], $.FOLLOW_RANDOM_SORT = "rand", $.followSort = "new", $.followDir = "desc", $.followSeed = 0, $.followDurMin = 0, $.followDurMax = 0;
}
// src/application/tutorial.js
-async function qze() {
- yU({ reopen: !0 });
+async function Yze() {
+ vU({ reopen: !0 });
}
-function Jze() {
+function Xze() {
let e = new URL(location.href), t = e.searchParams.get("onboarding") === "1";
- W({ cameFromSetup: t }), K8.handler(document.getElementById("tutorialBtn"), "onclick", () => yU()), yU({ invitation: !0 }), t && e.searchParams.delete("onboarding");
+ W({ cameFromSetup: t }), G8.handler(document.getElementById("tutorialBtn"), "onclick", () => vU()), vU({ invitation: !0 }), t && e.searchParams.delete("onboarding");
let n = e.searchParams.get("agentation");
try {
localStorage.removeItem("peach.agentation");
} catch {}
- n !== null && e.searchParams.delete("agentation"), e.href !== location.href && Fp(e, {
+ n !== null && e.searchParams.delete("agentation"), e.href !== location.href && Pp(e, {
replace: !0,
- state: Pp.navigation.location.state
+ state: Np.navigation.location.state
}), n === "on" && import("/dev/agentation.js").catch(() => {});
}
// src/react/search/recommendations.ts
-var Yze = [
+var Zze = [
{
kind: "performer",
label: "艺人与新作",
@@ -83571,15 +83584,15 @@ var Yze = [
size: 5
}
];
-function Xze() {
- return Yze.map((e) => ({
+function Qze() {
+ return Zze.map((e) => ({
...e,
items: [],
pending: !0
}));
}
-var Zze = (e) => e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10), Qze = (e, t = e.length) => t > 1 ? `${e[0]} 等 ${t} 人` : e[0] || "";
-async function $ze(e) {
+var $ze = (e) => e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10), eBe = (e, t = e.length) => t > 1 ? `${e[0]} 等 ${t} 人` : e[0] || "";
+async function tBe(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,
@@ -83590,13 +83603,13 @@ async function $ze(e) {
card: e,
href: t
}), r = (e) => {
- let { kind: t, name: r, coStarred: i, refs: a, total: o } = jo(e);
+ let { kind: t, name: r, coStarred: i, refs: a, total: o } = Ao(e);
if (!t) return n(e, void 0, "");
let s = t === "performer" ? a[0] : e.creator_entity, c = nn(t, r, s?.id);
- return n(e, void 0, i ? Qze([c], o) : c, yo(r, s ?? null, t));
+ return n(e, void 0, i ? eBe([c], o) : c, vo(r, s ?? null, t));
}, i = (e, t) => {
- let r = e.performer_refs || [], i = r.length ? r.map((e) => e.name) : String(e.performers || "").split(/[,,、;/]/).map((e) => e.trim()).filter(Boolean), a = i[0] ? yo(i[0], r[0] ?? null, "performer") : "";
- return n(e, t, Qze(i), a);
+ let r = e.performer_refs || [], i = r.length ? r.map((e) => e.name) : String(e.performers || "").split(/[,,、;/]/).map((e) => e.trim()).filter(Boolean), a = i[0] ? vo(i[0], r[0] ?? null, "performer") : "";
+ return n(e, t, eBe(i), a);
}, a = {};
a.asset = t.items ? (t.items.items || []).map(r) : null;
let o = t.jav ? t.jav.items || [] : null;
@@ -83614,7 +83627,7 @@ async function $ze(e) {
avatar_focus: n.avatar_focus,
rep: n.has_avatar ? n.rep : null,
works: [e],
- subtitle: r ? `最新作 ${r.code || "无番号"} · ${Zze(r.release_date)}` : "最新作未取得"
+ subtitle: r ? `最新作 ${r.code || "无番号"} · ${$ze(r.release_date)}` : "最新作未取得"
});
}
a.performer = o && [...s.values()];
@@ -83626,12 +83639,12 @@ async function $ze(e) {
credentials: /* @__PURE__ */ new Set()
};
for (let r of c.groups || []) {
- let i = ga(r);
+ let i = ha(r);
for (let a of ["videos", "images"]) {
if (a === "images" ? !i.has("image") : i.size && !i.has("video")) continue;
- let o = _a(r, a), s = n.sources.find((e) => e.id === o.source_id), c = hG(o, s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], n), l = a === "images" ? o.media_items?.find((e) => e.media_kind === "image") : void 0;
+ let o = ga(r, a), s = n.sources.find((e) => e.id === o.source_id), c = mG(o, s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], n), l = a === "images" ? o.media_items?.find((e) => e.media_kind === "image") : void 0;
(a === "images" ? t : e).push({
- value: dG(o),
+ value: uG(o),
id: o.id,
who: c.author,
whoAvatarHtml: c.avatar,
@@ -83653,10 +83666,10 @@ async function $ze(e) {
}, `/works/${encodeURIComponent(e.code)}`)) : null, a.author = t.authors ? (t.authors.items || []).map((e) => ({
value: e.k,
href: e.entity_id ? `/creators/${e.entity_id}` : `/follow?author=${encodeURIComponent(e.key)}`,
- avatarHtml: W8(e),
- subtitle: e.latest ? `最新更新于 ${xG({ published_at: e.latest })}` : "更新时间未取得"
+ avatarHtml: U8(e),
+ subtitle: e.latest ? `最新更新于 ${bG({ published_at: e.latest })}` : "更新时间未取得"
})) : null, {
- groups: Yze.map((e) => {
+ groups: Zze.map((e) => {
let t = a[e.kind] ?? [];
return {
...e,
@@ -83669,7 +83682,7 @@ async function $ze(e) {
};
}
// src/application/search-morph.js
-function eBe(e, t, n, r, i, a, o) {
+function nBe(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);
@@ -83684,70 +83697,70 @@ function eBe(e, t, n, r, i, a, o) {
});
}
// src/application/search.js
-var I9 = {
+var F9 = {
searchControl: void 0,
searchActions: void 0,
searchHelpers: void 0,
searchMorph: void 0,
searchMorphViewport: void 0
};
-function L9() {
- I9.searchControl?.close();
+function I9() {
+ F9.searchControl?.close();
}
-function tBe(e) {
- let t = e ? no({
+function rBe(e) {
+ let t = e ? to({
...e,
is_jav: !!e.code
}, Z.appSettings.javImage) : "";
- return t === "cover" ? Co(e, "big") : t ? `<img class="poster still" src="/poster?id=${e.id}&c=4" width="640" height="360" alt="" loading="lazy" data-drop="self">` : "<span class=\"nopic\">无预览</span>";
+ return t === "cover" ? So(e, "big") : t ? `<img class="poster still" src="/poster?id=${e.id}&c=4" width="640" height="360" alt="" loading="lazy" data-drop="self">` : "<span class=\"nopic\">无预览</span>";
}
-function R9() {
- I9.searchMorph?.cancel(), I9.searchMorph = null, L(".search").classList.remove("search-morphing");
+function L9() {
+ F9.searchMorph?.cancel(), F9.searchMorph = null, L(".search").classList.remove("search-morphing");
}
-function z9(e) {
+function R9(e) {
let t = L(".search"), n = L("#searchBtn");
if (t.classList.contains("open") === e) return;
- let r = !!I9.searchMorph, i = t.getBoundingClientRect(), a = parseFloat(getComputedStyle(t).paddingLeft);
- R9(), t.classList.remove("open");
+ let r = !!F9.searchMorph, i = t.getBoundingClientRect(), a = parseFloat(getComputedStyle(t).paddingLeft);
+ L9(), t.classList.remove("open");
let o = n.getBoundingClientRect();
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 = Wc();
+ 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(eBe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
+ let h = t.animate(nBe(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
duration: m.duration,
easing: "linear",
fill: "both"
});
- I9.searchMorph = h, K8.handler(h, "onfinish", () => {
- I9.searchMorph === h && R9();
+ F9.searchMorph = h, G8.handler(h, "onfinish", () => {
+ F9.searchMorph === h && L9();
});
}
-function nBe() {
- return d9.immerseOpen() ? h8().activeVideo() : f8()?.activeVideo() || null;
+function iBe() {
+ return u9.immerseOpen() ? m8().activeVideo() : d8()?.activeVideo() || null;
}
-function rBe(e) {
+function aBe(e) {
return !!e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);
}
-function iBe() {
- I9.searchControl = null, I9.searchActions = {
+function oBe() {
+ F9.searchControl = null, F9.searchActions = {
search: (e) => {
- X.rememberSearchValue(), m9(!1), U.q = e, Cu(), Q.route(U.jav === "1" ? C7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);
+ X.rememberSearchValue(), p9(!1), U.q = e, Su(), Q.route(U.jav === "1" ? S7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);
},
- openItem: (e) => v9(e),
- openEntity: (e, t) => T5(e, t),
+ openItem: (e) => _9(e),
+ openEntity: (e, t) => w5(e, t),
openPath: (e) => Q.route(e, !1),
openFollow: (e, t, n) => {
- $.followMediaView = t, F9(e, !0, n);
- }
- }, I9.searchHelpers = {
- pool: () => Yxe(U, Tn),
- recommendations: () => $ze(Tn),
- pendingRecommendations: Xze,
- rollPlaceholder: (e, t) => $s(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 ? $8(e) : tBe(e)}</span>`,
- present: (e) => ls(e),
- dismiss: (e) => us(e),
- wireScroller: (e) => jc(e),
+ $.followMediaView = t, P9(e, !0, n);
+ }
+ }, F9.searchHelpers = {
+ pool: () => Zxe(U, Tn),
+ recommendations: () => tBe(Tn),
+ pendingRecommendations: Qze,
+ 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 ? Q8(e) : rBe(e)}</span>`,
+ present: (e) => cs(e),
+ dismiss: (e) => ls(e),
+ wireScroller: (e) => Ac(e),
typed: (e) => {
let t = e.value;
!t && X.searchValueSnapshot.text ? X.clearSearchField(X.searchValueSnapshot) : (t && (X.cancelSearchDissolve(), X.cancelSearchDissolve = () => {}), X.rememberSearchValue(e));
@@ -83759,70 +83772,70 @@ function iBe() {
text: e.value,
scrollLeft: e.scrollLeft || X.searchValueSnapshot.scrollLeft
})
- }, bp("search", {
+ }, yp("search", {
input: L("#q"),
historyLimit: Z.appSettings.searchHistoryLimit,
- actions: I9.searchActions,
- helpers: I9.searchHelpers,
+ actions: F9.searchActions,
+ helpers: F9.searchHelpers,
expose: (e) => {
- I9.searchControl = e;
+ F9.searchControl = e;
}
}, {
container: L("#searchMenu"),
isCurrent: () => !0
- }), K8.listen(L("#q"), "beforeinput", (e) => {
+ }), G8.listen(L("#q"), "beforeinput", (e) => {
e.isComposing || X.rememberSearchValue(e.currentTarget);
- }), K8.listen(L("#q"), "scroll", (e) => {
+ }), G8.listen(L("#q"), "scroll", (e) => {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
- }), K8.listen(L("#q"), "pointerdown", (e) => {
+ }), G8.listen(L("#q"), "pointerdown", (e) => {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
});
}
-function aBe() {
- I9.searchMorph = null, I9.searchMorphViewport = innerWidth, K8.listen.bind(K8, window)("resize", () => {
- innerWidth !== I9.searchMorphViewport && (I9.searchMorphViewport = innerWidth, R9());
- }, { passive: !0 }), K8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", R9), K8.handler(L("#searchBtn"), "onclick", () => {
- z9(!0), L("#q").focus({ preventScroll: !0 });
- }), K8.handler(L("#searchBack"), "onclick", () => {
- z9(!1), L9(), L("#q").blur(), L("#searchBtn").focus({ preventScroll: !0 });
+function sBe() {
+ F9.searchMorph = null, F9.searchMorphViewport = innerWidth, G8.listen.bind(G8, window)("resize", () => {
+ innerWidth !== F9.searchMorphViewport && (F9.searchMorphViewport = innerWidth, L9());
+ }, { passive: !0 }), G8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", L9), G8.handler(L("#searchBtn"), "onclick", () => {
+ R9(!0), L("#q").focus({ preventScroll: !0 });
+ }), G8.handler(L("#searchBack"), "onclick", () => {
+ R9(!1), I9(), L("#q").blur(), L("#searchBtn").focus({ preventScroll: !0 });
});
let e = (e) => {
- e.target.closest(".search") || (e.type !== "focusin" || e.target !== document.body && e.target !== document.documentElement) && (L("#q").value || z9(!1), L9());
+ e.target.closest(".search") || (e.type !== "focusin" || e.target !== document.body && e.target !== document.documentElement) && (L("#q").value || R9(!1), I9());
};
- K8.listen(document, "pointerdown", e, !0), K8.listen(document, "focusin", e), K8.handler(L("#brandHome"), "onclick", (e) => {
- e.preventDefault(), w7();
- }), K8.listen(document, "keydown", (e) => {
+ G8.listen(document, "pointerdown", e, !0), G8.listen(document, "focusin", e), G8.handler(L("#brandHome"), "onclick", (e) => {
+ e.preventDefault(), C7();
+ }), G8.listen(document, "keydown", (e) => {
if (e.key === "Escape") {
- let t = v8();
+ let t = _8();
if (t?.isOpen()) {
t.close();
return;
}
if (!L("#searchMenu").hidden) {
- L9();
+ I9();
return;
}
- if (d9.immerseOpen()) {
- h8().close();
+ if (u9.immerseOpen()) {
+ m8().close();
return;
}
- if (d9.stageOpen()) {
- e.defaultPrevented || (e.preventDefault(), f8().requestEscape());
+ if (u9.stageOpen()) {
+ e.defaultPrevented || (e.preventDefault(), d8().requestEscape());
return;
}
if (L("#drawer").classList.contains("open")) {
- e7(!1);
+ $5(!1);
return;
}
- if ($l || Zl.size || Ql.size) {
- F5(!1, !0);
+ if (Ql || Xl.size || Zl.size) {
+ P5(!1, !0);
return;
}
return;
}
- if (rBe(e.target)) return;
- if (!e.defaultPrevented && mje(e, l9())) {
- e.preventDefault(), c9(!o9());
+ if (aBe(e.target)) return;
+ if (!e.defaultPrevented && gje(e, c9())) {
+ e.preventDefault(), s9(!a9());
return;
}
if (e.ctrlKey || e.metaKey || e.altKey) return;
@@ -83833,37 +83846,37 @@ function aBe() {
return;
}
}
- let t = nBe();
+ let t = iBe();
if (t) {
if (e.key === "t" || e.key === "T") {
- e.preventDefault(), f8()?.toggleTheater();
+ e.preventDefault(), d8()?.toggleTheater();
return;
}
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
- e.preventDefault(), rP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
+ e.preventDefault(), tP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
return;
}
if (e.key === " " || e.key === "k" || e.key === "K") {
- e.preventDefault(), nP(t);
+ e.preventDefault(), eP(t);
return;
}
if (e.key === "m" || e.key === "M") {
- e.preventDefault(), _N(t, ".vjs-mute-control");
+ e.preventDefault(), hN(t, ".vjs-mute-control");
return;
}
if (e.key === "f" || e.key === "F") {
- e.preventDefault(), _N(t, ".vjs-fullscreen-control");
+ e.preventDefault(), hN(t, ".vjs-fullscreen-control");
return;
}
if (e.key === "i" || e.key === "I") {
- e.preventDefault(), f8()?.toggleMiniplayer();
+ e.preventDefault(), d8()?.toggleMiniplayer();
return;
}
}
});
}
// src/history/links.ts
-function oBe(e) {
+function cBe(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;
@@ -83877,79 +83890,79 @@ function oBe(e) {
} catch {
return null;
}
- if (i.origin !== window.location.origin || n.startsWith("#") && Vf(i.pathname)) return null;
- let a = tp(i.pathname);
- return n.startsWith("#") && !a?.section || !Bf(i.pathname, i.search) && !a ? null : i.pathname + i.search + i.hash;
+ if (i.origin !== window.location.origin || n.startsWith("#") && Bf(i.pathname)) return null;
+ let a = ep(i.pathname);
+ return n.startsWith("#") && !a?.section || !zf(i.pathname, i.search) && !a ? null : i.pathname + i.search + i.hash;
}
// src/application/composition.js
-var B9 = {
+var z9 = {
shellActions: void 0,
routing: void 0
};
-function sBe() {
- let e = K8, t = (e) => {
- e.kind === "item" ? v9(e.id, !1) : e.kind === "jav" ? b9(e.code, !1) : e.kind === "follow" ? F9(e.id, !1) : h9(e.queue, e.key, e.item, !1);
+function lBe() {
+ let e = G8, t = (e) => {
+ e.kind === "item" ? _9(e.id, !1) : e.kind === "jav" ? y9(e.code, !1) : e.kind === "follow" ? P9(e.id, !1) : m9(e.queue, e.key, e.item, !1);
};
- if (JLe(), H5.entityShapesReady = e5(), IRe(), location.pathname === "/") {
+ if (XLe(), V5.entityShapesReady = $8(), RRe(), location.pathname === "/") {
let e = new URLSearchParams(location.search);
- !e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1, s7(L("#catalogPageHeading"), e.get("q")));
+ !e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1, o7(L("#catalogPageHeading"), e.get("q")));
}
- o5(decodeURIComponent(location.pathname)) && r5(L("#feedNew")), WRe(), B9.shellActions = {
- openSettings: (e) => n7(e, !0),
- closeSettings: () => v8()?.close(!1),
- openItem: (e) => void v9(e),
- openEntity: (e, t) => void T5(e, t),
+ a5(decodeURIComponent(location.pathname)) && n5(L("#feedNew")), KRe(), z9.shellActions = {
+ openSettings: (e) => t7(e, !0),
+ closeSettings: () => _8()?.close(!1),
+ openItem: (e) => void _9(e),
+ openEntity: (e, t) => void w5(e, t),
openTag: (e) => {
- BRe(), H7(e);
+ HRe(), V7(e);
},
- openTasteSignal: uRe,
+ openTasteSignal: fRe,
navigate: (e) => {
- let n = new URL(e, location.href), r = Bf(n.pathname, n.search);
+ let n = new URL(e, location.href), r = zf(n.pathname, n.search);
if (r) {
let e = r.kind === "queue" ? "item" : r.kind;
- E9(n.pathname + n.search + n.hash, e, () => t(r));
- } else if (n.hash && n.pathname === location.pathname && n.search === location.search && !Vf(location.pathname)) {
+ T9(n.pathname + n.search + n.hash, e, () => t(r));
+ } else if (n.hash && n.pathname === location.pathname && n.search === location.search && !Bf(location.pathname)) {
Q.route(e);
- let t = Pp.navigation.seq;
- zp(n.hash, () => Pp.navigation.seq === t);
+ let t = Np.navigation.seq;
+ Rp(n.hash, () => Np.navigation.seq === t);
} else Q.navigatePath(e);
},
- openManage: u7,
+ openManage: l7,
managePath: (e) => Q.routePathOf("section", e) || "",
- openFollow: () => P9(),
- receipt: (e, t) => A8.actionReceipt(e, t),
- toast: (e, t) => A8.toast(e, t),
- failure: A8.actionFailure,
- revealSource: b5,
- reopenTutorial: qze,
- routeReview: pRe,
- routeFollowManage: kRe,
+ openFollow: () => N9(),
+ receipt: (e, t) => k8.actionReceipt(e, t),
+ toast: (e, t) => k8.toast(e, t),
+ failure: k8.actionFailure,
+ revealSource: y5,
+ reopenTutorial: Yze,
+ routeReview: hRe,
+ routeFollowManage: jRe,
saveFollowPreference: (e) => {
e.pageSize !== void 0 && (Z.appSettings.followPageSize = e.pageSize), e.layout !== void 0 && (Z.appSettings.followLayout = e.layout), Z.saveSettings();
},
srcBadge: (e, t) => Z.srcBadge(e, t),
- routeIndex: (e, { replace: t = !1 } = {}) => Q.route(z5(e), t),
+ routeIndex: (e, { replace: t = !1 } = {}) => Q.route(R5(e), t),
savePeopleLayout: ({ layout: e }) => {
Z.appSettings.peopleLayout = e, Z.saveSettings();
},
- exitSelectMode: () => F5(!1, !1),
- personAvatar: (e, t, n) => R5.personAvatar(e, t, n),
- authorAvatar: (e) => jRe(e),
- showIndexTags: MRe,
- openFollowAuthor: V5,
- openFollowTag: NRe,
- openPlaylist: (e, t) => void g9(e, t, !0),
- canFlip: () => !$l && !o9() && !window.__scrolling && !X.reduceMotion(),
+ exitSelectMode: () => P5(!1, !1),
+ personAvatar: (e, t, n) => L5.personAvatar(e, t, n),
+ authorAvatar: (e) => NRe(e),
+ showIndexTags: PRe,
+ openFollowAuthor: B5,
+ openFollowTag: FRe,
+ openPlaylist: (e, t) => void h9(e, t, !0),
+ canFlip: () => !Ql && !a9() && !window.__scrolling && !X.reduceMotion(),
surfaceChanged: (e, t) => {
- e === "entity" ? (Pl(), W({ barsContext: {
+ e === "entity" ? (Nl(), W({ barsContext: {
type: "home",
filters: U
- } }), X5(), document.body.classList.add("entity-open"), j7(), B5()) : e === "index" ? (Pl(), document.body.classList.remove("entity-open"), Q.claimSurface(t), X5(), document.body.classList.add("index-open"), j7(), B5()) : (Pl(), Q.claimSurface(t), e === "catalog" ? X5() : (Y5(), J5({ manage: e === "management" })));
+ } }), Y5(), document.body.classList.add("entity-open"), A7(), z5()) : e === "index" ? (Nl(), document.body.classList.remove("entity-open"), Q.claimSurface(t), Y5(), document.body.classList.add("index-open"), A7(), z5()) : (Nl(), Q.claimSurface(t), e === "catalog" ? Y5() : (J5(), q5({ manage: e === "management" })));
},
clearSearch: () => X.clearSearchField(),
openImmerse: (e) => {
- let t = d9.requestedImmerseId === void 0 ? e : d9.requestedImmerseId;
- d9.requestedImmerseId = void 0, x9(t, !1);
+ let t = u9.requestedImmerseId === void 0 ? e : u9.requestedImmerseId;
+ u9.requestedImmerseId = void 0, b9(t, !1);
},
openQueueRequest: () => {
let e = Q.requestedQueue;
@@ -83957,71 +83970,71 @@ function sBe() {
},
openOverlay: (e) => {
let n = Q.requestedOverlay;
- Q.requestedOverlay = null, Pp.navigation.claimed && (!Ip() || Q.initialOverlayOpened) ? n?.path === location.pathname + location.search + location.hash && n.open() : (Ip() && (Q.initialOverlayOpened = !0), t(e));
+ Q.requestedOverlay = null, Np.navigation.claimed && (!Fp() || Q.initialOverlayOpened) ? n?.path === location.pathname + location.search + location.hash && n.open() : (Fp() && (Q.initialOverlayOpened = !0), t(e));
},
closeStage: () => {
- d9.stageOpen() && m9(!1);
+ u9.stageOpen() && p9(!1);
},
grid: {
helpers: X.gridHelpers,
actions: X.gridActions
},
- configurable: () => !!fu,
+ configurable: () => !!du,
surfaceShown: (e) => {
- e === "index" ? (w9(), x7()) : B7();
+ e === "index" ? (C9(), b7()) : z7();
},
entity: {
missing: (e) => {
- B9.shellActions.surfaceChanged("entity", location.pathname), w5(e);
+ z9.shellActions.surfaceChanged("entity", location.pathname), C5(e);
},
- loading: (e, t, n) => u5.application.loading(e, t, n),
- props: (e, t, n) => u5.application.addressProps(e, t, n),
+ loading: (e, t, n) => l5.application.loading(e, t, n),
+ props: (e, t, n) => l5.application.addressProps(e, t, n),
refresh: (e, t, n) => {
- let r = u5.parseEntityFilters(n);
+ let r = l5.parseEntityFilters(n);
e === "creator" && (r.creator = "");
- let i = p5();
- return i.type !== "entity" || i.kind !== e || i.name !== t || !h5(e, t, r, u5.parseMediaView(n), { push: !1 }) ? !1 : (O7(r), k7(p5()), !0);
+ let i = f5();
+ return i.type !== "entity" || i.kind !== e || i.name !== t || !m5(e, t, r, l5.parseMediaView(n), { push: !1 }) ? !1 : (D7(r), O7(f5()), !0);
}
},
follow: $.followFeedShell,
catalog: {
- defaultLoc: () => S7("local,115"),
- open: (e, { entering: t = !1, retitle: n = !1 } = {}) => (n && (D9(), b7(), o7()), t && I8(), e === "/trash" ? X.clearSearchField() : (L("#q").value = U.q, X.rememberSearchValue()), w9(), B7(), Z.handOff(G7())),
- load: () => Z.handOff(G7()),
+ defaultLoc: () => x7("local,115"),
+ open: (e, { entering: t = !1, retitle: n = !1 } = {}) => (n && (E9(), y7(), a7()), t && F8(), e === "/trash" ? X.clearSearchField() : (L("#q").value = U.q, X.rememberSearchValue()), C9(), z7(), Z.handOff(W7())),
+ load: () => Z.handOff(W7()),
fill: () => {
- if (X7() || !Ip() && !L("#grid").querySelector(".catalog-skeleton")) return;
+ if (Y7() || !Fp() && !L("#grid").querySelector(".catalog-skeleton")) return;
let e = L("#count");
- e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), J7(Q.surfaceToken(Q.surfacePath()));
+ e.removeAttribute("aria-busy"), e.removeAttribute("aria-label"), q7(Q.surfaceToken(Q.surfacePath()));
},
release: () => {
- q7(), s5();
- }
- }
- }, B9.routing = !1, e.listen(document, "click", (e) => {
- let t = oBe(e);
- t && (e.preventDefault(), B9.shellActions.navigate(t));
- }), K8.own(Pp.listen((e) => {
- Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !Vf(e.location.pathname) && m9(!1), B9.routing && !e.claimed && D9();
- })), fLe(B9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), qRe(), CRe(), i7(), Promise.all([
- r9(),
- GRe(),
- H5.entityShapesReady
+ K7(), o5();
+ }
+ }
+ }, z9.routing = !1, e.listen(document, "click", (e) => {
+ let t = cBe(e);
+ t && (e.preventDefault(), z9.shellActions.navigate(t));
+ }), G8.own(Np.listen((e) => {
+ Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !Bf(e.location.pathname) && p9(!1), z9.routing && !e.claimed && E9();
+ })), mLe(z9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), YRe(), TRe(), r7(), Promise.all([
+ n9(),
+ qRe(),
+ V5.entityShapesReady
]).then(() => {
- e.isActive && (H5.wantsDiscoveryBars() && B7().catch((e) => console.error("首页横条装载失败", e)), w9(), Sze(), B9.routing = !0, W({ pageOpens: 1 }), D9(), x7());
+ e.isActive && (V5.wantsDiscoveryBars() && z7().catch((e) => console.error("首页横条装载失败", e)), C9(), wze(), z9.routing = !0, W({ pageOpens: 1 }), E9(), b7());
}).catch((t) => {
e.isActive && console.error("应用启动失败", t);
});
}
// src/theme-transition.ts
-var V9 = !1;
-async function cBe(e, t) {
- if (V9) return;
+var B9 = !1;
+async function uBe(e, t) {
+ if (B9) return;
if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
return;
}
let n = e.getBoundingClientRect(), r = n.left + n.width / 2, i = n.top + n.height / 2, a = Math.hypot(Math.max(r, innerWidth - r), Math.max(i, innerHeight - i)) * 2.5, o = document.createElement("style");
- o.textContent = `::view-transition-old(root){animation:none}::view-transition-new(root){mix-blend-mode:normal;mask-image:radial-gradient(circle closest-side,#000 78%,#0006 88%,transparent);mask-repeat:no-repeat;will-change:mask-position,mask-size;animation:peach-theme-reveal 560ms cubic-bezier(.16,1,.3,1) both}@keyframes peach-theme-reveal{from{mask-position:${r}px ${i}px;mask-size:0px 0px}to{mask-position:${r - a / 2}px ${i - a / 2}px;mask-size:${a}px ${a}px}}`, V9 = !0, document.head.append(o);
+ o.textContent = `::view-transition-old(root){animation:none}::view-transition-new(root){mix-blend-mode:normal;mask-image:radial-gradient(circle closest-side,#000 78%,#0006 88%,transparent);mask-repeat:no-repeat;will-change:mask-position,mask-size;animation:peach-theme-reveal 560ms cubic-bezier(.16,1,.3,1) both}@keyframes peach-theme-reveal{from{mask-position:${r}px ${i}px;mask-size:0px 0px}to{mask-position:${r - a / 2}px ${i - a / 2}px;mask-size:${a}px ${a}px}}`, B9 = !0, document.head.append(o);
let s = document.documentElement;
s.dataset.themeSnapshot = "true";
let c = !1, l = () => {
@@ -84032,13 +84045,13 @@ async function cBe(e, t) {
} catch {
l();
} finally {
- delete s.dataset.themeSnapshot, o.remove(), V9 = !1;
+ delete s.dataset.themeSnapshot, o.remove(), B9 = !1;
}
}
// src/application/chrome.js
-function lBe() {
+function dBe() {
(() => {
- let e = K8, t = [
+ let e = G8, t = [
"#brandHome",
"#filterBtn",
"#settingsBtn"
@@ -84074,7 +84087,7 @@ function lBe() {
e.handler(c, "onclick", (e) => {
e.preventDefault();
});
- let u = ps(document.querySelector("#drawer"), c, l, { side: !0 });
+ let u = fs(document.querySelector("#drawer"), c, l, { side: !0 });
e.own(u.dispose);
let d = null, f = null;
function p(e, t) {
@@ -84090,7 +84103,7 @@ function lBe() {
w: r.offsetWidth,
h: r.offsetHeight
}, a = f;
- f = i, Gc(d, e ? a : null, i, "y");
+ f = i, Wc(d, e ? a : null, i, "y");
}
e.listen(l, "toggle", (e) => {
e.newState === "open" && (l.querySelector("button")?.focus(), p(!1));
@@ -84098,7 +84111,7 @@ function lBe() {
e.key === "Escape" && (e.stopPropagation(), u.setOpen(!1), c.focus());
}), Tn("/api/libraries", { signal: e.signal }).then((t) => {
if (!e.isActive) return;
- GG(t.libraries);
+ WG(t.libraries);
let n = [[
"",
"全部媒体库",
@@ -84115,11 +84128,11 @@ function lBe() {
}
let i = sessionStorage.getItem("peach.library") || "", a = n.find((e) => e[0] === i)?.[1] || "全部媒体库";
sessionStorage.setItem("peach.library-label", a), c.querySelector("h1").textContent = a;
- let o = (e) => vs[e]?.startsWith("data:") ? `<img src="${vs[e]}" alt="">` : R(vs[e] || e), s = document.createElement("span");
+ let o = (e) => _s[e]?.startsWith("data:") ? `<img src="${_s[e]}" alt="">` : R(_s[e] || e), s = document.createElement("span");
s.className = "mark", s.setAttribute("aria-hidden", "true"), s.innerHTML = o(n.find((e) => e[0] === i)?.[2] || "database"), c.querySelector(".mark").replaceWith(s), l.innerHTML = `<p>媒体库</p><div class="board-library-rows">${n.map(([e, t, n]) => `<button type="button" data-library="${z(e)}" aria-pressed="${e === i}"><span class="board-library-avatar">${o(n)}</span><span>${z(t)}</span></button>`).join("")}</div><footer><button type="button" class="geist-button primary" data-library-manage>管理媒体库</button></footer>`, l.querySelectorAll("[data-library]").forEach((t) => e.handler(t, "onclick", () => {
sessionStorage.setItem("peach.library", t.dataset.library), sessionStorage.setItem("peach.library-label", n.find((e) => e[0] === t.dataset.library)?.[1] || "全部媒体库"), location.assign("/");
})), e.handler(l.querySelector("[data-library-manage]"), "onclick", () => {
- u.setOpen(!1), e7(!1), k5("媒体库与入库");
+ u.setOpen(!1), $5(!1), O5("媒体库与入库");
});
let d = l.querySelector(".board-library-rows");
e.listen(d, "pointerover", (e) => {
@@ -84136,18 +84149,18 @@ function lBe() {
(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" && cBe(t, () => {
- Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), rM();
+ t.getAttribute("aria-pressed") !== "true" && uBe(t, () => {
+ Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), nM();
});
- })), rM();
+ })), nM();
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 = ps(g, v, _);
- e.own(y.dispose), e.own(Jle(v)), yLe({
+ let v = g.querySelector("#boardGlowBtn"), y = fs(g, v, _);
+ e.own(y.dispose), e.own(Yle(v)), xLe({
root: _,
store: Z.settingsStore,
openDetails: () => {
- e.isActive && (y.setOpen(!1), e7(!1), n7("外观与导航").then((t) => {
+ e.isActive && (y.setOpen(!1), $5(!1), t7("外观与导航").then((t) => {
e.isActive && t.reveal("#homeGlowControls");
}));
}
@@ -84159,17 +84172,17 @@ function lBe() {
let t = document.querySelector("#drawerScroll > [data-sidebar-head]"), n = document.querySelector("#drawer");
if (!t) return;
c.setAttribute("aria-label", "选择媒体库"), c.parentElement !== t && t.prepend(c);
- let r = n.classList.contains("open"), i = !$5();
+ let r = n.classList.contains("open"), i = !Q5();
i || r ? m.parentElement !== t && t.append(m) : m.parentElement !== h.parentElement && h.after(m), n.inert = !i && !r;
}
- Z.placeSidebarHead = b, b(), e.listen(document, "board:sidebar", b), e.listen.bind(K8, window)("resize", b);
+ Z.placeSidebarHead = b, b(), e.listen(document, "board:sidebar", b), e.listen.bind(G8, window)("resize", b);
let x = !1;
function S() {
x = !1, document.body.classList.toggle("board-scrolled", scrollY > 8);
}
- if (e.listen.bind(K8, window)("scroll", () => {
+ if (e.listen.bind(G8, window)("scroll", () => {
x || (x = !0, e.frame(S));
- }, { passive: !0 }), e.listen.bind(K8, window)("resize", S), S(), /Chrome|Chromium|Edg\//.test(navigator.userAgent)) {
+ }, { passive: !0 }), e.listen.bind(G8, window)("resize", S), S(), /Chrome|Chromium|Edg\//.test(navigator.userAgent)) {
let t = "http://www.w3.org/2000/svg", n = document.createElementNS(t, "svg");
n.setAttribute("width", "0"), n.setAttribute("height", "0"), n.setAttribute("aria-hidden", "true"), n.style.position = "fixed", n.style.pointerEvents = "none";
let r = document.createElementNS(t, "defs");
@@ -84283,14 +84296,14 @@ function lBe() {
subtree: !0
}), y();
}
- })(), e7(!$5() && sessionStorage.getItem("board.sidebar") !== "closed");
+ })(), $5(!Q5() && sessionStorage.getItem("board.sidebar") !== "closed");
}
// src/navigation-progress.ts
-var uBe = 200, dBe = 400, fBe = 240;
-function pBe() {
+var fBe = 200, pBe = 400, mBe = 240;
+function hBe() {
let e = document.createElement("div");
e.className = "navprogress", e.setAttribute("aria-hidden", "true"), e.append(document.createElement("i")), document.body.append(e);
- let t = /* @__PURE__ */ new Set(), n = 0, r = 0, i = 0, a = !1, o = () => dp() || t.size > 0, s = () => {
+ let t = /* @__PURE__ */ new Set(), n = 0, r = 0, i = 0, a = !1, o = () => up() || t.size > 0, s = () => {
if (o()) {
if (clearTimeout(r), r = 0, e.dataset.state) {
e.dataset.state = "running";
@@ -84298,12 +84311,12 @@ function pBe() {
}
n ||= window.setTimeout(() => {
n = 0, i = performance.now(), e.dataset.state = "running";
- }, uBe);
+ }, fBe);
} else clearTimeout(n), n = 0, !(e.dataset.state !== "running" || r) && (r = window.setTimeout(() => {
e.dataset.state = "done", r = window.setTimeout(() => {
r = 0, delete e.dataset.state;
- }, fBe);
- }, Math.max(0, dBe - (performance.now() - i))));
+ }, mBe);
+ }, Math.max(0, pBe - (performance.now() - i))));
}, c = () => {
a || (a = !0, queueMicrotask(() => {
a = !1, s();
@@ -84313,46 +84326,46 @@ function pBe() {
n === "pending" && r === "fetching" && !i && e.getObserversCount() > 0 ? t.add(e) : t.delete(e);
}, u = H.getQueryCache().subscribe((e) => {
e.type === "removed" ? t.delete(e.query) : l(e.query), c();
- }), d = fp(c);
+ }), d = dp(c);
for (let e of H.getQueryCache().getAll()) l(e);
return c(), () => {
u(), d(), clearTimeout(n), clearTimeout(r), e.remove();
};
}
// src/application/initialize.js
-function mBe() {
- Kze(), Mze(), LRe(), Nze(), wze(), bLe(), hze(), Jze(), sRe(), Aze(), wRe(), gze(), eRe(), mRe(), Wze(), PRe(), cRe(), Gze(), FRe(), lRe(), $Re(), _ze(), iBe(), jze(), aBe(), Tze(), sBe(), lBe(), K8.own(pBe()), K8.own(q7), K8.own(T9);
+function gBe() {
+ Jze(), Pze(), zRe(), Fze(), Eze(), SLe(), _ze(), Xze(), lRe(), Mze(), ERe(), vze(), nRe(), gRe(), Kze(), IRe(), uRe(), qze(), LRe(), dRe(), tze(), yze(), oBe(), Nze(), sBe(), Dze(), lBe(), dBe(), G8.own(hBe()), G8.own(K7), G8.own(w9);
}
// src/ui-kit/middle-truncate.ts
-var hBe = "…", gBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, H9 = /* @__PURE__ */ new WeakMap(), U9 = /* @__PURE__ */ new Set(), W9 = 0, G9 = /* @__PURE__ */ new WeakSet(), K9 = null, q9 = null, _Be = (e) => gBe ? [...gBe.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), J9 = (e, t) => {
+var _Be = "…", vBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null, V9 = /* @__PURE__ */ new WeakMap(), H9 = /* @__PURE__ */ new Set(), U9 = 0, W9 = /* @__PURE__ */ new WeakSet(), G9 = null, K9 = null, yBe = (e) => vBe ? [...vBe.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), q9 = (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("") + hBe + (r ? e.slice(-r).join("") : "");
-}, vBe = (e, t) => {
+ return e.slice(0, n).join("") + _Be + (r ? e.slice(-r).join("") : "");
+}, bBe = (e, t) => {
if (!e.length || t(e.join(""))) return e.length;
let n = 0, r = e.length - 1, i = 0;
for (; n <= r;) {
let a = n + r >> 1;
- t(J9(e, a)) ? (i = a, n = a + 1) : r = a - 1;
+ t(q9(e, a)) ? (i = a, n = a + 1) : r = a - 1;
}
return i;
-}, yBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-￯]/u, bBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, xBe = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, SBe = /[＀-￯]/u, CBe = (e) => bBe.test(e) ? 1 : xBe.test(e) && !SBe.test(e) ? 2 : 0, wBe = (e) => {
+}, xBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-￯]/u, SBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, CBe = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, wBe = /[＀-￯]/u, TBe = (e) => SBe.test(e) ? 1 : CBe.test(e) && !wBe.test(e) ? 2 : 0, EBe = (e) => {
let t = 0, n = 0;
for (let r of e) {
- let e = CBe(r);
+ let e = TBe(r);
n && e && n !== e && t++, n = e;
}
return t;
-}, TBe = null, EBe = (e, t) => {
- let n = getComputedStyle(e), r = (TBe ||= document.createElement("canvas")).getContext("2d");
+}, DBe = null, OBe = (e, t) => {
+ let n = getComputedStyle(e), r = (DBe ||= 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, _Be(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += wBe(e) * s), t;
+ return Number.isFinite(i) && (t += Math.max(0, yBe(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += EBe(e) * s), t;
};
-}, DBe = [
+}, kBe = [
"font-family",
"font-size",
"font-weight",
@@ -84377,22 +84390,22 @@ var hBe = "…", gBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(
"text-autospace",
"text-spacing-trim",
"white-space-collapse"
-], Y9 = null, OBe = (e) => {
- if (!Y9) {
+], J9 = null, ABe = (e) => {
+ if (!J9) {
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", Y9 = {
+ 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", J9 = {
box: e,
groups: /* @__PURE__ */ new Map()
};
}
- Y9.box.isConnected || document.documentElement.append(Y9.box);
- let t = getComputedStyle(e), n = DBe.map((e) => t.getPropertyValue(e)), r = e.closest("[lang]")?.getAttribute("lang") || "", i = n.join("\n") + "\n" + r, a = Y9.groups.get(i);
- return a || (a = document.createElement("div"), n.forEach((e, t) => a.style.setProperty(DBe[t], e)), a.lang = r, Y9.box.append(a), Y9.groups.set(i, a)), a;
-}, kBe = 8, ABe = (e) => {
- for (let t = 0; e.length && t < kBe; t++) {
+ J9.box.isConnected || document.documentElement.append(J9.box);
+ let t = getComputedStyle(e), n = kBe.map((e) => t.getPropertyValue(e)), r = e.closest("[lang]")?.getAttribute("lang") || "", i = n.join("\n") + "\n" + r, a = J9.groups.get(i);
+ return a || (a = document.createElement("div"), n.forEach((e, t) => a.style.setProperty(kBe[t], e)), a.lang = r, J9.box.append(a), J9.groups.set(i, a)), a;
+}, jBe = 8, MBe = (e) => {
+ for (let t = 0; e.length && t < jBe; 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 = J9(e.fit.parts, t), e.group.append(n), n;
+ return n.style.cssText = "display:block;width:max-content;text-wrap-mode:nowrap", n.textContent = q9(e.fit.parts, t), e.group.append(n), n;
}));
e.forEach((e, n) => e.tries.forEach((r, i) => {
t[n][i].getBoundingClientRect().width <= e.fit.available ? e.fits = Math.max(e.fits, r) : e.fails = Math.min(e.fails, r);
@@ -84407,28 +84420,28 @@ var hBe = "…", gBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(
])].filter((t) => t > e.fits && t < e.fails), !0;
});
}
-}, jBe = (e) => {
+}, NBe = (e) => {
let t = [];
for (let n of e) {
- let e = n.state.full, r = yBe.test(e), i = EBe(n.element, r);
- if (n.kept = vBe(n.parts, (e) => i(e) <= n.available), !r) continue;
+ let e = n.state.full, r = xBe.test(e), i = OBe(n.element, r);
+ if (n.kept = bBe(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: OBe(n.element),
+ group: ABe(n.element),
fits: 0,
fails: n.parts.length + 1,
tries: a
});
}
- ABe(t);
-}, MBe = (e) => {
+ MBe(t);
+}, PBe = (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);
-}, NBe = (e) => {
- if (e.dataset.middleTruncateWithin === void 0) return MBe(e);
+}, FBe = (e) => {
+ if (e.dataset.middleTruncateWithin === void 0) return PBe(e);
let t = e.parentElement;
if (!t) return e.clientWidth;
let n = getComputedStyle(t), r = parseFloat(n.columnGap) || 0, i = 0, a = 0;
@@ -84437,75 +84450,75 @@ var hBe = "…", gBe = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(
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);
-}, PBe = () => {
- W9 = 0;
+}, IBe = () => {
+ U9 = 0;
let e = [];
- for (let t of U9) {
- let n = H9.get(t);
+ for (let t of H9) {
+ let n = V9.get(t);
n && t.isConnected && e.push({
element: t,
state: n,
- available: NBe(t),
- parts: _Be(n.full),
+ available: FBe(t),
+ parts: yBe(n.full),
kept: 0
});
}
- U9.clear(), jBe(e.filter((e) => e.available > 0));
+ H9.clear(), NBe(e.filter((e) => e.available > 0));
for (let { element: t, state: n, available: r, parts: i, kept: a } of e) {
- let e = r > 0 ? J9(i, a) : n.full;
+ let e = r > 0 ? q9(i, a) : n.full;
n.rendered = e, t.textContent !== e && (t.textContent = e);
let o = e !== n.full;
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");
}
-}, X9 = (e) => {
- H9.has(e) && (U9.add(e), W9 ||= requestAnimationFrame(PBe));
-}, FBe = (e) => {
- e instanceof HTMLElement && (H9.has(e) || H9.set(e, {
+}, Y9 = (e) => {
+ V9.has(e) && (H9.add(e), U9 ||= requestAnimationFrame(IBe));
+}, LBe = (e) => {
+ e instanceof HTMLElement && (V9.has(e) || V9.set(e, {
full: e.textContent || "",
rendered: e.textContent || ""
- }), G9.has(e) || (G9.add(e), e.dataset.middleTruncateWithin !== void 0 && e.parentElement ? K9?.observe(e.parentElement) : K9?.observe(e)), X9(e));
-}, IBe = (e) => {
+ }), W9.has(e) || (W9.add(e), e.dataset.middleTruncateWithin !== void 0 && e.parentElement ? G9?.observe(e.parentElement) : G9?.observe(e)), Y9(e));
+}, RBe = (e) => {
if (e.nodeType !== Node.ELEMENT_NODE) return;
let t = e;
- t.matches("[data-middle-truncate]") && FBe(t), t.querySelectorAll("[data-middle-truncate]").forEach(FBe);
+ t.matches("[data-middle-truncate]") && LBe(t), t.querySelectorAll("[data-middle-truncate]").forEach(LBe);
};
-function LBe(e = document) {
- q9?.(), G9 = /* @__PURE__ */ new WeakSet();
+function zBe(e = document) {
+ K9?.(), W9 = /* @__PURE__ */ new WeakSet();
let t = !0;
- K9 = new ResizeObserver((e) => e.forEach((e) => {
- t && (X9(e.target), e.target.querySelectorAll?.(":scope>[data-middle-truncate-within]").forEach(X9));
+ G9 = new ResizeObserver((e) => e.forEach((e) => {
+ t && (Y9(e.target), e.target.querySelectorAll?.(":scope>[data-middle-truncate-within]").forEach(Y9));
}));
- let n = K9;
- IBe(e.documentElement || e);
+ let n = G9;
+ RBe(e.documentElement || e);
let r = new MutationObserver((e) => e.forEach((e) => {
if (!t) return;
- e.addedNodes.forEach(IBe);
+ e.addedNodes.forEach(RBe);
let n = (e.target.nodeType === Node.TEXT_NODE ? e.target.parentElement : e.target)?.closest?.("[data-middle-truncate]");
if (!n) return;
- let r = H9.get(n);
- r && n.textContent !== r.rendered && (r.full = n.textContent || "", n.dataset.middleTitle === "true" && n.removeAttribute("title"), X9(n));
+ let r = V9.get(n);
+ r && n.textContent !== r.rendered && (r.full = n.textContent || "", n.dataset.middleTitle === "true" && n.removeAttribute("title"), Y9(n));
}));
r.observe(e.body || e, {
childList: !0,
characterData: !0,
subtree: !0
}), document.fonts?.ready?.then(() => {
- t && e.querySelectorAll("[data-middle-truncate]").forEach(X9);
+ t && e.querySelectorAll("[data-middle-truncate]").forEach(Y9);
});
let i = (e) => {
let t = document.getSelection();
if (!t || t.isCollapsed) return;
- let n = (t.anchorNode?.nodeType === Node.ELEMENT_NODE ? t.anchorNode : t.anchorNode?.parentElement)?.closest?.("[data-middle-truncate]"), r = n && H9.get(n);
+ let n = (t.anchorNode?.nodeType === Node.ELEMENT_NODE ? t.anchorNode : t.anchorNode?.parentElement)?.closest?.("[data-middle-truncate]"), r = n && V9.get(n);
r && n.contains(t.focusNode) && e.clipboardData && (e.clipboardData?.setData("text/plain", r.full), e.preventDefault());
};
e.addEventListener("copy", i);
let a = () => {
- t && (t = !1, n.disconnect(), r.disconnect(), e.removeEventListener("copy", i), Y9?.box.remove(), W9 && cancelAnimationFrame(W9), W9 = 0, U9.clear(), q9 === a && (q9 = null, K9 = null));
+ t && (t = !1, n.disconnect(), r.disconnect(), e.removeEventListener("copy", i), J9?.box.remove(), U9 && cancelAnimationFrame(U9), U9 = 0, H9.clear(), K9 === a && (K9 = null, G9 = null));
};
- return q9 = a, a;
+ return K9 = a, a;
}
// src/react/result-updates.tsx
-var RBe = [
+var BBe = [
"catalog-grid",
"catalog-folders",
"item",
@@ -84523,44 +84536,44 @@ var RBe = [
"trash-summary",
"junk-summary",
"immerse-list"
-], Z9 = [
+], X9 = [
"follow-feed",
"follow-item",
"follow-manage",
"follow",
"entity",
"index"
-], zBe = [
+], VBe = [
"feed-new",
"jav-discoveries",
"jav-detail",
"wants",
"index"
-], BBe = {
+], HBe = {
catalog: [
- ...RBe,
- ...Z9,
+ ...BBe,
+ ...X9,
"review",
"taste"
],
follow: [
- ...Z9,
+ ...X9,
"stats",
"taste"
],
- discoveries: zBe,
+ discoveries: VBe,
review: ["review"],
artwork: [
- ...RBe,
- ...Z9,
- ...zBe,
+ ...BBe,
+ ...X9,
+ ...VBe,
"avatar-choices"
]
};
-function VBe() {
+function UBe() {
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 BBe[t] || []) e.add(n);
+ for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of HBe[t] || []) e.add(n);
return !t && e.size && (t = (async () => {
for (; e.size;) {
let t = new Set(e);
@@ -84573,11 +84586,11 @@ function VBe() {
})), t || Promise.resolve();
};
}
-var HBe = (e) => e.replace(/[&<>"']/g, (e) => `&#${e.charCodeAt(0)};`), UBe = 3, WBe = (e) => {
- let t = HBe(e.label || "一部作品");
+var WBe = (e) => e.replace(/[&<>"']/g, (e) => `&#${e.charCodeAt(0)};`), GBe = 3, KBe = (e) => {
+ let t = WBe(e.label || "一部作品");
return e.kind === "download" ? `「${t}」已入库并整理完成` : `新文件已入库:「${t}」`;
};
-function GBe(e, t) {
+function qBe(e, t) {
if (!t) return e;
let n = t.items.reduce((e, t) => Math.max(e, t.id), 0);
if (!e || e.epoch !== t.epoch) return {
@@ -84585,19 +84598,19 @@ function GBe(e, t) {
last: n
};
let r = t.items.filter((t) => t.id > e.last);
- if (r.length > UBe) HQ(`ingest-${t.epoch}-${n}`, {
+ if (r.length > GBe) VQ(`ingest-${t.epoch}-${n}`, {
html: `${r.length} 部作品已入库`,
alert: !1,
timeout: 8e3,
action: null
});
- else for (let e of r) HQ(`ingest-${t.epoch}-${e.id}`, {
- html: WBe(e),
+ else for (let e of r) VQ(`ingest-${t.epoch}-${e.id}`, {
+ html: KBe(e),
alert: !1,
timeout: 8e3,
action: {
label: "打开",
- run: () => Fp(`/assets/${e.asset_id}`)
+ run: () => Pp(`/assets/${e.asset_id}`)
}
});
return {
@@ -84605,69 +84618,69 @@ function GBe(e, t) {
last: Math.max(e.last, n)
};
}
-function KBe() {
+function JBe() {
let e = Ft({
- queryKey: HI,
- queryFn: ({ signal: e }) => WI(e),
- refetchInterval: (e) => UI(e.state.data)
- }), t = (0, F.useRef)(void 0), n = (0, F.useRef)(null), [r] = (0, F.useState)(VBe), i = e.data?.result_versions, a = e.data?.ingest_notices;
+ queryKey: VI,
+ queryFn: ({ signal: e }) => UI(e),
+ refetchInterval: (e) => HI(e.state.data)
+ }), t = (0, F.useRef)(void 0), n = (0, F.useRef)(null), [r] = (0, F.useState)(UBe), i = e.data?.result_versions, a = e.data?.ingest_notices;
return (0, F.useEffect)(() => {
i && (t.current && r(t.current, i), t.current = i);
}, [i, r]), (0, F.useEffect)(() => {
- n.current = GBe(n.current, a);
+ n.current = qBe(n.current, a);
}, [a]), null;
}
// src/react/application.tsx
-var Q9 = null;
-function qBe(e) {
- Q9 !== e || e.owners || (Q9 = null, e.effects.dispose());
-}
-function JBe() {
- if (!Q9) {
- let e = ILe();
- Q9 = {
+var Z9 = null;
+function YBe(e) {
+ Z9 !== e || e.owners || (Z9 = null, e.effects.dispose());
+}
+function XBe() {
+ if (!Z9) {
+ let e = RLe();
+ Z9 = {
effects: e,
owners: 0
- }, e.own(LBe(document)), e.own(() => {
- Pl(), H.cancelQueries();
- }), e.own(pLe), e.own(wp), e.own(ss);
+ }, e.own(zBe(document)), e.own(() => {
+ Nl(), H.cancelQueries();
+ }), e.own(hLe), e.own(Cp), e.own(os);
}
- return Q9.owners += 1, Q9.effects.resume(), Q9;
+ return Z9.owners += 1, Z9.effects.resume(), Z9;
}
-function YBe() {
+function ZBe() {
let [e, t] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
- let e = Q9 === null, n = JBe(), r = dLe(t);
+ let e = Z9 === null, n = XBe(), r = pLe(t);
if (e) try {
- mBe();
+ gBe();
} catch (e) {
- throw r(), n.effects.dispose(), Q9 = null, e;
+ throw r(), n.effects.dispose(), Z9 = null, e;
}
return () => {
- r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => qBe(n)));
+ r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => YBe(n)));
};
- }, []), /* @__PURE__ */ (0, I.jsx)(Dbe, {
+ }, []), /* @__PURE__ */ (0, I.jsx)(kbe, {
actions: e,
processing: !0,
- background: e ? /* @__PURE__ */ (0, I.jsx)(KBe, {}) : null
+ background: e ? /* @__PURE__ */ (0, I.jsx)(JBe, {}) : null
});
}
-var $9 = /* @__PURE__ */ new WeakMap();
-function XBe(e) {
- let t = $9.get(e);
+var Q9 = /* @__PURE__ */ new WeakMap();
+function QBe(e) {
+ let t = Q9.get(e);
if (t) return t;
- let n = (0, zt.createRoot)(e, Obe);
- $9.set(e, n);
+ let n = (0, zt.createRoot)(e, Abe);
+ Q9.set(e, n);
let r = n.unmount.bind(n);
return n.unmount = () => {
- $9.get(e) === n && ($9.delete(e), r(), Q9 && qBe(Q9));
- }, (0, Rt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(YBe, {}))), n;
+ Q9.get(e) === n && (Q9.delete(e), r(), Z9 && YBe(Z9));
+ }, (0, Rt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(ZBe, {}))), n;
}
// src/react/bootstrap.tsx
O();
-var ZBe = document.getElementById("appRoot");
-if (!ZBe) throw Error("主界面宿主缺失");
-XBe(ZBe);
-export { RL as $2ec61d1d4f780267$export$a8a3e93435678ff9, KL as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, lz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, TD as $72abaeab4d80592f$export$78efe591171d7d45, tB as $76d00c5a4edb230a$export$76ccd210b9029917, Qz as $76d00c5a4edb230a$export$816b5d811295e6bc, iB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, oB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, Zz as $76d00c5a4edb230a$export$f850895b287ef28e, Ghe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Whe as $b4f18e3395fe64d7$export$3e41faf802a29e71, Vhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, uB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Jhe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, fE as $ea3928288112382f$export$439d29a4e110a164, Sz as $f2ff30fde7b014be$export$3ddf2d174ce01153, kz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Az as $fe21c36db05242bb$export$d7b12c4107be0d61, Mge as $l, Vj as ACCENTS, BAe as AMANE_BRIDGE_CHECK_URL, N$ as AMANE_BRIDGE_KEY, VAe as AMANE_BRIDGE_REBUILD_URL, sr as ApiError, WU as ArtSlot, w2 as BATCH_DELETE_TEXT, Y as Button, gL as ButtonLink, HB as Bx, M$ as CHECK_ALL_KEY, o$ as CLEANUP_ENTRY, a$ as CLEANUP_ENTRY_GRID, Qf as CLEANUP_HASH_REDIRECTS, Xf as CLEANUP_TOOLS, vn as CLOUD_LOCATIONS, X1 as CLOUD_PROXY_HELP, Kr as COLUMN_SORT, Z$ as CONFIGURATION_KEY, BY as CONFIGURATION_URL, HAe as COOKIE_TEXT_LIMIT, j$ as COVER_JOB_KEY, Xi as CREDENTIAL_STATE, E$ as CUSTOM_SOURCES_KEY, T$ as CUSTOM_SOURCES_URL, iG as CatalogViewToggle, IV as Checkbox, FV as CheckboxGlyph, EV as ChevronSortDown, UU as Chip, $U as CloudDownloadDialog, AH as CollapseChevron, kH as CollapseRegion, $Q as CollectionSummary, xve as CommandSteps, yTe as DEFAULT_CATEGORY, dr as DEFAULT_SORT, TQ as DIAGNOSTICS_KEY, vEe as DIRECTORY_TEMPLATE_ERROR, oW as DISCOVERY_SORTS, KU as DOWNLOADS_KEY, GU as DOWNLOADS_URL, oY as DUPLICATES_KEY, BJ as DataTableFooter, IJ as DataTableFrame, zJ as DataTableSort, IH as Disclosure, Oye as DownloadsPanel, bge as E3, bTe as ENTITY_REVIEW_KINDS, J1 as ENTRY_LINKS_HELP, Y1 as ENTRY_LINKS_HINT, PB as Ea, a_e as EmptyFocusButton, cV as EmptyState, PH as ErrorText, Yge as Eu, Sve as ExternalLink, Vr as FEEDS_KEY, JY as FEED_SCHEDULE_KEY, r$ as FIELDSET_FOOT, _Ie as FLOW_LABEL_X, i6 as FLOW_VIEWBOX, zr as FOLLOW_CHECK_KEY, Rr as FOLLOW_CREDENTIALS_KEY, V8 as FOLLOW_INITIAL_RANGE_OPTIONS, Lr as FOLLOW_MANAGE_KEY, OZ as FOLLOW_MANAGE_NAV, Br as FOLLOW_RESOLVE_KEY, qY as FOLLOW_SCHEDULE_KEY, Tve as Fact, wve as FactList, FH as FieldLabel, g$ as Fieldset, h$ as FieldsetTitle, Hpe as FilterGlass, lL as FilterGlassRows, cL as FilterIconButton, uL as FilterPill, bve as Footer, zB as Gg, dL as GlassPill, KB as HN, NH as Help, $B as HintText, lIe as IDLE_POLL_MS, cTe as IDLE_REPAIR, iL as IconButton, DQ as IndexSearch, iV as Input, rV as InputBase, v$ as IssueRow, aM as JAV_LAYOUTS, U0 as JAV_RECOMMENDATION_GRID, yX as JUNK_KEY, hW as JavHeader, nTe as KEEP_LABELS, uge as L1, Ur as LAYOUTS, q1 as LIBRARY_FOLDER_HELP, YV as LIBRARY_PROCESSING_KEY, MY as LINKS_KEY, NY as LINK_CHECK_KEY, WTe as LINK_KINDS, PY as LINK_PRUNE_KEY, nr as LOC, QB as Label, x$ as LibraryProcessingCard, TV as LibraryShortcuts, dH as LinkButton, Pge as Lo, wH as LoadingDots, Sge as M6, YTe as MEDIA_PROCESSING_KEY, XY as MEDIA_PROCESSING_URL, dY as MEDIA_REPAIR_KEY, uY as MEDIA_REPAIR_URL, yr as MEDIA_SOURCES_KEY, vs as MEDIA_SOURCE_ICONS, gn as MEDIA_SOURCE_OPTIONS, AV as MENU_ITEM, jV as MENU_ITEM_INTERACTIVE, kV as MENU_POPOVER_SURFACE, Ige as Ma, hH as MenuDialog, mK as MixCard, aV as ModalFrame, Cx as MotionConfigContext, XB as NR, _$ as NameLink, sV as Note, t_e as OA, $Y as ORGANIZE_KEY, x2 as ORGANIZE_PARAMETER_HINT, b2 as ORGANIZE_SCOPE_HINT, y2 as ORGANIZE_TEXT, nX as ORPHAN_RECORDS_KEY, C2 as ORPHAN_RECORDS_TEXT, LB as OV, SB as P7, gX as PERFORMER_DELETE_KEY, Lye as PHASES, VY as PICK_FOLDER_URL, c$ as PLAIN_STAT_STRIP, C$ as PLAYLISTS_KEY, iMe as POLICY_COLUMNS, oMe as POLICY_COVER_NOTE, aMe as POLICY_MATRIX, K1 as POLICY_SUMMARY, RJ as Pagination, b$ as PathLine, JB as Pf, NI as PillTabList, cAe as PlainStat, EH as Progress, gY as QUALITY_GOALS_KEY, qB as RB, B0 as RELEASE_COLUMN_VISIBILITY_KEY, z0 as RELEASE_COLUMN_WIDTHS_KEY, sW as RELEASE_SORTS, PMe as RELEASE_SORT_COLUMNS, u$ as REPAIR_CARD_TEXT, fY as REPAIR_LIBRARIES_KEY, sX as RESOURCE_APPLY_KEY, oX as RESOURCE_SCAN_KEY, S2 as RESOURCE_SYNC_TEXT, mAe as RESULT_PANEL, hAe as RESULT_SECTION, vTe as REVIEW_CATEGORIES, vX as REVIEW_COUNTS_KEY, xTe as REVIEW_DECISION_LABELS, yY as REVIEW_KEY, bY as REVIEW_LABELS, SY as REVIEW_QUEUES, CY as REVIEW_QUEUE_LABELS, FG as RetryNote, $ge as Rf, ZB as Rk, _ve as Rows, O$ as SCRAPING_CHECK_ALL_URL, RAe as SCRAPING_CHECK_URL, k$ as SCRAPING_COVER_URL, A$ as SCRAPING_KEY, LAe as SCRAPING_SETTINGS_URL, nU as SEGMENT, tU as SEGMENTED_TRACK, KY as SETTINGS_KEY, HY as SETTINGS_URL, fr as SORT_DEFAULT_DIR, ur as SORT_OPTIONS, yn as SOURCE_LABELS, k3 as STATS_KEY, oAe as STAT_STRIP, sAe as STAT_STRIP_SIX, gve as Section, gAe as SectionHeading, yve as SectionSkeleton, eU as SegmentedRadioGroup, Bve as SegmentedTabList, OG as Segments, LJ as Select, BU as Select$1, t1 as SelectField, VU as SelectItem, qJ as SelectionActions, yj as SelectionDock, JJ as SelectionPopover, jH as SettingsCard, hve as SettingsRow, MH as SettingsSectionLabel, kG as Shuffle, kve as SiteLabel, oG as SortDirectionIcon, AG as SortKeys, cQ as SourceAvatar, BH as SourceLabel, LH as SourceMark, vve as Stack, lAe as StatCard, y$ as StatusLabel, Xge as Su, s4 as Switch, HI as TASKS_KEY, QFe as TASTE_REFRESH_KEY, $Fe as TASTE_WINDOWS, YY as THUMBNAIL_JOBS_KEY, xX as TRASH_KEY, xpe as TRIGGER_LABELS, TJ as Table, YJ as TableColumnControls, XJ as TableColumnResizer, QJ as TableSelectionHeader, JQ as TagManager, Cve as TaskCenterLink, DH as TaskProgress, tV as TextField, eV as TextFieldContext, FB as Un, e_e as Uz, tW as WANTS_KEY, S4 as WantMagnets, Yg as WithPromise, EB as Wt, NB as Xc, YB as Xf, OB as Xl, DB as Xt, wB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, GB as _p, Qge as aB, Ei as addAlias, Ti as addSource, rW as addWant, fS as animate, B as apiGet, V as apiSend, $j as appSettingsStore, LEe as applyConfirmText, hX as applyLeftovers, IEe as applyPlanText, zEe as applyText, rM as applyTheme, by as asNumber, TEe as attachOrphan, ci as authorAvatar, ui as authorGroups, si as authorInitial, oi as authorName, pq as autoResetPageIndex, vo as avatarInner, F3 as bandRows, yEe as baseName, sTe as batchOperate, Lue as beginPlayerGuidePreview, wj as boundedPreference, iTe as bulkCloudPreferences, fV as busyProps, Zge as cB, DPe as cachedMagnetStates, Ug as calcGeneratorVelocity, OTe as canApprove, vg as cancelFrame, AEe as candidateText, bU as cardClass, vM as cardRatio, NJ as catalogListSkeletonCellHtml, MB as cc, Ki as checkEvidenceGap, Gi as checkFailures, Fi as checkFeeds, JTe as checkLine, Ui as checkReceipt, Wi as checkSummary, WAe as checkText, qi as checkedText, tK as clickedBlank, t7 as closeDrawerAfterNav, Ywe as cloudLocations, D0 as cloudProxySkeleton, GC as clsx, zge as cn, lv as collectMotionValues, Nq as columnVisibilityFeature, bJ as column_getCanSort, gJ as column_getSortFn, ETe as commonReviewSources, QU as composingKey, jf as configurationSection, rIe as configureTasteBrowser, ul as confirmModal, ype as controlTask, YK as copyInstancePropertiesWithoutMemos, uo as coverUrl, wq as createColumnHelper, jAe as createPlaylist, Zi as credentialDone, C0 as credentialsSkeleton, LTe as currentReviewRow, J as cx, Cge as d6, VB as dZ, PTe as decisionPayload, FTe as decisionReceipt, NTe as defaultChoice, VEe as deletePerformerVideos, NAe as deletePlaylist, j0 as devicesSkeleton, x as diagnosticHeaders, G1 as diagnosticsSkeleton, Kye as discoveryArtwork, cW as discoveryKey, Uye as discoveryScore, m9 as disposeStage, eTe as distinctName, Vi as dropSources, Jge as du, aTe as duplicateVictims, YI as elapsedText, nn as entityDisplayName, _o as entityFaceImg, Pn as entityPath, ti as errorHeadline, lr as errorMessage, z as esc, fq as expandRowModel, hB as f1, xo as facePos, ei as feedIntervalText, L$ as fetchAmaneBridge, I$ as fetchCheckAllJob, vi as fetchCheckJob, Q$ as fetchConfiguration, F$ as fetchCoverJob, _i as fetchCredentials, D$ as fetchCustomSources, _X as fetchDeletePerformers, BEe as fetchDeletePlan, EQ as fetchDiagnostics, lW as fetchDiscoveries, cY as fetchDuplicates, hpe as fetchEarlier, QTe as fetchFeedSchedule, Mi as fetchFeeds, gi as fetchFollow, ZTe as fetchFollowSchedule, CX as fetchJunkSummary, rH as fetchLibraryProcessing, LY as fetchLinkCheck, RY as fetchLinkPrune, IY as fetchLinkStats, XTe as fetchMediaProcessing, pY as fetchMediaRepair, br as fetchMediaSources, eX as fetchOrganize, dEe as fetchOrganizeExample, rX as fetchOrphanRecords, ji as fetchPending, w$ as fetchPlaylists, _Y as fetchQualityGoals, fW as fetchReleases, mY as fetchRepairLibraries, yi as fetchResolveJob, lX as fetchResourceApply, cX as fetchResourceScan, kY as fetchReview, SX as fetchReviewCounts, ZY as fetchSettings, P$ as fetchSources, A3 as fetchStats, bi as fetchSuggestions, WI as fetchTasks, t6 as fetchTaste, iIe as fetchTasteJob, $Te as fetchThumbnailJobs, wX as fetchTrashSummary, nW as fetchWants, wTe as filterReviewRows, er as firstGrapheme, jK as flexRender, yIe as flowGraph, bIe as flowLabel, vFe as fmtCount, Jn as fmtDur, Xn as fmtSize, mpe as foldByKind, jpe as foldRoutine, Li as followFeedByName, Ri as followFeedEntity, Hr as followSuggestKey, Npe as followupDetail, ppe as followupTally, _g as frame, bB as g4, Iq as getDefaultPaginationState, _M as gridLayout, li as groupByAuthor, Ape as groupFollowups, EY as groupReviewRows, PEe as hasChanges, uX as hasResourceRoots, KI as hasResultProblems, uIe as historySpan, gB as i2, cIe as importTasteExport, w0 as indexersSkeleton, zg as interpolate, aW as invalidateWants, JI as isActive, $r as isBroken, qr as isLayout, bv as isMotionValue, xY as isReviewCategory, Mpe as isRoutine, T0 as javBrowserSkeleton, G0 as javContentSkeleton, uM as javLayout, W0 as javTagSkeleton, KEe as junkBreakdown, Zwe as keepGroup, PAe as keepPlaylist, ke as keepPreviousData, pi as keepSelected, j3 as known, lge as l1, gge as l7, kpe as latestOfKind, $n as leadingGraphemes, AFe as lengthRows, Cr as localTime, mo as logoUrl, Ii as lookupFeedActor, xB as m7, BB as mM, Dn as mapLimit, Ai as markItem, I3 as max, OFe as mediumRows, gpe as mergeFinished, L3 as min, HTe as mirrorText, dTe as missingToolText, lY as mixedCloudPreferences, $I as momentText, pS as motion, dv as motionValue, rn as nameFallback, Ue as notifyManager, wge as oe, xEe as organizeOutcome, s2 as overlayHost, Jr as pageSizeOf, fi as pageWindow, hr as paginationRange, Bi as patchSource, Pp as peachHistory, Pp as peachHistory$1, MTe as pendingGenres, bFe as percentText, mEe as pickOrganizeFolder, s$ as plainStatClass, bEe as planSummary, M3 as playedFor, SFe as playedItemUrl, UI as pollInterval, Xs as popCount, AAe as posterUrl, yxe as previewLibraryColor, pEe as previewOrganize, mTe as previewUrl, Dpe as problemDestination, QV as processingActive, XI as progressText, zH as providerIcon, qTe as pruneText, fX as purgeCount, EEe as purgeOrphan, UB as pv, qge as qE, H as queryClient, _B as r2, gIe as radarRows, TFe as radialArc, EFe as radialBarSize, wFe as radialCeiling, CFe as radialSlices, PN as randomId, mIe as rankDetail, hIe as rankShares, P3 as reachedShare, ZI as readableErrorHeadline, Wye as recommendationScore, RTe as recordGenre, OEe as recordsText, FAe as recreatePlaylist, OAe as refreshPlaylists, Dl as relayoutCovers, V0 as releaseColumns, uW as releaseFilters, dW as releaseKey, Hi as reloadFollowManage, VTe as reloadReview, lMe as rememberShape, gEe as rememberTemplates, Di as removeAlias, Pi as removeFeed, wi as removeSource, sIe as removeTasteSource, iW as removeWants, Oi as renameAliasGroup, MAe as renamePlaylist, Se as replaceEqualDeep, MFe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, GK as require_with_selector, Bye as resetWants, mr as resolveFollowSort, Kg as resolveStartTime, Z_e as restartEffectText, kAe as resumeAssetId, CTe as reviewGroupingOptions, TY as reviewQueueData, wY as reviewQueueOf, GEe as reviewSummary, TTe as reviewWindow, ATe as rowEvidence, OY as rowFieldName, Uq as rowPaginationFeature, uJ as rowSelectionFeature, CJ as rowSortingFeature, DY as rowSubject, jTe as rowTags, kTe as rowTitle, pge as s5, ki as saveCredential, FEe as scanLine, iEe as schedulePollInterval, Hye as searchNote, DTe as selectReviewRange, mi as selectionState, Ni as setFeedEnabled, Ci as setSourceEnabled, Ff as settingsPath, BTe as settleReviewRows, $we as sharedNamePrefix, Fp as shellNavigate, k8 as showToast, Bn as siteMarkUrl, rq as skipFirstRun, jI as sortCx, Xr as sortLabel, bn as sourceDefaultCost, Yi as sourceIconUrl, REe as sourceMeta, Vs as spinnerHtml, Lg as spring, uV as spriteGlyph, xi as startCheck, GTe as startLinkCheck, KTe as startLinkPrune, hEe as startOrganize, Si as startResolve, MEe as startResourceApply, jEe as startResourceScan, oIe as startTasteRefresh, aAe as statCardClass, Cpe as statusLabel, uTe as statusLine, Qr as statusText, yM as storeJavLayout, ITe as submitDecision, eL as summaryItems, Tq as tableFeatures, iq as tableMemo, di as tableRows, Epe as taskIssues, Ope as taskSubject, n6 as tasteDate, fIe as tasteDimensions, dIe as tasteHours, e6 as tasteKey, tIe as tasteRefetchInterval, nIe as tasteTime, LI as textLang, R0 as tierPlaceholdersHtml, lh as time, Age as tl, hi as toggleGroup, r6 as topScores, Vge as um, Fge as uo, fH as useAction, CZ as useBackgroundJob, rG as useCatalogView, MU as useClientUpdates, xm as useConstant, tL as useEntityNames, sL as useHorizontalScroller, Sm as useIsomorphicLayoutEffect, eK as useLibraryTints, It as useMutation, LV as useOverlayScrollbar, Ft as useQuery, ae as useQueryClient, tS as useReducedMotion, rEe as useRunSchedule, tEe as useSaveFollowSchedule, QY as useSaveSettings, aEe as useSaveThumbnailMode, wJ as useTable, UJ as useTablePreferences, mL as useViewGlide, oTe as victimBytes, jge as vl, Vye as wantName, xFe as watchNote, N3 as watchedShare, Tge as we, jc as wireHorizontalScroller, _Ee as withOrganizeJob, Gye as writeJavQuery, xge as z3 };
+var $9 = document.getElementById("appRoot");
+if (!$9) throw Error("主界面宿主缺失");
+QBe($9);
+export { LL as $2ec61d1d4f780267$export$a8a3e93435678ff9, GL as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, cz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, wD as $72abaeab4d80592f$export$78efe591171d7d45, eB as $76d00c5a4edb230a$export$76ccd210b9029917, Zz as $76d00c5a4edb230a$export$816b5d811295e6bc, rB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, aB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, Xz as $76d00c5a4edb230a$export$f850895b287ef28e, qhe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Khe as $b4f18e3395fe64d7$export$3e41faf802a29e71, Uhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, lB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Xhe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, dE as $ea3928288112382f$export$439d29a4e110a164, xz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Oz as $fe21c36db05242bb$export$a98f0dcb43a68a25, kz as $fe21c36db05242bb$export$d7b12c4107be0d61, Pge as $l, Bj as ACCENTS, HAe as AMANE_BRIDGE_CHECK_URL, M$ as AMANE_BRIDGE_KEY, UAe as AMANE_BRIDGE_REBUILD_URL, sr as ApiError, UU as ArtSlot, C2 as BATCH_DELETE_TEXT, Y as Button, hL as ButtonLink, VB as Bx, j$ as CHECK_ALL_KEY, a$ as CLEANUP_ENTRY, i$ as CLEANUP_ENTRY_GRID, Zf as CLEANUP_HASH_REDIRECTS, Yf as CLEANUP_TOOLS, vn as CLOUD_LOCATIONS, Y1 as CLOUD_PROXY_HELP, Gr as COLUMN_SORT, X$ as CONFIGURATION_KEY, zY as CONFIGURATION_URL, WAe as COOKIE_TEXT_LIMIT, A$ as COVER_JOB_KEY, Yi as CREDENTIAL_STATE, T$ as CUSTOM_SOURCES_KEY, w$ as CUSTOM_SOURCES_URL, rG as CatalogViewToggle, FV as Checkbox, PV as CheckboxGlyph, TV as ChevronSortDown, HU as Chip, QU as CloudDownloadDialog, kH as CollapseChevron, OH as CollapseRegion, QQ as CollectionSummary, Cve as CommandSteps, xTe as DEFAULT_CATEGORY, dr as DEFAULT_SORT, wQ as DIAGNOSTICS_KEY, bEe as DIRECTORY_TEMPLATE_ERROR, aW as DISCOVERY_SORTS, GU as DOWNLOADS_KEY, WU as DOWNLOADS_URL, aY as DUPLICATES_KEY, zJ as DataTableFooter, FJ as DataTableFrame, RJ as DataTableSort, FH as Disclosure, Aye as DownloadsPanel, Sge as E3, STe as ENTITY_REVIEW_KINDS, q1 as ENTRY_LINKS_HELP, J1 as ENTRY_LINKS_HINT, NB as Ea, s_e as EmptyFocusButton, sV as EmptyState, NH as ErrorText, Zge as Eu, wve as ExternalLink, Br as FEEDS_KEY, qY as FEED_SCHEDULE_KEY, n$ as FIELDSET_FOOT, yIe as FLOW_LABEL_X, r6 as FLOW_VIEWBOX, Rr as FOLLOW_CHECK_KEY, Lr as FOLLOW_CREDENTIALS_KEY, B8 as FOLLOW_INITIAL_RANGE_OPTIONS, Ir as FOLLOW_MANAGE_KEY, DZ as FOLLOW_MANAGE_NAV, zr as FOLLOW_RESOLVE_KEY, KY as FOLLOW_SCHEDULE_KEY, Dve as Fact, Eve as FactList, PH as FieldLabel, h$ as Fieldset, m$ as FieldsetTitle, Wpe as FilterGlass, cL as FilterGlassRows, sL as FilterIconButton, lL as FilterPill, Sve as Footer, RB as Gg, uL as GlassPill, GB as HN, MH as Help, QB as HintText, dIe as IDLE_POLL_MS, uTe as IDLE_REPAIR, rL as IconButton, EQ as IndexSearch, rV as Input, nV as InputBase, _$ as IssueRow, iM as JAV_LAYOUTS, H0 as JAV_RECOMMENDATION_GRID, vX as JUNK_KEY, mW as JavHeader, iTe as KEEP_LABELS, fge as L1, Hr as LAYOUTS, K1 as LIBRARY_FOLDER_HELP, JV as LIBRARY_PROCESSING_KEY, jY as LINKS_KEY, MY as LINK_CHECK_KEY, KTe as LINK_KINDS, NY as LINK_PRUNE_KEY, nr as LOC, ZB as Label, b$ as LibraryProcessingCard, wV as LibraryShortcuts, uH as LinkButton, Ige as Lo, CH as LoadingDots, wge as M6, ZTe as MEDIA_PROCESSING_KEY, YY as MEDIA_PROCESSING_URL, uY as MEDIA_REPAIR_KEY, lY as MEDIA_REPAIR_URL, yr as MEDIA_SOURCES_KEY, _s as MEDIA_SOURCE_ICONS, gn as MEDIA_SOURCE_OPTIONS, kV as MENU_ITEM, AV as MENU_ITEM_INTERACTIVE, OV as MENU_POPOVER_SURFACE, Rge as Ma, mH as MenuDialog, pK as MixCard, iV as ModalFrame, Sx as MotionConfigContext, YB as NR, g$ as NameLink, oV as Note, r_e as OA, QY as ORGANIZE_KEY, b2 as ORGANIZE_PARAMETER_HINT, y2 as ORGANIZE_SCOPE_HINT, v2 as ORGANIZE_TEXT, tX as ORPHAN_RECORDS_KEY, S2 as ORPHAN_RECORDS_TEXT, IB as OV, xB as P7, hX as PERFORMER_DELETE_KEY, zye as PHASES, BY as PICK_FOLDER_URL, s$ as PLAIN_STAT_STRIP, S$ as PLAYLISTS_KEY, oMe as POLICY_COLUMNS, cMe as POLICY_COVER_NOTE, sMe as POLICY_MATRIX, G1 as POLICY_SUMMARY, LJ as Pagination, y$ as PathLine, qB as Pf, MI as PillTabList, uAe as PlainStat, TH as Progress, hY as QUALITY_GOALS_KEY, KB as RB, z0 as RELEASE_COLUMN_VISIBILITY_KEY, R0 as RELEASE_COLUMN_WIDTHS_KEY, oW as RELEASE_SORTS, IMe as RELEASE_SORT_COLUMNS, l$ as REPAIR_CARD_TEXT, dY as REPAIR_LIBRARIES_KEY, oX as RESOURCE_APPLY_KEY, aX as RESOURCE_SCAN_KEY, x2 as RESOURCE_SYNC_TEXT, gAe as RESULT_PANEL, _Ae as RESULT_SECTION, bTe as REVIEW_CATEGORIES, _X as REVIEW_COUNTS_KEY, CTe as REVIEW_DECISION_LABELS, vY as REVIEW_KEY, yY as REVIEW_LABELS, xY as REVIEW_QUEUES, SY as REVIEW_QUEUE_LABELS, PG as RetryNote, t_e as Rf, XB as Rk, yve as Rows, D$ as SCRAPING_CHECK_ALL_URL, BAe as SCRAPING_CHECK_URL, O$ as SCRAPING_COVER_URL, k$ as SCRAPING_KEY, zAe as SCRAPING_SETTINGS_URL, tU as SEGMENT, eU as SEGMENTED_TRACK, GY as SETTINGS_KEY, VY as SETTINGS_URL, fr as SORT_DEFAULT_DIR, ur as SORT_OPTIONS, yn as SOURCE_LABELS, O3 as STATS_KEY, cAe as STAT_STRIP, lAe as STAT_STRIP_SIX, vve as Section, vAe as SectionHeading, xve as SectionSkeleton, $H as SegmentedRadioGroup, Hve as SegmentedTabList, DG as Segments, IJ as Select, zU as Select$1, e1 as SelectField, BU as SelectItem, KJ as SelectionActions, vj as SelectionDock, qJ as SelectionPopover, AH as SettingsCard, _ve as SettingsRow, jH as SettingsSectionLabel, OG as Shuffle, jve as SiteLabel, aG as SortDirectionIcon, kG as SortKeys, sQ as SourceAvatar, zH as SourceLabel, IH as SourceMark, bve as Stack, dAe as StatCard, v$ as StatusLabel, Qge as Su, o4 as Switch, VI as TASKS_KEY, eIe as TASTE_REFRESH_KEY, tIe as TASTE_WINDOWS, JY as THUMBNAIL_JOBS_KEY, bX as TRASH_KEY, Cpe as TRIGGER_LABELS, wJ as Table, JJ as TableColumnControls, YJ as TableColumnResizer, ZJ as TableSelectionHeader, qQ as TagManager, Tve as TaskCenterLink, EH as TaskProgress, eV as TextField, $B as TextFieldContext, PB as Un, n_e as Uz, eW as WANTS_KEY, x4 as WantMagnets, Jg as WithPromise, TB as Wt, MB as Xc, JB as Xf, DB as Xl, EB as Xt, CB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, WB as _p, e_e as aB, Ti as addAlias, wi as addSource, nW as addWant, dS as animate, B as apiGet, V as apiSend, Qj as appSettingsStore, zEe as applyConfirmText, mX as applyLeftovers, REe as applyPlanText, VEe as applyText, nM as applyTheme, yy as asNumber, DEe as attachOrphan, si as authorAvatar, li as authorGroups, oi as authorInitial, ai as authorName, fq as autoResetPageIndex, _o as avatarInner, P3 as bandRows, xEe as baseName, lTe as batchOperate, zue as beginPlayerGuidePreview, Cj as boundedPreference, oTe as bulkCloudPreferences, dV as busyProps, $ge as cB, kPe as cachedMagnetStates, Hg as calcGeneratorVelocity, ATe as canApprove, _g as cancelFrame, MEe as candidateText, yU as cardClass, _M as cardRatio, MJ as catalogListSkeletonCellHtml, jB as cc, Gi as checkEvidenceGap, Wi as checkFailures, Pi as checkFeeds, XTe as checkLine, Hi as checkReceipt, Ui as checkSummary, KAe as checkText, Ki as checkedText, eK as clickedBlank, e7 as closeDrawerAfterNav, Zwe as cloudLocations, E0 as cloudProxySkeleton, WC as clsx, Vge as cn, cv as collectMotionValues, Mq as columnVisibilityFeature, yJ as column_getCanSort, hJ as column_getSortFn, OTe as commonReviewSources, ZU as composingKey, Af as configurationSection, aIe as configureTasteBrowser, ll as confirmModal, xpe as controlTask, JK as copyInstancePropertiesWithoutMemos, lo as coverUrl, Cq as createColumnHelper, NAe as createPlaylist, Xi as credentialDone, S0 as credentialsSkeleton, zTe as currentReviewRow, J as cx, Tge as d6, BB as dZ, ITe as decisionPayload, LTe as decisionReceipt, FTe as defaultChoice, UEe as deletePerformerVideos, FAe as deletePlaylist, A0 as devicesSkeleton, x as diagnosticHeaders, W1 as diagnosticsSkeleton, Jye as discoveryArtwork, sW as discoveryKey, Gye as discoveryScore, p9 as disposeStage, nTe as distinctName, Bi as dropSources, Xge as du, sTe as duplicateVictims, JI as elapsedText, nn as entityDisplayName, go as entityFaceImg, Pn as entityPath, ei as errorHeadline, lr as errorMessage, z as esc, dq as expandRowModel, mB as f1, bo as facePos, $r as feedIntervalText, I$ as fetchAmaneBridge, F$ as fetchCheckAllJob, _i as fetchCheckJob, Z$ as fetchConfiguration, P$ as fetchCoverJob, gi as fetchCredentials, E$ as fetchCustomSources, gX as fetchDeletePerformers, HEe as fetchDeletePlan, TQ as fetchDiagnostics, cW as fetchDiscoveries, sY as fetchDuplicates, _pe as fetchEarlier, eEe as fetchFeedSchedule, ji as fetchFeeds, hi as fetchFollow, $Te as fetchFollowSchedule, SX as fetchJunkSummary, nH as fetchLibraryProcessing, IY as fetchLinkCheck, LY as fetchLinkPrune, FY as fetchLinkStats, QTe as fetchMediaProcessing, fY as fetchMediaRepair, br as fetchMediaSources, $Y as fetchOrganize, pEe as fetchOrganizeExample, nX as fetchOrphanRecords, Ai as fetchPending, C$ as fetchPlaylists, gY as fetchQualityGoals, dW as fetchReleases, pY as fetchRepairLibraries, vi as fetchResolveJob, cX as fetchResourceApply, sX as fetchResourceScan, OY as fetchReview, xX as fetchReviewCounts, XY as fetchSettings, N$ as fetchSources, k3 as fetchStats, yi as fetchSuggestions, UI as fetchTasks, e6 as fetchTaste, oIe as fetchTasteJob, tEe as fetchThumbnailJobs, CX as fetchTrashSummary, tW as fetchWants, ETe as filterReviewRows, er as firstGrapheme, AK as flexRender, xIe as flowGraph, SIe as flowLabel, bFe as fmtCount, Jn as fmtDur, Xn as fmtSize, gpe as foldByKind, Npe as foldRoutine, Ii as followFeedByName, Li as followFeedEntity, Vr as followSuggestKey, Fpe as followupDetail, hpe as followupTally, gg as frame, yB as g4, Fq as getDefaultPaginationState, gM as gridLayout, ci as groupByAuthor, Mpe as groupFollowups, TY as groupReviewRows, IEe as hasChanges, lX as hasResourceRoots, GI as hasResultProblems, fIe as historySpan, hB as i2, uIe as importTasteExport, C0 as indexersSkeleton, Rg as interpolate, iW as invalidateWants, qI as isActive, Qr as isBroken, Kr as isLayout, yv as isMotionValue, bY as isReviewCategory, Ppe as isRoutine, w0 as javBrowserSkeleton, W0 as javContentSkeleton, lM as javLayout, U0 as javTagSkeleton, JEe as junkBreakdown, $we as keepGroup, IAe as keepPlaylist, ke as keepPreviousData, fi as keepSelected, A3 as known, dge as l1, vge as l7, jpe as latestOfKind, $n as leadingGraphemes, MFe as lengthRows, Cr as localTime, po as logoUrl, Fi as lookupFeedActor, bB as m7, zB as mM, Dn as mapLimit, ki as markItem, F3 as max, AFe as mediumRows, vpe as mergeFinished, I3 as min, WTe as mirrorText, pTe as missingToolText, cY as mixedCloudPreferences, QI as momentText, fS as motion, uv as motionValue, rn as nameFallback, Ue as notifyManager, Ege as oe, CEe as organizeOutcome, o2 as overlayHost, qr as pageSizeOf, di as pageWindow, hr as paginationRange, zi as patchSource, Np as peachHistory, Np as peachHistory$1, PTe as pendingGenres, SFe as percentText, gEe as pickOrganizeFolder, o$ as plainStatClass, SEe as planSummary, j3 as playedFor, wFe as playedItemUrl, HI as pollInterval, Ys as popCount, MAe as posterUrl, xxe as previewLibraryColor, hEe as previewOrganize, gTe as previewUrl, kpe as problemDestination, ZV as processingActive, YI as progressText, RH as providerIcon, YTe as pruneText, dX as purgeCount, OEe as purgeOrphan, HB as pv, Yge as qE, H as queryClient, gB as r2, vIe as radarRows, DFe as radialArc, OFe as radialBarSize, EFe as radialCeiling, TFe as radialSlices, MN as randomId, gIe as rankDetail, _Ie as rankShares, N3 as reachedShare, XI as readableErrorHeadline, Kye as recommendationScore, BTe as recordGenre, AEe as recordsText, LAe as recreatePlaylist, AAe as refreshPlaylists, El as relayoutCovers, B0 as releaseColumns, lW as releaseFilters, uW as releaseKey, Vi as reloadFollowManage, UTe as reloadReview, dMe as rememberShape, vEe as rememberTemplates, Ei as removeAlias, Ni as removeFeed, Ci as removeSource, lIe as removeTasteSource, rW as removeWants, Di as renameAliasGroup, PAe as renamePlaylist, Se as replaceEqualDeep, PFe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, WK as require_with_selector, Hye as resetWants, mr as resolveFollowSort, Gg as resolveStartTime, $_e as restartEffectText, jAe as resumeAssetId, TTe as reviewGroupingOptions, wY as reviewQueueData, CY as reviewQueueOf, qEe as reviewSummary, DTe as reviewWindow, MTe as rowEvidence, DY as rowFieldName, Hq as rowPaginationFeature, lJ as rowSelectionFeature, SJ as rowSortingFeature, EY as rowSubject, NTe as rowTags, jTe as rowTitle, hge as s5, Oi as saveCredential, LEe as scanLine, oEe as schedulePollInterval, Wye as searchNote, kTe as selectReviewRange, pi as selectionState, Mi as setFeedEnabled, Si as setSourceEnabled, Pf as settingsPath, HTe as settleReviewRows, tTe as sharedNamePrefix, Pp as shellNavigate, O8 as showToast, Bn as siteMarkUrl, nq as skipFirstRun, AI as sortCx, Yr as sortLabel, bn as sourceDefaultCost, Ji as sourceIconUrl, BEe as sourceMeta, Bs as spinnerHtml, Ig as spring, lV as spriteGlyph, bi as startCheck, qTe as startLinkCheck, JTe as startLinkPrune, _Ee as startOrganize, xi as startResolve, PEe as startResourceApply, NEe as startResourceScan, cIe as startTasteRefresh, sAe as statCardClass, Tpe as statusLabel, fTe as statusLine, Zr as statusText, vM as storeJavLayout, RTe as submitDecision, $I as summaryItems, wq as tableFeatures, rq as tableMemo, ui as tableRows, Ope as taskIssues, Ape as taskSubject, t6 as tasteDate, mIe as tasteDimensions, pIe as tasteHours, $3 as tasteKey, rIe as tasteRefetchInterval, iIe as tasteTime, II as textLang, L0 as tierPlaceholdersHtml, ch as time, Mge as tl, mi as toggleGroup, n6 as topScores, Uge as um, Lge as uo, dH as useAction, SZ as useBackgroundJob, nG as useCatalogView, jU as useClientUpdates, bm as useConstant, eL as useEntityNames, oL as useHorizontalScroller, xm as useIsomorphicLayoutEffect, $G as useLibraryTints, It as useMutation, IV as useOverlayScrollbar, Ft as useQuery, ae as useQueryClient, eS as useReducedMotion, aEe as useRunSchedule, rEe as useSaveFollowSchedule, ZY as useSaveSettings, sEe as useSaveThumbnailMode, CJ as useTable, HJ as useTablePreferences, pL as useViewGlide, cTe as victimBytes, Nge as vl, Uye as wantName, CFe as watchNote, M3 as watchedShare, Dge as we, Ac as wireHorizontalScroller, yEe as withOrganizeJob, qye as writeJavQuery, Cge as z3 };
-//# debugId=4da45773-833b-4c0d-aaee-0cb9022e79fa
\ No newline at end of file
+//# debugId=9d01e971-811f-408a-a151-37170638dc5e
\ No newline at end of file