Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(duplicates): 重复组可标记都保留,组员有增减时自动重新列出

longmeidao0d6aa3adb286
diff --git a/frontend/src/react/duplicates/duplicates-page.tsx b/frontend/src/react/duplicates/duplicates-page.tsx
index 076bc5213..9a182fbb3 100644
--- a/frontend/src/react/duplicates/duplicates-page.tsx
+++ b/frontend/src/react/duplicates/duplicates-page.tsx
@@ -1,7 +1,8 @@
/* 重复文件页:同番号、时长相近、分卷标记一致的几份文件归成一组,每组挑一个留下。
*
* 顶上一块汇总、一条批量保留的玻璃条,下面每组一张卡:组头说明判据与可回收多少,行里是
- * 每一份文件。留谁由人点;其余的走 `/api/batch` 的 `dispose` 进回收站,回执上带撤销。 */
+ * 每一份文件。留谁由人点;其余的走 `/api/batch` 的 `dispose` 进回收站,回执上带撤销。
+ * 几份都要留的点「都保留」,这组不再列出,组员有增减时自己回来。 */
import { useState } from 'react';
import { useMutation, useQuery } from '@tanstack/react-query';
import { confirmModal, MEDIA_SOURCE_ICONS } from '@peach/legacy/ui';
@@ -24,7 +25,7 @@ import { queryClient } from '../query';
import { SourceMark } from '../settings/section';
import { busyProps } from '../settings/use-action';
import {
- batchOperate, bulkCloudPreferences, distinctName, DUPLICATES_KEY, duplicateVictims, fetchDuplicates, KEEP_LABELS,
+ batchOperate, bulkCloudPreferences, distinctName, DUPLICATES_KEY, duplicateVictims, fetchDuplicates, keepGroup, KEEP_LABELS,
mixedCloudPreferences, sharedNamePrefix, victimBytes, type DuplicateFile, type DuplicateGroup, type KeepRule,
} from './duplicates';
@@ -116,6 +117,26 @@ export function DuplicatesPage({ openItem, toast, failure }: DuplicatesProps) {
},
onSettled: () => setPending(''),
});
+ // 「都保留」不进回收站,只是让这组不再列出;回执上撤销就把它放回来。
+ const keep = useMutation({
+ mutationFn: (group: DuplicateGroup) => keepGroup(group.files.map((file) => file.id), true),
+ onSuccess: (_result, group) => {
+ refresh();
+ toast(`${group.code} 这组都保留,不再列出`, {
+ undo: async () => {
+ try {
+ await keepGroup(group.files.map((file) => file.id), false);
+ } catch (cause) {
+ failure('撤销都保留', cause);
+ } finally {
+ refresh();
+ }
+ },
+ });
+ },
+ onError: (cause) => failure('标记都保留', cause),
+ onSettled: () => setPending(''),
+ });
const data = duplicates.data;
if (!data) {
@@ -140,7 +161,12 @@ export function DuplicatesPage({ openItem, toast, failure }: DuplicatesProps) {
onConfirm: () => { setPending(key); return dispose.mutateAsync(ids) },
});
};
- const busy = (key: string) => busyProps(pending === key && dispose.isPending);
+ const busy = (key: string) => busyProps(pending === key && (dispose.isPending || keep.isPending));
+ const keepAll = (group: DuplicateGroup, key: string) => {
+ if (keep.isPending || dispose.isPending) return;
+ setPending(key);
+ keep.mutate(group);
+ };
return (
<div className="mx-auto w-full max-w-board pb-10.5">
@@ -192,6 +218,8 @@ export function DuplicatesPage({ openItem, toast, failure }: DuplicatesProps) {
<SourceLabel source={location} label={`留 ${LOC[location] || location}`} />
</Button>
))}
+ <Button variant="secondary" size="small" {...busy(key('keep'))}
+ onClick={() => keepAll(group, key('keep'))}>都保留</Button>
<Button variant="danger" size="small" {...busy(key('all'))}
onClick={() => run({ groups: one, keep: 'all', key: key('all') })}>整组回收</Button>
</span>
@@ -208,6 +236,11 @@ export function DuplicatesPage({ openItem, toast, failure }: DuplicatesProps) {
{`显示可回收最多的前 ${groups.length.toLocaleString()} 组,共 ${Number(data.total).toLocaleString()} 组;处理掉这些后,其余的会补上来。`}
</p>
: null}
+ {data.kept
+ ? <p className="mt-2 text-center text-caption-1-regular text-text-secondary">
+ {`另有 ${data.kept.toLocaleString()} 组标记了都保留,不再列出;组里文件有增减时会重新列出。`}
+ </p>
+ : null}
</div>
);
}
diff --git a/frontend/src/react/duplicates/duplicates.ts b/frontend/src/react/duplicates/duplicates.ts
index c9150960b..db5fbfa5a 100644
--- a/frontend/src/react/duplicates/duplicates.ts
+++ b/frontend/src/react/duplicates/duplicates.ts
@@ -51,8 +51,14 @@ export interface DuplicatesData {
reclaimable: number;
groups: DuplicateGroup[];
has_more?: boolean;
+ /** 标过「都保留」、组员没变的组数,不计入上面各项。 */
+ kept?: number;
}
+/** 整组标记都保留,或撤销这个标记。服务端按组员 id 集合记,组员变了这组会自己回来。 */
+export const keepGroup = (ids: readonly number[], keep: boolean) =>
+ apiSend(BATCH_URL, { ids, operation: keep ? 'keep-duplicates' : 'reconsider-duplicates' });
+
export const fetchDuplicates = (signal?: AbortSignal) =>
apiGet<DuplicatesData>(DUPLICATES_URL, signal);
diff --git a/frontend/test/react/duplicates.test.tsx b/frontend/test/react/duplicates.test.tsx
index e56bf65e8..ff60c5108 100644
--- a/frontend/test/react/duplicates.test.tsx
+++ b/frontend/test/react/duplicates.test.tsx
@@ -170,6 +170,30 @@ it('取消确认就什么都不发', async () => {
expect(fetcher.mock.calls.some((call) => call[0] === '/api/batch')).toBe(false);
});
+it('「都保留」不进回收站也不弹确认,整组一条;回执撤销发回同一组', async () => {
+ const confirm = vi.spyOn(legacyUi, 'confirmModal');
+ const fetcher = fetchMock(200, { ok: true });
+ vi.stubGlobal('fetch', fetcher);
+ const { host, toast } = await open();
+ await click(buttonNamed('都保留', card(host, 'ABC-002')));
+ await settle();
+ expect(confirm).not.toHaveBeenCalled();
+ const batches = () => fetcher.mock.calls.flatMap((call, index) => (call[0] === '/api/batch' ? [sentBody(fetcher, index)] : []));
+ expect(batches()).toEqual([{ ids: [3, 4], operation: 'keep-duplicates' }]);
+ expect(toast).toHaveBeenCalledWith('ABC-002 这组都保留,不再列出', expect.objectContaining({ undo: expect.any(Function) }));
+ const { undo } = toast.mock.calls[0]![1] as { undo(): Promise<void> };
+ await undo();
+ expect(batches().at(-1)).toEqual({ ids: [3, 4], operation: 'reconsider-duplicates' });
+});
+
+it('标过都保留的组数写在页尾,空态时也写', async () => {
+ vi.stubGlobal('fetch', fetchMock(200, {}));
+ const { host } = await open({ total: 0, files: 0, reclaimable: 0, groups: [], kept: 3 });
+ expect(host.textContent).toContain('另有 3 组标记了都保留,不再列出;组里文件有增减时会重新列出。');
+ const plain = await open();
+ expect(plain.host.textContent).not.toContain('标记了都保留');
+});
+
it('点封面或文件名打开那一项', async () => {
vi.stubGlobal('fetch', fetchMock(200, {}));
const { host, openItem } = await open();
diff --git a/src/peach/web_batch.py b/src/peach/web_batch.py
index a80e7fb74..e3da4e6eb 100644
--- a/src/peach/web_batch.py
+++ b/src/peach/web_batch.py
@@ -65,9 +65,18 @@ BATCH_LABELS = {
"like": "批量标记喜欢", "seen": "批量标记看过", "later": "批量加入稍后看",
"dispose": "批量移入回收站", "restore": "批量还原", "delete": "批量永久删除",
"dismiss-junk": "批量确认不是垃圾", "reconsider-junk": "批量重新判定垃圾",
+ "keep-duplicates": "重复组标记都保留", "reconsider-duplicates": "重复组重新列出",
"region": "批量判定产地",
}
+#: 重复组「都保留」记在 `review_decision` 的这一类下,键是组员 id 升序连写。组里文件一增一减,
+#: 键就对不上,这组自动回到列表(做法参考 SakuraMedia `608abc0bfb`)。
+DUPLICATE_KEEP_CATEGORY = "duplicate_group"
+
+
+def duplicate_group_key(ids) -> str:
+ return ",".join(str(asset_id) for asset_id in sorted(int(asset_id) for asset_id in ids))
+
def q_ads(contract: WebContract, limit=200, offset=0, kind="", status="pending"):
"""疑似垃圾复核队列 —— **不自动删**,只排队让人看证据确认。
@@ -501,6 +510,9 @@ def _reject_ineligible_targets(operation: str, rows) -> None:
row["location"] not in SCANNABLE_LOCATIONS
or row["disposal"] is not None for row in rows):
raise ValueError("junk decisions are only allowed for active physical assets")
+ if operation in {"keep-duplicates", "reconsider-duplicates"} and (
+ len(rows) < 2 or any(row["disposal"] is not None for row in rows)):
+ raise ValueError("duplicate decisions need a whole group of active assets")
def _batch_disposal_reason(body):
@@ -513,6 +525,27 @@ def _batch_disposal_reason(body):
return reason
+#: 只在 `review_decision` 里记一笔或撤一笔、不碰 asset 行的几种批量操作。
+REVIEW_MARKS = frozenset({"dismiss-junk", "reconsider-junk", "keep-duplicates", "reconsider-duplicates"})
+
+
+def _write_review_mark(connection, operation, ids, now):
+ """「不是垃圾」按文件一条;「都保留」按整组一条,键随组员走。"""
+ stamp = time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime(now))
+ upsert = ("INSERT INTO review_decision(category,item_key,status,note,updated_at) "
+ "VALUES(?,?,'rejected',?,?) ON CONFLICT(category,item_key) DO UPDATE SET "
+ "status='rejected',note=excluded.note,updated_at=excluded.updated_at")
+ remove = "DELETE FROM review_decision WHERE category=? AND item_key=?"
+ if operation == "dismiss-junk":
+ connection.executemany(upsert, [("junk_file", str(i), "用户确认不是垃圾", stamp) for i in ids])
+ elif operation == "reconsider-junk":
+ connection.executemany(remove, [("junk_file", str(i)) for i in ids])
+ elif operation == "keep-duplicates":
+ connection.execute(upsert, (DUPLICATE_KEEP_CATEGORY, duplicate_group_key(ids), "用户确认这组都保留", stamp))
+ else:
+ connection.execute(remove, (DUPLICATE_KEEP_CATEGORY, duplicate_group_key(ids)))
+
+
def _write_batch_state(connection, rows, operation, now, disposal_reason):
"""同一事务写入反馈或回收站状态,并保留还原操作的撤销信息。"""
ids = [row["id"] for row in rows]
@@ -543,8 +576,7 @@ def w_batch(contract: WebContract, body):
raise ValueError("batch requires 1 to 200 assets")
operation = body.get("operation")
if operation not in {
- "like", "seen", "later", "dispose", "restore", "delete",
- "dismiss-junk", "reconsider-junk", "region",
+ "like", "seen", "later", "dispose", "restore", "delete", "region", *REVIEW_MARKS,
}:
raise ValueError("unsupported batch operation")
# 产地的取值在这里就要认出来,别等到写库那一步才发现拼错了。
@@ -580,20 +612,8 @@ def w_batch(contract: WebContract, body):
# 下一轮扫描会把它们接回在库。选中里有一条已消失的,整批都按这条口径删。
purge_outcome = purge_assets(
connection, found, missing_only=any(row["disposal"] == VANISHED for row in found))
- elif operation == "dismiss-junk":
- connection.executemany(
- "INSERT INTO review_decision(category,item_key,status,note,updated_at) "
- "VALUES('junk_file',?,'rejected','用户确认不是垃圾',?) "
- "ON CONFLICT(category,item_key) DO UPDATE SET "
- "status='rejected',note=excluded.note,updated_at=excluded.updated_at",
- [(str(asset_id), time.strftime("%Y-%m-%dT%H:%M:%SZ", time.gmtime(now)))
- for asset_id in valid_ids],
- )
- elif operation == "reconsider-junk":
- connection.executemany(
- "DELETE FROM review_decision WHERE category='junk_file' AND item_key=?",
- [(str(asset_id),) for asset_id in valid_ids],
- )
+ elif operation in REVIEW_MARKS:
+ _write_review_mark(connection, operation, valid_ids, now)
elif operation == "region":
# 走 `write_owned_fields` 而不是直接 UPDATE:产地是真相字段,用户这一
# 笔要压得住后面每一轮刮削与推断,归属列是它唯一的凭据。
@@ -700,6 +720,9 @@ def q_duplicates(contract: WebContract, args):
"FROM asset WHERE medium='video' AND code IS NOT NULL AND code<>'' "
"AND disposal IS NULL"
).fetchall()
+ kept = {row[0] for row in connection.execute(
+ "SELECT item_key FROM review_decision WHERE category=? AND status='rejected'",
+ (DUPLICATE_KEEP_CATEGORY,))}
grouped: dict[str, list[dict]] = {}
for row in rows:
@@ -710,7 +733,8 @@ def q_duplicates(contract: WebContract, args):
item["drive"] = str(item.get("path") or "")[:2].upper()
grouped.setdefault(normalise_code_key(row["code"]), []).append(item)
- groups = _duplicate_groups(grouped)
+ found = _duplicate_groups(grouped)
+ groups = [g for g in found if duplicate_group_key(f["id"] for f in g["files"]) not in kept]
groups.sort(key=lambda g: -g["reclaimable"])
window = groups[offset:offset + limit]
return {
@@ -719,4 +743,6 @@ def q_duplicates(contract: WebContract, args):
"reclaimable": sum(g["reclaimable"] for g in groups),
"groups": window,
"has_more": offset + limit < len(groups),
+ # 标过「都保留」、组员没变的组数;它们不进上面任何一项。
+ "kept": len(found) - len(groups),
}
diff --git a/tests/test_rm_web.py b/tests/test_rm_web.py
index 6c70b82c3..57d8ad826 100644
--- a/tests/test_rm_web.py
+++ b/tests/test_rm_web.py
@@ -3596,6 +3596,30 @@ class DuplicateDetectionTests(unittest.TestCase):
self.assertTrue(group["cross_drive"])
self.assertEqual(group["drives"], ["A:", "B:"])
+ def test_kept_group_leaves_the_list_until_its_members_change(self):
+ first = self.add("SSIS-057", 7200, 5_000_000_000, drive="A")
+ second = self.add("SSIS-057", 7200, 4_000_000_000, drive="B")
+ other = [self.add("ABW-232", 7200, 5_000_000_000), self.add("ABW-232", 7200, 3_000_000_000)]
+ rm_web.w_batch(self.contract, {"ids": [second, first], "operation": "keep-duplicates"})
+ result = self.groups()
+ self.assertEqual([group["code"] for group in result["groups"]], ["ABW-232"])
+ self.assertEqual((result["total"], result["files"], result["kept"]), (1, 2, 1),
+ "标过都保留的组不计入组数、文件数与可回收")
+ self.assertEqual(result["reclaimable"], 3_000_000_000)
+
+ third = self.add("SSIS-057", 7200, 3_000_000_000, drive="C")
+ result = self.groups()
+ self.assertEqual(result["kept"], 0, "多出一份副本,这组要重新列出")
+ regrouped = next(group for group in result["groups"] if group["code"] == "SSIS-057")
+ self.assertEqual({item["id"] for item in regrouped["files"]}, {first, second, third})
+
+ rm_web.w_batch(self.contract, {"ids": [first, second, third], "operation": "keep-duplicates"})
+ self.assertEqual(self.groups()["kept"], 1)
+ rm_web.w_batch(self.contract, {"ids": [first, second, third], "operation": "reconsider-duplicates"})
+ self.assertEqual(self.groups()["total"], 2, "撤销后这组回到列表")
+ with self.assertRaises(ValueError):
+ rm_web.w_batch(self.contract, {"ids": other[:1], "operation": "keep-duplicates"})
+
def test_duplicate_rows_keep_the_full_path_for_review(self):
self.add("SSIS-057", 7200, 5_000_000_000, drive="A")
self.add("SSIS-057", 7200, 4_000_000_000, drive="B")
diff --git a/web/dist/peach-app.duplicates-page-Bau8HIlx.js b/web/dist/peach-app.duplicates-page-BHkh7UmS.js
similarity index 52%
rename from web/dist/peach-app.duplicates-page-Bau8HIlx.js
rename to web/dist/peach-app.duplicates-page-BHkh7UmS.js
index 6491e37ea..52b96e87b 100644
--- a/web/dist/peach-app.duplicates-page-Bau8HIlx.js
+++ b/web/dist/peach-app.duplicates-page-BHkh7UmS.js
@@ -1,47 +1,47 @@
(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] = "403de930-50fc-40ec-8f97-73d7799bb414", e._sentryDebugIdIdentifier = "sentry-dbid-403de930-50fc-40ec-8f97-73d7799bb414");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "29f77252-37e1-43ad-aebd-9097d9469dab", e._sentryDebugIdIdentifier = "sentry-dbid-29f77252-37e1-43ad-aebd-9097d9469dab");
} catch {}
})();
-import { Button as e, CollectionSummary as t, DUPLICATES_KEY as n, EmptyState as r, FilterGlass as i, GlassPill as a, KEEP_LABELS as o, LOC as s, MEDIA_SOURCES_KEY as c, MEDIA_SOURCE_ICONS as l, Note as u, SourceLabel as d, SourceMark as f, TRASH_KEY as p, __toESM as m, batchOperate as h, bulkCloudPreferences as g, busyProps as _, cardClass as v, cloudLocations as y, confirmModal as b, distinctName as x, duplicateVictims as S, errorMessage as C, fetchDuplicates as w, fetchMediaSources as T, fmtDur as E, fmtSize as D, mixedCloudPreferences as O, queryClient as k, require_jsx_runtime as A, require_react as j, sharedNamePrefix as M, spriteGlyph as N, useMutation as P, useQuery as F, victimBytes as I } from "./peach-app.js";
+import { Button as e, CollectionSummary as t, DUPLICATES_KEY as n, EmptyState as r, FilterGlass as i, GlassPill as a, KEEP_LABELS as o, LOC as s, MEDIA_SOURCES_KEY as c, MEDIA_SOURCE_ICONS as l, Note as u, SourceLabel as d, SourceMark as f, TRASH_KEY as p, __toESM as m, batchOperate as h, bulkCloudPreferences as g, busyProps as _, cardClass as v, cloudLocations as y, confirmModal as b, distinctName as x, duplicateVictims as S, errorMessage as C, fetchDuplicates as w, fetchMediaSources as T, fmtDur as E, fmtSize as D, keepGroup as O, mixedCloudPreferences as k, queryClient as A, require_jsx_runtime as j, require_react as M, sharedNamePrefix as N, spriteGlyph as P, useMutation as F, useQuery as I, victimBytes as L } from "./peach-app.js";
// src/react/duplicates/duplicates-page.tsx
-var L = /* @__PURE__ */ m(j(), 1), R = A(), z = N("play"), B = N("file-stack"), V = v({
+var R = /* @__PURE__ */ m(M(), 1), z = j(), B = P("play"), V = P("file-stack"), H = v({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
-}), H = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", U = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", W = "font-mono text-caption-1-regular leading-5 text-text-secondary", G = () => {
- k.invalidateQueries({
+}), U = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", W = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", G = "font-mono text-caption-1-regular leading-5 text-text-secondary", K = () => {
+ A.invalidateQueries({
queryKey: n,
exact: !0
- }), k.invalidateQueries({
+ }), A.invalidateQueries({
queryKey: p,
exact: !0
});
};
-function K(e) {
- return e.identical ? /* @__PURE__ */ (0, R.jsx)("span", {
- className: `${U} text-(--keep)`,
+function q(e) {
+ return e.identical ? /* @__PURE__ */ (0, z.jsx)("span", {
+ className: `${W} text-(--keep)`,
children: "sha1 一致"
- }) : /* @__PURE__ */ (0, R.jsx)("span", {
- className: `${U} text-text-secondary`,
+ }) : /* @__PURE__ */ (0, z.jsx)("span", {
+ className: `${W} text-text-secondary`,
children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"
});
}
-function q({ file: e, prefix: t, openItem: n }) {
+function J({ file: e, prefix: t, openItem: n }) {
let r = () => n(e.id), i = s[e.location] || e.location || e.drive;
- return /* @__PURE__ */ (0, R.jsxs)("div", {
+ return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",
children: [
- /* @__PURE__ */ (0, R.jsxs)("button", {
+ /* @__PURE__ */ (0, z.jsxs)("button", {
type: "button",
onClick: r,
"aria-label": `预览 ${e.name}`,
className: "relative row-span-2 inline-grid aspect-16/10 w-full cursor-pointer place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default text-text-secondary",
- children: [/* @__PURE__ */ (0, R.jsx)(z, {
+ children: [/* @__PURE__ */ (0, z.jsx)(B, {
"aria-hidden": !0,
className: "size-6"
- }), /* @__PURE__ */ (0, R.jsx)("img", {
+ }), /* @__PURE__ */ (0, z.jsx)("img", {
src: `/thumb?id=${e.id}&c=4`,
alt: "",
loading: "lazy",
@@ -49,9 +49,9 @@ function q({ file: e, prefix: t, openItem: n }) {
className: "absolute inset-0 size-full object-contain"
})]
}),
- /* @__PURE__ */ (0, R.jsxs)("span", {
+ /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex min-w-0 items-center gap-2 max-duplicate-narrow:col-start-2 max-duplicate-narrow:-col-end-1",
- children: [/* @__PURE__ */ (0, R.jsx)("button", {
+ children: [/* @__PURE__ */ (0, z.jsx)("button", {
type: "button",
onClick: r,
title: e.name,
@@ -59,196 +59,220 @@ function q({ file: e, prefix: t, openItem: n }) {
"data-middle-truncate-within": !0,
className: "min-w-0 shrink cursor-pointer truncate text-left text-body-regular hover:text-text-secondary",
children: x(e.name, t)
- }), e.is_largest || e.is_longest ? /* @__PURE__ */ (0, R.jsxs)("span", {
+ }), e.is_largest || e.is_longest ? /* @__PURE__ */ (0, z.jsxs)("span", {
className: "flex flex-none gap-1",
- children: [e.is_largest ? /* @__PURE__ */ (0, R.jsx)("i", {
- className: `${H} not-italic bg-background-primary-hover text-text-secondary`,
+ children: [e.is_largest ? /* @__PURE__ */ (0, z.jsx)("i", {
+ className: `${U} not-italic bg-background-primary-hover text-text-secondary`,
children: "最大"
- }) : null, e.is_longest ? /* @__PURE__ */ (0, R.jsx)("i", {
- className: `${H} not-italic bg-(--keep)/22 text-(--keep)`,
+ }) : null, e.is_longest ? /* @__PURE__ */ (0, z.jsx)("i", {
+ className: `${U} not-italic bg-(--keep)/22 text-(--keep)`,
children: "最长"
}) : null]
}) : null]
}),
- /* @__PURE__ */ (0, R.jsxs)("span", {
- className: `${W} flex min-w-0 items-center gap-1.5`,
- children: [/* @__PURE__ */ (0, R.jsx)(f, { mark: l[e.location] || "database" }), /* @__PURE__ */ (0, R.jsx)("span", {
+ /* @__PURE__ */ (0, z.jsxs)("span", {
+ className: `${G} flex min-w-0 items-center gap-1.5`,
+ children: [/* @__PURE__ */ (0, z.jsx)(f, { mark: l[e.location] || "database" }), /* @__PURE__ */ (0, z.jsx)("span", {
title: i,
className: "min-w-0 truncate",
children: i
})]
}),
- /* @__PURE__ */ (0, R.jsx)("span", {
- className: W,
+ /* @__PURE__ */ (0, z.jsx)("span", {
+ className: G,
children: D(e.size || 0)
}),
- /* @__PURE__ */ (0, R.jsx)("span", {
- className: W,
+ /* @__PURE__ */ (0, z.jsx)("span", {
+ className: G,
children: E(e.duration)
}),
- /* @__PURE__ */ (0, R.jsx)("span", {
- className: `${W} col-start-2 -col-end-1 min-w-0 pt-0.5 wrap-anywhere max-duplicate-narrow:col-span-full`,
+ /* @__PURE__ */ (0, z.jsx)("span", {
+ className: `${G} col-start-2 -col-end-1 min-w-0 pt-0.5 wrap-anywhere max-duplicate-narrow:col-span-full`,
children: e.path ?? ""
})
]
});
}
-function J({ openItem: l, toast: f, failure: p }) {
- let m = F({
+function Y({ openItem: l, toast: f, failure: p }) {
+ let m = I({
queryKey: n,
queryFn: ({ signal: e }) => w(e)
- }), v = F({
+ }), v = I({
queryKey: c,
queryFn: ({ signal: e }) => T(e)
- }), [x, E] = (0, L.useState)(""), k = P({
+ }), [x, E] = (0, R.useState)(""), A = F({
mutationFn: (e) => h(e, "dispose"),
onSuccess: (e, t) => {
- G(), f(`已把 ${t.length} 项移入回收站`, { undo: async () => {
+ K(), f(`已把 ${t.length} 项移入回收站`, { undo: async () => {
try {
await h(t, "restore");
} catch (e) {
p("撤销移入回收站", e);
} finally {
- G();
+ K();
}
} });
},
onSettled: () => E("")
- }), A = m.data;
- if (!A) return /* @__PURE__ */ (0, R.jsx)("div", {
+ }), j = F({
+ mutationFn: (e) => O(e.files.map((e) => e.id), !0),
+ onSuccess: (e, t) => {
+ K(), f(`${t.code} 这组都保留,不再列出`, { undo: async () => {
+ try {
+ await O(t.files.map((e) => e.id), !1);
+ } catch (e) {
+ p("撤销都保留", e);
+ } finally {
+ K();
+ }
+ } });
+ },
+ onError: (e) => p("标记都保留", e),
+ onSettled: () => E("")
+ }), M = m.data;
+ if (!M) return /* @__PURE__ */ (0, z.jsx)("div", {
className: "mx-auto w-full max-w-board",
- children: /* @__PURE__ */ (0, R.jsx)(u, {
+ children: /* @__PURE__ */ (0, z.jsx)(u, {
tone: "error",
title: "重复文件读取失败",
children: m.error ? C(m.error) : "未取得重复文件列表,请刷新页面重试。"
})
});
- let j = A.groups ?? [], N = y(v.data), z = ({ groups: e, keep: t, key: n }) => {
- if (k.isPending) return;
+ let P = M.groups ?? [], B = y(v.data), U = ({ groups: e, keep: t, key: n }) => {
+ if (A.isPending) return;
let r = S(e, t);
r.length && b({
title: "移入回收站",
- body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${o[t] ?? o.largest}。文件共 ${D(I(e, r))},记录可从回收站还原。`,
+ body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${o[t] ?? o.largest}。文件共 ${D(L(e, r))},记录可从回收站还原。`,
confirmLabel: "移入回收站",
- onConfirm: () => (E(n), k.mutateAsync(r))
+ onConfirm: () => (E(n), A.mutateAsync(r))
});
- }, H = (e) => _(x === e && k.isPending);
- return /* @__PURE__ */ (0, R.jsxs)("div", {
+ }, G = (e) => _(x === e && (A.isPending || j.isPending)), Y = (e, t) => {
+ j.isPending || A.isPending || (E(t), j.mutate(e));
+ };
+ return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "mx-auto w-full max-w-board pb-10.5",
children: [
- /* @__PURE__ */ (0, R.jsx)(t, {
+ /* @__PURE__ */ (0, z.jsx)(t, {
label: "重复内容",
- figure: `${Number(A.total || 0).toLocaleString()} 组`,
- detail: `${Number(A.files || 0).toLocaleString()} 个文件 · 可回收 ${D(A.reclaimable)}`
+ figure: `${Number(M.total || 0).toLocaleString()} 组`,
+ detail: `${Number(M.files || 0).toLocaleString()} 个文件 · 可回收 ${D(M.reclaimable)}`
}),
- j.length ? /* @__PURE__ */ (0, R.jsxs)(i, {
+ P.length ? /* @__PURE__ */ (0, z.jsxs)(i, {
title: "批量保留",
children: [
- /* @__PURE__ */ (0, R.jsx)(a, {
+ /* @__PURE__ */ (0, z.jsx)(a, {
busy: x === "all:largest",
- onPress: () => z({
- groups: j,
+ onPress: () => U({
+ groups: P,
keep: "largest",
key: "all:largest"
}),
children: "全部保留最大"
}),
- /* @__PURE__ */ (0, R.jsx)(a, {
+ /* @__PURE__ */ (0, z.jsx)(a, {
busy: x === "all:longest",
- onPress: () => z({
- groups: j,
+ onPress: () => U({
+ groups: P,
keep: "longest",
key: "all:longest"
}),
children: "全部保留最长"
}),
- g(j, N).map((e) => /* @__PURE__ */ (0, R.jsx)(a, {
+ g(P, B).map((e) => /* @__PURE__ */ (0, z.jsx)(a, {
busy: x === `all:${e}`,
- onPress: () => z({
- groups: j,
+ onPress: () => U({
+ groups: P,
keep: e,
key: `all:${e}`
}),
- children: /* @__PURE__ */ (0, R.jsx)(d, {
+ children: /* @__PURE__ */ (0, z.jsx)(d, {
source: e,
label: `全部优先 ${s[e] || e}`
})
}, e))
]
}) : null,
- k.isError ? /* @__PURE__ */ (0, R.jsx)("div", {
+ A.isError ? /* @__PURE__ */ (0, z.jsx)("div", {
className: "mb-5",
- children: /* @__PURE__ */ (0, R.jsx)(u, {
+ children: /* @__PURE__ */ (0, z.jsx)(u, {
tone: "error",
title: "移入回收站失败",
- children: C(k.error)
+ children: C(A.error)
})
}) : null,
- j.length ? j.map((t, n) => {
- let r = [t], i = M(t.files.map((e) => e.name)), a = (e) => `${n}:${e}`;
- return /* @__PURE__ */ (0, R.jsxs)("section", {
+ P.length ? P.map((t, n) => {
+ let r = [t], i = N(t.files.map((e) => e.name)), a = (e) => `${n}:${e}`;
+ return /* @__PURE__ */ (0, z.jsxs)("section", {
"aria-label": t.code,
- className: V,
- children: [/* @__PURE__ */ (0, R.jsxs)("div", {
+ className: H,
+ children: [/* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default",
children: [
- /* @__PURE__ */ (0, R.jsx)("b", {
+ /* @__PURE__ */ (0, z.jsx)("b", {
className: "text-title-2-medium text-text-primary",
children: t.code
}),
- /* @__PURE__ */ (0, R.jsx)("span", {
+ /* @__PURE__ */ (0, z.jsx)("span", {
className: "font-mono text-caption-1-regular leading-5 text-text-primary",
children: `${Number(t.count || 0).toLocaleString()} 个 · 可回收 ${D(t.reclaimable)}`
}),
- K(t),
- t.cross_drive ? /* @__PURE__ */ (0, R.jsx)("span", {
- className: `${U} text-text-secondary`,
+ q(t),
+ t.cross_drive ? /* @__PURE__ */ (0, z.jsx)("span", {
+ className: `${W} text-text-secondary`,
children: `跨盘 ${t.drives.join(" ")}`
}) : null,
- /* @__PURE__ */ (0, R.jsxs)("span", {
+ /* @__PURE__ */ (0, z.jsxs)("span", {
className: "ml-auto flex flex-wrap gap-2 max-compact:ml-0 max-compact:w-full",
children: [
- /* @__PURE__ */ (0, R.jsx)(e, {
+ /* @__PURE__ */ (0, z.jsx)(e, {
variant: "secondary",
size: "small",
- ...H(a("largest")),
- onClick: () => z({
+ ...G(a("largest")),
+ onClick: () => U({
groups: r,
keep: "largest",
key: a("largest")
}),
children: "留最大"
}),
- /* @__PURE__ */ (0, R.jsx)(e, {
+ /* @__PURE__ */ (0, z.jsx)(e, {
variant: "secondary",
size: "small",
- ...H(a("longest")),
- onClick: () => z({
+ ...G(a("longest")),
+ onClick: () => U({
groups: r,
keep: "longest",
key: a("longest")
}),
children: "留最长"
}),
- O(t.files, N).map((t) => /* @__PURE__ */ (0, R.jsx)(e, {
+ k(t.files, B).map((t) => /* @__PURE__ */ (0, z.jsx)(e, {
variant: "secondary",
size: "small",
- ...H(a(t)),
- onClick: () => z({
+ ...G(a(t)),
+ onClick: () => U({
groups: r,
keep: t,
key: a(t)
}),
- children: /* @__PURE__ */ (0, R.jsx)(d, {
+ children: /* @__PURE__ */ (0, z.jsx)(d, {
source: t,
label: `留 ${s[t] || t}`
})
}, t)),
- /* @__PURE__ */ (0, R.jsx)(e, {
+ /* @__PURE__ */ (0, z.jsx)(e, {
+ variant: "secondary",
+ size: "small",
+ ...G(a("keep")),
+ onClick: () => Y(t, a("keep")),
+ children: "都保留"
+ }),
+ /* @__PURE__ */ (0, z.jsx)(e, {
variant: "danger",
size: "small",
- ...H(a("all")),
- onClick: () => z({
+ ...G(a("all")),
+ onClick: () => U({
groups: r,
keep: "all",
key: a("all")
@@ -258,24 +282,28 @@ function J({ openItem: l, toast: f, failure: p }) {
]
})
]
- }), /* @__PURE__ */ (0, R.jsx)("div", { children: t.files.map((e) => /* @__PURE__ */ (0, R.jsx)(q, {
+ }), /* @__PURE__ */ (0, z.jsx)("div", { children: t.files.map((e) => /* @__PURE__ */ (0, z.jsx)(J, {
file: e,
prefix: i,
openItem: l
}, e.id)) })]
}, `${t.code}-${n}`);
- }) : /* @__PURE__ */ (0, R.jsx)(r, {
- icon: B,
+ }) : /* @__PURE__ */ (0, z.jsx)(r, {
+ icon: V,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
}),
- j.length > 0 && A.total > j.length ? /* @__PURE__ */ (0, R.jsx)("p", {
+ P.length > 0 && M.total > P.length ? /* @__PURE__ */ (0, z.jsx)("p", {
className: "text-center text-caption-1-regular text-text-secondary",
- children: `显示可回收最多的前 ${j.length.toLocaleString()} 组,共 ${Number(A.total).toLocaleString()} 组;处理掉这些后,其余的会补上来。`
+ children: `显示可回收最多的前 ${P.length.toLocaleString()} 组,共 ${Number(M.total).toLocaleString()} 组;处理掉这些后,其余的会补上来。`
+ }) : null,
+ M.kept ? /* @__PURE__ */ (0, z.jsx)("p", {
+ className: "mt-2 text-center text-caption-1-regular text-text-secondary",
+ children: `另有 ${M.kept.toLocaleString()} 组标记了都保留,不再列出;组里文件有增减时会重新列出。`
}) : null
]
});
}
-export { J as DuplicatesPage };
+export { Y as DuplicatesPage };
-//# debugId=403de930-50fc-40ec-8f97-73d7799bb414
\ No newline at end of file
+//# debugId=29f77252-37e1-43ad-aebd-9097d9469dab
\ No newline at end of file
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index e8978f6b9..89ba011e1 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] = "35bdebfc-79fb-4902-bad8-ce5d25be7c0a", e._sentryDebugIdIdentifier = "sentry-dbid-35bdebfc-79fb-4902-bad8-ce5d25be7c0a");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "04a9e035-5ba5-4108-a7f2-b90e08a14faf", e._sentryDebugIdIdentifier = "sentry-dbid-04a9e035-5ba5-4108-a7f2-b90e08a14faf");
} 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) => {
@@ -32067,51 +32067,51 @@ function FM(e = rM()) {
function IM(e = rM()) {
document.documentElement.dataset.accent = e.value.accent;
}
-var LM = (e, t, n) => ({
+var zle = (e, t, n) => ({
key: e,
label: t,
native: Hj(e),
fill: Hj(e) ? "" : ble(n)
});
-function zle(e) {
- let t = Vj.map(([e, t, n]) => LM(e, t, zj.map((e) => n[e].color)));
- return e.preset === "custom" && t.push(LM("custom", "自定义", zj.map((t) => e[t].color))), t;
+function Ble(e) {
+ let t = Vj.map(([e, t, n]) => zle(e, t, zj.map((e) => n[e].color)));
+ return e.preset === "custom" && t.push(zle("custom", "自定义", zj.map((t) => e[t].color))), t;
}
-var Ble = Gj;
-function Vle(e, t = rM()) {
+var Vle = Gj;
+function Hle(e, t = rM()) {
if (e === "custom") return;
let n = t.value.homeGlow;
n.preset = e, Object.assign(n, Wj(e)), t.value.accent = hle(e), t.save(), PM(t), FM(t), IM(t);
}
-function Hle(e, t = rM()) {
+function Ule(e, t = rM()) {
t.value.accent = qj(e), t.save(), IM(t);
}
-function Ule(e = rM()) {
+function Wle(e = rM()) {
let t = e.value.homeGlow;
t.preset = Xj.preset, Object.assign(t, Wj(t.preset)), e.value.accent = Kj, e.save(), PM(e), FM(e), IM(e);
}
-function RM(e, t) {
+function LM(e, t) {
e.style.setProperty("--glow-swatch", t.on ? t.spot1.color : "var(--color-accent-500)"), e.toggleAttribute("data-glow-native", t.on && Hj(t.preset)), e.toggleAttribute("data-glow-off", !t.on);
}
-function Wle(e, t = rM()) {
- return RM(e, t.value.homeGlow), t.subscribe(() => RM(e, t.value.homeGlow));
+function Gle(e, t = rM()) {
+ return LM(e, t.value.homeGlow), t.subscribe(() => LM(e, t.value.homeGlow));
}
// src/react/components/glow-preset-grid.tsx
-function zM({ store: e, label: t, hidden: n }) {
+function RM({ 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: zle(r).map((t) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Ble(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: () => Vle(t.key, e),
+ onClick: () => Hle(t.key, e),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32122,14 +32122,14 @@ function zM({ store: e, label: t, hidden: n }) {
});
}
// src/react/glow-picker/glow-picker-island.tsx
-var BM = null;
-function Gle(e) {
- BM = e;
+var zM = null;
+function Kle(e) {
+ zM = e;
}
-function Kle() {
- return BM ? /* @__PURE__ */ (0, I.jsx)(qle, { host: BM }) : null;
+function qle() {
+ return zM ? /* @__PURE__ */ (0, I.jsx)(Jle, { host: zM }) : null;
}
-function qle({ host: e }) {
+function Jle({ host: e }) {
let { store: t } = e;
(0, F.useSyncExternalStore)(t.subscribe, t.version);
let { homeGlow: n, accent: r } = t.value;
@@ -32141,11 +32141,11 @@ function qle({ host: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", { children: "光晕" }), /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glow-preset-reset": "",
- onClick: () => Ule(t),
+ onClick: () => Wle(t),
children: "重置"
})]
}),
- /* @__PURE__ */ (0, I.jsx)(zM, {
+ /* @__PURE__ */ (0, I.jsx)(RM, {
store: t,
label: "光晕",
hidden: !n.on
@@ -32159,14 +32159,14 @@ function qle({ host: e }) {
"data-accent-grid": "",
role: "group",
"aria-label": "强调色",
- children: Ble.map(([e, n]) => /* @__PURE__ */ (0, I.jsx)("button", {
+ children: Vle.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: () => Hle(e, t),
+ onClick: () => Ule(e, t),
children: /* @__PURE__ */ (0, I.jsx)("span", {
"data-glow-ball": "",
"aria-hidden": "true",
@@ -32184,31 +32184,31 @@ function qle({ host: e }) {
] });
}
// src/player/host.ts
-var VM = null;
-function Jle(e) {
- VM = e;
+var BM = null;
+function Yle(e) {
+ BM = e;
}
-function HM() {
- if (!VM) throw Error("播放器还没有接上宿主(configurePlayer)");
- return VM;
+function VM() {
+ if (!BM) throw Error("播放器还没有接上宿主(configurePlayer)");
+ return BM;
}
// src/player/menu.ts
-var UM = null;
-function Yle(e) {
- UM = e;
+var HM = null;
+function Xle(e) {
+ HM = e;
}
-function Xle() {
+function Zle() {
let e = document.getElementById("playerMenu");
return e || (e = document.createElement("div"), e.className = "popmenu", e.setAttribute("data-player-context-menu", ""), e.id = "playerMenu", e.setAttribute("role", "menu"), e.setAttribute("aria-label", "播放器菜单"), e.hidden = !0, document.body.append(e)), e;
}
-var WM = null, GM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
-function KM() {
+var UM = null, WM = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;
+function GM() {
let e = document.getElementById("playerMenu");
e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && ls(e, () => {
e.innerHTML = "";
- }), WM &&= (WM(), null);
+ }), UM &&= (UM(), null);
}
-async function Zle(e) {
+async function Qle(e) {
try {
return await navigator.clipboard.writeText(e), !0;
} catch {
@@ -32221,8 +32221,8 @@ async function Zle(e) {
return t.remove(), n;
}
}
-function Qle(e) {
- let t = !!UM?.inMiniplayer(e), n = e.peachItem, r = UM?.kind(e) ?? "item", i = (t) => {
+function $le(e) {
+ let t = !!HM?.inMiniplayer(e), n = e.peachItem, r = HM?.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);
@@ -32238,7 +32238,7 @@ function Qle(e) {
}
return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;
}, a = (e, t) => {
- Zle(i(e)).then((e) => HM().toast(e ? t : "复制失败,请手动复制地址栏", {
+ Qle(i(e)).then((e) => VM().toast(e ? t : "复制失败,请手动复制地址栏", {
timeout: 4e3,
warn: !e
}));
@@ -32250,11 +32250,11 @@ function Qle(e) {
}, t ? {
icon: "maximize-2",
label: "展开",
- run: () => UM?.expand()
+ run: () => HM?.expand()
} : {
icon: "picture-in-picture-2",
label: "迷你播放器",
- run: () => UM?.toMiniplayer()
+ run: () => HM?.toMiniplayer()
}];
document.pictureInPictureEnabled && o.push({
icon: "player-pip",
@@ -32277,29 +32277,29 @@ function Qle(e) {
run: () => s.click()
}), o;
}
-function $le(e, t, n) {
- let r = Xle();
- KM();
- let i = HM().stage();
+function eue(e, t, n) {
+ let r = Zle();
+ GM();
+ let i = VM().stage();
i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");
- let a = Qle(e);
+ let a = $le(e);
r.innerHTML = a.map((e, t) => {
let n = e.checked !== void 0;
- return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${GM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? GM(R("check"), "data-player-menu-check") : ""}</button>`;
+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${WM(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${z(e.label)}</span>${n ? WM(R("check"), "data-player-menu-check") : ""}</button>`;
}).join(""), cs(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;
let o = [...r.querySelectorAll("[data-player-menu]")];
o.forEach((e) => {
e.onclick = (t) => {
t.stopPropagation();
let n = a[Number(e.dataset.playerMenu)];
- KM(), n?.run();
+ GM(), n?.run();
};
});
let s = (e) => {
- r.contains(e.target) || KM();
+ r.contains(e.target) || GM();
}, c = (e) => {
if (e.key === "Escape") {
- e.preventDefault(), e.stopPropagation(), KM();
+ e.preventDefault(), e.stopPropagation(), GM();
return;
}
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
@@ -32307,49 +32307,49 @@ function $le(e, t, n) {
let t = o.indexOf(document.activeElement);
o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();
}, l = (t) => {
- ds(t, e.el()) && KM();
+ ds(t, e.el()) && GM();
};
setTimeout(() => {
document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {
capture: !0,
passive: !0
});
- }, 0), WM = () => {
+ }, 0), UM = () => {
document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);
}, o[0]?.focus();
}
-function eue(e) {
+function tue(e) {
e.el().addEventListener("contextmenu", (t) => {
- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), $le(e, t.clientX, t.clientY));
- }), e.on("dispose", KM);
+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), eue(e, t.clientX, t.clientY));
+ }), e.on("dispose", GM);
}
// src/player/registry.ts
-var qM = null, JM = () => qM;
-function YM(e) {
- qM = e;
+var KM = null, qM = () => KM;
+function JM(e) {
+ KM = e;
}
-function XM(e) {
+function YM(e) {
e && !e.isDisposed() && requestAnimationFrame(() => {
e.isDisposed() || e.trigger("resize");
});
}
// src/player/stats.ts
-function ZM(e) {
+function XM(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 tue(e) {
+function nue(e) {
let t = e.currentTime || 0;
for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t + .25 && e.buffered.end(n) >= t) return e.buffered.end(n);
return e.buffered.length ? e.buffered.end(e.buffered.length - 1) : 0;
}
-var QM = 3e3;
-function $M(e, t) {
+var ZM = 3e3;
+function QM(e, t) {
let n = Number(e) || 0, r = qn(t) || 0;
return n > 0 && r > 0 ? n * 8 / r : 0;
}
-function nue(e) {
+function rue(e) {
let t = [], n = null, r = 0, i = 0;
return {
bitrate: Number(e) || 0,
@@ -32364,10 +32364,10 @@ function nue(e) {
},
sample(e) {
if (!e) return i;
- let a = performance.now(), o = tue(e), s = e.currentTime || 0;
+ let a = performance.now(), o = nue(e), s = e.currentTime || 0;
if (n) {
let e = (a - n.at) / 1e3, i = Math.abs(s - n.ct) > e * 4 + 1, c = o - n.frontier;
- !i && c > 0 && (r += c), e * 1e3 > QM * 2 && (t.length = 0);
+ !i && c > 0 && (r += c), e * 1e3 > ZM * 2 && (t.length = 0);
}
for (n = {
at: a,
@@ -32376,55 +32376,55 @@ function nue(e) {
}, t.push({
at: a,
advanced: r
- }); t.length > 2 && a - t[0].at > QM;) t.shift();
+ }); t.length > 2 && a - t[0].at > ZM;) t.shift();
let c = t[0], l = (a - c.at) / 1e3, u = r - c.advanced;
return l >= .5 && u > 0 && this.bitrate > 0 && (i = u * this.bitrate / l), i;
}
};
}
-var eN = 24;
-function tN(e, t) {
- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > eN && e.splice(0, e.length - eN);
+var $M = 24;
+function eN(e, t) {
+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > $M && e.splice(0, e.length - $M);
}
-var nN = "peach-player-panel";
-function rN(e, t, n, r) {
- let i = [...Array(Math.max(0, eN - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {
+var tN = "peach-player-panel";
+function nN(e, t, n, r) {
+ let i = [...Array(Math.max(0, $M - 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 rue() {
+function iue() {
return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${R("chart")}</button>
<div data-player-net="" id="playerNet" role="status" aria-live="polite" hidden></div>
<div data-player-stats="" id="playerStats" role="status" hidden></div>`;
}
-function iN(e, t = "") {
+function rN(e, t = "") {
let n = t ? encodeURIComponent(t) : "";
return performance.getEntriesByType("resource").filter((t) => t.name.includes("/stream") && (t.name.includes(`/stream?id=${e}`) || t.name.includes(`/stream/hls/${e}/`)) && (!n || t.name.includes(`session=${n}`)));
}
-function aN(e, t = "") {
- let n = iN(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+function iN(e, t = "") {
+ let n = rN(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
return r > 0 && i > 0 ? r * 8 / i : 0;
}
-function oN(e, t, n = "", r = null) {
+function aN(e, t, n = "", r = null) {
let i = 0;
try {
i = Number(e?.bandwidth?.()) || 0;
} catch {}
- return i > 0 ? i : r ? Number(r.bits) || 0 : aN(t, n);
+ return i > 0 ? i : r ? Number(r.bits) || 0 : iN(t, n);
}
-function sN(e) {
+function oN(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 iue(e, t) {
- return e > 0 ? sN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : sN(0);
+function aue(e, t) {
+ return e > 0 ? oN(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : oN(0);
}
// src/player/subtitle-style.ts
-var cN = {
+var sN = {
font: {
label: "字体",
values: [
@@ -32527,7 +32527,7 @@ var cN = {
["shadow", "阴影"]
]
}
-}, lN = {
+}, cN = {
font: "sans",
size: "100",
color: "white",
@@ -32537,7 +32537,7 @@ var cN = {
window: "black",
windowOpacity: "0",
edge: "shadow"
-}, uN = "peach.caption-style.v1", aue = {
+}, lN = "peach.caption-style.v1", oue = {
white: "255,255,255",
yellow: "255,255,0",
green: "0,255,0",
@@ -32546,7 +32546,7 @@ var cN = {
magenta: "255,0,255",
red: "255,0,0",
black: "0,0,0"
-}, oue = {
+}, sue = {
sans: "Arial,sans-serif",
mono: "Consolas,monospace",
serif: "Georgia,serif",
@@ -32554,28 +32554,28 @@ var cN = {
casual: "\"Comic Sans MS\",sans-serif",
cursive: "cursive",
"small-caps": "Arial,sans-serif"
-}, sue = {
+}, cue = {
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 cue() {
+function lue() {
let e = {};
try {
- e = JSON.parse(localStorage.getItem(uN) || "{}") || {};
+ e = JSON.parse(localStorage.getItem(lN) || "{}") || {};
} catch {}
- return Object.fromEntries(Object.entries(lN).map(([t, n]) => [t, cN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
+ return Object.fromEntries(Object.entries(cN).map(([t, n]) => [t, sN[t].values.some(([n]) => n === e[t]) ? e[t] : n]));
}
-function dN(e, t, n, r) {
- let i = cue(), a = /* @__PURE__ */ new Set(), o = document.createElement("div");
+function uN(e, t, n, r) {
+ let i = lue(), 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(${aue[e]},${Number(t) / 100})`;
- e.style.setProperty("--peach-caption-font", oue[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", sue[i.edge]), e.style.setProperty("--peach-caption-variant", i.font === "small-caps" ? "small-caps" : "normal");
+ let t = (e, t) => `rgba(${oue[e]},${Number(t) / 100})`;
+ e.style.setProperty("--peach-caption-font", sue[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", cue[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 || [])) {
@@ -32591,15 +32591,15 @@ function dN(e, t, n, r) {
if (!n.aborted) {
if (e.caption_style) {
let t = {
- ...lN,
+ ...cN,
...e.caption_style
};
- for (let e of Object.keys(lN)) a.has(e) || (i[e] = t[e]);
+ for (let e of Object.keys(cN)) a.has(e) || (i[e] = t[e]);
c();
} else {
let e = !1;
try {
- e = !!localStorage.getItem(uN);
+ e = !!localStorage.getItem(lN);
} catch {}
e && !a.size && r.save({ caption_style: i }).catch(() => {});
}
@@ -32607,18 +32607,18 @@ function dN(e, t, n, r) {
}), {
current: () => i,
set(e, t) {
- cN[e].values.some(([e]) => e === t) && (a.add(e), i = {
+ sN[e].values.some(([e]) => e === t) && (a.add(e), i = {
...i,
[e]: t
}, c(), r?.save({ caption_style: { [e]: t } }).catch(() => {}));
},
reset() {
- Object.keys(lN).forEach((e) => a.add(e)), i = { ...lN }, c(), r?.save({ caption_style: i }).catch(() => {});
+ Object.keys(cN).forEach((e) => a.add(e)), i = { ...cN }, c(), r?.save({ caption_style: i }).catch(() => {});
}
};
}
// src/player/memory.ts
-var fN = /* @__PURE__ */ new Map(), pN = /* @__PURE__ */ new WeakMap(), lue = class {
+var dN = /* @__PURE__ */ new Map(), fN = /* @__PURE__ */ new WeakMap(), uue = class {
cleanup = new AbortController();
reading;
listeners = /* @__PURE__ */ new Set();
@@ -32646,7 +32646,7 @@ var fN = /* @__PURE__ */ new Map(), pN = /* @__PURE__ */ new WeakMap(), lue = cl
}
load() {
return this.url ? this.reading ||= (async () => {
- await fN.get(this.url)?.catch(() => {});
+ await dN.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) => {
@@ -32658,7 +32658,7 @@ var fN = /* @__PURE__ */ new Map(), pN = /* @__PURE__ */ new WeakMap(), lue = cl
}
save(e) {
if (!this.url) return Promise.resolve();
- let t = (fN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
+ let t = (dN.get(this.url) || Promise.resolve()).catch(() => {}).then(async () => {
let t = {
...this.unsaved,
...e,
@@ -32685,8 +32685,8 @@ var fN = /* @__PURE__ */ new Map(), pN = /* @__PURE__ */ new WeakMap(), lue = cl
this.changed();
}
});
- return fN.set(this.url, t), t.finally(() => {
- fN.get(this.url) === t && fN.delete(this.url);
+ return dN.set(this.url, t), t.finally(() => {
+ dN.get(this.url) === t && dN.delete(this.url);
}).catch(() => {}), t;
}
async retry() {
@@ -32695,12 +32695,12 @@ var fN = /* @__PURE__ */ new Map(), pN = /* @__PURE__ */ new WeakMap(), lue = cl
} catch {}
}
};
-function mN(e) {
- let t = pN.get(e);
- return t || (t = new lue(e), pN.set(e, t)), t;
+function pN(e) {
+ let t = fN.get(e);
+ return t || (t = new uue(e), fN.set(e, t)), t;
}
-function hN(e, t) {
- let n = mN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
+function mN(e, t) {
+ let n = pN(e), r = Number(e.playbackRate()) || 1, i = !1, a = () => {
t.defaultPlaybackRate = r, Number(e.playbackRate()) !== r && e.playbackRate(r);
};
return n.restore((t) => {
@@ -32713,7 +32713,7 @@ function hN(e, t) {
};
}
// src/player/subtitle-memory.ts
-var gN = class {
+var hN = class {
player;
video;
changed;
@@ -32724,7 +32724,7 @@ var gN = class {
ready;
error = "";
constructor(e, t, n = () => {}) {
- this.player = e, this.video = t, this.changed = n, this.memory = mN(e);
+ this.player = e, this.video = t, this.changed = n, this.memory = pN(e);
let r = this.cleanup.signal;
t.textTracks.addEventListener("addtrack", () => {
this.apply(), this.changed();
@@ -32821,7 +32821,7 @@ var gN = class {
throw a.remove(), URL.revokeObjectURL(i), e;
}
}
-}, _N = () => "<svg viewBox=\"0 0 36 36\" aria-hidden=\"true\"><path d=\"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z\"/></svg>", uue = class {
+}, gN = () => "<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>", due = class {
player;
video;
panels;
@@ -32840,7 +32840,7 @@ var gN = class {
more = !1;
searched = !1;
constructor(e, t, n) {
- this.player = e, this.video = t, this.panels = n, this.styles = dN(e.el(), t, this.cleanup.signal, mN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = _N(), this.cc.onclick = () => {
+ this.player = e, this.video = t, this.panels = n, this.styles = uN(e.el(), t, this.cleanup.signal, pN(e)), this.cc = e.el().querySelector(".vjs-subtitles-control > button"), this.cc.innerHTML = gN(), 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", () => {
@@ -32850,7 +32850,7 @@ var gN = class {
this.sync(), this.page === "tracks" && this.show(0);
}, { signal: this.cleanup.signal }), e.on("dispose", () => {
this.hide(), this.cleanup.abort();
- }), this.session = new gN(e, t, () => {
+ }), this.session = new hN(e, t, () => {
this.sync(), this.page === "tracks" && this.show(0);
}), this.sync();
}
@@ -32898,7 +32898,7 @@ var gN = class {
}
options(e = 1) {
this.page = "options";
- let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(cN).map(([e, n]) => {
+ let t = this.styles.current(), n = this.panel(this.header("字幕选项") + `<div class="vjs-peach-panel-menu">${Object.entries(sN).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);
@@ -32910,7 +32910,7 @@ var gN = class {
}
styleOptions(e) {
this.page = "style";
- let t = cN[e];
+ let t = sN[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>`;
@@ -33026,7 +33026,7 @@ var gN = class {
}
};
// src/player/timeline.ts
-function due(e, t) {
+function fue(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;
@@ -33037,8 +33037,8 @@ function due(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 fue(e, t) {
- let n = due(e, t);
+function pue(e, t) {
+ let n = fue(e, t);
if (n === null) return null;
let r = t.columns || 10, i = r * (t.rows || 10), a = Math.floor(n / i);
return {
@@ -33048,15 +33048,15 @@ function fue(e, t) {
rows: Math.ceil(Math.min(i, t.frames - a * i) / r)
};
}
-function pue(e, t, n, r = 0) {
+function mue(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 mue(e) {
+function hue(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 vN(e, t, n = {}) {
+function _N(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) => {
@@ -33064,7 +33064,7 @@ function vN(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 < mue(e); t++) {
+ if (m && u) for (let e of [u, u.fallback]) for (let t = 0; t < hue(e); t++) {
let n = v(e, t);
if (_.some((e) => e.dataset.source === n)) continue;
let r = new Image();
@@ -33075,7 +33075,7 @@ function vN(e, t, n = {}) {
!h && e && e.frames > 0 && (e.interval > 0 || e.cues?.length) && (u = e, y());
}).catch(() => {});
let b = (e, n) => {
- let r = fue(e, n);
+ let r = pue(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);
@@ -33102,7 +33102,7 @@ function vN(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 = `${pue(o * l, l, i.offsetWidth, n.inset)}px`;
+ i.style.left = `${mue(o * l, l, i.offsetWidth, n.inset)}px`;
},
hide() {
i.hidden = !0;
@@ -33113,8 +33113,8 @@ function vN(e, t, n = {}) {
};
}
// src/player/rotation.ts
-function yN(e, t) {
- let n = 0, r = !1, i = mN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
+function vN(e, t) {
+ let n = 0, r = !1, i = pN(e), a = e.el(), o = a.querySelector("media-container") || a, s = [
"width",
"height",
"inset",
@@ -33142,7 +33142,7 @@ function yN(e, t) {
};
}
// src/player/pip.ts
-function hue(e, t, n, r) {
+function gue(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";
@@ -33174,7 +33174,7 @@ function hue(e, t, n, r) {
});
}
// src/player/controls.ts
-function bN(e, t, n = "") {
+function yN(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));
@@ -33185,27 +33185,27 @@ function bN(e, t, n = "") {
};
return o(), o;
}
-function xN(e, t) {
+function bN(e, t) {
e?.closest(".video-js")?.querySelector(`.vjs-control-bar ${t}`)?.click();
}
-function gue(e, t = !0) {
- let n = HM(), r = n.settings();
+function _ue(e, t = !0) {
+ let n = VM(), 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 SN = /* @__PURE__ */ new WeakMap();
-function CN(e) {
+var xN = /* @__PURE__ */ new WeakMap();
+function SN(e) {
if (!e) return;
- let t = HM().settings().theaterMode;
- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), SN.get(e)?.(t ? "默认视图" : "影院模式");
+ let t = VM().settings().theaterMode;
+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), xN.get(e)?.(t ? "默认视图" : "影院模式");
}
-function wN(e, t = !0) {
- let n = HM(), r = n.settings();
+function CN(e, t = !0) {
+ let n = VM(), r = n.settings();
r.theaterMode = !!e, t && n.saveSettings();
let i = n.stage();
- i?.toggleAttribute("data-theater", r.theaterMode), CN(i?.querySelector("[data-player-theater]")), XM(JM());
+ i?.toggleAttribute("data-theater", r.theaterMode), SN(i?.querySelector("[data-player-theater]")), YM(qM());
}
-function _ue(e) {
- let t = HM().stage(), n = t?.querySelector("[data-ambient-canvas]");
+function vue(e) {
+ let t = VM().stage(), n = t?.querySelector("[data-ambient-canvas]");
if (!t || !n) return () => {};
let r = n.getContext("2d", { alpha: !1 });
if (!r) return () => {};
@@ -33228,9 +33228,9 @@ function _ue(e) {
}, u = (t) => {
e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));
}, d = (t, n) => {
- i || t !== o || (HM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
+ i || t !== o || (VM().settings().ambientMode ? e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t)) : c());
}, f = () => {
- !i && HM().settings().ambientMode && (l(), e.paused || u(++o));
+ !i && VM().settings().ambientMode && (l(), e.paused || u(++o));
}, p = (e) => {
let n = !!e.detail.enabled;
t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());
@@ -33239,7 +33239,7 @@ function _ue(e) {
i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();
};
}
-function TN(e, t, n = 0, r = null) {
+function wN(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");
@@ -33249,8 +33249,8 @@ function TN(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]");
- bN(s, "设置");
- let l = a.querySelector(".vjs-peach-settings-menu"), u = yN(e, t), d = hN(e, t), f = mN(e), p, m = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, h = r, g = "auto", _ = (e, t) => {
+ yN(s, "设置");
+ let l = a.querySelector(".vjs-peach-settings-menu"), u = vN(e, t), d = mN(e, t), f = pN(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 = () => {
@@ -33289,11 +33289,11 @@ function TN(e, t, n = 0, r = null) {
active: n
};
}, b = () => l.getAttribute("aria-hidden") !== "true", x = (e) => {
- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(nN, { detail: "settings" }));
+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e || p?.hide(), e && document.dispatchEvent(new CustomEvent(tN, { detail: "settings" }));
}, S = () => x(!1), C = (e) => {
e.detail !== "settings" && S();
};
- document.addEventListener(nN, C);
+ document.addEventListener(tN, 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;
@@ -33309,15 +33309,15 @@ function TN(e, t, n = 0, r = null) {
}), i;
}, D = (e, t) => e.querySelector(t), O = "main", k = (e = 0) => {
O = "main";
- let { active: t } = y(), n = d.current(), r = E(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${HM().settings().ambientMode}">
+ let { active: t } = y(), n = d.current(), r = E(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${VM().settings().ambientMode}">
${R("player-ambient")}<span>氛围模式</span><i class="vjs-peach-switch" aria-hidden="true"></i></button>
<button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${R("player-speed")}<span>播放速度</span><b>${n === 1 ? "正常" : `${n}×`}</b>${R("player-menu-next")}</button>
- <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${_N()}</span><span>字幕</span><b>${z(p?.label() || "关闭")}</b>${R("player-menu-next")}</button>
+ <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-subtitles><span class="vjs-peach-menu-cc" aria-hidden="true">${gN()}</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 = () => {
- gue(!HM().settings().ambientMode), k();
+ _ue(!VM().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();
@@ -33421,8 +33421,8 @@ function TN(e, t, n = 0, r = null) {
A(), re();
});
return e.on("dispose", () => {
- I(), t.removeEventListener("loadedmetadata", re), t.removeEventListener("resize", re), t.removeEventListener("ratechange", re), T++, document.removeEventListener("pointerdown", F), document.removeEventListener(nN, C), w && clearTimeout(w);
- }), p = new uue(e, t, {
+ I(), t.removeEventListener("loadedmetadata", re), t.removeEventListener("resize", re), t.removeEventListener("ratechange", re), T++, document.removeEventListener("pointerdown", F), document.removeEventListener(tN, C), w && clearTimeout(w);
+ }), p = new due(e, t, {
render: E,
open: () => {
O = "subtitles", x(!0);
@@ -33431,21 +33431,21 @@ function TN(e, t, n = 0, r = null) {
back: () => {
p?.hide(), k(-1);
}
- }), y(), vue(e, a), yue(e), (e) => {
+ }), y(), yue(e, a), bue(e), (e) => {
h = e?.length ? e : null, re();
};
}
-function vue(e, t) {
+function yue(e, t) {
let n = e.el().querySelector(".vjs-control-bar");
if (!n || n.querySelector("[data-player-theater]")) return;
- let r = HM().settings().theaterMode, i = document.createElement("div");
+ let r = VM().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");
- SN.set(a, bN(a, "影院模式", "T")), CN(a), a.onclick = (e) => {
- e.stopPropagation(), wN(!HM().settings().theaterMode);
+ xN.set(a, yN(a, "影院模式", "T")), SN(a), a.onclick = (e) => {
+ e.stopPropagation(), CN(!VM().settings().theaterMode);
};
}
-function yue(e) {
+function bue(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");
@@ -33457,7 +33457,7 @@ function yue(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 = bN(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 = yN(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 ? "播放" : "暂停");
};
@@ -33468,7 +33468,7 @@ function yue(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 = bN(p, "静音", "M"), g = () => {
+ let h = yN(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 ? "取消静音" : "静音");
};
@@ -33494,7 +33494,7 @@ function yue(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 = bN(x, "显示剩余时间"), T = () => {
+ let C = x.querySelector(".vjs-peach-time-text"), w = yN(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)};点击显示剩余时间`);
};
@@ -33506,10 +33506,10 @@ function yue(e) {
"loadedmetadata"
], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);
let E = t.querySelector(":scope>.vjs-picture-in-picture-control");
- bN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), hue(e, E, bN(E, "画中画"), (e) => HM().toast(e, { warn: !0 }));
- let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = bN(D, "全屏", "F"), A = () => {
+ yN(t.querySelector(".vjs-subtitles-control>button"), "字幕"), r(E, "player-pip"), gue(e, E, yN(E, "画中画"), (e) => VM().toast(e, { warn: !0 }));
+ let D = t.querySelector(":scope>.vjs-fullscreen-control"), O = r(D, "player-fullscreen-enter"), k = yN(D, "全屏", "F"), A = () => {
let t = !!e.isFullscreen();
- e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), XM(e);
+ e.el().toggleAttribute("data-peach-fullscreen", t), O?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), k(t ? "退出全屏" : "全屏"), YM(e);
};
e.on([
"fullscreenchange",
@@ -33530,7 +33530,7 @@ function yue(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 = bN(N, "展开控件"), P = (t) => {
+ let N = ee.querySelector("button"), te = yN(N, "展开控件"), P = (t) => {
e.el().classList.toggle("vjs-peach-right-expanded", t), N.setAttribute("aria-expanded", String(t)), te(t ? "收起控件" : "展开控件");
};
N.onclick = (t) => {
@@ -33542,10 +33542,10 @@ function yue(e) {
}, re = new ResizeObserver(ne);
re.observe(e.el()), e.on("dispose", () => re.disconnect()), P(!1), ne();
}
-function EN(e, t, n = {}) {
+function TN(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 = vN(r, t, n), a = (n) => {
+ let i = _N(r, t, n), a = (n) => {
let a = qn(e.duration()) || qn(t?.duration);
if (!a) return;
let o = r.getBoundingClientRect();
@@ -33565,13 +33565,13 @@ function EN(e, t, n = {}) {
i.dispose();
});
}
-function bue(e, t) {
+function xue(e, t) {
let n = navigator.mediaSession;
if (!n || typeof n.setActionHandler != "function") return;
let r = () => qn(e.duration()) || qn(t.duration) || 0, i = (t) => {
let n = r();
e.currentTime(Math.max(0, n ? Math.min(n, t) : t));
- }, a = () => Math.max(1, Number(HM().settings().seekSeconds) || 10), o = [
+ }, a = () => Math.max(1, Number(VM().settings().seekSeconds) || 10), o = [
["play", () => {
e.play();
}],
@@ -33612,11 +33612,11 @@ function bue(e, t) {
} catch {}
});
}
-function DN(e) {
+function EN(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 ON(e, t) {
+function DN(e, t) {
Tn(`/api/assets/${t}/subtitles`).then((t) => {
e && !e.isDisposed() && (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {
e.addRemoteTextTrack({
@@ -33632,35 +33632,35 @@ function ON(e, t) {
}).catch(() => {});
}
// src/player/progress.ts
-var kN = "peach.playback-position.v1", AN = /* @__PURE__ */ new WeakMap();
-function jN(e) {
- AN.get(e)?.(), AN.delete(e);
+var ON = "peach.playback-position.v1", kN = /* @__PURE__ */ new WeakMap();
+function AN(e) {
+ kN.get(e)?.(), kN.delete(e);
}
-function MN(e, t, n = null) {
+function jN(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 xue(e) {
+function Sue(e) {
try {
- let t = localStorage.getItem(`${kN}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
+ let t = localStorage.getItem(`${ON}:${e}`), n = t === null || !t.trim() ? NaN : Number(t);
return Number.isFinite(n) && n >= 0 ? n : null;
} catch {
return null;
}
}
-function Sue(e, t) {
- let n = xue(e);
+function Cue(e, t) {
+ let n = Sue(e);
if (n !== null) return n;
let r = Number(t.leave_ratio);
return r > 0 && r < 1 ? r * qn(t.duration) : 0;
}
-function Cue(e, t) {
- jN(t);
+function wue(e, t) {
+ AN(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(`${kN}:${e}`, String(r));
+ localStorage.setItem(`${ON}:${e}`, String(r));
} catch {}
}, i = () => {
n = !0;
@@ -33674,7 +33674,7 @@ function Cue(e, t) {
"pause",
"ended"
]) t.addEventListener(e, r);
- window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), AN.set(t, () => {
+ window.addEventListener("pagehide", r), document.addEventListener("visibilitychange", r), kN.set(t, () => {
r(), t.removeEventListener("loadedmetadata", i), t.removeEventListener("emptied", a);
for (let e of [
"timeupdate",
@@ -33686,19 +33686,19 @@ function Cue(e, t) {
});
}
// src/player/telemetry.ts
-var NN = /* @__PURE__ */ new WeakMap();
-function PN(e) {
- NN.get(e)?.(), NN.delete(e);
+var MN = /* @__PURE__ */ new WeakMap();
+function NN(e) {
+ MN.get(e)?.(), MN.delete(e);
}
-function FN(e, t, n, r) {
+function PN(e, t, n, r) {
let i = () => t(!1), a = () => {
n(), t(!1);
};
- e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), NN.set(e, () => {
+ e.addEventListener("seeking", r), e.addEventListener("emptied", a), window.addEventListener("pagehide", i), MN.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 IN(e, t, n = {}) {
+function FN(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);
@@ -33739,11 +33739,11 @@ function IN(e, t, n = {}) {
u(), l(!1);
}, t.onended = () => {
u(), l(!0), n.onEnded?.();
- }, FN(t, l, u, () => {
+ }, PN(t, l, u, () => {
a++;
}), c();
}
-function wue(e, t) {
+function Tue(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", {
@@ -33774,22 +33774,22 @@ function wue(e, t) {
s(), o(!1);
}, t.onended = () => {
s(), o(!0);
- }, FN(t, o, s, () => {});
+ }, PN(t, o, s, () => {});
}
// src/player/dispose.ts
-function LN(e) {
+function IN(e) {
if (!e || e.isDisposed()) return;
let t = e.el()?.querySelector("video");
try {
e.pause();
} catch {}
- t && (jN(t), PN(t));
+ t && (AN(t), NN(t));
try {
e.dispose();
} catch {}
}
// src/core/random-id.ts
-function RN() {
+function LN() {
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;
@@ -33797,23 +33797,23 @@ function RN() {
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 zN() {
- return RN();
+function RN() {
+ return LN();
}
-function BN(e, t) {
+function zN(e, t) {
return {
src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,
type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"
};
}
-function Tue(e) {
+function Eue(e) {
return e.location === "online" && e.follow_item_id ? {
src: `/follow-stream?id=${e.follow_item_id}`,
type: "video/mp4"
} : null;
}
-async function VN(e, t) {
- let n = Tue(e);
+async function BN(e, t) {
+ let n = Eue(e);
if (n) return n;
try {
let n = await Tn(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);
@@ -33822,9 +33822,9 @@ async function VN(e, t) {
type: n.mime_type || (n.protocol === "hls" ? "application/vnd.apple.mpegurl" : "video/mp4")
};
} catch {}
- return BN(e, t);
+ return zN(e, t);
}
-function HN(e) {
+function VN(e) {
e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {
method: "POST",
credentials: "same-origin",
@@ -33833,22 +33833,22 @@ function HN(e) {
document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);
}).catch(() => {});
}
-var UN = "";
+var HN = "";
+function UN() {
+ return HN;
+}
function WN() {
- return UN;
+ return HN ||= RN(), HN;
}
+var Due = (e) => zN(e, WN()), Oue = (e) => BN(e, WN());
function GN() {
- return UN ||= zN(), UN;
-}
-var Eue = (e) => BN(e, GN()), Due = (e) => VN(e, GN());
-function KN() {
- let e = UN;
- e && (UN = "", HN(e));
+ let e = HN;
+ e && (HN = "", VN(e));
}
// src/player/v10-player.ts
-var qN = (e) => typeof e == "string" ? [e] : e, Oue = (e, t) => {
+var KN = (e) => typeof e == "string" ? [e] : e, kue = (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-${RN()}`, n.setAttribute("lang", "zh-CN");
+ n.className = "video-js vjs-paused vjs-user-active", n.id = e.id || `peach-player-${LN()}`, 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 = {
@@ -33943,9 +33943,9 @@ var qN = (e) => typeof e == "string" ? [e] : e, Oue = (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) => qN(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
- off: (e, t) => qN(e).forEach((e) => o.removeEventListener(e, t)),
- one: (e, t) => qN(e).forEach((e) => o.addEventListener(e, t, {
+ on: (e, t) => KN(e).forEach((e) => o.addEventListener(e, t, { signal: c })),
+ off: (e, t) => KN(e).forEach((e) => o.removeEventListener(e, t)),
+ one: (e, t) => KN(e).forEach((e) => o.addEventListener(e, t, {
once: !0,
signal: c
})),
@@ -34000,7 +34000,7 @@ var qN = (e) => typeof e == "string" ? [e] : e, Oue = (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);
}
};
-}, kue = "/vendor/videojs/10.2.0/", Aue = [
+}, Aue = "/vendor/videojs/10.2.0/", jue = [
"video-player.js",
"media/hlsjs-video.js",
"media/dash-video.js",
@@ -34018,17 +34018,17 @@ var qN = (e) => typeof e == "string" ? [e] : e, Oue = (e, t) => {
"ui/slider-value.js",
"i18n.js",
"locales/zh-CN.js"
-], JN = null;
-function YN() {
- return JN ??= Promise.all(Aue.map((e) => import(
+], qN = null;
+function JN() {
+ return qN ??= Promise.all(jue.map((e) => import(
/* @vite-ignore */
- `${kue}${e}`
-))).then(() => Oue).catch((e) => {
- throw JN = null, e;
- }), JN;
+ `${Aue}${e}`
+))).then(() => kue).catch((e) => {
+ throw qN = null, e;
+ }), qN;
}
// src/player/immerse-player.ts
-var jue = {
+var Mue = {
controls: !1,
preload: "auto",
posterImage: !1,
@@ -34040,45 +34040,45 @@ var jue = {
errorDisplay: !1,
textTrackSettings: !1
};
-function Mue(e, t) {
+function Nue(e, t) {
let { item: n, session: r } = t, i = null, a = !1;
- return Promise.all([VN(n, r), YN().catch(() => null)]).then(([o, s]) => {
+ return Promise.all([BN(n, r), JN().catch(() => null)]).then(([o, s]) => {
if (a) return;
- let c = BN(n, r), l = String(o.type || "").includes("mpegurl");
+ let c = zN(n, r), l = String(o.type || "").includes("mpegurl");
if (!s) e.src = (l ? c : o).src;
else {
- let t = s(e, jue);
- i = t, t.peachItem = n, t.peachPlaybackKey = MN("item", n);
+ let t = s(e, Mue);
+ i = t, t.peachItem = n, t.peachPlaybackKey = jN("item", n);
let r = new AbortController();
- dN(t.el(), e, r.signal, mN(t)), yN(t, e), hN(t, e), t.on("dispose", () => r.abort()), new gN(t, e), ON(t, n.id), l && t.one("error", () => {
+ uN(t.el(), e, r.signal, pN(t)), vN(t, e), mN(t, e), t.on("dispose", () => r.abort()), new hN(t, e), DN(t, n.id), l && t.one("error", () => {
a || t.src(c);
}), t.src(o);
}
- IN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
+ FN(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();
}), () => {
- a || (a = !0, HN(r), i ? LN(i) : (e.pause(), PN(e), e.removeAttribute("src"), e.load()));
+ a || (a = !0, VN(r), i ? IN(i) : (e.pause(), NN(e), e.removeAttribute("src"), e.load()));
};
}
// src/player/guide-preview.ts
-var XN = !1, ZN = () => XN;
-function Nue() {
- return XN = !0, () => {
- XN = !1;
+var YN = !1, XN = () => YN;
+function Pue() {
+ return YN = !0, () => {
+ YN = !1;
};
}
// src/player/detail-player.ts
-var QN = /* @__PURE__ */ new WeakMap(), $N = null, eP = null, tP = null;
-function nP() {
- $N &&= (clearInterval($N), null), eP &&= (clearInterval(eP), null), tP &&= (clearTimeout(tP), null);
+var ZN = /* @__PURE__ */ new WeakMap(), QN = null, $N = null, eP = null;
+function tP() {
+ QN &&= (clearInterval(QN), null), $N &&= (clearInterval($N), null), eP &&= (clearTimeout(eP), null);
}
-async function Pue(e, t, n, r = {}) {
- let i = JM();
+async function Fue(e, t, n, r = {}) {
+ let i = qM();
if (i && !i.isDisposed()) return i;
- let a = HM(), o = r.resume ?? null;
+ let a = VM(), o = r.resume ?? null;
o?.autoplay && (n = !0), r.guidePreview && (n = !1);
- let s = () => r.source ? Promise.resolve(r.source) : Due(e), c;
+ let s = () => r.source ? Promise.resolve(r.source) : Oue(e), c;
try {
- c = await YN();
+ c = await JN();
} catch {
return t.controls = !0, r.guidePreview || s().then((e) => {
t.addEventListener("loadedmetadata", () => {
@@ -34104,7 +34104,7 @@ async function Pue(e, t, n, r = {}) {
} }
}
});
- YM(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || MN("item", e), eue(l), l.on("loadedmetadata", () => {
+ JM(l), l.peachItem = e, l.peachPlaybackKey = r.playbackKey || jN("item", e), tue(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}`);
});
@@ -34112,7 +34112,7 @@ async function Pue(e, t, n, r = {}) {
speed: [],
activity: [],
buffer: []
- }, f = Number(r.size ?? e.size) || 0, p = nue($M(f, e.duration)), m = 0, h = !1, g = () => JM() === l && !l.isDisposed(), _ = () => {
+ }, f = Number(r.size ?? e.size) || 0, p = rue(QM(f, e.duration)), m = 0, h = !1, g = () => qM() === 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(() => {
@@ -34123,15 +34123,15 @@ async function Pue(e, t, n, r = {}) {
ready: !1,
updateStats: () => {}
};
- QN.set(l, y), y.updateStats = () => {
+ ZN.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 = WN(), h = s ? iN(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
+ let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = UN(), h = s ? rN(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;
p.sample(t);
- let x = oN(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
+ let x = aN(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);
m = S;
- let w = ZM(t);
- tN(d.speed, x), tN(d.activity, C), tN(d.buffer, w);
+ let w = XM(t);
+ eN(d.speed, x), eN(d.activity, C), eN(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} 请求`,
@@ -34149,17 +34149,17 @@ async function Pue(e, t, n, r = {}) {
[
"连接速度",
D,
- rN(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
+ nN(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)
],
[
k[0],
k[1],
- rN(d.activity, "activity", Math.max(1, ...d.activity), k[2])
+ nN(d.activity, "activity", Math.max(1, ...d.activity), k[2])
],
[
"缓冲健康",
`${w.toFixed(1)} 秒`,
- rN(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
+ nN(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)
],
["播放时间", `${Yn(t.currentTime)} / ${Yn(u || l.duration())}`],
["日期", (/* @__PURE__ */ new Date()).toLocaleString()]
@@ -34175,15 +34175,15 @@ async function Pue(e, t, n, r = {}) {
if (!n || l.isDisposed()) return;
let r = v();
r || p.sample(t);
- let i = oN(l, e.id, WN(), r ? null : p), a = r ? sN(i) : iue(i, ZM(t));
+ let i = aN(l, e.id, UN(), r ? null : p), a = r ? oN(i) : aue(i, XM(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(), eP && clearInterval(eP), eP = setInterval(S, 500));
+ e && e.isConnected && (e.hidden = !1, S(), $N && clearInterval($N), $N = setInterval(S, 500));
}, w = () => {
let e = y.chrome?.netBadge;
- e && (tP && clearTimeout(tP), tP = setTimeout(() => {
- e.hidden = !0, eP &&= (clearInterval(eP), null);
+ e && (eP && clearTimeout(eP), eP = setTimeout(() => {
+ e.hidden = !0, $N &&= (clearInterval($N), null);
}, 1400));
};
return l.on([
@@ -34194,7 +34194,7 @@ async function Pue(e, t, n, r = {}) {
], C), l.on(["canplay", "playing"], () => {
S(), w();
}), l.on("error", () => {
- b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(Eue(e)), n && l.play()?.catch(() => {})) : r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {
+ b && !x && !l.isDisposed() ? (x = !0, b = !1, l.src(Due(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))}`
@@ -34202,13 +34202,13 @@ async function Pue(e, t, n, r = {}) {
});
}), l.ready(() => {
_();
- let n = TN(l, t, e.height, r.qualities ?? null);
+ let n = wN(l, t, e.height, r.qualities ?? null);
r.mediaPromise?.then((t) => {
if (!g()) return;
n?.(t?.qualities?.length ? t.qualities : null);
let r = Number(t?.size) || 0;
- r > 0 && !f && (f = r, p.bitrate = $M(r, e.duration));
- }).catch(() => {}), EN(l, e, { thumbnail: !r.source }), r.guidePreview || bue(l, e), DN(l), r.source || ON(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(() => {}), TN(l, e, { thumbnail: !r.source }), r.guidePreview || xue(l, e), EN(l), r.source || DN(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;
@@ -34217,16 +34217,16 @@ async function Pue(e, t, n, r = {}) {
}), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), n && l.play()?.catch(() => {}));
}).catch(() => {}), l;
}
-var Fue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
-function rP(e, t = null) {
- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Fue), e.querySelector("#playerStatsBtn")) return;
+var Iue = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";
+function nP(e, t = null) {
+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", Iue), e.querySelector("#playerStatsBtn")) return;
let n = document.createElement("template");
- n.innerHTML = rue();
+ n.innerHTML = iue();
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 iP(e, t) {
- let n = QN.get(e);
+function rP(e, t) {
+ let n = ZN.get(e);
if (!n || e.isDisposed()) return () => {};
let r = (e) => t.querySelector(`#${e}`), i = {
statsButton: r("playerStatsBtn"),
@@ -34238,30 +34238,30 @@ function iP(e, t) {
if (a && o) {
a.hidden = !n.ready;
let e = () => {
- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), $N &&= (clearInterval($N), null));
+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), QN &&= (clearInterval(QN), null));
};
a.onclick = () => {
- o.hidden ? (document.dispatchEvent(new CustomEvent(nN, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), $N && clearInterval($N), $N = setInterval(n.updateStats, 1e3)) : e();
+ o.hidden ? (document.dispatchEvent(new CustomEvent(tN, { 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(nN, t), s = () => document.removeEventListener(nN, t);
+ document.addEventListener(tN, t), s = () => document.removeEventListener(tN, t);
}
- let c = e.el().querySelector("video"), l = c ? _ue(c) : () => {}, u = !0, d = () => {
- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, nP()));
+ let c = e.el().querySelector("video"), l = c ? vue(c) : () => {}, u = !0, d = () => {
+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, tP()));
};
return e.one("dispose", d), d;
}
-function aP(e, t) {
- if (t.kind === "immerse") return Mue(e, t);
- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = ZN(), c = HM(), l = t.chrome === !1 ? null : e.parentElement;
- l && rP(l, e);
- let u = MN(n, r, i?.index ?? null), d = {
+function iP(e, t) {
+ if (t.kind === "immerse") return Nue(e, t);
+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = XN(), c = VM(), l = t.chrome === !1 ? null : e.parentElement;
+ l && nP(l, e);
+ let u = jN(n, r, i?.index ?? null), d = {
guidePreview: s,
playbackKey: u,
resume: s ? null : t.resume ?? {
- time: Sue(u, r),
+ time: Cue(u, r),
autoplay: !1
}
};
@@ -34281,36 +34281,36 @@ function aP(e, t) {
t && (e.poster = t);
}
let f = null, p = !1, m = () => {}, h = e, g = () => {
- m(), !(f && a?.(f)) && (jN(h), f ? (JM() === f && (YM(null), nP()), LN(f)) : PN(h));
+ m(), !(f && a?.(f)) && (AN(h), f ? (qM() === f && (JM(null), tP()), IN(f)) : NN(h));
};
- return Pue(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)) : (Cue(u, h), n === "follow" ? wue(r, h) : (h.addEventListener("play", () => {
+ return Fue(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)) : (wue(u, h), n === "follow" ? Tue(r, h) : (h.addEventListener("play", () => {
Tn("/api/play", {
method: "POST",
body: JSON.stringify({ id: r.id })
}).catch(() => {});
- }, { once: !0 }), IN(r, h, {
+ }, { once: !0 }), FN(r, h, {
watched: "#watched",
mark: "#mark",
ratio: "#ratioTxt"
- })), t ? (l && (m = iP(t, l)), o?.(t)) : o?.(null)));
+ })), t ? (l && (m = rP(t, l)), o?.(t)) : o?.(null)));
}), () => {
p = !0, g();
};
}
// src/player/playback.ts
-function oP(e) {
+function aP(e) {
e && (e.paused ? e.play()?.catch(() => {}) : e.pause());
}
-function sP(e, t) {
+function oP(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 Iue(e, t, n) {
+function Lue(e, t, n) {
e.controls = !1;
let r = !1, i = null;
- return YN().then((a) => {
+ return JN().then((a) => {
if (r) return;
i = a(e, {
controls: !0,
@@ -34335,30 +34335,30 @@ function Iue(e, t, n) {
o.on("error", () => {
r || n();
}), o.ready(() => {
- r || o.isDisposed() || (TN(o, e), EN(o, null, { thumbnail: !1 }), DN(o));
+ r || o.isDisposed() || (wN(o, e), TN(o, null, { thumbnail: !1 }), EN(o));
}), o.src(t);
}).catch(() => {
r || n();
}), () => {
- r = !0, LN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
+ r = !0, IN(i), i || (e.pause(), e.removeAttribute("src"), e.load(), e.remove());
};
}
-function cP(e, t) {
+function sP(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var Lue = (e, t) => [
+var Rue = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], Rue = (e, t) => [
+], zue = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function zue(e, t, n, r, i) {
+async function Bue(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 = {
@@ -34368,22 +34368,22 @@ async function zue(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 Bue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Vue = (e, t) => {
+var Vue = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Hue = (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 Hue(e) {
- let t = cP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function Uue(e) {
+ let t = sP(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: Lue(t, e.revision || 0),
- queryFn: ({ pageParam: e, signal: i }) => zue(t, e, n, r, i),
+ queryKey: Rue(t, e.revision || 0),
+ queryFn: ({ pageParam: e, signal: i }) => Bue(t, e, n, r, i),
initialPageParam: 0,
- getNextPageParam: Bue(n)
+ getNextPageParam: Vue(n)
};
}
-function Uue(e) {
+function Wue(e) {
return {
- queryKey: Rue(e.entityKey || "", e.revision || 0),
+ queryKey: zue(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -34398,14 +34398,14 @@ function Uue(e) {
};
},
initialPageParam: 0,
- getNextPageParam: Vue
+ getNextPageParam: Hue
};
}
-function lP(e) {
+function cP(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 uP(e, t, n) {
+function lP(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -34420,24 +34420,24 @@ function uP(e, t, n) {
return !0;
}) : [...e];
}
-var dP = (e, t) => !!e && !!to(e, t);
-function Wue(e, t) {
- let n = (e) => dP(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
- return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => dP(e, t)) || e[e.length - 1];
+var uP = (e, t) => !!e && !!to(e, t);
+function Gue(e, t) {
+ let n = (e) => uP(e, t) && !!(e.creator || (e.performers || []).length || e.studio);
+ return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => uP(e, t)) || e[e.length - 1];
}
-function Gue(e, { collapse: t, mix: n, javImage: r }) {
+function Kue(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 = uP(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = lP(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 = Wue(e, r);
+ let t = Gue(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -34450,16 +34450,16 @@ function Gue(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function Kue(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 que(e, t) {
+function Jue(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 Jue(e, t) {
+function Yue(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -34472,10 +34472,10 @@ function Jue(e, t) {
strip: null
}), r;
}
-function fP(e, t) {
- pP((t) => t.id === e, t);
+function dP(e, t) {
+ fP((t) => t.id === e, t);
}
-function pP(e, t) {
+function fP(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) => ({
@@ -34505,34 +34505,34 @@ function pP(e, t) {
} : n)
});
}
-var mP = (e) => Math.min(Math.max(e || 0, 0), 100), hP = (e) => Math.round(mP(e) / 20), Yue = (e) => {
- let t = hP(e);
+var pP = (e) => Math.min(Math.max(e || 0, 0), 100), mP = (e) => Math.round(pP(e) / 20), Xue = (e) => {
+ let t = mP(e);
return t ? `${t} 星` : "未评分";
-}, gP = (e, t) => t === hP(e) ? 0 : t * 20, _P = (e) => ["item", e], vP = (e) => [
+}, hP = (e, t) => t === mP(e) ? 0 : t * 20, gP = (e) => ["item", e], _P = (e) => [
"item-queue",
e.kind,
e.kind === "playlist" ? e.playlistId : e.seedId
-], Xue = (e, t) => [
+], Zue = (e, t) => [
"item-related",
e,
t
-], Zue = (e) => `/api/item?id=${e}`, Que = (e, t) => `/api/related?id=${e}&limit=${t}`, yP = "/api/playlist", bP = "/api/feedback", xP = "/api/item-tag", SP = "/api/watch-later", CP = "/api/quality-goal", wP = "/api/preference", TP = class extends Error {};
-async function EP(e, t) {
- let n = await B(Zue(e), t);
- if (n.error) throw new TP(n.error);
+], Que = (e) => `/api/item?id=${e}`, $ue = (e, t) => `/api/related?id=${e}&limit=${t}`, vP = "/api/playlist", yP = "/api/feedback", bP = "/api/item-tag", xP = "/api/watch-later", SP = "/api/quality-goal", CP = "/api/preference", wP = class extends Error {};
+async function TP(e, t) {
+ let n = await B(Que(e), t);
+ if (n.error) throw new wP(n.error);
return n;
}
-async function DP(e, t, n) {
+async function EP(e, t, n) {
if (e.kind === "mix") {
- let r = e.seedId, [i, a] = await Promise.all([EP(r, n), t.mixRelated(r)]);
- return H.setQueryData(_P(i.id), i), {
+ let r = e.seedId, [i, a] = await Promise.all([TP(r, n), t.mixRelated(r)]);
+ return H.setQueryData(gP(i.id), i), {
kind: "mix",
seedId: r,
title: `Mix · ${Mo(i, t.tagLabel)}`,
items: [i, ...a.filter((e) => e.id !== i.id)]
};
}
- if (e.kind === "playlist") return OP(await B(`${yP}?id=${e.playlistId}`, n));
+ if (e.kind === "playlist") return DP(await B(`${vP}?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 {
@@ -34543,19 +34543,19 @@ async function DP(e, t, n) {
versionCount: e.kind === "editions" ? r.count : void 0
};
}
-var OP = (e) => ({
+var DP = (e) => ({
kind: "playlist",
playlistId: e.id,
title: e.name,
items: e.items || [],
currentAssetId: e.current_asset_id
-}), kP = (e) => e.disposal === "vanished";
-function AP(e, t) {
+}), OP = (e) => e.disposal === "vanished";
+function kP(e, t) {
if (e.kind === "mix") return t;
- let n = e.kind === "playlist" ? e.items.filter((e) => !kP(e)) : e.items;
+ let n = e.kind === "playlist" ? e.items.filter((e) => !OP(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 $ue(e, t) {
+function ede(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 : {
@@ -34563,20 +34563,20 @@ function $ue(e, t) {
part_label: n
};
}
-function jP(e, t) {
+function AP(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 MP(e, t) {
+async function jP(e, t) {
let { queue: n, actions: r } = e, i = null, a = !1;
if (n) {
- let o = vP(n);
+ let o = _P(n);
try {
let r = n.fresh ? void 0 : H.getQueryData(o);
a = !r && n.kind === "mix", i = r || await H.fetchQuery({
queryKey: o,
- queryFn: () => DP(n, e.helpers, t),
+ queryFn: () => EP(n, e.helpers, t),
staleTime: 0
});
} catch (n) {
@@ -34588,21 +34588,21 @@ async function MP(e, t) {
return;
}
}
- let o = i ? AP(i, e.id) : e.id;
+ let o = i ? kP(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(_P(o)) : void 0;
+ let s, c = a && o === i?.seedId ? H.getQueryData(gP(o)) : void 0;
try {
s = c || await H.fetchQuery({
- queryKey: _P(o),
- queryFn: () => EP(o, t),
+ queryKey: gP(o),
+ queryFn: () => TP(o, t),
staleTime: 0
});
} catch (e) {
if (t.aborted) throw e;
- if (e instanceof TP) {
+ if (e instanceof wP) {
r.redirect({ kind: "gone" });
return;
}
@@ -34613,7 +34613,7 @@ async function MP(e, t) {
id: Number(s.follow_item_id)
});
}
-function ede(e) {
+function tde(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);
@@ -34635,35 +34635,35 @@ function ede(e) {
unowned: !i.length && !c.length && !String(e.creator || "").trim()
};
}
-function tde(e, t) {
+function nde(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 NP = (e, t) => (e.tags || []).some((e) => Un(e.k) === Un(t)), PP = (e, t) => ({
+var MP = (e, t) => (e.tags || []).some((e) => Un(e.k) === Un(t)), NP = (e, t) => ({
...e,
tags: (e.tags || []).filter((e) => Un(e.k) !== Un(t))
-}), FP = (e, t) => NP(e, t.k) ? e : {
+}), PP = (e, t) => MP(e, t.k) ? e : {
...e,
tags: [...e.tags || [], t]
-}, IP = "peach.recentTags";
-function LP() {
+}, FP = "peach.recentTags";
+function IP() {
try {
- let e = JSON.parse(localStorage.getItem(IP) || "[]");
+ let e = JSON.parse(localStorage.getItem(FP) || "[]");
return Array.isArray(e) ? e.map(String) : [];
} catch {
return [];
}
}
-function RP(e) {
+function LP(e) {
try {
- let t = LP().filter((t) => Un(t) !== Un(e));
- localStorage.setItem(IP, JSON.stringify([e, ...t].slice(0, 12)));
+ let t = IP().filter((t) => Un(t) !== Un(e));
+ localStorage.setItem(FP, JSON.stringify([e, ...t].slice(0, 12)));
} catch {}
}
-function nde(e, t, n) {
+function rde(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
@@ -34674,72 +34674,72 @@ function nde(e, t, n) {
create: r && !s ? e.trim() : ""
};
}
-var rde = {
+var ide = {
中字: "subtitle",
无码: "uncensored",
无码破解: "cracked",
有码: "censored"
-}, ide = {
+}, ade = {
mix: "Mix",
parts: "分卷",
editions: "版本",
playlist: "播放列表"
};
-function ade(e) {
+function ode(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: ide[e.kind],
+ title: ade[e.kind],
summary: e.kind === "editions" ? n : `${e.title} · ${n}`
};
}
-var zP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, ode = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(zP(e.part_label))}</small>` : "";
-function sde(e, t, n, r) {
+var RP = (e = "") => /^\d+$/.test(e) ? `第 ${e} 卷` : /^[a-h]$/i.test(e) ? `${e.toUpperCase()} 卷` : e, sde = (e, t) => (t?.kind === "parts" || t?.kind === "editions") && e.part_label ? `<small class="javedition partlabel">${z(RP(e.part_label))}</small>` : "";
+function cde(e, t, n, r) {
let i = e.filter((e) => e !== t), a = i.indexOf(n);
return i.splice(a + +!!r, 0, t), i;
}
-var cde = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
-function lde(e, t) {
+var lde = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
+function ude(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 ude(e) {
+function dde(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 BP(e, t) {
+function zP(e, t) {
return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";
}
// src/react/immerse/immerse.ts
-var dde = (e, t, n) => [
+var fde = (e, t, n) => [
"immerse-list",
e,
t,
n
];
-function fde(e) {
+function pde(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 pde = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
-function mde(e, t = Math.random) {
+var mde = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.root_id || e.location || ""));
+function hde(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 hde(e, t) {
- return mde(((await B(`/api/items?${e}`)).items || []).filter((e) => pde(e, t)));
+async function gde(e, t) {
+ return hde(((await B(`/api/items?${e}`)).items || []).filter((e) => mde(e, t)));
}
-var VP = (e) => H.ensureQueryData({
- queryKey: _P(e),
- queryFn: ({ signal: t }) => EP(e, t)
+var BP = (e) => H.ensureQueryData({
+ queryKey: gP(e),
+ queryFn: ({ signal: t }) => TP(e, t)
});
-function gde(e, t) {
+function _de(e, t) {
let n = new Set(e.map((e) => e.id));
return e.concat(t.filter((e) => !n.has(e.id)));
}
-function _de(e) {
+function vde(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,
@@ -34748,313 +34748,313 @@ function _de(e) {
ref: r && e.entity_refs?.[r]?.[0] || null
};
}
-function vde(e, t, n) {
+function yde(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 yde(e, t) {
+function bde(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 bde = 15e3, HP = {
+var xde = 15e3, VP = {
open: !1,
idle: !1,
wide: !1,
loading: null,
shown: null
-}, UP = null, WP = null, GP = HP, KP = /* @__PURE__ */ new Set(), qP = 0, JP = 0, YP = 0, XP = "", ZP = [], QP = 0, $P = !1, eF = !1, tF = null, nF = /* @__PURE__ */ new Set(), rF = "", iF = null, aF = 0, oF = null, sF = !1, cF = null;
-function lF() {
- if (!UP) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
- return UP;
+}, HP = null, UP = null, WP = VP, GP = /* @__PURE__ */ new Set(), KP = 0, qP = 0, JP = 0, YP = "", XP = [], ZP = 0, QP = !1, $P = !1, eF = null, tF = /* @__PURE__ */ new Set(), nF = "", rF = null, iF = 0, aF = null, oF = !1, sF = null;
+function cF() {
+ if (!HP) throw Error("沉浸模式还没有接上宿主(configureImmerse)");
+ return HP;
}
-function xde(e) {
- return KP.add(e), () => {
- KP.delete(e);
+function Sde(e) {
+ return GP.add(e), () => {
+ GP.delete(e);
};
}
-function Sde() {
- for (let e of [...KP]) e();
+function Cde() {
+ for (let e of [...GP]) e();
}
-function uF() {
- (0, Rt.flushSync)(Sde);
+function lF() {
+ (0, Rt.flushSync)(Cde);
}
-function dF() {
- let e = iF ? aN(iF.id) : 0;
- return e ? `${rF} · ${sN(e)}` : rF;
+function uF() {
+ let e = rF ? iN(rF.id) : 0;
+ return e ? `${nF} · ${oN(e)}` : nF;
}
-function fF(e, t = null) {
- clearInterval(aF), aF = 0, e === null ? (GP = {
- ...GP,
+function dF(e, t = null) {
+ clearInterval(iF), iF = 0, e === null ? (WP = {
+ ...WP,
loading: null
- }, uF()) : (rF = e, iF = t, GP = {
- ...GP,
- loading: dF()
- }, uF(), aF = window.setInterval(() => {
- iF = ZP[QP] ?? null, GP = {
- ...GP,
- loading: dF()
- }, uF();
+ }, lF()) : (nF = e, rF = t, WP = {
+ ...WP,
+ loading: uF()
+ }, lF(), iF = window.setInterval(() => {
+ rF = XP[ZP] ?? null, WP = {
+ ...WP,
+ loading: uF()
+ }, lF();
}, 500));
}
-function Cde(e) {
+function wde(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), WP.track.append(t);
- let r = zN(), i = () => {}, a = {
+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), UP.track.append(t);
+ let r = RN(), i = () => {}, a = {
el: t,
video: n,
session: r,
- release: () => HN(r),
+ release: () => VN(r),
disposed: !1,
gone: new Promise((e) => {
i = e;
}),
leave: i
};
- return nF.add(a), a;
+ return tF.add(a), a;
}
-function wde(e, t) {
+function Tde(e, t) {
return new Promise((n) => {
- e.release = aP(e.video, {
+ e.release = iP(e.video, {
kind: "immerse",
item: t,
session: e.session,
onLoaded: n,
onEnded: () => {
- GP.open && bF(1);
+ WP.open && yF(1);
}
}), e.gone.then(n);
});
}
-function pF(e) {
- e && !e.disposed && (e.disposed = !0, nF.delete(e), e.leave(), e.release(), e.el.remove(), tF === e && (tF = null));
+function fF(e) {
+ e && !e.disposed && (e.disposed = !0, tF.delete(e), e.leave(), e.release(), e.el.remove(), eF === e && (eF = null));
}
-var mF = [
+var pF = [
"loadeddata",
"canplay",
"error"
];
-function Tde(e) {
+function Ede(e) {
let { video: t } = e;
return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {
let r = !1, i = () => {
- r || (r = !0, clearTimeout(a), mF.forEach((e) => t.removeEventListener(e, i)), n());
+ r || (r = !0, clearTimeout(a), pF.forEach((e) => t.removeEventListener(e, i)), n());
};
- mF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
- let a = setTimeout(i, bde);
+ pF.forEach((e) => t.addEventListener(e, i, { once: !0 }));
+ let a = setTimeout(i, xde);
e.gone.then(i);
});
}
-function hF(e) {
- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = vde(e.videoWidth, e.videoHeight, n);
+function mF(e) {
+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = yde(e.videoWidth, e.videoHeight, n);
r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;
}
-var gF = () => WP?.track.querySelectorAll("video").forEach(hF);
-function Ede(e) {
- delete e.dataset.fit, e.readyState >= 1 ? hF(e) : e.addEventListener("loadedmetadata", () => hF(e), { once: !0 });
-}
+var hF = () => UP?.track.querySelectorAll("video").forEach(mF);
function Dde(e) {
- GP = {
- ...GP,
+ delete e.dataset.fit, e.readyState >= 1 ? mF(e) : e.addEventListener("loadedmetadata", () => mF(e), { once: !0 });
+}
+function Ode(e) {
+ WP = {
+ ...WP,
wide: e
- }, uF(), gF();
+ }, lF(), hF();
}
-var _F = () => {
- let e = XP;
+var gF = () => {
+ let e = YP;
return H.fetchQuery({
- queryKey: dde(e, JP, YP),
- queryFn: () => hde(e, lF().sourceOffline),
+ queryKey: fde(e, qP, JP),
+ queryFn: () => gde(e, cF().sourceOffline),
staleTime: Infinity
});
};
-function Ode(e, t) {
+function kde(e, t) {
let n = () => qn(e.duration) || qn(t.duration);
e.addEventListener("timeupdate", () => {
let t = n();
- t && WP && (WP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
- }), oF = {
+ t && UP && (UP.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);
+ }), aF = {
video: e,
duration: n
- }, cF?.dispose(), cF = WP ? vN(WP.bar, t, { inset: 12 }) : null;
+ }, sF?.dispose(), sF = UP ? _N(UP.bar, t, { inset: 12 }) : null;
}
-function vF(e) {
- let t = oF?.duration();
- cF && t && (cF.prime(), cF.show(e, t));
+function _F(e) {
+ let t = aF?.duration();
+ sF && t && (sF.prime(), sF.show(e, t));
}
-async function yF(e = 0) {
- let t = ZP[QP];
- if (!t || $P) return;
- let n = qP;
- lF().route(t.id), $P = !0, fF(e ? "切换中" : "加载中", t);
+async function vF(e = 0) {
+ let t = XP[ZP];
+ if (!t || QP) return;
+ let n = KP;
+ cF().route(t.id), QP = !0, dF(e ? "切换中" : "加载中", t);
let r = null;
try {
- if (await VP(t.id).catch((e) => {
- if (!(e instanceof TP)) throw e;
- }), n !== qP) return;
- let i = tF, a = !!(e && i);
- a || pF(i);
- let o = Cde(a ? e > 0 ? 100 : -100 : 0);
- if (r = o, Ede(o.video), await wde(o, t), await Tde(o), o.disposed || (Dde(yde(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {
+ if (await BP(t.id).catch((e) => {
+ if (!(e instanceof wP)) throw e;
+ }), n !== KP) return;
+ let i = eF, a = !!(e && i);
+ a || fF(i);
+ let o = wde(a ? e > 0 ? 100 : -100 : 0);
+ if (r = o, Dde(o.video), await Tde(o, t), await Ede(o), o.disposed || (Ode(bde(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)), pF(i), o.el.style.transform = ""), o.disposed)) return;
- tF = o, r = null, o.video.play()?.catch(() => {}), GP = {
- ...GP,
+ })), await new Promise((e) => setTimeout(e, 210)), fF(i), o.el.style.transform = ""), o.disposed)) return;
+ eF = o, r = null, o.video.play()?.catch(() => {}), WP = {
+ ...WP,
idle: !1,
shown: {
item: t,
- index: QP,
- length: ZP.length
+ index: ZP,
+ length: XP.length
}
- }, Ode(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), fF(null);
+ }, kde(o.video, t), V("/api/play", { id: t.id }).catch(() => {}), dF(null);
} catch {
- pF(r), n === qP && fF(null);
+ fF(r), n === KP && dF(null);
} finally {
- n === qP && ($P = !1);
+ n === KP && (QP = !1);
}
}
-async function bF(e) {
- if ($P || !GP.open) return;
- let t = qP;
- if (QP += e, fF("切换中", ZP[QP] ?? null), QP >= ZP.length - 3 && !eF) {
- eF = !0;
+async function yF(e) {
+ if (QP || !WP.open) return;
+ let t = KP;
+ if (ZP += e, dF("切换中", XP[ZP] ?? null), ZP >= XP.length - 3 && !$P) {
+ $P = !0;
try {
- YP += 1;
- let e = await _F();
- t === qP && (ZP = gde(ZP, e));
+ JP += 1;
+ let e = await gF();
+ t === KP && (XP = _de(XP, e));
} catch {} finally {
- eF = !1;
+ $P = !1;
}
}
- t === qP && (QP >= ZP.length && (QP = 0), QP < 0 && (QP = ZP.length - 1), await yF(e));
+ t === KP && (ZP >= XP.length && (ZP = 0), ZP < 0 && (ZP = XP.length - 1), await vF(e));
}
-async function kde(e) {
- let t = ++qP;
- xF(), JP += 1, YP = 0, XP = fde(lF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), GP = {
- ...GP,
+async function Ade(e) {
+ let t = ++KP;
+ bF(), qP += 1, JP = 0, YP = pde(cF().filters()), H.removeQueries({ queryKey: ["immerse-list"] }), WP = {
+ ...WP,
open: !0,
idle: !0,
shown: null
- }, document.body.setAttribute("data-immerse-open", ""), fF("加载内容");
+ }, document.body.setAttribute("data-immerse-open", ""), dF("加载内容");
try {
- let n = await _F();
+ let n = await gF();
if (e && !n.some((t) => t.id === e)) {
- let t = await VP(e).catch((e) => {
- if (e instanceof TP) return null;
+ let t = await BP(e).catch((e) => {
+ if (e instanceof wP) return null;
throw e;
});
t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);
}
- if (t !== qP) return;
- if (ZP = n, !ZP.length) {
- SF(), lF().warn("当前筛选下没有可直接播放的内容");
+ if (t !== KP) return;
+ if (XP = n, !XP.length) {
+ xF(), cF().warn("当前筛选下没有可直接播放的内容");
return;
}
- QP = Math.max(0, ZP.findIndex((t) => t.id === e)), await yF();
+ ZP = Math.max(0, XP.findIndex((t) => t.id === e)), await vF();
} catch {
- if (t !== qP) return;
- fF(null), SF();
+ if (t !== KP) return;
+ dF(null), xF();
}
}
-function xF() {
- clearInterval(aF), aF = 0, OF(), EF = null, oF = null, sF = !1, cF?.dispose(), cF = null, [...nF].forEach(pF), $P = !1;
+function bF() {
+ clearInterval(iF), iF = 0, DF(), TF = null, aF = null, oF = !1, sF?.dispose(), sF = null, [...tF].forEach(fF), QP = !1;
}
-function SF() {
- GP.open && (qP++, xF(), GP = HP, document.body.removeAttribute("data-immerse-open"), uF(), lF().closed());
+function xF() {
+ WP.open && (KP++, bF(), WP = VP, document.body.removeAttribute("data-immerse-open"), lF(), cF().closed());
}
-var CF = 0, wF = null, TF = 0, EF = null, DF = 0;
-function OF() {
- clearTimeout(CF), CF = 0, wF = null;
+var SF = 0, CF = null, wF = 0, TF = null, EF = 0;
+function DF() {
+ clearTimeout(SF), SF = 0, CF = null;
}
-function Ade(e) {
- let t = tF?.video;
+function jde(e) {
+ let t = eF?.video;
if (!t) return;
let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();
- wF && wF.side === n && r - wF.at <= 280 ? (OF(), sP(t, lF().seekSeconds() * n)) : (CF && (clearTimeout(CF), CF = 0, oP(t)), wF = {
+ CF && CF.side === n && r - CF.at <= 280 ? (DF(), oP(t, cF().seekSeconds() * n)) : (SF && (clearTimeout(SF), SF = 0, aP(t)), CF = {
side: n,
at: r
- }, CF = window.setTimeout(() => {
- CF = 0, wF = null, GP.open && oP(tF?.video);
+ }, SF = window.setTimeout(() => {
+ SF = 0, CF = null, WP.open && aP(eF?.video);
}, 280));
}
-function jde() {
- Date.now() < TF || oP(tF?.video);
+function Mde() {
+ Date.now() < wF || aP(eF?.video);
}
-var kF = (e) => WP?.bar.toggleAttribute("data-scrubbing", e);
-function AF(e) {
- WP && (WP.progress.style.width = `${(e * 100).toFixed(2)}%`);
+var OF = (e) => UP?.bar.toggleAttribute("data-scrubbing", e);
+function kF(e) {
+ UP && (UP.progress.style.width = `${(e * 100).toFixed(2)}%`);
}
-function jF(e) {
+function AF(e) {
let t = e.target;
if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {
- EF = null;
+ TF = null;
return;
}
- let n = tF?.video;
- EF = {
+ let n = eF?.video;
+ TF = {
x: e.touches[0].clientX,
y: e.touches[0].clientY,
axis: "",
from: n && n.currentTime || 0
};
}
-function MF(e) {
- if (!EF || e.touches.length !== 1) return;
- let t = e.touches[0].clientX - EF.x, n = e.touches[0].clientY - EF.y;
- if (!EF.axis) {
+function jF(e) {
+ if (!TF || e.touches.length !== 1) return;
+ let t = e.touches[0].clientX - TF.x, n = e.touches[0].clientY - TF.y;
+ if (!TF.axis) {
if (Math.abs(t) < 12 && Math.abs(n) < 12) return;
- EF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", EF.axis === "x" && kF(!0);
+ TF.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", TF.axis === "x" && OF(!0);
}
- if (EF.axis !== "x") return;
- let r = tF?.video, i = r && r.duration || 0;
- i && (e.preventDefault(), EF.to = Math.min(i, Math.max(0, EF.from + t / window.innerWidth * i)), AF(EF.to / i), vF(EF.to / i));
+ if (TF.axis !== "x") return;
+ let r = eF?.video, i = r && r.duration || 0;
+ i && (e.preventDefault(), TF.to = Math.min(i, Math.max(0, TF.from + t / window.innerWidth * i)), kF(TF.to / i), _F(TF.to / i));
}
-function NF(e) {
- if (!EF) return;
- let t = EF;
- if (EF = null, TF = Date.now() + 700, kF(!1), cF?.hide(), t.axis === "x") {
- let e = tF?.video;
+function MF(e) {
+ if (!TF) return;
+ let t = TF;
+ if (TF = null, wF = Date.now() + 700, OF(!1), sF?.hide(), t.axis === "x") {
+ let e = eF?.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 ? (OF(), bF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), Ade(n.clientX));
+ Math.abs(i) > 60 ? (DF(), yF(i > 0 ? 1 : -1)) : Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), jde(n.clientX));
}
-function PF() {
- EF = null, kF(!1), cF?.hide();
+function NF() {
+ TF = null, OF(!1), sF?.hide();
}
-function FF(e) {
+function PF(e) {
let t = Date.now();
- t - DF < 260 || (DF = t, bF(e.deltaY > 0 ? 1 : -1));
+ t - EF < 260 || (EF = t, yF(e.deltaY > 0 ? 1 : -1));
}
-function IF(e) {
- let t = WP.bar.getBoundingClientRect();
+function FF(e) {
+ let t = UP.bar.getBoundingClientRect();
return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));
}
-function Mde(e) {
- oF?.duration() && (sF = !0, kF(!0), e.currentTarget.setPointerCapture(e.pointerId), AF(IF(e)), vF(IF(e)), e.preventDefault());
-}
function Nde(e) {
- sF && AF(IF(e)), vF(IF(e));
+ aF?.duration() && (oF = !0, OF(!0), e.currentTarget.setPointerCapture(e.pointerId), kF(FF(e)), _F(FF(e)), e.preventDefault());
}
function Pde(e) {
- if (e.pointerType !== "mouse" && cF?.hide(), !sF) return;
- sF = !1, kF(!1);
- let t = oF?.duration();
- oF && t && (oF.video.currentTime = t * IF(e));
+ oF && kF(FF(e)), _F(FF(e));
}
-function Fde() {
- sF = !1, kF(!1), cF?.hide();
+function Fde(e) {
+ if (e.pointerType !== "mouse" && sF?.hide(), !oF) return;
+ oF = !1, OF(!1);
+ let t = aF?.duration();
+ aF && t && (aF.video.currentTime = t * FF(e));
}
function Ide() {
- sF || cF?.hide();
+ oF = !1, OF(!1), sF?.hide();
+}
+function Lde() {
+ oF || sF?.hide();
}
-async function LF(e, t) {
- let n = await V(bP, {
+async function IF(e, t) {
+ let n = await V(yP, {
id: e,
kind: t
- }), r = H.getQueryData(_P(e));
- if (!r) return fP(e, {
+ }), r = H.getQueryData(gP(e));
+ if (!r) return dP(e, {
feedback: n.feedback ?? void 0,
o_count: n.o_count
}), n;
@@ -35063,7 +35063,7 @@ async function LF(e, t) {
feedback: n.feedback ?? void 0,
o_count: n.o_count
};
- return H.setQueryData(_P(e), i), fP(e, {
+ return H.setQueryData(gP(e), i), dP(e, {
feedback: i.feedback,
disposal: i.disposal,
watch_later: i.watch_later,
@@ -35071,7 +35071,7 @@ async function LF(e, t) {
o_count: i.o_count
}), n;
}
-var Lde = [
+var Rde = [
{
kind: "dislike",
glyph: "thumbs-down",
@@ -35088,31 +35088,31 @@ var Lde = [
label: "记一次高潮"
}
];
-function RF(e) {
+function LF(e) {
return Ft({
- queryKey: _P(e ?? 0),
- queryFn: ({ signal: t }) => EP(e, t),
+ queryKey: gP(e ?? 0),
+ queryFn: ({ signal: t }) => TP(e, t),
enabled: e != null,
staleTime: Infinity
}).data;
}
-function Rde({ kind: e, glyph: t, label: n, id: r }) {
- let i = RF(r), a = It({
+function zde({ kind: e, glyph: t, label: n, id: r }) {
+ let i = LF(r), a = It({
mutationFn: async (t) => {
- let n = H.getQueryData(_P(t))?.feedback || null;
+ let n = H.getQueryData(gP(t))?.feedback || null;
return {
- result: await LF(t, e),
+ result: await IF(t, e),
before: n
};
},
onSuccess: ({ result: t, before: n }, r) => {
- lF().toast(BP(e, t), { undo: async () => {
- e === "o" ? await LF(r, "o-undo") : (t.feedback && await LF(r, t.feedback), n && await LF(r, n));
+ cF().toast(zP(e, t), { undo: async () => {
+ e === "o" ? await IF(r, "o-undo") : (t.feedback && await IF(r, t.feedback), n && await IF(r, n));
} }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {
- bF(1);
+ yF(1);
}, 260);
},
- onError: (e) => lF().failure("更新反馈", e)
+ onError: (e) => cF().failure("更新反馈", e)
}), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-immerse-action": "",
@@ -35143,11 +35143,11 @@ function Rde({ kind: e, glyph: t, label: n, id: r }) {
})]
});
}
-function zde({ shown: e }) {
- let t = e?.item ?? null, n = RF(t?.id ?? null), r = n ? _de(n) : null, i = lF(), a = (e) => {
- e.preventDefault(), n && (SF(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
+function Bde({ shown: e }) {
+ let t = e?.item ?? null, n = LF(t?.id ?? null), r = n ? vde(n) : null, i = cF(), a = (e) => {
+ e.preventDefault(), n && (xF(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());
}, o = () => {
- t && (SF(), i.openItem(t.id));
+ t && (xF(), 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": "",
@@ -35176,18 +35176,18 @@ function zde({ shown: e }) {
})]
});
}
-var Bde = { __html: Bs("媒体加载中") };
-function Vde({ view: e }) {
+var Vde = { __html: Bs("媒体加载中") };
+function Hde({ 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 WP = {
+ return UP = {
root: e,
track: n.current,
bar: r.current,
progress: i.current
- }, e.addEventListener("touchstart", jF, { passive: !0 }), e.addEventListener("touchmove", MF, { passive: !1 }), e.addEventListener("touchend", NF, { passive: !1 }), e.addEventListener("touchcancel", PF, { passive: !0 }), e.addEventListener("wheel", FF, { passive: !0 }), () => {
- e.removeEventListener("touchstart", jF), e.removeEventListener("touchmove", MF), e.removeEventListener("touchend", NF), e.removeEventListener("touchcancel", PF), e.removeEventListener("wheel", FF), WP = null;
+ }, e.addEventListener("touchstart", AF, { passive: !0 }), e.addEventListener("touchmove", jF, { passive: !1 }), e.addEventListener("touchend", MF, { passive: !1 }), e.addEventListener("touchcancel", NF, { passive: !0 }), e.addEventListener("wheel", PF, { passive: !0 }), () => {
+ e.removeEventListener("touchstart", AF), e.removeEventListener("touchmove", jF), e.removeEventListener("touchend", MF), e.removeEventListener("touchcancel", NF), e.removeEventListener("wheel", PF), UP = null;
};
}, []);
let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;
@@ -35204,10 +35204,10 @@ function Vde({ view: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("div", {
ref: n,
"data-immerse-track": "",
- onClick: jde
+ onClick: Mde
}), /* @__PURE__ */ (0, I.jsx)("div", {
"data-immerse-actions": "",
- children: Lde.map((e) => /* @__PURE__ */ (0, I.jsx)(Rde, {
+ children: Rde.map((e) => /* @__PURE__ */ (0, I.jsx)(zde, {
...e,
id: a
}, e.kind))
@@ -35220,7 +35220,7 @@ function Vde({ view: e }) {
hidden: e.loading === null,
children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-immerse-spinner": "",
- dangerouslySetInnerHTML: Bde
+ dangerouslySetInnerHTML: Vde
}), /* @__PURE__ */ (0, I.jsx)("span", { children: e.loading ?? "" })]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -35228,7 +35228,7 @@ function Vde({ view: e }) {
"data-immerse-close": "",
title: "关闭",
"aria-label": "关闭",
- onClick: SF,
+ onClick: xF,
children: /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-x" })
@@ -35237,42 +35237,42 @@ function Vde({ view: e }) {
/* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
"data-immerse-bar": "",
- onPointerDown: Mde,
- onPointerMove: Nde,
- onPointerUp: Pde,
- onPointerCancel: Fde,
- onPointerLeave: Ide,
+ onPointerDown: Nde,
+ onPointerMove: Pde,
+ onPointerUp: Fde,
+ onPointerCancel: Ide,
+ onPointerLeave: Lde,
children: /* @__PURE__ */ (0, I.jsx)("i", { ref: i })
}),
- /* @__PURE__ */ (0, I.jsx)(zde, { shown: e.shown })
+ /* @__PURE__ */ (0, I.jsx)(Bde, { shown: e.shown })
]
});
}
-var Hde = {
- open: kde,
- close: SF,
- isOpen: () => GP.open,
- activeVideo: () => GP.open ? tF?.video ?? null : null
+var Ude = {
+ open: Ade,
+ close: xF,
+ isOpen: () => WP.open,
+ activeVideo: () => WP.open ? eF?.video ?? null : null
};
-function Ude(e) {
- if (!GP.open) return;
+function Wde(e) {
+ if (!WP.open) return;
let t = e.target;
- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && bF(1), e.key === "ArrowUp" && bF(-1));
+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && yF(1), e.key === "ArrowUp" && yF(-1));
}
-function Wde(e) {
- let t = !UP;
- return UP = e, t && (document.addEventListener("keydown", Ude), addEventListener("resize", () => {
- GP.open && gF();
+function Gde(e) {
+ let t = !HP;
+ return HP = e, t && (document.addEventListener("keydown", Wde), addEventListener("resize", () => {
+ WP.open && hF();
}), addEventListener("pagehide", () => {
- nF.forEach((e) => HN(e.session));
- })), Hde;
+ tF.forEach((e) => VN(e.session));
+ })), Ude;
}
-function Gde() {
- let e = (0, F.useSyncExternalStore)(xde, () => GP);
- return UP ? /* @__PURE__ */ (0, I.jsx)(Vde, { view: e }) : null;
+function Kde() {
+ let e = (0, F.useSyncExternalStore)(Sde, () => WP);
+ return HP ? /* @__PURE__ */ (0, I.jsx)(Hde, { view: e }) : null;
}
// src/manage-header.ts
-var zF = {
+var RF = {
...Xf,
"/junk-files": "垃圾文件",
"/duplicates": "重复文件",
@@ -35280,47 +35280,47 @@ var zF = {
"/trash": "回收站",
"/quality-goals": "高清版",
"/sources": "来源和凭证"
-}, Kde = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
-function qde(e) {
- let t = zF[e.path] ? "cleanup" : e.section;
+}, qde = /* @__PURE__ */ new Set(["/data-cleanup", "/sources"]);
+function Jde(e) {
+ let t = RF[e.path] ? "cleanup" : e.section;
return e.menu.some(([e]) => e === t) ? t : "";
}
-var Jde = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
-function BF(e) {
+var Yde = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t.toLocaleString()}`;
+function zF(e) {
let t = e.sections.find(([t]) => t === e.section);
if (!t) return null;
- let n = zF[e.path] ?? "";
+ let n = RF[e.path] ?? "";
return {
title: e.section === "cleanup" && n || t[1],
- pressed: qde(e),
+ pressed: Jde(e),
crumb: n,
- compact: Kde.has(e.path) || e.section === "configuration",
+ compact: qde.has(e.path) || e.section === "configuration",
lede: e.section === "trash" ? e.trash ? {
kind: "count",
- text: Jde(e.trash),
+ text: Yde(e.trash),
total: e.trash.total
} : { kind: "skeleton" } : { kind: "none" }
};
}
-var VF = (e) => e.replace(/[&<>"']/g, (e) => ({
+var BF = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
-})[e]), HF = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${VF(e)}"/></svg>`, UF = "<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 Yde(e) {
- let t = BF(e);
+})[e]), VF = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${BF(e)}"/></svg>`, HF = "<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 Xde(e) {
+ let t = zF(e);
if (!t) return "";
let n = e.menu.map(([e, n, r]) => {
let i = e === t.pressed;
- return `<button type="button" data-manage="${VF(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${HF(r)}<span>${VF(n)}</span></button>`;
- }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${HF("chevron-right")}</li><li aria-current="true"><span>${VF(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? UF : `<span data-lede-text="">${VF(t.lede.text)}</span>${t.lede.total ? Xde : ""}`}</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=\"\"" : ""}>${VF(t.title)}</h2>` + i;
+ return `<button type="button" data-manage="${BF(e)}" data-pill-variant="gray" aria-pressed="${i}"${i ? " aria-current=\"page\" data-pill-selected=\"\"" : ""}>${VF(r)}<span>${BF(n)}</span></button>`;
+ }).join(""), r = t.crumb ? `<nav data-manage-crumb="" aria-label="Breadcrumb"><ol><li><a href="/data-cleanup">数据管理</a>${VF("chevron-right")}</li><li aria-current="true"><span>${BF(t.crumb)}</span></li></ol></nav>` : "", i = t.lede.kind === "none" ? "" : `<p class="mono" data-manage-lede="">${t.lede.kind === "skeleton" ? HF : `<span data-lede-text="">${BF(t.lede.text)}</span>${t.lede.total ? Zde : ""}`}</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=\"\"" : ""}>${BF(t.title)}</h2>` + i;
}
-var Xde = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
+var Zde = "<button type=\"button\" data-empty-trash=\"\" title=\"永久删除回收站内容\">清空回收站</button>";
// src/react/settings-panel/icon.tsx
-function WF({ name: e }) {
+function UF({ name: e }) {
let { wide: t, viewBox: n } = Cn(e);
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: n,
@@ -35329,7 +35329,7 @@ function WF({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function Zde({ name: e }) {
+function Qde({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -35337,88 +35337,88 @@ function Zde({ name: e }) {
});
}
// node_modules/tailwind-merge/dist/bundle-mjs.mjs
-var Qde = (e, t) => {
+var $de = (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;
-}, $de = (e, t) => ({
+}, efe = (e, t) => ({
classGroupId: e,
validator: t
-}), GF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), WF = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), KF = "-", qF = [], efe = "arbitrary..", tfe = (e) => {
- let t = rfe(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), GF = "-", KF = [], tfe = "arbitrary..", nfe = (e) => {
+ let t = ife(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return nfe(e);
- let n = e.split(KF);
- return JF(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return rfe(e);
+ let n = e.split(GF);
+ return qF(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? Qde(i, t) : t : i || qF;
+ return t ? i ? $de(i, t) : t : i || KF;
}
- return n[e] || qF;
+ return n[e] || KF;
}
};
-}, JF = (e, t, n) => {
+}, qF = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = JF(e, t + 1, i);
+ let n = qF(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(KF) : e.slice(t).join(KF), s = a.length;
+ let o = t === 0 ? e.join(GF) : e.slice(t).join(GF), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, nfe = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, rfe = (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 ? efe + r : void 0;
-})(), rfe = (e) => {
+ return r ? tfe + r : void 0;
+})(), ife = (e) => {
let { theme: t, classGroups: n } = e;
- return ife(n, t);
-}, ife = (e, t) => {
- let n = GF();
+ return afe(n, t);
+}, afe = (e, t) => {
+ let n = WF();
for (let r in e) {
let i = e[r];
- YF(i, n, r, t);
+ JF(i, n, r, t);
}
return n;
-}, YF = (e, t, n, r) => {
+}, JF = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- afe(i, t, n, r);
+ ofe(i, t, n, r);
}
-}, afe = (e, t, n, r) => {
- typeof e == "string" ? ofe(e, t, n) : typeof e == "function" ? sfe(e, t, n, r) : cfe(e, t, n, r);
-}, ofe = (e, t, n) => {
- let r = e === "" ? t : XF(t, e);
+}, ofe = (e, t, n, r) => {
+ typeof e == "string" ? sfe(e, t, n) : typeof e == "function" ? cfe(e, t, n, r) : lfe(e, t, n, r);
+}, sfe = (e, t, n) => {
+ let r = e === "" ? t : YF(t, e);
r.classGroupId = n;
-}, sfe = (e, t, n, r) => {
- lfe(e) ? YF(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push($de(n, e)));
}, cfe = (e, t, n, r) => {
+ ufe(e) ? JF(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(efe(n, e)));
+}, lfe = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- YF(o, XF(t, a), n, r);
+ JF(o, YF(t, a), n, r);
}
-}, XF = (e, t) => {
- let n = e, r = t.split(KF), i = r.length;
+}, YF = (e, t) => {
+ let n = e, r = t.split(GF), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = GF(), n.nextPart.set(t, i)), n = i;
+ i || (i = WF(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, lfe = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, ufe = (e) => {
+}, ufe = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, dfe = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -35436,19 +35436,19 @@ var Qde = (e, t) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, ZF = "!", QF = ":", dfe = [], $F = (e, t, n, r, i) => ({
+}, XF = "!", ZF = ":", ffe = [], QF = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), ffe = (e) => {
+}), pfe = (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 === QF) {
+ if (o === ZF) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -35460,13 +35460,13 @@ var Qde = (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(ZF) ? (c = s.slice(0, -1), l = !0) : s.startsWith(ZF) && (c = s.slice(1), l = !0);
+ s.endsWith(XF) ? (c = s.slice(0, -1), l = !0) : s.startsWith(XF) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return $F(t, l, c, u);
+ return QF(t, l, c, u);
};
if (t) {
- let e = t + QF, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : $F(dfe, !1, t, void 0, !0);
+ let e = t + ZF, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : QF(ffe, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -35476,7 +35476,7 @@ var Qde = (e, t) => {
});
}
return r;
-}, pfe = (e) => {
+}, mfe = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -35488,18 +35488,18 @@ var Qde = (e, t) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, mfe = (e) => ({
- cache: ufe(e.cacheSize),
- parseClassName: ffe(e),
- sortModifiers: pfe(e),
- postfixLookupClassGroupIds: hfe(e),
- ...tfe(e)
-}), hfe = (e) => {
+}, hfe = (e) => ({
+ cache: dfe(e.cacheSize),
+ parseClassName: pfe(e),
+ sortModifiers: mfe(e),
+ postfixLookupClassGroupIds: gfe(e),
+ ...nfe(e)
+}), gfe = (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;
-}, gfe = /\s+/, _fe = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(gfe), l = "";
+}, _fe = /\s+/, vfe = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(_fe), 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) {
@@ -35519,7 +35519,7 @@ var Qde = (e, t) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + ZF : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + XF : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -35530,34 +35530,34 @@ var Qde = (e, t) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, vfe = (...e) => {
+}, yfe = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = eI(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = $F(n)) && (i && (i += " "), i += r);
return i;
-}, eI = (e) => {
+}, $F = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = eI(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = $F(e[r])) && (n && (n += " "), n += t);
return n;
-}, tI = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = mfe(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, eI = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = hfe(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 = _fe(e, n);
+ let a = vfe(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(vfe(...e));
-}, yfe = [], nI = (e) => {
- let t = (t) => t[e] || yfe;
+ return a = o, (...e) => a(yfe(...e));
+}, bfe = [], tI = (e) => {
+ let t = (t) => t[e] || bfe;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, rI = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, iI = /^\((?:(\w[\w-]*):)?(.+)\)$/i, bfe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, xfe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Sfe = /\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$/, Cfe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, wfe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Tfe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, aI = (e) => bfe.test(e), oI = (e) => !!e && !Number.isNaN(Number(e)), sI = (e) => !!e && Number.isInteger(Number(e)), cI = (e) => e.endsWith("%") && oI(e.slice(0, -1)), lI = (e) => xfe.test(e), uI = () => !0, Efe = (e) => Sfe.test(e) && !Cfe.test(e), dI = () => !1, Dfe = (e) => wfe.test(e), Ofe = (e) => Tfe.test(e), kfe = (e) => !fI(e) && !_I(e), Afe = (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)), jfe = (e) => xI(e, TI, dI), fI = (e) => rI.test(e), pI = (e) => xI(e, EI, Efe), mI = (e) => xI(e, zfe, oI), Mfe = (e) => xI(e, OI, uI), Nfe = (e) => xI(e, DI, dI), hI = (e) => xI(e, CI, dI), Pfe = (e) => xI(e, wI, Ofe), gI = (e) => xI(e, kI, Dfe), _I = (e) => iI.test(e), vI = (e) => SI(e, EI), Ffe = (e) => SI(e, DI), yI = (e) => SI(e, CI), Ife = (e) => SI(e, TI), Lfe = (e) => SI(e, wI), bI = (e) => SI(e, kI, !0), Rfe = (e) => SI(e, OI, !0), xI = (e, t, n) => {
- let r = rI.exec(e);
+}, nI = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, rI = /^\((?:(\w[\w-]*):)?(.+)\)$/i, xfe = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Sfe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Cfe = /\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$/, wfe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Tfe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Efe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, iI = (e) => xfe.test(e), aI = (e) => !!e && !Number.isNaN(Number(e)), oI = (e) => !!e && Number.isInteger(Number(e)), sI = (e) => e.endsWith("%") && aI(e.slice(0, -1)), cI = (e) => Sfe.test(e), lI = () => !0, Dfe = (e) => Cfe.test(e) && !wfe.test(e), uI = () => !1, Ofe = (e) => Tfe.test(e), kfe = (e) => Efe.test(e), Afe = (e) => !dI(e) && !gI(e), jfe = (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)), Mfe = (e) => bI(e, wI, uI), dI = (e) => nI.test(e), fI = (e) => bI(e, TI, Dfe), pI = (e) => bI(e, Bfe, aI), Nfe = (e) => bI(e, DI, lI), Pfe = (e) => bI(e, EI, uI), mI = (e) => bI(e, SI, uI), Ffe = (e) => bI(e, CI, kfe), hI = (e) => bI(e, OI, Ofe), gI = (e) => rI.test(e), _I = (e) => xI(e, TI), Ife = (e) => xI(e, EI), vI = (e) => xI(e, SI), Lfe = (e) => xI(e, wI), Rfe = (e) => xI(e, CI), yI = (e) => xI(e, OI, !0), zfe = (e) => xI(e, DI, !0), bI = (e, t, n) => {
+ let r = nI.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, SI = (e, t, n = !1) => {
- let r = iI.exec(e);
+}, xI = (e, t, n = !1) => {
+ let r = rI.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, CI = (e) => e === "position" || e === "percentage", wI = (e) => e === "image" || e === "url", TI = (e) => e === "length" || e === "size" || e === "bg-size", EI = (e) => e === "length", zfe = (e) => e === "number", DI = (e) => e === "family-name", OI = (e) => e === "number" || e === "weight", kI = (e) => e === "shadow", AI = () => {
- let e = nI("color"), t = nI("font"), n = nI("text"), r = nI("font-weight"), i = nI("tracking"), a = nI("leading"), o = nI("breakpoint"), s = nI("container"), c = nI("spacing"), l = nI("radius"), u = nI("shadow"), d = nI("inset-shadow"), f = nI("text-shadow"), p = nI("drop-shadow"), m = nI("blur"), h = nI("perspective"), g = nI("aspect"), _ = nI("ease"), v = nI("animate"), y = () => [
+}, SI = (e) => e === "position" || e === "percentage", CI = (e) => e === "image" || e === "url", wI = (e) => e === "length" || e === "size" || e === "bg-size", TI = (e) => e === "length", Bfe = (e) => e === "number", EI = (e) => e === "family-name", DI = (e) => e === "number" || e === "weight", OI = (e) => e === "shadow", kI = () => {
+ let e = tI("color"), t = tI("font"), n = tI("text"), r = tI("font-weight"), i = tI("tracking"), a = tI("leading"), o = tI("breakpoint"), s = tI("container"), c = tI("spacing"), l = tI("radius"), u = tI("shadow"), d = tI("inset-shadow"), f = tI("text-shadow"), p = tI("drop-shadow"), m = tI("blur"), h = tI("perspective"), g = tI("aspect"), _ = tI("ease"), v = tI("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -35582,8 +35582,8 @@ var Qde = (e, t) => {
"left-bottom"
], x = () => [
...b(),
- _I,
- fI
+ gI,
+ dI
], S = () => [
"auto",
"hidden",
@@ -35595,43 +35595,43 @@ var Qde = (e, t) => {
"contain",
"none"
], w = () => [
- _I,
- fI,
+ gI,
+ dI,
c
], T = () => [
- aI,
+ iI,
"full",
"auto",
...w()
], E = () => [
- sI,
+ oI,
"none",
"subgrid",
- _I,
- fI
+ gI,
+ dI
], D = () => [
"auto",
{ span: [
"full",
- sI,
- _I,
- fI
+ oI,
+ gI,
+ dI
] },
- sI,
- _I,
- fI
+ oI,
+ gI,
+ dI
], O = () => [
- sI,
+ oI,
"auto",
- _I,
- fI
+ gI,
+ dI
], k = () => [
"auto",
"min",
"max",
"fr",
- _I,
- fI
+ gI,
+ dI
], A = () => [
"start",
"end",
@@ -35651,7 +35651,7 @@ var Qde = (e, t) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], ee = () => [
- aI,
+ iI,
"auto",
"full",
"dvw",
@@ -35666,7 +35666,7 @@ var Qde = (e, t) => {
...w()
], N = () => [
s,
- aI,
+ iI,
"screen",
"full",
"dvw",
@@ -35677,7 +35677,7 @@ var Qde = (e, t) => {
"fit",
...w()
], te = () => [
- aI,
+ iI,
"screen",
"full",
"lh",
@@ -35690,13 +35690,13 @@ var Qde = (e, t) => {
...w()
], P = () => [
e,
- _I,
- fI
+ gI,
+ dI
], ne = () => [
...b(),
- yI,
- hI,
- { position: [_I, fI] }
+ vI,
+ mI,
+ { position: [gI, dI] }
], re = () => ["no-repeat", { repeat: [
"",
"x",
@@ -35707,25 +35707,25 @@ var Qde = (e, t) => {
"auto",
"cover",
"contain",
- Ife,
- jfe,
- { size: [_I, fI] }
+ Lfe,
+ Mfe,
+ { size: [gI, dI] }
], I = () => [
- cI,
- vI,
- pI
+ sI,
+ _I,
+ fI
], ie = () => [
"",
"none",
"full",
l,
- _I,
- fI
+ gI,
+ dI
], ae = () => [
"",
- oI,
- vI,
- pI
+ aI,
+ _I,
+ fI
], oe = () => [
"solid",
"dashed",
@@ -35749,32 +35749,32 @@ var Qde = (e, t) => {
"color",
"luminosity"
], ce = () => [
- oI,
- cI,
- yI,
- hI
+ aI,
+ sI,
+ vI,
+ mI
], le = () => [
"",
"none",
m,
- _I,
- fI
+ gI,
+ dI
], ue = () => [
"none",
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
], de = () => [
"none",
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
], fe = () => [
- oI,
- _I,
- fI
- ], pe = () => [
aI,
+ gI,
+ dI
+ ], pe = () => [
+ iI,
"full",
...w()
];
@@ -35788,17 +35788,17 @@ var Qde = (e, t) => {
"bounce"
],
aspect: ["video"],
- blur: [lI],
- breakpoint: [lI],
- color: [uI],
- container: [lI],
- "drop-shadow": [lI],
+ blur: [cI],
+ breakpoint: [cI],
+ color: [lI],
+ container: [cI],
+ "drop-shadow": [cI],
ease: [
"in",
"out",
"in-out"
],
- font: [kfe],
+ font: [Afe],
"font-weight": [
"thin",
"extralight",
@@ -35810,7 +35810,7 @@ var Qde = (e, t) => {
"extrabold",
"black"
],
- "inset-shadow": [lI],
+ "inset-shadow": [cI],
leading: [
"none",
"tight",
@@ -35827,11 +35827,11 @@ var Qde = (e, t) => {
"distant",
"none"
],
- radius: [lI],
- shadow: [lI],
- spacing: ["px", oI],
- text: [lI],
- "text-shadow": [lI],
+ radius: [cI],
+ shadow: [cI],
+ spacing: ["px", aI],
+ text: [cI],
+ "text-shadow": [cI],
tracking: [
"tighter",
"tight",
@@ -35845,9 +35845,9 @@ var Qde = (e, t) => {
aspect: [{ aspect: [
"auto",
"square",
- aI,
- fI,
- _I,
+ iI,
+ dI,
+ gI,
g
] }],
container: ["container"],
@@ -35855,15 +35855,15 @@ var Qde = (e, t) => {
"",
"normal",
"size",
- _I,
- fI
+ gI,
+ dI
] }],
- "container-named": [Afe],
+ "container-named": [jfe],
columns: [{ columns: [
- oI,
+ aI,
"auto",
- fI,
- _I,
+ dI,
+ gI,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -35960,13 +35960,13 @@ var Qde = (e, t) => {
"collapse"
],
z: [{ z: [
- sI,
+ oI,
"auto",
- _I,
- fI
+ gI,
+ dI
] }],
basis: [{ basis: [
- aI,
+ iI,
"full",
"auto",
s,
@@ -35984,32 +35984,32 @@ var Qde = (e, t) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- oI,
aI,
+ iI,
"auto",
"initial",
"none",
- fI
+ dI
] }],
grow: [{ grow: [
"",
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
] }],
shrink: [{ shrink: [
"",
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
] }],
order: [{ order: [
- sI,
+ oI,
"first",
"last",
"none",
- _I,
- fI
+ gI,
+ dI
] }],
"grid-cols": [{ "grid-cols": E() }],
"col-start-end": [{ col: D() }],
@@ -36116,15 +36116,15 @@ var Qde = (e, t) => {
"font-size": [{ text: [
"base",
n,
- vI,
- pI
+ _I,
+ fI
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- Rfe,
- Mfe
+ zfe,
+ Nfe
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -36136,15 +36136,15 @@ var Qde = (e, t) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- cI,
- fI
+ sI,
+ dI
] }],
"font-family": [{ font: [
- Ffe,
- Nfe,
+ Ife,
+ Pfe,
t
] }],
- "font-features": [{ "font-features": [fI] }],
+ "font-features": [{ "font-features": [dI] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -36153,14 +36153,14 @@ var Qde = (e, t) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- _I,
- fI
+ gI,
+ dI
] }],
"line-clamp": [{ "line-clamp": [
- oI,
+ aI,
"none",
- _I,
- mI
+ gI,
+ pI
] }],
leading: [{ leading: [
"none",
@@ -36169,16 +36169,16 @@ var Qde = (e, t) => {
] }],
"list-image": [{ "list-image": [
"none",
- _I,
- fI
+ gI,
+ dI
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- _I,
- fI
+ gI,
+ dI
] }],
"text-alignment": [{ text: [
"left",
@@ -36198,18 +36198,18 @@ var Qde = (e, t) => {
],
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- oI,
+ aI,
"from-font",
"auto",
- _I,
- pI
+ gI,
+ fI
] }],
"text-decoration-color": [{ decoration: P() }],
"underline-offset": [{ "underline-offset": [
- oI,
+ aI,
"auto",
- _I,
- fI
+ gI,
+ dI
] }],
"text-transform": [
"uppercase",
@@ -36230,9 +36230,9 @@ var Qde = (e, t) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- sI,
- _I,
- fI
+ oI,
+ gI,
+ dI
] }],
"vertical-align": [{ align: [
"baseline",
@@ -36243,8 +36243,8 @@ var Qde = (e, t) => {
"text-bottom",
"sub",
"super",
- _I,
- fI
+ gI,
+ dI
] }],
whitespace: [{ whitespace: [
"normal",
@@ -36272,8 +36272,8 @@ var Qde = (e, t) => {
] }],
content: [{ content: [
"none",
- _I,
- fI
+ gI,
+ dI
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -36308,24 +36308,24 @@ var Qde = (e, t) => {
"l",
"tl"
] },
- sI,
- _I,
- fI
+ oI,
+ gI,
+ dI
],
radial: [
"",
- _I,
- fI
+ gI,
+ dI
],
conic: [
"",
- sI,
- _I,
- fI
+ oI,
+ gI,
+ dI
]
},
- Lfe,
- Pfe
+ Rfe,
+ Ffe
] }],
"bg-color": [{ bg: P() }],
"gradient-from-pos": [{ from: I() }],
@@ -36392,15 +36392,15 @@ var Qde = (e, t) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
] }],
"outline-w": [{ outline: [
"",
- oI,
- vI,
- pI
+ aI,
+ _I,
+ fI
] }],
"outline-color": [{ outline: P() }],
shadow: [{ shadow: [
@@ -36408,35 +36408,35 @@ var Qde = (e, t) => {
"inner",
"none",
u,
- bI,
- gI
+ yI,
+ hI
] }],
"shadow-color": [{ shadow: P() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- bI,
- gI
+ yI,
+ hI
] }],
"inset-shadow-color": [{ "inset-shadow": P() }],
"ring-w": [{ ring: ae() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: P() }],
- "ring-offset-w": [{ "ring-offset": [oI, pI] }],
+ "ring-offset-w": [{ "ring-offset": [aI, fI] }],
"ring-offset-color": [{ "ring-offset": P() }],
"inset-ring-w": [{ "inset-ring": ae() }],
"inset-ring-color": [{ "inset-ring": P() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- bI,
- gI
+ yI,
+ hI
] }],
"text-shadow-color": [{ "text-shadow": P() }],
opacity: [{ opacity: [
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
] }],
"mix-blend": [{ "mix-blend": [
...se(),
@@ -36458,7 +36458,7 @@ var Qde = (e, t) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [oI] }],
+ "mask-image-linear-pos": [{ "mask-linear": [aI] }],
"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() }],
@@ -36487,7 +36487,7 @@ var Qde = (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": [_I, fI] }],
+ "mask-image-radial": [{ "mask-radial": [gI, dI] }],
"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() }],
@@ -36498,7 +36498,7 @@ var Qde = (e, t) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [oI] }],
+ "mask-image-conic-pos": [{ "mask-conic": [aI] }],
"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() }],
@@ -36522,111 +36522,111 @@ var Qde = (e, t) => {
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- _I,
- fI
+ gI,
+ dI
] }],
filter: [{ filter: [
"",
"none",
- _I,
- fI
+ gI,
+ dI
] }],
blur: [{ blur: le() }],
brightness: [{ brightness: [
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
] }],
contrast: [{ contrast: [
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- bI,
- gI
+ yI,
+ hI
] }],
"drop-shadow-color": [{ "drop-shadow": P() }],
grayscale: [{ grayscale: [
"",
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
] }],
"hue-rotate": [{ "hue-rotate": [
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
] }],
invert: [{ invert: [
"",
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
] }],
saturate: [{ saturate: [
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
] }],
sepia: [{ sepia: [
"",
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- _I,
- fI
+ gI,
+ dI
] }],
"backdrop-blur": [{ "backdrop-blur": le() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -36642,39 +36642,39 @@ var Qde = (e, t) => {
"shadow",
"transform",
"none",
- _I,
- fI
+ gI,
+ dI
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- oI,
+ aI,
"initial",
- _I,
- fI
+ gI,
+ dI
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- _I,
- fI
+ gI,
+ dI
] }],
delay: [{ delay: [
- oI,
- _I,
- fI
+ aI,
+ gI,
+ dI
] }],
animate: [{ animate: [
"none",
v,
- _I,
- fI
+ gI,
+ dI
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- _I,
- fI
+ gI,
+ dI
] }],
"perspective-origin": [{ "perspective-origin": x() }],
rotate: [{ rotate: ue() }],
@@ -36690,8 +36690,8 @@ var Qde = (e, t) => {
"skew-x": [{ "skew-x": fe() }],
"skew-y": [{ "skew-y": fe() }],
transform: [{ transform: [
- _I,
- fI,
+ gI,
+ dI,
"",
"none",
"gpu",
@@ -36705,9 +36705,9 @@ var Qde = (e, t) => {
"translate-z": [{ "translate-z": pe() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- sI,
- _I,
- fI
+ oI,
+ gI,
+ dI
] }],
accent: [{ accent: P() }],
appearance: [{ appearance: ["none", "auto"] }],
@@ -36757,8 +36757,8 @@ var Qde = (e, t) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- _I,
- fI
+ gI,
+ dI
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -36844,15 +36844,15 @@ var Qde = (e, t) => {
"scroll",
"contents",
"transform",
- _I,
- fI
+ gI,
+ dI
] }],
fill: [{ fill: ["none", ...P()] }],
"stroke-w": [{ stroke: [
- oI,
- vI,
- pI,
- mI
+ aI,
+ _I,
+ fI,
+ pI
] }],
stroke: [{ stroke: ["none", ...P()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -37110,16 +37110,16 @@ var Qde = (e, t) => {
"selection"
]
};
-}, Bfe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (jI(e, "cacheSize", t), jI(e, "prefix", n), jI(e, "experimentalParseClassName", r), MI(e.theme, a.theme), MI(e.classGroups, a.classGroups), MI(e.conflictingClassGroups, a.conflictingClassGroups), MI(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), jI(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), jI(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), NI(e.theme, i.theme), NI(e.classGroups, i.classGroups), NI(e.conflictingClassGroups, i.conflictingClassGroups), NI(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), PI(e, i, "postfixLookupClassGroups"), PI(e, i, "orderSensitiveModifiers"), e), jI = (e, t, n) => {
+}, Vfe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (AI(e, "cacheSize", t), AI(e, "prefix", n), AI(e, "experimentalParseClassName", r), jI(e.theme, a.theme), jI(e.classGroups, a.classGroups), jI(e.conflictingClassGroups, a.conflictingClassGroups), jI(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), AI(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), AI(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), MI(e.theme, i.theme), MI(e.classGroups, i.classGroups), MI(e.conflictingClassGroups, i.conflictingClassGroups), MI(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), NI(e, i, "postfixLookupClassGroups"), NI(e, i, "orderSensitiveModifiers"), e), AI = (e, t, n) => {
n !== void 0 && (e[t] = n);
+}, jI = (e, t) => {
+ if (t) for (let n in t) AI(e, n, t[n]);
}, MI = (e, t) => {
- if (t) for (let n in t) jI(e, n, t[n]);
-}, NI = (e, t) => {
- if (t) for (let n in t) PI(e, t, n);
-}, PI = (e, t, n) => {
+ if (t) for (let n in t) NI(e, t, n);
+}, NI = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, Vfe = (e, ...t) => typeof e == "function" ? tI(AI, e, ...t) : tI(() => Bfe(AI(), e), ...t), Hfe = [
+}, Hfe = (e, ...t) => typeof e == "function" ? eI(kI, e, ...t) : eI(() => Vfe(kI(), e), ...t), Ufe = [
"large-title",
"display-1",
"display-2",
@@ -37133,17 +37133,17 @@ var Qde = (e, t) => {
"body-2",
"caption-1",
"caption-2"
-], Ufe = [
+], Wfe = [
"regular",
"medium",
"semibold",
"bold"
-], q = Vfe({ extend: { classGroups: { "font-size": [{ text: Hfe.flatMap((e) => Ufe.map((t) => `${e}-${t}`)) }] } } });
-function FI(e) {
+], q = Hfe({ extend: { classGroups: { "font-size": [{ text: Ufe.flatMap((e) => Wfe.map((t) => `${e}-${t}`)) }] } } });
+function PI(e) {
return e;
}
// src/react/components/pill-tab.tsx
-var Wfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, II = FI({
+var Gfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, FI = PI({
radius: {
blue: "rounded-full",
gray: "rounded-2lg"
@@ -37165,9 +37165,9 @@ var Wfe = typeof window < "u" ? F.useLayoutEffect : F.useEffect, II = FI({
gray: "text-text-primary"
}
});
-function LI({ children: e, className: t, ref: n, container: r, ...i }) {
+function II({ children: e, className: t, ref: n, container: r, ...i }) {
let a = (0, F.useRef)(null), [o, s] = (0, F.useState)(null);
- Wfe(() => {
+ Gfe(() => {
let e = r === void 0 ? a.current : r;
if (!e) return;
let t = () => {
@@ -37203,7 +37203,7 @@ function LI({ children: e, className: t, ref: n, container: r, ...i }) {
}, l = o && /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-pill-thumb": "",
- className: q("pointer-events-none absolute left-0 top-0", II.radius[o.variant], II.thumb[o.variant]),
+ className: q("pointer-events-none absolute left-0 top-0", FI.radius[o.variant], FI.thumb[o.variant]),
style: {
"--pill-left": `${o.left}px`,
"--pill-top": `${o.top}px`,
@@ -37220,37 +37220,37 @@ function LI({ 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 RI = null, zI = null, BI = /* @__PURE__ */ new Set();
-function Gfe(e) {
- return BI.add(e), () => {
- BI.delete(e);
+var LI = null, RI = null, zI = /* @__PURE__ */ new Set();
+function Kfe(e) {
+ return zI.add(e), () => {
+ zI.delete(e);
};
}
-function Kfe() {
- for (let e of [...BI]) e();
+function qfe() {
+ for (let e of [...zI]) e();
}
-var qfe = { render(e) {
- zI = e, (0, Rt.flushSync)(Kfe);
+var Jfe = { render(e) {
+ RI = e, (0, Rt.flushSync)(qfe);
} };
-function Jfe(e) {
- return RI = e, zI = null, qfe;
+function Yfe(e) {
+ return LI = e, RI = null, Jfe;
}
-function Yfe() {
- let e = (0, F.useSyncExternalStore)(Gfe, () => zI);
- return RI && e ? /* @__PURE__ */ (0, I.jsx)(Xfe, {
- host: RI,
+function Xfe() {
+ let e = (0, F.useSyncExternalStore)(Kfe, () => RI);
+ return LI && e ? /* @__PURE__ */ (0, I.jsx)(Zfe, {
+ host: LI,
props: e
}) : null;
}
-function Xfe({ host: e, props: t }) {
- let n = BF(t);
+function Zfe({ host: e, props: t }) {
+ let n = zF(t);
return n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(Zfe, {
+ /* @__PURE__ */ (0, I.jsx)(Qfe, {
host: e,
pressed: n.pressed,
menu: t.menu
}),
- n.crumb ? /* @__PURE__ */ (0, I.jsx)(Qfe, {
+ n.crumb ? /* @__PURE__ */ (0, I.jsx)($fe, {
host: e,
label: n.crumb
}) : null,
@@ -37259,13 +37259,13 @@ function Xfe({ host: e, props: t }) {
"data-compact": n.compact ? "" : void 0,
children: n.title
}),
- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)($fe, {
+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, I.jsx)(epe, {
host: e,
lede: n.lede
})
] }) : null;
}
-function Zfe({ host: e, pressed: t, menu: n }) {
+function Qfe({ 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\"]");
@@ -37275,7 +37275,7 @@ function Zfe({ host: e, pressed: t, menu: n }) {
}, [t, n]), /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-bar": "",
"aria-label": "管理",
- children: /* @__PURE__ */ (0, I.jsx)(LI, {
+ children: /* @__PURE__ */ (0, I.jsx)(II, {
ref: r,
"data-manage-menu": "",
"data-pill-nav": "",
@@ -37289,13 +37289,13 @@ function Zfe({ 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)(WF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
+ children: [/* @__PURE__ */ (0, I.jsx)(UF, { name: i }), /* @__PURE__ */ (0, I.jsx)("span", { children: r })]
}, n);
})
})
});
}
-function Qfe({ host: e, label: t }) {
+function $fe({ host: e, label: t }) {
return /* @__PURE__ */ (0, I.jsx)("nav", {
"data-manage-crumb": "",
"aria-label": "当前位置",
@@ -37305,20 +37305,20 @@ function Qfe({ host: e, label: t }) {
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());
},
children: "数据管理"
- }), /* @__PURE__ */ (0, I.jsx)(WF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
+ }), /* @__PURE__ */ (0, I.jsx)(UF, { name: "chevron-right" })] }), /* @__PURE__ */ (0, I.jsx)("li", {
"aria-current": "true",
children: /* @__PURE__ */ (0, I.jsx)("span", { children: t })
})] })
});
}
-function $fe({ host: e, lede: t }) {
+function epe({ 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: UF }
- }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(epe, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
+ dangerouslySetInnerHTML: { __html: HF }
+ }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(tpe, { text: t.text }), t.total ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-empty-trash": "",
"data-danger": "",
@@ -37328,7 +37328,7 @@ function $fe({ host: e, lede: t }) {
}) : null] })
});
}
-function epe({ text: e }) {
+function tpe({ text: e }) {
let t = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
Js(t.current, e);
@@ -37338,29 +37338,29 @@ function epe({ text: e }) {
});
}
// src/core/text-lang.ts
-var tpe = /[぀-ヿㇰ-ㇿヲ-゚]/, npe = /[㐀-鿿豈-﫿]/, rpe = /[A-Za-z]/;
-function VI(e) {
+var npe = /[぀-ヿㇰ-ㇿヲ-゚]/, rpe = /[㐀-鿿豈-﫿]/, ipe = /[A-Za-z]/;
+function BI(e) {
let t = String(e ?? "");
- if (tpe.test(t)) return "ja";
- if (!npe.test(t) && rpe.test(t)) return "en";
+ if (npe.test(t)) return "ja";
+ if (!rpe.test(t) && ipe.test(t)) return "en";
}
-var ipe = (e) => {
- let t = VI(e);
+var ape = (e) => {
+ let t = BI(e);
return t ? ` lang="${t}"` : "";
-}, ape = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, ope = (e, t = e?.name) => {
+}, ope = /\.(?:mp4|mkv|avi|wmv|mov|m4v|webm|ts|m2ts|mts|mpg|mpeg|flv|rm|rmvb|iso)$/i, spe = (e, t = e?.name) => {
let n = String(t || "").trim();
- return e?.is_jav ? n.replace(ape, "") : n;
-}, spe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), cpe = (e) => {
+ return e?.is_jav ? n.replace(ope, "") : n;
+}, cpe = (e) => /[぀-ヿ㐀-鿿]/.test(String(e || "")), lpe = (e) => {
let t = [e?.catalog_title, e?.original_title].map((e) => String(e || "").trim()).filter(Boolean);
- return t.find(spe) || t[0] || "";
+ return t.find(cpe) || t[0] || "";
};
-function HI(e, t = e?.name) {
- let n = ope(e, t), r = String(e?.code || "").trim().toUpperCase();
+function VI(e, t = e?.name) {
+ let n = spe(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 = cpe(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 = lpe(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) => [
"中字",
"无码",
"无码破解"
@@ -37371,23 +37371,23 @@ function HI(e, t = e?.name) {
badges: f
};
}
-var UI = (e, t = e?.name) => {
- let { code: n, title: r, badges: i = [] } = HI(e, t);
+var HI = (e, t = e?.name) => {
+ let { code: n, title: r, badges: i = [] } = VI(e, t);
return n ? [
n,
...i,
r
].filter(Boolean).join(" ") : r;
};
-function WI(e, t = e?.name) {
- let { code: n, title: r, badges: i = [] } = HI(e, t);
+function UI(e, t = e?.name) {
+ let { code: n, title: r, badges: i = [] } = VI(e, t);
if (!n) return z(r);
let a = i.map((e) => `<small class="javedition ${e === "中字" ? "subtitle" : e === "无码" ? "uncensored" : e === "无码破解" ? "cracked" : "quality"}">${z(e)}</small>`).join("");
- return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${ipe(r)}>${z(r)}</span>` : ""}`;
+ return `<span class="ui-javidentity"><strong class="ui-javcode">${z(n)}</strong>${a}</span>${r ? ` <span class="ui-javtitle"${ape(r)}>${z(r)}</span>` : ""}`;
}
// src/react/activity/tasks.ts
-var GI = "/api/tasks", KI = ["tasks"];
-function lpe(e, t) {
+var WI = "/api/tasks", GI = ["tasks"];
+function upe(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 {
@@ -37398,7 +37398,7 @@ function lpe(e, t) {
settled: n - r
};
}
-function upe(e) {
+function dpe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
let e = t.get(n.task_key);
@@ -37409,11 +37409,11 @@ function upe(e) {
}
return [...t.values()];
}
-var dpe = (e, t) => B(`${GI}?${new URLSearchParams({
+var fpe = (e, t) => B(`${WI}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function fpe(...e) {
+function ppe(...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) => {
@@ -37421,26 +37421,26 @@ function fpe(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var ppe = 2e3, mpe = 1e4, qI = (e) => e?.running?.length ? ppe : mpe, JI = (e) => B(GI, e), hpe = (e, t, n) => V(`${GI}/${e}/control`, { action: t }, "POST", n);
-async function gpe(e) {
+var mpe = 2e3, hpe = 1e4, KI = (e) => e?.running?.length ? mpe : hpe, qI = (e) => B(WI, e), gpe = (e, t, n) => V(`${WI}/${e}/control`, { action: t }, "POST", n);
+async function _pe(e) {
await H.fetchQuery({
- queryKey: KI,
- queryFn: () => JI(e)
+ queryKey: GI,
+ queryFn: () => qI(e)
});
}
-var _pe = {
+var vpe = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, vpe = {
+}, ype = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "意外中断"
-}, ype = (e) => vpe[e] || e, YI = {
+}, bpe = (e) => ype[e] || e, JI = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -37517,7 +37517,7 @@ var _pe = {
without_code: "未识别番号",
incomplete: "资料或封面未取得",
result: "结果"
-}, bpe = [
+}, xpe = [
"gone_count",
"unclear_count",
"source_failed",
@@ -37539,14 +37539,14 @@ var _pe = {
"paused_count",
"miss",
"incomplete"
-], xpe = ["face_match_unavailable"], XI = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || xpe.some((t) => e.result_summary?.[t] === !0) || bpe.some((t) => Number(e.result_summary?.[t]) > 0);
-function Spe(e) {
+], Spe = ["face_match_unavailable"], YI = (e) => e.result_summary?.ok === !1 || !!e.result_summary?.error || Spe.some((t) => e.result_summary?.[t] === !0) || xpe.some((t) => Number(e.result_summary?.[t]) > 0);
+function Cpe(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 ZI = /* @__PURE__ */ new Set(["library-processing"]);
-function Cpe(e, t = !0) {
- if (!XI(e) && e.status !== "failed" || ZI.has(e.task_key) && !t) return null;
+var XI = /* @__PURE__ */ new Set(["library-processing"]);
+function wpe(e, t = !0) {
+ if (!YI(e) && e.status !== "failed" || XI.has(e.task_key) && !t) return null;
let n = {
"link-check": ["/data-cleanup#link-manager", "查看有问题的链接"],
"link-prune": ["/data-cleanup#link-manager", "查看有问题的链接"],
@@ -37564,19 +37564,19 @@ function Cpe(e, t = !0) {
label: n[1]
} : null;
}
-function wpe(e) {
+function Tpe(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 Tpe(e) {
+function Epe(e) {
let t = /* @__PURE__ */ new Map();
- for (let n of e) ZI.has(n.task_key) && !n.followup_key && n.id > (t.get(n.task_key) ?? 0) && t.set(n.task_key, n.id);
+ for (let n of e) XI.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 Epe(e) {
+function Dpe(e) {
let t = /* @__PURE__ */ new Map();
for (let n of e) {
if (!n.followup_key || n.parent_run_id == null) continue;
@@ -37585,7 +37585,7 @@ function Epe(e) {
}
return t;
}
-function Dpe(e, t) {
+function Ope(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -37607,12 +37607,12 @@ function Dpe(e, t) {
}
return n;
}
-var Ope = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !XI(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), QI = (e) => e.status === "pending" || e.status === "running";
-function kpe(e) {
+var kpe = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !YI(e) && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), ZI = (e) => e.status === "pending" || e.status === "running";
+function Ape(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, tL(e.error) || Ipe(o) || (QI(e) && i > 0 ? `${eL(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
+ return [r, eL(e.error) || Lpe(o) || (ZI(e) && i > 0 ? `${$I(e.progress_current, i)} 项` : "")].filter(Boolean).join(" · ");
}
-function $I(e) {
+function QI(e) {
if (typeof e != "number" || !Number.isFinite(e) || e < 0) return "";
let t = Math.floor(e);
if (t < 60) return `${t} 秒`;
@@ -37621,19 +37621,19 @@ function $I(e) {
let r = Math.floor(n / 60);
return r < 48 ? `${r} 小时 ${n % 60} 分` : `${Math.floor(r / 24).toLocaleString()} 天 ${r % 24} 小时`;
}
-function eL(e, t) {
+function $I(e, t) {
let n = Math.max(0, Number(t) || 0);
return `${Math.min(n, Math.max(0, Number(e) || 0)).toLocaleString()} / ${n.toLocaleString()}`;
}
-function Ape(e) {
+function jpe(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 tL(e) {
- let t = Ape(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
+function eL(e) {
+ let t = jpe(e), n = t.match(/^(?:[\w.]*Error|Exception):\s*(.*)$/);
return n ? xn(n[1]) : t;
}
-var jpe = {
+var Mpe = {
partial: "处理已结束,部分项目需处理",
complete: "处理完成",
interrupted: "处理已中断",
@@ -37651,11 +37651,11 @@ var jpe = {
三站都没对上她: "三个来源均未找到与该人物相符的资料页",
已有身份: "已有创作者分类",
已变: "资料已被其他操作修改,本次未保存"
-}, nL = {
+}, tL = {
avwikidb: "AVWikiDB",
javdb: "JavDB",
"minnano-av": "みんなのAV"
-}, Mpe = {
+}, Npe = {
like: "标记喜欢",
seen: "标记看过",
later: "加入稍后看",
@@ -37666,8 +37666,8 @@ var jpe = {
"dismiss-junk": "确认不是垃圾",
"reconsider-junk": "重新判定垃圾",
region: "判定产地"
-}, Npe = (e) => jpe[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${nL[t.toLowerCase()]} 资料页` : `已保存来自 ${nL[t.toLowerCase()]} 的资料`);
-function rL(e) {
+}, Ppe = (e) => Mpe[e] || e.replace(/(avwikidb|javdb|minnano-av) (绑定|写入)/gi, (e, t, n) => n === "绑定" ? `已关联 ${tL[t.toLowerCase()]} 资料页` : `已保存来自 ${tL[t.toLowerCase()]} 的资料`);
+function nL(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -37677,7 +37677,7 @@ function rL(e) {
minute: "2-digit"
});
}
-var Ppe = /* @__PURE__ */ new Set([
+var Fpe = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -37686,20 +37686,20 @@ var Ppe = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function iL(e) {
- let t = Fpe(e);
+function rL(e) {
+ let t = Ipe(e);
return e?.face_match_unavailable === !0 && !t.some((e) => /不可用|未生效/.test(e)) && t.push("人脸模型不可用,未做人脸核对"), t;
}
-function Fpe(e) {
- return Object.entries(e || {}).filter(([e, t]) => !Ppe.has(e) && (e in YI || e === "outcome" || e === "followups" || e === "error") && (typeof t == "number" || typeof t == "string") && String(t) !== "" && (t !== 0 || e === "checked" || e === "total")).map(([e, t]) => e === "followups" ? `已安排 ${Number(t).toLocaleString()} 项补充任务` : e === "error" ? tL(String(t)) : e === "outcome" || e === "result" ? Npe(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${YI[e]} ${Xn(Number(t))}` : e === "operation" ? `操作:${Mpe[String(t)] || "批量操作"}` : `${YI[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
+function Ipe(e) {
+ return Object.entries(e || {}).filter(([e, t]) => !Fpe.has(e) && (e in JI || 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" ? eL(String(t)) : e === "outcome" || e === "result" ? Ppe(String(t)) : e === "cache_bytes" || e === "bytes_reclaimed" ? `${JI[e]} ${Xn(Number(t))}` : e === "operation" ? `操作:${Npe[String(t)] || "批量操作"}` : `${JI[e]} ${typeof t == "number" ? t.toLocaleString() : t}`);
}
-var Ipe = (e) => iL(e).join(" · ");
+var Lpe = (e) => rL(e).join(" · ");
// src/react/use-entity-names.ts
-function aL() {
+function iL() {
return (0, F.useSyncExternalStore)(Yt, Jt, Jt);
}
// src/react/components/async-text.tsx
-function oL({ text: e, busy: t, placeholder: n }) {
+function aL({ text: e, busy: t, placeholder: n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(e), a = e ?? i.current;
return (0, F.useLayoutEffect)(() => {
e === void 0 ? a === void 0 && pc(r.current) : i.current = e;
@@ -37720,7 +37720,7 @@ function oL({ text: e, busy: t, placeholder: n }) {
});
}
// src/react/boardui/components/base/buttons/icon-button.tsx
-var sL = FI({
+var oL = PI({
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",
@@ -37731,20 +37731,20 @@ var sL = FI({
small: "size-4 shrink-0"
}
});
-function cL({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function sL({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
ref: i,
type: r,
- className: q(sL.base, sL.size[t], n),
+ className: q(oL.base, oL.size[t], n),
...a,
children: /* @__PURE__ */ (0, I.jsx)(e, {
- className: sL.icon[t],
+ className: oL.icon[t],
"aria-hidden": !0
})
});
}
// src/react/components/glass-drift.tsx
-function lL() {
+function cL() {
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-glass-drift": "",
"aria-hidden": "true",
@@ -37758,7 +37758,7 @@ function lL() {
});
}
// src/react/components/use-stuck.ts
-function uL(e) {
+function lL(e) {
(0, F.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -37775,7 +37775,7 @@ function uL(e) {
}, [e]);
}
// src/react/components/use-horizontal-scroller.ts
-function dL(e, t = !0) {
+function uL(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]);
@@ -37789,17 +37789,17 @@ function dL(e, t = !0) {
}, [n, t]), i;
}
// src/react/components/filter-glass.tsx
-var Lpe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var Rpe = ({ className: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: e,
dangerouslySetInnerHTML: { __html: Bs("正在处理") }
});
-function fL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(cL, {
+function dL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsx)(sL, {
...a,
"data-filter-action": "",
size: "small",
- icon: n && r === "spinner" ? Lpe : t,
+ icon: n && r === "spinner" ? Rpe : t,
"aria-label": e,
title: a.title || e,
"aria-busy": n || void 0,
@@ -37809,9 +37809,9 @@ function fL({ label: e, icon: t, busy: n = !1, busyStyle: r = "spinner", onPress
}
});
}
-function Rpe({ title: e, children: t }) {
+function zpe({ title: e, children: t }) {
let n = (0, F.useRef)(null);
- return uL(n), /* @__PURE__ */ (0, I.jsxs)("div", {
+ return lL(n), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -37824,13 +37824,13 @@ function Rpe({ title: e, children: t }) {
children: e
}),
t,
- /* @__PURE__ */ (0, I.jsx)(lL, {})
+ /* @__PURE__ */ (0, I.jsx)(cL, {})
]
});
}
-function pL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
- let d = (0, F.useRef)(null), f = dL(), p = dL(u);
- return uL(d), /* @__PURE__ */ (0, I.jsxs)("div", {
+function fL({ 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 = uL(), p = uL(u);
+ return lL(d), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
@@ -37855,27 +37855,27 @@ function pL({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassNa
className: q("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
}),
- /* @__PURE__ */ (0, I.jsx)(lL, {})
+ /* @__PURE__ */ (0, I.jsx)(cL, {})
]
});
}
-var zpe = "flex h-8 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";
-function mL({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+var Bpe = "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 pL({ children: e, pressed: t, onPress: n, className: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
...i,
"aria-pressed": t,
- className: q(zpe, r),
+ className: q(Bpe, r),
onClick: n,
children: e
});
}
-var Bpe = "h-8 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";
-function hL({ children: e, onPress: t, busy: n = !1 }) {
+var Vpe = "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 mL({ children: e, onPress: t, busy: n = !1 }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-glass-pill": "",
- className: Bpe,
+ className: Vpe,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -37885,13 +37885,13 @@ function hL({ children: e, onPress: t, busy: n = !1 }) {
});
}
// src/react/components/use-view-glide.ts
-var gL = (e, t) => [
+var hL = (e, t) => [
"x",
"y",
"w",
"h"
].every((n) => e[n] === t[n]);
-function _L(e, t, n) {
+function gL(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;
@@ -37915,17 +37915,17 @@ function _L(e, t, n) {
h: e.offsetHeight
};
}
-function vL(e, t, n, r, { axis: i = "x" } = {}) {
+function _L(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 ? _L(u, l, i) : null;
+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? gL(u, l, i) : null;
if (!d || !d.w || !d.h) {
Kc(s), s.hidden = !0, a.current = null;
return;
}
let f = s.hidden ? null : a.current;
- s.hidden = !1, a.current = d, !(o && f && gL(f, d)) && Wc(s, o ? f : null, d, i);
+ s.hidden = !1, a.current = d, !(o && f && hL(f, d)) && Wc(s, o ? f : null, d, i);
}, [
e,
t,
@@ -37946,8 +37946,8 @@ function vL(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 ? _L(o, r, i) : null, l = a.current;
- s && l && gL(s, l) || c();
+ let e = t.current, o = e?.offsetWidth ? e.querySelector(n) : null, s = o && r ? gL(o, r, i) : null, l = a.current;
+ s && l && hL(s, l) || c();
}), u = t.current;
if (u && r) {
l.observe(u);
@@ -37978,7 +37978,7 @@ function vL(e, t, n, r, { axis: i = "x" } = {}) {
};
}
// src/react/boardui/components/base/buttons/button.tsx
-var yL = FI({
+var vL = PI({
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",
@@ -38011,52 +38011,52 @@ function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadi
return /* @__PURE__ */ (0, I.jsxs)("button", {
ref: c,
type: s,
- className: q(yL.base, yL.size[t], yL.variant[e], n && yL.iconOnlySize[t], o),
+ className: q(vL.base, vL.size[t], vL.variant[e], n && vL.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: yL.icon[t],
+ className: vL.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: yL.label[t],
+ className: vL.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: yL.icon[t],
+ className: vL.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function bL({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function yL({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
return /* @__PURE__ */ (0, I.jsxs)("a", {
ref: s,
- className: q(yL.base, yL.size[t], yL.variant[e], n && yL.iconOnlySize[t], o),
+ className: q(vL.base, vL.size[t], vL.variant[e], n && vL.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: yL.icon[t],
+ className: vL.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, I.jsx)("span", {
- className: yL.label[t],
+ className: vL.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, I.jsx)(i, {
- className: yL.icon[t],
+ className: vL.icon[t],
"aria-hidden": !0
}) : null
]
});
}
// node_modules/react-aria-components/dist/private/utils.mjs
-var xL = Symbol("default");
-function SL({ values: e, children: t }) {
+var bL = Symbol("default");
+function xL({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ F.createElement(n.Provider, { value: r }, t);
return t;
}
-function CL(e) {
+function SL(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;
@@ -38090,11 +38090,11 @@ function CL(e) {
c
]);
}
-function wL(e, t) {
+function CL(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 || xL;
+ let e = t || bL;
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}.`);
@@ -38103,8 +38103,8 @@ function wL(e, t) {
}
return n;
}
-function TL(e, t, n) {
- let { ref: r, ...i } = wL(n, e.slot) || {}, a = YC((0, F.useMemo)(() => BC(t, r), [t, r])), o = K(i, e);
+function wL(e, t, n) {
+ let { ref: r, ...i } = CL(n, e.slot) || {}, a = YC((0, F.useMemo)(() => BC(t, r), [t, r])), o = K(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -38122,7 +38122,7 @@ function TL(e, t, n) {
...e.style
}), [o, a];
}
-function EL(e = !0) {
+function TL(e = !0) {
let [t, n] = (0, F.useState)(e), r = (0, F.useRef)(!1), i = (0, F.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -38130,12 +38130,12 @@ function EL(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function DL(e) {
+function EL(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function Vpe(e, t, n) {
+function Hpe(e, t, n) {
let { render: r, ...i } = t, a = (0, F.useRef)(null), o = (0, F.useMemo)(() => BC(n, a), [n, a]);
RS(() => {}, [e, r]);
let s = {
@@ -38144,19 +38144,19 @@ function Vpe(e, t, n) {
};
return r ? r(s, void 0) : /*#__PURE__*/ F.createElement(e, s);
}
-var OL = {}, kL = new Proxy({}, { get(e, t) {
+var DL = {}, OL = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = OL[t];
- return n || (n = /*#__PURE__*/ (0, F.forwardRef)(Vpe.bind(null, t)), OL[t] = n), n;
-} }), AL = /*#__PURE__*/ (0, F.createContext)(null), jL = /*#__PURE__*/ (0, F.createContext)(null), ML = /*#__PURE__*/ (0, F.createContext)(null), NL = {
+ let n = DL[t];
+ return n || (n = /*#__PURE__*/ (0, F.forwardRef)(Hpe.bind(null, t)), DL[t] = n), n;
+} }), kL = /*#__PURE__*/ (0, F.createContext)(null), AL = /*#__PURE__*/ (0, F.createContext)(null), jL = /*#__PURE__*/ (0, F.createContext)(null), ML = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return PL(e, null, t);
+ return NL(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return PL(e, t, n);
+ return NL(e, t, n);
}
};
-function PL(e, t, n) {
+function NL(e, t, n) {
return bS({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
@@ -38167,11 +38167,11 @@ function PL(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, Hpe(e, t, n));
+ }), r, Upe(e, t, n));
}
});
}
-function Hpe(e, t, n) {
+function Upe(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);
@@ -38190,23 +38190,23 @@ function Hpe(e, t, n) {
}
return s;
}
-var FL = /*#__PURE__*/ (0, F.createContext)(NL);
-function IL(e) {
+var PL = /*#__PURE__*/ (0, F.createContext)(ML);
+function FL(e) {
return (0, F.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
}
// node_modules/react-aria-components/dist/private/Label.mjs
-var LL = /*#__PURE__*/ (0, F.createContext)({}), RL = /*#__PURE__*/ ew(function(e, t) {
- [e, t] = TL(e, t, LL);
- let { elementType: n = "label", ...r } = e, i = kL[n];
+var IL = /*#__PURE__*/ (0, F.createContext)({}), LL = /*#__PURE__*/ ew(function(e, t) {
+ [e, t] = wL(e, t, IL);
+ let { elementType: n = "label", ...r } = e, i = OL[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), Upe = /*#__PURE__*/ (0, F.createContext)(null), zL = /*#__PURE__*/ (0, F.createContext)({}), BL = /*#__PURE__*/ ew(function(e, t) {
- [e, t] = TL(e, t, zL);
+}), Wpe = /*#__PURE__*/ (0, F.createContext)(null), RL = /*#__PURE__*/ (0, F.createContext)({}), zL = /*#__PURE__*/ ew(function(e, t) {
+ [e, t] = wL(e, t, RL);
let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = qoe(e, t);
- i = Gpe(i, r);
+ i = Kpe(i, r);
let { focusProps: o, isFocused: s, isFocusVisible: c } = OD(e), { hoverProps: l, isHovered: u } = MD({
...e,
isDisabled: e.isDisabled || r
@@ -38217,7 +38217,7 @@ var LL = /*#__PURE__*/ (0, F.createContext)({}), RL = /*#__PURE__*/ ew(function(
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = CL({
+ }, f = SL({
...e,
values: d,
defaultClassName: "react-aria-Button"
@@ -38234,7 +38234,7 @@ var LL = /*#__PURE__*/ (0, F.createContext)({}), RL = /*#__PURE__*/ ew(function(
p
]);
let _ = Hw(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ F.createElement(kL.button, {
+ return delete _.onClick, /*#__PURE__*/ F.createElement(OL.button, {
...K(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -38248,61 +38248,61 @@ var LL = /*#__PURE__*/ (0, F.createContext)({}), RL = /*#__PURE__*/ ew(function(
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ F.createElement(Upe.Provider, { value: { id: m } }, f.children));
-}), Wpe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function Gpe(e, t) {
+ }, /*#__PURE__*/ F.createElement(Wpe.Provider, { value: { id: m } }, f.children));
+}), Gpe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function Kpe(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !Wpe.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !Gpe.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 VL = /*#__PURE__*/ (0, F.createContext)({}), HL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = TL(e, t, VL);
- let { children: n, level: r = 3, className: i, ...a } = e, o = kL[`h${r}`];
+var BL = /*#__PURE__*/ (0, F.createContext)({}), VL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = wL(e, t, BL);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = OL[`h${r}`];
return /*#__PURE__*/ F.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), UL = /*#__PURE__*/ (0, F.createContext)({}), Kpe = /*#__PURE__*/ ew(function(e, t) {
- [e, t] = TL(e, t, UL);
- let { elementType: n = "span", ...r } = e, i = kL[n];
+}), HL = /*#__PURE__*/ (0, F.createContext)({}), qpe = /*#__PURE__*/ ew(function(e, t) {
+ [e, t] = wL(e, t, HL);
+ let { elementType: n = "span", ...r } = e, i = OL[n];
return /*#__PURE__*/ F.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), WL = /*#__PURE__*/ (0, F.createContext)(null), GL = /*#__PURE__*/ (0, F.createContext)(null), KL = /*#__PURE__*/ (0, F.createContext)(null), qL = /*#__PURE__*/ (0, F.createContext)(null), qpe = /*#__PURE__*/ (0, F.createContext)(null), JL = /*#__PURE__*/ (0, F.createContext)(null);
-function Jpe(e, t) {
- let { validationBehavior: n } = wL(GL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(qpe), a = YC((0, F.useMemo)(() => BC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...DL(e),
+}), UL = /*#__PURE__*/ (0, F.createContext)(null), WL = /*#__PURE__*/ (0, F.createContext)(null), GL = /*#__PURE__*/ (0, F.createContext)(null), KL = /*#__PURE__*/ (0, F.createContext)(null), Jpe = /*#__PURE__*/ (0, F.createContext)(null), qL = /*#__PURE__*/ (0, F.createContext)(null);
+function Ype(e, t) {
+ let { validationBehavior: n } = CL(WL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useContext)(Jpe), a = YC((0, F.useMemo)(() => BC(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...EL(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
return [i ? gse(o, i, a) : XT(o, tE(e), a), a];
}
-var Ype = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var Xpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = TL(r, t, KL);
- let [i, a] = Jpe(e, n);
- return /*#__PURE__*/ F.createElement(JL.Provider, { value: {
+ [e, t] = wL(r, t, GL);
+ let [i, a] = Ype(e, n);
+ return /*#__PURE__*/ F.createElement(qL.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ F.createElement(Xpe, {
+ } }, /*#__PURE__*/ F.createElement(Zpe, {
...e,
ref: t
}));
-}), Xpe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isReadOnly: o, isPressed: s, isInvalid: c, inputRef: l, defaultClassName: u, isIndeterminate: d, isRequired: f } = (0, F.useContext)(JL), { isFocused: p, isFocusVisible: m, focusProps: h } = OD(), g = a || o, { hoverProps: _, isHovered: v } = MD({
+}), Zpe = /*#__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)(qL), { isFocused: p, isFocusVisible: m, focusProps: h } = OD(), g = a || o, { hoverProps: _, isHovered: v } = MD({
...e,
isDisabled: g
- }), y = CL({
+ }), y = SL({
...e,
defaultClassName: u,
values: {
@@ -38318,7 +38318,7 @@ var Ype = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
isRequired: f || !1
}
}), b = Hw(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(kL.label, {
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(OL.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -38336,8 +38336,8 @@ var Ype = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
...K(r, h),
ref: l
})), y.children);
-}), YL = /*#__PURE__*/ (0, F.createContext)({}), XL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = TL(e, t, YL);
+}), JL = /*#__PURE__*/ (0, F.createContext)({}), YL = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = wL(e, t, JL);
let { isDisabled: n, isInvalid: r, isReadOnly: i, onHoverStart: a, onHoverChange: o, onHoverEnd: s, ...c } = e;
n ??= !!e["aria-disabled"] && e["aria-disabled"] !== "false", r ??= !!e["aria-invalid"] && e["aria-invalid"] !== "false";
let { hoverProps: l, isHovered: u } = MD({
@@ -38345,7 +38345,7 @@ var Ype = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = OD({ within: !0 }), m = CL({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = OD({ within: !0 }), m = SL({
...e,
values: {
isHovered: u,
@@ -38356,7 +38356,7 @@ var Ype = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ F.createElement(kL.div, {
+ return /*#__PURE__*/ F.createElement(OL.div, {
...K(c, p, l),
...m,
ref: t,
@@ -38369,18 +38369,18 @@ var Ype = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), ZL = /*#__PURE__*/ (0, F.createContext)({}), Zpe = (e) => {
+}), XL = /*#__PURE__*/ (0, F.createContext)({}), Qpe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Qpe = /*#__PURE__*/ ew(function(e, t) {
- [e, t] = TL(e, t, ZL);
+}, $pe = /*#__PURE__*/ ew(function(e, t) {
+ [e, t] = wL(e, t, XL);
let { hoverProps: n, isHovered: r } = MD({
...e,
isDisabled: e.disabled
}), { isFocused: i, isFocusVisible: a, focusProps: o } = OD({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = CL({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = SL({
...e,
values: {
isHovered: r,
@@ -38391,8 +38391,8 @@ var Ype = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ F.createElement(kL.input, {
- ...K(Zpe(e), o, n),
+ return /*#__PURE__*/ F.createElement(OL.input, {
+ ...K(Qpe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -38401,9 +38401,9 @@ var Ype = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), $pe = 0, eme = 100, tme = 1;
-function nme(e) {
- let { isDisabled: t = !1, minValue: n = $pe, maxValue: r = eme, numberFormatter: i, step: a = tme, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
+}), eme = 0, tme = 100, nme = 1;
+function rme(e) {
+ let { isDisabled: t = !1, minValue: n = eme, maxValue: r = tme, numberFormatter: i, step: a = nme, orientation: o = "horizontal" } = e, s = (0, F.useMemo)(() => {
let e = (r - n) / 10;
return e = iE(e, 0, e + a, a), Math.max(e, a);
}, [
@@ -38414,11 +38414,11 @@ function nme(e) {
n,
r,
a
- ]), l = (0, F.useMemo)(() => c($L(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c($L(e.defaultValue) ?? [n]), [
+ ]), l = (0, F.useMemo)(() => c(QL(e.value)), [e.value, c]), u = (0, F.useMemo)(() => c(QL(e.defaultValue) ?? [n]), [
e.defaultValue,
n,
c
- ]), d = eR(e.value, e.defaultValue, e.onChange), f = eR(e.value, e.defaultValue, e.onChangeEnd), [p, m] = eE(l, u, d), [h] = (0, F.useState)(p), [g, _] = (0, F.useState)(Array(p.length).fill(!1)), v = (0, F.useRef)(Array(p.length).fill(!0)), [y, b] = (0, F.useState)(void 0), x = (0, F.useRef)(p), S = (0, F.useRef)(g), C = (e) => {
+ ]), d = $L(e.value, e.defaultValue, e.onChange), f = $L(e.value, e.defaultValue, e.onChangeEnd), [p, m] = eE(l, u, d), [h] = (0, F.useState)(p), [g, _] = (0, F.useState)(Array(p.length).fill(!1)), v = (0, F.useRef)(Array(p.length).fill(!0)), [y, b] = (0, F.useState)(void 0), x = (0, F.useRef)(p), S = (0, F.useRef)(g), C = (e) => {
x.current = e, m(e);
}, w = (e) => {
S.current = e, _(e);
@@ -38442,14 +38442,14 @@ function nme(e) {
if (t || !O(e)) return;
let r = E(e), i = D(e);
n = iE(n, r, i, a);
- let o = QL(x.current, e, n);
+ let o = ZL(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 = QL(S.current, e, n), w(S.current), f && r && !S.current.some(Boolean) && f(x.current);
+ S.current = ZL(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) {
@@ -38507,31 +38507,31 @@ function nme(e) {
isDisabled: t
};
}
-function QL(e, t, n) {
+function ZL(e, t, n) {
return e[t] === n ? e : [
...e.slice(0, t),
n,
...e.slice(t + 1)
];
}
-function $L(e) {
+function QL(e) {
if (e != null) return Array.isArray(e) ? e : [e];
}
-function eR(e, t, n) {
+function $L(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 rme = /*#__PURE__*/ (0, F.createContext)(null), tR = /*#__PURE__*/ (0, F.createContext)(null), nR = /*#__PURE__*/ (0, F.createContext)(null), ime = /*#__PURE__*/ (0, F.createContext)(null), ame = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = TL(e, t, rme);
- let n = (0, F.useRef)(null), r = xse(e.formatOptions), i = nme({
+var ime = /*#__PURE__*/ (0, F.createContext)(null), eR = /*#__PURE__*/ (0, F.createContext)(null), tR = /*#__PURE__*/ (0, F.createContext)(null), ame = /*#__PURE__*/ (0, F.createContext)(null), ome = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = wL(e, t, ime);
+ let n = (0, F.useRef)(null), r = xse(e.formatOptions), i = rme({
...e,
numberFormatter: r
- }), [a, o] = EL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = Sse({
+ }), [a, o] = TL(!e["aria-label"] && !e["aria-labelledby"]), { groupProps: s, trackProps: c, labelProps: l, outputProps: u } = Sse({
...e,
label: o
- }, i, n), d = CL({
+ }, i, n), d = SL({
...e,
values: {
orientation: i.orientation,
@@ -38540,31 +38540,31 @@ var rme = /*#__PURE__*/ (0, F.createContext)(null), tR = /*#__PURE__*/ (0, F.cre
},
defaultClassName: "react-aria-Slider"
}), f = Hw(e, { global: !0 });
- return delete f.id, /*#__PURE__*/ F.createElement(SL, { values: [
- [tR, i],
- [nR, {
+ return delete f.id, /*#__PURE__*/ F.createElement(xL, { values: [
+ [eR, i],
+ [tR, {
...c,
ref: n
}],
- [ime, u],
- [LL, {
+ [ame, u],
+ [IL, {
...l,
ref: a
}]
- ] }, /*#__PURE__*/ F.createElement(kL.div, {
+ ] }, /*#__PURE__*/ F.createElement(OL.div, {
...K(f, d, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": i.orientation,
"data-disabled": i.isDisabled || void 0
}));
-}), ome = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = TL(e, t, nR);
- let n = (0, F.useContext)(tR), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = MD({
+}), sme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = wL(e, t, tR);
+ let n = (0, F.useContext)(eR), { onHoverStart: r, onHoverEnd: i, onHoverChange: a, ...o } = e, { hoverProps: s, isHovered: c } = MD({
onHoverStart: r,
onHoverEnd: i,
onHoverChange: a
- }), l = CL({
+ }), l = SL({
...e,
defaultClassName: "react-aria-SliderTrack",
values: {
@@ -38574,7 +38574,7 @@ var rme = /*#__PURE__*/ (0, F.createContext)(null), tR = /*#__PURE__*/ (0, F.cre
state: n
}
});
- return /*#__PURE__*/ F.createElement(kL.div, {
+ return /*#__PURE__*/ F.createElement(OL.div, {
...K(o, s),
...l,
ref: t,
@@ -38582,14 +38582,14 @@ var rme = /*#__PURE__*/ (0, F.createContext)(null), tR = /*#__PURE__*/ (0, F.cre
"data-orientation": n.orientation || void 0,
"data-disabled": n.isDisabled || void 0
});
-}), sme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { inputRef: n = null } = e, r = (0, F.useContext)(tR), { ref: i } = wL(nR), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = EL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = Cse({
+}), cme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { inputRef: n = null } = e, r = (0, F.useContext)(eR), { ref: i } = CL(tR), { index: a = 0 } = e, o = (0, F.useRef)(null), s = n || o, [c, l] = TL(!e["aria-label"] && !e["aria-labelledby"]), { thumbProps: u, inputProps: d, labelProps: f, isDragging: p, isFocused: m, isDisabled: h } = Cse({
...e,
index: a,
trackRef: i,
inputRef: s,
label: l
- }, r), { focusProps: g, isFocusVisible: _ } = OD(), { hoverProps: v, isHovered: y } = MD(e), b = CL({
+ }, r), { focusProps: g, isFocusVisible: _ } = OD(), { hoverProps: v, isHovered: y } = MD(e), b = SL({
...e,
defaultClassName: "react-aria-SliderThumb",
values: {
@@ -38601,7 +38601,7 @@ var rme = /*#__PURE__*/ (0, F.createContext)(null), tR = /*#__PURE__*/ (0, F.cre
isDisabled: h
}
}), x = Hw(e, { global: !0 });
- return delete x.id, /*#__PURE__*/ F.createElement(kL.div, {
+ return delete x.id, /*#__PURE__*/ F.createElement(OL.div, {
...K(x, u, v),
...b,
ref: t,
@@ -38617,52 +38617,52 @@ var rme = /*#__PURE__*/ (0, F.createContext)(null), tR = /*#__PURE__*/ (0, F.cre
}, /*#__PURE__*/ F.createElement(uE, null, /*#__PURE__*/ F.createElement("input", {
ref: s,
...K(d, g)
- })), /*#__PURE__*/ F.createElement(SL, { values: [[LL, {
+ })), /*#__PURE__*/ F.createElement(xL, { values: [[IL, {
...f,
ref: c
}]] }, b.children));
-}), rR = {};
-rR = {
+}), nR = {};
+nR = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
tableResizer: "أداة تغيير الحجم"
};
// node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var iR = {};
-iR = {
+var rR = {};
+rR = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
tableResizer: "Преоразмерител"
};
// node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var aR = {};
-aR = {
+var iR = {};
+iR = {
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 oR = {};
-oR = {
+var aR = {};
+aR = {
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 sR = {};
-sR = {
+var oR = {};
+oR = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
tableResizer: "Größenanpassung"
};
// node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var cme = {};
-cme = {
+var sR = {};
+sR = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -38685,259 +38685,259 @@ ume = {
tableResizer: "Cambiador de tamaño"
};
// node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var cR = {};
-cR = {
+var dme = {};
+dme = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
tableResizer: "Suuruse muutja"
};
// node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var lR = {};
-lR = {
+var cR = {};
+cR = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
tableResizer: "Koon muuttaja"
};
// node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var uR = {};
-uR = {
+var lR = {};
+lR = {
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 dR = {};
-dR = {
+var uR = {};
+uR = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
tableResizer: "שינוי גודל"
};
// node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var fR = {};
-fR = {
+var dR = {};
+dR = {
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 pR = {};
-pR = {
+var fR = {};
+fR = {
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 mR = {};
-mR = {
+var pR = {};
+pR = {
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 hR = {};
-hR = {
+var mR = {};
+mR = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
tableResizer: "サイズ変更ツール"
};
// node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var gR = {};
-gR = {
+var hR = {};
+hR = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
tableResizer: "크기 조정기"
};
// node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var _R = {};
-_R = {
+var gR = {};
+gR = {
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 vR = {};
-vR = {
+var _R = {};
+_R = {
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 yR = {};
-yR = {
+var vR = {};
+vR = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
tableResizer: "Størrelsesendrer"
};
// node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var bR = {};
-bR = {
+var yR = {};
+yR = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
tableResizer: "Resizer"
};
// node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var xR = {};
-xR = {
+var bR = {};
+bR = {
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 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/pt-PT.mjs
-var CR = {};
-CR = {
+var SR = {};
+SR = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
tableResizer: "Redimensionador"
};
// node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var wR = {};
-wR = {
+var CR = {};
+CR = {
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 TR = {};
-TR = {
+var wR = {};
+wR = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
tableResizer: "Средство изменения размера"
};
// node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var ER = {};
-ER = {
+var TR = {};
+TR = {
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 DR = {};
-DR = {
+var ER = {};
+ER = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
tableResizer: "Spreminjanje velikosti"
};
// node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var OR = {};
-OR = {
+var DR = {};
+DR = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
tableResizer: "Promena veličine"
};
// node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var kR = {};
-kR = {
+var OR = {};
+OR = {
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 AR = {};
-AR = {
+var kR = {};
+kR = {
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 jR = {};
-jR = {
+var AR = {};
+AR = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
tableResizer: "Засіб змінення розміру"
};
// node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var MR = {};
-MR = {
+var jR = {};
+jR = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
tableResizer: "尺寸调整器"
};
// node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var NR = {};
-NR = {
+var MR = {};
+MR = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
tableResizer: "大小調整器"
};
// node_modules/react-aria-components/dist/private/intlStrings.mjs
-var PR = {};
-PR = {
- "ar-AE": rR,
- "bg-BG": iR,
- "cs-CZ": aR,
- "da-DK": oR,
- "de-DE": sR,
- "el-GR": cme,
+var NR = {};
+NR = {
+ "ar-AE": nR,
+ "bg-BG": rR,
+ "cs-CZ": iR,
+ "da-DK": aR,
+ "de-DE": oR,
+ "el-GR": sR,
"en-US": lme,
"es-ES": ume,
- "et-EE": cR,
- "fi-FI": lR,
- "fr-FR": uR,
- "he-IL": dR,
- "hr-HR": fR,
- "hu-HU": pR,
- "it-IT": mR,
- "ja-JP": hR,
- "ko-KR": gR,
- "lt-LT": _R,
- "lv-LV": vR,
- "nb-NO": yR,
- "nl-NL": bR,
- "pl-PL": xR,
- "pt-BR": SR,
- "pt-PT": CR,
- "ro-RO": wR,
- "ru-RU": TR,
- "sk-SK": ER,
- "sl-SI": DR,
- "sr-SP": OR,
- "sv-SE": kR,
- "tr-TR": AR,
- "uk-UA": jR,
- "zh-CN": MR,
- "zh-TW": NR
+ "et-EE": dme,
+ "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
};
// node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var FR = /*#__PURE__*/ (0, F.createContext)({}), IR = /*#__PURE__*/ (0, F.createContext)(null), dme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { render: n } = (0, F.useContext)(IR);
+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);
return /*#__PURE__*/ F.createElement(F.Fragment, null, n(e, t));
});
-function LR(e, t) {
+function IR(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(dme, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ F.createElement(fme, { target: e });
}, [
t?.target,
r,
@@ -38945,7 +38945,7 @@ function LR(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function RR(e, t, n) {
+function LR(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;
@@ -38966,13 +38966,13 @@ function RR(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 zR = /*#__PURE__*/ (0, F.createContext)({}), fme = /*#__PURE__*/ (0, F.createContext)(null);
-function BR(e) {
+var RR = /*#__PURE__*/ (0, F.createContext)({}), pme = /*#__PURE__*/ (0, F.createContext)(null);
+function zR(e) {
let t = (0, F.useRef)({});
- return /*#__PURE__*/ F.createElement(fme.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ F.createElement(pme.Provider, { value: t }, e.children);
}
// node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var VR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), HR = /*#__PURE__*/ (0, F.createContext)({}), pme = /*#__PURE__*/ cw(class extends fS {
+var BR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), VR = /*#__PURE__*/ (0, F.createContext)({}), mme = /*#__PURE__*/ cw(class extends fS {
static {
this.type = "separator";
}
@@ -38985,10 +38985,10 @@ var VR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), HR = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = TL(e, t, HR);
+ [e, t] = wL(e, t, VR);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = kL[c], { separatorProps: u } = Ace({
+ let l = OL[c], { separatorProps: u } = Ace({
...s,
elementType: n,
orientation: r
@@ -39003,12 +39003,12 @@ var VR = /*#__PURE__*/ (0, F.createContext)({ isSelected: !1 }), HR = /*#__PURE_
});
});
// node_modules/react-aria/dist/private/utils/inertValue.mjs
-function UR(e) {
+function HR(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 WR = class {
+var UR = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -39052,19 +39052,19 @@ var WR = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, GR = class e extends Set {
+}, WR = 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 mme(e, t) {
+function hme(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function KR(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, F.useRef)(!1), [, s] = (0, F.useState)(!1), c = (0, F.useRef)(null), l = (0, F.useRef)(null), [, u] = (0, F.useState)(null), [d, f] = eE((0, F.useMemo)(() => qR(e.selectedKeys), [e.selectedKeys]), (0, F.useMemo)(() => qR(e.defaultSelectedKeys, new GR()), [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 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] = eE((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);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, F.useRef)(i);
return (0, F.useEffect)(() => {
@@ -39091,17 +39091,17 @@ function KR(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !mme(e, d)) && f(e);
+ (r || !hme(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function qR(e, t) {
- return e ? e === "all" ? "all" : new GR(e) : t;
+function KR(e, t) {
+ return e ? e === "all" ? "all" : new WR(e) : t;
}
// node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var JR = class e {
+var qR = 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;
}
@@ -39184,10 +39184,10 @@ var JR = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new GR([t], t, t);
+ if (this.state.selectedKeys === "all") n = new WR([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new GR(e, r, t);
+ n = new WR(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);
}
@@ -39221,19 +39221,19 @@ var JR = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new GR(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new WR(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 GR([t], t, t) : new GR();
+ let n = this.canSelectItem(t) ? new WR([t], t, t) : new WR();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new GR();
+ let t = new WR();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -39256,7 +39256,7 @@ var JR = 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 GR());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new WR());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -39297,9 +39297,9 @@ var JR = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, hme = class {
+}, gme = class {
build(e, t) {
- return this.context = t, YR(() => this.iterateCollection(e));
+ return this.context = t, JR(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -39381,10 +39381,10 @@ var JR = class e {
...a,
key: l,
index: s,
- wrapper: gme(e.wrapper, a.wrapper)
+ wrapper: _me(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 <${XR(t.type)}> in <${XR(r?.type ?? "unknown parent type")}>. Only <${XR(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 <${YR(t.type)}> in <${YR(r?.type ?? "unknown parent type")}>. Only <${YR(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -39406,7 +39406,7 @@ var JR = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: YR(function* () {
+ childNodes: JR(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -39425,7 +39425,7 @@ var JR = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function YR(e) {
+function JR(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -39433,17 +39433,17 @@ function YR(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function gme(e, t) {
+function _me(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function XR(e) {
+function YR(e) {
return e[0].toUpperCase() + e.slice(1);
}
// node_modules/react-stately/dist/private/collections/useCollection.mjs
-function ZR(e, t, n) {
- let r = (0, F.useMemo)(() => new hme(), []), { children: i, items: a, collection: o } = e;
+function XR(e, t, n) {
+ let r = (0, F.useMemo)(() => new gme(), []), { children: i, items: a, collection: o } = e;
return (0, F.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -39457,27 +39457,27 @@ function ZR(e, t, n) {
]);
}
// node_modules/react-stately/dist/private/list/useListState.mjs
-function QR(e) {
- let { filter: t, layoutDelegate: n } = e, r = KR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = ZR(e, (0, F.useCallback)((e) => t ? new WR(t(e)) : new WR(e), [t]), (0, F.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, F.useMemo)(() => new JR(a, r, { layoutDelegate: n }), [
+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 }), [
a,
r,
n
]);
- return $R(a, o), {
+ return QR(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function _me(e, t) {
+function vme(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return $R(n, r), {
+ return QR(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function $R(e, t) {
+function QR(e, t) {
let n = (0, F.useRef)(null);
(0, F.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -39504,7 +39504,7 @@ function $R(e, t) {
}, [e, t]);
}
// node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function ez(e, t) {
+function $R(e, t) {
let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, F.useRef)(null), s = Ew((e) => {
for (let t of e) t.isIntersecting && r && r();
});
@@ -39527,42 +39527,42 @@ function ez(e, t) {
]);
}
// node_modules/react-aria-components/dist/private/ListBox.mjs
-var tz = /*#__PURE__*/ (0, F.createContext)(null), nz = /*#__PURE__*/ (0, F.createContext)(null), vme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = TL(e, t, tz);
- let n = (0, F.useContext)(nz);
- return n ? /*#__PURE__*/ F.createElement(rz, {
+var ez = /*#__PURE__*/ (0, F.createContext)(null), tz = /*#__PURE__*/ (0, F.createContext)(null), yme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = wL(e, t, ez);
+ let n = (0, F.useContext)(tz);
+ return n ? /*#__PURE__*/ F.createElement(nz, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ F.createElement(aw, { content: /*#__PURE__*/ F.createElement(fw, e) }, (n) => /*#__PURE__*/ F.createElement(yme, {
+ }) : /*#__PURE__*/ F.createElement(aw, { content: /*#__PURE__*/ F.createElement(fw, e) }, (n) => /*#__PURE__*/ F.createElement(bme, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function yme({ props: e, listBoxRef: t, collection: n }) {
+function bme({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, F.useContext)(FL), i = QR({
+ let { layoutDelegate: r } = (0, F.useContext)(PL), i = ZR({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ F.createElement(rz, {
+ return /*#__PURE__*/ F.createElement(nz, {
state: i,
props: e,
listBoxRef: t
});
}
-function rz({ state: e, props: t, listBoxRef: n }) {
- [t, n] = TL(t, n, AL);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = _me(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Pw(), { disabledBehavior: p, disabledKeys: m } = l, h = xD({
+function nz({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = wL(t, n, kL);
+ 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 } = Pw(), { disabledBehavior: p, disabledKeys: m } = l, h = xD({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(FL), b = (0, F.useMemo)(() => t.keyboardDelegate || new CE({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, F.useContext)(PL), b = (0, F.useMemo)(() => t.keyboardDelegate || new CE({
collection: c,
collator: h,
ref: n,
@@ -39623,7 +39623,7 @@ function rz({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, ee = CL({
+ }, ee = SL({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -39634,7 +39634,7 @@ function rz({ state: e, props: t, listBoxRef: n }) {
style: { display: "contents" }
}, t.renderEmptyState(M)));
let te = Hw(t, { global: !0 });
- return /*#__PURE__*/ F.createElement(fT, null, /*#__PURE__*/ F.createElement(kL.div, {
+ return /*#__PURE__*/ F.createElement(fT, null, /*#__PURE__*/ F.createElement(OL.div, {
...K(te, ee, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -39645,52 +39645,52 @@ function rz({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ F.createElement(SL, { values: [
- [tz, t],
- [nz, s],
- [FR, {
+ }, /*#__PURE__*/ F.createElement(xL, { values: [
+ [ez, t],
+ [tz, s],
+ [PR, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [HR, { elementType: "div" }],
- [IR, { render: Sme }],
- [ML, {
+ [VR, { elementType: "div" }],
+ [FR, { render: Cme }],
+ [jL, {
name: "ListBoxSection",
- render: bme
+ render: xme
}]
- ] }, /*#__PURE__*/ F.createElement(BR, null, /*#__PURE__*/ F.createElement(y, {
+ ] }, /*#__PURE__*/ F.createElement(zR, null, /*#__PURE__*/ F.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: RR(l, r, C),
- renderDropIndicator: LR(r, C)
+ persistedKeys: LR(l, r, C),
+ renderDropIndicator: IR(r, C)
}))), N, E));
}
-function bme(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, F.useContext)(nz), { dragAndDropHooks: a, dropState: o } = (0, F.useContext)(FR), { CollectionBranch: s } = (0, F.useContext)(FL), [c, l] = EL(), { headingProps: u, groupProps: d } = Zse({
+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)(PL), [c, l] = TL(), { headingProps: u, groupProps: d } = Zse({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = CL({
+ }), f = SL({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
}), p = Hw(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ F.createElement(kL.section, {
+ return delete p.id, /*#__PURE__*/ F.createElement(OL.section, {
...K(p, f, d),
ref: t
- }, /*#__PURE__*/ F.createElement(zR.Provider, { value: {
+ }, /*#__PURE__*/ F.createElement(RR.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ F.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: LR(a, o)
+ renderDropIndicator: IR(a, o)
})));
}
-var xme = /*#__PURE__*/ cw(hS, function(e, t, n) {
- let r = YC(t), i = (0, F.useContext)(nz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(FR), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Qse({
+var Sme = /*#__PURE__*/ cw(hS, function(e, t, n) {
+ let r = YC(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 } = Qse({
key: n.key,
"aria-label": e?.["aria-label"]
}, i, r), { hoverProps: p, isHovered: m } = MD({
@@ -39709,7 +39709,7 @@ var xme = /*#__PURE__*/ cw(hS, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = CL({
+ let y = o && o.isDragging(n.key), b = SL({
...e,
id: void 0,
children: e.children,
@@ -39727,7 +39727,7 @@ var xme = /*#__PURE__*/ cw(hS, function(e, t, n) {
(0, F.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? kL.a : kL.div, S = Hw(e, { global: !0 });
+ let x = e.href ? OL.a : OL.div, S = Hw(e, { global: !0 });
return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ F.createElement(x, {
...K(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -39741,29 +39741,29 @@ var xme = /*#__PURE__*/ cw(hS, 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(SL, { values: [[UL, { slots: {
- [xL]: u,
+ }, /*#__PURE__*/ F.createElement(xL, { values: [[HL, { slots: {
+ [bL]: u,
label: u,
description: d
- } }], [VR, { isSelected: f.isSelected }]] }, b.children));
+ } }], [BR, { isSelected: f.isSelected }]] }, b.children));
});
-function Sme(e, t) {
+function Cme(e, t) {
t = YC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(FR), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ F.createElement(wme, {
+ 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, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Cme(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = CL({
+function wme(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = SL({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(kL.div, {
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(OL.div, {
...n,
...a,
role: "option",
@@ -39771,10 +39771,10 @@ function Cme(e, t) {
"data-drop-target": r || void 0
}));
}
-var wme = /*#__PURE__*/ (0, F.forwardRef)(Cme);
+var Tme = /*#__PURE__*/ (0, F.forwardRef)(wme);
cw(mS, function(e, t, n) {
- let r = (0, F.useContext)(nz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- ez((0, F.useMemo)(() => ({
+ let r = (0, F.useContext)(tz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ $R((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -39784,7 +39784,7 @@ cw(mS, function(e, t, n) {
o,
r?.collection
]), c);
- let l = CL({
+ let l = SL({
...s,
id: void 0,
children: n.rendered,
@@ -39797,7 +39797,7 @@ cw(mS, function(e, t, n) {
width: 0,
height: 0
},
- inert: UR(!0)
+ inert: HR(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -39806,7 +39806,7 @@ cw(mS, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(kL.div, {
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(OL.div, {
...K(Hw(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
@@ -39814,9 +39814,9 @@ cw(mS, function(e, t, n) {
}, l.children)));
});
// node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Tme = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
+var Eme = /*#__PURE__*/ (0, F.createContext)({ placement: "bottom" });
// node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function iz(e) {
+function rz(e) {
let [t, n] = eE(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, F.useState)(null);
return {
isOpen: t,
@@ -39835,15 +39835,15 @@ function iz(e) {
};
}
// node_modules/react-aria/dist/private/utils/animation.mjs
-function az(e, t = !0, n) {
+function iz(e, t = !0, n) {
let [r, i] = (0, F.useState)(!0), a = r && t;
return RS(() => {
if (!t && e.current) return PC(DS(e.current, "opacity", "0"), DS(e.current, "clip", "rect(0 0 0 0)"), DS(e.current, "clip-path", "inset(50%)"), DS(e.current, "mask-image", "linear-gradient(#0000, #0000)"));
}, [e, t]), RS(() => {
if (a && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, a]), sz(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
+ }, [e, a]), oz(e, a, n, (0, F.useCallback)(() => i(!1), [])), a;
}
-function oz(e, t, n) {
+function az(e, t, n) {
let [r, i] = (0, F.useState)(t ? "open" : "closed");
switch (r) {
case "open":
@@ -39853,11 +39853,11 @@ function oz(e, t, n) {
case "exiting": t && i("open");
}
let a = r === "exiting";
- return sz(e, a, n, (0, F.useCallback)(() => {
+ return oz(e, a, n, (0, F.useCallback)(() => {
i((e) => e === "exiting" ? "closed" : e);
}, [])), a;
}
-function sz(e, t, n, r) {
+function oz(e, t, n, r) {
let i = (0, F.useRef)(null), a = Ew(n);
RS(() => {
if (t && e.current && i.current !== t) {
@@ -39884,9 +39884,9 @@ function sz(e, t, n, r) {
]);
}
// node_modules/react-aria-components/dist/private/Popover.mjs
-var cz = /*#__PURE__*/ (0, F.createContext)(null), lz = /*#__PURE__*/ (0, F.createContext)(null), uz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = TL(e, t, cz);
- let n = (0, F.useContext)(Sz), r = iz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = oz(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = tw(), { direction: c } = Pw();
+var sz = /*#__PURE__*/ (0, F.createContext)(null), cz = /*#__PURE__*/ (0, F.createContext)(null), lz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = wL(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 = tw(), { direction: c } = Pw();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -39897,7 +39897,7 @@ var cz = /*#__PURE__*/ (0, F.createContext)(null), lz = /*#__PURE__*/ (0, F.crea
defaultChildren: null
})), /*#__PURE__*/ F.createElement(F.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(Eme, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ F.createElement(Dme, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -39906,13 +39906,13 @@ var cz = /*#__PURE__*/ (0, F.createContext)(null), lz = /*#__PURE__*/ (0, F.crea
dir: c
});
});
-function Eme({ 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)(lz), c = s && i.trigger === "SubmenuTrigger", [l, u] = (0, F.useState)(!1), { popoverProps: d, underlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = wce({
+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 } = wce({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), g = i.popoverRef, _ = az(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = CL({
+ }, e), g = i.popoverRef, _ = iz(g, !!m && l), v = i.isEntering || !i.shouldSkipAnimation && _ || !1, y = SL({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -39933,7 +39933,7 @@ function Eme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
]);
let C = (0, F.useMemo)(() => {
let e = y.children;
- for (let t of [cz, ...r ?? []]) e = /*#__PURE__*/ F.createElement(t.Provider, { value: null }, e);
+ for (let t of [sz, ...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");
@@ -39949,7 +39949,7 @@ function Eme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"--trigger-width": y.style?.["--trigger-width"] || w
};
RS(() => yk(() => u(!0)), []);
- let O = /*#__PURE__*/ F.createElement(kL.div, {
+ let O = /*#__PURE__*/ F.createElement(OL.div, {
...K(Hw(i, { global: !0 }), d),
...y,
id: x ? i.id : void 0,
@@ -39965,7 +39965,7 @@ function Eme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
"data-placement": m,
"data-entering": v || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ F.createElement(fk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(Tme.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ F.createElement(fk, { onDismiss: e.close }), /*#__PURE__*/ F.createElement(Eme.Provider, { value: {
...p,
placement: m,
ref: a
@@ -39990,13 +39990,13 @@ function Eme({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ F.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(lz.Provider, { value: o }, O)));
+ }, /*#__PURE__*/ F.createElement(cz.Provider, { value: o }, O)));
}
// node_modules/react-aria-components/dist/private/Keyboard.mjs
-var Dme = /*#__PURE__*/ (0, F.createContext)({});
+var Ome = /*#__PURE__*/ (0, F.createContext)({});
// node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function dz(e) {
- let t = iz(e), [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)([]), o = () => {
+function uz(e) {
+ let t = rz(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]);
@@ -40021,7 +40021,7 @@ function dz(e) {
};
}
// node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var Ome = class {
+var kme = 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) => {
@@ -40064,8 +40064,8 @@ var Ome = class {
}
};
// node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function fz(e) {
- let { onExpandedChange: t } = e, [n, r] = eE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = KR(e), a = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = ZR(e, (0, F.useCallback)((e) => new Ome(e, { expandedKeys: n }), [n]), null);
+function dz(e) {
+ let { onExpandedChange: t } = e, [n, r] = eE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = 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);
return (0, F.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -40073,31 +40073,31 @@ function fz(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(kme(n, e));
+ r(Ame(n, e));
},
setExpandedKeys: r,
- selectionManager: new JR(o, i)
+ selectionManager: new qR(o, i)
};
}
-function kme(e, t) {
+function Ame(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 pz = /*#__PURE__*/ (0, F.createContext)(null), mz = /*#__PURE__*/ (0, F.createContext)(null), hz = /*#__PURE__*/ (0, F.createContext)(null), gz = /*#__PURE__*/ (0, F.createContext)(null);
-function Ame(e) {
- let t = dz(e), n = (0, F.useRef)(null), { menuTriggerProps: r, menuProps: i } = sD({
+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 } = sD({
...e,
type: "menu"
}, t, n), a = (0, F.useRef)(null);
- return tw() ? null : /*#__PURE__*/ F.createElement(SL, { values: [
- [pz, {
+ return tw() ? null : /*#__PURE__*/ F.createElement(xL, { values: [
+ [fz, {
...i,
ref: a
}],
- [Sz, t],
- [hz, t],
- [cz, {
+ [xz, t],
+ [mz, t],
+ [sz, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -40111,7 +40111,7 @@ function Ame(e) {
isPressed: t.isOpen
}, e.children));
}
-var jme = /*#__PURE__*/ (0, F.createContext)(null);
+var Mme = /*#__PURE__*/ (0, F.createContext)(null);
(class extends fS {
static {
this.type = "submenutrigger";
@@ -40125,24 +40125,24 @@ var jme = /*#__PURE__*/ (0, F.createContext)(null);
return null;
}
});
-var Mme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = TL(e, t, pz), /*#__PURE__*/ F.createElement(aw, { content: /*#__PURE__*/ F.createElement(fw, e) }, (n) => /*#__PURE__*/ F.createElement(Nme, {
+var Nme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = wL(e, t, fz), /*#__PURE__*/ F.createElement(aw, { content: /*#__PURE__*/ F.createElement(fw, e) }, (n) => /*#__PURE__*/ F.createElement(Pme, {
props: e,
collection: n,
menuRef: t
}));
});
-function Nme({ props: e, collection: t, menuRef: n }) {
- [e, n] = TL(e, n, AL);
- let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = fz({
+function Pme({ props: e, collection: t, menuRef: n }) {
+ [e, n] = wL(e, n, kL);
+ let { filter: r, ...i } = e, a = (0, F.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = dz({
...e,
collection: a,
children: void 0
- }), s = (0, F.useContext)(hz), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(FL), { menuProps: u } = $se({
+ }), s = (0, F.useContext)(mz), { isVirtualized: c, CollectionRoot: l } = (0, F.useContext)(PL), { menuProps: u } = $se({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = CL({
+ }, o, n), d = SL({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -40153,35 +40153,35 @@ function Nme({ props: e, collection: t, menuRef: n }) {
style: { display: "contents" }
}, e.renderEmptyState()));
let p = Hw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(fT, null, /*#__PURE__*/ F.createElement(kL.div, {
+ return /*#__PURE__*/ F.createElement(fT, null, /*#__PURE__*/ F.createElement(OL.div, {
...K(p, d, u),
ref: n,
slot: e.slot || void 0,
"data-empty": o.collection.size === 0 || void 0,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(SL, { values: [
- [mz, o],
- [HR, { elementType: "div" }],
- [ML, {
+ }, /*#__PURE__*/ F.createElement(xL, { values: [
+ [pz, o],
+ [VR, { elementType: "div" }],
+ [jL, {
name: "MenuSection",
- render: _z
+ render: gz
}],
- [jme, {
+ [Mme, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [yz, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [vz, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [kL, null],
[AL, null],
- [jL, null],
- [gz, o.selectionManager],
- [hz, s ?? dz({})]
- ] }, /*#__PURE__*/ F.createElement(BR, null, /*#__PURE__*/ F.createElement(l, {
+ [hz, o.selectionManager],
+ [mz, s ?? uz({})]
+ ] }, /*#__PURE__*/ F.createElement(zR, null, /*#__PURE__*/ F.createElement(l, {
collection: o.collection,
- persistedKeys: IL(o.selectionManager.focusedKey),
+ persistedKeys: FL(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var Pme = class extends JR {
+var Fme = class extends qR {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -40201,11 +40201,11 @@ var Pme = class extends JR {
return this.parent.childFocusStrategy;
}
};
-function _z(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, F.useContext)(mz), { CollectionBranch: a } = (0, F.useContext)(FL), [o, s] = EL(), { headingProps: c, groupProps: l } = tce({
+function gz(e, t, n, r = "react-aria-MenuSection") {
+ let i = (0, F.useContext)(pz), { CollectionBranch: a } = (0, F.useContext)(PL), [o, s] = TL(), { headingProps: c, groupProps: l } = tce({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = CL({
+ }), u = SL({
...e,
id: void 0,
children: void 0,
@@ -40213,31 +40213,31 @@ function _z(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, F.useContext)(gz), f = KR(e), p = e.selectionMode == null ? d : new Pme(d, f), m = wL(yz)?.shouldCloseOnSelect, h = Hw(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ F.createElement(kL.section, {
+ }), d = (0, F.useContext)(hz), f = GR(e), p = e.selectionMode == null ? d : new Fme(d, f), m = CL(vz)?.shouldCloseOnSelect, h = Hw(e, { global: !0 });
+ return delete h.id, /*#__PURE__*/ F.createElement(OL.section, {
...K(h, u, l),
ref: t
- }, /*#__PURE__*/ F.createElement(SL, { values: [
- [zR, {
+ }, /*#__PURE__*/ F.createElement(xL, { values: [
+ [RR, {
...c,
ref: o
}],
- [gz, p],
- [yz, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [hz, p],
+ [vz, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ F.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var vz = /*#__PURE__*/ lw(pae, _z), yz = /*#__PURE__*/ (0, F.createContext)(null), bz = /*#__PURE__*/ cw(hS, function(e, t, n) {
- [e, t] = TL(e, t, yz);
- let r = wL(yz)?.id, i = (0, F.useContext)(mz), a = YC(t), o = (0, F.useContext)(gz), { isVirtualized: s } = (0, F.useContext)(FL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = ece({
+var _z = /*#__PURE__*/ lw(pae, gz), vz = /*#__PURE__*/ (0, F.createContext)(null), yz = /*#__PURE__*/ cw(hS, function(e, t, n) {
+ [e, t] = wL(e, t, vz);
+ let r = CL(vz)?.id, i = (0, F.useContext)(pz), a = YC(t), o = (0, F.useContext)(hz), { isVirtualized: s } = (0, F.useContext)(PL), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = ece({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = MD({ isDisabled: f.isDisabled }), h = CL({
+ }, i, a), { hoverProps: p, isHovered: m } = MD({ isDisabled: f.isDisabled }), h = SL({
...e,
id: void 0,
children: n.rendered,
@@ -40251,7 +40251,7 @@ var vz = /*#__PURE__*/ lw(pae, _z), yz = /*#__PURE__*/ (0, F.createContext)(null
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? kL.a : kL.div, _ = Hw(e, { global: !0 });
+ }), g = e.href ? OL.a : OL.div, _ = Hw(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(g, {
...K(_, h, c, p),
ref: a,
@@ -40264,19 +40264,19 @@ var vz = /*#__PURE__*/ lw(pae, _z), yz = /*#__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(SL, { values: [
- [UL, { slots: {
- [xL]: l,
+ }, /*#__PURE__*/ F.createElement(xL, { values: [
+ [HL, { slots: {
+ [bL]: l,
label: l,
description: u
} }],
- [Dme, d],
- [VR, { isSelected: f.isSelected }]
+ [Ome, d],
+ [BR, { isSelected: f.isSelected }]
] }, h.children));
});
cw(mS, function(e, t, n) {
- let r = (0, F.useContext)(mz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
- ez((0, F.useMemo)(() => ({
+ let r = (0, F.useContext)(pz), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, F.useRef)(null);
+ $R((0, F.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -40286,7 +40286,7 @@ cw(mS, function(e, t, n) {
o,
r?.collection
]), c);
- let l = CL({
+ let l = SL({
...s,
id: void 0,
children: n.rendered,
@@ -40299,7 +40299,7 @@ cw(mS, function(e, t, n) {
width: 0,
height: 0
},
- inert: UR(!0)
+ inert: HR(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -40308,7 +40308,7 @@ cw(mS, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(kL.div, {
+ })), i && l.children && /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(OL.div, {
...K(Hw(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
@@ -40316,81 +40316,81 @@ cw(mS, function(e, t, n) {
}, l.children)));
});
// node_modules/react-aria-components/dist/private/Dialog.mjs
-var xz = /*#__PURE__*/ (0, F.createContext)(null), Sz = /*#__PURE__*/ (0, F.createContext)(null), Cz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+var bz = /*#__PURE__*/ (0, F.createContext)(null), xz = /*#__PURE__*/ (0, F.createContext)(null), Sz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = TL(e, t, xz);
+ [e, t] = wL(e, t, bz);
let { dialogProps: r, titleProps: i, contentProps: a } = Lse({
...e,
"aria-labelledby": n
- }, t), o = (0, F.useContext)(Sz);
+ }, t), o = (0, F.useContext)(xz);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = CL({
+ let s = SL({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
}), c = Hw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(kL.section, {
+ return /*#__PURE__*/ F.createElement(OL.section, {
...K(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ F.createElement(SL, { values: [
- [VL, { slots: {
- [xL]: {},
+ }, /*#__PURE__*/ F.createElement(xL, { values: [
+ [BL, { slots: {
+ [bL]: {},
title: {
...i,
level: 2
}
} }],
- [UL, { slots: {
- [xL]: {},
+ [HL, { slots: {
+ [bL]: {},
description: a
} }],
- [zL, { slots: {
- [xL]: {},
+ [RL, { slots: {
+ [bL]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), wz = typeof document < "u" && window.visualViewport;
-function Fme() {
+}), Cz = typeof document < "u" && window.visualViewport;
+function Ime() {
let e = oC(), t = (0, F.useRef)(null), [n, r] = (0, F.useState)(() => e ? {
width: 0,
height: 0
- } : Tz());
+ } : wz());
return (0, F.useEffect)(() => {
let e = (e) => {
r((t) => e.width === t.width && e.height === t.height ? t : e);
}, n = () => {
- wz && wz.scale > 1 || e(Tz());
+ Cz && Cz.scale > 1 || e(wz());
}, i = (n) => {
- wz && wz.scale > 1 || Cw(G(n)) && (t.current = yk((t) => {
+ Cz && Cz.scale > 1 || Cw(G(n)) && (t.current = yk((t) => {
t || e({
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight
});
}));
};
- return e(Tz()), JS() && YS() && window.addEventListener("blur", i, !0), wz ? wz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
- t.current?.(), JS() && YS() && window.removeEventListener("blur", i, !0), wz ? wz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
+ return e(wz()), JS() && YS() && window.addEventListener("blur", i, !0), Cz ? Cz.addEventListener("resize", n) : window.addEventListener("resize", n), () => {
+ t.current?.(), JS() && YS() && window.removeEventListener("blur", i, !0), Cz ? Cz.removeEventListener("resize", n) : window.removeEventListener("resize", n);
};
}, []), n;
}
-function Tz() {
+function wz() {
return {
- width: wz ? Math.min(wz.width * wz.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: wz ? wz.height * wz.scale : document.documentElement.clientHeight
+ width: Cz ? Math.min(Cz.width * Cz.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: Cz ? Cz.height * Cz.scale : document.documentElement.clientHeight
};
}
// node_modules/react-aria-components/dist/private/Modal.mjs
-var Ime = /*#__PURE__*/ (0, F.createContext)(null), Ez = /*#__PURE__*/ (0, F.createContext)(null), Lme = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- if ((0, F.useContext)(Ez)) return /*#__PURE__*/ F.createElement(Oz, {
+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, {
...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(Dz, {
+ return /*#__PURE__*/ F.createElement(Ez, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -40400,15 +40400,15 @@ var Ime = /*#__PURE__*/ (0, F.createContext)(null), Ez = /*#__PURE__*/ (0, F.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ F.createElement(Oz, {
+ }, /*#__PURE__*/ F.createElement(Dz, {
...f,
modalRef: t
}, s));
});
-function Rme(e, t) {
- [e, t] = TL(e, t, Ime);
- let n = (0, F.useContext)(Sz), r = iz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = YC(t), o = (0, F.useRef)(null), s = oz(a, i.isOpen, e.onExit), c = (0, F.useRef)(null), l = oz(o, i.isOpen, (e) => c.current?.(e)), u = s || l || e.isExiting || !1, d = oC();
- return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(zme, {
+function zme(e, t) {
+ [e, t] = wL(e, t, Lme);
+ let n = (0, F.useContext)(xz), r = rz(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = YC(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 = oC();
+ return !i.isOpen && !u || d ? null : /*#__PURE__*/ F.createElement(Bme, {
...e,
state: i,
isExiting: u,
@@ -40417,12 +40417,12 @@ function Rme(e, t) {
onExitRef: c
});
}
-var Dz = /*#__PURE__*/ (0, F.forwardRef)(Rme);
-function zme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n }) {
- let r = n.modalRef, { state: i } = n, [a, o] = (0, F.useState)(!1), s = az(n.overlayRef, a, n.onEnter) || n.isEntering || !1, c = !!t && (!a || s), { modalProps: l, underlayProps: u } = fce({
+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 } = fce({
...n,
isEntering: c
- }, i, r), d = (0, F.useContext)(xz), f = t ? Bme(d, { isEntering: c }) : d, p = CL({
+ }, i, r), d = (0, F.useContext)(bz), f = t ? Vme(d, { isEntering: c }) : d, p = SL({
...n,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -40430,7 +40430,7 @@ function zme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isExiting: n.isExiting,
state: i
}
- }), m = Fme(), h, g;
+ }), m = Ime(), h, g;
if (typeof document < "u") {
let e = jT(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
h = e.scrollWidth - t, g = e.scrollHeight - n;
@@ -40445,15 +40445,15 @@ function zme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
return RS(() => yk(() => o(!0)), []), /*#__PURE__*/ F.createElement(ED, {
isExiting: n.isExiting,
portalContainer: e
- }, /*#__PURE__*/ F.createElement(kL.div, {
+ }, /*#__PURE__*/ F.createElement(OL.div, {
...K(Hw(n, { global: !0 }), u),
...p,
style: _,
ref: n.overlayRef,
"data-entering": s || void 0,
"data-exiting": n.isExiting || void 0
- }, /*#__PURE__*/ F.createElement(SL, { values: [
- [Ez, {
+ }, /*#__PURE__*/ F.createElement(xL, { values: [
+ [Tz, {
modalProps: l,
modalRef: r,
isExiting: n.isExiting,
@@ -40461,11 +40461,11 @@ function zme({ UNSTABLE_portalContainer: e, UNSTABLE_deferUntilEntered: t, ...n
isOpen: a,
isDismissable: n.isDismissable
}],
- [Sz, i],
- [xz, f]
+ [xz, i],
+ [bz, f]
] }, p.children)));
}
-function Bme(e, t) {
+function Vme(e, t) {
if (e && "slots" in e && e.slots) {
let n = {};
for (let r in e.slots) n[r] = {
@@ -40482,8 +40482,8 @@ function Bme(e, t) {
...t
};
}
-function Oz(e) {
- let { modalProps: t, modalRef: n, isExiting: r, onExitRef: i, isDismissable: a, isOpen: o } = (0, F.useContext)(Ez), s = (0, F.useContext)(Sz), c = YC((0, F.useMemo)(() => BC(e.modalRef, n), [e.modalRef, n])), l = az(c, o, e.onEnter), u = CL({
+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 = YC((0, F.useMemo)(() => BC(e.modalRef, n), [e.modalRef, n])), l = iz(c, o, e.onEnter), u = SL({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -40494,7 +40494,7 @@ function Oz(e) {
});
return RS(() => {
i && (i.current = e.onExit);
- }), /*#__PURE__*/ F.createElement(kL.div, {
+ }), /*#__PURE__*/ F.createElement(OL.div, {
...K(Hw(e, { global: !0 }), t),
...u,
ref: c,
@@ -40503,9 +40503,9 @@ function Oz(e) {
}, a && /*#__PURE__*/ F.createElement(fk, { onDismiss: s.close }), u.children);
}
// node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var Vme = Math.round(Math.random() * 1e10), Hme = 0;
-function Ume(e) {
- let t = (0, F.useMemo)(() => e.name || `radio-group-${Vme}-${++Hme}`, [e.name]), [n, r] = eE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = GT({
+var 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] = eE(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, F.useState)(n), [a, o] = (0, F.useState)(null), s = GT({
...e,
value: n
}), c = (t) => {
@@ -40527,16 +40527,16 @@ function Ume(e) {
};
}
// node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Wme = /*#__PURE__*/ (0, F.createContext)(null), Gme = /*#__PURE__*/ (0, F.createContext)(null), kz = /*#__PURE__*/ (0, F.createContext)(null), Az = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = TL(e, t, Wme);
- let { validationBehavior: n } = wL(GL) || {}, r = e.validationBehavior ?? n ?? "native", i = Ume({
+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] = wL(e, t, Gme);
+ let { validationBehavior: n } = CL(WL) || {}, r = e.validationBehavior ?? n ?? "native", i = Wme({
...e,
validationBehavior: r
- }), [a, o] = EL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Ece({
+ }), [a, o] = TL(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Ece({
...e,
label: o,
validationBehavior: r
- }, i), f = CL({
+ }, i), f = SL({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -40548,7 +40548,7 @@ var Wme = /*#__PURE__*/ (0, F.createContext)(null), Gme = /*#__PURE__*/ (0, F.cr
},
defaultClassName: "react-aria-RadioGroup"
}), p = Hw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(kL.div, {
+ return /*#__PURE__*/ F.createElement(OL.div, {
...K(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -40557,39 +40557,39 @@ var Wme = /*#__PURE__*/ (0, F.createContext)(null), Gme = /*#__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(SL, { values: [
- [kz, i],
- [LL, {
+ }, /*#__PURE__*/ F.createElement(xL, { values: [
+ [Oz, i],
+ [IL, {
...c,
ref: a,
elementType: "span"
}],
- [UL, { slots: {
+ [HL, { slots: {
description: l,
errorMessage: u
} }],
- [WL, d]
- ] }, /*#__PURE__*/ F.createElement(BR, null, f.children)));
-}), jz = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [UL, d]
+ ] }, /*#__PURE__*/ F.createElement(zR, null, f.children)));
+}), Az = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = TL(r, t, Gme);
- let i = F.useContext(kz), a = YC((0, F.useMemo)(() => BC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Tce({
- ...DL(e),
+ [e, t] = wL(r, t, Kme);
+ let i = F.useContext(Oz), a = YC((0, F.useMemo)(() => BC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Tce({
+ ...EL(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ F.createElement(Mz.Provider, { value: {
+ return /*#__PURE__*/ F.createElement(jz.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ F.createElement(Kme, {
+ } }, /*#__PURE__*/ F.createElement(qme, {
...e,
ref: t
}));
-}), Mz = /*#__PURE__*/ (0, F.createContext)(null), Kme = /*#__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)(Mz), l = F.useContext(kz), { isFocused: u, isFocusVisible: d, focusProps: f } = OD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = MD({
+}), 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 } = OD(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = MD({
...e,
isDisabled: p
- }), g = CL({
+ }), g = SL({
...e,
defaultClassName: s,
values: {
@@ -40604,7 +40604,7 @@ var Wme = /*#__PURE__*/ (0, F.createContext)(null), Gme = /*#__PURE__*/ (0, F.cr
isRequired: l.isRequired
}
}), _ = Hw(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(kL.label, {
+ return delete _.id, delete _.onClick, /*#__PURE__*/ F.createElement(OL.label, {
...K(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -40622,8 +40622,8 @@ var Wme = /*#__PURE__*/ (0, F.createContext)(null), Gme = /*#__PURE__*/ (0, F.cr
})), g.children);
});
// node_modules/react-stately/dist/private/select/useSelectState.mjs
-function qme(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = iz(e), [i, a] = (0, F.useState)(null), o = (0, F.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+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, [
e.defaultValue,
e.defaultSelectedKey,
t
@@ -40639,12 +40639,12 @@ function qme(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = QR({
+ }, d = ZR({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, F.useMemo)(() => Jme(l), [l]),
+ selectedKeys: (0, F.useMemo)(() => Yme(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -40681,15 +40681,15 @@ function qme(e) {
setFocused: g
};
}
-function Jme(e) {
+function Yme(e) {
if (e !== void 0) return e === null ? [] : Array.isArray(e) ? e : [e];
}
// node_modules/react-aria-components/dist/private/Select.mjs
-function Yme(e) {
+function Xme(e) {
return e && e.__esModule ? e.default : e;
}
-var Nz = /*#__PURE__*/ (0, F.createContext)(null), Pz = /*#__PURE__*/ (0, F.createContext)(null), Xme = /*#__PURE__*/ ew(function(e, t) {
- [e, t] = TL(e, t, Nz);
+var Mz = /*#__PURE__*/ (0, F.createContext)(null), Nz = /*#__PURE__*/ (0, F.createContext)(null), Zme = /*#__PURE__*/ ew(function(e, t) {
+ [e, t] = wL(e, t, Mz);
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,
@@ -40704,24 +40704,24 @@ var Nz = /*#__PURE__*/ (0, F.createContext)(null), Pz = /*#__PURE__*/ (0, F.crea
i,
a
]);
- return /*#__PURE__*/ F.createElement(aw, { content: o }, (n) => /*#__PURE__*/ F.createElement(Qme, {
+ return /*#__PURE__*/ F.createElement(aw, { content: o }, (n) => /*#__PURE__*/ F.createElement($me, {
props: e,
collection: n,
selectRef: t
}));
-}), Zme = [
- LL,
- zL,
- UL
+}), Qme = [
+ IL,
+ RL,
+ HL
];
-function Qme({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = wL(GL) || {}, i = e.validationBehavior ?? r ?? "native", a = qme({
+function $me({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = CL(WL) || {}, i = e.validationBehavior ?? r ?? "native", a = Jme({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = OD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = EL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Dce({
- ...DL(e),
+ }), { isFocusVisible: o, focusProps: s } = OD({ within: !0 }), c = (0, F.useRef)(null), [l, u] = TL(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Dce({
+ ...EL(e),
label: u,
validationBehavior: i
}, a, c), y = (0, F.useMemo)(() => ({
@@ -40738,48 +40738,48 @@ function Qme({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = CL({
+ ]), b = SL({
...e,
values: y,
defaultClassName: "react-aria-Select"
}), x = Hw(e, { global: !0 });
delete x.id;
let S = (0, F.useRef)(null);
- return /*#__PURE__*/ F.createElement(SL, { values: [
- [Nz, e],
- [Pz, a],
- [Fz, p],
- [LL, {
+ return /*#__PURE__*/ F.createElement(xL, { values: [
+ [Mz, e],
+ [Nz, a],
+ [Pz, p],
+ [IL, {
...d,
ref: l,
elementType: "span"
}],
- [zL, {
+ [RL, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [Sz, a],
- [cz, {
+ [xz, a],
+ [sz, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: Zme
+ clearContexts: Qme
}],
- [tz, {
+ [ez, {
...m,
ref: S
}],
- [nz, a],
- [UL, { slots: {
+ [tz, a],
+ [HL, { slots: {
description: h,
errorMessage: g
} }],
- [WL, v]
- ] }, /*#__PURE__*/ F.createElement(kL.div, {
+ [UL, v]
+ ] }, /*#__PURE__*/ F.createElement(OL.div, {
...K(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -40794,9 +40794,9 @@ function Qme({ props: e, selectRef: t, collection: n }) {
autoComplete: e.autoComplete
})));
}
-for (var Fz = /*#__PURE__*/ (0, F.createContext)(null), $me = /*#__PURE__*/ ew(function(e, t) {
- [e, t] = TL(e, t, Fz);
- let n = (0, F.useContext)(Pz), { placeholder: r } = wL(Nz), i = n.selectedItems.map((e) => {
+for (var Pz = /*#__PURE__*/ (0, F.createContext)(null), ehe = /*#__PURE__*/ ew(function(e, t) {
+ [e, t] = wL(e, t, Pz);
+ let n = (0, F.useContext)(Nz), { placeholder: r } = CL(Mz), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -40823,7 +40823,7 @@ for (var Fz = /*#__PURE__*/ (0, F.createContext)(null), $me = /*#__PURE__*/ ew(f
a,
o,
i
- ]), u = Bw(Yme(PR), "react-aria-components"), d = CL({
+ ]), u = Bw(Xme(NR), "react-aria-components"), d = SL({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -40835,32 +40835,32 @@ for (var Fz = /*#__PURE__*/ (0, F.createContext)(null), $me = /*#__PURE__*/ ew(f
state: n
}
}), f = Hw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(kL.span, {
+ return /*#__PURE__*/ F.createElement(OL.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ F.createElement(UL.Provider, { value: void 0 }, d.children));
-}), ehe = /*#__PURE__*/ (0, F.createContext)(null), Iz = /*#__PURE__*/ (0, F.createContext)(null), the = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ F.createElement(HL.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) {
let { inputRef: n = null, ...r } = e;
- [e, t] = TL(r, t, ehe);
+ [e, t] = wL(r, t, the);
let i = YC((0, F.useMemo)(() => BC(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = tE(e), o = jce({
- ...DL(e),
+ ...EL(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ F.createElement(SL, { values: [[Iz, a], [Lz, {
+ return /*#__PURE__*/ F.createElement(xL, { values: [[Fz, a], [Iz, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ F.createElement(nhe, {
+ }]] }, /*#__PURE__*/ F.createElement(rhe, {
...e,
ref: t
}));
-}), Lz = /*#__PURE__*/ (0, F.createContext)(null), nhe = /*#__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)(Lz), { isFocused: f, isFocusVisible: p, focusProps: m } = OD(), h = a || o, g = (0, F.useContext)(Iz), { hoverProps: _, isHovered: v } = MD({
+}), 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 } = OD(), h = a || o, g = (0, F.useContext)(Fz), { hoverProps: _, isHovered: v } = MD({
...e,
isDisabled: h
- }), y = CL({
+ }), y = SL({
...e,
defaultClassName: u,
values: {
@@ -40876,7 +40876,7 @@ for (var Fz = /*#__PURE__*/ (0, F.createContext)(null), $me = /*#__PURE__*/ ew(f
state: g
}
}), b = Hw(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(kL.label, {
+ return delete b.id, delete b.onClick, /*#__PURE__*/ F.createElement(OL.label, {
...K(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -40893,7 +40893,7 @@ for (var Fz = /*#__PURE__*/ (0, F.createContext)(null), $me = /*#__PURE__*/ ew(f
...K(r, m),
ref: l
})), y.children);
-}), Rz = 10, zz = 5, Bz = class {
+}), Lz = 10, Rz = 5, zz = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -40903,7 +40903,7 @@ for (var Fz = /*#__PURE__*/ (0, F.createContext)(null), $me = /*#__PURE__*/ ew(f
}
resolveDropTarget(e, t, n, r) {
let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;
- if (Math.abs(a) > zz && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > Rz && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ 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") {
let t = this.state.collection.getKeyBefore(e.key);
for (; t != null;) {
let e = this.state.collection.getItem(t);
@@ -40982,11 +40982,11 @@ for (var Fz = /*#__PURE__*/ (0, F.createContext)(null), $me = /*#__PURE__*/ ew(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > zz && i) {
+ if (Math.abs(r - c.lastSwitchY) > Rz && 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 > Rz && a) {
+ if (l > Lz && 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;
}
@@ -41001,7 +41001,7 @@ for (var Fz = /*#__PURE__*/ (0, F.createContext)(null), $me = /*#__PURE__*/ ew(f
boundaryContext: null
};
}
-}, rhe = class {
+}, ihe = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -41071,8 +41071,8 @@ for (var Fz = /*#__PURE__*/ (0, F.createContext)(null), $me = /*#__PURE__*/ ew(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, Vz = "row-header-column-" + Math.random().toString(36).slice(2), Hz = "row-header-column-" + Math.random().toString(36).slice(2); Vz === Hz;) Hz = "row-header-column-" + Math.random().toString(36).slice(2);
-function Uz(e, t) {
+}, 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) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -41156,13 +41156,13 @@ function Uz(e, t) {
textValue: ""
}));
}
-var ihe = class extends rhe {
+var ahe = class extends ihe {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: Vz,
+ key: Bz,
value: null,
textValue: "",
level: 0,
@@ -41177,7 +41177,7 @@ var ihe = class extends rhe {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: Hz,
+ key: Vz,
value: null,
textValue: "",
level: 0,
@@ -41204,7 +41204,7 @@ var ihe = class extends rhe {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = Uz(s, a);
+ let l = Hz(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -41264,15 +41264,15 @@ var ihe = class extends rhe {
}
};
// node_modules/react-stately/dist/private/table/TableUtils.mjs
-function ahe(e) {
+function ohe(e) {
return e != null && (!isNaN(e) || String(e).match(/^(\d+)(?=%$)/) !== null);
}
-function ohe(e) {
+function she(e) {
if (!e || typeof e == "number") return 1;
let t = e.match(/^(.+)(?=fr$)/);
return t ? parseFloat(t[0]) : 1;
}
-function Wz(e, t) {
+function Uz(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");
@@ -41280,19 +41280,19 @@ function Wz(e, t) {
}
return e;
}
-function Gz(e, t) {
- return e == null ? 2 ** 53 - 1 : Wz(e, t);
+function Wz(e, t) {
+ return e == null ? 2 ** 53 - 1 : Uz(e, t);
}
-function Kz(e, t) {
- return e == null ? 0 : Wz(e, t);
+function Gz(e, t) {
+ return e == null ? 0 : Uz(e, t);
}
-function she(e, t, n, r, i) {
+function che(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;
- ahe(o) ? (l = Wz(o, e), s = !0) : (u = ohe(o), u <= 0 && (s = !0));
- let f = Kz(t.minWidth ?? i?.(a) ?? 0, e), p = Gz(t.maxWidth, e), m = Math.max(f, Math.min(l, p));
+ 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));
return s ? d = m : l > m && (s = !0, d = m), s || (c = !0), {
frozen: s,
baseSize: l,
@@ -41326,14 +41326,14 @@ function she(e, t, n, r, i) {
i === 0 || Math.sign(i) === Math.sign(e.violation) ? e.frozen = !0 : e.frozen || (c = !0);
});
}
- let u = che(l);
+ let u = lhe(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 che(e) {
+function lhe(e) {
let t = 0, n = 0, r = [];
return e.forEach(function(e) {
let i = e.targetMainSize, a = Math.round(i + t) - n;
@@ -41341,7 +41341,7 @@ function che(e) {
}), r;
}
// node_modules/react-stately/dist/private/table/TableColumnLayout.mjs
-var lhe = class {
+var uhe = 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);
}
@@ -41370,18 +41370,18 @@ var lhe = class {
}), o;
}
buildColumnWidths(e, t, n) {
- return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), she(e, t.columns.map((e) => ({
+ return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), che(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, Kz(a.props.minWidth ?? this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(i, Gz(a.props.maxWidth, e));
+ 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;
}
};
// node_modules/react-stately/dist/private/table/useTableColumnResizeState.mjs
-function uhe(e, t) {
- let { getDefaultWidth: n, getDefaultMinWidth: r, tableWidth: i = 0 } = e, [a, o] = (0, F.useState)(null), s = (0, F.useMemo)(() => new lhe({
+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({
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);
@@ -41432,8 +41432,8 @@ function uhe(e, t) {
]);
}
// node_modules/react-stately/dist/private/grid/useGridState.mjs
-function dhe(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || KR(e), i = (0, F.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+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;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
@@ -41444,7 +41444,7 @@ function dhe(e) {
}
a(e, r);
};
- let o = (0, F.useMemo)(() => new JR(t, r), [t, r]), s = (0, F.useRef)(null);
+ let o = (0, F.useMemo)(() => new qR(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;
@@ -41482,11 +41482,11 @@ function dhe(e) {
};
}
// node_modules/react-stately/dist/private/table/useTableState.mjs
-var fhe = {
+var phe = {
ascending: "descending",
descending: "ascending"
};
-function phe(e) {
+function mhe(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,
@@ -41497,7 +41497,7 @@ function phe(e) {
i,
r,
a
- ]), c = ZR(e, (0, F.useCallback)((e) => new ihe(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = dhe({
+ ]), c = XR(e, (0, F.useCallback)((e) => new ahe(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = fhe({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
@@ -41513,7 +41513,7 @@ function phe(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? fhe[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? phe[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -41526,7 +41526,7 @@ function phe(e) {
treeColumn: o
};
}
-function mhe(e, t) {
+function hhe(e, t) {
let n = (0, F.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
return {
...e,
@@ -41535,10 +41535,10 @@ function mhe(e, t) {
};
}
// node_modules/react-aria-components/dist/private/Table.mjs
-function hhe(e) {
+function ghe(e) {
return e && e.__esModule ? e.default : e;
}
-var ghe = class extends gS {
+var _he = class extends gS {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -41553,7 +41553,7 @@ var ghe = class extends gS {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new tB(-2);
+ return new eB(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -41579,7 +41579,7 @@ var ghe = class extends gS {
for (let t of this.getChildren(e.key)) n(t);
};
for (let e of this.getChildren(this.head.key)) n(e);
- if (this.headerRows = Uz(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 = 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");
}
get columnCount() {
return this.columns.length;
@@ -41660,9 +41660,9 @@ var ghe = class extends gS {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Zz(-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 Xz(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, qz = /*#__PURE__*/ (0, F.createContext)(null), _he = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+}, Kz = /*#__PURE__*/ (0, F.createContext)(null), vhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
let n = YC(t), r = (0, F.useRef)(null), i = (0, F.useRef)(null), [a, o] = (0, F.useState)(0);
RS(() => {
let e = r.current;
@@ -41681,7 +41681,7 @@ var ghe = class extends gS {
tableRef: r,
scrollRef: i,
tableWidth: a,
- useTableColumnResizeState: uhe,
+ useTableColumnResizeState: dhe,
onResizeStart: e.onResizeStart,
onResize: e.onResize,
onResizeEnd: e.onResizeEnd
@@ -41692,17 +41692,17 @@ var ghe = class extends gS {
e.onResize,
e.onResizeEnd
]);
- return /*#__PURE__*/ F.createElement(kL.div, {
+ return /*#__PURE__*/ F.createElement(OL.div, {
render: e.render,
...Hw(e, { global: !0 }),
ref: n,
className: e.className || "react-aria-ResizableTableContainer",
style: e.style,
onScroll: e.onScroll
- }, /*#__PURE__*/ F.createElement(qz.Provider, { value: s }, e.children));
-}), vhe = /*#__PURE__*/ (0, F.createContext)(null), Jz = /*#__PURE__*/ (0, F.createContext)(null), Yz = /*#__PURE__*/ (0, F.createContext)(null), yhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = TL(e, t, vhe);
- let n = KR(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, F.useMemo)(() => ({
+ }, /*#__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] = wL(e, t, yhe);
+ let n = GR(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,
@@ -41712,26 +41712,26 @@ var ghe = class extends gS {
i,
a,
o
- ]), c = /*#__PURE__*/ F.createElement(She.Provider, { value: s }, /*#__PURE__*/ F.createElement(fw, e));
+ ]), c = /*#__PURE__*/ F.createElement(Che.Provider, { value: s }, /*#__PURE__*/ F.createElement(fw, e));
return /*#__PURE__*/ F.createElement(aw, {
content: c,
- createCollection: () => new ghe()
- }, (r) => /*#__PURE__*/ F.createElement(xhe, {
+ createCollection: () => new _he()
+ }, (r) => /*#__PURE__*/ F.createElement(She, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), bhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(FL);
- return n ? /*#__PURE__*/ F.createElement(kL.div, {
+}), xhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(PL);
+ return n ? /*#__PURE__*/ F.createElement(OL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(kL.table, {
+ }) : /*#__PURE__*/ F.createElement(OL.table, {
...e,
ref: t
});
-}), Xz = {
+}), Yz = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -41741,26 +41741,26 @@ var ghe = class extends gS {
rtl: "ArrowRight"
}
};
-function xhe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = TL(e, t, AL);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(qz);
+function She({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
+ [e, t] = wL(e, t, kL);
+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, F.useContext)(Kz);
t = YC((0, F.useMemo)(() => BC(t, c?.tableRef), [t, c?.tableRef]));
let [l, u] = eE(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
r = (0, F.useMemo)(() => r.withExpandedKeys(l), [r, l]);
- let d = phe({
+ let d = mhe({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = mhe(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(FL), { dragAndDropHooks: _ } = e, { gridProps: v } = Ice({
+ }), f = hhe(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, F.useContext)(PL), { dragAndDropHooks: _ } = e, { gridProps: v } = Ice({
...s,
layoutDelegate: m,
isVirtualized: p
}, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;
(0, F.useRef)(b), (0, F.useRef)(x), (0, F.useEffect)(() => {}, [b, x]);
- let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = Pw(), [k] = (0, F.useState)(() => new Bz());
+ let S, C, w, T = !1, E = null, D = (0, F.useRef)(null), { direction: O } = Pw(), [k] = (0, F.useState)(() => new zz());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -41795,12 +41795,12 @@ function xhe({ 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 === Xz.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === Xz.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(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);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: A, isFocused: j, isFocusVisible: M } = OD(), ee = CL({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = OD(), ee = SL({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -41817,18 +41817,18 @@ function xhe({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
width: "min-content"
}));
let ne = Hw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(SL, { values: [
- [Jz, f],
- [Yz, P],
- [FR, {
+ return /*#__PURE__*/ F.createElement(xL, { values: [
+ [qz, f],
+ [Jz, P],
+ [PR, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [IR, { render: Mhe }],
- [AL, null],
- [jL, null]
- ] }, /*#__PURE__*/ F.createElement(fT, null, /*#__PURE__*/ F.createElement(bhe, {
+ [FR, { render: Nhe }],
+ [kL, null],
+ [AL, null]
+ ] }, /*#__PURE__*/ F.createElement(fT, null, /*#__PURE__*/ F.createElement(xhe, {
...K(ne, ee, v, A, w?.collectionProps),
style: te,
ref: t,
@@ -41838,31 +41838,31 @@ function xhe({ 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(BR, null, /*#__PURE__*/ F.createElement(g, {
+ }, /*#__PURE__*/ F.createElement(zR, null, /*#__PURE__*/ F.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: RR(y, _, C)
+ persistedKeys: LR(y, _, C)
})))), E);
}
-var She = /*#__PURE__*/ (0, F.createContext)(null), Zz = class extends fS {
+var Che = /*#__PURE__*/ (0, F.createContext)(null), Xz = class extends fS {
static {
this.type = "tableheader";
}
-}, Che = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(FL);
- return n ? /*#__PURE__*/ F.createElement(kL.div, {
+}, whe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(PL);
+ return n ? /*#__PURE__*/ F.createElement(OL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(kL.thead, {
+ }) : /*#__PURE__*/ F.createElement(OL.thead, {
...e,
ref: t
});
-}), Qz = /*#__PURE__*/ lw(Zz, (e, t) => {
- let n = (0, F.useContext)(Jz).collection, r = bS({
+}), Zz = /*#__PURE__*/ lw(Xz, (e, t) => {
+ let n = (0, F.useContext)(qz).collection, r = bS({
items: n.headerRows,
children: (0, F.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ F.createElement(The, { item: e });
+ case "headerrow": return /*#__PURE__*/ F.createElement(Ehe, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
@@ -41870,13 +41870,13 @@ var She = /*#__PURE__*/ (0, F.createContext)(null), Zz = class extends fS {
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = CL({
+ }), s = SL({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ F.createElement(Che, {
+ return /*#__PURE__*/ F.createElement(whe, {
...K(Hw(e, { global: !0 }), i, a),
...s,
ref: t,
@@ -41885,8 +41885,8 @@ var She = /*#__PURE__*/ (0, F.createContext)(null), Zz = class extends fS {
}, (e) => /*#__PURE__*/ F.createElement(fw, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), whe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(FL);
+}, e.children)), The = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(PL);
return n ? /*#__PURE__*/ F.createElement("div", {
...e,
ref: t
@@ -41895,41 +41895,41 @@ var She = /*#__PURE__*/ (0, F.createContext)(null), Zz = class extends fS {
ref: t
});
});
-function The({ item: e }) {
- let t = (0, F.useRef)(null), n = (0, F.useContext)(Jz), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(FL), { rowProps: a } = Hce({
+function Ehe({ item: e }) {
+ let t = (0, F.useRef)(null), n = (0, F.useContext)(qz), { isVirtualized: r, CollectionBranch: i } = (0, F.useContext)(PL), { rowProps: a } = Hce({
node: e,
isVirtualized: r
}, n, t), { checkboxProps: o } = Yce(n);
- return /*#__PURE__*/ F.createElement(whe, {
+ return /*#__PURE__*/ F.createElement(The, {
...a,
ref: t
- }, /*#__PURE__*/ F.createElement(SL, { values: [[KL, { slots: { selection: o } }], [qL, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
+ }, /*#__PURE__*/ F.createElement(xL, { values: [[GL, { slots: { selection: o } }], [KL, { slots: { selection: o } }]] }, /*#__PURE__*/ F.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var Ehe = class extends fS {
+var Dhe = class extends fS {
static {
this.type = "column";
}
-}, Dhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(FL);
- return n ? /*#__PURE__*/ F.createElement(kL.div, {
+}, Ohe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(PL);
+ return n ? /*#__PURE__*/ F.createElement(OL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(kL.th, {
+ }) : /*#__PURE__*/ F.createElement(OL.th, {
...e,
ref: t
});
-}), $z = /*#__PURE__*/ cw(Ehe, (e, t, n) => {
- let r = YC(t), i = (0, F.useContext)(Jz), { isVirtualized: a } = (0, F.useContext)(FL), { columnHeaderProps: o, isPressed: s } = zce({
+}), Qz = /*#__PURE__*/ cw(Dhe, (e, t, n) => {
+ let r = YC(t), i = (0, F.useContext)(qz), { isVirtualized: a } = (0, F.useContext)(PL), { columnHeaderProps: o, isPressed: s } = zce({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = OD(), d = (0, F.useContext)(Yz), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = OD(), d = (0, F.useContext)(Jz), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = MD({ isDisabled: !e.allowsSorting }), h = CL({
+ let { hoverProps: p, isHovered: m } = MD({ isDisabled: !e.allowsSorting }), h = SL({
...e,
id: void 0,
children: n.rendered,
@@ -41956,7 +41956,7 @@ var Ehe = class extends fS {
width: d.getColumnWidth(n.key)
});
let _ = Hw(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ F.createElement(Dhe, {
+ return delete _.id, /*#__PURE__*/ F.createElement(Ohe, {
...K(_, o, u, p),
...h,
style: g,
@@ -41968,14 +41968,14 @@ var Ehe = class extends fS {
"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(SL, { values: [[eB, {
+ }, /*#__PURE__*/ F.createElement(xL, { values: [[$z, {
column: n,
triggerRef: r
- }], [FL, NL]] }, h.children));
-}), eB = /*#__PURE__*/ (0, F.createContext)(null), Ohe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let n = (0, F.useContext)(Yz);
+ }], [PL, ML]] }, h.children));
+}), $z = /*#__PURE__*/ (0, F.createContext)(null), khe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let n = (0, F.useContext)(Jz);
if (!n) throw Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
- let r = Bw(hhe(PR), "react-aria-components"), { onResizeStart: i, onResize: a, onResizeEnd: o } = (0, F.useContext)(qz), { column: s, triggerRef: c } = (0, F.useContext)(eB), l = (0, F.useRef)(null), { resizerProps: u, inputProps: d, isResizing: f, isMouseResizing: p } = Vce({
+ let r = Bw(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 } = Vce({
column: s,
"aria-label": e["aria-label"] || r.format("tableResizer"),
onResizeStart: i,
@@ -41990,7 +41990,7 @@ var Ehe = class extends fS {
let e = window.getComputedStyle(C.current);
T(e.cursor);
}, [C, S]);
- let E = CL({
+ let E = SL({
...e,
defaultClassName: "react-aria-ColumnResizer",
values: {
@@ -42001,7 +42001,7 @@ var Ehe = class extends fS {
resizableDirection: S
}
}), D = Hw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(kL.div, {
+ return /*#__PURE__*/ F.createElement(OL.div, {
ref: C,
role: "presentation",
...K(D, E, u, _),
@@ -42024,24 +42024,24 @@ var Ehe = class extends fS {
},
"data-testid": "cursor-overlay"
}), document.body));
-}), tB = class extends pS {
+}), eB = class extends pS {
static {
this.type = "tablebody";
}
-}, khe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(FL);
- return n ? /*#__PURE__*/ F.createElement(kL.div, {
+}, Ahe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(PL);
+ return n ? /*#__PURE__*/ F.createElement(OL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(kL.tbody, {
+ }) : /*#__PURE__*/ F.createElement(OL.tbody, {
...e,
ref: t
});
-}), nB = /*#__PURE__*/ lw(tB, (e, t, n) => {
- let r = (0, F.useContext)(Jz), { isVirtualized: i } = (0, F.useContext)(FL), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(FL), { dragAndDropHooks: s, dropState: c } = (0, F.useContext)(FR), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), tB = /*#__PURE__*/ lw(eB, (e, t, n) => {
+ let r = (0, F.useContext)(qz), { isVirtualized: i } = (0, F.useContext)(PL), a = r.collection, { CollectionBranch: o } = (0, F.useContext)(PL), { 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 = {
isDropTarget: u,
isEmpty: d
- }, p = CL({
+ }, p = SL({
...e,
id: void 0,
children: void 0,
@@ -42050,25 +42050,25 @@ var Ehe = class extends fS {
}), 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(iB, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ F.createElement(rB, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ F.createElement(oB, {
+ }, /*#__PURE__*/ F.createElement(aB, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
let { rowGroupProps: g } = FA(), _ = Hw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(khe, {
+ return /*#__PURE__*/ F.createElement(Ahe, {
...K(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ F.createElement(Lhe, null), /*#__PURE__*/ F.createElement(o, {
+ }, l && /*#__PURE__*/ F.createElement(Rhe, null), /*#__PURE__*/ F.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: LR(s, c)
+ renderDropIndicator: IR(s, c)
}), m);
});
(class extends pS {
@@ -42076,7 +42076,7 @@ var Ehe = class extends fS {
this.type = "tablefooter";
}
});
-var rB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Ahe = class extends fS {
+var nB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), jhe = class extends fS {
static {
this.type = "item";
}
@@ -42088,17 +42088,17 @@ var rB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Ah
}
return null;
}
-}, iB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(FL);
- return n ? /*#__PURE__*/ F.createElement(kL.div, {
+}, rB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(PL);
+ return n ? /*#__PURE__*/ F.createElement(OL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(kL.tr, {
+ }) : /*#__PURE__*/ F.createElement(OL.tr, {
...e,
ref: t
});
-}), aB = /*#__PURE__*/ lw(Ahe, (e, t, n) => {
- let r = YC(t), i = (0, F.useContext)(Jz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(FR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(FL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Gce({
+}), iB = /*#__PURE__*/ lw(jhe, (e, t, n) => {
+ let r = YC(t), i = (0, F.useContext)(qz), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, F.useContext)(PR), { isVirtualized: c, CollectionBranch: l } = (0, F.useContext)(PL), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Gce({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
@@ -42122,7 +42122,7 @@ var rB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Ah
(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 = CL({
+ 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 = SL({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -42144,10 +42144,10 @@ var rB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Ah
level: n.level + 1
}
}), ee = Hw(e, { global: !0 });
- return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(iB, {
+ return delete ee.id, delete ee.onClick, /*#__PURE__*/ F.createElement(F.Fragment, null, C && !C.isHidden && /*#__PURE__*/ F.createElement(rB, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(oB, {
+ }, /*#__PURE__*/ F.createElement(aB, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -42156,7 +42156,7 @@ var rB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Ah
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ F.createElement(iB, {
+ }))), /*#__PURE__*/ F.createElement(rB, {
...K(ee, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -42172,17 +42172,17 @@ var rB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Ah
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(SL, { values: [
- [KL, { slots: {
- [xL]: {},
+ }, /*#__PURE__*/ F.createElement(xL, { values: [
+ [GL, { slots: {
+ [bL]: {},
selection: x
} }],
- [qL, { slots: {
- [xL]: {},
+ [KL, { slots: {
+ [bL]: {},
selection: x
} }],
- [zL, { slots: {
- [xL]: {},
+ [RL, { slots: {
+ [bL]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -42190,8 +42190,8 @@ var rB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Ah
style: { pointerEvents: "none" }
}
} }],
- [VR, { isSelected: p.isSelected }],
- [rB, { isFocusVisibleWithinRow: _ }]
+ [BR, { isSelected: p.isSelected }],
+ [nB, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ F.createElement(l, {
collection: i.collection,
parent: n
@@ -42204,21 +42204,21 @@ var rB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Ah
items: e.columns,
idScope: e.id
}, e.children);
-}), jhe = class extends fS {
+}), Mhe = class extends fS {
static {
this.type = "cell";
}
-}, oB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(FL);
- return n ? /*#__PURE__*/ F.createElement(kL.div, {
+}, aB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(PL);
+ return n ? /*#__PURE__*/ F.createElement(OL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(kL.td, {
+ }) : /*#__PURE__*/ F.createElement(OL.td, {
...e,
ref: t
});
-}), sB = /*#__PURE__*/ cw(jhe, (e, t, n) => {
- let r = YC(t), i = (0, F.useContext)(Jz), { dragState: a } = (0, F.useContext)(FR), { isVirtualized: o } = (0, F.useContext)(FL);
+}), oB = /*#__PURE__*/ cw(Mhe, (e, t, n) => {
+ let r = YC(t), i = (0, F.useContext)(qz), { dragState: a } = (0, F.useContext)(PR), { isVirtualized: o } = (0, F.useContext)(PL);
n.column = i.collection.columns[n.index];
let { gridCellProps: s, isPressed: c } = Lce({
node: n,
@@ -42226,7 +42226,7 @@ var rB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Ah
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = OD(), { hoverProps: f, isHovered: p } = MD({}), { isFocusVisibleWithinRow: m } = (0, F.useContext)(rB), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = CL({
+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = OD(), { hoverProps: f, isHovered: p } = MD({}), { 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 = SL({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -42246,7 +42246,7 @@ var rB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Ah
isTreeColumn: n.column.key === i.treeColumn
}
}), S = Hw(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ F.createElement(oB, {
+ return delete S.id, /*#__PURE__*/ F.createElement(aB, {
...K(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -42260,14 +42260,14 @@ var rB = /*#__PURE__*/ (0, F.createContext)({ isFocusVisibleWithinRow: !1 }), Ah
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ F.createElement(FL.Provider, { value: NL }, x.children));
+ }, /*#__PURE__*/ F.createElement(PL.Provider, { value: ML }, x.children));
});
-function Mhe(e, t) {
+function Nhe(e, t) {
t = YC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(FR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+ 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);
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(Ihe, {
+ return /*#__PURE__*/ F.createElement(Lhe, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -42276,40 +42276,40 @@ function Mhe(e, t) {
ref: t
});
}
-var Nhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(FL);
- return n ? /*#__PURE__*/ F.createElement(kL.div, {
+var Phe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(PL);
+ return n ? /*#__PURE__*/ F.createElement(OL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(kL.tr, {
+ }) : /*#__PURE__*/ F.createElement(OL.tr, {
...e,
ref: t
});
-}), Phe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, F.useContext)(FL);
- return n ? /*#__PURE__*/ F.createElement(kL.div, {
+}), Fhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, F.useContext)(PL);
+ return n ? /*#__PURE__*/ F.createElement(OL.div, {
...e,
ref: t
- }) : /*#__PURE__*/ F.createElement(kL.td, {
+ }) : /*#__PURE__*/ F.createElement(OL.td, {
...e,
ref: t
});
});
-function Fhe(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(Jz), { visuallyHiddenProps: c } = lE(), l = CL({
+function Ihe(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, F.useContext)(qz), { visuallyHiddenProps: c } = lE(), l = SL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(Nhe, {
+ return /*#__PURE__*/ F.createElement(Phe, {
...Hw(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ F.createElement(Phe, {
+ }, /*#__PURE__*/ F.createElement(Fhe, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -42320,14 +42320,14 @@ function Fhe(e, t) {
ref: i
}), l.children));
}
-var Ihe = /*#__PURE__*/ (0, F.forwardRef)(Fhe);
-function Lhe() {
- let e = (0, F.useContext)(Jz), { dragAndDropHooks: t, dropState: n } = (0, F.useContext)(FR), r = (0, F.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = lE();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(iB, {
+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 } = lE();
+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ F.createElement(rB, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ F.createElement(oB, {
+ }, /*#__PURE__*/ F.createElement(aB, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -42339,8 +42339,8 @@ function Lhe() {
})));
}
cw(mS, function(e, t, n) {
- let r = (0, F.useContext)(Jz), { isVirtualized: i } = (0, F.useContext)(FL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
- ez((0, F.useMemo)(() => ({
+ let r = (0, F.useContext)(qz), { isVirtualized: i } = (0, F.useContext)(PL), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, F.useRef)(null);
+ $R((0, F.useMemo)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -42350,7 +42350,7 @@ cw(mS, function(e, t, n) {
s,
r?.collection
]), u);
- let d = CL({
+ let d = SL({
...c,
id: void 0,
children: n.rendered,
@@ -42358,10 +42358,10 @@ cw(mS, 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(iB, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(rB, {
style: { height: 0 },
- inert: UR(!0)
- }, /*#__PURE__*/ F.createElement(oB, { style: {
+ inert: HR(!0)
+ }, /*#__PURE__*/ F.createElement(aB, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ F.createElement("div", {
@@ -42372,22 +42372,22 @@ cw(mS, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ F.createElement(iB, {
+ }))), a && d.children && /*#__PURE__*/ F.createElement(rB, {
...K(Hw(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ F.createElement(oB, {
+ }, /*#__PURE__*/ F.createElement(aB, {
role: "rowheader",
...p,
style: m
}, d.children)));
});
// node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function Rhe(e) {
- let [t, n] = eE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = QR({
+function zhe(e) {
+ let [t, n] = eE(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, F.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = ZR({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -42409,24 +42409,24 @@ function Rhe(e) {
};
}
// node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function zhe(e) {
- let t = Rhe({
+function Bhe(e) {
+ let t = zhe({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? cB(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? sB(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 = cB(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 = 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;
}), {
...t,
isDisabled: e.isDisabled || !1
};
}
-function cB(e, t) {
+function sB(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);
@@ -42435,20 +42435,20 @@ function cB(e, t) {
return n;
}
// node_modules/react-aria-components/dist/private/Tabs.mjs
-var lB = /*#__PURE__*/ (0, F.createContext)(null), uB = /*#__PURE__*/ (0, F.createContext)(null), Bhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = TL(e, t, lB);
+var cB = /*#__PURE__*/ (0, F.createContext)(null), lB = /*#__PURE__*/ (0, F.createContext)(null), Vhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = wL(e, t, cB);
let { children: n, orientation: r = "horizontal" } = e;
return n = (0, F.useMemo)(() => typeof n == "function" ? n({
orientation: r,
defaultChildren: null
- }) : n, [n, r]), /*#__PURE__*/ F.createElement(aw, { content: n }, (n) => /*#__PURE__*/ F.createElement(Vhe, {
+ }) : n, [n, r]), /*#__PURE__*/ F.createElement(aw, { content: n }, (n) => /*#__PURE__*/ F.createElement(Hhe, {
props: e,
collection: n,
tabsRef: t
}));
});
-function Vhe({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = zhe({
+function Hhe({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = Bhe({
...e,
collection: n,
children: void 0
@@ -42460,12 +42460,12 @@ function Vhe({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = CL({
+ ]), l = SL({
...e,
defaultClassName: "react-aria-Tabs",
values: c
}), u = Hw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(kL.div, {
+ return /*#__PURE__*/ F.createElement(OL.div, {
...K(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -42473,20 +42473,20 @@ function Vhe({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ F.createElement(SL, { values: [[lB, e], [uB, i]] }, l.children));
+ }, /*#__PURE__*/ F.createElement(xL, { values: [[cB, e], [lB, i]] }, l.children));
}
-var dB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return (0, F.useContext)(uB) ? /*#__PURE__*/ F.createElement(Hhe, {
+var uB = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return (0, F.useContext)(lB) ? /*#__PURE__*/ F.createElement(Uhe, {
props: e,
forwardedRef: t
}) : /*#__PURE__*/ F.createElement(fw, e);
});
-function Hhe({ props: e, forwardedRef: t }) {
- let n = (0, F.useContext)(uB), { CollectionRoot: r } = (0, F.useContext)(FL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = wL(lB), o = YC(t), { tabListProps: s } = Qce({
+function Uhe({ props: e, forwardedRef: t }) {
+ let n = (0, F.useContext)(lB), { CollectionRoot: r } = (0, F.useContext)(PL), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = CL(cB), o = YC(t), { tabListProps: s } = Qce({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = CL({
+ }, n, o), c = SL({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -42495,21 +42495,21 @@ function Hhe({ props: e, forwardedRef: t }) {
state: n
}
}), l = Hw(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ F.createElement(kL.div, {
+ return delete l.id, /*#__PURE__*/ F.createElement(OL.div, {
...K(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ F.createElement(BR, null, /*#__PURE__*/ F.createElement(r, {
+ }, /*#__PURE__*/ F.createElement(zR, null, /*#__PURE__*/ F.createElement(r, {
collection: n.collection,
- persistedKeys: IL(n.selectionManager.focusedKey)
+ persistedKeys: FL(n.selectionManager.focusedKey)
})));
}
-var Uhe = /*#__PURE__*/ cw(class extends fS {
+var Whe = /*#__PURE__*/ cw(class extends fS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(uB), i = YC(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Xce({
+ let r = (0, F.useContext)(lB), i = YC(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Xce({
key: n.key,
...e
}, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = OD(), { hoverProps: f, isHovered: p } = MD({
@@ -42517,7 +42517,7 @@ var Uhe = /*#__PURE__*/ cw(class extends fS {
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = CL({
+ }), m = SL({
...e,
id: void 0,
children: n.rendered,
@@ -42530,7 +42530,7 @@ var Uhe = /*#__PURE__*/ cw(class extends fS {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? kL.a : kL.div, g = Hw(e, { global: !0 });
+ }), h = n.props.href ? OL.a : OL.div, g = Hw(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ F.createElement(h, {
...K(g, m, a, l, f),
ref: i,
@@ -42540,26 +42540,26 @@ var Uhe = /*#__PURE__*/ cw(class extends fS {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ F.createElement(VR.Provider, { value: { isSelected: o } }, m.children));
-}), Whe = /*#__PURE__*/ ew(function(e, t) {
- let n = (0, F.useContext)(uB), r = YC(t), i = n.selectedKey === e.id, [a, o] = (0, F.useState)(n.selectedKey == null ? null : i);
+ }, /*#__PURE__*/ F.createElement(BR.Provider, { value: { isSelected: o } }, m.children));
+}), Ghe = /*#__PURE__*/ ew(function(e, t) {
+ let n = (0, F.useContext)(lB), r = YC(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 = oz(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(Ghe, {
+ let s = az(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ F.createElement(Khe, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function Ghe(e) {
- let t = (0, F.useContext)(uB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = $ce(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = OD(), d = t.selectedKey === e.id, f = az(r) && !i, p = CL({
+function Khe(e) {
+ let t = (0, F.useContext)(lB), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = $ce(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = OD(), d = t.selectedKey === e.id, f = iz(r) && !i, p = SL({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: UR(!d),
+ isInert: HR(!d),
isEntering: f,
isExiting: a,
state: t
@@ -42567,27 +42567,27 @@ function Ghe(e) {
}), m = Hw(o, { global: !0 });
delete m.id;
let h = d ? K(m, s, c, p) : K(m, p);
- return /*#__PURE__*/ F.createElement(kL.div, {
+ return /*#__PURE__*/ F.createElement(OL.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: UR(!d || e.inert),
+ inert: HR(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ F.createElement(SL, { values: [[lB, null], [uB, null]] }, /*#__PURE__*/ F.createElement(FL.Provider, { value: NL }, p.children)));
+ }, /*#__PURE__*/ F.createElement(xL, { values: [[cB, null], [lB, null]] }, /*#__PURE__*/ F.createElement(PL.Provider, { value: ML }, p.children)));
}
// node_modules/react-aria-components/dist/private/TextArea.mjs
-var fB = /*#__PURE__*/ (0, F.createContext)({}), Khe = (e) => {
+var dB = /*#__PURE__*/ (0, F.createContext)({}), qhe = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, qhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- [e, t] = TL(e, t, fB);
+}, Jhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ [e, t] = wL(e, t, dB);
let { hoverProps: n, isHovered: r } = MD(e), { isFocused: i, isFocusVisible: a, focusProps: o } = OD({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = CL({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = SL({
...e,
values: {
isHovered: r,
@@ -42598,8 +42598,8 @@ var fB = /*#__PURE__*/ (0, F.createContext)({}), Khe = (e) => {
},
defaultClassName: "react-aria-TextArea"
});
- return /*#__PURE__*/ F.createElement(kL.textarea, {
- ...K(Khe(e), o, n),
+ return /*#__PURE__*/ F.createElement(OL.textarea, {
+ ...K(qhe(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -42608,18 +42608,18 @@ var fB = /*#__PURE__*/ (0, F.createContext)({}), Khe = (e) => {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), Jhe = /*#__PURE__*/ (0, F.createContext)(null), Yhe = /*#__PURE__*/ ew(function(e, t) {
- [e, t] = TL(e, t, Jhe);
- let { validationBehavior: n } = wL(GL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
- [e, i] = TL(e, i, jL);
- let [a, o] = EL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = bse({
- ...DL(e),
+}), Yhe = /*#__PURE__*/ (0, F.createContext)(null), Xhe = /*#__PURE__*/ ew(function(e, t) {
+ [e, t] = wL(e, t, Yhe);
+ let { validationBehavior: n } = CL(WL) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, F.useRef)(null);
+ [e, i] = wL(e, i, AL);
+ let [a, o] = TL(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, F.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = bse({
+ ...EL(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 = CL({
+ }, [i]), h = SL({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -42629,7 +42629,7 @@ var fB = /*#__PURE__*/ (0, F.createContext)({}), Khe = (e) => {
},
defaultClassName: "react-aria-TextField"
}), g = Hw(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ F.createElement(kL.div, {
+ return delete g.id, /*#__PURE__*/ F.createElement(OL.div, {
...g,
...h,
ref: t,
@@ -42638,31 +42638,31 @@ var fB = /*#__PURE__*/ (0, F.createContext)({}), Khe = (e) => {
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ F.createElement(SL, { values: [
- [LL, {
+ }, /*#__PURE__*/ F.createElement(xL, { values: [
+ [IL, {
...l,
ref: a
}],
- [ZL, {
+ [XL, {
...u,
ref: m
}],
- [fB, {
+ [dB, {
...u,
ref: m
}],
- [YL, {
+ [JL, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [UL, { slots: {
+ [HL, { slots: {
description: d,
errorMessage: f
} }],
- [WL, p]
+ [UL, p]
] }, h.children));
-}), Xhe = class e extends gS {
+}), Zhe = class e extends gS {
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;
@@ -42734,16 +42734,16 @@ var fB = /*#__PURE__*/ (0, F.createContext)({}), Khe = (e) => {
constructor(...e) {
super(...e), this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Zhe = /*#__PURE__*/ (0, F.createContext)(null), pB = /*#__PURE__*/ (0, F.createContext)(null), Qhe = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
- return [e, t] = TL(e, t, Zhe), /*#__PURE__*/ F.createElement(aw, {
+}, Qhe = /*#__PURE__*/ (0, F.createContext)(null), fB = /*#__PURE__*/ (0, F.createContext)(null), $he = /*#__PURE__*/ (0, F.forwardRef)(function(e, t) {
+ return [e, t] = wL(e, t, Qhe), /*#__PURE__*/ F.createElement(aw, {
content: /*#__PURE__*/ F.createElement(fw, e),
- createCollection: () => new Xhe()
- }, (n) => /*#__PURE__*/ F.createElement($he, {
+ createCollection: () => new Zhe()
+ }, (n) => /*#__PURE__*/ F.createElement(ege, {
props: e,
collection: n,
treeRef: t
}));
-}), mB = {
+}), pB = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -42753,7 +42753,7 @@ var fB = /*#__PURE__*/ (0, F.createContext)({}), Khe = (e) => {
rtl: "ArrowRight"
}
};
-function $he({ props: e, collection: t, treeRef: n }) {
+function ege({ props: e, collection: t, treeRef: n }) {
let { dragAndDropHooks: r } = e, { direction: i } = Pw(), a = xD({
usage: "search",
sensitivity: "base"
@@ -42761,9 +42761,9 @@ function $he({ props: e, collection: t, treeRef: n }) {
(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)(FL), [y, b] = eE(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, F.useState)(t), [C, w] = (0, F.useState)(y), [T, E] = (0, F.useState)(() => t.withExpandedKeys(C, y));
- oge(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
- let D = fz({
+ let { selectionMode: u = "none", expandedKeys: d, defaultExpandedKeys: f, onExpandedChange: p, disabledBehavior: m = "all" } = e, { CollectionRoot: h, isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v } = (0, F.useContext)(PL), [y, b] = eE(d ? new Set(d) : void 0, f ? new Set(f) : /* @__PURE__ */ new Set(), p), [x, S] = (0, F.useState)(t), [C, w] = (0, F.useState)(y), [T, E] = (0, F.useState)(() => t.withExpandedKeys(C, y));
+ sge(C, y) && t === x || (E(t.withExpandedKeys(C, y)), S(t), w(y));
+ let D = dz({
...e,
selectionMode: u,
expandedKeys: y,
@@ -42785,7 +42785,7 @@ function $he({ 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 Bz());
+ let [te] = (0, F.useState)(() => new zz());
if (s && r) {
A = r.useDroppableCollectionState({
collection: D.collection,
@@ -42815,7 +42815,7 @@ function $he({ 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 === mB.expand[i] && n?.hasChildNodes && !D.expandedKeys.has(t.key) || e.key === mB.collapse[i] && n?.hasChildNodes && D.expandedKeys.has(t.key)) && D.toggleKey(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);
}
}
}, A, n), M = A.isDropTarget({ type: "root" });
@@ -42828,7 +42828,7 @@ function $he({ props: e, collection: t, treeRef: n }) {
selectionMode: D.selectionManager.selectionMode,
allowsDragging: !!P,
state: D
- }, ae = CL({
+ }, ae = SL({
...e,
children: void 0,
defaultClassName: "react-aria-Tree",
@@ -42846,7 +42846,7 @@ function $he({ props: e, collection: t, treeRef: n }) {
}, r));
}
let se = Hw(e, { global: !0 });
- return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(fT, null, /*#__PURE__*/ F.createElement(kL.div, {
+ return /*#__PURE__*/ F.createElement(F.Fragment, null, /*#__PURE__*/ F.createElement(fT, null, /*#__PURE__*/ F.createElement(OL.div, {
...K(se, ae, O, ne, j?.collectionProps),
ref: n,
slot: e.slot || void 0,
@@ -42856,39 +42856,39 @@ function $he({ 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(SL, { values: [
- [pB, D],
- [FR, {
+ }, /*#__PURE__*/ F.createElement(xL, { values: [
+ [fB, D],
+ [PR, {
dragAndDropHooks: r,
dragState: k,
dropState: A
}],
- [IR, { render: nge }]
- ] }, s && /*#__PURE__*/ F.createElement(age, null), /*#__PURE__*/ F.createElement(BR, null, /*#__PURE__*/ F.createElement(h, {
+ [FR, { render: rge }]
+ ] }, s && /*#__PURE__*/ F.createElement(oge, null), /*#__PURE__*/ F.createElement(zR, null, /*#__PURE__*/ F.createElement(h, {
collection: D.collection,
- persistedKeys: RR(D.selectionManager, r, A),
+ persistedKeys: LR(D.selectionManager, r, A),
scrollRef: n,
- renderDropIndicator: LR(r, A)
+ renderDropIndicator: IR(r, A)
}))), oe)), ee);
}
-var ege = /*#__PURE__*/ cw(class extends fS {
+var tge = /*#__PURE__*/ cw(class extends fS {
static {
this.type = "content";
}
}, function(e) {
- let t = (0, F.useContext)(hB), n = CL({
+ let t = (0, F.useContext)(mB), n = SL({
children: e.children,
values: t
});
- return /*#__PURE__*/ F.createElement(FL.Provider, { value: NL }, n.children);
-}), hB = /*#__PURE__*/ (0, F.createContext)(null), tge = /*#__PURE__*/ lw(class extends fS {
+ return /*#__PURE__*/ F.createElement(PL.Provider, { value: ML }, n.children);
+}), mB = /*#__PURE__*/ (0, F.createContext)(null), nge = /*#__PURE__*/ lw(class extends fS {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, F.useContext)(pB);
+ let r = (0, F.useContext)(fB);
t = YC(t);
- let { dragAndDropHooks: i, dragState: a, dropState: o } = (0, F.useContext)(FR), s = a && !(a.isDisabled || a.selectionManager.isDisabled(n.key)), { rowProps: c, gridCellProps: l, expandButtonProps: u, descriptionProps: d, ...f } = yj({
+ 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 } = yj({
node: n,
shouldSelectOnPressUp: !!a,
focusMode: e.focusMode,
@@ -42942,7 +42942,7 @@ var ege = /*#__PURE__*/ cw(class extends fS {
A,
M,
j
- ]), N = CL({
+ ]), N = SL({
...e,
id: void 0,
children: n.rendered,
@@ -42992,7 +42992,7 @@ var ege = /*#__PURE__*/ cw(class extends fS {
"aria-labelledby": `${ne} ${c.id}`,
tabIndex: -1,
ref: D
- }))), /*#__PURE__*/ F.createElement(kL.div, {
+ }))), /*#__PURE__*/ F.createElement(OL.div, {
...K(re, c, y, g, x, C?.dragProps),
...N,
ref: t,
@@ -43012,17 +43012,17 @@ var ege = /*#__PURE__*/ cw(class extends fS {
}, /*#__PURE__*/ F.createElement("div", {
...l,
style: { display: "contents" }
- }, /*#__PURE__*/ F.createElement(SL, { values: [
- [KL, { slots: {
- [xL]: {},
+ }, /*#__PURE__*/ F.createElement(xL, { values: [
+ [GL, { slots: {
+ [bL]: {},
selection: S
} }],
- [qL, { slots: {
- [xL]: {},
+ [KL, { slots: {
+ [bL]: {},
selection: S
} }],
- [zL, { slots: {
- [xL]: {},
+ [RL, { slots: {
+ [bL]: {},
chevron: {
...u,
ref: T
@@ -43033,13 +43033,13 @@ var ege = /*#__PURE__*/ cw(class extends fS {
style: { pointerEvents: "none" }
}
} }],
- [hB, { ...ee }],
- [VR, { isSelected: f.isSelected }]
+ [mB, { ...ee }],
+ [BR, { isSelected: f.isSelected }]
] }, P))));
});
cw(mS, function(e, t, n) {
- let { isVirtualized: r } = (0, F.useContext)(FL), i = (0, F.useContext)(pB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
- ez((0, F.useMemo)(() => ({
+ let { isVirtualized: r } = (0, F.useContext)(PL), i = (0, F.useContext)(fB), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = (0, F.useRef)(null);
+ $R((0, F.useMemo)(() => ({
onLoadMore: o,
collection: i?.collection,
sentinelRef: l,
@@ -43052,7 +43052,7 @@ cw(mS, function(e, t, n) {
let { rowProps: u, gridCellProps: d } = yj({ node: n }, i, t), f = u["aria-level"] || 1, p = {
role: "row",
"aria-level": u["aria-level"]
- }, m = CL({
+ }, m = SL({
...c,
id: void 0,
children: n.rendered,
@@ -43065,7 +43065,7 @@ cw(mS, function(e, t, n) {
width: 0,
height: 0
},
- inert: UR(!0)
+ inert: HR(!0)
}, /*#__PURE__*/ F.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: l,
@@ -43074,7 +43074,7 @@ cw(mS, function(e, t, n) {
height: 1,
width: 1
}
- })), a && m.children && /*#__PURE__*/ F.createElement(kL.div, {
+ })), a && m.children && /*#__PURE__*/ F.createElement(OL.div, {
ref: t,
...K(Hw(e), p),
...m,
@@ -43084,12 +43084,12 @@ cw(mS, function(e, t, n) {
style: h
}, m.children)));
});
-function nge(e, t) {
+function rge(e, t) {
t = YC(t);
- let { dragAndDropHooks: n, dropState: r } = (0, F.useContext)(FR), i = (0, F.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+ 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);
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(ige, {
+ return /*#__PURE__*/ F.createElement(age, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -43098,8 +43098,8 @@ function nge(e, t) {
level: c
});
}
-function rge(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = lE(), c = CL({
+function ige(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, { visuallyHiddenProps: s } = lE(), c = SL({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: {
@@ -43108,7 +43108,7 @@ function rge(e, t) {
},
values: { isDropTarget: r }
});
- return /*#__PURE__*/ F.createElement(kL.div, {
+ return /*#__PURE__*/ F.createElement(OL.div, {
...c,
role: "row",
"aria-level": a,
@@ -43121,9 +43121,9 @@ function rge(e, t) {
ref: i
}), c.children));
}
-var ige = /*#__PURE__*/ (0, F.forwardRef)(rge);
-function age() {
- let { dragAndDropHooks: e, dropState: t } = (0, F.useContext)(FR), n = (0, F.useRef)(null), { dropIndicatorProps: r } = e.useDropIndicator({ target: { type: "root" } }, t, n), i = t.isDropTarget({ type: "root" }), { visuallyHiddenProps: a } = lE();
+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 } = lE();
return !i && r["aria-hidden"] ? null : /*#__PURE__*/ F.createElement("div", {
role: "row",
"aria-hidden": r["aria-hidden"],
@@ -43135,13 +43135,13 @@ function age() {
ref: n
})));
}
-function oge(e, t) {
+function sge(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 sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+var 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,
@@ -43149,7 +43149,7 @@ var sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), cge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), 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,
@@ -43157,7 +43157,7 @@ var sge = ({ 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" })), lge = ({ 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" })), 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,
@@ -43165,7 +43165,7 @@ var sge = ({ 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" })), uge = ({ 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" })), 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,
@@ -43173,7 +43173,7 @@ var sge = ({ 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" })), gB = ({ 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" })), 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,
@@ -43181,7 +43181,7 @@ var sge = ({ 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" })), _B = ({ 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" })), 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,
@@ -43189,7 +43189,7 @@ var sge = ({ 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" })), vB = ({ 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" })), _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,
@@ -43197,7 +43197,7 @@ var sge = ({ 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" })), dge = ({ 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" })), 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,
@@ -43205,7 +43205,7 @@ var sge = ({ 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" })), yB = ({ 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" })), 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,
@@ -43213,7 +43213,7 @@ var sge = ({ 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" })), bB = ({ 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" })), 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,
@@ -43221,7 +43221,7 @@ var sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M3 12H5V21H3V12ZM19 8H21V21H19V8ZM11 2H13V21H11V2Z" })), xB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M3 12H5V21H3V12ZM19 8H21V21H19V8ZM11 2H13V21H11V2Z" })), 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,
@@ -43229,7 +43229,7 @@ var sge = ({ 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" })), fge = ({ 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" })), 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,
@@ -43237,7 +43237,7 @@ var sge = ({ 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" })), pge = ({ 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" })), 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,
@@ -43245,7 +43245,7 @@ var sge = ({ 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" })), mge = ({ 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" })), 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,
@@ -43253,7 +43253,7 @@ var sge = ({ 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" })), hge = ({ 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" })), 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,
@@ -43261,7 +43261,7 @@ var sge = ({ 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" })), gge = ({ 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" })), _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,
@@ -43269,7 +43269,7 @@ var sge = ({ 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" })), _ge = ({ 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" })), 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,
@@ -43277,7 +43277,7 @@ var sge = ({ 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" })), SB = ({ 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" })), 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,
@@ -43285,7 +43285,7 @@ var sge = ({ 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" })), CB = ({ 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" })), 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,
@@ -43293,7 +43293,7 @@ var sge = ({ 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" })), vge = ({ 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" })), 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,
@@ -43301,7 +43301,7 @@ var sge = ({ 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" })), wB = ({ 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" })), 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,
@@ -43309,7 +43309,7 @@ var sge = ({ 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" })), yge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 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", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43317,7 +43317,7 @@ var sge = ({ 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" })), 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 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", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43325,7 +43325,7 @@ var sge = ({ 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" })), TB = ({ 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" })), 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,
@@ -43333,7 +43333,7 @@ var sge = ({ 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" })), xge = ({ 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" })), 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,
@@ -43341,7 +43341,7 @@ var sge = ({ 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" })), Sge = ({ 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" })), 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,
@@ -43349,7 +43349,7 @@ var sge = ({ 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" })), Cge = ({ 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" })), 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,
@@ -43357,7 +43357,7 @@ var sge = ({ 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" })), EB = ({ 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" })), 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,
@@ -43365,7 +43365,7 @@ var sge = ({ 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" })), wge = ({ 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" })), 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,
@@ -43373,7 +43373,7 @@ var sge = ({ 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" })), DB = ({ 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" })), 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,
@@ -43381,7 +43381,7 @@ var sge = ({ 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" })), OB = ({ 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" })), 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,
@@ -43389,7 +43389,7 @@ var sge = ({ 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" })), Tge = ({ 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" })), 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,
@@ -43397,7 +43397,7 @@ var sge = ({ 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" })), Ege = ({ 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" })), 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,
@@ -43405,7 +43405,7 @@ var sge = ({ 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" })), Dge = ({ 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" })), 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,
@@ -43413,7 +43413,7 @@ var sge = ({ 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" })), Oge = ({ 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" })), 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,
@@ -43421,7 +43421,7 @@ var sge = ({ 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" })), kge = ({ 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" })), 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,
@@ -43429,7 +43429,7 @@ var sge = ({ 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" })), kB = ({ 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" })), 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,
@@ -43437,7 +43437,7 @@ var sge = ({ 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" })), Age = ({ 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" })), 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,
@@ -43445,7 +43445,7 @@ var sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), AB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), 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,
@@ -43453,7 +43453,7 @@ var sge = ({ 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" })), jB = ({ 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" })), 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,
@@ -43461,7 +43461,7 @@ var sge = ({ 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" })), MB = ({ 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" })), 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,
@@ -43469,7 +43469,7 @@ var sge = ({ 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" })), jge = ({ 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" })), 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,
@@ -43477,7 +43477,7 @@ var sge = ({ 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" })), NB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12.4142 5H21C21.5523 5 22 5.44772 22 6V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H10.4142L12.4142 5ZM4 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", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43485,7 +43485,7 @@ var sge = ({ 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" })), PB = ({ 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" })), 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,
@@ -43493,7 +43493,7 @@ var sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), Mge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), 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,
@@ -43501,7 +43501,7 @@ var sge = ({ 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" })), Nge = ({ 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" })), 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,
@@ -43509,7 +43509,7 @@ var sge = ({ 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" })), Pge = ({ 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" })), 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,
@@ -43517,7 +43517,7 @@ var sge = ({ 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" })), FB = ({ 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" })), 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,
@@ -43525,7 +43525,7 @@ var sge = ({ 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" })), Fge = ({ 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" })), 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,
@@ -43533,7 +43533,7 @@ var sge = ({ 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" })), Ige = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 11V17H13V11H11ZM11 7V9H13V7H11Z" })), 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,
@@ -43541,7 +43541,7 @@ var sge = ({ 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" })), Lge = ({ 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" })), 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,
@@ -43549,7 +43549,7 @@ var sge = ({ 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" })), IB = ({ 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" })), 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,
@@ -43557,7 +43557,7 @@ var sge = ({ 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" })), Rge = ({ 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" })), 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,
@@ -43565,7 +43565,7 @@ var sge = ({ 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" })), zge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), Bge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43573,7 +43573,7 @@ var sge = ({ 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" })), Bge = ({ 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" })), 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,
@@ -43581,7 +43581,7 @@ var sge = ({ 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" })), LB = ({ 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" })), 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,
@@ -43589,7 +43589,7 @@ var sge = ({ 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" })), RB = ({ 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" })), 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,
@@ -43597,7 +43597,7 @@ var sge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F
fill: e,
...r,
className: "remixicon " + (n || "")
-}, F.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), zB = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })), 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,
@@ -43605,7 +43605,7 @@ var sge = ({ 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" })), BB = ({ 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" })), 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,
@@ -43613,7 +43613,7 @@ var sge = ({ 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" })), VB = ({ 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" })), 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,
@@ -43621,7 +43621,7 @@ var sge = ({ 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" })), Vge = ({ 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" })), 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,
@@ -43629,7 +43629,7 @@ var sge = ({ 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" })), HB = ({ 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" })), 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,
@@ -43637,7 +43637,7 @@ var sge = ({ 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" })), Hge = ({ 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" })), 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,
@@ -43645,7 +43645,7 @@ var sge = ({ 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" })), Uge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
+}, F.createElement("path", { d: "M4.99958 12.9999C4.99958 7.91198 7.90222 3.5636 11.9996 1.81799C16.0969 3.5636 18.9996 7.91198 18.9996 12.9999C18.9996 13.8229 18.9236 14.6264 18.779 15.4027L20.7194 17.2353C20.8845 17.3913 20.9238 17.6389 20.815 17.8383L18.3196 22.4133C18.1873 22.6557 17.8836 22.7451 17.6412 22.6128C17.5993 22.59 17.5608 22.5612 17.5271 22.5274L15.2925 20.2928C15.1049 20.1053 14.8506 19.9999 14.5854 19.9999H9.41379C9.14857 19.9999 8.89422 20.1053 8.70668 20.2928L6.47209 22.5274C6.27683 22.7227 5.96025 22.7227 5.76498 22.5274C5.73122 22.4937 5.70246 22.4552 5.67959 22.4133L3.18412 17.8383C3.07537 17.6389 3.11464 17.3913 3.27975 17.2353L5.22014 15.4027C5.07551 14.6264 4.99958 13.8229 4.99958 12.9999ZM6.47542 19.6957L7.29247 18.8786C7.85508 18.316 8.61814 17.9999 9.41379 17.9999H14.5854C15.381 17.9999 16.1441 18.316 16.7067 18.8786L17.5237 19.6957L18.5056 17.8955L17.4058 16.8568C16.9117 16.3901 16.6884 15.7045 16.8128 15.0364C16.9366 14.3722 16.9996 13.6911 16.9996 12.9999C16.9996 9.13037 15.0045 5.69965 11.9996 4.04033C8.99462 5.69965 6.99958 9.13037 6.99958 12.9999C6.99958 13.6911 7.06255 14.3722 7.18631 15.0364C7.31078 15.7045 7.08746 16.3901 6.59338 16.8568L5.49353 17.8955L6.47542 19.6957ZM11.9996 12.9999C10.895 12.9999 9.99958 12.1045 9.99958 10.9999C9.99958 9.89537 10.895 8.99994 11.9996 8.99994C13.1041 8.99994 13.9996 9.89537 13.9996 10.9999C13.9996 12.1045 13.1041 12.9999 11.9996 12.9999Z" })), Wge = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => F.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -43653,7 +43653,7 @@ var sge = ({ 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" })), UB = ({ 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" })), 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,
@@ -43661,7 +43661,7 @@ var sge = ({ 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" })), WB = ({ 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" })), 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,
@@ -43669,7 +43669,7 @@ var sge = ({ 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" })), GB = ({ 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" })), 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,
@@ -43677,7 +43677,7 @@ var sge = ({ 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" })), Wge = ({ 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" })), 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,
@@ -43685,7 +43685,7 @@ var sge = ({ 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" })), KB = ({ 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" })), 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,
@@ -43693,7 +43693,7 @@ var sge = ({ 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" })), Gge = ({ 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" })), 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,
@@ -43701,7 +43701,7 @@ var sge = ({ 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" })), qB = ({ 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" })), 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,
@@ -43709,7 +43709,7 @@ var sge = ({ 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" })), Kge = ({ 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" })), 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,
@@ -43717,7 +43717,7 @@ var sge = ({ 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" })), qge = ({ 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" })), 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,
@@ -43725,7 +43725,7 @@ var sge = ({ 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" })), Jge = ({ 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" })), 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,
@@ -43733,7 +43733,7 @@ var sge = ({ 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" })), Yge = ({ 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" })), 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,
@@ -43741,7 +43741,7 @@ var sge = ({ 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" })), Xge = ({ 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" })), 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,
@@ -43749,7 +43749,7 @@ var sge = ({ 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" })), JB = ({ 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" })), 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,
@@ -43757,7 +43757,7 @@ var sge = ({ 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" })), Zge = ({ 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" })), 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,
@@ -43765,7 +43765,7 @@ var sge = ({ 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" })), YB = ({ 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" })), 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,
@@ -43773,7 +43773,7 @@ var sge = ({ 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" })), XB = ({ 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" })), 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,
@@ -43781,7 +43781,7 @@ var sge = ({ 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" })), ZB = ({ 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" })), 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,
@@ -43789,7 +43789,7 @@ var sge = ({ 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" })), Qge = ({ 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" })), $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,
@@ -43797,7 +43797,7 @@ var sge = ({ 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" })), $ge = ({ 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" })), 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,
@@ -43805,7 +43805,7 @@ var sge = ({ 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" })), QB = ({ 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" })), 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,
@@ -43813,7 +43813,7 @@ var sge = ({ 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" })), e_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" })), 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,
@@ -43823,8 +43823,8 @@ var sge = ({ 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 $B({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsxs)(RL, {
+function QB({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, I.jsxs)(LL, {
"data-label": "true",
...a,
className: q("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
@@ -43835,7 +43835,7 @@ function $B({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, I.jsx)(Fge, {
+ n && /* @__PURE__ */ (0, I.jsx)(Ige, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -43843,23 +43843,23 @@ function $B({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
});
}
// src/react/boardui/components/base/input/hint-text.tsx
-function eV({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, I.jsx)(Kpe, {
+function $B({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, I.jsx)(qpe, {
slot: e ? "errorMessage" : "description",
...n,
className: q("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
// src/react/boardui/components/base/input/input.tsx
-var tV = (0, F.createContext)({});
-function nV({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(tV.Provider, {
+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, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, I.jsx)(Yhe, {
+ children: /* @__PURE__ */ (0, I.jsx)(Xhe, {
...a,
"data-input-size": e,
className: q("group flex h-max w-full flex-col items-start gap-1", r),
@@ -43867,8 +43867,8 @@ function nV({ size: e = "medium", fieldClassName: t, inputClassName: n, classNam
})
});
}
-nV.displayName = "TextField";
-var rV = FI({
+tV.displayName = "TextField";
+var nV = PI({
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",
@@ -43883,44 +43883,44 @@ var rV = FI({
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 iV({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, F.useContext)(tV), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, I.jsx)(XL, {
+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)(YL, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => q(rV.field, d ? rV.fieldWithAddonSize[u] : rV.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => q(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),
children: /* @__PURE__ */ (0, I.jsxs)("div", {
- className: rV.content,
+ className: nV.content,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
- className: rV.leftSection,
+ className: nV.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, I.jsx)(t, {
- className: rV.icon,
+ className: nV.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, I.jsx)(Qpe, {
+ }) : null, /* @__PURE__ */ (0, I.jsx)($pe, {
ref: o,
...c,
- className: q(rV.input, l.inputClassName, a)
+ className: q(nV.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: rV.icon,
+ className: nV.icon,
"aria-hidden": !0
}) : null]
})
});
}
-iV.displayName = "InputBase";
-function aV({ 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)(nV, {
+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, {
...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)($B, {
+ e && /* @__PURE__ */ (0, I.jsx)(QB, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, I.jsx)(iV, {
+ /* @__PURE__ */ (0, I.jsx)(rV, {
ref: c,
groupRef: l,
placeholder: r,
@@ -43929,25 +43929,25 @@ function aV({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, I.jsx)(eV, {
+ t && /* @__PURE__ */ (0, I.jsx)($B, {
isInvalid: d,
children: t
})
] })
});
}
-aV.displayName = "Input";
+iV.displayName = "Input";
// src/react/components/modal-frame.tsx
-var t_e = {
+var n_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 oV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {
+function aV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfaceClassName: a = "" }) {
let { isFocusVisible: o } = TC();
- return /* @__PURE__ */ (0, I.jsx)(Dz, {
+ return /* @__PURE__ */ (0, I.jsx)(Ez, {
isOpen: e,
onOpenChange: t,
isDismissable: !0,
@@ -43955,11 +43955,11 @@ function oV({ 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)(Lme, {
+ children: /* @__PURE__ */ (0, I.jsx)(Rme, {
"data-modal-surface": "",
"data-modal-width": n,
- className: q("flex max-h-full w-full flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown", t_e[n], a),
- children: /* @__PURE__ */ (0, I.jsx)(Cz, {
+ className: q("flex max-h-full w-full flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown", n_e[n], a),
+ children: /* @__PURE__ */ (0, I.jsx)(Sz, {
"aria-label": r,
className: "flex min-h-0 flex-col overflow-y-auto overscroll-contain outline-none",
children: i
@@ -43967,7 +43967,7 @@ function oV({ isOpen: e, onOpenChange: t, width: n, label: r, children: i, surfa
})
});
}
-function sV({ children: e }) {
+function oV({ 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",
@@ -43975,7 +43975,7 @@ function sV({ children: e }) {
});
}
// src/react/components/note.tsx
-function cV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
+function sV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout: a = "inline", className: o }) {
let s = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-note-layout": "",
className: q("flex gap-3", a === "inline" ? "flex-wrap items-center justify-between" : "flex-col items-start"),
@@ -44023,11 +44023,11 @@ function cV({ tone: e, title: t, action: n, extra: r, children: i, actionLayout:
}
}
// src/react/components/empty-state.tsx
-var n_e = {
+var r_e = {
standard: "min-h-80 px-6 py-12",
compact: "min-h-60 px-4 py-6"
};
-function r_e({ target: e, children: t }) {
+function i_e({ target: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "secondary",
@@ -44035,11 +44035,11 @@ function r_e({ target: e, children: t }) {
children: t
});
}
-function lV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }) {
+function cV({ 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 ${n_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 ${r_e[i]}`,
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
@@ -44065,9 +44065,9 @@ function lV({ icon: e, title: t, actions: n, children: r, size: i = "standard" }
});
}
// src/react/components/sprite-glyph.tsx
-var uV = /* @__PURE__ */ new Map();
-function dV(e) {
- let t = uV.get(e);
+var lV = /* @__PURE__ */ new Map();
+function uV(e) {
+ let t = lV.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,
@@ -44083,10 +44083,10 @@ function dV(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})`, uV.set(e, i), i;
+ return i.displayName = `SpriteGlyph(${e})`, lV.set(e, i), i;
}
// src/react/components/settings-dialog-close.tsx
-function fV({ label: e, id: t, onPress: n }) {
+function dV({ label: e, id: t, onPress: n }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
id: t,
@@ -44101,60 +44101,60 @@ function fV({ label: e, id: t, onPress: n }) {
});
}
// src/react/settings/busy-props.ts
-function pV(e) {
+function fV(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
}
// src/react/library-shortcuts/library-shortcuts.ts
-var mV = ["library-shortcuts"], hV = "/api/library-shortcuts";
-function gV(e = !0) {
+var pV = ["library-shortcuts"], mV = "/api/library-shortcuts";
+function hV(e = !0) {
return Ft({
- queryKey: mV,
- queryFn: ({ signal: e }) => B(hV, e),
+ queryKey: pV,
+ queryFn: ({ signal: e }) => B(mV, e),
enabled: e,
refetchOnMount: e ? "always" : !1
});
}
-function _V() {
+function gV() {
return It({
- mutationKey: mV,
- mutationFn: (e) => V(hV, e),
+ mutationKey: pV,
+ mutationFn: (e) => V(mV, e),
onSuccess: (e, t) => {
- H.setQueryData(mV, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
+ H.setQueryData(pV, e), t.action === "favorite" && t.scope === "online" && (H.invalidateQueries({ queryKey: ["follow", "tags"] }), H.invalidateQueries({ queryKey: ["tag-management"] }));
}
});
}
-function vV(e, t) {
+function _V(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 i_e(e) {
+function a_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 yV = dV("star"), a_e = dV("bookmark-plus"), bV = dV("chevron-right"), xV = {
+var vV = uV("star"), o_e = uV("bookmark-plus"), yV = uV("chevron-right"), bV = {
performer: "艺人",
creator: "创作者",
studio: "片商与厂牌",
series: "系列",
agency: "事务所",
tag: "标签"
-}, SV = {
- all: dV("star"),
- performer: dV("user-round"),
- creator: dV("user-round"),
- studio: dV("clapperboard"),
- series: dV("film"),
- agency: dV("briefcase"),
- tag: dV("tags"),
- filters: dV("list-filter")
-}, CV = [
+}, 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 = [
["all", "全部"],
- ...Object.entries(xV),
+ ...Object.entries(bV),
["filters", "保存的筛选"]
];
-function wV({ label: e, children: t, ...n }) {
+function CV({ label: e, children: t, ...n }) {
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
...n,
@@ -44164,20 +44164,20 @@ function wV({ label: e, children: t, ...n }) {
children: t
});
}
-function TV({ item: e }) {
- return /* @__PURE__ */ (0, I.jsx)(o_e, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
+function wV({ item: e }) {
+ return /* @__PURE__ */ (0, I.jsx)(s_e, { item: e }, `${e.scope || "local"}:${e.kind}:${e.tag_id || e.entity_id}:${e.name}`);
}
-function o_e({ item: e }) {
- aL();
- let t = gV(!1), n = (0, F.useRef)(t.data), r = _V(), i = t.data && t.data !== n.current ? vV(t.data.favorites || [], e) : e.favorite ?? (t.data ? vV(t.data.favorites || [], e) : !1);
+function s_e({ item: e }) {
+ iL();
+ 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);
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 flex-col gap-1",
children: [
- /* @__PURE__ */ (0, I.jsx)(wV, {
+ /* @__PURE__ */ (0, I.jsx)(CV, {
"data-favorite": "",
"aria-pressed": !!i,
label: `${i ? "取消收藏" : "收藏"}${nn(e.kind, e.name, e.entity_id)}`,
- ...pV(r.isPending),
+ ...fV(r.isPending),
onClick: () => {
r.isPending || r.mutate({
action: "favorite",
@@ -44188,9 +44188,9 @@ function o_e({ item: e }) {
children: r.isPending ? /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: Bs("") }
- }) : /* @__PURE__ */ (0, I.jsx)(yV, {})
+ }) : /* @__PURE__ */ (0, I.jsx)(vV, {})
}),
- r.isError ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ r.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: lr(r.error)
}) : null,
@@ -44204,38 +44204,38 @@ function o_e({ item: e }) {
]
});
}
-function EV({ currentHref: e, kind: t }) {
+function TV({ 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)(fL, {
+ children: /* @__PURE__ */ (0, I.jsx)(dL, {
"data-shortcuts-trigger": "",
label: "我的收藏",
- icon: yV,
+ icon: vV,
"aria-haspopup": "dialog",
"aria-expanded": n,
onPress: () => r(!0)
})
- }), /* @__PURE__ */ (0, I.jsx)(oV, {
+ }), /* @__PURE__ */ (0, I.jsx)(aV, {
isOpen: n,
onOpenChange: r,
width: "collections",
label: "我的收藏",
- children: n ? /* @__PURE__ */ (0, I.jsx)(s_e, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(c_e, {
currentHref: e,
kind: t,
close: () => r(!1)
}) : null
})] });
}
-function s_e({ currentHref: e, kind: t, close: n }) {
- aL();
- let r = gV(), i = _V(), [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 c_e({ currentHref: e, kind: t, close: n }) {
+ iL();
+ 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);
(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 = vL(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 = _L(y, g, "[role=\"tab\"][aria-selected=\"true\"]", s, { axis: "y" });
(0, F.useLayoutEffect)(() => {
b.current && (x.current = Ro(b.current) || null);
}, []), (0, F.useLayoutEffect)(() => {
@@ -44248,7 +44248,7 @@ function s_e({ currentHref: e, kind: t, close: n }) {
}, [s]), (0, F.useLayoutEffect)(() => {
x.current?.();
});
- let C = CV.find(([e]) => e === s)?.[1] || "全部", w = (e) => {
+ let C = SV.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;
@@ -44271,7 +44271,7 @@ function s_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)(fV, {
+ }), /* @__PURE__ */ (0, I.jsx)(dV, {
label: "关闭我的收藏",
onPress: n
})]
@@ -44301,8 +44301,8 @@ function s_e({ currentHref: e, kind: t, close: n }) {
role: "presentation",
children: "我的收藏"
}),
- CV.map(([e, t]) => {
- let n = SV[e] || yV, r = e === "filters" ? E?.filters.length || 0 : (E?.favorites || []).filter((t) => e === "all" || t.kind === e).length;
+ 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;
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
@@ -44334,17 +44334,17 @@ function s_e({ currentHref: e, kind: t, close: n }) {
href: "/flagged",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)(yV, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(vV, { "aria-hidden": !0 }),
"已标记",
- /* @__PURE__ */ (0, I.jsx)(bV, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, I.jsx)(yV, { "aria-hidden": !0 })
]
}), /* @__PURE__ */ (0, I.jsxs)("a", {
href: "/watch-later",
onClick: n,
children: [
- /* @__PURE__ */ (0, I.jsx)(a_e, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(o_e, { "aria-hidden": !0 }),
"稍后看",
- /* @__PURE__ */ (0, I.jsx)(bV, { "aria-hidden": !0 })
+ /* @__PURE__ */ (0, I.jsx)(yV, { "aria-hidden": !0 })
]
})]
})]
@@ -44363,7 +44363,7 @@ function s_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)(cV, {
+ r.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -44372,16 +44372,16 @@ function s_e({ currentHref: e, kind: t, close: n }) {
}),
children: lr(r.error)
}) : null,
- i.isError ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ i.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
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)(lV, {
+ E.filters.length ? null : /* @__PURE__ */ (0, I.jsx)(cV, {
size: "compact",
- icon: dV("list-filter"),
+ icon: uV("list-filter"),
title: "还没有保存的筛选",
- actions: /* @__PURE__ */ (0, I.jsx)(bL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(yL, {
size: "small",
href: "/",
onClick: n,
@@ -44400,7 +44400,7 @@ function s_e({ currentHref: e, kind: t, close: n }) {
variant: "secondary",
size: "small",
"aria-label": `删除筛选${e.name}`,
- ...pV(i.isPending),
+ ...fV(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "delete_filter",
@@ -44415,7 +44415,7 @@ function s_e({ currentHref: e, kind: t, close: n }) {
className: "flex flex-col gap-3",
"aria-label": "保存当前筛选",
children: [
- /* @__PURE__ */ (0, I.jsx)(aV, {
+ /* @__PURE__ */ (0, I.jsx)(iV, {
label: "筛选名称",
value: a,
onChange: o,
@@ -44424,7 +44424,7 @@ function s_e({ currentHref: e, kind: t, close: n }) {
/* @__PURE__ */ (0, I.jsx)(J, {
type: "submit",
disabled: !a.trim(),
- ...pV(i.isPending),
+ ...fV(i.isPending),
children: "保存当前筛选"
}),
d ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -44435,16 +44435,16 @@ function s_e({ currentHref: e, kind: t, close: n }) {
]
}) : null
] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(aV, {
+ /* @__PURE__ */ (0, I.jsx)(iV, {
"aria-label": "搜索收藏",
placeholder: "搜索收藏",
- leadingIcon: dV("search"),
+ leadingIcon: uV("search"),
value: l,
onChange: u
}),
- O.length ? null : /* @__PURE__ */ (0, I.jsx)(lV, {
+ O.length ? null : /* @__PURE__ */ (0, I.jsx)(cV, {
size: "compact",
- icon: yV,
+ icon: vV,
title: l ? "没有匹配的收藏" : E.favorites.length ? "还没有此类收藏" : "还没有收藏",
actions: l ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -44454,7 +44454,7 @@ function s_e({ currentHref: e, kind: t, close: n }) {
size: "small",
onClick: () => c("all"),
children: "查看全部收藏"
- }) : /* @__PURE__ */ (0, I.jsx)(bL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(yL, {
size: "small",
href: "/",
onClick: n,
@@ -44468,25 +44468,25 @@ function s_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: i_e(e),
+ href: a_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)(c_e, { item: e }, e.image_url), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(l_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" ? "在线标签" : xV[e.kind]
+ children: e.scope === "online" ? "在线标签" : bV[e.kind]
})]
})]
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
"aria-label": `取消收藏${nn(e.kind, e.name, e.entity_id)}`,
- ...pV(i.isPending),
+ ...fV(i.isPending),
onClick: () => {
i.isPending || i.mutate({
action: "favorite",
@@ -44504,8 +44504,8 @@ function s_e({ currentHref: e, kind: t, close: n }) {
]
});
}
-function c_e({ item: e }) {
- let t = SV[e.kind] || yV;
+function l_e({ item: e }) {
+ let t = xV[e.kind] || vV;
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-shortcuts-avatar": "",
title: e.image_label || e.name,
@@ -44523,11 +44523,11 @@ function c_e({ item: e }) {
});
}
// src/react/components/board-navigation-link.tsx
-function l_e(e) {
+function u_e(e) {
return /* @__PURE__ */ (0, I.jsx)("a", { ...e });
}
// src/react/boardui/components/foundations/icons/chevrons.tsx
-function u_e(e) {
+function d_e(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -44541,7 +44541,7 @@ function u_e(e) {
})
});
}
-function d_e(e) {
+function f_e(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 12 12",
fill: "none",
@@ -44555,7 +44555,7 @@ function d_e(e) {
})
});
}
-function DV(e) {
+function EV(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -44568,7 +44568,7 @@ function DV(e) {
});
}
// src/react/boardui/components/base/breadcrumb/breadcrumb.tsx
-function f_e({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r }) {
+function p_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,
@@ -44576,14 +44576,14 @@ function f_e({ children: e, "aria-label": t = "Breadcrumb", className: n, ref: r
className: q("flex w-full items-center overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", n),
children: /* @__PURE__ */ (0, I.jsx)("ol", {
className: "flex items-center gap-2.5 px-1",
- children: i.map((e, t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, I.jsx)(d_e, {
+ children: i.map((e, t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [t > 0 && /* @__PURE__ */ (0, I.jsx)(f_e, {
className: "size-3 shrink-0 text-text-tertiary",
"aria-hidden": !0
}), e] }, e.key ?? t))
})
});
}
-function OV({ children: e, icon: t, href: n, onClick: r, current: i = !1, className: a }) {
+function DV({ 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
@@ -44596,7 +44596,7 @@ function OV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
let s = q("-mx-1 flex items-center gap-1.5 rounded-md px-1 py-0.5 text-caption-1-medium whitespace-nowrap text-text-tertiary", "transition-colors duration-150 ease outline-none", "hover:bg-background-primary-hover hover:text-text-secondary", "focus-visible:ring-2 focus-visible:ring-border-focus-ring", a);
return /* @__PURE__ */ (0, I.jsx)("li", {
className: "flex items-center",
- children: n ? /* @__PURE__ */ (0, I.jsx)(l_e, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(u_e, {
href: n,
className: s,
children: o
@@ -44609,14 +44609,14 @@ function OV({ children: e, icon: t, href: n, onClick: r, current: i = !1, classN
});
}
// src/react/boardui/components/foundations/direction/direction.tsx
-function kV() {
+function OV() {
return Pw().direction;
}
// src/react/boardui/components/base/dropdown/menu-styles.ts
-var AV = "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", p_e = "w-[266px]", m_e = "flex w-full flex-col gap-1 outline-none", jV = "flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left text-text-primary outline-none transition-colors", MV = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+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", m_e = "w-[266px]", h_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";
// src/react/boardui/components/base/tree-view/tree-view.tsx
-function h_e({ size: e = "md", showGuides: t = !0, selectionMode: n = "single", renderEmptyState: r = () => "No items.", className: i, onKeyDownCapture: a, ref: o, ...s }) {
- let c = kV(), l = (0, F.useContext)(FL), u = l === NL && !s.dragAndDropHooks ? PV : l;
+function g_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)(PL), u = l === ML && !s.dragAndDropHooks ? NV : l;
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "contents",
onKeyDownCapture: (e) => {
@@ -44633,23 +44633,23 @@ function h_e({ size: e = "md", showGuides: t = !0, selectionMode: n = "single",
}
}
},
- children: /* @__PURE__ */ (0, I.jsx)(FL.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(PL.Provider, {
value: u,
- children: /* @__PURE__ */ (0, I.jsx)(Qhe, {
+ children: /* @__PURE__ */ (0, I.jsx)($he, {
...s,
ref: o,
selectionMode: n,
"data-size": e,
"data-show-guides": t,
renderEmptyState: r,
- className: (e) => q("group/tree-view flex w-full min-w-0 flex-col rounded-3xl border border-border-button-default bg-background-primary-default p-2 outline-none", u === PV ? "gap-0" : "gap-0.5", "data-[empty]:px-4 data-[empty]:py-8 data-[empty]:text-center data-[empty]:text-body-regular data-[empty]:text-text-tertiary", "data-[focus-visible]:ring-2 data-[focus-visible]:ring-border-focus-ring", typeof i == "function" ? i(e) : i)
+ className: (e) => q("group/tree-view flex w-full min-w-0 flex-col rounded-3xl border border-border-button-default bg-background-primary-default p-2 outline-none", u === 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)
})
})
});
}
-function NV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassName: i, trailingContent: a, children: o, className: s, style: c, ref: l, ...u }) {
- let d = kV();
- return /* @__PURE__ */ (0, I.jsxs)(tge, {
+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, {
...u,
ref: l,
textValue: t,
@@ -44658,10 +44658,10 @@ function NV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
...typeof c == "function" ? c(e) : c
}),
className: (e) => q("relative flex min-h-9 min-w-0 cursor-pointer items-center gap-2 rounded-xl pe-2 text-body-regular text-text-primary outline-none", "transition-[background-color,color,box-shadow] duration-150 motion-reduce:transition-none", "group-data-[size=sm]/tree-view:min-h-8 group-data-[size=sm]/tree-view:text-body-2-regular", (e.isHovered || e.isPressed || e.isFocusVisible) && !e.isDisabled && "bg-dropdown-item-hover-background", e.isSelected && "bg-dropdown-item-hover-background", e.isFocusVisible && "ring-2 ring-inset ring-border-focus-ring", e.isDisabled && "cursor-default text-text-placeholder", typeof s == "function" ? s(e) : s),
- children: [/* @__PURE__ */ (0, I.jsx)(ege, { children: ({ hasChildItems: t, isExpanded: o, isDisabled: s, level: c, state: l, id: u }) => {
- let f = n === null ? null : o && r ? r : n ?? (t ? o ? MB : AB : Ege);
+ 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 : Dge);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(__e, {
+ /* @__PURE__ */ (0, I.jsx)(v_e, {
state: l,
id: u,
level: c,
@@ -44671,11 +44671,11 @@ function NV({ 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)(BL, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(zL, {
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)(vB, {
+ children: /* @__PURE__ */ (0, I.jsx)(_B, {
"aria-hidden": !0,
className: q("size-4 opacity-50 transition-transform duration-150 motion-reduce:transition-none", o ? "rotate-90" : d === "rtl" && "rotate-180")
})
@@ -44699,24 +44699,24 @@ function NV({ label: e, textValue: t = e, icon: n, expandedIcon: r, iconClassNam
} }), o]
});
}
-var PV = {
- ...NL,
- CollectionRoot: g_e
+var NV = {
+ ...ML,
+ CollectionRoot: __e
};
-function g_e({ collection: e, ...t }) {
- let n = (0, F.useContext)(pB);
+function __e({ collection: e, ...t }) {
+ let n = (0, F.useContext)(fB);
return n ? /* @__PURE__ */ (0, I.jsx)(kx, {
initial: !1,
- children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(v_e, {
+ children: Array.from(e).filter((e) => e.type !== "content").map((e) => /* @__PURE__ */ (0, I.jsx)(y_e, {
state: n,
children: e.render?.(e)
}, e.key))
- }) : /* @__PURE__ */ (0, I.jsx)(NL.CollectionRoot, {
+ }) : /* @__PURE__ */ (0, I.jsx)(ML.CollectionRoot, {
collection: e,
...t
});
}
-function __e({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction: a }) {
+function v_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;
@@ -44775,7 +44775,7 @@ function __e({ state: e, id: t, level: n, expanded: r, branchWidth: i, direction
]
});
}
-function v_e({ state: e, children: t }) {
+function y_e({ state: e, children: t }) {
let n = Ex(), r = $x(), [i, a] = (0, F.useState)(e);
return n && i !== e && a(e), /* @__PURE__ */ (0, I.jsx)(dS.div, {
role: "presentation",
@@ -44816,14 +44816,14 @@ function v_e({ state: e, children: t }) {
1
]
},
- children: /* @__PURE__ */ (0, I.jsx)(pB.Provider, {
+ children: /* @__PURE__ */ (0, I.jsx)(fB.Provider, {
value: n ? e : i,
children: t
})
});
}
// src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var FV = {
+var PV = {
md: {
box: "size-4",
glyph: "size-4",
@@ -44837,8 +44837,8 @@ var FV = {
gap: "gap-1.5"
}
};
-function IV({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = FV[t], c = n || r, l = o && !a;
+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;
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: q("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? q("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : q("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
@@ -44864,13 +44864,13 @@ function IV({ state: e, size: t = "md" }) {
});
}
// src/react/boardui/components/base/checkbox/checkbox.tsx
-function LV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = FV[n];
- return /* @__PURE__ */ (0, I.jsx)(Ype, {
+function IV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = PV[n];
+ return /* @__PURE__ */ (0, I.jsx)(Xpe, {
ref: r,
...i,
className: (t) => q("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(IV, {
+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(FV, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, I.jsx)("span", {
@@ -44880,7 +44880,7 @@ function LV({ className: e, children: t, size: n = "md", ref: r, ...i }) {
});
}
// src/react/components/overlay-scrollbar.ts
-function RV() {
+function LV() {
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 ? {
@@ -44892,43 +44892,43 @@ function RV() {
}, []), e;
}
// src/react/providers.tsx
-var zV = null;
-function y_e() {
- return zV?.isConnected || (zV = document.createElement("div"), zV.className = "peach-react", zV.dataset.reactOverlays = "", document.body.append(zV)), zV;
+var RV = null;
+function b_e() {
+ return RV?.isConnected || (RV = document.createElement("div"), RV.className = "peach-react", RV.dataset.reactOverlays = "", document.body.append(RV)), RV;
}
-function BV({ children: e }) {
+function zV({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)(oe, {
client: H,
children: /* @__PURE__ */ (0, I.jsx)(aie, {
reducedMotion: "user",
children: /* @__PURE__ */ (0, I.jsx)(CD, {
- getContainer: y_e,
+ getContainer: b_e,
children: e
})
})
});
}
// node_modules/sonner/dist/index.mjs
-function b_e(e) {
+function x_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 x_e = (e) => {
+var S_e = (e) => {
switch (e) {
- case "success": return w_e;
- case "info": return E_e;
- case "warning": return T_e;
- case "error": return D_e;
+ case "success": return T_e;
+ case "info": return D_e;
+ case "warning": return E_e;
+ case "error": return O_e;
default: return null;
}
-}, S_e = Array(12).fill(0), C_e = ({ visible: e, className: t }) => /*#__PURE__*/ F.createElement("div", {
+}, C_e = Array(12).fill(0), w_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" }, S_e.map((e, t) => /*#__PURE__*/ F.createElement("div", {
+}, /*#__PURE__*/ F.createElement("div", { className: "sonner-spinner" }, C_e.map((e, t) => /*#__PURE__*/ F.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), w_e = /*#__PURE__*/ F.createElement("svg", {
+})))), T_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44939,7 +44939,7 @@ var x_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"
-})), T_e = /*#__PURE__*/ F.createElement("svg", {
+})), E_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -44950,7 +44950,7 @@ var x_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"
-})), E_e = /*#__PURE__*/ F.createElement("svg", {
+})), D_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -44961,7 +44961,7 @@ var x_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"
-})), D_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",
@@ -44972,7 +44972,7 @@ var x_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"
-})), O_e = /*#__PURE__*/ F.createElement("svg", {
+})), k_e = /*#__PURE__*/ F.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -44993,7 +44993,7 @@ var x_e = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), k_e = () => {
+})), A_e = () => {
let [e, t] = F.useState(document.hidden);
return F.useEffect(() => {
let e = () => {
@@ -45001,7 +45001,7 @@ var x_e = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, A_e = 1, j_e = 100, VV = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : A_e++, HV = new class {
+}, j_e = 1, M_e = 100, BV = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : j_e++, VV = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -45011,10 +45011,10 @@ var x_e = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - j_e;
+ let e = this.toasts.length - M_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 = VV(e), i = this.pendingDismissals.get(r);
+ let { message: t, ...n } = e, r = BV(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({
@@ -45089,7 +45089,7 @@ var x_e = (e) => {
type: "default",
message: e
});
- else if (N_e(e) && !e.ok) {
+ else if (P_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({
@@ -45133,7 +45133,7 @@ var x_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 = VV(t);
+ let n = BV(t);
return this.create({
...t,
jsx: e(n),
@@ -45142,34 +45142,34 @@ var x_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();
}
-}(), M_e = (e, t) => HV.message(e, t), N_e = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", UV = Object.assign(M_e, {
- success: HV.success,
- info: HV.info,
- warning: HV.warning,
- error: HV.error,
- custom: HV.custom,
- message: HV.message,
- promise: HV.promise,
- dismiss: HV.dismiss,
- loading: HV.loading
+}(), N_e = (e, t) => VV.message(e, t), P_e = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", HV = Object.assign(N_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
}, {
- getHistory: () => HV.toasts,
- getToasts: () => HV.getActiveToasts()
+ getHistory: () => VV.toasts,
+ getToasts: () => VV.getActiveToasts()
});
-b_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 WV(e) {
+x_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) {
return e.label !== void 0;
}
-var P_e = 3, F_e = "24px", I_e = "16px", GV = 4e3, L_e = 356, R_e = 14, z_e = 45, B_e = 200;
-function KV(...e) {
+var F_e = 3, I_e = "24px", L_e = "16px", WV = 4e3, R_e = 356, z_e = 14, B_e = 45, V_e = 200;
+function GV(...e) {
return e.filter(Boolean).join(" ");
}
-function V_e(e) {
+function H_e(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var H_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 || GV), 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 || GV, [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 = k_e(), ke = F.useMemo(() => e.swipeDirections ?? V_e(b), [e.swipeDirections, b]), Ae = n.invert || t, je = pe === "loading";
+var U_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 = A_e(), ke = F.useMemo(() => e.swipeDirections ?? H_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(() => {
@@ -45210,7 +45210,7 @@ var H_e = (e) => {
let Me = F.useCallback(() => {
ee(!0), ae(Se.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, B_e);
+ }, V_e);
}, [
n,
d,
@@ -45241,18 +45241,18 @@ var H_e = (e) => {
}, [Me, n.delete]);
function Ne() {
return w?.loading ? /*#__PURE__*/ F.createElement("div", {
- className: KV(C?.loader, n?.classNames?.loader, "sonner-loader"),
+ className: GV(C?.loader, n?.classNames?.loader, "sonner-loader"),
"data-visible": pe === "loading"
- }, w.loading) : /*#__PURE__*/ F.createElement(C_e, {
- className: KV(C?.loader, n?.classNames?.loader),
+ }, w.loading) : /*#__PURE__*/ F.createElement(w_e, {
+ className: GV(C?.loader, n?.classNames?.loader),
visible: pe === "loading"
});
}
- let Pe = n.icon || w?.[pe] || x_e(pe);
+ let Pe = n.icon || w?.[pe] || S_e(pe);
return /*#__PURE__*/ F.createElement("li", {
tabIndex: 0,
ref: ue,
- className: KV(_, ge, C?.toast, n?.classNames?.toast, C?.[me], n?.classNames?.[me]),
+ className: GV(_, 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),
@@ -45295,7 +45295,7 @@ var H_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) >= z_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) >= B_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);
@@ -45334,46 +45334,46 @@ var H_e = (e) => {
onClick: je || !he ? () => {} : () => {
Me(), n.onDismiss == null || n.onDismiss.call(n, n);
},
- className: KV(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? O_e) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {
+ className: GV(C?.closeButton, n?.classNames?.closeButton)
+ }, w?.close ?? k_e) : null, (pe || n.icon || n.promise) && n.icon !== null && (w?.[pe] !== null || n.icon) ? /*#__PURE__*/ F.createElement("div", {
"data-icon": "",
- className: KV(C?.icon, n?.classNames?.icon)
+ className: GV(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: KV(C?.content, n?.classNames?.content)
+ className: GV(C?.content, n?.classNames?.content)
}, /*#__PURE__*/ F.createElement("div", {
"data-title": "",
- className: KV(C?.title, n?.classNames?.title)
+ className: GV(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: KV(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 && WV(n.cancel) ? /*#__PURE__*/ F.createElement("button", {
+ 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", {
"data-button": !0,
"data-cancel": !0,
style: n.cancelButtonStyle || h,
onClick: (e) => {
- WV(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
+ UV(n.cancel) && he && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Me());
},
- className: KV(C?.cancelButton, n?.classNames?.cancelButton)
- }, n.cancel.label) : null, /*#__PURE__*/ F.isValidElement(n.action) ? n.action : n.action && WV(n.action) ? /*#__PURE__*/ F.createElement("button", {
+ 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", {
"data-button": !0,
"data-action": !0,
style: n.actionButtonStyle || g,
onClick: (e) => {
- WV(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
+ UV(n.action) && (n.action.onClick == null || n.action.onClick.call(n.action, e), !e.defaultPrevented && Me());
},
- className: KV(C?.actionButton, n?.classNames?.actionButton)
+ className: GV(C?.actionButton, n?.classNames?.actionButton)
}, n.action.label) : null);
};
-function qV() {
+function KV() {
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 U_e(e, t) {
+function W_e(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? I_e : F_e;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? L_e : I_e;
function o(e) {
[
"top",
@@ -45394,11 +45394,11 @@ function U_e(e, t) {
}) : o(a);
}), n;
}
-var JV = /*#__PURE__*/ F.forwardRef(function(e, t) {
- let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = P_e, toastOptions: g, dir: _ = qV(), gap: v = R_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 || HV.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
+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 = F_e, toastOptions: g, dir: _ = KV(), gap: v = z_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)));
}, []);
- return F.useEffect(() => HV.subscribe((e) => {
+ return F.useEffect(() => VV.subscribe((e) => {
e.dismiss ? requestAnimationFrame(() => {
C((t) => t.map((t) => t.id === e.id ? {
...t,
@@ -45467,7 +45467,7 @@ var JV = /*#__PURE__*/ F.forwardRef(function(e, t) {
let [i, a] = t.split("-");
return w.length ? /*#__PURE__*/ F.createElement("ol", {
key: t,
- dir: _ === "auto" ? qV() : _,
+ dir: _ === "auto" ? KV() : _,
tabIndex: -1,
ref: N,
className: c,
@@ -45477,10 +45477,10 @@ var JV = /*#__PURE__*/ F.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${L_e}px`,
+ "--width": `${R_e}px`,
"--gap": `${v}px`,
...m,
- ...U_e(l, u)
+ ...W_e(l, u)
},
onBlur: (e) => {
ne.current && !e.currentTarget.contains(e.relatedTarget) && (ne.current = !1, P.current &&= (P.current.focus({ preventScroll: !0 }), null));
@@ -45498,7 +45498,7 @@ var JV = /*#__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(H_e, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ F.createElement(U_e, {
key: n.id,
icons: y,
index: i,
@@ -45528,35 +45528,35 @@ var JV = /*#__PURE__*/ F.forwardRef(function(e, t) {
swipeDirections: e.swipeDirections
}))) : null;
}));
-}), YV = "/api/library-processing", XV = ["library-processing"], W_e = (e, t, n) => {
+}), JV = "/api/library-processing", YV = ["library-processing"], G_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(`${YV}?${r}`, t);
-}, G_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(`${JV}?${r}`, t);
+}, K_e = {
fetching_cover: "封面",
querying_metadata: "资料"
};
-function ZV(e) {
+function XV(e) {
if (e?.status !== "running" || e.current_asset_id == null) return null;
- let t = G_e[e.current_action || ""];
+ let t = K_e[e.current_action || ""];
return !t || (e.waited_seconds || 0) < 120 ? null : {
what: t,
source: e.current_source
};
}
-function QV({ what: e, source: t }) {
+function ZV({ what: e, source: t }) {
return `${`${t?.label ? `${t.label} ` : "外部来源"}迟迟没有返回${e}`}。可以先跳过这部,任务结束后再重试。`;
}
-var $V = (e) => !!e && [
+var QV = (e) => !!e && [
"running",
"pausing",
"paused",
"stopping"
-].includes(e.status), eH = (e) => e?.status === "failed" && e.outcome === "partial", tH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", nH = "/?loc=&thumb=0";
-function rH(e) {
- if (!$V(e)) return "";
+].includes(e.status), $V = (e) => e?.status === "failed" && e.outcome === "partial", eH = "已入库的视频可在全部内容中浏览,未完成项可单独重试。", tH = "/?loc=&thumb=0";
+function nH(e) {
+ if (!QV(e)) return "";
if (e.status === "stopping") return "正在取消,等待当前步骤退出;已取得的结果会保留";
if (e.status === "paused") return "已暂停,继续后更新预估";
if (e.status === "pausing") return "正在暂停,当前步骤结束后暂停";
@@ -45567,30 +45567,30 @@ function rH(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 iH = (e) => B(YV, e);
-async function aH(e) {
+var rH = (e) => B(JV, e);
+async function iH(e) {
await H.fetchQuery({
- queryKey: XV,
- queryFn: () => iH(e)
+ queryKey: YV,
+ queryFn: () => rH(e)
});
}
-var K_e = 2e3, q_e = 1e4, oH = "连接中断,正在重新读取处理进度", J_e = {
+var q_e = 2e3, J_e = 1e4, aH = "连接中断,正在重新读取处理进度", Y_e = {
manual: "在网页发起",
scheduled: "定时发起",
startup: "服务启动时自动发起",
cli: "由命令行或托盘发起"
};
-function Y_e(e, t) {
+function X_e(e, t) {
return `保存后 Peach 会重新启动。${e.trigger === "cli" ? "这个任务由命令行或托盘发起,在独立进程里运行,不受重启影响。" : e.status === "paused" ? "已暂停的任务会保持暂停,重启后点继续即可接着处理。" : "正在进行的任务会随重启中断,重启后从中断处继续。"}${t ? "勾选的「保存后扫描并补全资料」会排在当前任务之后。" : ""}`;
}
-function X_e(e) {
- let t = J_e[e.trigger || ""];
+function Z_e(e) {
+ let t = Y_e[e.trigger || ""];
return `当前的扫描与采集任务${t ? `(${t})` : ""}还没结束,等它完成或取消后再开始新的同步`;
}
-function sH(e, t) {
- return $V(e) ? K_e : t ? q_e : !1;
+function oH(e, t) {
+ return QV(e) ? q_e : t ? J_e : !1;
}
-var Z_e = {
+var Q_e = {
scanning_files: "扫描文件",
reading_local: "检查配套文件",
reading_local_cover: "读取配套图片",
@@ -45599,25 +45599,25 @@ var Z_e = {
skipped: "已跳过",
generating_preview: "生成视频预览",
writing_candidates: "保存待确认资料"
-}, cH = {
+}, sH = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function Q_e(e) {
- let t = Object.entries(e).filter(([e, t]) => cH[e] && t > 0).map(([e, t]) => `${cH[e]} ${t.toLocaleString()} 部`);
+function $_e(e) {
+ let t = Object.entries(e).filter(([e, t]) => sH[e] && t > 0).map(([e, t]) => `${sH[e]} ${t.toLocaleString()} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function $_e(e) {
+function eve(e) {
if (e.status === "paused") return "已暂停";
if (e.status === "pausing") return "正在暂停";
- let t = Z_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${$I(e.waited_seconds)}` : "";
+ let t = Q_e[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${QI(e.waited_seconds)}` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function eve(e) {
- let t = e.total ? `${eL(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
- return $_e(e) + (t ? ` · ${t}` : "");
-}
function tve(e) {
+ let t = e.total ? `${$I(e.checked, e.total)} 项` : e.current_action === "scanning_files" || e.stage === "扫描文件" ? `已发现 ${(e.scanned || 0).toLocaleString()} 个文件` : "";
+ return eve(e) + (t ? ` · ${t}` : "");
+}
+function nve(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -45631,22 +45631,22 @@ function tve(e) {
log: e.issues_log || ""
} : null;
}
-var lH = "peach.library-processing.announced", nve = 120;
-function uH(e) {
+var cH = "peach.library-processing.announced", rve = 120;
+function lH(e) {
let t = e.completed_at == null ? Infinity : Date.now() / 1e3 - e.completed_at;
- return !!e.job_id && t >= 0 && t < nve;
+ return !!e.job_id && t >= 0 && t < rve;
}
-function rve(e, t, n) {
- if (e.status === "complete" && (n || uH(e))) {
+function ive(e, t, n) {
+ if (e.status === "complete" && (n || lH(e))) {
try {
- if (e.job_id && localStorage.getItem(lH) === e.job_id) return;
- e.job_id && localStorage.setItem(lH, e.job_id);
+ if (e.job_id && localStorage.getItem(cH) === e.job_id) return;
+ e.job_id && localStorage.setItem(cH, 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 dH = FI({
+var uH = PI({
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",
@@ -45663,15 +45663,15 @@ var dH = FI({
secondary: "text-text-secondary active:text-text-primary disabled:text-text-tertiary aria-disabled:text-text-tertiary"
}
});
-function fH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = q(dH.base, dH.size[t], dH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
+function dH({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = q(uH.base, uH.size[t], uH.variant[e], a), l = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
n ? /* @__PURE__ */ (0, I.jsx)(n, {
- className: dH.icon[t],
+ className: uH.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, I.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, I.jsx)(r, {
- className: dH.icon[t],
+ className: uH.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -45697,7 +45697,7 @@ function fH({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
});
}
// src/react/settings/use-action.ts
-function pH(e = "") {
+function fH(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) {
@@ -45722,10 +45722,10 @@ function pH(e = "") {
};
}
// src/react/library-processing/slow-item.tsx
-function mH({ state: e }) {
- let t = pH(), n = (e) => {
- t.busy || t.run(e.action, (t) => V(YV, e, "POST", t), (e) => {
- H.setQueryData(XV, e), H.invalidateQueries({ queryKey: XV });
+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 });
});
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45737,7 +45737,7 @@ function mH({ state: e }) {
size: "small",
variant: "secondary",
disabled: e.skip_requested,
- ...pV(t.busy === "skip_current"),
+ ...fV(t.busy === "skip_current"),
onClick: () => {
e.job_id && e.current_asset_id != null && n({
action: "skip_current",
@@ -45761,25 +45761,25 @@ function mH({ state: e }) {
]
});
}
-function ive({ state: e, slow: t }) {
- return /* @__PURE__ */ (0, I.jsx)(cV, {
+function ave({ state: e, slow: t }) {
+ return /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "warning",
- action: /* @__PURE__ */ (0, I.jsx)(mH, { state: e }),
- children: QV(t)
+ action: /* @__PURE__ */ (0, I.jsx)(pH, { state: e }),
+ children: ZV(t)
});
}
-function ave({ state: e, slow: t }) {
+function ove({ 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: QV(t)
- }), /* @__PURE__ */ (0, I.jsx)(mH, { state: e })]
+ children: ZV(t)
+ }), /* @__PURE__ */ (0, I.jsx)(pH, { state: e })]
});
}
// src/react/components/use-moving-surface.ts
-var ove = {
+var sve = {
selection: {
type: Fg,
duration: .16,
@@ -45791,7 +45791,7 @@ var ove = {
bounce: 0
}
};
-function hH(e) {
+function mH(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!t) return;
@@ -45812,7 +45812,7 @@ function hH(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 = fae(n, { transform: [r, E] }, ove[e]);
+ l = fae(n, { transform: [r, E] }, sve[e]);
} else n.style.transform = E;
s = h, c = w, t.dataset.surfaceReady = "";
}, m = (t) => {
@@ -45848,24 +45848,24 @@ function hH(e) {
}, [t, e]), n;
}
// src/react/components/menu-dialog.tsx
-function gH(e) {
- let t = hH("hover");
- return /* @__PURE__ */ (0, I.jsx)(Cz, {
+function hH(e) {
+ let t = mH("hover");
+ return /* @__PURE__ */ (0, I.jsx)(Sz, {
...e,
ref: t
});
}
// src/react/library-processing/processing-effort.tsx
-var _H = [
+var gH = [
"low",
"standard",
"high"
-], vH = [
+], _H = [
"低占用",
"标准",
"全速"
-], yH = dV("snail"), bH = dV("zap");
-function xH({ className: e }) {
+], vH = uV("snail"), yH = uV("zap");
+function bH({ className: e }) {
return /* @__PURE__ */ (0, I.jsxs)("svg", {
className: `processing-effort-double ${e ?? ""}`,
"aria-hidden": "true",
@@ -45896,12 +45896,12 @@ function xH({ className: e }) {
]
});
}
-var sve = [
+var cve = [
+ vH,
yH,
- bH,
- xH
+ bH
];
-function cve({ animate: e }) {
+function lve({ animate: e }) {
let [t, n] = (0, F.useState)(document.hidden);
return (0, F.useEffect)(() => {
let e = () => n(document.hidden);
@@ -45933,8 +45933,8 @@ function cve({ animate: e }) {
} }, t))]
});
}
-function SH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
- let i = Math.max(0, _H.indexOf(e)), [a, o] = (0, F.useState)(i);
+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);
return (0, F.useEffect)(() => {
t || o(i);
}, [i, t]), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45945,7 +45945,7 @@ function SH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "text-text-tertiary",
children: "处理强度 "
- }), vH[a]]
+ }), _H[a]]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "processing-effort-scale text-caption-1-regular text-text-tertiary",
@@ -45953,19 +45953,19 @@ function SH({ 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)(yH, {}), "最慢"]
+ children: [/* @__PURE__ */ (0, I.jsx)(vH, {}), "最慢"]
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 1 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(bH, {}), "标准"]
+ children: [/* @__PURE__ */ (0, I.jsx)(yH, {}), "标准"]
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-selected": a === 2 || void 0,
- children: [/* @__PURE__ */ (0, I.jsx)(xH, {}), "最快"]
+ children: [/* @__PURE__ */ (0, I.jsx)(bH, {}), "最快"]
})
]
}),
- /* @__PURE__ */ (0, I.jsxs)(ame, {
+ /* @__PURE__ */ (0, I.jsxs)(ome, {
"aria-label": "处理速度",
minValue: 0,
maxValue: 2,
@@ -45974,10 +45974,10 @@ function SH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
isDisabled: t,
onChange: o,
onChangeEnd: (e) => {
- e !== i && n(_H[e]);
+ e !== i && n(gH[e]);
},
className: "processing-effort-slider",
- children: [/* @__PURE__ */ (0, I.jsx)(RL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(LL, {
className: "processing-effort-label",
children: "处理速度"
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -45997,11 +45997,11 @@ function SH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
/* @__PURE__ */ (0, I.jsx)("i", {})
]
}),
- a === 2 ? /* @__PURE__ */ (0, I.jsx)(cve, { animate: r }) : null,
- /* @__PURE__ */ (0, I.jsx)(ome, {
+ a === 2 ? /* @__PURE__ */ (0, I.jsx)(lve, { animate: r }) : null,
+ /* @__PURE__ */ (0, I.jsx)(sme, {
className: "processing-effort-hit",
- children: /* @__PURE__ */ (0, I.jsx)(sme, {
- "aria-label": vH[a],
+ children: /* @__PURE__ */ (0, I.jsx)(cme, {
+ "aria-label": _H[a],
className: "processing-effort-thumb"
})
})
@@ -46015,8 +46015,8 @@ function SH({ value: e, busy: t, onChange: n, animate: r = !0 }) {
]
});
}
-function lve({ 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, _H.indexOf(e));
+function uve({ 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));
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "processing-effort-trigger",
"data-speed": e,
@@ -46024,28 +46024,28 @@ function lve({ value: e, busy: t, onChange: n, animate: r = !0 }) {
ref: i,
size: "small",
variant: "secondary",
- "aria-label": `处理速度:${vH[s]}`,
+ "aria-label": `处理速度:${_H[s]}`,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-disabled": t,
- leadingIcon: sve[s],
- trailingIcon: gB,
+ leadingIcon: cve[s],
+ trailingIcon: hB,
onClick: () => {
t || o(!a);
},
- children: vH[s]
+ children: _H[s]
})
- }), /* @__PURE__ */ (0, I.jsx)(uz, {
+ }), /* @__PURE__ */ (0, I.jsx)(lz, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "top start",
offset: 8,
- className: AV,
- children: /* @__PURE__ */ (0, I.jsx)(gH, {
+ className: kV,
+ children: /* @__PURE__ */ (0, I.jsx)(hH, {
"aria-label": "处理速度",
className: "outline-none",
- children: /* @__PURE__ */ (0, I.jsx)(SH, {
+ children: /* @__PURE__ */ (0, I.jsx)(xH, {
value: e,
busy: t,
onChange: n,
@@ -46055,10 +46055,10 @@ function lve({ value: e, busy: t, onChange: n, animate: r = !0 }) {
})] });
}
// src/react/library-processing/processing-controls.tsx
-function CH({ state: e, disabled: t = !1 }) {
- let n = pH(), r = (0, F.useRef)(!1), i = $V(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(YV, e, "POST", t), (e) => {
- H.setQueryData(XV, e), H.invalidateQueries({ queryKey: XV });
+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 });
});
}, l = () => {
let i = e.job_id;
@@ -46082,7 +46082,7 @@ function CH({ state: e, disabled: t = !1 }) {
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(lve, {
+ /* @__PURE__ */ (0, I.jsx)(uve, {
value: e.speed_mode || "standard",
busy: t || !!n.busy || a,
animate: e.status !== "paused" && e.status !== "pausing",
@@ -46096,11 +46096,11 @@ function CH({ state: e, disabled: t = !1 }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: e.status === "paused" ? BB : RB,
+ leadingIcon: e.status === "paused" ? zB : LB,
"aria-label": o,
title: o,
disabled: t || !e.job_id || e.status === "pausing" || a,
- ...pV(n.busy === "pause" || n.busy === "resume"),
+ ...fV(n.busy === "pause" || n.busy === "resume"),
onClick: () => {
e.job_id && c({
action: e.status === "paused" ? "resume" : "pause",
@@ -46112,11 +46112,11 @@ function CH({ state: e, disabled: t = !1 }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: qB,
+ leadingIcon: KB,
"aria-label": s,
title: s,
disabled: t || !e.job_id || a,
- ...pV(n.busy === "cancel"),
+ ...fV(n.busy === "cancel"),
onClick: l
}) : null
]
@@ -46128,11 +46128,11 @@ function CH({ state: e, disabled: t = !1 }) {
});
}
// src/react/library-processing/use-library-processing.ts
-function wH({ toast: e, mode: t, monitor: n }) {
+function CH({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = Ft({
- queryKey: XV,
- queryFn: ({ signal: e }) => iH(e),
- refetchInterval: (e) => sH(e.state.data, r)
+ queryKey: YV,
+ queryFn: ({ signal: e }) => rH(e),
+ refetchInterval: (e) => oH(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;
@@ -46143,8 +46143,8 @@ function wH({ toast: e, mode: t, monitor: n }) {
"pausing",
"paused",
"stopping"
- ].includes(n) && !$V(c);
- r && o(c), (r || t === "notice") && rve(c, e, r);
+ ].includes(n) && !QV(c);
+ r && o(c), (r || t === "notice") && ive(c, e, r);
}, [
c,
t,
@@ -46156,7 +46156,7 @@ function wH({ toast: e, mode: t, monitor: n }) {
};
}
// src/react/components/loading-dots.tsx
-function TH({ label: e }) {
+function wH({ 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",
@@ -46175,21 +46175,21 @@ function TH({ label: e }) {
});
}
// src/react/components/progress.tsx
-var EH = 100, uve = .4;
-function DH({ 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 * EH;
+var TH = 100, dve = .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;
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 ${EH} 1`,
+ viewBox: `0 0 ${TH} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, I.jsx)("rect", {
- width: EH,
+ width: TH,
height: 1,
className: i ? "fill-text-primary/10" : "fill-background-tertiary-default"
}),
@@ -46200,7 +46200,7 @@ function DH({ 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: uve,
+ width: dve,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -46208,11 +46208,11 @@ function DH({ label: e, value: t, max: n = 100, stops: r = [], tinted: i = !1, m
});
}
// src/react/components/task-progress.tsx
-function OH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
+function DH({ label: e, value: t = 0, total: n, embedded: r = !1 }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-task-progress": r ? "embedded" : "framed",
className: q("flex flex-col gap-1.5", !r && "gap-2 rounded-2lg bg-background-tertiary-default px-4 py-3 text-text-secondary"),
- children: n && n > 0 ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(DH, {
+ children: n && n > 0 ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(EH, {
label: e,
value: t,
max: n,
@@ -46220,11 +46220,11 @@ function OH({ 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)(TH, { label: e })
+ })] }) : /* @__PURE__ */ (0, I.jsx)(wH, { label: e })
});
}
// src/react/library-processing/processing-line.tsx
-function kH(e) {
+function OH(e) {
let [t, n] = (0, F.useState)({
snapshot: e,
seconds: 0
@@ -46240,17 +46240,17 @@ function kH(e) {
return () => window.clearInterval(r);
}, [e, i]);
let a = i && t.snapshot === e ? t.seconds : 0;
- return eve(a ? {
+ return tve(a ? {
...e,
waited_seconds: r + a
} : e);
}
-function dve({ state: e }) {
- return kH(e);
-}
function fve({ state: e }) {
- let t = kH(e);
- return /* @__PURE__ */ (0, I.jsx)(OH, {
+ return OH(e);
+}
+function pve({ state: e }) {
+ let t = OH(e);
+ return /* @__PURE__ */ (0, I.jsx)(DH, {
embedded: !0,
label: t,
value: Math.min(e.checked || 0, e.total || 0),
@@ -46258,7 +46258,7 @@ function fve({ state: e }) {
});
}
// src/react/components/collapse-region.tsx
-function AH({ open: e, children: t, ...n }) {
+function kH({ open: e, children: t, ...n }) {
let r = (0, F.useRef)(null), i = (0, F.useRef)(!1);
return (0, F.useLayoutEffect)(() => {
let t = r.current;
@@ -46269,7 +46269,7 @@ function AH({ open: e, children: t, ...n }) {
children: t
});
}
-function jH(e) {
+function AH(e) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
...e,
"aria-hidden": !0,
@@ -46284,19 +46284,19 @@ function jH(e) {
});
}
// src/react/boardui/components/application/settings/settings-rows.tsx
-function MH({ className: e, children: t }) {
+function jH({ className: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: q("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function NH({ className: e, children: t }) {
+function MH({ className: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: q("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function pve({ label: e, description: t, children: n }) {
+function mve({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: q("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46312,7 +46312,7 @@ function pve({ label: e, description: t, children: n }) {
});
}
// src/react/settings/section.tsx
-function mve({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, children: o }) {
+function hve({ 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]
@@ -46320,12 +46320,12 @@ function mve({ 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)(NH, { children: s })
+ children: /* @__PURE__ */ (0, I.jsx)(MH, { children: s })
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex min-w-0 max-w-full",
children: i
})]
- }) : /* @__PURE__ */ (0, I.jsx)(NH, { children: s }), /* @__PURE__ */ (0, I.jsx)(MH, { children: o })] });
+ }) : /* @__PURE__ */ (0, I.jsx)(MH, { children: s }), /* @__PURE__ */ (0, I.jsx)(jH, { children: o })] });
return a ? /* @__PURE__ */ (0, I.jsx)("form", {
id: r,
"data-guide-target": t,
@@ -46342,13 +46342,13 @@ function mve({ title: e, guide: t, icon: n, id: r, aside: i, onSubmit: a, childr
children: c
});
}
-function hve({ children: e }) {
+function gve({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "ui-settings-rows flex flex-col empty:hidden",
children: e
});
}
-function gve({ divided: e = !1, children: t }) {
+function _ve({ 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
@@ -46357,7 +46357,7 @@ function gve({ divided: e = !1, children: t }) {
children: t
});
}
-function _ve({ label: e, html: t }) {
+function vve({ label: e, html: t }) {
let [n] = (0, F.useState)(t);
return /* @__PURE__ */ (0, I.jsx)("div", {
className: "contents",
@@ -46367,7 +46367,7 @@ function _ve({ label: e, html: t }) {
dangerouslySetInnerHTML: { __html: n }
});
}
-function vve({ status: e, children: t }) {
+function yve({ 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", {
@@ -46376,21 +46376,21 @@ function vve({ status: e, children: t }) {
}) : null, t]
});
}
-function PH({ role: e, children: t }) {
+function NH({ role: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function FH({ children: e }) {
+function PH({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function yve({ label: e, steps: t }) {
+function bve({ 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,
@@ -46400,20 +46400,20 @@ function yve({ label: e, steps: t }) {
})] }, e.command))
});
}
-function IH({ children: e }) {
+function FH({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function bve({ href: e, children: t, leadingIcon: n }) {
- return /* @__PURE__ */ (0, I.jsx)(fH, {
+function xve({ href: e, children: t, leadingIcon: n }) {
+ return /* @__PURE__ */ (0, I.jsx)(dH, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
leadingIcon: n,
- trailingIcon: DB,
+ trailingIcon: EB,
className: "min-w-0 max-w-full",
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 whitespace-normal break-all",
@@ -46421,22 +46421,22 @@ function bve({ href: e, children: t, leadingIcon: n }) {
})
});
}
-function xve() {
- return /* @__PURE__ */ (0, I.jsx)(fH, {
+function Sve() {
+ return /* @__PURE__ */ (0, I.jsx)(dH, {
href: "/tasks",
size: "small",
- trailingIcon: _B,
+ trailingIcon: gB,
className: "self-start",
children: "在任务中心查看进度"
});
}
-function Sve({ children: e }) {
+function Cve({ children: e }) {
return /* @__PURE__ */ (0, I.jsx)("dl", {
className: "ui-settings-facts flex flex-col empty:hidden",
children: e
});
}
-function Cve({ term: e, children: t }) {
+function wve({ 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", {
@@ -46448,7 +46448,7 @@ function Cve({ term: e, children: t }) {
})]
});
}
-function LH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
+function IH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing: i = !1, onOpenChange: a, contentClassName: o }) {
let s = (0, F.useId)(), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(!1), [d, f] = (0, F.useState)(n ?? t);
return (0, F.useLayoutEffect)(() => {
n !== void 0 && n !== d && c.current && l.current && (Bo(c.current, l.current, n), f(n));
@@ -46464,12 +46464,12 @@ function LH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
},
className: `${i ? "w-full" : "w-fit"} flex cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring`,
children: [
- i ? null : /* @__PURE__ */ (0, I.jsx)(vB, {
+ i ? null : /* @__PURE__ */ (0, I.jsx)(_B, {
"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)(vB, {
+ i ? /* @__PURE__ */ (0, I.jsx)(_B, {
"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
@@ -46485,7 +46485,7 @@ function LH({ summary: e, defaultOpen: t = !1, isOpen: n, children: r, trailing:
})]
});
}
-function wve({ name: e }) {
+function Tve({ name: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
"data-source-mark": e,
@@ -46495,34 +46495,34 @@ function wve({ name: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
}
-function RH({ mark: e }) {
+function LH({ 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)(wve, { name: e });
+ }) : /* @__PURE__ */ (0, I.jsx)(Tve, { name: e });
}
// src/react/components/source-label.tsx
-var zH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, Tve = Object.fromEntries(Object.entries(_s).map(([e, t]) => [e, function({ className: e }) {
+var RH = (e) => e.startsWith("clouddrive:") ? e.split(":")[1] : e, Eve = 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)(RH, { mark: t })
+ children: /* @__PURE__ */ (0, I.jsx)(LH, { mark: t })
});
}]));
-function Eve({ className: e }) {
+function Dve({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
- children: /* @__PURE__ */ (0, I.jsx)(RH, { mark: "database" })
+ children: /* @__PURE__ */ (0, I.jsx)(LH, { mark: "database" })
});
}
-var BH = (e) => Tve[zH(e)] ?? Eve;
-function Dve({ site: e, label: t }) {
+var zH = (e) => Eve[RH(e)] ?? Dve;
+function Ove({ 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)(RH, { mark: "globe" }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ children: [n || !i ? /* @__PURE__ */ (0, I.jsx)(LH, { mark: "globe" }) : /* @__PURE__ */ (0, I.jsx)("img", {
src: i,
alt: "",
className: "size-(--icon-inline) shrink-0 object-contain",
@@ -46533,24 +46533,24 @@ function Dve({ site: e, label: t }) {
})]
});
}
-function VH({ source: e, label: t }) {
- let n = zH(e);
+function BH({ source: e, label: t }) {
+ let n = RH(e);
return /* @__PURE__ */ (0, I.jsxs)("span", {
className: "inline-flex min-w-0 items-center gap-1.5",
- children: [/* @__PURE__ */ (0, I.jsx)(RH, { mark: _s[n] || (n === "local" ? "hard-drive" : "database") }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(LH, { 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 HH = (e) => Xn(e).replace(/\s/g, ""), UH = (e) => e >= 1024 ** 2 && e < 1024 ** 3 ? `${Number((e / 1024 ** 2).toFixed(1))}MB` : HH(e), Ove = (e, t) => {
- if (e === t) return HH(t);
+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), kve = (e, t) => {
+ if (e === t) return VH(t);
let [n, r] = Xn(e).split(" "), [i, a] = Xn(t).split(" ");
- return r === a ? `${n}-${i}${a}` : `${HH(e)}-${HH(t)}`;
-}, WH = (e, t, n) => e === void 0 ? Ove(t, n) : `${e > 0 ? "约 " : ""}${HH(e)}`;
-function GH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDetailsChange: i }) {
- let a = RV(), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = r ?? o;
+ return r === a ? `${n}-${i}${a}` : `${VH(e)}-${VH(t)}`;
+}, UH = (e, t, n) => e === void 0 ? kve(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;
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", {
@@ -46587,7 +46587,7 @@ function GH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
children: "部分目录无法读取,数量和预估不完整"
}) : null
]
- }), /* @__PURE__ */ (0, I.jsx)(AH, {
+ }), /* @__PURE__ */ (0, I.jsx)(kH, {
open: !n,
"data-processing-estimate": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -46601,25 +46601,25 @@ function GH({ 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)(NB, {
+ children: [/* @__PURE__ */ (0, I.jsx)(MB, {
"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: WH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
+ children: UH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)
}),
/* @__PURE__ */ (0, I.jsxs)("p", { children: [
e.unknown_route_estimated_bytes ? "已确认代理" : "代理",
" ",
- WH(e.metered_estimated_bytes, e.metered_estimated_min_bytes, e.metered_estimated_max_bytes)
+ UH(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 ? "约 " : "", HH(e.used_bytes)] }),
+ /* @__PURE__ */ (0, I.jsxs)("span", { children: [e.partial ? "约 " : "", VH(e.used_bytes)] }),
" · 代理 ",
- HH(e.metered_used_bytes)
+ VH(e.metered_used_bytes)
] })
]
}), e.disk ? /* @__PURE__ */ (0, I.jsxs)("section", {
@@ -46628,25 +46628,25 @@ function GH({ 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)(QB, {
+ children: [/* @__PURE__ */ (0, I.jsx)(ZB, {
"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: ["约 ", HH(e.disk.estimated_bytes)]
+ children: ["约 ", VH(e.disk.estimated_bytes)]
}),
- e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", UH(e.disk.temporary_bytes)] }) : null,
+ e.disk.temporary_bytes > 0 ? /* @__PURE__ */ (0, I.jsxs)("p", { children: ["抽帧临时文件约 ", HH(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 ? "未取得" : HH(e.free_bytes)
+ e.free_bytes == null ? "未取得" : VH(e.free_bytes)
] }), e.can_fit === !1 ? /* @__PURE__ */ (0, I.jsxs)("p", {
role: "status",
- children: ["空间不足,还差 ", HH(e.shortfall_bytes || 0)]
+ children: ["空间不足,还差 ", VH(e.shortfall_bytes || 0)]
}) : null]
}, e.path)),
e.disk.cache_unknown ? /* @__PURE__ */ (0, I.jsx)("p", {
@@ -46662,7 +46662,7 @@ function GH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
className: "self-start",
"aria-expanded": l,
"aria-controls": c,
- trailingIcon: l ? yB : gB,
+ trailingIcon: l ? vB : hB,
onClick: () => {
s(!l), i?.(!l);
},
@@ -46681,12 +46681,12 @@ function GH({ 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)(VH, {
+ children: [e.root ? /* @__PURE__ */ (0, I.jsx)(BH, {
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)(RH, { mark: "globe" }), e.label]
+ children: [/* @__PURE__ */ (0, I.jsx)(LH, { mark: "globe" }), e.label]
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "shrink-0",
children: e.connection === "system" ? "跟随系统" : e.connection === "unknown" ? "连接待确认" : e.metered ? "代理" : "直连"
@@ -46708,7 +46708,7 @@ function GH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
"待补资料 ",
u(e.workload.pending_jav_titles),
" 部 · 平均约 ",
- UH(e.workload.metadata_average_bytes || 0),
+ HH(e.workload.metadata_average_bytes || 0),
"/部"
]
}) : null,
@@ -46718,8 +46718,8 @@ function GH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
"已用",
e.unobserved.length ? "约" : "",
" ",
- HH(e.used_bytes)
- ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", WH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
+ VH(e.used_bytes)
+ ] }), /* @__PURE__ */ (0, I.jsxs)("span", { children: ["预计 ", UH(e.estimated_bytes, e.estimated_min_bytes, e.estimated_max_bytes)] })]
})
]
}, e.key))
@@ -46732,15 +46732,15 @@ function GH({ traffic: e, initial: t = !1, compact: n = !1, detailsOpen: r, onDe
});
}
// src/react/library-processing/library-processing-notice.tsx
-var KH = "peach.library-processing.collapsed";
-function qH(e) {
+var GH = "peach.library-processing.collapsed";
+function KH(e) {
try {
- return !e || sessionStorage.getItem(KH) !== e;
+ return !e || sessionStorage.getItem(GH) !== e;
} catch {
return !0;
}
}
-function kve({ value: e, max: t }) {
+function Ave({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, I.jsxs)("svg", {
role: "progressbar",
@@ -46770,17 +46770,17 @@ function kve({ value: e, max: t }) {
})]
});
}
-function JH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
- let [i, a] = (0, F.useState)(() => qH(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 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);
d.current = u;
- let f = (0, F.useId)(), [p, m] = (0, F.useState)(!1), h = (0, F.useRef)(null), g = !t && eH(e), _ = e?.status === "failed" && !g, v = $V(e);
+ 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);
(0, F.useEffect)(() => {
- a(qH(e?.job_id)), m(!1);
+ a(KH(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(KH, e.job_id) : sessionStorage.removeItem(KH);
+ i && e?.job_id ? sessionStorage.setItem(GH, e.job_id) : sessionStorage.removeItem(GH);
} catch {}
i && m(!1), a(!i);
}
@@ -46810,7 +46810,7 @@ function JH({ 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 : ZV(e), x = !!t || !!e?.stalled || g || !!b, S = g ? "处理已结束,部分项目需处理" : _ ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
+ let b = t ? null : XV(e), x = !!t || !!e?.stalled || g || !!b, S = g ? "处理已结束,部分项目需处理" : _ ? "扫描与采集已中断" : e?.status === "paused" ? "扫描与采集已暂停" : "扫描与采集";
return /* @__PURE__ */ (0, I.jsxs)("aside", {
ref: h,
"data-processing-dock": "",
@@ -46824,13 +46824,13 @@ function JH({ 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)(kve, {
+ v && e?.total ? /* @__PURE__ */ (0, I.jsx)(Ave, {
value: e.checked || 0,
max: e.total
- }) : _ || x ? /* @__PURE__ */ (0, I.jsx)(wge, {
+ }) : _ || x ? /* @__PURE__ */ (0, I.jsx)(Tge, {
"aria-hidden": !0,
className: "size-5 shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(Ige, {
+ }) : /* @__PURE__ */ (0, I.jsx)(Lge, {
"aria-hidden": !0,
className: "size-5 shrink-0"
}),
@@ -46842,14 +46842,14 @@ function JH({ 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: rH(e)
+ children: nH(e)
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: jH,
+ leadingIcon: AH,
"data-processing-toggle": "",
"data-collapse-upward": "",
"aria-label": u ? "收起任务详情" : "展开任务详情",
@@ -46861,24 +46861,24 @@ function JH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
size: "small",
variant: "secondary",
iconOnly: !0,
- leadingIcon: CB,
+ leadingIcon: SB,
"aria-label": "隐藏任务提示",
onClick: r
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(GH, {
+ /* @__PURE__ */ (0, I.jsx)(WH, {
traffic: e?.traffic,
compact: !u,
detailsOpen: p,
onDetailsChange: m
}),
- b ? /* @__PURE__ */ (0, I.jsx)(ave, {
+ b ? /* @__PURE__ */ (0, I.jsx)(ove, {
state: e,
slow: b
}) : null
]
- }), /* @__PURE__ */ (0, I.jsx)(AH, {
+ }), /* @__PURE__ */ (0, I.jsx)(kH, {
id: f,
open: u,
"data-processing-body": "",
@@ -46895,10 +46895,10 @@ function JH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
"aria-current": e.status === "current" ? "step" : void 0,
className: q("flex min-h-8 items-center gap-2 text-body-2-regular", e.status === "current" ? "text-text-primary" : "text-text-tertiary"),
children: [
- e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(gge, {
+ e.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(_ge, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0"
- }) : /* @__PURE__ */ (0, I.jsx)(_ge, {
+ }) : /* @__PURE__ */ (0, I.jsx)(vge, {
"aria-hidden": !0,
className: q("size-(--icon-inline) shrink-0", e.status === "current" && "text-border-focus-ring")
}),
@@ -46915,11 +46915,11 @@ function JH({ 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)(dve, { state: e }))
+ children: t || (_ || g ? e?.error || "请查看并处理未完成项" : /* @__PURE__ */ (0, I.jsx)(fve, { state: e }))
}),
g ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular wrap-anywhere",
- children: tH
+ children: eH
}) : null,
v && e?.stage && !e.steps?.length ? /* @__PURE__ */ (0, I.jsxs)("p", {
className: "text-caption-1-regular text-text-tertiary",
@@ -46933,20 +46933,20 @@ function JH({ 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)(fH, {
+ /* @__PURE__ */ (0, I.jsx)(dH, {
href: "/data-cleanup#libraryProcessing",
variant: "secondary",
size: "small",
- trailingIcon: _B,
+ trailingIcon: gB,
children: t || _ || g ? "打开扫描与采集" : "任务详情"
}),
- g ? /* @__PURE__ */ (0, I.jsx)(fH, {
- href: nH,
+ g ? /* @__PURE__ */ (0, I.jsx)(dH, {
+ href: tH,
size: "small",
- trailingIcon: _B,
+ trailingIcon: gB,
children: "查看全部内容"
}) : null,
- v ? /* @__PURE__ */ (0, I.jsx)(CH, {
+ v ? /* @__PURE__ */ (0, I.jsx)(SH, {
state: e,
disabled: !!t
}) : null
@@ -46956,67 +46956,67 @@ function JH({ state: e, problem: t = "", measure: n = !1, onHide: r }) {
})]
});
}
-function Ave(e) {
- let { job: t } = wH(e);
- return /* @__PURE__ */ (0, I.jsx)(JH, {
+function jve(e) {
+ let { job: t } = CH(e);
+ return /* @__PURE__ */ (0, I.jsx)(qH, {
state: t.data,
- problem: t.isError ? t.data ? oH : lr(t.error) : ""
+ problem: t.isError ? t.data ? aH : lr(t.error) : ""
});
}
// src/react/library-processing/processing-notice-visibility.ts
-var YH = "peach.library-processing.visibility", XH = /* @__PURE__ */ new Set(), ZH = "";
-function jve() {
+var JH = "peach.library-processing.visibility", YH = /* @__PURE__ */ new Set(), XH = "";
+function Mve() {
try {
- return sessionStorage.getItem(YH) || "";
+ return sessionStorage.getItem(JH) || "";
} catch {
- return ZH;
+ return XH;
}
}
-function Mve(e) {
- return XH.add(e), () => {
- XH.delete(e);
+function Nve(e) {
+ return YH.add(e), () => {
+ YH.delete(e);
};
}
-function QH(e, t) {
- ZH = `${t ? "shown" : "hidden"}:${e}`;
+function ZH(e, t) {
+ XH = `${t ? "shown" : "hidden"}:${e}`;
try {
- sessionStorage.setItem(YH, ZH);
+ sessionStorage.setItem(JH, XH);
} catch {}
- XH.forEach((e) => e());
+ YH.forEach((e) => e());
}
-function $H(e) {
- let t = (0, F.useSyncExternalStore)(Mve, jve, () => "");
+function QH(e) {
+ let t = (0, F.useSyncExternalStore)(Nve, Mve, () => "");
return {
hidden: t === `hidden:${e}`,
requested: t === `shown:${e}`
};
}
// src/react/library-processing/library-processing-dock.tsx
-var eU = "peach-library-processing";
-function Nve({ toast: e }) {
- let { job: t, settled: n } = wH({
+var $H = "peach-library-processing";
+function Pve({ toast: e }) {
+ let { job: t, settled: n } = CH({
toast: e,
mode: "notice"
- }), r = (0, F.useRef)(!1), i = t.data, a = i?.job_id || "unavailable", { hidden: o, requested: s } = $H(a), c = t.isError ? i ? oH : lr(t.error) : "";
+ }), 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) : "";
return (0, F.useEffect)(() => {
- let e = $V(i), t = i?.status === "failed" && (n?.job_id === i.job_id || uH(i));
- o || i?.archived && !c || !e && !c && !t && !(s && i?.status === "failed") ? (r.current && UV.dismiss(eU), r.current = !1) : (UV.custom(() => /* @__PURE__ */ (0, I.jsx)("div", {
+ 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", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(JH, {
+ children: /* @__PURE__ */ (0, I.jsx)(qH, {
state: i,
problem: c,
measure: !0,
- onHide: () => QH(a, !1)
+ onHide: () => ZH(a, !1)
})
}), {
- id: eU,
+ id: $H,
toasterId: "processing",
duration: Infinity,
dismissible: !1,
closeButton: !1,
className: "processing-task-toast",
onDismiss: () => {
- QH(a, !1), r.current = !1;
+ ZH(a, !1), r.current = !1;
}
}), r.current = !0);
}, [
@@ -47027,19 +47027,19 @@ function Nve({ toast: e }) {
o,
s
]), (0, F.useEffect)(() => () => {
- r.current && UV.dismiss(eU), r.current = !1;
+ r.current && HV.dismiss($H), r.current = !1;
}, []), null;
}
// src/react/network-banner.tsx
-var Pve = ["network-status"], Fve = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
-function Ive(e) {
+var Fve = ["network-status"], Ive = "Peach 连不上外网,资料采集、关注更新和在线来源暂不可用;本机媒体照常浏览和播放。";
+function Lve(e) {
return e?.state === "online" ? 12e4 : 3e4;
}
-function Lve() {
+function Rve() {
let e = Ft({
- queryKey: Pve,
+ queryKey: Fve,
queryFn: ({ signal: e }) => B("/api/network-status", e),
- refetchInterval: (e) => Ive(e.state.data),
+ refetchInterval: (e) => Lve(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", {
@@ -47050,56 +47050,56 @@ function Lve() {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-alert" })
- }), /* @__PURE__ */ (0, I.jsx)("p", { children: Fve })] }), /* @__PURE__ */ (0, I.jsx)("a", {
+ }), /* @__PURE__ */ (0, I.jsx)("p", { children: Ive })] }), /* @__PURE__ */ (0, I.jsx)("a", {
href: "/settings/network#peachProxy",
children: "检查 Peach 代理"
})]
}), t);
}
// src/react/components/segmented.tsx
-function Rve(e) {
- let t = dL(hH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(dB, {
+function zve(e) {
+ let t = uL(mH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(uB, {
...e,
ref: t
});
}
-function tU(e) {
- let t = dL(hH("selection"));
- return /* @__PURE__ */ (0, I.jsx)(Az, {
+function eU(e) {
+ let t = uL(mH("selection"));
+ return /* @__PURE__ */ (0, I.jsx)(kz, {
...e,
ref: t
});
}
-var nU = "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", rU = "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", zve = "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", iU = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", aU = "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)", oU = [
+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", Bve = "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 = [
["library", "馆藏"],
["releases", "新作"],
["discover", "发现"],
["wants", "想要"]
-], sU = (e) => oU.some(([t]) => t === e) ? e : "library", cU = (e) => sU(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
-function Bve(e) {
+], oU = (e) => aU.some(([t]) => t === e) ? e : "library", sU = (e) => oU(e) === "library" ? "/?jav=1" : `/jav?tab=${e}`;
+function Vve(e) {
let t = new URLSearchParams(e);
return t.delete("tab"), t.set("jav", "1"), "/?" + t;
}
// src/onboarding/guide-catalog.ts
-var lU = (e, t, n, r, i, a) => ({
+var cU = (e, t, n, r, i, a) => ({
id: e,
title: t,
body: n,
route: r,
target: i,
scope: a
-}), uU = (e, t, n, r, i) => lU(e, t, n, r, i), dU = [
+}), lU = (e, t, n, r, i) => cU(e, t, n, r, i), uU = [
{
id: "basics",
kind: "interface",
title: "认识界面",
summary: "4 步认识搜索、导航、作品详情和设置。",
steps: [
- uU("search", "搜索馆藏", "输入作品名、番号、艺人、厂牌或标签。搜索结果来自已经入库的内容。", "/", "#q, #searchBtn"),
- uU("navigation", "切换浏览入口", "在侧栏按人物、厂牌和标签浏览。手机上用导航按钮展开侧栏;入口与顺序可以在设置里调整。", "/", "#filterBtn, [data-sidebar-nav]"),
- uU("cards", "打开作品详情", "选择作品查看资料、版本和播放入口。首次扫描尚未入库时,可以先继续认识导航。", "/", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
- uU("preferences", "调整自己的界面", "侧栏底部的设置包含显示与播放偏好;手机上先展开侧栏。媒体目录、网络和后台服务放在其中的 Peach 配置入口。", "/", "#settingsBtn, #filterBtn")
+ 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")
]
},
{
@@ -47108,23 +47108,23 @@ var lU = (e, t, n, r, i, a) => ({
title: "找到并播放",
summary: "搜索、筛选、详情、版本、字幕和播放器。",
steps: [
- uU("library", "选择媒体库", "导航顶部可以切换全部媒体库或某个媒体库;手机上先展开侧栏。媒体库把不同目录组织成一组。", "/", "#brandHome, #filterBtn"),
- uU("search", "按关键词找内容", "输入作品、番号或人物名称,结合筛选与排序定位内容。搜索记录数量可在搜索与推荐中设置。", "/", "#q, #searchBtn"),
- uU("filter", "筛选与清除", "多个筛选条件会共同缩小结果。找不到内容时先检查媒体库和筛选条件。", "/", "[data-catalog-frame]"),
+ lU("library", "选择媒体库", "导航顶部可以切换全部媒体库或某个媒体库;手机上先展开侧栏。媒体库把不同目录组织成一组。", "/", "#brandHome, #filterBtn"),
+ lU("search", "按关键词找内容", "输入作品、番号或人物名称,结合筛选与排序定位内容。搜索记录数量可在搜索与推荐中设置。", "/", "#q, #searchBtn"),
+ lU("filter", "筛选与清除", "多个筛选条件会共同缩小结果。找不到内容时先检查媒体库和筛选条件。", "/", "[data-catalog-frame]"),
{
- ...lU("detail", "作品详情", "这里显示当前作品的标题和源文件工具。评分、人物和标签在下方;有分卷或版本的作品可从馆藏卡片进入相应队列。", "/", "[data-item-title]"),
+ ...cU("detail", "作品详情", "这里显示当前作品的标题和源文件工具。评分、人物和标签在下方;有分卷或版本的作品可从馆藏卡片进入相应队列。", "/", "[data-item-title]"),
surface: "detail"
},
{
- ...lU("player", "播放器控件", "底部控制条提供播放、进度、音量和全屏。右侧齿轮打开播放速度、字幕、画面旋转和清晰度等选项。", "/", "#stage .vjs-control-bar"),
+ ...cU("player", "播放器控件", "底部控制条提供播放、进度、音量和全屏。右侧齿轮打开播放速度、字幕、画面旋转和清晰度等选项。", "/", "#stage .vjs-control-bar"),
surface: "player"
},
{
- ...lU("subtitles", "字幕与播放选项", "从播放器齿轮菜单进入字幕,可以选择已有字幕、加载本地字幕文件或搜索字幕;播放速度和清晰度也在这个菜单中。", "/", "#stage [data-player-subtitles]"),
+ ...cU("subtitles", "字幕与播放选项", "从播放器齿轮菜单进入字幕,可以选择已有字幕、加载本地字幕文件或搜索字幕;播放速度和清晰度也在这个菜单中。", "/", "#stage [data-player-subtitles]"),
surface: "subtitles"
},
{
- ...lU("external", "外部播放器", "在这里选择本地播放器、M3U 播放列表或网络播放地址,再点打开。另一台设备需要能访问当前 Peach 地址。", "/", "#stage [data-local-playback-row]"),
+ ...cU("external", "外部播放器", "在这里选择本地播放器、M3U 播放列表或网络播放地址,再点打开。另一台设备需要能访问当前 Peach 地址。", "/", "#stage [data-local-playback-row]"),
surface: "detail"
}
]
@@ -47136,15 +47136,15 @@ var lU = (e, t, n, r, i, a) => ({
summary: "评分、标记、播放列表与当前播放队列。",
steps: [
{
- ...uU("marks", "评分", "点击星星给作品评分;下方的喜欢、稍后看和加入播放列表用于保存感兴趣的内容。", "/", "#stage [data-item-rating]"),
+ ...lU("marks", "评分", "点击星星给作品评分;下方的喜欢、稍后看和加入播放列表用于保存感兴趣的内容。", "/", "#stage [data-item-rating]"),
surface: "detail"
},
{
- ...uU("mark-actions", "标记与加入列表", "喜欢影响口味推荐,稍后看便于回找;加入播放列表可把作品整理到自己的列表。", "/", "#stage [data-item-feedback]"),
+ ...lU("mark-actions", "标记与加入列表", "喜欢影响口味推荐,稍后看便于回找;加入播放列表可把作品整理到自己的列表。", "/", "#stage [data-item-feedback]"),
surface: "detail"
},
- uU("lists", "建立播放列表", "在这里输入名称,创建自己的播放列表。之后从作品详情的加入播放列表按钮添加内容。", "/playlists", "[data-playlist-create]"),
- uU("queue", "从列表开始播放", "选择一张播放列表卡片进入队列,查看和调整播放顺序。没有列表时先创建,再加入作品。", "/playlists", "[data-playlist-card]")
+ lU("lists", "建立播放列表", "在这里输入名称,创建自己的播放列表。之后从作品详情的加入播放列表按钮添加内容。", "/playlists", "[data-playlist-create]"),
+ lU("queue", "从列表开始播放", "选择一张播放列表卡片进入队列,查看和调整播放顺序。没有列表时先创建,再加入作品。", "/playlists", "[data-playlist-card]")
]
},
{
@@ -47153,10 +47153,10 @@ var lU = (e, t, n, r, i, a) => ({
title: "按人物与主题浏览",
summary: "从人物、厂牌和标签继续发现相关馆藏。",
steps: [
- uU("people", "艺人与创作者", "选择人物卡片进入资料页,查看相关作品、照片与已连接的来源。上方可以切换艺人、卖家与在线人物。", "/performers", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
- uU("studios", "厂牌", "选择厂牌卡片集中查看作品。资料页中的作品仍会受到当前媒体库范围影响。", "/studios", "[data-index-body] [data-index-cell], [data-index-body] [data-empty-state]"),
- uU("tags", "标签与主题", "选择标签继续浏览相关馆藏;本地与在线使用不同的标签词表。", "/tags", "[data-index-body] [data-alpha-tag], [data-index-body] [data-tag-chip], [data-index-body] [data-empty-state]"),
- uU("manage-tags", "管理标签", "铅笔按钮打开标签管理,用于整理标签名称和关系;再次点击返回浏览。", "/tags", "[data-tag-mode]")
+ 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]")
]
},
{
@@ -47165,10 +47165,10 @@ var lU = (e, t, n, r, i, a) => ({
title: "JAV 与追新",
summary: "馆藏、新作、想要清单与高清版。",
steps: [
- uU("library", "JAV 馆藏", "按番号、出演者和厂牌查找已入库的作品,可以选择官方封面或预览图。", cU("library"), "[data-catalog-frame]"),
- uU("new", "发现推荐", "发现页按口味推荐作品。在这里切换馆藏或外部内容,并按标签筛选。", cU("discover"), "[data-jav-filter] [data-catalog-views]"),
- uU("wants", "查看想要清单", "喜欢的外部作品可以加入想要清单;在这里切换馆藏、发现与想要。", cU("discover"), "[aria-label=\"JAV 分区\"]"),
- uU("quality", "高清版", "待升级卡片列出当前版本信息和判定原因,可以查看版本或查找资源;没有目标时这里显示空状态。", "/quality-goals", "[data-goal-id], #main [data-empty-state]")
+ 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]")
]
},
{
@@ -47177,9 +47177,9 @@ var lU = (e, t, n, r, i, a) => ({
title: "关注创作者",
summary: "多来源更新、同作品合并和来源状态。",
steps: [
- uU("feed", "集中看关注更新", "来自不同来源的创作者更新汇集在这里,选择一项更新查看内容;尚未关注来源时,按空状态中的入口添加。", "/follow", "[data-follow-item], [data-follow-empty] [data-empty-state]"),
- uU("sources", "管理关注来源", "从列表查看启用状态、采集结果和失败原因;切换到添加区域,添加创作者或订阅来源。", "/subscriptions", "[aria-label=\"关注管理区域\"]"),
- uU("credentials", "按需配置凭据", "部分来源需要登录凭据;先确认要启用的来源,再展开对应站点,填写其要求的信息。", "/settings/subscriptions", "[data-guide-target=\"credentials\"]")
+ 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\"]")
]
},
{
@@ -47188,9 +47188,9 @@ var lU = (e, t, n, r, i, a) => ({
title: "专注观看",
summary: "播放墙、沉浸模式与详情小窗。",
steps: [
- uU("wall", "播放墙", "播放墙提供多画面观看入口。结束导览后点击进入,再选择要播放的内容。", "/", "#wallBtn"),
- uU("immerse", "沉浸模式", "沉浸模式适合连续观看。点击入口会进入观看流程,请在准备好播放时使用。", "/", "#immerseBtn"),
- uU("mini", "离开详情后继续看", "开启小窗播放后,离开详情可以继续观看。自动播放、小窗和快进步长都在浏览与播放设置中。", "/settings/playback", "#miniplayerSetting")
+ lU("wall", "播放墙", "播放墙提供多画面观看入口。结束导览后点击进入,再选择要播放的内容。", "/", "#wallBtn"),
+ lU("immerse", "沉浸模式", "沉浸模式适合连续观看。点击入口会进入观看流程,请在准备好播放时使用。", "/", "#immerseBtn"),
+ lU("mini", "离开详情后继续看", "开启小窗播放后,离开详情可以继续观看。自动播放、小窗和快进步长都在浏览与播放设置中。", "/settings/playback", "#miniplayerSetting")
]
},
{
@@ -47199,11 +47199,11 @@ var lU = (e, t, n, r, i, a) => ({
title: "整理与维护",
summary: "扫描、补资料、复核、文件整理与回收站。",
steps: [
- uU("scan", "扫描与补资料", "在媒体库处理区域选择扫描和资料处理范围。读取策略取决于媒体库配置;导览不会启动任务。", "/data-cleanup", "#libraryProcessing"),
- uU("review", "人工复核", "先按分类找到待复核资料,再查看项目的来源和证据后作决定。", "/review", "[aria-labelledby=\"reviewcategories\"]"),
- uU("organize", "文件整理", "文件整理先查看预览,确认命名与目标目录再执行。资料整理和真实文件操作有不同的影响范围。", "/data-cleanup", "[data-cleanup-organize]"),
- uU("trash", "回收站", "查看已移入回收站的作品,按需要恢复或处理。永久删除前认真核对确认框中的范围。", "/trash", "[data-media-grid] > [data-id], [data-catalog-row], [data-media-empty]"),
- uU("tasks", "任务与失败原因", "任务记录显示处理状态;展开记录查看详情与失败原因。还没有任务时,这里会说明哪些操作会留下记录。", "/tasks", "[data-run-id], #main [data-empty-state]")
+ 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]")
]
},
{
@@ -47212,10 +47212,10 @@ var lU = (e, t, n, r, i, a) => ({
title: "了解自己的馆藏",
summary: "统计、口味,以及浏览历史和书签来源。",
steps: [
- uU("stats", "馆藏统计", "选择统计视图查看馆藏、存储和观看情况,各视图中的入口可继续查看相关作品。", "/stats", "[aria-label=\"统计视图\"]"),
- uU("taste", "口味与记录", "在这里切换浏览器记录与 Peach 观看评价,分析各自的口味。", "/taste", "[aria-label=\"口味分析的数据来源\"]"),
- uU("import", "取得浏览历史与书签", "读取浏览器记录需要在运行 Peach 的电脑操作;更多方式菜单可以导入历史或书签文件,适合其它设备。", "/taste", "[data-guide-target=\"history-import\"]"),
- uU("history", "管理记录来源", "已取得的记录来源集中列在这里,可以停用本机浏览器读取或移除已导入的数据源;导览不会修改这些记录。", "/taste", "section[aria-label=\"数据源\"]")
+ 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=\"数据源\"]")
]
},
{
@@ -47224,9 +47224,9 @@ var lU = (e, t, n, r, i, a) => ({
title: "从外部加入内容",
summary: "云下载、目录映射与浏览器添加。",
steps: [
- uU("downloads", "配置下载渠道", "先连接支持的渠道,再指定云端目标目录与本地媒体目录。下载完成后按目录规则入库。", "/settings/downloads", "[data-guide-target=\"download\"]"),
- uU("search", "搜索资源", "资源搜索使用配置的索引器。查到结果后还需要你主动选择下载。", "/settings/subscriptions", "[data-guide-target=\"indexers\"]"),
- uU("browser", "浏览器添加 JAV", "用户脚本与 Peach 配对后可从浏览器添加作品。专用令牌、默认渠道和开关在下载渠道里管理。", "/settings/downloads", "[data-guide-target=\"browser\"]")
+ 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\"]")
]
},
{
@@ -47235,18 +47235,18 @@ var lU = (e, t, n, r, i, a) => ({
title: "手机与其他设备",
summary: "访问地址、密码、局域网和公网入口。",
steps: [
- uU("address", "找到访问地址", "同一局域网的设备使用 Peach 的局域网地址。仅本机访问时,其它设备无法连接。", "/settings/network", "[data-guide-target=\"port\"]"),
- uU("password", "访问密码", "能连接到 Peach 的设备按访问密码登录。显示偏好与访问权限是不同的设置。", "/settings/network", "[data-guide-target=\"access\"]"),
- uU("tunnel", "需要时启用公网入口", "Cloudflare 公网入口适合离开局域网后访问,需要按实际部署配置连接信息。", "/settings/network", "[data-guide-target=\"tunnel\"]")
+ 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\"]")
]
}
-], Vve = "当前浏览器 · 修改后自动保存", fU = "跟随馆藏 · 修改后自动保存", pU = "运行 Peach 的电脑 · 确认后保存配置", mU = (e, t, n = Vve) => t.map(([t, r, i, a, o]) => lU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), hU = [
+], Hve = "当前浏览器 · 修改后自动保存", dU = "跟随馆藏 · 修改后自动保存", fU = "运行 Peach 的电脑 · 确认后保存配置", pU = (e, t, n = Hve) => t.map(([t, r, i, a, o]) => cU(t, r, i, `/settings/${e}`, a || `[data-guide-target="${t}"]`, o || n)), mU = [
{
id: "appearance",
kind: "settings",
title: Of.appearance,
summary: "主题、光晕与导航入口。",
- steps: mU("appearance", [
+ steps: pU("appearance", [
[
"theme",
"主题",
@@ -47276,7 +47276,7 @@ var lU = (e, t, n, r, i, a) => ({
"导航入口与顺序",
"把常用入口放到侧栏,拖动调整顺序。",
"[data-sidebar-setting]",
- fU
+ dU
]
])
},
@@ -47285,7 +47285,7 @@ var lU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Of.playback,
summary: "列表呈现、悬停预览与播放行为。",
- steps: mU("playback", [
+ steps: pU("playback", [
[
"batch",
"每批作品",
@@ -47341,13 +47341,13 @@ var lU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Of.jav,
summary: "封面与新作筛选。",
- steps: mU("jav", [
+ steps: pU("jav", [
[
"names",
"女优名称",
"选择中文或日文名称;偏好跟随馆藏,其他设备读取同一份设置。",
"#performerNameLanguageSetting",
- fU
+ dU
],
[
"image",
@@ -47372,21 +47372,21 @@ var lU = (e, t, n, r, i, a) => ({
"隐藏大合集",
"过滤新作中的大合集,只影响新作展示,馆藏仍可查找。",
"#feedHideGroupSetting",
- fU
+ dU
],
[
"solo-compilations",
"隐藏单人合集",
"过滤新作中的单人合集,只影响新作展示,馆藏仍可查找。",
"#feedHideSoloSetting",
- fU
+ dU
],
[
"excerpts",
"隐藏切片",
"过滤新作中的切片,只影响新作展示,馆藏仍可查找。",
"#feedHideExcerptSetting",
- fU
+ dU
]
])
},
@@ -47395,12 +47395,12 @@ var lU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Of.search,
summary: "搜索记录、推荐数量与口味入口。",
- steps: [...mU("search", [[
+ steps: [...pU("search", [[
"history",
"搜索记录",
"设置保留的搜索记录上限,0 表示不记录。",
"#searchHistoryLimitSetting"
- ]], fU), ...mU("search", [[
+ ]], dU), ...pU("search", [[
"related",
"相关推荐数量",
"决定详情中显示多少项相关推荐。口味和记录来源在口味页面管理。",
@@ -47412,7 +47412,7 @@ var lU = (e, t, n, r, i, a) => ({
kind: "settings",
title: Of.content,
summary: "SFW 模式与画面显示。",
- steps: mU("content", [[
+ steps: pU("content", [[
"sfw",
"SFW 模式",
"隐藏敏感画面并停止悬停预览,适合需要遮挡画面的环境。访问控制请另设访问密码。",
@@ -47424,7 +47424,7 @@ var lU = (e, t, n, r, i, a) => ({
kind: "settings",
title: kf.library,
summary: "媒体库、目录、读取与处理方式。",
- steps: mU("library", [
+ steps: pU("library", [
[
"media",
"媒体库名称与外观",
@@ -47475,14 +47475,14 @@ var lU = (e, t, n, r, i, a) => ({
"视频预览",
"生成视频预览会读取视频并产生缓存。时间轴预览的开关与采集间隔控制本机磁盘缩略图;抽帧解码方式决定生成预览使用的解码器。修改后自动保存,并受媒体库处理方式与读取策略约束。"
]
- ], pU)
+ ], fU)
},
{
id: "subscriptions",
kind: "settings",
title: kf.subscriptions,
summary: "资料来源、关注、索引器与站点入口。",
- steps: mU("subscriptions", [
+ steps: pU("subscriptions", [
[
"sources",
"采集来源与登录状态",
@@ -47509,14 +47509,14 @@ var lU = (e, t, n, r, i, a) => ({
"作品资料站点",
"配置资料站点和镜像入口,用于打开相关作品页面。地址和登录凭据分别管理。"
]
- ], pU)
+ ], fU)
},
{
id: "downloads",
kind: "settings",
title: kf.downloads,
summary: "云下载目录、账号与浏览器配对。",
- steps: mU("downloads", [
+ steps: pU("downloads", [
[
"download",
"云下载",
@@ -47532,14 +47532,14 @@ var lU = (e, t, n, r, i, a) => ({
"浏览器添加 JAV",
"安装用户脚本并配对 Peach。默认渠道决定提交到哪里;启用开关控制功能,专用令牌可更新或关闭,脚本检测帮助确认配对。"
]
- ], pU)
+ ], fU)
},
{
id: "network",
kind: "settings",
title: kf.network,
summary: "访问端口、代理、密码和公网入口。",
- steps: mU("network", [
+ steps: pU("network", [
[
"port",
"访问地址与端口",
@@ -47560,14 +47560,14 @@ var lU = (e, t, n, r, i, a) => ({
"Cloudflare 公网入口",
"临时链接用于临时连接,命名隧道使用主机名与隧道令牌。连接状态显示是否已可用,按需要启用。"
]
- ], pU)
+ ], fU)
},
{
id: "app-maintenance",
kind: "settings",
title: kf.maintenance,
summary: "更新、存储、数据选择与应用维护。",
- steps: mU("maintenance", [
+ steps: pU("maintenance", [
[
"updates",
"检查更新",
@@ -47613,14 +47613,14 @@ var lU = (e, t, n, r, i, a) => ({
"卸载 Peach",
"卸载移除程序;完全卸载还移除设置、资料库、记录、凭据和缓存。执行前核对页面列出的数据目录与确认内容。"
]
- ], pU)
+ ], fU)
},
{
id: "diagnostics",
kind: "settings",
title: kf.diagnostics,
summary: "遇到问题时查看检查项与诊断报告。",
- steps: mU("diagnostics", [
+ steps: pU("diagnostics", [
[
"attention",
"需要关注的检查项",
@@ -47645,7 +47645,7 @@ var lU = (e, t, n, r, i, a) => ({
]
], "只读检查 · 重新检查与下载由你主动执行")
}
-], Hve = {
+], Uve = {
glow: [
["配色预设", "一次应用一组配色和参数,适合先挑选整体外观。"],
["强度", "控制光晕的明亮程度;太抢眼时降低。"],
@@ -47752,8 +47752,8 @@ var lU = (e, t, n, r, i, a) => ({
["上传预览", "查看本次会包含的内容,再决定是否启用明细上传。"]
]
};
-for (let e of hU) for (let t of e.steps) t.details = Hve[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 gU = [...dU, ...hU], Uve = [
+for (let e of mU) for (let t of e.steps) t.details = Uve[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], Wve = [
{
id: "browse",
kind: "interface",
@@ -47831,35 +47831,35 @@ var gU = [...dU, ...hU], Uve = [
]
}
];
-function Wve(e) {
- return e === "/" ? dU[0] : hU.find((t) => t.steps[0]?.route === e) || dU.find((t) => t.id !== "basics" && t.steps.some((t) => t.route === e)) || dU[0];
+function Gve(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];
}
// src/onboarding/guide-state.ts
-var Gve = () => ({
+var Kve = () => ({
version: 1,
campaign: "",
invited: !1,
completed: !1,
chapters: {}
});
-function _U(e, t) {
+function gU(e, t) {
let n = e.chapters[t.id]?.read || [];
return t.steps.every((e) => n.includes(e.id));
}
-function Kve(e, t) {
+function qve(e, t) {
let n = e.chapters[t.id];
- return !n || _U(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));
+ return !n || gU(e, t) ? 0 : n.next < t.steps.length ? n.next : t.steps.findIndex((e) => !n.read.includes(e.id));
}
-function qve() {
+function Jve() {
return B("/api/tutorial-progress");
}
-function Jve(e, t) {
+function Yve(e, t) {
return V("/api/tutorial-progress", {
campaign: e,
...t
});
}
-function Yve(e, t, n, r, i) {
+function Xve(e, t, n, r, i) {
let a = e.chapters[t] || {
next: 0,
read: [],
@@ -47877,99 +47877,99 @@ function Yve(e, t, n, r, i) {
}
};
}
-var vU = null, yU = /* @__PURE__ */ new Set();
-function bU(e = {}) {
- yU.size || (vU = e);
- for (let t of yU) t(e);
-}
-function Xve(e) {
- if (yU.add(e), vU) {
- let t = vU;
- vU = null, queueMicrotask(() => {
- yU.has(e) && e(t);
+var _U = null, vU = /* @__PURE__ */ new Set();
+function yU(e = {}) {
+ vU.size || (_U = e);
+ for (let t of vU) t(e);
+}
+function Zve(e) {
+ if (vU.add(e), _U) {
+ let t = _U;
+ _U = null, queueMicrotask(() => {
+ vU.has(e) && e(t);
});
}
return () => {
- yU.delete(e);
+ vU.delete(e);
};
}
// src/react/components/card.tsx
-var Zve = "min-w-0", Qve = {
+var Qve = "min-w-0", $ve = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, $ve = {
+}, eye = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, eye = {
+}, tye = {
line: "border border-border-button-default",
soft: "border border-separator-border",
error: "outline-1 -outline-offset-1 outline-border-error-default"
-}, tye = {
+}, nye = {
none: "",
default: "p-5"
-}, nye = "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", rye = "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 xU(e = {}) {
+}, rye = "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", iye = "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 = {}) {
let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");
return [
- Zve,
- Qve[t],
- $ve[s],
- tye[n],
- a ? eye[a] : "",
- r ? nye : "",
- i ? rye : "",
+ Qve,
+ $ve[t],
+ eye[s],
+ nye[n],
+ a ? tye[a] : "",
+ r ? rye : "",
+ i ? iye : "",
o ?? ""
].filter(Boolean).join(" ");
}
// src/react/onboarding/guide-directory.tsx
-var iye = {
- browse: WB,
- collect: xB,
- watch: zB,
- manage: jB,
- experience: LB,
- discovery: UB,
- storage: TB,
- system: GB
-}, aye = {
- basics: wB,
- "find-play": WB,
- entities: YB,
- jav: kB,
- save: xB,
- follow: UB,
- insights: bB,
- viewing: zB,
- devices: KB,
- external: EB,
- maintenance: JB,
- appearance: LB,
- playback: zB,
- content: OB,
- "search-settings": WB,
- "jav-settings": kB,
- subscriptions: UB,
- library: TB,
- downloads: EB,
- network: KB,
- "app-maintenance": JB,
- diagnostics: Vge
+var aye = {
+ browse: UB,
+ collect: bB,
+ watch: RB,
+ manage: AB,
+ experience: IB,
+ discovery: HB,
+ storage: wB,
+ system: WB
+}, oye = {
+ 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: Hge
};
-function oye({ chapter: e, className: t = "size-5" }) {
- let n = aye[e] || wB;
+function sye({ chapter: e, className: t = "size-5" }) {
+ let n = oye[e] || CB;
return /* @__PURE__ */ (0, I.jsx)(n, {
"aria-hidden": !0,
className: q(t, "shrink-0")
});
}
-function SU({ icon: e, title: t, description: n, children: r, completed: i = !1 }) {
+function xU({ 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: xU({
+ className: bU({
radius: "plain",
className: "flex flex-col gap-4"
}),
@@ -47998,8 +47998,8 @@ function SU({ icon: e, title: t, description: n, children: r, completed: i = !1
})]
});
}
-function CU({ chapter: e, progress: t, loading: n, start: r }) {
- let i = _U(t, e), a = !i && !!t.chapters[e.id];
+function SU({ chapter: e, progress: t, loading: n, start: r }) {
+ let i = gU(t, e), a = !i && !!t.chapters[e.id];
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
disabled: n,
@@ -48009,7 +48009,7 @@ function CU({ chapter: e, progress: t, loading: n, start: r }) {
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(oye, { chapter: e.id })
+ children: /* @__PURE__ */ (0, I.jsx)(sye, { chapter: e.id })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-1 flex-col gap-1",
@@ -48021,7 +48021,7 @@ function CU({ chapter: e, progress: t, loading: n, start: r }) {
children: e.summary
})]
}),
- i ? /* @__PURE__ */ (0, I.jsx)(wU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ i ? /* @__PURE__ */ (0, I.jsx)(CU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
children: [
a ? "继续 · " : "",
@@ -48029,17 +48029,17 @@ function CU({ chapter: e, progress: t, loading: n, start: r }) {
" 步"
]
}),
- /* @__PURE__ */ (0, I.jsx)(vB, {
+ /* @__PURE__ */ (0, I.jsx)(_B, {
"aria-hidden": !0,
className: "size-(--icon-inline) shrink-0 text-text-secondary"
})
]
});
}
-function wU() {
+function CU() {
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)(SB, {
+ children: [/* @__PURE__ */ (0, I.jsx)(xB, {
"aria-hidden": !0,
className: "size-4"
}), /* @__PURE__ */ (0, I.jsx)("span", {
@@ -48048,17 +48048,17 @@ function wU() {
})]
});
}
-function sye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading: a, start: o }) {
- let [s, c] = (0, F.useState)(null), l = gU.find((t) => t.id === (e === "interface" ? "basics" : "appearance")), u = _U(i, l), d = !u && !!i.chapters[l.id], f = t.trim().toLowerCase(), p = gU.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 cye({ 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));
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, I.jsxs)(SU, {
+ /* @__PURE__ */ (0, I.jsxs)(xU, {
completed: u,
- icon: e === "interface" ? wB : GB,
+ icon: e === "interface" ? CB : WB,
title: e === "interface" ? "先认识 Peach" : "按习惯调整 Peach",
description: e === "interface" ? "先用 4 步认识常用入口,其余功能用到时再看。" : "先了解外观与导航,其余设置按需要查看。",
- children: [u ? /* @__PURE__ */ (0, I.jsx)(wU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [u ? /* @__PURE__ */ (0, I.jsx)(CU, {}) : /* @__PURE__ */ (0, I.jsxs)("span", {
className: "text-body-2-regular text-text-secondary",
children: [l.steps.length, " 步 · 随时可以退出"]
}), /* @__PURE__ */ (0, I.jsx)(J, {
@@ -48071,26 +48071,26 @@ function sye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
})
})]
}),
- /* @__PURE__ */ (0, I.jsx)(nV, {
+ /* @__PURE__ */ (0, I.jsx)(tV, {
"aria-label": "搜索教程",
value: t,
onChange: n,
- children: /* @__PURE__ */ (0, I.jsx)(iV, {
+ children: /* @__PURE__ */ (0, I.jsx)(rV, {
type: "search",
placeholder: e === "settings" ? "搜索设置名称或用途" : "搜索功能或页面",
- leadingIcon: WB
+ leadingIcon: UB
})
}),
f ? p.length ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-chapters",
- children: p.map((e) => /* @__PURE__ */ (0, I.jsx)(CU, {
+ children: p.map((e) => /* @__PURE__ */ (0, I.jsx)(SU, {
chapter: e,
progress: i,
loading: a,
start: o
}, e.id))
- }) : /* @__PURE__ */ (0, I.jsx)(lV, {
- icon: WB,
+ }) : /* @__PURE__ */ (0, I.jsx)(cV, {
+ icon: UB,
title: "没有匹配的教程",
size: "compact",
children: "试试功能名或设置名称。"
@@ -48108,12 +48108,12 @@ function sye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-topics",
- children: Uve.filter((t) => t.kind === e).map((e) => {
- let t = iye[e.id];
+ children: Wve.filter((t) => t.kind === e).map((e) => {
+ let t = aye[e.id];
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-guide-topic": e.id,
className: "peach-guide-topic",
- children: /* @__PURE__ */ (0, I.jsx)(LH, {
+ children: /* @__PURE__ */ (0, I.jsx)(IH, {
trailing: !0,
isOpen: s === e.id,
onOpenChange: (t) => c(t ? e.id : null),
@@ -48138,8 +48138,8 @@ function sye({ 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)(CU, {
- chapter: gU.find((t) => t.id === e),
+ children: e.chapters.map((e) => /* @__PURE__ */ (0, I.jsx)(SU, {
+ chapter: hU.find((t) => t.id === e),
progress: i,
loading: a,
start: o
@@ -48153,14 +48153,14 @@ function sye({ kind: e, query: t, setQuery: n, context: r, progress: i, loading:
});
}
// src/onboarding/guide-entry.ts
-var TU = "侧栏收起时,先点左上角的导航按钮。", EU = (...e) => ({
+var wU = "侧栏收起时,先点左上角的导航按钮。", TU = (...e) => ({
path: ["侧栏", ...e],
- hint: TU
-}), DU = (e) => ({
+ hint: wU
+}), EU = (e) => ({
path: ["侧栏底部的设置", e],
- hint: TU
+ hint: wU
});
-function cye(e) {
+function lye(e) {
if (e.surface) return e.id === "external" ? { path: [
"作品卡片",
"作品详情",
@@ -48178,7 +48178,7 @@ function cye(e) {
let [t = "/", n = ""] = e.route.split("#")[0].split("?"), r = t.split("/")[2];
if (t.startsWith("/settings/")) {
let e = Of[r];
- if (e) return DU(e);
+ if (e) return EU(e);
let t = kf[r];
if (t) return {
path: [
@@ -48186,11 +48186,11 @@ function cye(e) {
"Peach 配置",
t
],
- hint: TU
+ hint: wU
};
}
let i = new URLSearchParams(n);
- if (t === "/jav" || i.get("jav") === "1") return EU("JAV", oU.find(([e]) => e === (i.get("tab") || "library"))?.[1] || oU[0][1]);
+ if (t === "/jav" || i.get("jav") === "1") return TU("JAV", aU.find(([e]) => e === (i.get("tab") || "library"))?.[1] || aU[0][1]);
if (t === "/") {
switch (e.id) {
case "search": return {
@@ -48200,9 +48200,9 @@ function cye(e) {
case "navigation": return { path: ["左上角导航按钮", "侧栏中的浏览入口"] };
case "library": return {
path: ["侧栏顶部", "媒体库选择器"],
- hint: TU
+ hint: wU
};
- case "preferences": return DU(Of.appearance);
+ case "preferences": return EU(Of.appearance);
case "wall": return { path: ["页面顶部", "播放墙按钮"] };
case "immerse": return { path: ["页面顶部", "沉浸模式按钮"] };
case "cards":
@@ -48224,22 +48224,22 @@ function cye(e) {
hint: "来源、时长等更多筛选位于侧栏。"
};
}
- return EU("首页");
+ return TU("首页");
}
if ([
"/review",
"/quality-goals",
"/trash"
- ].includes(t)) return EU("管理", $f["/data-cleanup"].title, t === "/trash" ? "回收站" : $f[t].title);
+ ].includes(t)) return TU("管理", $f["/data-cleanup"].title, t === "/trash" ? "回收站" : $f[t].title);
let a = $f[t];
if (a?.nav && a.title) {
- let e = EU(a.title);
+ let e = TU(a.title);
return t === "/playlists" && (e.hint = "若侧栏没有播放列表,到设置 → 外观与导航 → 导航入口与顺序添加;手机上先展开侧栏。"), e;
}
- if (a?.section && a.title) return EU("管理", a.title);
+ if (a?.section && a.title) return TU("管理", a.title);
}
// src/react/onboarding/guide-help.tsx
-function lye({ details: e }) {
+function uye({ 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", {
@@ -48255,8 +48255,8 @@ function lye({ details: e }) {
}) : null;
}
// src/react/onboarding/guide-popover.tsx
-function uye({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {
- let c = RV(), l = cye(e);
+function dye({ step: e, position: t, total: n, missing: r, next: i, previous: a, close: o, invitation: s }) {
+ let c = LV(), l = lye(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "peach-guide-popover-content",
onPointerDown: (e) => e.stopPropagation(),
@@ -48267,7 +48267,7 @@ function uye({ 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)(fV, {
+ }), /* @__PURE__ */ (0, I.jsx)(dV, {
label: s ? "关闭教程提示" : "结束导览",
onPress: o
})]
@@ -48284,7 +48284,7 @@ function uye({ 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)(Uge, {
+ children: [/* @__PURE__ */ (0, I.jsx)(Wge, {
className: "size-4 shrink-0",
"aria-hidden": "true"
}), "打开方式"]
@@ -48293,7 +48293,7 @@ function uye({ 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)(vB, {
+ children: [t ? /* @__PURE__ */ (0, I.jsx)(_B, {
className: "size-4 shrink-0 text-text-secondary",
"aria-hidden": "true"
}) : null, /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
@@ -48314,15 +48314,15 @@ function uye({ 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)(LH, {
+ e.details?.length ? /* @__PURE__ */ (0, I.jsx)(IH, {
summary: "更多说明",
- children: /* @__PURE__ */ (0, I.jsx)(lye, { details: e.details })
+ children: /* @__PURE__ */ (0, I.jsx)(uye, { 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)(cV, {
+ r ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
children: e.surface ? "尚未取得可演示的视频或对应控件。请先添加视频,或跳过后稍后重看。" : "当前页面未显示这个入口,可能尚无内容、没有配置权限或仍在加载。可以跳过,稍后重看。"
}) : null
@@ -48376,14 +48376,14 @@ function uye({ step: e, position: t, total: n, missing: r, next: i, previous: a,
]
});
}
-function OU(e, t, n) {
+function DU(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)(uye, { ...n }))), () => i.unmount();
+ return (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(dye, { ...n }))), () => i.unmount();
}
// src/react/onboarding/tutorial-center.tsx
-function dye({ go: e }) {
+function fye({ 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();
@@ -48397,8 +48397,8 @@ function dye({ go: e }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, I.jsxs)(SU, {
- icon: Hge,
+ /* @__PURE__ */ (0, I.jsxs)(xU, {
+ icon: Uge,
title: "从第一份收藏开始",
description: "连接媒体目录,查看入库结果,再打开馆藏。",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
@@ -48409,7 +48409,7 @@ function dye({ go: e }) {
children: "连接媒体目录"
})]
}),
- r ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ r ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -48425,7 +48425,7 @@ function dye({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(jB, {
+ children: /* @__PURE__ */ (0, I.jsx)(AB, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48444,7 +48444,7 @@ function dye({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(e_e, {
+ children: /* @__PURE__ */ (0, I.jsx)(t_e, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48463,7 +48463,7 @@ function dye({ go: e }) {
/* @__PURE__ */ (0, I.jsxs)("li", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "peach-guide-topic-icon",
- children: /* @__PURE__ */ (0, I.jsx)(zB, {
+ children: /* @__PURE__ */ (0, I.jsx)(RB, {
"aria-hidden": !0,
className: "size-5"
})
@@ -48481,7 +48481,7 @@ function dye({ go: e }) {
] })
]
}),
- /* @__PURE__ */ (0, I.jsx)(LH, {
+ /* @__PURE__ */ (0, I.jsx)(IH, {
summary: "更多接入方式",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-guide-routes",
@@ -48490,31 +48490,31 @@ function dye({ go: e }) {
title: "关注创作者",
description: l ? "当前启用来源的必要凭据已具备。" : s.length ? "已有关注来源,请检查必要凭据。" : "添加想持续追踪的创作者与来源。",
path: "/subscriptions",
- icon: UB
+ icon: HB
},
{
title: "口味与记录",
description: t?.taste.history_sources ? `已导入 ${t.taste.history_sources} 份浏览器历史。` : "按需要导入浏览历史或书签。",
path: "/taste",
- icon: bB
+ icon: yB
},
{
title: "云下载与浏览器添加",
description: "连接渠道、设置目标目录,按需要配对用户脚本。",
path: "/settings/downloads",
- icon: EB
+ icon: TB
},
{
title: "手机访问",
description: "查看访问范围、地址与密码。",
path: "/settings/network",
- icon: KB
+ icon: GB
},
...u ? [{
title: "人工复核",
description: `当前有 ${u.toLocaleString()} 条待复核资料。`,
path: "/review",
- icon: SB
+ icon: xB
}] : []
].map(({ title: t, description: n, path: r, icon: i }) => /* @__PURE__ */ (0, I.jsxs)("div", { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -48541,16 +48541,16 @@ function dye({ go: e }) {
]
});
}
-var kU = "tutorial-sync";
-function fye({ 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)(Gve), [d, f] = (0, F.useState)(!1), [p, m] = (0, F.useState)(""), [h, g] = (0, F.useState)(""), [_, v] = (0, F.useState)(!1), y = RV(), b = (0, F.useRef)(null), x = (0, F.useRef)(null), S = (0, F.useRef)(0), C = (0, F.useRef)(l);
+var OU = "tutorial-sync";
+function pye({ 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)(Kve), [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);
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 qve();
+ let n = await Jve();
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;
@@ -48560,7 +48560,7 @@ function fye({ actions: e }) {
let n = ++j.current;
A.current += 1, k.current = k.current.then(async () => {
try {
- let r = await Jve(e.campaign, t);
+ let r = await Yve(e.campaign, t);
M.current && n === j.current && ee(r);
} catch {
M.current && (m("教程进度未保存到本机账本,其他设备尚未同步。请重新读取后继续。"), n === j.current && await N(!1));
@@ -48570,8 +48570,8 @@ function fye({ actions: e }) {
});
}, P = (0, F.useRef)(N);
P.current = N, (0, F.useEffect)(() => {
- !p || t ? UV.dismiss(kU) : UV.error(p, {
- id: kU,
+ !p || t ? HV.dismiss(OU) : HV.error(p, {
+ id: OU,
toasterId: "receipts",
duration: Infinity,
action: {
@@ -48582,7 +48582,7 @@ function fye({ actions: e }) {
}
});
}, [p, t]), (0, F.useEffect)(() => () => {
- UV.dismiss(kU);
+ HV.dismiss(OU);
}, []), (0, F.useEffect)(() => {
if (!d && !p) return;
let e = document.getElementById("tutorialBtn");
@@ -48603,7 +48603,7 @@ function fye({ actions: e }) {
let i = !1, a = null;
return import("./peach-app.guide-driver-BZX0VpRC.js").then(({ createGuideSession: t }) => {
i || (a = t({
- mountPopover: OU,
+ mountPopover: DU,
invitation: !0,
navigate: e.navigate,
previous: () => {},
@@ -48642,12 +48642,12 @@ function fye({ actions: e }) {
D.current = !1;
});
document.addEventListener("input", e), document.addEventListener("change", e);
- let r = Xve((e) => {
+ let r = Zve((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 = gU.find((t) => t.id === e.chapter);
+ let r = hU.find((t) => t.id === e.chapter);
e.reopen ? (i(!1), te({
...C.current,
invited: !0,
@@ -48680,7 +48680,7 @@ function fye({ actions: e }) {
g("请先关闭正在播放的小窗,再开始播放器导览。");
return;
}
- let i = r ? Kve(C.current, t) : 0;
+ let i = r ? qve(C.current, t) : 0;
if (D.current && t.steps.some((e) => e.route && e.route !== location.pathname)) {
g("当前配置表单有编辑内容。请先处理表单,再开启需要切换页面的章节。");
return;
@@ -48714,7 +48714,7 @@ function fye({ actions: e }) {
}), b.current?.show(t.steps[w.current], w.current, t.steps.length);
};
b.current = r({
- mountPopover: OU,
+ mountPopover: DU,
navigate: e.navigate,
close: () => {
ie(!0), o(t.kind);
@@ -48725,18 +48725,18 @@ function fye({ actions: e }) {
},
next: async (e = !1) => {
let n = w.current + 1;
- if (te(Yve(C.current, t.id, t.steps[w.current].id, n, e), {
+ if (te(Xve(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" && _U(C.current, t) && te({
+ if (t.id === "basics" && gU(C.current, t) && te({
...C.current,
completed: !0
}, { action: "complete" }), await k.current, a !== S.current) return;
- ie(!0), o(t.kind), g(_U(C.current, t) ? t.id === "basics" ? C.current.completed ? "快速导览已完成,所有设备的教程入口都会收起。以后可到设置 → Peach 配置 → 应用与维护 → 新手教程重新打开,其余内容按需查看。" : "导览已结束,但完成状态未保存。请重新读取教程状态后再试。" : "这段导览已完成。需要时再了解其他功能。" : "本章已结束,未显示的步骤尚未完成,可以稍后继续。");
+ ie(!0), o(t.kind), g(gU(C.current, t) ? t.id === "basics" ? C.current.completed ? "快速导览已完成,所有设备的教程入口都会收起。以后可到设置 → Peach 配置 → 应用与维护 → 新手教程重新打开,其余内容按需查看。" : "导览已结束,但完成状态未保存。请重新读取教程状态后再试。" : "这段导览已完成。需要时再了解其他功能。" : "本章已结束,未显示的步骤尚未完成,可以稍后继续。");
} else w.current = n, l();
}
}), l();
@@ -48749,8 +48749,8 @@ function fye({ actions: e }) {
O.current = (e, t) => {
se(e, t);
};
- let ce = Wve(location.pathname);
- return (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: /* @__PURE__ */ (0, I.jsxs)(oV, {
+ let ce = Gve(location.pathname);
+ return (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: /* @__PURE__ */ (0, I.jsxs)(aV, {
isOpen: t,
onOpenChange: (e) => {
e || ae();
@@ -48765,18 +48765,18 @@ function fye({ actions: e }) {
id: "guideTitle",
className: "text-title-2-medium text-text-primary",
children: "新手教程"
- }), /* @__PURE__ */ (0, I.jsx)(fV, {
+ }), /* @__PURE__ */ (0, I.jsx)(dV, {
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)(tU, {
+ children: /* @__PURE__ */ (0, I.jsx)(eU, {
"aria-label": "教程路径",
name: "guide-path",
orientation: "horizontal",
- className: nU,
+ className: tU,
value: a,
onChange: (e) => {
o(e), c(""), g("");
@@ -48785,9 +48785,9 @@ function fye({ actions: e }) {
["start", "开始使用"],
["interface", "界面导览"],
["settings", "设置导览"]
- ].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(jz, {
+ ].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(Az, {
value: e,
- className: rU,
+ className: nU,
children: t
}, e))
})
@@ -48798,7 +48798,7 @@ function fye({ actions: e }) {
ref: y,
className: "peach-guide-body",
children: [
- p ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ p ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
className: "mb-4",
action: /* @__PURE__ */ (0, I.jsx)(J, {
@@ -48810,12 +48810,12 @@ function fye({ actions: e }) {
}),
children: p
}) : null,
- h ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ h ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
className: "mb-4",
children: h
}) : null,
- a === "start" ? /* @__PURE__ */ (0, I.jsx)(dye, { go: oe }) : /* @__PURE__ */ (0, I.jsx)(sye, {
+ a === "start" ? /* @__PURE__ */ (0, I.jsx)(fye, { go: oe }) : /* @__PURE__ */ (0, I.jsx)(cye, {
kind: a,
query: s,
setQuery: c,
@@ -48833,15 +48833,15 @@ function fye({ actions: e }) {
}) }), document.body);
}
// src/react/client-updates.tsx
-var pye = 12e4, mye = 15e3, AU = () => document.visibilityState !== "hidden", jU = /* @__PURE__ */ new Set([
+var mye = 12e4, hye = 15e3, kU = () => document.visibilityState !== "hidden", AU = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), MU = "/settings/maintenance#releaseUpdates";
-function hye() {
+]), jU = "/settings/maintenance#releaseUpdates";
+function gye() {
try {
let e = JSON.parse(document.getElementById("peach-client-runtime")?.textContent || "null");
return typeof e?.version == "string" && typeof e?.build_id == "string" ? {
@@ -48852,23 +48852,23 @@ function hye() {
return null;
}
}
-function NU() {
- let e = (0, F.useRef)(hye()), [t, n] = (0, F.useState)(null);
+function MU() {
+ let e = (0, F.useRef)(gye()), [t, n] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
let t = !1, r, i, a = async () => {
- if (t || !AU()) return;
+ if (t || !kU()) return;
let o = new AbortController();
i = o;
- let s = setTimeout(() => o.abort(), mye);
+ let s = setTimeout(() => o.abort(), hye);
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 && AU() && (r = setTimeout(a, pye)));
+ clearTimeout(s), i === o && (i = void 0, !t && kU() && (r = setTimeout(a, mye)));
}
}, o = () => {
- clearTimeout(r), i?.abort(), i = void 0, AU() && a();
+ clearTimeout(r), i?.abort(), i = void 0, kU() && 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);
@@ -48878,12 +48878,12 @@ function NU() {
refresh: !!t && !!e.current && (t.runtime.version !== e.current.version || t.runtime.build_id !== e.current.build_id)
};
}
-function gye({ navigate: e }) {
- let { snapshot: t, refresh: n } = NU(), [r, i] = (0, F.useState)(""), a = document.querySelector("[data-network-banner]");
+function _ye({ navigate: e }) {
+ let { snapshot: t, refresh: n } = MU(), [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" : jU.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" : AU.has(s.state) ? "preparing" : o.state === "available" && o.latest_version ? "available" : null;
if (!l) return null;
- let u = (s.state === "ready" || jU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
+ let u = (s.state === "ready" || AU.has(s.state)) && s.version || o.latest_version, d = JSON.stringify(l === "refresh" ? [
l,
c.version,
c.build_id
@@ -48906,22 +48906,22 @@ function gye({ navigate: e }) {
children: [" Peach ", u]
}) : null] })] }), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex-wrap",
- children: [l === "refresh" ? /* @__PURE__ */ (0, I.jsx)(fH, {
+ children: [l === "refresh" ? /* @__PURE__ */ (0, I.jsx)(dH, {
variant: "secondary",
size: "small",
onClick: () => window.location.reload(),
"data-copy-key": "clientUpdates.refresh.action",
children: "刷新页面"
- }) : /* @__PURE__ */ (0, I.jsx)(fH, {
+ }) : /* @__PURE__ */ (0, I.jsx)(dH, {
variant: "secondary",
size: "small",
- href: MU,
+ href: jU,
onClick: (t) => {
- t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(MU));
+ t.button !== 0 || t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || (t.preventDefault(), e(jU));
},
"data-copy-key": `clientUpdates.${l}.action`,
children: l === "preparing" ? "查看进度" : "查看更新"
- }), /* @__PURE__ */ (0, I.jsx)(fH, {
+ }), /* @__PURE__ */ (0, I.jsx)(dH, {
variant: "secondary",
size: "small",
onClick: () => i(d),
@@ -48932,8 +48932,8 @@ function gye({ navigate: e }) {
}, d), a);
}
// src/react/router/pages/settings.tsx
-function _ye() {
- let e = (0, F.useContext)(JW), { pathname: t } = ef();
+function vye() {
+ let e = (0, F.useContext)(qW), { pathname: t } = ef();
return (0, F.useEffect)(() => {
e?.openSettings?.(Nf(t));
}, [e, t]), (0, F.useEffect)(() => () => {
@@ -48943,7 +48943,7 @@ function _ye() {
}, [e]), null;
}
// src/junk-queue.ts
-var PU = [
+var NU = [
[
"",
"全部",
@@ -48979,40 +48979,40 @@ var PU = [
"其它",
"hard-drive"
]
-], vye = (e) => PU.find(([t]) => t === e)?.[0] ?? "";
-function FU(e) {
+], yye = (e) => NU.find(([t]) => t === e)?.[0] ?? "";
+function PU(e) {
let t = new URLSearchParams(e);
return {
- kind: vye(t.get("type")),
+ kind: yye(t.get("type")),
view: t.get("view") === "dismissed" ? "dismissed" : "pending"
};
}
-function IU(e = "", t = "pending") {
+function FU(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 LU(e) {
+function IU(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: IU("", "pending")
+ href: FU("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: IU("", "dismissed")
+ href: FU("", "dismissed")
};
}
-var RU = (e) => e === "dismissed" ? "已排除" : "待判断", zU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
-function yye({ kind: e, view: t }) {
- let n = PU.map(([n, r, i]) => `<a href="${IU(n, t)}" data-junk-kind-link="${n}"${n === e ? " aria-current=\"page\"" : ""}>${zU(i)}${z(r)}</a>`).join(""), r = LU(t);
- return `<div class="peach-react" data-junk-count-skeleton=""><div data-junk-count=""><div data-junk-summary="" aria-live="polite">${Is(RU(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\"" : ""}>${zU(r.glyph)}${r.label}</a></nav></div></div></div>`;
+var LU = (e) => e === "dismissed" ? "已排除" : "待判断", RU = (e) => `<svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-${e}"></use></svg>`;
+function bye({ 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">${Is(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>`;
}
// src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function bye(e, t, n) {
+function xye(e, t, n) {
(0, F.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -49026,7 +49026,7 @@ function bye(e, t, n) {
n
]);
}
-function xye(e, t) {
+function Sye(e, t) {
let n = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
if (!e) return;
@@ -49039,33 +49039,33 @@ function xye(e, t) {
}, [e, t]), (e) => e && n.current ? (n.current = !1, !1) : !0;
}
// src/react/boardui/components/base/select/select.tsx
-var BU = (0, F.createContext)("md");
-function VU({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+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 }) {
let l = (0, F.useRef)(null), u = (0, F.useRef)(null), [d, f] = (0, F.useState)(!1);
- bye(d, () => f(!1), [l, u]);
- let p = xye(d, l);
- return /* @__PURE__ */ (0, I.jsx)(Xme, {
+ xye(d, () => f(!1), [l, u]);
+ let p = Sye(d, l);
+ return /* @__PURE__ */ (0, I.jsx)(Zme, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
className: q("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(BL, {
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsxs)(zL, {
ref: l,
className: q("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),
- children: [/* @__PURE__ */ (0, I.jsx)($me, {
+ children: [/* @__PURE__ */ (0, I.jsx)(ehe, {
className: q("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, I.jsx)(u_e, { className: q("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, I.jsx)(uz, {
+ }), /* @__PURE__ */ (0, I.jsx)(d_e, { className: q("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, I.jsx)(lz, {
ref: u,
isNonModal: !0,
offset: 4,
- className: q(p_e, AV, "p-2", n),
- children: /* @__PURE__ */ (0, I.jsx)(vme, {
+ className: q(m_e, kV, "p-2", n),
+ children: /* @__PURE__ */ (0, I.jsx)(yme, {
items: a,
- className: q(m_e, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, I.jsx)(BU.Provider, {
+ className: q(h_e, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, I.jsx)(zU.Provider, {
value: r,
children: i
})
@@ -49073,16 +49073,16 @@ function VU({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function HU({ className: e, children: t, ...n }) {
- let r = (0, F.useContext)(BU);
- return /* @__PURE__ */ (0, I.jsx)(xme, {
+function VU({ className: e, children: t, ...n }) {
+ let r = (0, F.useContext)(zU);
+ return /* @__PURE__ */ (0, I.jsx)(Sme, {
...n,
- className: (t) => q(jV, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
+ className: (t) => q(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),
children: t
});
}
// src/react/boardui/components/base/badges/chip.tsx
-var UU = FI({
+var HU = PI({
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",
@@ -49101,15 +49101,15 @@ var UU = FI({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function WU({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function UU({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
ref: r,
- className: q(UU.base, UU.variant[e], UU.color[t], n),
+ className: q(HU.base, HU.variant[e], HU.color[t], n),
...i
});
}
// src/react/components/art-slot.tsx
-function GU({ artwork: e, identity: t = e.html, relayout: n }) {
+function WU({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, F.useState)({
identity: t,
artwork: e
@@ -49128,7 +49128,7 @@ function GU({ artwork: e, identity: t = e.html, relayout: n }) {
});
}
// src/react/activity/downloads-panel.tsx
-var KU = "/api/downloads", qU = ["downloads"], Sye = "/api/downloads/cancel", Cye = "/api/downloads/postprocess", JU = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, wye = {
+var GU = "/api/downloads", KU = ["downloads"], Cye = "/api/downloads/cancel", wye = "/api/downloads/postprocess", qU = (e) => e?.tasks.some((e) => e.cancellable || e.postprocess_active) ? 5e3 : 3e4, Tye = {
ingested: "lime",
failed: "rose",
cancelled: "neutral",
@@ -49138,21 +49138,21 @@ var KU = "/api/downloads", qU = ["downloads"], Sye = "/api/downloads/cancel", Cy
landed: "lime",
submitted: "neutral",
submit_pending: "yellow"
-}, YU = (e) => {
- let t = e.display_code || e.code || "", { title: n } = HI({
+}, JU = (e) => {
+ let t = e.display_code || e.code || "", { title: n } = VI({
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}`;
-}, XU = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", Tye = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
-function Eye() {
+}, YU = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "", Eye = (e) => (e.postprocess_detail || "").replace("正片已绑定", "已确认主视频对应的作品").replace("整理跳过:", "未整理文件:");
+function Dye() {
let e = (0, F.useId)(), t = Lt({
- queryKey: [...qU, "pages"],
+ queryKey: [...KU, "pages"],
initialPageParam: null,
- queryFn: ({ signal: e, pageParam: t }) => B(`${KU}?limit=20${t === null ? "" : `&before_id=${t}`}`, e),
+ queryFn: ({ signal: e, pageParam: t }) => B(`${GU}?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) => JU(e) === 5e3) ? 5e3 : 3e4
+ refetchInterval: (e) => e.state.data?.pages.some((e) => qU(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",
@@ -49164,14 +49164,14 @@ function Eye() {
className: "text-title-2-medium text-text-primary",
children: "云下载"
}),
- t.error ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ t.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
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)(Dye, {
+ children: r.map((e) => /* @__PURE__ */ (0, I.jsx)(Oye, {
task: e,
writable: n[0]?.available ?? !1
}, e.id))
@@ -49179,9 +49179,9 @@ function Eye() {
t.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: gB,
+ leadingIcon: hB,
className: "self-start",
- ...pV(t.isFetchingNextPage),
+ ...fV(t.isFetchingNextPage),
onClick: () => {
t.isFetching || t.fetchNextPage();
},
@@ -49190,16 +49190,16 @@ function Eye() {
]
});
}
-function Dye({ task: e, writable: t }) {
- aL();
- let n = ae(), r = pH(), [i, a] = (0, F.useState)(!1), [o, s] = (0, F.useState)(!1), c = (0, F.useId)(), l = XU(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 Oye({ task: e, writable: t }) {
+ iL();
+ 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 = [
e.display_code || e.code ? "" : "番号未识别",
e.target,
- rL(e.submitted_at)
+ nL(e.submitted_at)
].filter(Boolean).join(" · "), h = () => {
- n.invalidateQueries({ queryKey: qU });
+ n.invalidateQueries({ queryKey: KU });
}, g = () => {
- r.run("cancel", (t) => V(Sye, { id: e.id }, "POST", t), h);
+ r.run("cancel", (t) => V(Cye, { id: e.id }, "POST", t), h);
}, _ = () => {
let t = {
magnet: e.source_uri,
@@ -49209,16 +49209,16 @@ function Dye({ task: e, writable: t }) {
title: e.title,
origin: e.origin
};
- r.run("resubmit", (e) => V(KU, t, "POST", e), h);
+ r.run("resubmit", (e) => V(GU, t, "POST", e), h);
}, v = () => {
navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));
}, y = () => {
- r.run("postprocess", (t) => V(Cye, { id: e.id }, "POST", t), h);
+ r.run("postprocess", (t) => V(wye, { id: e.id }, "POST", t), h);
};
return /* @__PURE__ */ (0, I.jsxs)("li", {
"data-download-state": e.state,
"data-download-id": e.id,
- className: xU({
+ className: bU({
padding: "none",
bordered: p ? "error" : void 0,
className: "flex flex-col"
@@ -49236,7 +49236,7 @@ function Dye({ task: e, writable: t }) {
"data-media-nopic": "",
children: "无封面"
}),
- u?.has_cover ? /* @__PURE__ */ (0, I.jsx)(GU, {
+ u?.has_cover ? /* @__PURE__ */ (0, I.jsx)(WU, {
artwork: {
kind: "cover",
html: So(u, "big")
@@ -49246,7 +49246,7 @@ function Dye({ task: e, writable: t }) {
f ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-download-cover-link": "",
href: f,
- "aria-label": `打开作品详情:${YU(e)}`,
+ "aria-label": `打开作品详情:${JU(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
]
@@ -49257,19 +49257,19 @@ function Dye({ 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: YU(e),
+ title: JU(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: YU(e)
- }) : YU(e)
+ children: JU(e)
+ }) : JU(e)
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex shrink-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, I.jsx)(WU, {
- color: wye[e.state] ?? "neutral",
+ children: [/* @__PURE__ */ (0, I.jsx)(UU, {
+ color: Tye[e.state] ?? "neutral",
children: e.state_label
- }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(WU, {
+ }), e.state === "ingested" ? /* @__PURE__ */ (0, I.jsx)(UU, {
color: e.postprocess_state === "complete" ? "lime" : e.postprocess_state === "failed" ? "rose" : e.postprocess_state === "running" ? "blue" : "neutral",
children: e.postprocess_label
}) : null]
@@ -49279,7 +49279,7 @@ function Dye({ 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)(VH, {
+ children: /* @__PURE__ */ (0, I.jsx)(BH, {
source: e.provider,
label: e.provider_label
})
@@ -49306,7 +49306,7 @@ function Dye({ 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)(DH, {
+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, I.jsx)(EH, {
label: "远端下载进度",
value: Math.round(e.progress * 100),
max: 100
@@ -49316,7 +49316,7 @@ function Dye({ task: e, writable: t }) {
title: e.ledger_path,
children: e.ledger_path
}) : null,
- r.error ? /* @__PURE__ */ (0, I.jsx)(FH, { children: r.error }) : null,
+ r.error ? /* @__PURE__ */ (0, I.jsx)(PH, { 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",
@@ -49341,21 +49341,21 @@ function Dye({ task: e, writable: t }) {
e.cancellable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...pV(r.busy === "cancel"),
+ ...fV(r.busy === "cancel"),
onClick: g,
children: "取消"
}) : null,
e.resubmittable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...pV(r.busy === "resubmit"),
+ ...fV(r.busy === "resubmit"),
onClick: _,
children: "重新提交"
}) : null,
e.postprocess_retryable ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...pV(r.busy === "postprocess"),
+ ...fV(r.busy === "postprocess"),
onClick: y,
children: "重试入库后整理"
}) : null
@@ -49370,37 +49370,37 @@ function Dye({ 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: YU(e)
+ children: JU(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 || Tye(e)
+ children: l || Eye(e)
})
}) : null
]
});
}
// src/react/activity/work-code.ts
-var ZU = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), QU = (e, t) => !!ZU(e) && ZU(e) === ZU(t);
+var XU = (e) => (e || "").toUpperCase().replace(/[^A-Z0-9]/g, ""), ZU = (e, t) => !!XU(e) && XU(e) === XU(t);
// src/react/components/ime.ts
-function $U(e) {
+function QU(e) {
return e.isComposing || e.keyCode === 229;
}
// src/react/activity/resource-search.tsx
-function Oye({ className: e }) {
+function kye({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("span", {
className: e,
"aria-hidden": !0,
dangerouslySetInnerHTML: { __html: Bs("") }
});
}
-function kye(e) {
+function Aye(e) {
return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";
}
-function Aye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
- let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => kye(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 = pH(), b = (0, F.useRef)(null);
+function jye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
+ let [a, o] = (0, F.useState)(e), [s, c] = (0, F.useState)(() => Aye(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);
(0, F.useEffect)(() => () => b.current?.abort(), []);
let x = () => {
if (!a.trim() || y.busy) return;
@@ -49416,7 +49416,7 @@ function Aye({ 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) => QU(e.code, t));
+ let r = (n.items || []).find((e) => ZU(e.code, t));
i(r ? {
code: r.code,
title: String(r.catalog_title || r.name || ""),
@@ -49437,28 +49437,28 @@ function Aye({ 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)(PH, { children: [
+ t ? /* @__PURE__ */ (0, I.jsxs)(NH, { children: [
"版本目标:",
t,
"。可在下方调整搜索优先项;完整度与水印需要逐条复核。"
] }) : null,
- /* @__PURE__ */ (0, I.jsx)(aV, {
+ /* @__PURE__ */ (0, I.jsx)(iV, {
label: "按番号查找资源",
value: a,
maxLength: 80,
placeholder: "输入番号,按回车搜索",
enterKeyHint: "search",
- leadingIcon: y.busy ? Oye : WB,
+ leadingIcon: y.busy ? kye : UB,
isReadOnly: !!y.busy,
"aria-busy": !!y.busy,
onChange: o,
onKeyDown: (e) => {
- e.key === "Enter" && !$U(e.nativeEvent) && (e.preventDefault(), x());
+ e.key === "Enter" && !QU(e.nativeEvent) && (e.preventDefault(), x());
}
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex flex-col gap-1",
- children: [/* @__PURE__ */ (0, I.jsx)(IH, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(VU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(FH, { children: "优先寻找" }), /* @__PURE__ */ (0, I.jsxs)(BU, {
"aria-label": "优先寻找",
selectedKey: s,
isDisabled: !!y.busy,
@@ -49466,15 +49466,15 @@ function Aye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
e !== null && c(String(e));
},
children: [
- /* @__PURE__ */ (0, I.jsx)(HU, {
+ /* @__PURE__ */ (0, I.jsx)(VU, {
id: "quality",
children: "高清"
}),
- /* @__PURE__ */ (0, I.jsx)(HU, {
+ /* @__PURE__ */ (0, I.jsx)(VU, {
id: "chinese",
children: "中字"
}),
- /* @__PURE__ */ (0, I.jsx)(HU, {
+ /* @__PURE__ */ (0, I.jsx)(VU, {
id: "uncensored",
children: "无码"
})
@@ -49483,32 +49483,32 @@ function Aye({ 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)(aV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(iV, {
label: "最小体积(GiB)",
inputMode: "decimal",
value: l,
onChange: u
- }), /* @__PURE__ */ (0, I.jsx)(aV, {
+ }), /* @__PURE__ */ (0, I.jsx)(iV, {
label: "最大体积(GiB)",
inputMode: "decimal",
value: d,
onChange: f
})]
}),
- y.busy ? /* @__PURE__ */ (0, I.jsx)(PH, {
+ y.busy ? /* @__PURE__ */ (0, I.jsx)(NH, {
role: "status",
children: "正在搜索资源"
}) : null,
- y.error ? /* @__PURE__ */ (0, I.jsx)(FH, { children: y.error }) : null,
- p?.error ? /* @__PURE__ */ (0, I.jsx)(PH, {
+ y.error ? /* @__PURE__ */ (0, I.jsx)(PH, { children: y.error }) : null,
+ p?.error ? /* @__PURE__ */ (0, I.jsx)(NH, {
role: "status",
children: p.error
}) : null,
- p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(PH, {
+ p?.state === "ready" && !p.items.length ? /* @__PURE__ */ (0, I.jsx)(NH, {
role: "status",
children: "没有符合条件的资源。"
}) : null,
- p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(PH, { children: e }, e)),
+ p?.warnings.map((e) => /* @__PURE__ */ (0, I.jsx)(NH, { 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", {
@@ -49518,7 +49518,7 @@ function Aye({ 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)(PH, { children: [
+ /* @__PURE__ */ (0, I.jsx)(NH, { children: [
e.size > 0 ? `${(e.size / 1024 ** 3).toFixed(2)} GiB` : "体积未取得",
e.seeders >= 0 ? `${e.seeders} 个做种` : "做种未取得",
e.resolution ? `${e.resolution}p` : "",
@@ -49542,20 +49542,20 @@ function Aye({ initialCode: e, reason: t, choose: n, onSearch: r, onWork: i }) {
});
}
// src/react/activity/cloud-download-dialog.tsx
-var jye = {
+var Mye = {
submitted: "已提交离线下载,进度在任务中心",
adopted: "这个磁力已有任务,没有重复提交",
adopted_remote: "网盘中已有相同的下载任务,Peach 已开始跟踪进度",
deferred: "网盘暂时没有响应,Peach 会自动重新提交,进度在任务中心"
};
-function eW({ prefill: e, close: t, receipt: n, provider: r }) {
- return /* @__PURE__ */ (0, I.jsx)(oV, {
+function $U({ prefill: e, close: t, receipt: n, provider: r }) {
+ return /* @__PURE__ */ (0, I.jsx)(aV, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
},
width: "form",
- children: e ? /* @__PURE__ */ (0, I.jsx)(Mye, {
+ children: e ? /* @__PURE__ */ (0, I.jsx)(Nye, {
prefill: e,
close: t,
receipt: n,
@@ -49563,26 +49563,26 @@ function eW({ prefill: e, close: t, receipt: n, provider: r }) {
}) : null
});
}
-function Mye({ prefill: e, close: t, receipt: n, provider: r }) {
+function Nye({ prefill: e, close: t, receipt: n, provider: r }) {
let i = Ft({
- queryKey: qU,
- queryFn: ({ signal: e }) => B(`${KU}?limit=50`, e),
- refetchInterval: (e) => JU(e.state.data)
+ queryKey: KU,
+ queryFn: ({ signal: e }) => B(`${GU}?limit=50`, e),
+ refetchInterval: (e) => qU(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)(HL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(VL, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "查找资源"
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: CB,
+ leadingIcon: SB,
"aria-label": "关闭资源面板",
onClick: t
})]
});
- return a ? /* @__PURE__ */ (0, I.jsx)(Nye, {
+ return a ? /* @__PURE__ */ (0, I.jsx)(Pye, {
header: o,
snapshot: a,
prefill: e,
@@ -49595,7 +49595,7 @@ function Mye({ 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)(cV, {
+ children: i.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: lr(i.error)
}) : null
@@ -49611,8 +49611,8 @@ function Mye({ prefill: e, close: t, receipt: n, provider: r }) {
]
});
}
-function Nye({ 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 = pH(), C = (0, F.useRef)(null), w = (e) => {
+function Pye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provider: a }) {
+ let o = ae(), s = t.providers.filter((e) => e.configured), c = s.find((e) => e.key === a) ?? s[0], [l, u] = (0, F.useState)(c?.key || ""), [d, f] = (0, F.useState)(""), [p, m] = (0, F.useState)(n.code ?? ""), [h, g] = (0, F.useState)(c?.target || ""), [_, v] = (0, F.useState)(n.code ? n : null), [y, b] = (0, F.useState)(""), x = t.available && s.some((e) => e.key === l), S = fH(), C = (0, F.useRef)(null), w = (e) => {
u(e), g(s.find((t) => t.key === e)?.target ?? "");
};
return /* @__PURE__ */ (0, I.jsxs)("form", {
@@ -49628,14 +49628,14 @@ function Nye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
title: _?.title,
origin: _?.origin
};
- b(""), S.run("submit", (e) => V(KU, t, "POST", e), (e) => {
- o.invalidateQueries({ queryKey: qU });
- let t = jye[e.outcome];
+ b(""), S.run("submit", (e) => V(GU, t, "POST", e), (e) => {
+ o.invalidateQueries({ queryKey: KU });
+ let t = Mye[e.outcome];
if (e.ok && t) {
i(t), r();
return;
}
- let n = XU(e.task);
+ let n = YU(e.task);
b(e.outcome === "refused" ? "这个资源被判为违规,不再提交。" : n ? `提交没有成功:${n}` : "提交没有成功。");
});
},
@@ -49659,7 +49659,7 @@ function Nye({ 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)(PH, { children: [
+ }), _ ? /* @__PURE__ */ (0, I.jsx)(NH, { children: [
_.performers,
_.studio,
_.release_date,
@@ -49667,22 +49667,22 @@ function Nye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
].filter(Boolean).join(" · ") }) : null]
})]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Aye, {
+ /* @__PURE__ */ (0, I.jsx)(jye, {
initialCode: n.code ?? "",
reason: n.searchReason,
onSearch: (e) => {
- QU(e, _?.code) || (v(QU(e, n.code) ? n : null), f("")), m(e);
+ ZU(e, _?.code) || (v(ZU(e, n.code) ? n : null), f("")), m(e);
},
- onWork: (e) => v((t) => e ? QU(t?.code, e.code) ? {
+ onWork: (e) => v((t) => e ? ZU(t?.code, e.code) ? {
...t,
...e,
origin: t?.origin || e.origin
- } : e : QU(t?.code, n.code) ? t : null),
+ } : e : ZU(t?.code, n.code) ? t : null),
choose: (e, t) => {
f(e), m(t), C.current?.focus();
}
}),
- /* @__PURE__ */ (0, I.jsx)(aV, {
+ /* @__PURE__ */ (0, I.jsx)(iV, {
ref: C,
label: "磁力链接",
placeholder: "magnet:?xt=urn:btih:…",
@@ -49694,38 +49694,38 @@ function Nye({ 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)(IH, { children: "下载到" }),
- /* @__PURE__ */ (0, I.jsx)(VU, {
+ /* @__PURE__ */ (0, I.jsx)(FH, { children: "下载到" }),
+ /* @__PURE__ */ (0, I.jsx)(BU, {
"aria-label": "下载到",
selectedKey: l || null,
isDisabled: !s.length,
onSelectionChange: (e) => {
e !== null && w(String(e));
},
- children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(HU, {
+ children: s.map((e) => /* @__PURE__ */ (0, I.jsx)(VU, {
id: e.key,
textValue: e.label,
- children: /* @__PURE__ */ (0, I.jsx)(VH, {
+ children: /* @__PURE__ */ (0, I.jsx)(BH, {
source: e.key,
label: e.label
})
}, e.key))
}),
- l === "115" ? /* @__PURE__ */ (0, I.jsx)(PH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
+ l === "115" ? /* @__PURE__ */ (0, I.jsx)(NH, { children: "每提交一次扣一条离线配额,重新提交也算。" }) : null
]
}),
- t.available ? null : /* @__PURE__ */ (0, I.jsx)(cV, {
+ t.available ? null : /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
children: "云下载只在允许修改数据库的设备上可用。"
}),
- s.length ? null : /* @__PURE__ */ (0, I.jsxs)(cV, {
+ s.length ? null : /* @__PURE__ */ (0, I.jsxs)(sV, {
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)(aV, {
+ /* @__PURE__ */ (0, I.jsx)(iV, {
label: "目标目录",
placeholder: "/云下载",
autoComplete: "off",
@@ -49733,17 +49733,17 @@ function Nye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
value: h,
onChange: g
}),
- n.code ? null : /* @__PURE__ */ (0, I.jsx)(aV, {
+ n.code ? null : /* @__PURE__ */ (0, I.jsx)(iV, {
label: "番号",
placeholder: "可不填",
autoComplete: "off",
maxLength: 60,
value: p,
onChange: (e) => {
- m(e), QU(e, _?.code) || v(null);
+ m(e), ZU(e, _?.code) || v(null);
}
}),
- y || S.error ? /* @__PURE__ */ (0, I.jsx)(FH, { children: y || S.error }) : null
+ y || S.error ? /* @__PURE__ */ (0, I.jsx)(PH, { children: y || S.error }) : null
]
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -49755,7 +49755,7 @@ function Nye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
}), /* @__PURE__ */ (0, I.jsx)(J, {
type: "submit",
disabled: !d.trim() || !x,
- ...pV(S.busy === "submit"),
+ ...fV(S.busy === "submit"),
children: "提交下载"
})]
})
@@ -49763,18 +49763,18 @@ function Nye({ header: e, snapshot: t, prefill: n, close: r, receipt: i, provide
});
}
// src/react/wants/wants.ts
-var tW = "/api/wants", nW = ["wants"], Pye = (e) => [
+var eW = "/api/wants", tW = ["wants"], Fye = (e) => [
"wants",
"follow",
e
-], Fye = [
+], Iye = [
["searching", "待找"],
["unreleased", "未发售"],
["given_up", "暂时放弃"],
["acquired", "已入库"]
-], rW = (e) => B(tW, e);
-function Iye(e, t) {
- H.setQueryData(nW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
+], nW = (e) => B(eW, e);
+function Lye(e, t) {
+ H.setQueryData(tW, (n) => n?.items.some((n) => n.id === e && n.has_magnets !== t) ? {
...n,
items: n.items.map((n) => n.id === e ? {
...n,
@@ -49782,21 +49782,21 @@ function Iye(e, t) {
} : n)
} : n);
}
-var Lye = (e, t) => B(`${tW}?follow=${encodeURIComponent(e)}`, t), iW = (e, t) => V(tW, {
+var Rye = (e, t) => B(`${eW}?follow=${encodeURIComponent(e)}`, t), rW = (e, t) => V(eW, {
action: "add",
...e
-}, "POST", t), aW = (e, t) => V(tW, {
+}, "POST", t), iW = (e, t) => V(eW, {
action: "remove",
ids: e
-}, "POST", t), Rye = (e, t) => V(tW, {
+}, "POST", t), zye = (e, t) => V(eW, {
action: "reset",
ids: e
-}, "POST", t), oW = () => H.invalidateQueries({ queryKey: nW }), zye = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
-function Bye(e) {
+}, "POST", t), aW = () => H.invalidateQueries({ queryKey: tW }), Bye = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;
+function Vye(e) {
return e.phase === "acquired" ? e.acquired_at ? `入库于 ${e.acquired_at.slice(0, 10)}` : "已入库" : e.phase === "unreleased" ? e.release_date ? `${e.release_date} 发售` : "还没发售" : e.phase === "given_up" ? `查过 ${e.search_count} 次都没找到` : e.fresh ? "新片:查不到也一直留在待找" : e.search_count ? `查过 ${e.search_count} 次` : "还没查过";
}
// src/react/jav/discovery-sorts.ts
-var sW = [
+var oW = [
[
"taste",
"口味",
@@ -49822,7 +49822,7 @@ var sW = [
"番号",
"按番号排序"
]
-], cW = [
+], sW = [
[
"release_date",
Aj[1],
@@ -49849,10 +49849,10 @@ var sW = [
"按口味匹配排序"
]
];
-function Vye(e) {
+function Hye(e) {
return typeof e == "number" && Number.isFinite(e) ? e.toFixed(3) : "—";
}
-function Hye(e) {
+function Uye(e) {
if (typeof e != "number" || !Number.isFinite(e)) return {
score: "—",
label: "资料未取得",
@@ -49877,7 +49877,7 @@ function Hye(e) {
};
}
// src/react/jav/jav.ts
-function Uye(e) {
+function Wye(e) {
let t = new URLSearchParams(location.search);
for (let [n, r] of Object.entries(e)) r ? t.set(n, r) : t.delete(n);
Pp(location.pathname + (t.size ? `?${t}` : ""), {
@@ -49885,13 +49885,13 @@ function Uye(e) {
state: Np.navigation.location.state
});
}
-var lW = (e, t = "taste", n = "desc") => [
+var cW = (e, t = "taste", n = "desc") => [
"jav-discoveries",
e,
t,
n
];
-function uW(e, t, n = {}) {
+function lW(e, t, n = {}) {
let r = new URLSearchParams({
scope: e,
limit: "100",
@@ -49900,7 +49900,7 @@ function uW(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 dW(e) {
+function uW(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),
@@ -49908,12 +49908,12 @@ function dW(e) {
studio: t.get("studio") || "",
tag: t.get("tag") || "",
q: (t.get("q") || "").trim(),
- sort: n === "random" && r ? "random" : cW.find(([e]) => e === n)?.[0] || "release_date",
+ sort: n === "random" && r ? "random" : sW.find(([e]) => e === n)?.[0] || "release_date",
dir: t.get("dir") === "asc" ? "asc" : "desc",
seed: r
};
}
-var fW = (e) => [
+var dW = (e) => [
"jav-releases",
e.page,
e.performer,
@@ -49924,7 +49924,7 @@ var fW = (e) => [
e.dir,
e.seed
];
-function pW(e, t, n = "") {
+function fW(e, t, n = "") {
let r = new URLSearchParams({
page: String(e.page),
size: "24",
@@ -49940,7 +49940,7 @@ function pW(e, t, n = "") {
]) e[t] && r.set(t, e[t]);
return n && r.set("metadata_job_id", n), B(`/api/jav/releases?${r}`, t);
}
-function Wye(e, t, n) {
+function Gye(e, t, n) {
let r = wo({
...e,
is_jav: !0
@@ -49949,40 +49949,40 @@ function Wye(e, t, n) {
let i = z(fo(e));
return So(e, t).replace(/ src="[^"]*"/, ` src="${i}" data-jav-image="${e.id}" data-jav-cover="${i}" data-jav-thumb="" data-jav-image-layout="${t}"${t === "big" ? " data-panel-prior=\"1\"" : ""}`).replace("data-drop=\"self\"", "data-drop=\"initial\" data-initial=\"封面未取得\" data-drop-class=\"media-nopic\"");
}
-async function Gye(e, t) {
+async function Kye(e, t) {
if (e === "wants") await H.ensureQueryData({
- queryKey: nW,
- queryFn: () => rW(t),
+ queryKey: tW,
+ queryFn: () => nW(t),
staleTime: 3e4,
revalidateIfStale: !0
});
else if (e === "discover") await H.ensureQueryData({
- queryKey: lW("external"),
- queryFn: () => uW("external", t),
+ queryKey: cW("external"),
+ queryFn: () => lW("external", t),
staleTime: 3e4,
revalidateIfStale: !0
});
else if (e === "releases") {
- let e = dW(location.search);
+ let e = uW(location.search);
await H.ensureQueryData({
- queryKey: fW(e),
- queryFn: () => pW(e, t),
+ queryKey: dW(e),
+ queryFn: () => fW(e, t),
staleTime: 3e4,
revalidateIfStale: !0
});
}
}
// src/react/components/board-tabs.tsx
-function mW({ value: e }) {
+function pW({ 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 Kye = "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 hW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5" }) {
- let a = (0, F.useRef)(null), o = dL(a);
+var qye = "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 = uL(a);
return (0, F.useLayoutEffect)(() => {
let e = a.current;
e && (() => {
@@ -49991,7 +49991,7 @@ function hW({ 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)(LI, {
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(II, {
ref: o,
role: "tablist",
"aria-label": n,
@@ -50006,7 +50006,7 @@ function hW({ 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 ? dV(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? uV(e.symbol) : null, i = e.value === t;
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
role: "tab",
@@ -50015,7 +50015,7 @@ function hW({ 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: Kye,
+ className: qye,
onClick: () => {
i || r(e.value);
},
@@ -50025,7 +50025,7 @@ function hW({ tabs: e, value: t, label: n, onChange: r, className: i = "mb-5.5"
});
}
// src/react/jav/jav-header.tsx
-function gW({ tab: e, navigate: t, find: n, search: r }) {
+function hW({ 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", {
@@ -50044,32 +50044,32 @@ function gW({ tab: e, navigate: t, find: n, search: r }) {
children: "查找资源"
})
]
- }), /* @__PURE__ */ (0, I.jsx)(hW, {
- tabs: oU.map(([e, t]) => ({
+ }), /* @__PURE__ */ (0, I.jsx)(mW, {
+ tabs: aU.map(([e, t]) => ({
value: e,
label: t
})),
value: e,
label: "JAV 分区",
className: "",
- onChange: (e) => t(cU(e))
+ onChange: (e) => t(sU(e))
})]
});
}
-function qye({ navigate: e, receipt: t }) {
+function Jye({ navigate: e, receipt: t }) {
let [n, r] = (0, F.useState)(null);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(gW, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(hW, {
tab: "library",
navigate: e,
find: () => r({})
- }), /* @__PURE__ */ (0, I.jsx)(eW, {
+ }), /* @__PURE__ */ (0, I.jsx)($U, {
prefill: n,
close: () => r(null),
receipt: t
})] });
}
// src/react/video-wall/folia/blockReflows.ts
-var Jye = [
+var Yye = [
[
[
{
@@ -53630,7 +53630,7 @@ var Jye = [
}
]
]
-], _W = [
+], gW = [
[
{
x: 0,
@@ -53927,89 +53927,89 @@ var Jye = [
rows: 2
}
]
-], vW = (e) => e.map((e) => ({
+], _W = (e) => e.map((e) => ({
...e,
x: 12 - e.x - e.cols
-})), yW = (e) => e.map((e) => ({
+})), vW = (e) => e.map((e) => ({
...e,
y: 8 - e.y - e.rows
-})), bW = [
+})), yW = [
(e) => e,
+ _W,
vW,
- yW,
- (e) => vW(yW(e))
-], xW = _W.flatMap((e) => bW.map((t) => t(e))), Yye = Jye.flatMap((e) => bW.map((t) => e.map(t)));
-xW.length;
-var Xye = (e, t) => {
+ (e) => _W(vW(e))
+], bW = gW.flatMap((e) => yW.map((t) => t(e))), Xye = Yye.flatMap((e) => yW.map((t) => e.map(t)));
+bW.length;
+var Zye = (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;
-}, SW = (e, t) => {
- let n = _W.length;
- return ((e + t * 2) % n + n) % n * bW.length + Xye(e, t) % bW.length;
-}, Zye = (e, t) => xW[SW(e, t)], Qye = (e, t, n) => n < 0 || n >= 12 ? null : Yye[SW(e, t)][n], CW = 103.36, wW = 6.08, TW = 12 * CW, EW = 8 * CW, DW = 12, OW = (e, t) => (e % t + t) % t, $ye = (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 kW(e, t) {
- let n = Math.max(1, Math.ceil(e / DW)), r = t ? 3 : Math.min(3, n);
+}, xW = (e, t) => {
+ let n = gW.length;
+ return ((e + t * 2) % n + n) % n * yW.length + Zye(e, t) % yW.length;
+}, Qye = (e, t) => bW[xW(e, t)], $ye = (e, t, n) => n < 0 || n >= 12 ? null : Xye[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, ebe = (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);
return {
columns: r,
- width: r * TW,
- height: Math.ceil(n / r) * EW
+ width: r * wW,
+ height: Math.ceil(n / r) * TW
};
}
-function AW(e, t, n) {
- let { x: r, y: i, cols: a, rows: o } = Zye(e, t)[n];
+function kW(e, t, n) {
+ let { x: r, y: i, cols: a, rows: o } = Qye(e, t)[n];
return {
- x: e * TW + r * CW,
- y: t * EW + i * CW,
- width: a * CW - wW,
- height: o * CW - wW
+ x: e * wW + r * SW,
+ y: t * TW + i * SW,
+ width: a * SW - CW,
+ height: o * SW - CW
};
}
-function ebe(e) {
+function tbe(e) {
return (!e.medium || e.medium === "video") && !!e.has_cover && !!(e.cover_key || e.code);
}
-function jW(e, t, n) {
+function AW(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 >= DW) return null;
- let o = kW(e, t), s = o.height / EW;
+ ].every(Number.isInteger) || a < 0 || a >= EW) return null;
+ let o = OW(e, t), s = o.height / TW;
if (t && (r < 0 || r >= o.columns || i < 0 || i >= s)) return null;
- let c = t ? r : OW(r, o.columns), l = ((t ? i : OW(i, s)) * o.columns + c) * DW + a;
+ let c = t ? r : DW(r, o.columns), l = ((t ? i : DW(i, s)) * o.columns + c) * EW + a;
return t && l >= e ? null : {
- ...AW(r, i, a),
+ ...kW(r, i, a),
index: l % e,
key: n
};
}
-function tbe(e, t) {
+function nbe(e, t) {
if (t < 0 || t >= e) return null;
- let n = Math.floor(t / DW);
- return jW(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % DW}`);
+ let n = Math.floor(t / EW);
+ return AW(e, !0, `${n % 3}:${Math.floor(n / 3)}:${t % EW}`);
}
-function MW(e, t, n) {
- let [r, i, a] = n.key.split(":").map(Number), o = Qye(r, i, a);
+function jW(e, t, n) {
+ let [r, i, a] = n.key.split(":").map(Number), o = $ye(r, i, a);
return new Map((o || []).map((e, t) => [`${r}:${i}:${t}`, {
- x: r * TW + e.x * CW,
- y: i * EW + e.y * CW,
- width: e.cols * CW - wW,
- height: e.rows * CW - wW
+ x: r * wW + e.x * SW,
+ y: i * TW + e.y * SW,
+ width: e.cols * SW - CW,
+ height: e.rows * SW - CW
}]));
}
-function nbe(e) {
+function rbe(e) {
let t = 0, n = 0;
for (let r = Math.max(0, e - 36); r < e; r += 1) {
- let e = Math.floor(r / DW), i = AW(e % 3, Math.floor(e / 3), r % DW);
+ let e = Math.floor(r / EW), i = kW(e % 3, Math.floor(e / 3), r % EW);
t = Math.max(t, i.x + i.width), n = Math.max(n, i.y + i.height);
}
return {
- width: e >= 36 ? 3 * TW - wW : t,
+ width: e >= 36 ? 3 * wW - CW : t,
height: n
};
}
-function rbe(e, t, n, r) {
+function ibe(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 {
@@ -54018,22 +54018,22 @@ function rbe(e, t, n, r) {
y: i(e.y, n.height, t.height)
};
}
-function NW(e, t, n, r) {
+function MW(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 = kW(e, t), s = o.height / EW, c = [];
- for (let n = Math.floor(a.y / EW); n <= Math.floor((a.y + a.height) / EW); n += 1) for (let r = Math.floor(a.x / TW); r <= Math.floor((a.x + a.width) / TW); r += 1) {
+ }, 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) {
if (t && (r < 0 || r >= o.columns || n < 0 || n >= s)) continue;
- let i = t ? r : OW(r, o.columns), l = t ? n : OW(n, s);
- for (let s = 0; s < DW; s += 1) {
- let u = (l * o.columns + i) * DW + s;
+ 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;
if (t && u >= e) continue;
- let d = AW(r, n, s);
- $ye(d, a) && c.push({
+ let d = kW(r, n, s);
+ ebe(d, a) && c.push({
...d,
index: u % e,
key: `${r}:${n}:${s}`
@@ -54042,7 +54042,7 @@ function NW(e, t, n, r) {
}
return c;
}
-var ibe = class {
+var abe = class {
positions = /* @__PURE__ */ new Map();
used = /* @__PURE__ */ new Set();
cursor = 0;
@@ -54054,7 +54054,7 @@ var ibe = class {
this.cursor = e;
}
tile(e, t) {
- let n = this.positions.get(e), r = n === void 0 ? null : jW(t, !1, e);
+ let n = this.positions.get(e), r = n === void 0 ? null : AW(t, !1, e);
return r ? {
...r,
index: n
@@ -54084,7 +54084,7 @@ var ibe = class {
let e = 0;
for (let t of this.positions.keys()) e = Math.max(e, Number(t.split(":")[0]));
return {
- x: (e + 2) * TW,
+ x: (e + 2) * wW,
y: 0
};
}
@@ -54097,10 +54097,10 @@ var ibe = class {
c < i && (r = s, i = c);
}
if (r) return r;
- let a = this.fresh(), o = `${Math.round(a.x / TW)}:0:0`;
+ let a = this.fresh(), o = `${Math.round(a.x / wW)}:0:0`;
return this.positions.set(o, t), this.used.add(t), this.tile(o, e);
}
-}, PW = [
+}, NW = [
"q",
"performer",
"series",
@@ -54115,39 +54115,39 @@ var ibe = class {
"dur_max",
"region"
];
-function abe(e = {}) {
- return PW.some((t) => !!e[t]);
+function obe(e = {}) {
+ return NW.some((t) => !!e[t]);
}
// src/react/video-wall/wall-boot.ts
-function obe() {
+function sbe() {
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 = NW(12, !1, {
+ t.querySelector("[data-wall-world]").innerHTML = MW(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 FW() {
+function PW() {
document.querySelectorAll("[data-wall-boot]").forEach((e) => e.remove());
}
// src/react/router/pages/catalog.tsx
-var sbe = () => pu, IW = Np.navigation.seq, LW = Np.navigation.openEpoch, RW = Np.navigation.location.pathname, zW = {
- seq: IW,
+var cbe = () => pu, FW = Np.navigation.seq, IW = Np.navigation.openEpoch, LW = Np.navigation.location.pathname, RW = {
+ seq: FW,
claimed: !0,
- from: RW
+ from: LW
};
Np.listen((e) => {
- zW = {
+ RW = {
seq: e.seq,
- claimed: e.openEpoch === LW,
- from: RW
- }, LW = e.openEpoch, RW = e.location.pathname;
+ claimed: e.openEpoch === IW,
+ from: LW
+ }, IW = e.openEpoch, LW = e.location.pathname;
});
-var BW = !1;
-function VW(e) {
+var zW = !1;
+function BW(e) {
let { seq: t, openEpoch: n, location: r } = Np.navigation, i = Bf(r.pathname), a = Ip() ?? r, o = U ?? {};
return {
seq: t,
@@ -54159,7 +54159,7 @@ function VW(e) {
opened: e
};
}
-function cbe(e, t, n, r) {
+function lbe(e, t, n, r) {
let i = { ...U }, a = hm("catalog");
if (a) return { ...a };
if (e === "/trash") return {
@@ -54196,14 +54196,14 @@ function cbe(e, t, n, r) {
folder_recursive: o.get("folder_recursive") === "0" ? "0" : ""
};
}
-function HW(e) {
+function VW(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 lbe(e, t) {
- let n = { ...e }, r = VW(n.opened);
+function ube(e, t) {
+ let n = { ...e }, r = BW(n.opened);
Object.assign(e, r);
let i = t.catalog;
if (!i || r.opens === 0) return;
@@ -54215,39 +54215,39 @@ function lbe(e, t) {
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;
- HW(() => i.load());
+ VW(() => i.load());
return;
}
- r.epoch !== n.epoch && (a = Np.navigation.action === "POP" && zW.from !== "/");
+ r.epoch !== n.epoch && (a = Np.navigation.action === "POP" && RW.from !== "/");
}
let { pathname: o, search: s } = Np.navigation.location;
if (o === "/" && new URLSearchParams(s).get("state") === "ads") {
- let { kind: e, view: t } = FU(s);
- BW = !0, Pp(IU(e, t), { replace: !0 });
+ let { kind: e, view: t } = PU(s);
+ zW = !0, Pp(FU(e, t), { replace: !0 });
return;
}
- let c = BW;
- BW = !1, a &&= o === "/" && !gm(), e.opened = !0, W({ state: cbe(o, s, a, i) }), HW(() => i.open(o, {
+ let c = zW;
+ zW = !1, a &&= o === "/" && !gm(), e.opened = !0, W({ state: lbe(o, s, a, i) }), VW(() => i.open(o, {
entering: a,
retitle: c
}));
}
-function ube() {
- let e = (0, F.useContext)(JW), t = qW(), n = (0, F.useSyncExternalStore)(Cu, sbe), r = ef(), i = (0, F.useRef)(null), a = (0, F.useRef)({
+function dbe() {
+ let e = (0, F.useContext)(qW), t = KW(), n = (0, F.useSyncExternalStore)(Cu, cbe), 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 = VW(!Bf(Np.navigation.location.pathname));
- return !t.covered && t.opens > 0 && (BW || zW.seq === IW ? t.opens = -1 : zW.claimed ? t.seq = -1 : t.epoch = -1), i.current = t, () => {
+ let t = BW(!Bf(Np.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, () => {
e.mounted = !1;
};
}, []), (0, F.useEffect)(() => {
let t = a.current;
!t.queued && e && (t.queued = !0, queueMicrotask(() => {
- t.queued = !1, t.mounted && i.current && lbe(i.current, e);
+ t.queued = !1, t.mounted && i.current && ube(i.current, e);
}));
}, [
t,
@@ -54256,7 +54256,7 @@ function ube() {
e
]), null;
}
-function UW() {
+function HW() {
let { pathname: e } = ef();
return (0, F.useLayoutEffect)(() => {
if (e !== "/wall") return;
@@ -54265,23 +54265,23 @@ function UW() {
return t.forEach((e) => {
e.inert = !0;
}), () => {
- document.body.removeAttribute("data-wall-open"), FW(), t.forEach((e, t) => {
+ document.body.removeAttribute("data-wall-open"), PW(), t.forEach((e, t) => {
e.inert = n[t] || !1;
});
};
- }, [e]), Bf(e) && !zf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(ube, {}, e === "/junk-files" ? "/junk-files" : "/"), jn(e) ? /* @__PURE__ */ (0, I.jsx)($W, {}) : null] });
+ }, [e]), Bf(e) && !zf(e) ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(dbe, {}, e === "/junk-files" ? "/junk-files" : "/"), jn(e) ? /* @__PURE__ */ (0, I.jsx)(QW, {}) : null] });
}
-function dbe() {
- let e = (0, F.useContext)(JW), t = document.getElementById("javLibraryHeader");
- return t && e ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(qye, {
+function fbe() {
+ let e = (0, F.useContext)(qW), t = document.getElementById("javLibraryHeader");
+ return t && e ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Jye, {
navigate: e.navigate,
receipt: (t) => e.receipt(t)
}), t) : null;
}
// src/react/router/pages/overlay.tsx
-var WW = () => pu, fbe = () => mu;
-function pbe() {
- let e = (0, F.useContext)(JW), t = (0, F.useSyncExternalStore)(Cu, fbe), n = (0, F.useSyncExternalStore)(Cu, WW);
+var UW = () => pu, pbe = () => mu;
+function mbe() {
+ let e = (0, F.useContext)(qW), t = (0, F.useSyncExternalStore)(Cu, pbe), n = (0, F.useSyncExternalStore)(Cu, UW);
return (0, F.useEffect)(() => {
if (!t || !n) return;
let r = !0;
@@ -54296,8 +54296,8 @@ function pbe() {
e
]), null;
}
-function GW(e, t = !1) {
- let n = (0, F.useSyncExternalStore)(Cu, WW), r = (0, F.useRef)(void 0);
+function WW(e, t = !1) {
+ let n = (0, F.useSyncExternalStore)(Cu, UW), r = (0, F.useRef)(void 0);
if (r.current === void 0) {
let { claimed: e } = Np.navigation;
r.current = pu === 0 || Fp() ? "boot" : e && !t ? null : "history";
@@ -54316,11 +54316,11 @@ function GW(e, t = !1) {
}));
}, [n]);
}
-function mbe() {
- let e = (0, F.useContext)(JW), t = (0, F.useRef)(e);
+function hbe() {
+ let e = (0, F.useContext)(qW), t = (0, F.useRef)(e);
return (0, F.useLayoutEffect)(() => {
t.current = e;
- }, [e]), GW((t) => {
+ }, [e]), WW((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)(() => () => {
@@ -54329,8 +54329,8 @@ function mbe() {
});
}, []), null;
}
-function hbe({ path: e }) {
- qW();
+function gbe({ path: e }) {
+ KW();
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,
@@ -54342,24 +54342,24 @@ function hbe({ path: e }) {
seq: n,
navigationSeq: n,
settings: !1
- }), /* @__PURE__ */ (0, I.jsx)(mbe, {}, `${e} ${o.current.seq}`);
+ }), /* @__PURE__ */ (0, I.jsx)(hbe, {}, `${e} ${o.current.seq}`);
}
-function gbe() {
- let e = (0, F.useContext)(JW);
- return GW(() => {
+function _be() {
+ let e = (0, F.useContext)(qW);
+ return WW(() => {
e?.follow?.ground();
}), null;
}
-function _be() {
- return /* @__PURE__ */ (0, I.jsx)(gbe, {}, qW());
+function vbe() {
+ return /* @__PURE__ */ (0, I.jsx)(_be, {}, KW());
}
// src/react/router/router.tsx
-var KW = (0, F.createContext)(0), qW = () => (0, F.useContext)(KW), JW = (0, F.createContext)(null);
-function vbe({ children: e }) {
+var GW = (0, F.createContext)(0), KW = () => (0, F.useContext)(GW), qW = (0, F.createContext)(null);
+function ybe({ 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)(KW.Provider, {
+ })), []), /* @__PURE__ */ (0, I.jsx)(GW.Provider, {
value: t.openEpoch,
children: /* @__PURE__ */ (0, I.jsx)(Tf, {
location: t.location,
@@ -54369,34 +54369,34 @@ function vbe({ children: e }) {
})
});
}
-function ybe({ target: e }) {
+function bbe({ target: e }) {
let t = nf();
return (0, F.useLayoutEffect)(() => {
e.current = t;
}), null;
}
-function bbe(e, t, n) {
+function xbe(e, t, n) {
let r = new URL(e, window.location.href);
z6(r.pathname) ? n(`${r.pathname}${r.search}${r.hash}`) : t.navigate(e);
}
-function xbe() {
- let e = (0, F.useContext)(JW), [t, n] = (0, F.useState)(gp), r = (0, F.useRef)(null);
+function Sbe() {
+ let e = (0, F.useContext)(qW), [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 && bbe(t, e, r.current);
+ e && r.current && xbe(t, e, r.current);
}, [e]);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(ybe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(Sbe, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(bbe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, I.jsx)(Cbe, {
entry: t,
- children: /* @__PURE__ */ (0, I.jsx)(Cbe, {
+ children: /* @__PURE__ */ (0, I.jsx)(wbe, {
entry: t,
actions: e,
go: i
})
}, t.revision)) : null] });
}
-var Sbe = class extends F.Component {
+var Cbe = class extends F.Component {
state = { failed: !1 };
static getDerivedStateFromError() {
return { failed: !0 };
@@ -54407,12 +54407,12 @@ var Sbe = class extends F.Component {
render() {
return this.state.failed ? null : this.props.children;
}
-}, Cbe = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
- return $6(e.path) ? (0, Rt.createPortal)(cLe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
+}, wbe = (0, F.memo)(function({ entry: e, actions: t, go: n }) {
+ return $6(e.path) ? (0, Rt.createPortal)(lLe(e.path, e.props, t, n), e.host, String(e.revision)) : null;
});
-function wbe({ children: e }) {
+function Tbe({ children: e }) {
let t = ef();
- qW();
+ KW();
let n = Ip(), r = Mf(t.pathname) && !Fp() ? Ff(t.state) : null;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)(Ef, {
@@ -54422,7 +54422,7 @@ function wbe({ children: e }) {
path: e,
element: t.element
}, e)),
- Object.entries(iLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(aLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
@@ -54442,13 +54442,13 @@ function wbe({ children: e }) {
path: e,
element: K6["/"].element
}, e)),
- Object.entries(aLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
+ Object.entries(oLe).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
element: t.element
}, e)),
If.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
- element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(_be, {}) : K6["/"].element
+ element: e === "/works/:code" ? null : e === "/posts/:id" ? /* @__PURE__ */ (0, I.jsx)(vbe, {}) : K6["/"].element
}, e)),
jf.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
@@ -54464,7 +54464,7 @@ function wbe({ children: e }) {
location: r ?? t,
children: [If.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)(hbe, { path: e })
+ element: /* @__PURE__ */ (0, I.jsx)(gbe, { path: e })
}, e)), /* @__PURE__ */ (0, I.jsx)(wf, {
path: "*",
element: null
@@ -54472,38 +54472,38 @@ function wbe({ children: e }) {
}),
/* @__PURE__ */ (0, I.jsxs)(Ef, { children: [jf.map((e) => /* @__PURE__ */ (0, I.jsx)(wf, {
path: e,
- element: /* @__PURE__ */ (0, I.jsx)(_ye, {})
+ element: /* @__PURE__ */ (0, I.jsx)(vye, {})
}, e)), /* @__PURE__ */ (0, I.jsx)(wf, {
path: "*",
element: null
})] })
] });
}
-function Tbe({ children: e, actions: t = null, background: n, processing: r = !1 }) {
- return /* @__PURE__ */ (0, I.jsxs)(BV, { children: [n, /* @__PURE__ */ (0, I.jsx)(JW.Provider, {
+function Ebe({ children: e, actions: t = null, background: n, processing: r = !1 }) {
+ return /* @__PURE__ */ (0, I.jsxs)(zV, { children: [n, /* @__PURE__ */ (0, I.jsx)(qW.Provider, {
value: t,
- children: /* @__PURE__ */ (0, I.jsxs)(vbe, { children: [
- /* @__PURE__ */ (0, I.jsx)(xbe, {}),
- /* @__PURE__ */ (0, I.jsx)(dbe, {}),
- /* @__PURE__ */ (0, I.jsx)(pbe, {}),
- r && t ? /* @__PURE__ */ (0, I.jsx)(Nve, { toast: t.toast }) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(Lve, {}) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(gye, { navigate: t.navigate }) : null,
- r && t ? /* @__PURE__ */ (0, I.jsx)(fye, { actions: t }) : null,
- /* @__PURE__ */ (0, I.jsx)(wbe, { children: e })
+ children: /* @__PURE__ */ (0, I.jsxs)(ybe, { children: [
+ /* @__PURE__ */ (0, I.jsx)(Sbe, {}),
+ /* @__PURE__ */ (0, I.jsx)(fbe, {}),
+ /* @__PURE__ */ (0, I.jsx)(mbe, {}),
+ r && t ? /* @__PURE__ */ (0, I.jsx)(Pve, { toast: t.toast }) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(Rve, {}) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(_ye, { navigate: t.navigate }) : null,
+ r && t ? /* @__PURE__ */ (0, I.jsx)(pye, { actions: t }) : null,
+ /* @__PURE__ */ (0, I.jsx)(Tbe, { children: e })
] })
})] });
}
-var Ebe = { onCaughtError: (e) => {
+var Dbe = { onCaughtError: (e) => {
globalThis.reportError?.(e);
-} }, YW = {
+} }, JW = {
category: "个人分类",
creator: "创作者/账号",
performer: "人物",
seller: "卖家",
studio: "厂牌"
};
-function XW(e, t = "", n = "") {
+function YW(e, t = "", n = "") {
let r = new URLSearchParams({
...e,
folder: t,
@@ -54515,14 +54515,14 @@ function XW(e, t = "", n = "") {
queryFn: ({ signal: e }) => B(`/api/folders?${r}`, e)
};
}
-function ZW(e, t) {
+function XW(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 Dbe({ folder: e, rule: t, revision: n, close: r }) {
- let i = (0, F.useContext)(JW), a = pH(), [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 Obe({ 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 = {
folder: e.id,
purpose: o,
name: c,
@@ -54551,7 +54551,7 @@ function Dbe({ folder: e, rule: t, revision: n, close: r }) {
})
})).confirmed ? b("已移除目录规则") : _(!1);
}, w = !!a.busy, T = (e, t) => a.busy === e ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs(t) } }), t] }) : null;
- return g ? null : /* @__PURE__ */ (0, I.jsx)(oV, {
+ return g ? null : /* @__PURE__ */ (0, I.jsx)(aV, {
isOpen: !0,
onOpenChange: (e) => {
!e && !w && r();
@@ -54565,7 +54565,7 @@ function Dbe({ 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)(HL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(VL, {
slot: "title",
className: "text-title-2-medium",
children: "设置目录用途"
@@ -54573,7 +54573,7 @@ function Dbe({ 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)(fV, {
+ }), /* @__PURE__ */ (0, I.jsx)(dV, {
label: "关闭目录用途",
onPress: () => {
w || r();
@@ -54585,20 +54585,20 @@ function Dbe({ 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)($B, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(VU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(QB, { children: "这个文件夹用于" }), /* @__PURE__ */ (0, I.jsx)(BU, {
"aria-label": "这个文件夹用于",
selectedKey: o,
isDisabled: w,
onSelectionChange: (e) => {
s(e), y();
},
- children: Object.entries(YW).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(HU, {
+ children: Object.entries(JW).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(VU, {
id: e,
children: t
}, e))
})]
}),
- o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(aV, {
+ o === "category" ? null : /* @__PURE__ */ (0, I.jsx)(iV, {
label: "关联名称",
value: c,
onChange: (e) => {
@@ -54609,7 +54609,7 @@ function Dbe({ folder: e, rule: t, revision: n, close: r }) {
isDisabled: w,
isRequired: !0
}),
- /* @__PURE__ */ (0, I.jsx)(LV, {
+ /* @__PURE__ */ (0, I.jsx)(IV, {
isSelected: u,
isDisabled: w,
onChange: (e) => {
@@ -54617,7 +54617,7 @@ function Dbe({ folder: e, rule: t, revision: n, close: r }) {
},
children: "应用到子文件夹"
}),
- /* @__PURE__ */ (0, I.jsx)(LV, {
+ /* @__PURE__ */ (0, I.jsx)(IV, {
isSelected: f,
isDisabled: w,
onChange: (e) => {
@@ -54654,9 +54654,9 @@ function Dbe({ folder: e, rule: t, revision: n, close: r }) {
children: e.name
}, e.id))
}) : null,
- m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ m.conflicts.length ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "warning",
- extra: /* @__PURE__ */ (0, I.jsx)(LH, {
+ extra: /* @__PURE__ */ (0, I.jsx)(IH, {
summary: "查看归属冲突",
children: /* @__PURE__ */ (0, I.jsx)("ul", {
className: "mt-2 flex flex-col gap-2",
@@ -54674,7 +54674,7 @@ function Dbe({ folder: e, rule: t, revision: n, close: r }) {
}) : null
]
}) : null,
- a.error ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ a.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: a.error
}) : null
@@ -54689,7 +54689,7 @@ function Dbe({ folder: e, rule: t, revision: n, close: r }) {
onClick: () => {
w || C();
},
- ...pV(a.busy === "remove"),
+ ...fV(a.busy === "remove"),
children: "移除规则"
}) : null,
/* @__PURE__ */ (0, I.jsx)(J, {
@@ -54701,13 +54701,13 @@ function Dbe({ folder: e, rule: t, revision: n, close: r }) {
}),
m ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
- ...pV(a.busy === "save"),
+ ...fV(a.busy === "save"),
onClick: S,
children: T("save", "正在保存") || "保存目录用途"
}) : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
disabled: o !== "category" && !c.trim(),
- ...pV(a.busy === "preview"),
+ ...fV(a.busy === "preview"),
onClick: () => {
x();
},
@@ -54720,7 +54720,7 @@ function Dbe({ folder: e, rule: t, revision: n, close: r }) {
});
}
// src/react/catalog-folders/use-folder-sticky-offset.ts
-function Obe(e, t) {
+function kbe(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 = () => {
@@ -54743,34 +54743,34 @@ function Obe(e, t) {
}, [e, t]);
}
// src/react/catalog-folders/catalog-folders-page.tsx
-function QW() {
- return $d() ? /* @__PURE__ */ (0, I.jsx)(kbe, {}) : null;
+function ZW() {
+ return $d() ? /* @__PURE__ */ (0, I.jsx)(Abe, {}) : null;
}
-function kbe() {
- let e = ef(), t = (0, F.useContext)(JW);
+function Abe() {
+ let e = ef(), t = (0, F.useContext)(qW);
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)(cL, {
+ return /* @__PURE__ */ (0, I.jsx)(sL, {
size: "small",
"data-folder-mode-toggle": "",
"aria-label": "文件夹模式",
title: "文件夹模式",
"aria-pressed": r,
- icon: AB,
- onClick: () => t?.navigate(ZW(e, r ? {
+ icon: kB,
+ onClick: () => t?.navigate(XW(e, r ? {
browse: null,
folder: null,
folder_recursive: null
} : { browse: "folders" }))
});
}
-function Abe({ children: e, enabled: t }) {
- return $d() ? /* @__PURE__ */ (0, I.jsx)(jbe, {
+function jbe({ children: e, enabled: t }) {
+ return $d() ? /* @__PURE__ */ (0, I.jsx)(Mbe, {
enabled: t,
children: e
}) : /* @__PURE__ */ (0, I.jsx)(I.Fragment, { children: e });
}
-function jbe({ children: e, enabled: t }) {
+function Mbe({ 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",
@@ -54790,7 +54790,7 @@ function jbe({ children: e, enabled: t }) {
hidden: !c
}), e]
}),
- n && i ? /* @__PURE__ */ (0, I.jsx)($W, {
+ n && i ? /* @__PURE__ */ (0, I.jsx)(QW, {
treeTarget: n,
headerTarget: i,
enabled: t
@@ -54798,14 +54798,14 @@ function jbe({ children: e, enabled: t }) {
]
});
}
-function $W({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
- let r = ef(), i = (0, F.useContext)(JW), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
+function QW({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
+ let r = ef(), i = (0, F.useContext)(qW), a = new URLSearchParams(r.search), o = n && (a.get("browse") === "folders" || !!a.get("folder")), s = {
loc: a.get("loc") ?? "",
library: a.get("library") ?? ""
};
- Obe(o, e);
+ kbe(o, e);
let c = a.get("folder") || "", l = Ft({
- ...XW(s, c),
+ ...YW(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), () => {
@@ -54819,11 +54819,11 @@ function $W({ 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(ZW(r, {
+ d(!1), i.navigate(XW(r, {
browse: "folders",
folder: e
}));
- }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(Nbe, {
+ }, _ = l.data, v = /* @__PURE__ */ (0, I.jsx)(Pbe, {
scope: s,
selected: c,
current: _,
@@ -54840,21 +54840,21 @@ function $W({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [
/* @__PURE__ */ (0, I.jsx)("span", {
className: "folder-drawer-trigger",
- children: /* @__PURE__ */ (0, I.jsx)(cL, {
+ children: /* @__PURE__ */ (0, I.jsx)(sL, {
"aria-label": "打开文件夹目录",
- icon: Wge,
+ icon: Gge,
size: "small",
onClick: () => d(!0)
})
}),
- /* @__PURE__ */ (0, I.jsxs)(f_e, {
+ /* @__PURE__ */ (0, I.jsxs)(p_e, {
"aria-label": "文件夹路径",
- children: [/* @__PURE__ */ (0, I.jsx)(OV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(DV, {
current: !c,
onClick: () => g(""),
- icon: AB,
+ icon: kB,
children: "全部文件夹"
- }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(OV, {
+ }), _?.ancestors.map((e, t) => /* @__PURE__ */ (0, I.jsx)(DV, {
current: t === _.ancestors.length - 1,
onClick: () => g(e.id),
children: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -54864,15 +54864,15 @@ function $W({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
})
}, e.id))]
}),
- _?.selected ? /* @__PURE__ */ (0, I.jsx)(cL, {
+ _?.selected ? /* @__PURE__ */ (0, I.jsx)(sL, {
"aria-label": "设置目录用途",
- icon: jge,
+ icon: Mge,
size: "small",
onClick: () => p(!0)
}) : null
]
}),
- l.error && !u ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ l.error && !u ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -54884,7 +54884,7 @@ function $W({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}),
children: lr(l.error)
}) : null,
- _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(cV, {
+ _?.conflicts?.length ? /* @__PURE__ */ (0, I.jsxs)(sV, {
tone: "warning",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -54896,14 +54896,14 @@ function $W({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}) : null,
_?.selected ? /* @__PURE__ */ (0, I.jsxs)("div", {
className: "folder-scope-row",
- children: [/* @__PURE__ */ (0, I.jsx)(LV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(IV, {
size: "sm",
isSelected: a.get("folder_recursive") !== "0",
- onChange: (e) => i.navigate(ZW(r, { folder_recursive: e ? null : "0" })),
+ onChange: (e) => i.navigate(XW(r, { folder_recursive: e ? null : "0" })),
children: "包含子文件夹"
}), /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular text-text-tertiary",
- children: _.rule ? `${YW[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
+ children: _.rule ? `${JW[_.rule.purpose]}${_.rule.name ? ` · ${_.rule.name}` : ""}` : "个人分类"
})]
}) : null,
l.isPending ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -54913,13 +54913,13 @@ function $W({ 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)(Mbe, {
+ _?.children.length ? /* @__PURE__ */ (0, I.jsx)(Nbe, {
nodes: _.children,
go: g
}, c) : null
]
}), h),
- /* @__PURE__ */ (0, I.jsxs)(oV, {
+ /* @__PURE__ */ (0, I.jsxs)(aV, {
isOpen: u,
onOpenChange: d,
width: "form",
@@ -54929,7 +54929,7 @@ function $W({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
className: "text-title-2-medium",
children: "文件夹"
- }), /* @__PURE__ */ (0, I.jsx)(fV, {
+ }), /* @__PURE__ */ (0, I.jsx)(dV, {
label: "关闭文件夹目录",
onPress: () => d(!1)
})]
@@ -54938,7 +54938,7 @@ function $W({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
children: u ? v : null
})]
}),
- f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(Dbe, {
+ f && _?.selected ? /* @__PURE__ */ (0, I.jsx)(Obe, {
folder: _.selected,
rule: _.rule,
revision: _.rules_revision,
@@ -54946,7 +54946,7 @@ function $W({ treeTarget: e, headerTarget: t, enabled: n = !0 } = {}) {
}, _.selected.id) : null
] });
}
-function Mbe({ nodes: e, go: t }) {
+function Nbe({ 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",
@@ -54957,7 +54957,7 @@ function Mbe({ nodes: e, go: t }) {
children: a.map((e) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: AB,
+ leadingIcon: kB,
onClick: () => t(e.id),
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "truncate",
@@ -54974,28 +54974,28 @@ function Mbe({ nodes: e, go: t }) {
}) : null]
});
}
-function Nbe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
- let a = Ft(XW(e)), [o, s] = (0, F.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, F.useState)(""), u = (0, F.useDeferredValue)(c), d = Ft({
- ...XW(e, "", u),
+function Pbe({ 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),
enabled: !!u.trim()
- }), f = RV();
+ }), f = LV();
(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) => XW(e, t)) }), h = /* @__PURE__ */ new Map();
+ let p = [...o].map(String), m = Nt({ queries: p.map((t) => YW(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)(NV, {
+ return /* @__PURE__ */ (0, I.jsx)(MV, {
id: e.id,
label: e.name,
- icon: AB,
- expandedIcon: MB,
+ icon: kB,
+ expandedIcon: jB,
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)(NV, {
+ children: e.has_children ? t ? t.map(g) : /* @__PURE__ */ (0, I.jsx)(MV, {
id: `${e.id}:loading`,
label: "正在读取文件夹",
isDisabled: !0
@@ -55011,15 +55011,15 @@ function Nbe({ 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)(aV, {
+ /* @__PURE__ */ (0, I.jsx)(iV, {
"aria-label": "查找文件夹",
placeholder: "查找文件夹",
- leadingIcon: WB,
+ leadingIcon: UB,
value: c,
onChange: l,
size: "small"
}),
- v ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ v ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -55054,20 +55054,20 @@ function Nbe({ 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)(cV, {
+ }) : d.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: lr(d.error)
}) : d.data?.matches.length ? d.data.matches.map((e) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: AB,
+ leadingIcon: kB,
onClick: () => {
l(""), r(e.id);
},
children: e.name
- }, e.id)) : /* @__PURE__ */ (0, I.jsx)(lV, {
+ }, e.id)) : /* @__PURE__ */ (0, I.jsx)(cV, {
size: "compact",
- icon: WB,
+ icon: UB,
title: "没有匹配的文件夹",
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -55076,7 +55076,7 @@ function Nbe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
}),
children: "换个目录名称试试。"
})
- }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(h_e, {
+ }) : a.data?.roots.length ? /* @__PURE__ */ (0, I.jsx)(g_e, {
"aria-label": "媒体目录",
size: "sm",
expandedKeys: o,
@@ -55084,11 +55084,11 @@ function Nbe({ 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)(lV, {
+ }) : /* @__PURE__ */ (0, I.jsx)(cV, {
size: "compact",
- icon: AB,
+ icon: kB,
title: "尚未添加媒体目录",
- actions: /* @__PURE__ */ (0, I.jsx)(bL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(yL, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -55101,63 +55101,63 @@ function Nbe({ scope: e, selected: t, current: n, go: r, reportedError: i }) {
});
}
// src/react/catalog-grid/catalog-view.ts
-var eG = "peach.catalog-view.v1", tG = /* @__PURE__ */ new Set(), nG = "cards";
-function rG() {
+var $W = "peach.catalog-view.v1", eG = /* @__PURE__ */ new Set(), tG = "cards";
+function nG() {
try {
- return localStorage.getItem(eG) === "list" ? "list" : "cards";
+ return localStorage.getItem($W) === "list" ? "list" : "cards";
} catch {
- return nG;
+ return tG;
}
}
-function Pbe(e) {
- nG = e === "list" ? "list" : "cards";
+function Fbe(e) {
+ tG = e === "list" ? "list" : "cards";
try {
- localStorage.setItem(eG, nG);
+ localStorage.setItem($W, tG);
} catch {}
- tG.forEach((e) => e());
+ eG.forEach((e) => e());
}
-function Fbe(e) {
- tG.add(e);
+function Ibe(e) {
+ eG.add(e);
let t = (t) => {
- (t.key === eG || t.key === null) && e();
+ (t.key === $W || t.key === null) && e();
};
return addEventListener("storage", t), () => {
- tG.delete(e), removeEventListener("storage", t);
+ eG.delete(e), removeEventListener("storage", t);
};
}
-var iG = () => (0, F.useSyncExternalStore)(Fbe, rG, () => "cards");
+var rG = () => (0, F.useSyncExternalStore)(Ibe, nG, () => "cards");
// src/react/catalog-grid/catalog-view-toggle.tsx
-function aG() {
- let e = iG();
- return /* @__PURE__ */ (0, I.jsxs)(Az, {
+function iG() {
+ let e = rG();
+ return /* @__PURE__ */ (0, I.jsxs)(kz, {
"aria-label": "馆藏显示方式",
orientation: "horizontal",
value: e,
- onChange: Pbe,
+ onChange: Fbe,
"data-entity-layout": "",
- className: iU,
- children: [/* @__PURE__ */ (0, I.jsx)(jz, {
+ className: rU,
+ children: [/* @__PURE__ */ (0, I.jsx)(Az, {
value: "cards",
"aria-label": "卡片",
- className: aU,
+ className: iU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: "卡片",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(IB, {
+ children: /* @__PURE__ */ (0, I.jsx)(FB, {
"aria-hidden": "true",
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(jz, {
+ }), /* @__PURE__ */ (0, I.jsx)(Az, {
value: "list",
"aria-label": "列表",
- className: aU,
+ className: iU,
"data-glass-segment": "",
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: "列表",
className: "pointer-events-none contents",
- children: /* @__PURE__ */ (0, I.jsx)(Bge, {
+ children: /* @__PURE__ */ (0, I.jsx)(Vge, {
"aria-hidden": "true",
className: "size-4"
})
@@ -55166,7 +55166,7 @@ function aG() {
});
}
// src/react/components/icon-swap.tsx
-function oG({ a: e, b: t, state: n, className: r }) {
+function aG({ a: e, b: t, state: n, className: r }) {
let { isFocusVisible: i } = TC();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"aria-hidden": !0,
@@ -55183,114 +55183,114 @@ function oG({ a: e, b: t, state: n, className: r }) {
})]
});
}
-function sG({ className: e }) {
- return /* @__PURE__ */ (0, I.jsx)(oG, {
- a: dge,
- b: uge,
+function oG({ className: e }) {
+ return /* @__PURE__ */ (0, I.jsx)(aG, {
+ a: fge,
+ b: dge,
className: e
});
}
// src/react/follow-feed/follow-marks.ts
-var cG = (e) => typeof e == "string" ? e : "", lG = (e) => e.aliases;
-function uG(e, t = "") {
+var sG = (e) => typeof e == "string" ? e : "", cG = (e) => e.aliases;
+function lG(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 dG(e, t = "") {
+function uG(e, t = "") {
let n = z(si(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 fG = (e) => cG(e.title).trim() || "未命名内容", pG = (e, t) => oi(e, lG(t));
-function mG(e) {
+var dG = (e) => sG(e.title).trim() || "未命名内容", fG = (e, t) => oi(e, cG(t));
+function pG(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 = cG(n.entity_name);
+ let n = t[0], r = sG(n.entity_name);
return ln("creator", r, n.entity_id), r;
}
-function hG(e, t) {
+function mG(e, t) {
let { src: n, fallback: r } = ci(e), i = si(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 gG(e, t, n) {
- let r = lG(n), i = e.credit, a = i?.poster;
+function hG(e, t, n) {
+ let r = cG(n), i = e.credit, a = i?.poster;
if (!a) {
let n = oi(t, r);
return {
- author: n || cG(e.author) || cG(e.source_label) || "创作者未取得",
- avatar: hG(t, n),
+ author: n || sG(e.author) || sG(e.source_label) || "创作者未取得",
+ avatar: mG(t, n),
credited: "",
- entityName: mG(t)
+ entityName: pG(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;
return {
author: l,
- avatar: hG(c, l),
+ avatar: mG(c, l),
credited: i.credited || "",
- entityName: mG(c)
+ entityName: pG(c)
};
}
-function _G(e, t = e.primary) {
+function gG(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 = cG(e.primary.version);
+ let i = sG(e.primary.version);
i && n.push(r("version", z(i)));
- let a = cG(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
+ let a = sG(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";
return o && n.push(r(a, o)), n.join("");
}
-function vG(e, t = e.primary) {
+function _G(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]) => uG(e, t) || `<span>${z(t)}</span>`).join("");
+ let r = [...n].map(([e, t]) => lG(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 yG(e, t) {
- let n = cG(e.media_error);
+function vG(e, t) {
+ let n = sG(e.media_error);
return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";
}
-var Ibe = 864e5, Lbe = (e, t) => {
+var Lbe = 864e5, Rbe = (e, t) => {
let n = new Date(/[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`).getTime();
- return Number.isFinite(n) && n - t > Ibe;
+ return Number.isFinite(n) && n - t > Lbe;
};
-function bG(e, t) {
- let n = cG(e.published_at);
+function yG(e, t) {
+ let n = sG(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: Lbe(n, t) ? " · 晚于现在" : ""
+ suffix: Rbe(n, t) ? " · 晚于现在" : ""
};
}
-function xG(e, t = Date.now()) {
- let n = bG(e, t);
+function bG(e, t = Date.now()) {
+ let n = yG(e, t);
return n ? `${n.prefix}${n.full}${n.suffix}` : "时间未取得";
}
-function SG(e, t = Date.now()) {
- let n = bG(e, t);
+function xG(e, t = Date.now()) {
+ let n = yG(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 CG = /* @__PURE__ */ new Set(), wG = [], TG = null;
-function EG() {
- if (TG = null, !wG.length) return;
- let e = wG.splice(0, 200);
+var SG = /* @__PURE__ */ new Set(), CG = [], wG = null;
+function TG() {
+ if (wG = null, !CG.length) return;
+ let e = CG.splice(0, 200);
Tn("/api/follow/image-dims", {
method: "POST",
body: JSON.stringify({ entries: e })
- }).catch(() => {}), wG.length && (TG = setTimeout(EG, 800));
+ }).catch(() => {}), CG.length && (wG = setTimeout(TG, 800));
}
-function Rbe(e, t, n, r) {
+function zbe(e, t, n, r) {
let i = `${e}:${t ?? ""}`;
- CG.has(i) || (CG.add(i), wG.push(t === null ? {
+ SG.has(i) || (SG.add(i), CG.push(t === null ? {
item: e,
width: n,
height: r
@@ -55299,25 +55299,25 @@ function Rbe(e, t, n, r) {
width: n,
height: r,
media: t
- }), TG ||= setTimeout(EG, 800));
+ }), wG ||= setTimeout(TG, 800));
}
// src/react/entity-filter/entity-filter.ts
-var zbe = (e) => e === "videos", DG = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var Bbe = (e) => e === "videos", EG = () => /* @__PURE__ */ (0, I.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), Bbe = dV("shuffle"), Vbe = dV("arrow-up"), Hbe = dV("arrow-down");
-function Ube(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = zbe(t), u = t === "online" ? e.online : null, d = l || !!u, f = u ? u.status : r, p = u ? u.statuses.map(([e, t]) => ({
+}), Vbe = uV("shuffle"), Hbe = uV("arrow-up"), Ube = uV("arrow-down");
+function Wbe(e) {
+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Bbe(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 = vL(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = vL(h, _, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`), C = (0, F.useRef)(null), w = (0, F.useRef)(null), T = u?.mediaCounts ? u : null, E = vL(C, w, "[data-media-view][aria-pressed=\"true\"]", `${t}:${u?.media}:${!!T}`);
+ })) : 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 = _L(m, g, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${f}`), S = _L(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 = _L(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)(OG, {
+ }, [c]), /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(DG, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, I.jsx)(pL, {
+ }), /* @__PURE__ */ (0, I.jsx)(fL, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -55346,19 +55346,19 @@ function Ube(e) {
})
] }),
top: !n && !d ? null : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(qbe, {
+ n ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Jbe, {
keys: n,
view: t,
row: _,
glide: S,
onView: s.setView
- }), d ? /* @__PURE__ */ (0, I.jsx)(DG, {}) : null] }) : null,
- T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Gbe, {
+ }), d ? /* @__PURE__ */ (0, I.jsx)(EG, {}) : null] }) : null,
+ T ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(Kbe, {
head: T,
row: w,
glide: E,
onMedia: s.onlineMedia
- }), /* @__PURE__ */ (0, I.jsx)(DG, {})] }) : null,
+ }), /* @__PURE__ */ (0, I.jsx)(EG, {})] }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
ref: v,
"data-entity-scroll": "",
@@ -55379,11 +55379,11 @@ function Ube(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)(DG, {}) : null]
+ }, e.k)), !u || u.providers.length || u.tags.length ? /* @__PURE__ */ (0, I.jsx)(EG, {}) : null]
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: y,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(mL, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, I.jsxs)(pL, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -55392,17 +55392,17 @@ function Ube(e) {
"data-count-badge": e.k,
children: e.n.toLocaleString()
})]
- }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(Kbe, {
+ }, e.k)) : u ? /* @__PURE__ */ (0, I.jsx)(qbe, {
head: u,
actions: s
}) : null
})]
})
] }),
- bottom: /* @__PURE__ */ (0, I.jsx)(Jbe, { ...e })
+ bottom: /* @__PURE__ */ (0, I.jsx)(Ybe, { ...e })
})] });
}
-var Wbe = [[
+var Gbe = [[
"videos",
"视频",
"play",
@@ -55413,7 +55413,7 @@ var Wbe = [[
"pics",
"image"
]];
-function Gbe({ head: e, row: t, glide: n, onMedia: r }) {
+function Kbe({ head: e, row: t, glide: n, onMedia: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
role: "group",
@@ -55421,7 +55421,7 @@ function Gbe({ head: e, row: t, glide: n, onMedia: r }) {
"data-entity-media": "",
"data-online-media": "",
onPointerLeave: n.leave,
- children: Wbe.map(([t, i, a, o]) => {
+ children: Gbe.map(([t, i, a, o]) => {
let s = `${i} ${Math.max(0, e.mediaCounts?.[t] || 0).toLocaleString()}`;
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -55439,7 +55439,7 @@ function Gbe({ head: e, row: t, glide: n, onMedia: r }) {
})
});
}
-function Kbe({ head: e, actions: t }) {
+function qbe({ head: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
e.providers.map(([n, r]) => /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -55449,10 +55449,10 @@ function Kbe({ head: e, actions: t }) {
title: r,
"aria-label": `来源:${r}`,
onClick: () => t.onlineProvider(n),
- dangerouslySetInnerHTML: { __html: uG(n) }
+ dangerouslySetInnerHTML: { __html: lG(n) }
}, n)),
- e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)(DG, {}) : null,
- e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(mL, {
+ e.providers.length && e.tags.length ? /* @__PURE__ */ (0, I.jsx)(EG, {}) : null,
+ e.tags.map((e) => /* @__PURE__ */ (0, I.jsxs)(pL, {
"data-follow-tag": e.k,
"data-entity-press": "",
"data-tag-cat": `r34-${e.cat}`,
@@ -55465,7 +55465,7 @@ function Kbe({ head: e, actions: t }) {
}, e.k))
] });
}
-function qbe({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function Jbe({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -55513,7 +55513,7 @@ function qbe({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function OG({ items: e, hidden: t, actions: n }) {
+function DG({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -55533,7 +55533,7 @@ function OG({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function Jbe(e) {
+function Ybe(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", {
@@ -55545,30 +55545,30 @@ function Jbe(e) {
dangerouslySetInnerHTML: { __html: R("chevron-left") }
}), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Ybe, {
+ /* @__PURE__ */ (0, I.jsx)(Xbe, {
text: n,
busy: r
}),
- /* @__PURE__ */ (0, I.jsx)(EV, { currentHref: () => location.pathname + location.search }),
- t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(Xbe, {
+ /* @__PURE__ */ (0, I.jsx)(TV, { currentHref: () => location.pathname + location.search }),
+ t === "videos" && i ? /* @__PURE__ */ (0, I.jsx)(Zbe, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)(Qbe, {
+ t === "photos" && a ? /* @__PURE__ */ (0, I.jsx)($be, {
head: a,
actions: o,
helpers: s
}) : null,
- t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(Zbe, {
+ t === "online" && e.online ? /* @__PURE__ */ (0, I.jsx)(Qbe, {
head: e.online,
actions: o
}) : null
] });
}
-function Ybe({ text: e, busy: t }) {
+function Xbe({ text: e, busy: t }) {
return /* @__PURE__ */ (0, I.jsx)("h3", {
"data-entity-readout": "",
- children: /* @__PURE__ */ (0, I.jsx)(oL, {
+ children: /* @__PURE__ */ (0, I.jsx)(aL, {
text: t ? void 0 : e,
busy: t,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -55579,22 +55579,22 @@ function Ybe({ text: e, busy: t }) {
})
});
}
-function kG({ name: e, label: t, value: n, options: r, onChange: i }) {
- return /* @__PURE__ */ (0, I.jsx)(Az, {
+function OG({ name: e, label: t, value: n, options: r, onChange: i }) {
+ return /* @__PURE__ */ (0, I.jsx)(kz, {
name: e,
"aria-label": t,
orientation: "horizontal",
value: n,
onChange: i,
"data-entity-layout": "",
- className: iU,
+ className: rU,
children: r.map(([e, t, n]) => {
- let r = dV(n);
- return /* @__PURE__ */ (0, I.jsx)(jz, {
+ let r = uV(n);
+ return /* @__PURE__ */ (0, I.jsx)(Az, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: aU,
+ className: iU,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -55604,38 +55604,38 @@ function kG({ name: e, label: t, value: n, options: r, onChange: i }) {
})
});
}
-function AG({ onPress: e, busy: t = !1 }) {
- return /* @__PURE__ */ (0, I.jsx)(fL, {
+function kG({ onPress: e, busy: t = !1 }) {
+ return /* @__PURE__ */ (0, I.jsx)(dL, {
"data-entity-batch": "",
label: "换一批",
busy: t,
busyStyle: "strand",
- icon: Bbe,
+ icon: Vbe,
onPress: e
});
}
-function Xbe({ head: e, actions: t }) {
- let n = iG();
+function Zbe({ head: e, actions: t }) {
+ let n = rG();
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(AG, { onPress: () => void t.reshuffle() }),
- e.jav && n === "cards" ? /* @__PURE__ */ (0, I.jsx)(kG, {
+ /* @__PURE__ */ (0, I.jsx)(kG, { onPress: () => void t.reshuffle() }),
+ e.jav && n === "cards" ? /* @__PURE__ */ (0, I.jsx)(OG, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
- /* @__PURE__ */ (0, I.jsx)(aG, {}),
- /* @__PURE__ */ (0, I.jsx)(QW, {}),
- /* @__PURE__ */ (0, I.jsx)(jG, {
+ /* @__PURE__ */ (0, I.jsx)(iG, {}),
+ /* @__PURE__ */ (0, I.jsx)(ZW, {}),
+ /* @__PURE__ */ (0, I.jsx)(AG, {
sorts: e.sorts,
onSort: t.setSort
})
]
});
}
-function jG({ sorts: e, onSort: t }) {
+function AG({ 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,
@@ -55643,20 +55643,20 @@ function jG({ 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)(oG, {
- a: Vbe,
- b: Hbe,
+ children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, I.jsx)(aG, {
+ a: Hbe,
+ b: Ube,
state: e.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
}, e.key)) });
}
-function Zbe({ head: e, actions: t }) {
+function Qbe({ head: e, actions: t }) {
return /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(AG, { onPress: t.onlineShuffle }),
- e.media === "images" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(kG, {
+ /* @__PURE__ */ (0, I.jsx)(kG, { onPress: t.onlineShuffle }),
+ e.media === "images" ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(OG, {
label: "图片布局",
value: e.photoLayout,
options: e.photoLayouts,
@@ -55676,27 +55676,27 @@ function Zbe({ head: e, actions: t }) {
dangerouslySetInnerHTML: { __html: R("captions-off") }
})]
})] }) : null,
- /* @__PURE__ */ (0, I.jsx)(jG, {
+ /* @__PURE__ */ (0, I.jsx)(AG, {
sorts: e.sorts,
onSort: t.onlineSort
})
]
});
}
-function Qbe({ head: e, actions: t, helpers: n }) {
+function $be({ 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)(AG, {
+ e.shuffle ? /* @__PURE__ */ (0, I.jsx)(kG, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, I.jsx)(kG, {
+ /* @__PURE__ */ (0, I.jsx)(OG, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -55711,8 +55711,8 @@ function Qbe({ head: e, actions: t, helpers: n }) {
});
}
// src/react/catalog-filter/catalog-filter.ts
-var $be = "peach.catalog.tiers.v1";
-function MG() {
+var exe = "peach.catalog.tiers.v1";
+function jG() {
try {
let e = JSON.parse(localStorage.getItem("peach.catalog.tiers.v1") || "{}");
return {
@@ -55726,40 +55726,40 @@ function MG() {
};
}
}
-function exe(e) {
+function txe(e) {
try {
let t = JSON.stringify({
performers: e.performers,
studios: e.studios
});
- localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem($be, t);
+ localStorage.getItem("peach.catalog.tiers.v1") !== t && localStorage.setItem(exe, t);
} catch {}
}
// src/react/catalog-filter/catalog-filter-page.tsx
-function txe(e) {
- let t = !e.tiers, n = cxe(e.comboHost);
+function nxe(e) {
+ let t = !e.tiers, n = lxe(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)(OG, {
+ n ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(DG, {
items: e.combo,
hidden: e.comboHidden,
actions: e.actions
}), n) : null,
- /* @__PURE__ */ (0, I.jsx)(ixe, { ...e }),
- e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(nxe, { ...e })
+ /* @__PURE__ */ (0, I.jsx)(axe, { ...e }),
+ e.offscreen ? null : /* @__PURE__ */ (0, I.jsx)(rxe, { ...e })
]
});
}
-function nxe(e) {
- let { actions: t, helpers: n } = e, r = (0, F.useRef)(null), i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), [c, l] = (0, F.useState)(!1), u = vL(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);
+function rxe(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 = _L(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 = PG(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
+ let d = !e.tiers, f = NG(o, e.tags, e.tiers?.key ?? "", e.tagFirst);
return (0, F.useLayoutEffect)(() => {
if (d) {
l(!1);
@@ -55783,7 +55783,7 @@ function nxe(e) {
e.sorts
]), (0, F.useLayoutEffect)(() => {
ec(o.current, "tagbar");
- }, [f]), /* @__PURE__ */ (0, I.jsx)(pL, {
+ }, [f]), /* @__PURE__ */ (0, I.jsx)(fL, {
label: "筛选与排序",
topLabel: "视图与标签",
attrs: {
@@ -55827,23 +55827,23 @@ function nxe(e) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: o,
"data-catalog-tags": "",
- children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(NG, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(rxe, {
+ children: [e.empty || d ? /* @__PURE__ */ (0, I.jsx)(MG, { kind: "tag" }) : null, f.map((n) => /* @__PURE__ */ (0, I.jsx)(ixe, {
tag: n,
pending: e.tiersPending,
onPress: t.toggleTag
}, n.k))]
})]
}),
- bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(oxe, { ...e })
+ bottom: e.trash ? null : /* @__PURE__ */ (0, I.jsx)(sxe, { ...e })
});
}
-function rxe({ tag: e, pending: t, onPress: n }) {
- return /* @__PURE__ */ (0, I.jsxs)(mL, {
+function ixe({ tag: e, pending: t, onPress: n }) {
+ return /* @__PURE__ */ (0, I.jsxs)(pL, {
"data-catalog-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
onPress: () => n(e.k),
- children: [/* @__PURE__ */ (0, I.jsx)(oL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(aL, {
text: e.label,
busy: t
}), e.n == null ? null : /* @__PURE__ */ (0, I.jsx)("span", {
@@ -55852,15 +55852,15 @@ function rxe({ tag: e, pending: t, onPress: n }) {
})]
});
}
-function ixe(e) {
- aL();
+function axe(e) {
+ iL();
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 = PG(o, r.performers, r.key, 24, a ? void 0 : c("performers")), u = PG(s, r.studios, r.key, 24, a ? void 0 : c("studios")), d = (0, F.useMemo)(() => i ? MG() : 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 = 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;
return (0, F.useEffect)(() => {
- i || exe({
+ i || txe({
performers: f,
studios: p
});
@@ -55881,7 +55881,7 @@ function ixe(e) {
children: [f ? /* @__PURE__ */ (0, I.jsx)("div", {
ref: o,
"data-catalog-tier": "performers",
- children: a ? /* @__PURE__ */ (0, I.jsx)(NG, { kind: "performer" }) : l.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, I.jsx)(MG, { kind: "performer" }) : l.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-tier-performer": "",
"data-entity-kind": "performer",
@@ -55892,7 +55892,7 @@ function ixe(e) {
dangerouslySetInnerHTML: { __html: n.ringHtml }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-tier-name": "",
- children: /* @__PURE__ */ (0, I.jsx)(oL, {
+ children: /* @__PURE__ */ (0, I.jsx)(aL, {
text: nn("performer", n.name),
busy: e.tiersPending
})
@@ -55901,13 +55901,13 @@ function ixe(e) {
}) : null, p ? /* @__PURE__ */ (0, I.jsx)("div", {
ref: s,
"data-catalog-tier": "studios",
- children: a ? /* @__PURE__ */ (0, I.jsx)(NG, { kind: "studio" }) : u.map((n) => /* @__PURE__ */ (0, I.jsxs)("button", {
+ children: a ? /* @__PURE__ */ (0, I.jsx)(MG, { 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)(axe, { studio: n }), /* @__PURE__ */ (0, I.jsx)(oL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(oxe, { studio: n }), /* @__PURE__ */ (0, I.jsx)(aL, {
text: n.name,
busy: e.tiersPending
})]
@@ -55915,7 +55915,7 @@ function ixe(e) {
}) : null]
});
}
-function axe({ studio: e }) {
+function oxe({ studio: e }) {
let [t, n] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-tier-mark": "",
@@ -55933,7 +55933,7 @@ function axe({ studio: e }) {
}) : e.fallback
});
}
-function NG({ kind: e }) {
+function MG({ kind: e }) {
let t = Array.from({ length: 64 }, (e, t) => t);
return e === "tag" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-catalog-placeholder": "tag",
@@ -55949,43 +55949,43 @@ function NG({ kind: e }) {
children: [/* @__PURE__ */ (0, I.jsx)("span", {}), /* @__PURE__ */ (0, I.jsx)("span", { children: "\xA0" })]
}, t)) });
}
-function oxe({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
- let a = iG(), [o, s] = (0, F.useState)(!1);
+function sxe({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {
+ let a = rG(), [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)(sxe, { count: e }), /* @__PURE__ */ (0, I.jsx)(EV, { currentHref: i.currentHref })]
+ children: [/* @__PURE__ */ (0, I.jsx)(cxe, { count: e }), /* @__PURE__ */ (0, I.jsx)(TV, { currentHref: i.currentHref })]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(AG, {
+ /* @__PURE__ */ (0, I.jsx)(kG, {
onPress: () => {
s(!0), i.reshuffle().finally(() => s(!1));
},
busy: o || t
}),
- n && a === "cards" ? /* @__PURE__ */ (0, I.jsx)(kG, {
+ n && a === "cards" ? /* @__PURE__ */ (0, I.jsx)(OG, {
name: n.name,
label: n.label,
value: n.value,
options: n.options,
onChange: i.setLayout
}, n.name) : null,
- /* @__PURE__ */ (0, I.jsx)(aG, {}),
- /* @__PURE__ */ (0, I.jsx)(QW, {}),
- /* @__PURE__ */ (0, I.jsx)(jG, {
+ /* @__PURE__ */ (0, I.jsx)(iG, {}),
+ /* @__PURE__ */ (0, I.jsx)(ZW, {}),
+ /* @__PURE__ */ (0, I.jsx)(AG, {
sorts: r,
onSort: i.setSort
})
]
})] });
}
-function sxe({ count: e }) {
+function cxe({ 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)(oL, {
+ children: /* @__PURE__ */ (0, I.jsx)(aL, {
text: t,
busy: e === null,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -55996,7 +55996,7 @@ function sxe({ count: e }) {
})
});
}
-function cxe(e) {
+function lxe(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!e) return;
@@ -56006,7 +56006,7 @@ function cxe(e) {
};
}, [e]), t;
}
-function PG(e, t, n, r, i) {
+function NG(e, t, n, r, i) {
let a = () => ({
key: n,
limit: r,
@@ -56049,8 +56049,8 @@ function PG(e, t, n, r, i) {
}), l.slice(0, c.limit);
}
// src/react/components/grid-reveal.tsx
-var FG = "100% 0px";
-function lxe(e, t) {
+var PG = "100% 0px";
+function uxe(e, t) {
let [n, r] = (0, F.useState)(e ? "skeleton" : "none"), [i] = (0, F.useState)(() => e ? t() : ""), a = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
a.current && pc(a.current);
@@ -56076,7 +56076,7 @@ function lxe(e, t) {
fading: n === "fade"
};
}
-function IG({ message: e, onRetry: t }) {
+function FG({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -56089,7 +56089,7 @@ function IG({ message: e, onRetry: t }) {
});
}
// src/react/components/skeleton-content.tsx
-function LG({ pending: e, skeletonHtml: t, children: n }) {
+function IG({ 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);
@@ -56113,25 +56113,25 @@ function LG({ pending: e, skeletonHtml: t, children: n }) {
});
}
// src/react/components/card-meta.tsx
-function RG({ name: e }) {
+function LG({ 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 zG({ name: e }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(RG, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: 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 BG({ value: e, label: t, title: n }) {
+function zG({ 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)(RG, { name: "calendar" }), t]
+ children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: "calendar" }), t]
});
}
-function VG({ tags: e, label: t, readOnly: n = !1, attrs: r, ...i }) {
+function BG({ tags: e, label: t, readOnly: n = !1, attrs: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
...i,
"data-media-tags": "",
@@ -56149,12 +56149,12 @@ function VG({ tags: e, label: t, readOnly: n = !1, attrs: r, ...i }) {
});
}
// src/react/components/recommendation-reason.tsx
-var uxe = 3;
-function dxe(e, t, n = uxe) {
+var dxe = 3;
+function fxe(e, t, n = dxe) {
return [...e, t.slice(0, n).join("、")].filter(Boolean).join(" · ");
}
-function HG({ reasons: e, tags: t = [] }) {
- let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1), a = dxe(e, t);
+function VG({ reasons: e, tags: t = [] }) {
+ let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1), a = fxe(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", {
@@ -56169,15 +56169,15 @@ function HG({ reasons: e, tags: t = [] }) {
e.stopPropagation(), i(!0);
},
children: a
- }), /* @__PURE__ */ (0, I.jsx)(uz, {
+ }), /* @__PURE__ */ (0, I.jsx)(lz, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "top",
offset: 8,
containerPadding: 12,
- className: AV,
- children: /* @__PURE__ */ (0, I.jsx)(Cz, {
+ className: kV,
+ children: /* @__PURE__ */ (0, I.jsx)(Sz, {
"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",
@@ -56186,63 +56186,63 @@ function HG({ reasons: e, tags: t = [] }) {
})] });
}
// src/library-catalog.ts
-var UG = "peach.library-colors.v1", WG = null, GG = /* @__PURE__ */ new Set();
-function fxe() {
+var HG = "peach.library-colors.v1", UG = null, WG = /* @__PURE__ */ new Set();
+function pxe() {
try {
- let e = JSON.parse(localStorage.getItem(UG) || "{}");
+ let e = JSON.parse(localStorage.getItem(HG) || "{}");
return e && typeof e == "object" ? e : {};
} catch {
return {};
}
}
-function KG(e) {
- WG = e;
+function GG(e) {
+ UG = e;
try {
- localStorage.setItem(UG, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
+ localStorage.setItem(HG, JSON.stringify(Object.fromEntries(e.filter((e) => e.color).map((e) => [e.id, e.color]))));
} catch {}
- GG.forEach((t) => t(e));
+ WG.forEach((t) => t(e));
}
-function qG() {
- return WG;
+function KG() {
+ return UG;
}
-function pxe(e) {
- return GG.add(e), () => {
- GG.delete(e);
+function mxe(e) {
+ return WG.add(e), () => {
+ WG.delete(e);
};
}
// src/react/components/library-tint.ts
-var JG = /* @__PURE__ */ new Map(), YG = !1, XG = /* @__PURE__ */ new Set();
-function mxe(e) {
+var qG = /* @__PURE__ */ new Map(), JG = !1, YG = /* @__PURE__ */ new Set();
+function hxe(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 ZG(e) {
- JG = e;
+function XG(e) {
+ qG = e;
let t = document.getElementById("peach-library-tints");
- t || (t = document.createElement("style"), t.id = "peach-library-tints", document.head.append(t)), t.textContent = [...JG.values()].filter((e) => e.color).map((e) => `[data-library="${CSS.escape(e.id)}"]{--library-color:${mxe(e.color)}}`).join("\n");
+ 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:${hxe(e.color)}}`).join("\n");
}
-function QG(e) {
- ZG(e), XG.forEach((e) => e());
+function ZG(e) {
+ XG(e), YG.forEach((e) => e());
}
-var $G = (e) => new Map(e.map((e) => [e.id, {
+var QG = (e) => new Map(e.map((e) => [e.id, {
id: e.id,
name: e.name,
icon: _s[e.icon || ""] || e.icon || "database",
location: e.roots?.[0]?.location || "",
color: e.color || ""
-}])), eK = !1;
-function hxe() {
- if (eK) return;
- eK = !0, pxe((e) => QG($G(e)));
- let e = qG();
+}])), $G = !1;
+function gxe() {
+ if ($G) return;
+ $G = !0, mxe((e) => ZG(QG(e)));
+ let e = KG();
if (e) {
- ZG($G(e));
+ XG(QG(e));
return;
}
- let t = Object.entries(fxe()).filter(([, e]) => e);
- t.length && ZG(new Map(t.map(([e, t]) => [e, {
+ let t = Object.entries(pxe()).filter(([, e]) => e);
+ t.length && XG(new Map(t.map(([e, t]) => [e, {
id: e,
name: "",
icon: "database",
@@ -56250,56 +56250,56 @@ function hxe() {
color: t
}])));
}
-function gxe() {
- YG || qG() || (YG = !0, B("/api/libraries").then((e) => KG(e.libraries || [])).catch(() => {
- YG = !1;
+function _xe() {
+ JG || KG() || (JG = !0, B("/api/libraries").then((e) => GG(e.libraries || [])).catch(() => {
+ JG = !1;
}));
}
-function _xe(e, t) {
- let n = JG.get(e) ?? {
+function vxe(e, t) {
+ let n = qG.get(e) ?? {
id: e,
name: "",
icon: "database",
location: "",
color: ""
};
- QG(new Map([...JG, [e, {
+ ZG(new Map([...qG, [e, {
...n,
color: t
}]]));
}
-function vxe(e) {
- return XG.add(e), () => {
- XG.delete(e);
+function yxe(e) {
+ return YG.add(e), () => {
+ YG.delete(e);
};
}
-function tK({ names: e = !1 } = {}) {
- return hxe(), e && gxe(), (0, F.useSyncExternalStore)(vxe, () => JG, () => JG);
+function eK({ names: e = !1 } = {}) {
+ return gxe(), e && _xe(), (0, F.useSyncExternalStore)(yxe, () => qG, () => qG);
}
// src/react/components/row-click.ts
-var yxe = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
-function nK(e, t) {
+var bxe = "a,button,input,select,textarea,label,[role=\"checkbox\"],[role=\"switch\"],[role=\"button\"],[role=\"link\"],[role=\"menu\"]";
+function tK(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(yxe);
+ let r = n.closest(bxe);
return !r || !t.contains(r) || r === t;
}
-function rK(e) {
+function nK(e) {
e.shiftKey && e.preventDefault();
}
// src/react/components/media-card.tsx
-var iK = 9 / 16, aK = "未命名视频", bxe = {
+var rK = 9 / 16, iK = "未命名视频", xxe = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
-}, xxe = {
+}, Sxe = {
manual: "手动",
junk: "垃圾",
duplicate: "重复",
missing: "文件缺失"
};
-function Sxe(e) {
+function Cxe(e) {
if (Number(e.duration) < 0) return {
key: "unavailable",
label: "探查错误"
@@ -56327,16 +56327,16 @@ function Sxe(e) {
label: "尚未探查"
};
}
-function oK({ item: e }) {
+function aK({ item: e }) {
if (e.disposal !== "trash") return null;
- let t = e.disposal_reason && xxe[e.disposal_reason] || "原因未记录";
+ let t = e.disposal_reason && Sxe[e.disposal_reason] || "原因未记录";
return /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-disposal-reason": "",
title: `归入原因:${t}`,
children: t
});
}
-function sK({ item: e, actions: t }) {
+function oK({ 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",
@@ -56355,10 +56355,10 @@ function sK({ item: e, actions: t }) {
children: i
}) : null] });
}
-function cK(e, t, n) {
- return t === "short" ? iK : SM(n);
+function sK(e, t, n) {
+ return t === "short" ? rK : SM(n);
}
-function lK(e) {
+function cK(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", {
@@ -56390,7 +56390,7 @@ function lK(e) {
"data-entity-kind": "performer",
"data-entity-name": s,
title: nn("performer", s),
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: nn("performer", s) })
+ children: /* @__PURE__ */ (0, I.jsx)(RG, { name: nn("performer", s) })
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-who-more": "",
children: `等 ${o} 人`
@@ -56400,16 +56400,16 @@ function lK(e) {
"data-entity-kind": t,
"data-entity-name": n,
title: nn(t, n),
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: nn(t, n) })
+ children: /* @__PURE__ */ (0, I.jsx)(RG, { name: nn(t, n) })
}) : /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-media-who": "",
"data-open-unowned": "",
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: n })
+ children: /* @__PURE__ */ (0, I.jsx)(RG, { name: n })
})
};
}
-function Cxe() {
+function wxe() {
return /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -56428,7 +56428,7 @@ function Cxe() {
})]
});
}
-function wxe({ item: e, actions: t, on: n, onChange: r }) {
+function Txe({ item: e, actions: t, on: n, onChange: r }) {
let [i, a] = (0, F.useState)(!1);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-later": "",
@@ -56443,22 +56443,22 @@ function wxe({ item: e, actions: t, on: n, onChange: r }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, I.jsx)(RG, { name: n ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: n ? "check" : "bookmark-plus" })
})
});
}
-function uK(e, t) {
+function lK(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 Txe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
- aL();
- let u = (0, F.useRef)(null), [d, f] = (0, F.useState)(null), p = d?.id === e.id ? d.on : !!e.watch_later, m = tK(), 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 Exe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c, grouped: l = !0 }) {
+ iL();
+ 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);
_.current = e;
let v = (0, F.useCallback)((e) => {
let t = _.current;
u.current && u.current !== e && Pl(u.current), u.current = e, e && (!t.medium || t.medium === "video") && Il(e, t);
- }, []), y = l && Number(e.part_group?.count) > 1 && e.part_group || null, b = l && Number(e.edition_group?.count) > 1 && e.edition_group || null, x = !!(y || b), S = n.active && !!e.is_jav, C = cK(e, t, n), w = S ? n.size : "small", T = C === iK && !!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() || aK, A = o.titleHtml(e, O).trim() || z(aK), j = y?.total_size ?? e.size, M = y?.total_duration ?? e.duration, ee = Number(M) > 0 ? null : Sxe(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 } = lK(e), ne = (e.follow_tags || e.tags || []).slice(0, 3), re = (t) => {
+ }, []), y = l && Number(e.part_group?.count) > 1 && e.part_group || null, b = l && Number(e.edition_group?.count) > 1 && e.edition_group || null, x = !!(y || b), S = n.active && !!e.is_jav, C = sK(e, t, n), w = S ? n.size : "small", T = C === rK && !!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() || 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 : Cxe(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) => {
let n = t.target;
if (n.closest("[data-media-reason-dialog]")) return;
let r = u.current;
@@ -56485,10 +56485,10 @@ function Txe({ 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 === iK ? "" : void 0,
+ "data-pic-portrait": C === rK ? "" : void 0,
style: { "--card-ratio": String(C) },
children: [
- E.html ? /* @__PURE__ */ (0, I.jsx)(GU, {
+ E.html ? /* @__PURE__ */ (0, I.jsx)(WU, {
artwork: E,
identity: D,
relayout: (e) => El(e, w)
@@ -56502,11 +56502,11 @@ function Txe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(RG, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "check" })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, I.jsx)(RG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
}),
y && !b ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-group": "",
@@ -56522,7 +56522,7 @@ function Txe({ 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)(sK, {
+ !i && e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(oK, {
item: e,
actions: s
}) : null,
@@ -56538,22 +56538,22 @@ function Txe({ 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)(Cxe, {}),
+ /* @__PURE__ */ (0, I.jsx)(wxe, {}),
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)(RG, { name: "bookmark" })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { 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)(RG, { name: "heart" })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "heart" })
}) : null]
}) : null,
- i ? null : /* @__PURE__ */ (0, I.jsx)(wxe, {
+ i ? null : /* @__PURE__ */ (0, I.jsx)(Txe, {
item: e,
actions: s,
on: p,
@@ -56568,27 +56568,27 @@ function Txe({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekS
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), uK(u.current, -a);
+ e.stopPropagation(), lK(u.current, -a);
},
title: `后退 ${a} 秒`,
"aria-label": `后退 ${a} 秒`,
- children: /* @__PURE__ */ (0, I.jsx)(RG, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), uK(u.current, a);
+ e.stopPropagation(), lK(u.current, a);
},
title: `前进 ${a} 秒`,
"aria-label": `前进 ${a} 秒`,
- children: /* @__PURE__ */ (0, I.jsx)(RG, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, I.jsx)(RG, { name: "expand" })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "expand" })
})
]
})
@@ -56608,7 +56608,7 @@ function Txe({ 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: rK,
+ onMouseDown: nK,
children: [
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -56646,33 +56646,33 @@ function Txe({ 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)(BG, {
+ children: [e.is_jav && e.release_date ? /* @__PURE__ */ (0, I.jsx)(zG, {
value: e.release_date,
label: e.release_date
}) : null, /* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-size": "",
- children: [/* @__PURE__ */ (0, I.jsx)(RG, { name: "hard-drive" }), Number(j) > 0 ? Xn(Number(j)) : "大小未知"]
+ children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: "hard-drive" }), Number(j) > 0 ? Xn(Number(j)) : "大小未知"]
})]
})
]
}),
- t === "next" ? /* @__PURE__ */ (0, I.jsx)(HG, {
+ t === "next" ? /* @__PURE__ */ (0, I.jsx)(VG, {
reasons: e.why ? e.why.split(" · ") : [],
tags: (e.why_tags || []).map(o.tagLabel)
- }) : ne.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(VG, {
+ }) : ne.length || e.disposal === "trash" ? /* @__PURE__ */ (0, I.jsx)(BG, {
tags: ne,
label: o.tagLabel,
readOnly: !!e.follow_item_id
}) : null,
- /* @__PURE__ */ (0, I.jsx)(oK, { item: e })
+ /* @__PURE__ */ (0, I.jsx)(aK, { item: e })
]
})]
})
]
});
}
-function Exe({ 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") ? "网址快捷方式" : bxe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
+function Dxe({ 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") ? "网址快捷方式" : xxe[e.medium || ""] || "其它文件", u = s ? "pics" : l === "网址快捷方式" ? "globe" : "hard-drive";
return /* @__PURE__ */ (0, I.jsxs)("article", {
ref: o,
"data-media-card": "",
@@ -56684,14 +56684,14 @@ function Exe({ 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: rK,
+ onMouseDown: nK,
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)(RG, { name: u }), /* @__PURE__ */ (0, I.jsx)("b", { children: l })]
+ children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: u }), /* @__PURE__ */ (0, I.jsx)("b", { children: l })]
}),
s ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-art": "thumb",
@@ -56703,13 +56703,13 @@ function Exe({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOp
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, I.jsx)(RG, { name: "check" })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: "check" })
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, I.jsx)(RG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(LG, { name: "trash" }), /* @__PURE__ */ (0, I.jsx)("b", { children: "回收站" })]
}),
- n ? null : /* @__PURE__ */ (0, I.jsx)(sK, {
+ n ? null : /* @__PURE__ */ (0, I.jsx)(oK, {
item: e,
actions: i
})
@@ -56720,7 +56720,7 @@ function Exe({ 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)(RG, { name: u })
+ children: /* @__PURE__ */ (0, I.jsx)(LG, { name: u })
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-text": "",
children: [
@@ -56748,29 +56748,29 @@ function Exe({ 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)(oK, { item: e })
+ /* @__PURE__ */ (0, I.jsx)(aK, { item: e })
]
})]
})]
});
}
-function Dxe(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(Exe, { ...e }) : /* @__PURE__ */ (0, I.jsx)(Txe, { ...e });
+function Oxe(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, I.jsx)(Dxe, { ...e }) : /* @__PURE__ */ (0, I.jsx)(Exe, { ...e });
}
-var dK = (0, F.memo)(Dxe), Oxe = 1100, kxe = 340, Axe = 5e3;
-function jxe(e, t, n) {
+var uK = (0, F.memo)(Oxe), kxe = 1100, Axe = 340, jxe = 5e3;
+function Mxe(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, Axe);
+ }, s = () => o(!1), c = setTimeout(s, jxe);
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 fK({ load: e, canFlip: t, referrerPolicy: n }) {
+function dK({ 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,
@@ -56812,11 +56812,11 @@ function fK({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => jxe(t, e, n)));
+ let s = await Promise.all(a.map((t) => Mxe(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, Oxe);
+ p(), e.cycle = setInterval(p, kxe);
}));
};
return (0, F.useEffect)(() => d, [d]), {
@@ -56825,7 +56825,7 @@ function fK({ 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(kxe, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(Axe, () => {
e.armed = null, m();
});
},
@@ -56835,8 +56835,8 @@ function fK({ load: e, canFlip: t, referrerPolicy: n }) {
};
}
// src/react/components/mix-card.tsx
-var pK = dV("play");
-function Mxe({ src: e }) {
+var fK = uV("play");
+function Nxe({ src: e }) {
let [t, n] = (0, F.useState)(!1);
return t ? null : /* @__PURE__ */ (0, I.jsx)("img", {
"data-mix-poster": "",
@@ -56849,8 +56849,8 @@ function Mxe({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var mK = "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 Nxe({ faces: e, fallback: t, onOpenEntity: n }) {
+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 Pxe({ 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", {
@@ -56858,18 +56858,18 @@ function Nxe({ faces: e, fallback: t, onOpenEntity: n }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => n(e.kind, e.name),
- className: `${mK} cursor-pointer outline-none`,
+ className: `${pK} 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: `${mK} mt-0.5`,
+ className: `${pK} mt-0.5`,
children: t
});
}
-function hK({ 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 = fK({
+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({
load: i,
canFlip: a
}), x = (0, F.useRef)(b.onPointerLeave);
@@ -56896,11 +56896,11 @@ function hK({ 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)(GU, {
+ f?.html ? /* @__PURE__ */ (0, I.jsx)(WU, {
artwork: f,
identity: p,
relayout: m
- }) : r ? /* @__PURE__ */ (0, I.jsx)(Mxe, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, I.jsx)(Nxe, { src: r }, r) : /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -56930,7 +56930,7 @@ function hK({ 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)(pK, {
+ children: [/* @__PURE__ */ (0, I.jsx)(fK, {
"aria-hidden": !0,
className: "size-(--icon-inline)"
}), g ?? `${n.toLocaleString()} 个视频`]
@@ -56943,8 +56943,8 @@ function hK({ 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)(pK, {})
- }) : /* @__PURE__ */ (0, I.jsx)(Nxe, {
+ children: /* @__PURE__ */ (0, I.jsx)(fK, {})
+ }) : /* @__PURE__ */ (0, I.jsx)(Pxe, {
faces: o,
fallback: er(e),
onOpenEntity: s
@@ -56967,20 +56967,20 @@ function hK({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
});
}
// src/react/video-wall/use-wall-camera.ts
-var gK = {
+var hK = {
x: 16,
y: 16,
scale: 1
-}, Pxe = .65, Fxe = 1.6, _K = (e) => Math.min(Fxe, Math.max(Pxe, e)), vK = (e, t, n, r) => ({
+}, Fxe = .65, Ixe = 1.6, gK = (e) => Math.min(Ixe, Math.max(Fxe, e)), _K = (e, t, n, r) => ({
scale: t,
x: n - (n - e.x) * t / e.scale,
y: r - (r - e.y) * t / e.scale
});
-function Ixe(e, t, n) {
+function Lxe(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 Lxe(e, t, n = gK, r = !1) {
+function Rxe(e, t, n = hK, r = !1) {
let i = (0, F.useRef)(null), a = (0, F.useRef)(null), o = (0, F.useRef)({
width: 0,
height: 0
@@ -57012,12 +57012,12 @@ function Lxe(e, t, n = gK, r = !1) {
previous: 0
});
}, []), y = (0, F.useCallback)((e, t = !1, n = !1) => {
- let { count: r, finite: c, focused: f } = d.current, p = rbe(e, o.current, nbe(r), c && !f && !n), h = s.current;
+ let { count: r, finite: c, focused: f } = d.current, p = ibe(e, o.current, rbe(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 || !Ixe(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 || !Lxe(p, u.current, o.current)) && (u.current = p, l({
camera: p,
size: { ...o.current }
}));
@@ -57047,7 +57047,7 @@ function Lxe(e, t, n = gK, r = !1) {
let r = s.current, i = r;
if (t.scale) {
let e = Math.abs(t.scale - r.scale) < .002;
- i = vK(r, e ? t.scale : r.scale + (t.scale - r.scale) * n, t.anchorX, t.anchorY), e && (t.scale = 0);
+ i = _K(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({
@@ -57060,13 +57060,13 @@ function Lxe(e, t, n = gK, r = !1) {
let n = h.current;
if (b()) {
let n = s.current;
- t && (n = vK(n, _K(n.scale * t.factor), t.x, t.y)), e && (n = {
+ t && (n = _K(n, gK(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: _K((n.scale || s.current.scale) * t.factor),
+ scale: gK((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));
@@ -57133,7 +57133,7 @@ function Lxe(e, t, n = gK, r = !1) {
}),
snapshot: () => ({ ...s.current }),
reset: () => {
- v(), y({ ...gK }, !0);
+ v(), y({ ...hK }, !0);
},
pan: (e, t) => {
v(), y({
@@ -57194,16 +57194,16 @@ function Lxe(e, t, n = gK, r = !1) {
};
}
// src/react/video-wall/wall-motion.ts
-var Rxe = {
+var zxe = {
type: "spring",
stiffness: 300,
damping: 34
-}, zxe = {
+}, Bxe = {
delay: .14,
duration: .24
};
// src/react/video-wall/use-wall-playback.ts
-function Bxe(e, t, n) {
+function Vxe(e, t, n) {
let [r, i] = (0, F.useState)({
paused: !0,
time: 0,
@@ -57244,8 +57244,8 @@ function Bxe(e, t, n) {
};
}
// src/react/video-wall/wall-controls.tsx
-function Vxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grouped: a, queueOpen: o, queueReady: s, hasPrevious: c, hasNext: l, later: u, laterBusy: d, play: f, previous: p, next: m, queue: h, watchLater: g, details: _, ended: v, error: y }) {
- let b = $x(), x = Bxe(t, n, v), S = x.duration || Number(e.duration) || 0, C = r || i, w = !t || x.paused, T = async () => {
+function Hxe({ 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 = $x(), x = Vxe(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) {
@@ -57262,7 +57262,7 @@ function Vxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
opacity: 1,
transform: "translateY(0px)"
},
- transition: b ? { duration: 0 } : zxe,
+ transition: b ? { duration: 0 } : Bxe,
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-control-row": "",
children: [
@@ -57270,7 +57270,7 @@ function Vxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
type: "button",
"data-wall-play": "",
"data-wall-pause": w ? void 0 : "",
- ...pV(C),
+ ...fV(C),
"aria-label": r ? "正在打开" : i ? "正在读取版本" : w ? "播放" : "暂停",
title: w ? "播放" : "暂停",
onClick: () => void T(),
@@ -57320,7 +57320,7 @@ function Vxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
- ...pV(d),
+ ...fV(d),
"aria-label": u ? "移出稍后看" : "稍后看",
title: "稍后看",
"aria-pressed": u,
@@ -57366,7 +57366,7 @@ function Vxe({ item: e, playing: t, frame: n, starting: r, pendingGroup: i, grou
});
}
// src/react/components/mix-queue.tsx
-function yK({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {
+function vK({ 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]);
@@ -57402,7 +57402,7 @@ function yK({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a,
})]
});
}
-function bK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }) {
+function yK({ 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
@@ -57425,7 +57425,7 @@ function bK({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }
}), r]
});
}
-var Hxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
+var Uxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
"data-mix-group-label": "",
children: [
e,
@@ -57434,28 +57434,28 @@ var Hxe = ({ label: e, count: t }) => /* @__PURE__ */ (0, I.jsxs)("h3", {
]
});
// src/react/video-wall/wall-queue.tsx
-function Uxe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a }) {
+function Wxe({ 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)(yK, {
+ children: /* @__PURE__ */ (0, I.jsx)(vK, {
kind: n,
title: n === "parts" ? "分卷" : n === "editions" ? "版本" : "作品",
summary: `${e.length} 个视频`,
onClose: a,
- children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)(bK, {
+ children: e.map((e) => /* @__PURE__ */ (0, I.jsxs)(yK, {
current: e.id === t,
"data-wall-source": e.id,
"aria-label": [
e.edition_label,
- e.part_label ? zP(e.part_label) : "",
+ e.part_label ? RP(e.part_label) : "",
r(e)
].filter(Boolean).join(" · "),
onClick: () => i(e),
- pic: /* @__PURE__ */ (0, I.jsx)(GU, { artwork: To(e, "small", !0, "cover") }),
+ pic: /* @__PURE__ */ (0, I.jsx)(WU, { 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 ? zP(e.part_label) : "",
+ e.part_label ? RP(e.part_label) : "",
Jn(e.duration)
].filter(Boolean).join(" · ") })]
}, e.id))
@@ -57463,7 +57463,7 @@ function Uxe({ items: e, activeId: t, kind: n, label: r, choose: i, close: a })
});
}
// src/react/video-wall/wall-route.ts
-function Wxe(e = `${location.pathname}${location.search}`, t = {}) {
+function Gxe(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",
@@ -57478,17 +57478,17 @@ function Wxe(e = `${location.pathname}${location.search}`, t = {}) {
}
return s.set("returnTo", `${n.pathname}${n.search}`), `/wall?${s}`;
}
-function xK(e = `${location.pathname}${location.search}`) {
+function bK(e = `${location.pathname}${location.search}`) {
let t = new URL(e, location.origin).searchParams;
- for (let e of PW) t.delete(e);
+ for (let e of NW) t.delete(e);
return t.delete("tag_match"), `/wall${t.size ? `?${t}` : ""}`;
}
-function SK() {
+function xK() {
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 CK = /* @__PURE__ */ new Map(), wK = (0, F.memo)(function({ item: e, image: t, big: n = !1, ratio: r = 1 }) {
+var SK = /* @__PURE__ */ new Map(), CK = (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
@@ -57501,7 +57501,7 @@ var CK = /* @__PURE__ */ new Map(), wK = (0, F.memo)(function({ item: e, image:
ref: a,
"data-media-pic": "",
style: { "--card-ratio": String(r) },
- children: /* @__PURE__ */ (0, I.jsx)(GU, {
+ children: /* @__PURE__ */ (0, I.jsx)(WU, {
artwork: i,
relayout: (e) => e.querySelectorAll("img.cover").forEach((e) => {
e.complete && e.naturalWidth && fl(e, r);
@@ -57509,27 +57509,27 @@ var CK = /* @__PURE__ */ new Map(), wK = (0, F.memo)(function({ item: e, image:
})
});
});
-function Gxe({ 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 Kxe({ 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 = CK.get(f);
+ let e = SK.get(f);
return e && (i || t || e.pool === p) ? e : void 0;
- }), [h] = (0, F.useState)(() => m?.exploration || new ibe()), 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 abe()), 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: vP(M || {
+ queryKey: _P(M || {
kind: "parts",
seedId: 0
}),
enabled: !!M,
- queryFn: ({ signal: e }) => DP(M, {
+ queryFn: ({ signal: e }) => EP(M, {
tagLabel: u.tagLabel,
mixRelated: async () => []
}, e)
- }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === AP(N, O || w?.id || null)) || w, P = Lxe(e.length, t && !!e.length, m?.camera || {
+ }), N = M ? ee.data : void 0, te = N?.items.find((e) => e.id === kP(N, O || w?.id || null)) || w, P = Rxe(e.length, t && !!e.length, m?.camera || {
x: 0,
y: 0,
scale: innerWidth < 640 ? .68 : 1
@@ -57548,7 +57548,7 @@ function Gxe({ 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), FW(), P.viewport.current?.focus({ preventScroll: !0 });
+ document.body.append(Ce), PW(), P.viewport.current?.focus({ preventScroll: !0 });
}, [Ce]), (0, F.useEffect)(() => () => Ce.remove(), [Ce]);
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;
@@ -57567,20 +57567,20 @@ function Gxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
pool: p
};
let Me = () => {
- Ae.current && (CK.delete(f), CK.set(f, {
+ Ae.current && (SK.delete(f), SK.set(f, {
...je.current,
camera: P.snapshot(),
exploration: h
- }), CK.size > 8 && CK.delete(CK.keys().next().value));
+ }), SK.size > 8 && SK.delete(SK.keys().next().value));
};
(0, F.useLayoutEffect)(Me);
- let Ne = NW(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 = MW(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 ? jW(e.length, !0, E) : h.tile(E, e.length)), Ie = Fe ? MW(e.length, t, Fe) : /* @__PURE__ */ new Map();
+ }), Fe = w && (t ? AW(e.length, !0, E) : h.tile(E, e.length)), Ie = Fe ? jW(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);
@@ -57621,7 +57621,7 @@ function Gxe({ 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(MW(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(jW(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) => {
@@ -57643,7 +57643,7 @@ function Gxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
C.current === t && de(!1);
}
}, Ue = () => {
- let e = jP(N || null, oe || 0);
+ let e = AP(N || null, oe || 0);
e && (k(e.id), He(e));
};
(0, F.useEffect)(() => {
@@ -57665,7 +57665,7 @@ function Gxe({ 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 ? tbe(e.length, i) : h.nearest(e.length, i, a);
+ }, o = t ? nbe(e.length, i) : h.nearest(e.length, i, a);
o && (Be(n, o), le(n.id));
}, qe = async () => {
if (!(r || g.current)) {
@@ -57757,7 +57757,7 @@ function Gxe({ 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)(wK, {
+ children: /* @__PURE__ */ (0, I.jsx)(CK, {
item: w,
image: Ee,
big: !0
@@ -57765,7 +57765,7 @@ function Gxe({ 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)(wK, {
+ children: /* @__PURE__ */ (0, I.jsx)(CK, {
item: w,
image: Ee,
big: !0
@@ -57794,7 +57794,7 @@ function Gxe({ 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 ? zP(Qe.part_label) : ""].filter(Boolean).join(" · ") }) : null
+ N ? /* @__PURE__ */ (0, I.jsx)("small", { children: [Qe.edition_label, Qe.part_label ? RP(Qe.part_label) : ""].filter(Boolean).join(" · ") }) : null
]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -57811,7 +57811,7 @@ function Gxe({ 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)(cV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: fe || xn(ee.error)
}), ee.error && !N ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -57821,7 +57821,7 @@ function Gxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: "立即重试"
}) : null]
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Vxe, {
+ /* @__PURE__ */ (0, I.jsx)(Hxe, {
item: Qe,
playing: oe,
frame: b,
@@ -57843,7 +57843,7 @@ function Gxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
ended: Ue,
error: pe
}),
- A ? /* @__PURE__ */ (0, I.jsx)(Uxe, {
+ A ? /* @__PURE__ */ (0, I.jsx)(Wxe, {
items: We,
activeId: Qe.id,
kind: N?.kind || "wall",
@@ -57859,7 +57859,7 @@ function Gxe({ 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() : SK());
+ e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), e.stopPropagation(), A ? j(!1) : w ? ze() : be ? Re() : xK());
},
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -57870,7 +57870,7 @@ function Gxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
"data-wall-back": "",
"aria-label": "退出播放墙",
title: "返回",
- onClick: SK,
+ onClick: xK,
children: /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
@@ -57879,7 +57879,7 @@ function Gxe({ 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)(AG, {
+ children: /* @__PURE__ */ (0, I.jsx)(kG, {
busy: r,
onPress: () => void Ye()
})
@@ -57945,7 +57945,7 @@ function Gxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
}), /* @__PURE__ */ (0, I.jsx)("p", { children: "当前仅显示筛选结果" })] }), /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "ghost",
- onClick: () => Np.push(xK()),
+ onClick: () => Np.push(bK()),
children: "清除筛选"
})]
}) : null
@@ -58022,7 +58022,7 @@ function Gxe({ 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: Rxe,
+ layout: zxe,
transform: a ? {
type: "spring",
stiffness: 360,
@@ -58055,7 +58055,7 @@ function Gxe({ 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)(wK, {
+ /* @__PURE__ */ (0, I.jsx)(CK, {
item: r,
image: Ee,
ratio: i.width / i.height
@@ -58093,7 +58093,7 @@ function Gxe({ 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)(cV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: a
}), /* @__PURE__ */ (0, I.jsx)(J, {
@@ -58123,20 +58123,20 @@ function Gxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
children: /* @__PURE__ */ (0, I.jsxs)(J, {
size: "small",
variant: "secondary",
- ...pV(r),
+ ...fV(r),
onClick: () => void qe(),
children: [r ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs() } }) : null, "载入更多"]
})
}) : null,
me ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-wall-error": "",
- children: [/* @__PURE__ */ (0, I.jsx)(cV, {
+ children: [/* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: me
}), /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
variant: "ghost",
- ...pV(r),
+ ...fV(r),
onClick: () => void qe(),
children: "立即重试"
})]
@@ -58146,7 +58146,7 @@ function Gxe({ items: e, finite: t, hasMore: n, busy: r, loading: i = !1, error:
return (0, Rt.createPortal)(et, Ce);
}
// src/catalog-onboarding.ts
-var TK = [
+var wK = [
"loc",
"creator",
"performer",
@@ -58165,19 +58165,19 @@ var TK = [
"jav",
"thumb"
];
-function Kxe(e = typeof location > "u" ? "/" : location.href) {
+function qxe(e = typeof location > "u" ? "/" : location.href) {
let t = new URL(e, "http://localhost");
for (let e of [
- ...TK,
+ ...wK,
"q",
"category",
"cat"
]) t.searchParams.delete(e);
return t.searchParams.set("thumb", "0"), t.pathname + (t.search ? t.search : "") + t.hash;
}
-async function qxe(e, t) {
+async function Jxe(e, t) {
let n = new URLSearchParams();
- for (let t of TK) e[t] && n.set(t, e[t]);
+ for (let t of wK) 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 || [],
@@ -58188,9 +58188,9 @@ async function qxe(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function EK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
+function TK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
let a = "<a class=\"geist-button primary\" href=\"/settings/library\">添加媒体</a>", o = "<a class=\"geist-button" + (i ? " primary" : "") + "\" href=\"/subscriptions?tab=add\">添加关注</a>";
- if (t || n) return Ws("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: n ? "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a><a class=\"geist-button\" href=\"/data-cleanup#libraryProcessing\">补全影片资料</a>" : `<a class="geist-button primary" href="${t ? z(Kxe()) : "/?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(qxe()) : "/?loc=&thumb=0"}">${t ? "清除筛选" : "查看全部内容"}</a>` });
if (e !== "catalog") {
let t = (i ? {
tags: "标签",
@@ -58208,12 +58208,12 @@ function EK({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
return Ws("play", "还没有视频", "添加媒体目录或关注来源,开始建立你的馆藏。", { actions: a + o });
}
// src/react/video-wall/wall-empty.ts
-function Jxe({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
- return e ? r || EK() : 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="${xK()}">清除筛选</a>` });
+function Yxe({ libraryEmpty: e, matches: t, hasMore: n, catalogEmpty: r }) {
+ return e ? r || TK() : 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="${bK()}">清除筛选</a>` });
}
// src/react/library-processing/processing-actions.tsx
-function DK({ label: e, maintenance: t = !1, children: n }) {
- let r = hH("hover");
+function EK({ label: e, maintenance: t = !1, children: n }) {
+ let r = mH("hover");
return /* @__PURE__ */ (0, I.jsx)("div", {
ref: r,
role: "group",
@@ -58223,13 +58223,13 @@ function DK({ label: e, maintenance: t = !1, children: n }) {
children: n
});
}
-function OK({ option: e, metadataOnly: t, onRun: n }) {
+function DK({ 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: q(jV, i ? "cursor-not-allowed opacity-50" : MV, "text-body-2-medium"),
+ className: q(AV, i ? "cursor-not-allowed opacity-50" : jV, "text-body-2-medium"),
onClick: () => n(e.command),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
className: "flex min-w-0 flex-col gap-1",
@@ -58240,12 +58240,12 @@ function OK({ option: e, metadataOnly: t, onRun: n }) {
})
});
}
-function Yxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
+function Xxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
let [a, o] = (0, F.useState)(t), [s, c] = (0, F.useState)(), [l, u] = (0, F.useState)("");
(0, F.useEffect)(() => {
let t = new AbortController(), r, i = async (a) => {
try {
- let o = await W_e(e, t.signal, a);
+ let o = await G_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(() => {
@@ -58270,7 +58270,7 @@ function Yxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
className: "flex justify-center",
- children: /* @__PURE__ */ (0, I.jsx)(SH, {
+ children: /* @__PURE__ */ (0, I.jsx)(xH, {
value: a,
busy: i,
onChange: (e) => {
@@ -58278,7 +58278,7 @@ function Yxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
}
})
}),
- s ? /* @__PURE__ */ (0, I.jsx)(GH, {
+ s ? /* @__PURE__ */ (0, I.jsx)(WH, {
traffic: s,
initial: !0
}) : null,
@@ -58290,7 +58290,7 @@ function Yxe({ command: e, speed: t, dialog: n, onSpeed: r, busy: i }) {
]
});
}
-function kK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, speedMode: i = "standard", pendingCount: a = 0, onRun: o, onOccupied: s }) {
+function OK({ 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 = {
@@ -58338,7 +58338,7 @@ function kK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
description: "为已入库的本地视频生成九宫格",
command: { stage: "previews" }
}
- ], v = e || t, y = e ? pV(!0) : t ? { "aria-disabled": !0 } : {}, b = (a) => {
+ ], v = e || t, y = e ? fV(!0) : t ? { "aria-disabled": !0 } : {}, b = (a) => {
if (e) return;
if (t) {
s?.();
@@ -58373,7 +58373,7 @@ function kK({ 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)(Yxe, {
+ u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Xxe, {
command: u.command,
dialog: u.dialog,
speed: i,
@@ -58382,11 +58382,11 @@ function kK({ 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)(fH, {
+ u ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(dH, {
href: "/settings/library",
size: "small",
variant: "primary",
- trailingIcon: _B,
+ trailingIcon: gB,
disabled: v,
onClick: (e) => {
u.dialog.confirmButton.getAttribute("aria-busy") === "true" ? e.preventDefault() : u.dialog.close();
@@ -58404,7 +58404,7 @@ function kK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}), /* @__PURE__ */ (0, I.jsx)(J, {
ref: c,
iconOnly: !0,
- leadingIcon: gB,
+ leadingIcon: hB,
"aria-label": "更多同步方式",
"aria-haspopup": "dialog",
"aria-expanded": p,
@@ -58414,27 +58414,27 @@ function kK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
}
})]
}),
- /* @__PURE__ */ (0, I.jsx)(uz, {
+ /* @__PURE__ */ (0, I.jsx)(lz, {
triggerRef: c,
isOpen: p,
onOpenChange: m,
placement: "bottom end",
offset: 4,
- className: AV,
- children: /* @__PURE__ */ (0, I.jsxs)(Cz, {
+ className: kV,
+ children: /* @__PURE__ */ (0, I.jsxs)(Sz, {
"aria-label": "同步方式",
className: "flex w-80 flex-col gap-1 outline-none",
- children: [n ? /* @__PURE__ */ (0, I.jsxs)(DK, {
+ children: [n ? /* @__PURE__ */ (0, I.jsxs)(EK, {
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)(OK, {
+ }), g.map((e) => /* @__PURE__ */ (0, I.jsx)(DK, {
option: e,
metadataOnly: r,
onRun: b
}, e.label))]
- }) : null, /* @__PURE__ */ (0, I.jsxs)(DK, {
+ }) : null, /* @__PURE__ */ (0, I.jsxs)(EK, {
label: n ? "全库维护" : "补全方式",
maintenance: n,
children: [n ? /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -58446,7 +58446,7 @@ function kK({ 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)(OK, {
+ }) : null, _.map((e) => /* @__PURE__ */ (0, I.jsx)(DK, {
option: e,
metadataOnly: r,
onRun: b
@@ -58457,48 +58457,48 @@ function kK({ busy: e, occupied: t = !1, scan: n = !1, metadataOnly: r = !1, spe
] });
}
// src/react/library-processing/library-completion.tsx
-function AK(e, t) {
+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) && !To(e, "small", !1, t).html).map((e) => e.id))];
}
-function jK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
- return e.length ? /* @__PURE__ */ (0, I.jsx)(Xxe, {
+function AK({ assetIds: e, onComplete: t, className: n = "mb-4" }) {
+ return e.length ? /* @__PURE__ */ (0, I.jsx)(Zxe, {
assetIds: e,
onComplete: t,
className: n
}) : null;
}
-function Xxe({ assetIds: e, onComplete: t, className: n }) {
+function Zxe({ assetIds: e, onComplete: t, className: n }) {
let r = Ft({
- queryKey: XV,
- queryFn: ({ signal: e }) => iH(e),
- refetchInterval: (e) => sH(e.state.data, !0)
+ queryKey: YV,
+ queryFn: ({ signal: e }) => rH(e),
+ refetchInterval: (e) => oH(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(YV, {
+ mutationFn: (t) => V(JV, {
...t,
asset_ids: e
}),
onSuccess: (e) => {
- a(e.job_id || null), H.setQueryData(XV, e), H.invalidateQueries({ queryKey: XV });
+ a(e.job_id || null), H.setQueryData(YV, e), H.invalidateQueries({ queryKey: YV });
}
}), u = r.data;
(0, F.useEffect)(() => {
- u && i && u.job_id === i && !$V(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 && !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,
t
]);
- let d = l.isPending || $V(u), f = l.error ? lr(l.error) : r.error ? oH : i && u?.job_id === i && u.status === "failed" ? u.error || "补全未完成" : "", p = f || (l.isPending ? "正在启动补全…" : o || `这批影片中有 ${e.length.toLocaleString()} 部暂无预览,${$V(u) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
+ 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) ? "当前任务结束后可单独补全。" : "可补全资料与图片。"}`);
return /* @__PURE__ */ (0, I.jsx)("section", {
"aria-label": "补全预览",
"aria-live": "polite",
"data-library-completion": "",
className: q("@container", n),
- children: /* @__PURE__ */ (0, I.jsxs)(cV, {
+ children: /* @__PURE__ */ (0, I.jsxs)(sV, {
tone: f ? "warning" : "neutral",
action: /* @__PURE__ */ (0, I.jsx)("div", {
className: "flex flex-wrap items-center gap-2",
- children: /* @__PURE__ */ (0, I.jsx)(kK, {
+ children: /* @__PURE__ */ (0, I.jsx)(OK, {
busy: d,
metadataOnly: u?.metadata_only,
onRun: (e) => {
@@ -58509,10 +58509,10 @@ function Xxe({ assetIds: e, onComplete: t, className: n }) {
children: [
p,
" ",
- /* @__PURE__ */ (0, I.jsx)(fH, {
+ /* @__PURE__ */ (0, I.jsx)(dH, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: _B,
+ trailingIcon: gB,
children: f ? "打开扫描与采集" : "查看处理详情"
})
]
@@ -58520,31 +58520,31 @@ function Xxe({ assetIds: e, onComplete: t, className: n }) {
});
}
// node_modules/@tanstack/react-table/dist/FlexRender.js
-function Zxe(e) {
- return Qxe(e) || typeof e == "function" || $xe(e);
-}
function Qxe(e) {
+ return $xe(e) || typeof e == "function" || eSe(e);
+}
+function $xe(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function $xe(e) {
+function eSe(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function MK(e, t) {
- return e == null ? null : Zxe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;
+function jK(e, t) {
+ return e == null ? null : Qxe(e) ? /* @__PURE__ */ F.createElement(e, t) : e;
}
-function eSe(e) {
+function tSe(e) {
if ("cell" in e && e.cell) {
let t = e.cell, n = t.column.columnDef, r = t, i = n;
- return r.getIsAggregated?.() ? MK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : MK(n.cell, t.getContext());
+ return r.getIsAggregated?.() ? jK(i.aggregatedCell ?? n.cell, t.getContext()) : r.getIsPlaceholder?.() ? null : jK(n.cell, t.getContext());
}
- return "header" in e && e.header ? MK(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? MK(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
+ 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;
}
// node_modules/@tanstack/store/dist/alien.js
/* @__NO_SIDE_EFFECTS__ */
-function tSe({ update: e, notify: t, unwatched: n }) {
+function nSe({ update: e, notify: t, unwatched: n }) {
return {
link: r,
unlink: i,
@@ -58661,7 +58661,7 @@ function tSe({ update: e, notify: t, unwatched: n }) {
}
}
// node_modules/@tanstack/store/dist/atom.js
-function nSe(e, t, n) {
+function rSe(e, t, n) {
let r = typeof e == "object", i = r ? e : void 0;
return {
next: (r ? e.next : e)?.bind(i),
@@ -58669,38 +58669,38 @@ function nSe(e, t, n) {
complete: (r ? e.complete : n)?.bind(i)
};
}
-var NK = [], PK = 0, { link: FK, unlink: rSe, propagate: iSe, checkDirty: IK, shallowPropagate: LK } = /* @__PURE__ */ tSe({
+var MK = [], NK = 0, { link: PK, unlink: iSe, propagate: aSe, checkDirty: FK, shallowPropagate: IK } = /* @__PURE__ */ nSe({
update(e) {
return e._update();
},
notify(e) {
- NK[zK++] = e, e.flags &= -3;
+ MK[RK++] = e, e.flags &= -3;
},
unwatched(e) {
- e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, HK(e));
+ e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, VK(e));
}
-}), RK = 0, zK = 0, BK, VK = 0;
-function aSe(e) {
+}), LK = 0, RK = 0, zK, BK = 0;
+function oSe(e) {
try {
- ++VK, e();
+ ++BK, e();
} finally {
- --VK || UK();
+ --BK || HK();
}
}
-function HK(e) {
+function VK(e) {
let t = e.depsTail, n = t === void 0 ? e.deps : t.nextDep;
- for (; n !== void 0;) n = rSe(n, e);
+ for (; n !== void 0;) n = iSe(n, e);
}
-function UK() {
- if (!(VK > 0)) {
- for (; RK < zK;) {
- let e = NK[RK];
- NK[RK++] = void 0, e.notify();
+function HK() {
+ if (!(BK > 0)) {
+ for (; LK < RK;) {
+ let e = MK[LK];
+ MK[LK++] = void 0, e.notify();
}
- RK = 0, zK = 0;
+ LK = 0, RK = 0;
}
}
-function oSe(e, t) {
+function sSe(e, t) {
let n = typeof e == "function", r = e, i = {
_snapshot: n ? void 0 : e,
subs: void 0,
@@ -58709,53 +58709,53 @@ function oSe(e, t) {
depsTail: void 0,
flags: +!n,
get() {
- return BK !== void 0 && FK(i, BK, PK), i._snapshot;
+ return zK !== void 0 && PK(i, zK, NK), i._snapshot;
},
subscribe(e) {
- let t = nSe(e), n = { current: !1 }, r = sSe(() => {
- i.get(), n.current ? (BK = void 0, t.next?.(i._snapshot)) : n.current = !0;
+ let t = rSe(e), n = { current: !1 }, r = cSe(() => {
+ i.get(), n.current ? (zK = void 0, t.next?.(i._snapshot)) : n.current = !0;
});
return { unsubscribe: () => {
r.stop();
} };
},
_update(e) {
- let a = BK, o = t?.compare ?? Object.is;
- if (n) BK = i, ++PK, i.depsTail = void 0;
+ let a = zK, o = t?.compare ?? Object.is;
+ if (n) zK = i, ++NK, 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 {
- BK = a, n && (i.flags &= -5), HK(i);
+ zK = a, n && (i.flags &= -5), VK(i);
}
}
};
return n ? (i.flags = 17, i.get = function() {
let e = i.flags;
- if (e & 16 || e & 32 && IK(i.deps, i)) {
+ if (e & 16 || e & 32 && FK(i.deps, i)) {
if (i._update()) {
let e = i.subs;
- e !== void 0 && LK(e);
+ e !== void 0 && IK(e);
}
} else e & 32 && (i.flags = e & -33);
- return BK !== void 0 && FK(i, BK, PK), i._snapshot;
+ return zK !== void 0 && PK(i, zK, NK), i._snapshot;
}) : i.set = function(e) {
if (i._update(e)) {
let e = i.subs;
- e !== void 0 && (iSe(e), LK(e), UK());
+ e !== void 0 && (aSe(e), IK(e), HK());
}
}, i;
}
-function sSe(e) {
+function cSe(e) {
let t = () => {
- let t = BK;
- BK = n, ++PK, n.depsTail = void 0, n.flags = 6;
+ let t = zK;
+ zK = n, ++NK, n.depsTail = void 0, n.flags = 6;
try {
return e();
} finally {
- BK = t, n.flags &= -5, HK(n);
+ zK = t, n.flags &= -5, VK(n);
}
}, n = {
deps: void 0,
@@ -58765,16 +58765,16 @@ function sSe(e) {
flags: 6,
notify() {
let e = this.flags;
- e & 16 || e & 32 && IK(this.deps, this) ? t() : this.flags = 2;
+ e & 16 || e & 32 && FK(this.deps, this) ? t() : this.flags = 2;
},
stop() {
- this.flags = 0, this.depsTail = void 0, HK(this);
+ this.flags = 0, this.depsTail = void 0, VK(this);
}
};
return t(), n;
}
// node_modules/@tanstack/store/dist/shallow.js
-function WK(e, t) {
+function UK(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) {
@@ -58788,16 +58788,16 @@ function WK(e, t) {
return !0;
}
if (e instanceof Date && t instanceof Date) return e.getTime() === t.getTime();
- let n = GK(e);
- if (n.length !== GK(t).length) return !1;
+ let n = WK(e);
+ if (n.length !== WK(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 GK(e) {
+function WK(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 cSe = /* @__PURE__ */ o(((e) => {
+var lSe = /* @__PURE__ */ o(((e) => {
var t = A(), n = nw();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -58842,33 +58842,33 @@ var cSe = /* @__PURE__ */ o(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), KK = /* @__PURE__ */ o(((e, t) => {
- t.exports = cSe();
-})), lSe = KK();
-function uSe(e, t) {
+})), GK = /* @__PURE__ */ o(((e, t) => {
+ t.exports = lSe();
+})), uSe = GK();
+function dSe(e, t) {
return e === t;
}
-function qK(e, t = (e) => e, n) {
- let r = n?.compare ?? uSe, i = (0, F.useCallback)((t) => {
+function KK(e, t = (e) => e, n) {
+ let r = n?.compare ?? dSe, i = (0, F.useCallback)((t) => {
let { unsubscribe: n } = e.subscribe(t);
return n;
}, [e]), a = (0, F.useCallback)(() => e.get(), [e]);
- return (0, lSe.useSyncExternalStoreWithSelector)(i, a, a, t, r);
+ return (0, uSe.useSyncExternalStoreWithSelector)(i, a, a, t, r);
}
// node_modules/@tanstack/react-table/dist/Subscribe.js
-function dSe(e) {
- let t = qK(e.source, e.selector, { compare: WK });
+function fSe(e) {
+ let t = KK(e.source, e.selector, { compare: UK });
return typeof e.children == "function" ? e.children(t) : e.children;
}
// node_modules/@tanstack/table-core/dist/core/reactivity/coreReactivityFeature.utils.js
-function fSe(e) {
+function pSe(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 pSe(e) {
+function mSe(e) {
let { createAtom: t, batch: n } = e, r = t(0);
return {
createOptionsStore: !1,
@@ -58898,7 +58898,7 @@ function pSe(e) {
}
};
}
-function mSe(e, t = Object.is) {
+function hSe(e, t = Object.is) {
let n = !1, r;
return {
get: e.get,
@@ -58911,28 +58911,28 @@ function mSe(e, t = Object.is) {
};
}
// node_modules/@tanstack/react-table/dist/reactivity.js
-function hSe() {
- return pSe({
- createAtom: oSe,
- batch: aSe
+function gSe() {
+ return mSe({
+ createAtom: sSe,
+ batch: oSe
});
}
// node_modules/@tanstack/table-core/dist/utils.js
-function JK(e, t) {
+function qK(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function YK(e) {
- if (Array.isArray(e)) return e.map(YK);
+function JK(e) {
+ if (Array.isArray(e)) return e.map(JK);
if (e && typeof e == "object") {
let t = Object.getPrototypeOf(e);
if (t !== Object.prototype && t !== null) return e;
- let n = t === null ? ZK() : {}, r = Object.keys(e);
+ let n = t === null ? XK() : {}, 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: YK(e[i]),
+ value: JK(e[i]),
writable: !0
});
}
@@ -58940,7 +58940,7 @@ function YK(e) {
}
return e;
}
-function XK(e, t) {
+function YK(e, t) {
let n = Object.keys(t), r = e;
for (let e = 0; e < n.length; e++) {
let i = n[e];
@@ -58948,53 +58948,53 @@ function XK(e, t) {
}
return e;
}
-function ZK() {
+function XK() {
return Object.create(null);
}
-function QK(e, t) {
+function ZK(e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}
-function $K(e, t) {
+function QK(e, t) {
return (n) => {
- (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => JK(n, e));
+ (t.options.atoms?.[e] ?? t.baseAtoms[e]).set((e) => qK(n, e));
};
}
-function eq(e) {
+function $K(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 tq(e) {
+function eq(e) {
return Reflect.ownKeys(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
}
-var gSe = 3;
-function _Se(e, t) {
- return nq(e, t, gSe);
+var _Se = 3;
+function vSe(e, t) {
+ return tq(e, t, _Se);
}
-function nq(e, t, n) {
+function tq(e, t, n) {
if (Object.is(e, t)) return !0;
- if (n <= 0 || !eq(e) || !eq(t) || (Array.isArray(e) || Array.isArray(t)) && (!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length)) return !1;
- let r = tq(e), i = tq(t);
+ 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 (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) || !nq(a[i], o[i], n - 1)) return !1;
+ if (!Object.prototype.propertyIsEnumerable.call(t, i) || !tq(a[i], o[i], n - 1)) return !1;
}
return !0;
}
-function rq(e, t, n, r = _Se) {
+function nq(e, t, n, r = vSe) {
let i = `on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`, a = e.options[i];
a && a((e) => {
- let t = JK(n, e);
+ let t = qK(n, e);
return r(e, t) ? e : t;
});
}
-function vSe(e) {
+function ySe(e) {
return e instanceof Function;
}
-function ySe(e, t) {
+function bSe(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -59004,7 +59004,7 @@ function ySe(e, t) {
};
return r(e), n;
}
-var bSe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
+var xSe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: i, onBeforeUpdate: a }) => {
let o = [], s;
return (c) => {
i?.();
@@ -59018,23 +59018,23 @@ var bSe = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCo
return n?.(u), u && (o = l, a?.(), s = e(...l ?? []), r?.(s)), s;
};
};
-function iq(e) {
+function rq(e) {
let t = !1;
return () => {
t ? e() : t = !0;
};
}
-function aq({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: i, ...a }) {
+function iq({ 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 bSe({
+ return xSe({
...a,
...o
});
}
-function oq(e, t = "_") {
+function aq(e, t = "_") {
let [n, r] = e.replace(t, " ").split(" ");
return {
fnKey: r,
@@ -59042,10 +59042,10 @@ function oq(e, t = "_") {
parentName: n
};
}
-function sq(e, t, n) {
+function oq(e, t, n) {
for (let [r, { fn: i, memoDeps: a }] of Object.entries(n)) {
- let { fnKey: n, fnName: o } = oq(r);
- t[n] = a ? aq({
+ let { fnKey: n, fnName: o } = aq(r);
+ t[n] = a ? iq({
memoDeps: a,
fn: i,
fnName: o,
@@ -59054,15 +59054,15 @@ function sq(e, t, n) {
}) : i;
}
}
-function cq(e, t, n, r) {
+function sq(e, t, n, r) {
for (let [i, { fn: a, memoDeps: o }] of Object.entries(r)) {
- let { fnKey: r, fnName: s } = oq(i);
+ let { fnKey: r, fnName: s } = aq(i);
if (o) {
let i = `_memo_${r}`;
t[r] = function(...t) {
if (!this[i]) {
let t = this;
- this[i] = aq({
+ this[i] = iq({
memoDeps: (e) => o(t, e),
fn: (...e) => a(t, ...e),
fnName: s,
@@ -59078,17 +59078,17 @@ function cq(e, t, n, r) {
};
}
}
-function lq(e, t, n, ...r) {
+function cq(e, t, n, ...r) {
return e[t]?.(...r) ?? n(e, ...r);
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.utils.js
-function xSe(e) {
+function SSe(e) {
return e.row.getValue(e.column.id);
}
-function SSe(e) {
+function CSe(e) {
return e.getValue() ?? e.table.options.renderFallbackValue;
}
-function CSe(e) {
+function wSe(e) {
return {
table: e.table,
column: e.column,
@@ -59099,18 +59099,18 @@ function CSe(e) {
};
}
// node_modules/@tanstack/table-core/dist/core/cells/coreCellsFeature.js
-var wSe = { assignCellPrototype: (e, t) => {
- cq("coreCellsFeature", e, t, {
- cell_getValue: { fn: (e) => xSe(e) },
- cell_renderValue: { fn: (e) => SSe(e) },
+var TSe = { assignCellPrototype: (e, t) => {
+ sq("coreCellsFeature", e, t, {
+ cell_getValue: { fn: (e) => SSe(e) },
+ cell_renderValue: { fn: (e) => CSe(e) },
cell_getContext: {
- fn: (e) => CSe(e),
+ fn: (e) => wSe(e),
memoDeps: (e) => [e]
}
});
} };
// node_modules/@tanstack/table-core/dist/core/columns/constructColumn.js
-function TSe(e) {
+function ESe(e) {
if (!e._columnPrototype) {
e._columnPrototype = { table: e };
let t = Object.values(e._features);
@@ -59118,7 +59118,7 @@ function TSe(e) {
}
return e._columnPrototype;
}
-function ESe(e, t, n, r) {
+function DSe(e, t, n, r) {
let i = {
...e.getDefaultColumnDef(),
...t
@@ -59138,53 +59138,53 @@ function ESe(e, t, n, r) {
} else c = (e) => e[i.accessorKey];
}
if (!s) throw Error();
- let l = TSe(e), u = Object.create(l);
+ let l = ESe(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 uq(e) {
+function lq(e) {
return e.getIsVisible?.() ?? !0;
}
-function DSe(e) {
+function OSe(e) {
return e.getVisibleLeafColumns?.() ?? e.getAllLeafColumns();
}
-function dq(e, t) {
+function uq(e, t) {
let n = e, r = t;
return n.getOrderColumnsFn?.()(r) ?? n._orderGroupedColumns?.(r) ?? t;
}
-function fq(e, t, n, r) {
+function dq(e, t, n, r) {
return e._orderByColumnPinning?.(t, n, r) ?? t;
}
-function pq(e, t) {
+function fq(e, t) {
return e._expandRows?.(t) ?? t;
}
-function OSe(e) {
+function kSe(e) {
e.autoResetExpanded?.();
}
-function mq(e) {
+function pq(e) {
e.autoResetPageIndex?.();
}
-function kSe(e) {
+function ASe(e) {
e.autoResetSorting?.();
}
-function ASe(e) {
+function jSe(e) {
e.autoResetCellSelection?.();
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.utils.js
-function jSe(e) {
+function MSe(e) {
return [e, ...e.columns.flatMap((e) => e.getFlatColumns())];
}
-function MSe(e) {
+function NSe(e) {
if (e.columns.length) {
let t = e.columns.flatMap((e) => e.getLeafColumns());
- return dq(e.table, t);
+ return uq(e.table, t);
}
return [e];
}
-function NSe(e) {
+function PSe(e) {
return {
header: (e) => {
let t = e.header.column.columnDef;
@@ -59195,53 +59195,53 @@ function NSe(e) {
...e.options.defaultColumn
};
}
-function hq(e, t, n, r = 0) {
+function mq(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 = ESe(e, o, r, n), c = o;
- s.columns = c.columns ? hq(e, c.columns, s, r + 1) : [], i[a] = s;
+ let o = t[a], s = DSe(e, o, r, n), c = o;
+ s.columns = c.columns ? mq(e, c.columns, s, r + 1) : [], i[a] = s;
}
return i;
}
-function PSe(e) {
- return hq(e, e.options.columns);
-}
function FSe(e) {
- return e.getAllColumns().flatMap((e) => e.getFlatColumns());
+ return mq(e, e.options.columns);
}
function ISe(e) {
- let t = ZK(), n = e.getAllFlatColumns();
+ return e.getAllColumns().flatMap((e) => e.getFlatColumns());
+}
+function LSe(e) {
+ let t = XK(), n = e.getAllFlatColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function LSe(e) {
- return dq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
-}
function RSe(e) {
- let t = ZK(), n = e.getAllLeafColumns();
+ return uq(e, e.getAllColumns().flatMap((e) => e.getLeafColumns()));
+}
+function zSe(e) {
+ let t = XK(), n = e.getAllLeafColumns();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.id] = r;
}
return t;
}
-function zSe(e, t) {
+function BSe(e, t) {
return e.getAllFlatColumnsById()[t];
}
// node_modules/@tanstack/table-core/dist/core/columns/coreColumnsFeature.js
-var BSe = {
+var VSe = {
assignColumnPrototype: (e, t) => {
- cq("coreColumnsFeature", e, t, {
+ sq("coreColumnsFeature", e, t, {
column_getFlatColumns: {
- fn: (e) => jSe(e),
+ fn: (e) => MSe(e),
memoDeps: (e) => [e.table.options.columns]
},
column_getLeafColumns: {
- fn: (e) => MSe(e),
+ fn: (e) => NSe(e),
memoDeps: (e) => [
e.table.atoms.columnOrder?.get(),
e.table.atoms.grouping?.get(),
@@ -59252,25 +59252,25 @@ var BSe = {
});
},
constructTableAPIs: (e) => {
- sq("coreColumnsFeature", e, {
+ oq("coreColumnsFeature", e, {
table_getDefaultColumnDef: {
- fn: () => NSe(e),
+ fn: () => PSe(e),
memoDeps: () => [e.options.defaultColumn]
},
table_getAllColumns: {
- fn: () => PSe(e),
+ fn: () => FSe(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumns: {
- fn: () => FSe(e),
+ fn: () => ISe(e),
memoDeps: () => [e.options.columns]
},
table_getAllFlatColumnsById: {
- fn: () => ISe(e),
+ fn: () => LSe(e),
memoDeps: () => [e.options.columns]
},
table_getAllLeafColumns: {
- fn: () => LSe(e),
+ fn: () => RSe(e),
memoDeps: () => [
e.atoms.columnOrder?.get(),
e.atoms.grouping?.get(),
@@ -59279,15 +59279,15 @@ var BSe = {
]
},
table_getAllLeafColumnsById: {
- fn: () => RSe(e),
+ fn: () => zSe(e),
memoDeps: () => [e.getAllLeafColumns()]
},
- table_getColumn: { fn: (t) => zSe(e, t) }
+ table_getColumn: { fn: (t) => BSe(e, t) }
});
}
};
// node_modules/@tanstack/table-core/dist/core/headers/constructHeader.js
-function VSe(e) {
+function HSe(e) {
if (!e._headerPrototype) {
e._headerPrototype = { table: e };
let t = Object.values(e._features);
@@ -59295,38 +59295,38 @@ function VSe(e) {
}
return e._headerPrototype;
}
-function gq(e, t, n) {
- let r = VSe(e), i = Object.create(r);
+function hq(e, t, n) {
+ let r = HSe(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 _q(e, t = 1) {
+function gq(e, t = 1) {
let n = t;
for (let r = 0; r < e.length; r++) {
let i = e[r];
- uq(i) && i.columns.length && (n = Math.max(n, _q(i.columns, t + 1)));
+ lq(i) && i.columns.length && (n = Math.max(n, gq(i.columns, t + 1)));
}
return n;
}
-function HSe(e, t) {
+function USe(e, t) {
return e ? `${e}_${t}` : String(t);
}
-function USe(e, t, n, r) {
+function WSe(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 WSe(e, t) {
+function GSe(e, t) {
let n = 0;
for (let r = 0; r < e.length; r++) e[r].column === t && n++;
return n;
}
-function vq(e, t, n, r, i, a) {
+function _q(e, t, n, r, i, a) {
let o = {
depth: t,
- id: HSe(r, t),
+ id: USe(r, t),
headers: []
}, s = [];
for (let i = 0; i < e.length; i++) {
@@ -59334,10 +59334,10 @@ function vq(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 = gq(n, u, {
- id: USe(r, t, u.id, a.id),
+ let e = hq(n, u, {
+ id: WSe(r, t, u.id, a.id),
isPlaceholder: d,
- placeholderId: d ? String(WSe(s, u)) : void 0,
+ placeholderId: d ? String(GSe(s, u)) : void 0,
depth: t,
index: s.length
});
@@ -59346,18 +59346,18 @@ function vq(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 && vq(s, t - 1, n, r, i, a);
+ i.push(o), t > 0 && _q(s, t - 1, n, r, i, a);
}
-function yq(e) {
+function vq(e) {
for (let t = 0; t < e.length; t++) {
let n = e[t];
- if (!uq(n.column)) continue;
+ if (!lq(n.column)) continue;
let r = 0;
if (n.subHeaders.length) {
- yq(n.subHeaders);
+ vq(n.subHeaders);
for (let e = 0; e < n.subHeaders.length; e++) {
let t = n.subHeaders[e];
- uq(t.column) && (r += t.colSpan);
+ lq(t.column) && (r += t.colSpan);
}
} else r = 1;
if (n.colSpan = r, n.isPlaceholder && n.subHeaders.length === 1 && n.subHeaders[0].column === n.column) {
@@ -59367,37 +59367,37 @@ function yq(e) {
} else n.rowSpan = 1;
}
}
-function GSe(e, t, n, r) {
- let i = _q(e), a = [], o = n._headerGroupInstanceInitFns, s = Array(t.length);
- for (let e = 0; e < t.length; e++) e in t && (s[e] = gq(n, t[e], {
+function KSe(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], {
depth: i,
index: e
}));
- return vq(s, i - 1, n, r, a, o), a.reverse(), yq(a[0]?.headers ?? []), a;
+ return _q(s, i - 1, n, r, a, o), a.reverse(), vq(a[0]?.headers ?? []), a;
}
// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.utils.js
-function bq(e, t) {
- for (let n = 0; n < e.subHeaders.length; n++) bq(e.subHeaders[n], t);
+function yq(e, t) {
+ for (let n = 0; n < e.subHeaders.length; n++) yq(e.subHeaders[n], t);
t.push(e);
}
-function KSe(e) {
+function qSe(e) {
let t = [];
- return bq(e, t), t;
+ return yq(e, t), t;
}
-function qSe(e) {
+function JSe(e) {
return {
column: e.column,
header: e,
table: e.column.table
};
}
-function JSe(e) {
- return GSe(e.getAllColumns(), fq(e, DSe(e), (e) => e.id), e);
-}
function YSe(e) {
- return [...e.getHeaderGroups()].reverse();
+ return KSe(e.getAllColumns(), dq(e, OSe(e), (e) => e.id), e);
}
function XSe(e) {
+ return [...e.getHeaderGroups()].reverse();
+}
+function ZSe(e) {
let t = e.getHeaderGroups(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].headers;
@@ -59405,7 +59405,7 @@ function XSe(e) {
}
return n;
}
-function ZSe(e) {
+function QSe(e) {
let t = e.getHeaderGroups()[0]?.headers ?? [], n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e].getLeafHeaders();
@@ -59414,23 +59414,23 @@ function ZSe(e) {
return n;
}
// node_modules/@tanstack/table-core/dist/core/headers/coreHeadersFeature.js
-var QSe = {
+var $Se = {
assignHeaderPrototype: (e, t) => {
- cq("coreHeadersFeature", e, t, {
+ sq("coreHeadersFeature", e, t, {
header_getLeafHeaders: {
- fn: (e) => KSe(e),
+ fn: (e) => qSe(e),
memoDeps: (e) => [e.column.table.options.columns]
},
header_getContext: {
- fn: (e) => qSe(e),
+ fn: (e) => JSe(e),
memoDeps: (e) => [e.column.table.options.columns]
}
});
},
constructTableAPIs: (e) => {
- sq("coreHeadersFeature", e, {
+ oq("coreHeadersFeature", e, {
table_getHeaderGroups: {
- fn: () => JSe(e),
+ fn: () => YSe(e),
memoDeps: () => [
e.options.columns,
e.atoms.columnOrder?.get(),
@@ -59441,22 +59441,22 @@ var QSe = {
]
},
table_getFooterGroups: {
- fn: () => YSe(e),
+ fn: () => XSe(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getFlatHeaders: {
- fn: () => XSe(e),
+ fn: () => ZSe(e),
memoDeps: () => [e.getHeaderGroups()]
},
table_getLeafHeaders: {
- fn: () => ZSe(e),
+ fn: () => QSe(e),
memoDeps: () => [e.getHeaderGroups()]
}
});
}
};
// node_modules/@tanstack/table-core/dist/core/rows/constructRow.js
-function $Se(e) {
+function eCe(e) {
if (!e._rowPrototype) {
e._rowPrototype = { table: e };
let t = Object.values(e._features);
@@ -59464,98 +59464,98 @@ function $Se(e) {
}
return e._rowPrototype;
}
-var eCe = (e, t, n, r, i, a, o) => {
- let s = $Se(e), c = Object.create(s);
- c._displayIndexCache = -1, c._uniqueValuesCache = ZK(), c._valuesCache = ZK(), c.depth = i, c.id = t, c.index = r, c.original = n, c.parentId = o, c.subRows = a ?? [];
+var tCe = (e, t, n, r, i, a, o) => {
+ let s = eCe(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 ?? [];
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 tCe() {
- return (e) => aq({
+function nCe() {
+ return (e) => iq({
feature: "coreRowModelsFeature",
table: e,
fnName: "table.getCoreRowModel",
memoDeps: () => [e.options.data],
- fn: () => nCe(e, e.options.data),
- onAfterUpdate: iq(() => {
- OSe(e), mq(e), kSe(e), ASe(e);
+ fn: () => rCe(e, e.options.data),
+ onAfterUpdate: rq(() => {
+ kSe(e), pq(e), ASe(e), jSe(e);
})
});
}
-function xq(e, t, n, r = 0, i) {
+function bq(e, t, n, r = 0, i) {
let a = [];
for (let o = 0; o < n.length; o++) {
- let s = n[o], c = eCe(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 = xq(e, t, c.originalSubRows, r + 1, c)));
+ let s = n[o], c = tCe(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)));
}
return a;
}
-function nCe(e, t) {
+function rCe(e, t) {
let n = {
rows: [],
flatRows: [],
- rowsById: ZK()
+ rowsById: XK()
};
- return n.rows = xq(e, n, t), n;
+ return n.rows = bq(e, n, t), n;
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.utils.js
-function rCe(e) {
- return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? tCe()(e)), e._rowModels.coreRowModel();
-}
function iCe(e) {
- return e.getCoreRowModel();
+ return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = e.options.features.coreRowModel?.(e) ?? nCe()(e)), e._rowModels.coreRowModel();
}
function aCe(e) {
- return e._rowModels.filteredRowModel || (e._rowModels.filteredRowModel = e.options.features.filteredRowModel?.(e)), e.options.manualFiltering || !e._rowModels.filteredRowModel ? e.getPreFilteredRowModel() : e._rowModels.filteredRowModel();
+ return e.getCoreRowModel();
}
function oCe(e) {
- return e.getFilteredRowModel();
+ return e._rowModels.filteredRowModel || (e._rowModels.filteredRowModel = e.options.features.filteredRowModel?.(e)), e.options.manualFiltering || !e._rowModels.filteredRowModel ? e.getPreFilteredRowModel() : e._rowModels.filteredRowModel();
}
function sCe(e) {
- return e._rowModels.groupedRowModel || (e._rowModels.groupedRowModel = e.options.features.groupedRowModel?.(e)), e.options.manualGrouping || !e._rowModels.groupedRowModel ? e.getPreGroupedRowModel() : e._rowModels.groupedRowModel();
+ return e.getFilteredRowModel();
}
function cCe(e) {
- return e.getGroupedRowModel();
+ return e._rowModels.groupedRowModel || (e._rowModels.groupedRowModel = e.options.features.groupedRowModel?.(e)), e.options.manualGrouping || !e._rowModels.groupedRowModel ? e.getPreGroupedRowModel() : e._rowModels.groupedRowModel();
}
function lCe(e) {
- return e._rowModels.sortedRowModel || (e._rowModels.sortedRowModel = e.options.features.sortedRowModel?.(e)), e.options.manualSorting || !e._rowModels.sortedRowModel ? e.getPreSortedRowModel() : e._rowModels.sortedRowModel();
+ return e.getGroupedRowModel();
}
function uCe(e) {
- return e.getSortedRowModel();
+ return e._rowModels.sortedRowModel || (e._rowModels.sortedRowModel = e.options.features.sortedRowModel?.(e)), e.options.manualSorting || !e._rowModels.sortedRowModel ? e.getPreSortedRowModel() : e._rowModels.sortedRowModel();
}
function dCe(e) {
- return e._rowModels.expandedRowModel || (e._rowModels.expandedRowModel = e.options.features.expandedRowModel?.(e)), e.options.manualExpanding || !e._rowModels.expandedRowModel ? e.getPreExpandedRowModel() : e._rowModels.expandedRowModel();
+ return e.getSortedRowModel();
}
function fCe(e) {
- return e.getExpandedRowModel();
+ return e._rowModels.expandedRowModel || (e._rowModels.expandedRowModel = e.options.features.expandedRowModel?.(e)), e.options.manualExpanding || !e._rowModels.expandedRowModel ? e.getPreExpandedRowModel() : e._rowModels.expandedRowModel();
}
function pCe(e) {
- return e._rowModels.paginatedRowModel || (e._rowModels.paginatedRowModel = e.options.features.paginatedRowModel?.(e)), e.options.manualPagination || !e._rowModels.paginatedRowModel ? e.getPrePaginatedRowModel() : e._rowModels.paginatedRowModel();
+ return e.getExpandedRowModel();
}
function mCe(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 hCe(e) {
return e.getPaginatedRowModel();
}
// node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.js
-var hCe = { constructTableAPIs: (e) => {
- sq("coreRowModelsFeature", e, {
- table_getCoreRowModel: { fn: () => rCe(e) },
- table_getPreFilteredRowModel: { fn: () => iCe(e) },
- table_getFilteredRowModel: { fn: () => aCe(e) },
- table_getPreGroupedRowModel: { fn: () => oCe(e) },
- table_getGroupedRowModel: { fn: () => sCe(e) },
- table_getPreSortedRowModel: { fn: () => cCe(e) },
- table_getSortedRowModel: { fn: () => lCe(e) },
- table_getPreExpandedRowModel: { fn: () => uCe(e) },
- table_getExpandedRowModel: { fn: () => dCe(e) },
- table_getPrePaginatedRowModel: { fn: () => fCe(e) },
- table_getPaginatedRowModel: { fn: () => pCe(e) },
- table_getRowModel: { fn: () => mCe(e) }
+var gCe = { constructTableAPIs: (e) => {
+ oq("coreRowModelsFeature", e, {
+ table_getCoreRowModel: { fn: () => iCe(e) },
+ table_getPreFilteredRowModel: { fn: () => aCe(e) },
+ table_getFilteredRowModel: { fn: () => oCe(e) },
+ table_getPreGroupedRowModel: { fn: () => sCe(e) },
+ table_getGroupedRowModel: { fn: () => cCe(e) },
+ table_getPreSortedRowModel: { fn: () => lCe(e) },
+ table_getSortedRowModel: { fn: () => uCe(e) },
+ table_getPreExpandedRowModel: { fn: () => dCe(e) },
+ table_getExpandedRowModel: { fn: () => fCe(e) },
+ table_getPrePaginatedRowModel: { fn: () => pCe(e) },
+ table_getPaginatedRowModel: { fn: () => mCe(e) },
+ table_getRowModel: { fn: () => hCe(e) }
});
} };
// node_modules/@tanstack/table-core/dist/core/cells/constructCell.js
-function gCe(e) {
+function _Ce(e) {
if (!e._cellPrototype) {
e._cellPrototype = { table: e };
let t = Object.values(e._features);
@@ -59563,48 +59563,48 @@ function gCe(e) {
}
return e._cellPrototype;
}
-function _Ce(e, t, n) {
- let r = gCe(n), i = Object.create(r);
+function vCe(e, t, n) {
+ let r = _Ce(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 vCe(e) {
+function yCe(e) {
let t = e.table.getRowsInDisplayOrder(), n = e._displayIndexCache;
return t[n] === e ? n : -1;
}
-function yCe(e) {
- let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? pq(e, t).rows : t.rows;
+function bCe(e) {
+ let t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? fq(e, t).rows : t.rows;
for (let e = 0; e < n.length; e++) n[e]._displayIndexCache = e;
return n;
}
-function bCe(e, t) {
- if (QK(e._valuesCache, t)) return e._valuesCache[t];
+function xCe(e, t) {
+ if (ZK(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 xCe(e, t) {
- if (QK(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
+function SCe(e, t) {
+ if (ZK(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 SCe(e, t) {
+function CCe(e, t) {
return e.getValue(t) ?? e.table.options.renderFallbackValue;
}
-function CCe(e) {
- return ySe(e.subRows, (e) => e.subRows);
-}
function wCe(e) {
+ return bSe(e.subRows, (e) => e.subRows);
+}
+function TCe(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 TCe(e) {
+function ECe(e) {
if (e.parentId) return e.table.getCoreRowModel().rowsById[e.parentId] ?? e.table.getRow(e.parentId, !0);
}
-function ECe(e) {
+function DCe(e) {
let t = [], n = e;
for (;;) {
let e = n.getParentRow();
@@ -59613,77 +59613,77 @@ function ECe(e) {
}
return t.reverse();
}
-function DCe(e) {
+function OCe(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 = _Ce(a, e, e.table), n.set(a, o)), r[i] = o;
+ o || (o = vCe(a, e, e.table), n.set(a, o)), r[i] = o;
}
return r;
}
-function OCe(e) {
- let t = ZK(), n = e.getAllCells();
+function kCe(e) {
+ let t = XK(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
t[r.column.id] = r;
}
return t;
}
-function kCe(e, t, n, r) {
+function ACe(e, t, n, r) {
return t.options.getRowId?.(e, n, r) ?? (r ? `${r.id}.${n}` : String(n));
}
-function ACe(e, t, n) {
+function jCe(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 jCe = {
+var MCe = {
assignRowPrototype: (e, t) => {
- cq("coreRowsFeature", e, t, {
- row_getDisplayIndex: { fn: (e) => vCe(e) },
+ sq("coreRowsFeature", e, t, {
+ row_getDisplayIndex: { fn: (e) => yCe(e) },
row_getAllCellsByColumnId: {
- fn: (e) => OCe(e),
+ fn: (e) => kCe(e),
memoDeps: (e) => [e.getAllCells()]
},
row_getAllCells: {
- fn: (e) => DCe(e),
+ fn: (e) => OCe(e),
memoDeps: (e) => [e.table.getAllLeafColumns()]
},
row_getLeafRows: {
- fn: (e) => CCe(e),
+ fn: (e) => wCe(e),
memoDeps: (e) => [e.subRows]
},
- row_getParentRow: { fn: (e) => TCe(e) },
- row_getParentRows: { fn: (e) => ECe(e) },
- row_getUniqueValues: { fn: (e, t) => xCe(e, t) },
- row_getValue: { fn: (e, t) => bCe(e, t) },
- row_renderValue: { fn: (e, t) => SCe(e, t) }
+ row_getParentRow: { fn: (e) => ECe(e) },
+ row_getParentRows: { fn: (e) => DCe(e) },
+ row_getUniqueValues: { fn: (e, t) => SCe(e, t) },
+ row_getValue: { fn: (e, t) => xCe(e, t) },
+ row_renderValue: { fn: (e, t) => CCe(e, t) }
});
},
constructTableAPIs: (e) => {
- sq("coreRowsFeature", e, {
+ oq("coreRowsFeature", e, {
table_getRowsInDisplayOrder: {
- fn: () => yCe(e),
+ fn: () => bCe(e),
memoDeps: () => [
e.getPrePaginatedRowModel().rows,
e.options.paginateExpandedRows,
e.options.paginateExpandedRows === !1 ? e.atoms.expanded?.get() : void 0
]
},
- table_getRowId: { fn: (t, n, r) => kCe(t, e, n, r) },
- table_getRow: { fn: (t, n) => ACe(e, t, n) },
+ table_getRowId: { fn: (t, n, r) => ACe(t, e, n, r) },
+ table_getRow: { fn: (t, n) => jCe(e, t, n) },
table_getMaxSubRowDepth: {
- fn: () => wCe(e),
+ fn: () => TCe(e),
memoDeps: () => [e.getCoreRowModel()]
}
});
}
};
// node_modules/@tanstack/table-core/dist/core/table/coreTablesFeature.utils.js
-function Sq(e, t, n = (e, t) => e === t) {
+function xq(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) {
@@ -59694,13 +59694,13 @@ function Sq(e, t, n = (e, t) => e === t) {
}
});
}
-function Cq(e, t, n = (e, t) => e === t) {
+function Sq(e, t, n = (e, t) => e === t) {
e._reactivity.batch(() => {
- Sq(e, t, n), e._reactivity.commit?.();
+ xq(e, t, n), e._reactivity.commit?.();
});
}
-function MCe(e) {
- let t = YK(e.initialState);
+function NCe(e) {
+ let t = JK(e.initialState);
e._reactivity.batch(() => {
let n = Object.keys(t);
for (let r = 0; r < n.length; r++) {
@@ -59711,7 +59711,7 @@ function MCe(e) {
let n = Object.values(e._features);
for (let t = 0; t < n.length; t++) n[t].resetTableInstanceData?.(e);
}
-function NCe(e, t) {
+function PCe(e, t) {
let { features: n, atoms: r, initialState: i } = e.options;
if (!e.options.mergeOptions) return {
...e.options,
@@ -59743,26 +59743,26 @@ function NCe(e, t) {
}
});
}
-function wq(e, t, n) {
- let r = NCe(e, JK(t, e.options));
- e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && Cq(e, r.state ?? null);
+function Cq(e, t, n) {
+ let r = PCe(e, qK(t, e.options));
+ e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, n?.syncExternalState !== !1 && Sq(e, r.state ?? null);
}
// node_modules/@tanstack/table-core/dist/core/coreFeatures.js
-var PCe = {
- coreCellsFeature: wSe,
- coreColumnsFeature: BSe,
- coreHeadersFeature: QSe,
- coreRowModelsFeature: hCe,
- coreRowsFeature: jCe,
+var FCe = {
+ coreCellsFeature: TSe,
+ coreColumnsFeature: VSe,
+ coreHeadersFeature: $Se,
+ coreRowModelsFeature: gCe,
+ coreRowsFeature: MCe,
coreTablesFeature: { constructTableAPIs: (e) => {
- sq("coreTablesFeature", e, {
- table_reset: { fn: () => MCe(e) },
- table_setOptions: { fn: (t) => wq(e, t) }
+ oq("coreTablesFeature", e, {
+ table_reset: { fn: () => NCe(e) },
+ table_setOptions: { fn: (t) => Cq(e, t) }
});
} }
};
// node_modules/@tanstack/table-core/dist/helpers/columnHelper.js
-function Tq() {
+function wq() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -59777,21 +59777,21 @@ function Tq() {
};
}
// node_modules/@tanstack/table-core/dist/helpers/tableFeatures.js
-function Eq(e) {
+function Tq(e) {
return e;
}
// node_modules/@tanstack/table-core/dist/core/table/constructTable.js
-function FCe(e, t = {}) {
+function ICe(e, t = {}) {
return Object.values(e).forEach((e) => {
t = e.getInitialState?.(t) ?? t;
- }), YK(t);
+ }), JK(t);
}
-function ICe(e) {
+function LCe(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: {
- ...PCe,
+ ...FCe,
..._
},
_headerGroupInstanceInitFns: [],
@@ -59829,7 +59829,7 @@ function ICe(e) {
set(e) {
v.optionsStore.set(() => e);
}
- })) : v.options = b, v.initialState = FCe(v._features, v.options.initialState);
+ })) : v.options = b, v.initialState = ICe(v._features, v.options.initialState);
let x = Object.keys(v.initialState);
for (let e = 0; e < x.length; e++) {
let n = x[e];
@@ -59837,14 +59837,14 @@ function ICe(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 && QK(i, n)) {
+ if (i && ZK(i, n)) {
let e = i[n];
return e === void 0 ? v.initialState[n] : e;
}
return r;
}, { debugName: `table/atoms/${n}` });
}
- Sq(v), v.store = fSe(t.createReadonlyAtom(() => {
+ xq(v), v.store = pSe(t.createReadonlyAtom(() => {
let e = {};
for (let t = 0; t < x.length; t++) {
let n = x[t];
@@ -59852,7 +59852,7 @@ function ICe(e) {
}
return e;
}, {
- compare: WK,
+ compare: UK,
debugName: "table/store"
}));
for (let e = 0; e < y.length; e++) {
@@ -59862,107 +59862,107 @@ function ICe(e) {
return v;
}
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.utils.js
-function LCe() {
- return ZK();
+function RCe() {
+ return XK();
}
-function Dq(e, t) {
- kq(e) && jq(e.table, (n) => {
- let r = Object.assign(ZK(), n), i = t ?? !lq(e, "getIsVisible", Oq), a = e.getLeafColumns();
+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();
for (let e = 0; e < a.length; e++) {
let t = a[e];
- kq(t) && (r[t.id] = i);
+ Oq(t) && (r[t.id] = i);
}
return r;
});
}
-function Oq(e) {
+function Dq(e) {
let t = e.table.atoms.columnVisibility?.get();
if (!t) return !0;
let n = e.columns;
- return n.length ? n.some((e) => lq(e, "getIsVisible", Oq)) : (QK(t, e.id) ? t[e.id] : void 0) ?? !0;
+ return n.length ? n.some((e) => cq(e, "getIsVisible", Dq)) : (ZK(t, e.id) ? t[e.id] : void 0) ?? !0;
}
-function kq(e) {
+function Oq(e) {
return (e.columnDef.enableHiding ?? !0) && (e.table.options.enableHiding ?? !0);
}
-function RCe(e) {
+function zCe(e) {
return (t) => {
- Dq(e, t.target.checked);
+ Eq(e, t.target.checked);
};
}
-function zCe(e) {
+function BCe(e) {
let t = e.getAllCells(), n = [];
for (let e = 0; e < t.length; e++) {
let r = t[e];
- lq(r.column, "getIsVisible", Oq) && n.push(r);
+ cq(r.column, "getIsVisible", Dq) && n.push(r);
}
- return fq(e.table, n, (e) => e.column.id, () => lq(e, "getVisibleCellsByColumnId", Aq));
+ return dq(e.table, n, (e) => e.column.id, () => cq(e, "getVisibleCellsByColumnId", kq));
}
-function Aq(e) {
- let t = ZK(), n = e.getAllCells();
+function kq(e) {
+ let t = XK(), n = e.getAllCells();
for (let e = 0; e < n.length; e++) {
let r = n[e];
- lq(r.column, "getIsVisible", Oq) && (t[r.column.id] = r);
+ cq(r.column, "getIsVisible", Dq) && (t[r.column.id] = r);
}
return t;
}
-function BCe(e) {
- return e.getAllFlatColumns().filter((e) => lq(e, "getIsVisible", Oq));
-}
function VCe(e) {
- return e.getAllLeafColumns().filter((e) => lq(e, "getIsVisible", Oq));
+ return e.getAllFlatColumns().filter((e) => cq(e, "getIsVisible", Dq));
}
-function jq(e, t) {
- rq(e, "columnVisibility", t);
+function HCe(e) {
+ return e.getAllLeafColumns().filter((e) => cq(e, "getIsVisible", Dq));
+}
+function Aq(e, t) {
+ nq(e, "columnVisibility", t);
}
-function HCe(e, t) {
- jq(e, t ? ZK() : Object.assign(ZK(), YK(e.initialState.columnVisibility ?? {})));
+function UCe(e, t) {
+ Aq(e, t ? XK() : Object.assign(XK(), JK(e.initialState.columnVisibility ?? {})));
}
-function Mq(e, t) {
- t ??= !Nq(e);
- let n = ZK(), r = e.getAllLeafColumns();
+function jq(e, t) {
+ t ??= !Mq(e);
+ let n = XK(), r = e.getAllLeafColumns();
for (let e = 0; e < r.length; e++) {
let i = r[e];
- n[i.id] = t || !kq(i);
+ n[i.id] = t || !Oq(i);
}
- jq(e, n);
-}
-function Nq(e) {
- return !e.getAllLeafColumns().some((e) => !lq(e, "getIsVisible", Oq));
+ Aq(e, n);
}
-function UCe(e) {
- return e.getAllLeafColumns().some((e) => lq(e, "getIsVisible", Oq));
+function Mq(e) {
+ return !e.getAllLeafColumns().some((e) => !cq(e, "getIsVisible", Dq));
}
function WCe(e) {
+ return e.getAllLeafColumns().some((e) => cq(e, "getIsVisible", Dq));
+}
+function GCe(e) {
return (t) => {
- Mq(e, t.target.checked);
+ jq(e, t.target.checked);
};
}
// node_modules/@tanstack/table-core/dist/features/column-visibility/columnVisibilityFeature.js
-var Pq = {
+var Nq = {
getInitialState: (e) => ({
- columnVisibility: LCe(),
+ columnVisibility: RCe(),
...e
}),
- getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: $K("columnVisibility", e) }),
+ getDefaultTableOptions: (e) => ({ onColumnVisibilityChange: QK("columnVisibility", e) }),
assignColumnPrototype: (e, t) => {
- cq("columnVisibilityFeature", e, t, {
+ sq("columnVisibilityFeature", e, t, {
column_getIsVisible: {
- fn: (e) => Oq(e),
+ fn: (e) => Dq(e),
memoDeps: (e) => [
t.options.columns,
t.atoms.columnVisibility?.get(),
e.columns
]
},
- column_getCanHide: { fn: (e) => kq(e) },
- column_getToggleVisibilityHandler: { fn: (e) => RCe(e) },
- column_toggleVisibility: { fn: (e, t) => Dq(e, t) }
+ column_getCanHide: { fn: (e) => Oq(e) },
+ column_getToggleVisibilityHandler: { fn: (e) => zCe(e) },
+ column_toggleVisibility: { fn: (e, t) => Eq(e, t) }
});
},
assignRowPrototype: (e, t) => {
- cq("columnVisibilityFeature", e, t, {
+ sq("columnVisibilityFeature", e, t, {
row_getVisibleCells: {
- fn: (e) => zCe(e),
+ fn: (e) => BCe(e),
memoDeps: (e) => [
e.getAllCells(),
t.atoms.columnPinning?.get(),
@@ -59970,15 +59970,15 @@ var Pq = {
]
},
row_getVisibleCellsByColumnId: {
- fn: (e) => Aq(e),
+ fn: (e) => kq(e),
memoDeps: (e) => [e.getAllCells(), t.atoms.columnVisibility?.get()]
}
});
},
constructTableAPIs: (e) => {
- sq("columnVisibilityFeature", e, {
+ oq("columnVisibilityFeature", e, {
table_getVisibleFlatColumns: {
- fn: () => BCe(e),
+ fn: () => VCe(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -59988,7 +59988,7 @@ var Pq = {
]
},
table_getVisibleLeafColumns: {
- fn: () => VCe(e),
+ fn: () => HCe(e),
memoDeps: () => [
e.atoms.columnVisibility?.get(),
e.atoms.columnOrder?.get(),
@@ -59997,51 +59997,51 @@ var Pq = {
e.options.groupedColumnMode
]
},
- table_setColumnVisibility: { fn: (t) => jq(e, t) },
- table_resetColumnVisibility: { fn: (t) => HCe(e, t) },
- table_toggleAllColumnsVisible: { fn: (t) => Mq(e, t) },
- table_getIsAllColumnsVisible: { fn: () => Nq(e) },
- table_getIsSomeColumnsVisible: { fn: () => UCe(e) },
- table_getToggleAllColumnsVisibilityHandler: { fn: () => WCe(e) }
+ table_setColumnVisibility: { fn: (t) => Aq(e, t) },
+ table_resetColumnVisibility: { fn: (t) => UCe(e, t) },
+ table_toggleAllColumnsVisible: { fn: (t) => jq(e, t) },
+ table_getIsAllColumnsVisible: { fn: () => Mq(e) },
+ table_getIsSomeColumnsVisible: { fn: () => WCe(e) },
+ table_getToggleAllColumnsVisibilityHandler: { fn: () => GCe(e) }
});
}
-}, Fq = 0, Iq = 10;
-function Lq() {
+}, Pq = 0, Fq = 10;
+function Iq() {
return {
- pageIndex: Fq,
- pageSize: Iq
+ pageIndex: Pq,
+ pageSize: Fq
};
}
-function GCe(e) {
+function KCe(e) {
if (e.options.autoResetAll ?? e.options.autoResetPageIndex ?? !e.options.manualPagination) {
- if ((e.atoms.pagination?.get()?.pageIndex ?? Fq) === Fq) return;
- Bq(e, !0);
+ if ((e.atoms.pagination?.get()?.pageIndex ?? Pq) === Pq) return;
+ zq(e, !0);
}
}
-function Rq(e, t) {
- rq(e, "pagination", t);
+function Lq(e, t) {
+ nq(e, "pagination", t);
}
-function KCe(e, t) {
- Rq(e, t ? Lq() : YK(e.initialState.pagination ?? Lq()));
+function qCe(e, t) {
+ Lq(e, t ? Iq() : JK(e.initialState.pagination ?? Iq()));
}
-function zq(e, t) {
- Rq(e, (n) => {
- let r = JK(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+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;
return r = Math.max(0, Math.min(r, i)), {
...n,
pageIndex: r
};
});
}
-function Bq(e, t) {
- zq(e, t ? Fq : e.initialState.pagination?.pageIndex ?? Fq);
+function zq(e, t) {
+ Rq(e, t ? Pq : e.initialState.pagination?.pageIndex ?? Pq);
}
-function qCe(e, t) {
- Vq(e, t ? Iq : e.initialState.pagination?.pageSize ?? Iq);
+function JCe(e, t) {
+ Bq(e, t ? Fq : e.initialState.pagination?.pageSize ?? Fq);
}
-function Vq(e, t) {
- Rq(e, (e) => {
- let n = Math.max(1, JK(t, e.pageSize)), r = e.pageSize === Infinity ? 0 : e.pageSize * e.pageIndex, i = n === Infinity ? 0 : Math.floor(r / n);
+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);
return {
...e,
pageIndex: i,
@@ -60049,231 +60049,231 @@ function Vq(e, t) {
};
});
}
-function JCe(e) {
- let t = Hq(e), n = [];
- return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;
-}
function YCe(e) {
- return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;
+ let t = Vq(e), n = [];
+ return t && t > 0 && (n = [...Array(t)].fill(null).map((e, t) => t)), n;
}
function XCe(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? Fq, n = Hq(e);
- return n === -1 || n !== 0 && t < n - 1;
+ return (e.atoms.pagination?.get()?.pageIndex ?? 0) > 0;
}
function ZCe(e) {
- let t = e.atoms.pagination?.get()?.pageIndex ?? Fq, n = Hq(e);
- return Number.isFinite(n) && n > 0 && t < n - 1;
+ let t = e.atoms.pagination?.get()?.pageIndex ?? Pq, n = Vq(e);
+ return n === -1 || n !== 0 && t < n - 1;
}
function QCe(e) {
- return zq(e, (e) => e - 1);
+ let t = e.atoms.pagination?.get()?.pageIndex ?? Pq, n = Vq(e);
+ return Number.isFinite(n) && n > 0 && t < n - 1;
}
function $Ce(e) {
- return zq(e, (e) => e + 1);
+ return Rq(e, (e) => e - 1);
}
function ewe(e) {
- return zq(e, 0);
+ return Rq(e, (e) => e + 1);
}
function twe(e) {
- let t = Hq(e);
- if (!(!Number.isFinite(t) || t <= 0)) return zq(e, t - 1);
+ return Rq(e, 0);
}
-function Hq(e) {
+function nwe(e) {
+ let t = Vq(e);
+ if (!(!Number.isFinite(t) || t <= 0)) return Rq(e, t - 1);
+}
+function Vq(e) {
let t = e.options.pageCount;
if (t != null) return t;
- let n = Uq(e), r = e.atoms.pagination?.get()?.pageSize ?? Iq;
+ let n = Hq(e), r = e.atoms.pagination?.get()?.pageSize ?? Fq;
return r === Infinity && Number.isFinite(n) && n > 0 ? 1 : Math.ceil(n / r);
}
-function Uq(e) {
+function Hq(e) {
return e.options.rowCount ?? e.getPrePaginatedRowModel().rows.length;
}
// node_modules/@tanstack/table-core/dist/features/row-pagination/rowPaginationFeature.js
-var Wq = {
+var Uq = {
getInitialState: (e) => ({
...e,
pagination: {
- ...Lq(),
+ ...Iq(),
...e.pagination
}
}),
- getDefaultTableOptions: (e) => ({ onPaginationChange: $K("pagination", e) }),
+ getDefaultTableOptions: (e) => ({ onPaginationChange: QK("pagination", e) }),
constructTableAPIs: (e) => {
- sq("rowPaginationFeature", e, {
- table_autoResetPageIndex: { fn: () => GCe(e) },
- table_setPagination: { fn: (t) => Rq(e, t) },
- table_resetPagination: { fn: (t) => KCe(e, t) },
- table_setPageIndex: { fn: (t) => zq(e, t) },
- table_resetPageIndex: { fn: (t) => Bq(e, t) },
- table_setPageSize: { fn: (t) => Vq(e, t) },
- table_getPageCount: { fn: () => Hq(e) },
- table_resetPageSize: { fn: (t) => qCe(e, t) },
- table_getPageOptions: { fn: () => JCe(e) },
- table_getCanPreviousPage: { fn: () => YCe(e) },
- table_getCanNextPage: { fn: () => XCe(e) },
- table_getCanLastPage: { fn: () => ZCe(e) },
- table_previousPage: { fn: () => QCe(e) },
- table_nextPage: { fn: () => $Ce(e) },
- table_firstPage: { fn: () => ewe(e) },
- table_lastPage: { fn: () => twe(e) },
- table_getRowCount: { fn: () => Uq(e) }
+ oq("rowPaginationFeature", e, {
+ table_autoResetPageIndex: { fn: () => KCe(e) },
+ table_setPagination: { fn: (t) => Lq(e, t) },
+ table_resetPagination: { fn: (t) => qCe(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) => JCe(e, t) },
+ table_getPageOptions: { fn: () => YCe(e) },
+ table_getCanPreviousPage: { fn: () => XCe(e) },
+ table_getCanNextPage: { fn: () => ZCe(e) },
+ table_getCanLastPage: { fn: () => QCe(e) },
+ table_previousPage: { fn: () => $Ce(e) },
+ table_nextPage: { fn: () => ewe(e) },
+ table_firstPage: { fn: () => twe(e) },
+ table_lastPage: { fn: () => nwe(e) },
+ table_getRowCount: { fn: () => Hq(e) }
});
}
};
// node_modules/@tanstack/table-core/dist/features/row-selection/rowSelectionFeature.utils.js
-function nwe() {
- return ZK();
+function rwe() {
+ return XK();
}
-function Gq(e, t) {
+function Wq(e, t) {
e.options.onRowSelectionChange?.(t);
}
-function rwe(e, t) {
- e._lastSelectedRowId = null, Gq(e, t ? ZK() : Object.assign(ZK(), YK(e.initialState.rowSelection ?? {})));
+function iwe(e, t) {
+ e._lastSelectedRowId = null, Wq(e, t ? XK() : Object.assign(XK(), JK(e.initialState.rowSelection ?? {})));
}
-function Kq(e, t, n) {
- e._lastSelectedRowId = null, Gq(e, (r) => {
- if (t = t === void 0 ? !lq(e, "getIsAllRowsSelected", Yq) : t, n?.deselectAll && !t) return ZK();
- let i = Object.assign(ZK(), r), a = e.getPreGroupedRowModel().flatRows;
+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;
if (t) {
let e = /* @__PURE__ */ new Map();
a.forEach((t) => {
- aJ(t, e) && (i[t.id] = !0);
+ iJ(t, e) && (i[t.id] = !0);
});
} else a.forEach((e) => {
- tJ(e) && delete i[e.id];
+ eJ(e) && delete i[e.id];
});
return i;
});
}
-function qq(e, t, n) {
- e._lastSelectedRowId = null, Gq(e, (r) => {
- let i = t === void 0 ? !lq(e, "getIsAllPageRowsSelected", Xq) : t;
- if (n?.deselectAll && !i) return ZK();
- let a = Object.assign(ZK(), r);
+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);
return e.getRowModel().rows.forEach((t) => {
- iJ(a, t.id, i, !0, e, !0);
+ rJ(a, t.id, i, !0, e, !0);
}), a;
});
}
-function iwe(e) {
+function awe(e) {
return e.getCoreRowModel();
}
-function awe(e) {
+function owe(e) {
let t = e.getCoreRowModel();
- return lq(e, "getIsSomeRowsSelected", Zq) ? cJ(t, e) : {
+ return cq(e, "getIsSomeRowsSelected", Xq) ? sJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: ZK()
+ rowsById: XK()
};
}
-function owe(e) {
+function swe(e) {
let t = e.getFilteredRowModel();
- return lq(e, "getIsSomeRowsSelected", Zq) ? cJ(t, e) : {
+ return cq(e, "getIsSomeRowsSelected", Xq) ? sJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: ZK()
+ rowsById: XK()
};
}
-function swe(e) {
+function cwe(e) {
let t = e.getSortedRowModel();
- return lq(e, "getIsSomeRowsSelected", Zq) ? cJ(t, e) : {
+ return cq(e, "getIsSomeRowsSelected", Xq) ? sJ(t, e) : {
rows: [],
flatRows: [],
- rowsById: ZK()
+ rowsById: XK()
};
}
-function Jq(e) {
+function qq(e) {
return Object.keys(e.atoms.rowSelection?.get() ?? {});
}
-function Yq(e) {
+function Jq(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) => !lJ(t, n) && aJ(t, e)) && (r = !1);
+ t.some((t) => !cJ(t, n) && iJ(t, e)) && (r = !1);
}
return r;
}
-function Xq(e) {
+function Yq(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 (lJ(a, n)) !i && aJ(a, r) && (i = !0);
- else if (aJ(a, r)) return !1;
+ if (cJ(a, n)) !i && iJ(a, r) && (i = !0);
+ else if (iJ(a, r)) return !1;
}
return i;
}
-function Zq(e) {
- return lq(e, "getSelectedRowIds", Jq).length > 0;
-}
-function cwe(e) {
- return e.getPaginatedRowModel().flatRows.filter((e) => tJ(e)).some((e) => $q(e) || lq(e, "getIsSomeSelected", eJ));
+function Xq(e) {
+ return cq(e, "getSelectedRowIds", qq).length > 0;
}
function lwe(e) {
+ return e.getPaginatedRowModel().flatRows.filter((e) => eJ(e)).some((e) => Qq(e) || cq(e, "getIsSomeSelected", $q));
+}
+function uwe(e) {
return (t) => {
- Kq(e, t.target.checked);
+ Gq(e, t.target.checked);
};
}
-function uwe(e) {
+function dwe(e) {
return (t) => {
- qq(e, t.target.checked);
+ Kq(e, t.target.checked);
};
}
-function Qq(e, t, n) {
- let r = $q(e);
- Gq(e.table, (i) => {
+function Zq(e, t, n) {
+ let r = Qq(e);
+ Wq(e.table, (i) => {
t = t === void 0 ? !r : t;
- let a = Object.assign(ZK(), i);
- return iJ(a, e.id, t, (n?.selectChildren ?? !0) && rJ(e), e.table), !t && n?.deselectParents && oJ(a, e), a;
+ 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;
});
}
-function $q(e) {
- return lJ(e, e.table.atoms.rowSelection?.get() ?? {});
+function Qq(e) {
+ return cJ(e, e.table.atoms.rowSelection?.get() ?? {});
}
-function eJ(e) {
- return uJ(e) === "some";
+function $q(e) {
+ return lJ(e) === "some";
}
-function dwe(e) {
- return uJ(e) === "all";
+function fwe(e) {
+ return lJ(e) === "all";
}
-function tJ(e) {
+function eJ(e) {
let t = e.table.options;
return typeof t.enableRowSelection == "function" ? t.enableRowSelection(e) : t.enableRowSelection ?? !0;
}
-function nJ(e) {
+function tJ(e) {
let t = e.table.options;
return typeof t.enableSubRowSelection == "function" ? t.enableSubRowSelection(e) : t.enableSubRowSelection ?? !0;
}
-function rJ(e) {
+function nJ(e) {
let t = e.table.options;
return typeof t.enableMultiRowSelection == "function" ? t.enableMultiRowSelection(e) : t.enableMultiRowSelection ?? !0;
}
-function fwe(e, t) {
- let n = tJ(e);
+function pwe(e, t) {
+ let n = eJ(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 && rJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && pwe(e, s, o, t) || Qq(e, o, t), a._lastSelectedRowId = e.id;
+ a.options.enableRowRangeSelection !== !1 && s !== null && nJ(e) && (a.options.isRowRangeSelectionEvent?.(r) ?? !1) && mwe(e, s, o, t) || Zq(e, o, t), a._lastSelectedRowId = e.id;
};
}
-function pwe(e, t, n, r) {
+function mwe(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 || !rJ(s) || !rJ(e)) return !1;
+ 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;
let f = Math.min(c, l), p = Math.max(c, l);
- return Gq(a, (e) => {
- let t = Object.assign(ZK(), e);
+ return Wq(a, (e) => {
+ let t = Object.assign(XK(), e);
for (let e = f; e <= p; e++) {
let s = o[e];
- tJ(s) && rJ(s) && (iJ(t, s.id, n, i, a), !n && r?.deselectParents && oJ(t, s));
+ eJ(s) && nJ(s) && (rJ(t, s.id, n, i, a), !n && r?.deselectParents && aJ(t, s));
}
return t;
}), !0;
}
-function iJ(e, t, n, r, i, a) {
+function rJ(e, t, n, r, i, a) {
let o = i.getRow(t, !0);
- n ? (rJ(o) || Object.keys(e).forEach((t) => delete e[t]), tJ(o) && (e[t] = !0)) : (!a || tJ(o)) && delete e[t], r && o.subRows.length && nJ(o) && o.subRows.forEach((t) => iJ(e, t.id, n, r, i, a));
+ 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));
}
-function aJ(e, t) {
- if (!tJ(e)) return !1;
+function iJ(e, t) {
+ if (!eJ(e)) return !1;
let n = e.table;
if (n.options.enableSubRowSelection === !0) return !0;
let r = e.parentId;
@@ -60289,7 +60289,7 @@ function aJ(e, t) {
}
o.push(c);
let r = a[c] ?? n.getRow(c, !0);
- if (!nJ(r)) {
+ if (!tJ(r)) {
s = !1;
break;
}
@@ -60297,50 +60297,50 @@ function aJ(e, t) {
}
return o.forEach((e) => t.set(e, s)), s;
}
-function oJ(e, t) {
+function aJ(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 sJ(e, t, n, r) {
+function oJ(e, t, n, r) {
let i = [];
for (let a = 0; a < e.length; a++) {
- let o = e[a], s = lJ(o, t);
+ let o = e[a], s = cJ(o, t);
if (s && (n.push(o), r[o.id] = o), o.subRows.length) {
- let e = sJ(o.subRows, t, n, r);
+ let e = oJ(o.subRows, t, n, r);
if (s) {
let t = Object.create(Object.getPrototypeOf(o));
- XK(t, o), t.subRows = e, i.push(t);
+ YK(t, o), t.subRows = e, i.push(t);
}
} else s && i.push(o);
}
return i;
}
-function cJ(e, t) {
- let n = [], r = ZK(), i = t.atoms.rowSelection?.get() ?? {};
+function sJ(e, t) {
+ let n = [], r = XK(), i = t.atoms.rowSelection?.get() ?? {};
return {
- rows: sJ(e.rows, i, n, r),
+ rows: oJ(e.rows, i, n, r),
flatRows: n,
rowsById: r
};
}
-function lJ(e, t) {
- return !!(QK(t, e.id) && t[e.id]);
+function cJ(e, t) {
+ return !!(ZK(t, e.id) && t[e.id]);
}
-function uJ(e) {
+function lJ(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 (tJ(o) && (i = !0, lJ(o, t) ? n = !0 : r = !1), o.subRows.length) {
- let e = uJ(o);
+ if (eJ(o) && (i = !0, cJ(o, t) ? n = !0 : r = !1), o.subRows.length) {
+ let e = lJ(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 dJ = {
+var uJ = {
initTableInstanceData: (e) => {
e._lastSelectedRowId = null;
},
@@ -60348,11 +60348,11 @@ var dJ = {
e._lastSelectedRowId = null;
},
getInitialState: (e) => ({
- rowSelection: nwe(),
+ rowSelection: rwe(),
...e
}),
getDefaultTableOptions: (e) => ({
- onRowSelectionChange: $K("rowSelection", e),
+ onRowSelectionChange: QK("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableRowRangeSelection: !0,
@@ -60363,11 +60363,11 @@ var dJ = {
}
}),
assignRowPrototype: (e, t) => {
- cq("rowSelectionFeature", e, t, {
- row_toggleSelected: { fn: (e, t, n) => Qq(e, t, n) },
- row_getIsSelected: { fn: (e) => $q(e) },
+ sq("rowSelectionFeature", e, t, {
+ row_toggleSelected: { fn: (e, t, n) => Zq(e, t, n) },
+ row_getIsSelected: { fn: (e) => Qq(e) },
row_getIsSomeSelected: {
- fn: (e) => eJ(e),
+ fn: (e) => $q(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
@@ -60375,44 +60375,44 @@ var dJ = {
]
},
row_getIsAllSubRowsSelected: {
- fn: (e) => dwe(e),
+ fn: (e) => fwe(e),
memoDeps: (e) => [
e.subRows,
e.table.atoms.rowSelection?.get(),
e.table.options.enableRowSelection
]
},
- row_getCanSelect: { fn: (e) => tJ(e) },
- row_getCanSelectSubRows: { fn: (e) => nJ(e) },
- row_getCanMultiSelect: { fn: (e) => rJ(e) },
- row_getToggleSelectedHandler: { fn: (e, t) => fwe(e, t) }
+ row_getCanSelect: { fn: (e) => eJ(e) },
+ row_getCanSelectSubRows: { fn: (e) => tJ(e) },
+ row_getCanMultiSelect: { fn: (e) => nJ(e) },
+ row_getToggleSelectedHandler: { fn: (e, t) => pwe(e, t) }
});
},
constructTableAPIs: (e) => {
- sq("rowSelectionFeature", e, {
- table_setRowSelection: { fn: (t) => Gq(e, t) },
- table_resetRowSelection: { fn: (t) => rwe(e, t) },
- table_toggleAllRowsSelected: { fn: (t, n) => Kq(e, t, n) },
- table_toggleAllPageRowsSelected: { fn: (t, n) => qq(e, t, n) },
- table_getPreSelectedRowModel: { fn: () => iwe(e) },
+ oq("rowSelectionFeature", e, {
+ table_setRowSelection: { fn: (t) => Wq(e, t) },
+ table_resetRowSelection: { fn: (t) => iwe(e, t) },
+ table_toggleAllRowsSelected: { fn: (t, n) => Gq(e, t, n) },
+ table_toggleAllPageRowsSelected: { fn: (t, n) => Kq(e, t, n) },
+ table_getPreSelectedRowModel: { fn: () => awe(e) },
table_getSelectedRowModel: {
- fn: () => awe(e),
+ fn: () => owe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getCoreRowModel()]
},
table_getFilteredSelectedRowModel: {
- fn: () => owe(e),
+ fn: () => swe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getFilteredRowModel()]
},
table_getGroupedSelectedRowModel: {
- fn: () => swe(e),
+ fn: () => cwe(e),
memoDeps: () => [e.atoms.rowSelection?.get(), e.getSortedRowModel()]
},
table_getSelectedRowIds: {
- fn: () => Jq(e),
+ fn: () => qq(e),
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsAllRowsSelected: {
- fn: () => Yq(e),
+ fn: () => Jq(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getFilteredRowModel(),
@@ -60421,7 +60421,7 @@ var dJ = {
]
},
table_getIsAllPageRowsSelected: {
- fn: () => Xq(e),
+ fn: () => Yq(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
@@ -60430,48 +60430,48 @@ var dJ = {
]
},
table_getIsSomeRowsSelected: {
- fn: () => Zq(e),
+ fn: () => Xq(e),
memoDeps: () => [e.atoms.rowSelection?.get()]
},
table_getIsSomePageRowsSelected: {
- fn: () => cwe(e),
+ fn: () => lwe(e),
memoDeps: () => [
e.atoms.rowSelection?.get(),
e.getPaginatedRowModel(),
e.options.enableRowSelection
]
},
- table_getToggleAllRowsSelectedHandler: { fn: () => lwe(e) },
- table_getToggleAllPageRowsSelectedHandler: { fn: () => uwe(e) }
+ table_getToggleAllRowsSelectedHandler: { fn: () => uwe(e) },
+ table_getToggleAllPageRowsSelectedHandler: { fn: () => dwe(e) }
});
}
-}, mwe = /([0-9]+)/gm;
+}, hwe = /([0-9]+)/gm;
/* @__NO_SIDE_EFFECTS__ */
-function hwe(e) {
+function gwe(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 fJ = /* @__PURE__ */ hwe({ sort: (e, t) => gwe(e, t) });
-function gwe(e, t) {
+var dJ = /* @__PURE__ */ gwe({ sort: (e, t) => _we(e, t) });
+function _we(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.utils.js
-function _we() {
+function vwe() {
return [];
}
-function pJ(e, t) {
- rq(e, "sorting", t);
+function fJ(e, t) {
+ nq(e, "sorting", t);
}
-function mJ(e, t) {
- pJ(e, t ? [] : YK(e.initialState.sorting ?? []));
+function pJ(e, t) {
+ fJ(e, t ? [] : JK(e.initialState.sorting ?? []));
}
-function vwe(e) {
- e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && mJ(e);
+function ywe(e) {
+ e.atoms.sorting && (e.options.autoResetAll ?? e.options.autoResetSorting ?? !1) && pJ(e);
}
-function hJ(e) {
+function mJ(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);
@@ -60479,7 +60479,7 @@ function hJ(e) {
r = "datetime";
break;
}
- if (typeof a == "string" && (i = !0, a.split(mwe).length > 1)) {
+ if (typeof a == "string" && (i = !0, a.split(hwe).length > 1)) {
r = "alphanumeric";
break;
}
@@ -60488,9 +60488,9 @@ function hJ(e) {
let e = t?.[r];
if (e || r === "alphanumeric" && (e = t?.text), e) return e;
}
- return fJ;
+ return dJ;
}
-function gJ(e) {
+function hJ(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);
@@ -60498,14 +60498,14 @@ function gJ(e) {
}
return "desc";
}
-function _J(e) {
+function gJ(e) {
let t = e.table._rowModelFns.sortFns;
- return vSe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? hJ(e) : t?.[e.columnDef.sortFn] ?? fJ;
+ return ySe(e.columnDef.sortFn) ? e.columnDef.sortFn : e.columnDef.sortFn === "auto" ? mJ(e) : t?.[e.columnDef.sortFn] ?? dJ;
}
-function vJ(e, t, n) {
- let r = bJ(e, n && SJ(e)), i = t !== void 0;
- pJ(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 && SJ(e) && n);
+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);
return l = d ? s ? "toggle" : "add" : s ? "toggle" : "replace", l === "toggle" && (i || r || (l = "remove")), l === "add" ? (c = [...a, {
id: e.id,
desc: u
@@ -60521,40 +60521,40 @@ function vJ(e, t, n) {
}], c;
});
}
-function yJ(e) {
- return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? gJ(e) === "desc" ? "desc" : "asc";
+function vJ(e) {
+ return e.columnDef.sortDescFirst ?? e.table.options.sortDescFirst ?? hJ(e) === "desc" ? "desc" : "asc";
}
-function bJ(e, t) {
- let n = yJ(e), r = CJ(e);
+function yJ(e, t) {
+ let n = vJ(e), r = SJ(e);
return r ? r !== n && (e.table.options.enableSortingRemoval ?? !0) && (!t || (e.table.options.enableMultiRemove ?? !0)) ? !1 : r === "desc" ? "asc" : "desc" : n;
}
-function xJ(e) {
+function bJ(e) {
return (e.columnDef.enableSorting ?? !0) && (e.table.options.enableSorting ?? !0) && !!e.accessorFn;
}
-function SJ(e) {
+function xJ(e) {
return e.columnDef.enableMultiSort ?? e.table.options.enableMultiSort ?? !!e.accessorFn;
}
-function CJ(e) {
+function SJ(e) {
let t = e.table.atoms.sorting?.get()?.find((t) => t.id === e.id);
return t ? t.desc ? "desc" : "asc" : !1;
}
-function ywe(e) {
- return e.table.atoms.sorting?.get()?.findIndex((t) => t.id === e.id) ?? -1;
-}
function bwe(e) {
- pJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
+ return e.table.atoms.sorting?.get()?.findIndex((t) => t.id === e.id) ?? -1;
}
function xwe(e) {
- let t = xJ(e);
+ fJ(e.table, (t) => t.length ? t.filter((t) => t.id !== e.id) : []);
+}
+function Swe(e) {
+ let t = bJ(e);
return (n) => {
- t && vJ(e, void 0, SJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
+ t && _J(e, void 0, xJ(e) ? e.table.options.isMultiSortEvent?.(n) : !1);
};
}
// node_modules/@tanstack/table-core/dist/features/row-sorting/rowSortingFeature.js
-var wJ = {
+var CJ = {
getInitialState(e) {
return {
- sorting: _we(),
+ sorting: vwe(),
...e
};
},
@@ -60567,58 +60567,58 @@ var wJ = {
getDefaultTableOptions(e) {
return {
autoResetSorting: !1,
- onSortingChange: $K("sorting", e),
+ onSortingChange: QK("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
};
},
assignColumnPrototype(e, t) {
- cq("rowSortingFeature", e, t, {
- column_getAutoSortFn: { fn: (e) => hJ(e) },
- column_getAutoSortDir: { fn: (e) => gJ(e) },
- column_getSortFn: { fn: (e) => _J(e) },
- column_toggleSorting: { fn: (e, t, n) => vJ(e, t, n) },
- column_getFirstSortDir: { fn: (e) => yJ(e) },
- column_getNextSortingOrder: { fn: (e, t) => bJ(e, t) },
- column_getCanSort: { fn: (e) => xJ(e) },
- column_getCanMultiSort: { fn: (e) => SJ(e) },
- column_getIsSorted: { fn: (e) => CJ(e) },
- column_getSortIndex: { fn: (e) => ywe(e) },
- column_clearSorting: { fn: (e) => bwe(e) },
- column_getToggleSortingHandler: { fn: (e) => xwe(e) }
+ 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) => bwe(e) },
+ column_clearSorting: { fn: (e) => xwe(e) },
+ column_getToggleSortingHandler: { fn: (e) => Swe(e) }
});
},
constructTableAPIs(e) {
- sq("rowSortingFeature", e, {
- table_autoResetSorting: { fn: () => vwe(e) },
- table_setSorting: { fn: (t) => pJ(e, t) },
- table_resetSorting: { fn: (t) => mJ(e, t) }
+ oq("rowSortingFeature", e, {
+ table_autoResetSorting: { fn: () => ywe(e) },
+ table_setSorting: { fn: (t) => fJ(e, t) },
+ table_resetSorting: { fn: (t) => pJ(e, t) }
});
}
-}, Swe = typeof window > "u" ? F.useEffect : F.useLayoutEffect;
-function TJ(e, t) {
+}, Cwe = typeof window > "u" ? F.useEffect : F.useLayoutEffect;
+function wJ(e, t) {
let [{ table: n, rootSource: r }] = (0, F.useState)(() => {
- let t = ICe({
+ let t = LCe({
...e,
features: {
- coreReactivityFeature: hSe(),
+ coreReactivityFeature: gSe(),
...e.features
}
});
- return t.Subscribe = ((e) => dSe({
+ return t.Subscribe = ((e) => fSe({
...e,
source: e.source ?? t.store
- })), t.FlexRender = eSe, {
+ })), t.FlexRender = tSe, {
table: t,
- rootSource: mSe(t.store, WK)
+ rootSource: hSe(t.store, UK)
};
}), i = n;
- wq(i, (t) => ({
+ Cq(i, (t) => ({
...t,
...e
}), { syncExternalState: !1 });
- let a = i.options.state, o = r.get(), s = qK(r, t, { compare: WK });
- return Swe(() => {
- r.markCommitted(o), Cq(i, a ?? null, WK);
+ let a = i.options.state, o = r.get(), s = KK(r, t, { compare: UK });
+ return Cwe(() => {
+ r.markCommitted(o), Sq(i, a ?? null, UK);
}), (0, F.useMemo)(() => ({
...n,
options: e,
@@ -60630,10 +60630,10 @@ function TJ(e, t) {
]);
}
// src/react/boardui/components/base/table/table.tsx
-function EJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function TJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
className: q("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, I.jsx)(yhe, {
+ children: /* @__PURE__ */ (0, I.jsx)(bhe, {
ref: r,
...i,
className: q("bui-table", e === "sm" && "bui-table-sm", t)
@@ -60641,7 +60641,7 @@ function EJ({ size: e = "md", className: t, containerClassName: n, ref: r, ...i
});
}
// src/react/catalog-grid/catalog-table-columns.ts
-var DJ = "peach.catalog-column-widths.v1", OJ = "peach.catalog-column-visibility.v1", Cwe = {
+var EJ = "peach.catalog-column-widths.v1", DJ = "peach.catalog-column-visibility.v1", wwe = {
select: {
width: 48,
min: 48,
@@ -60717,14 +60717,14 @@ var DJ = "peach.catalog-column-widths.v1", OJ = "peach.catalog-column-visibility
min: 112,
max: 400
}
-}, wwe = {
+}, Twe = {
release: !1,
played: !1,
o: !1,
resolution: !1,
size: !1,
code: !1
-}, Twe = {
+}, Ewe = {
select: "选择",
name: "作品",
dur: "时长",
@@ -60740,7 +60740,7 @@ var DJ = "peach.catalog-column-widths.v1", OJ = "peach.catalog-column-visibility
tags: "标签",
library: "媒体库",
people: "艺人"
-}, kJ = [
+}, OJ = [
"select",
"name",
"people",
@@ -60758,13 +60758,13 @@ var DJ = "peach.catalog-column-widths.v1", OJ = "peach.catalog-column-visibility
"code"
].map((e) => ({
id: e,
- label: Twe[e],
- ...Cwe[e],
+ label: Ewe[e],
+ ...wwe[e],
flex: e === "name",
required: e === "select" || e === "name",
- visible: wwe[e] !== !1
+ visible: Twe[e] !== !1
}));
-function AJ(e) {
+function kJ(e) {
try {
let t = JSON.parse(localStorage.getItem(e) || "{}");
return t && typeof t == "object" && !Array.isArray(t) ? t : {};
@@ -60772,11 +60772,11 @@ function AJ(e) {
return {};
}
}
-function Ewe() {
- return jJ(kJ, DJ, OJ);
+function Dwe() {
+ return AJ(OJ, EJ, DJ);
}
-function jJ(e, t, n) {
- let r = AJ(t), i = AJ(n);
+function AJ(e, t, n) {
+ let r = kJ(t), i = kJ(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 {
@@ -60788,43 +60788,43 @@ function jJ(e, t, n) {
});
}
// src/react/library-processing/completion-row.ts
-var MJ = "peach.catalog.completion-row";
-function NJ() {
+var jJ = "peach.catalog.completion-row";
+function MJ() {
try {
- return localStorage.getItem(MJ) === "1";
+ return localStorage.getItem(jJ) === "1";
} catch {
return !1;
}
}
-function Dwe(e) {
+function Owe(e) {
try {
- e ? localStorage.setItem(MJ, "1") : localStorage.removeItem(MJ);
+ e ? localStorage.setItem(jJ, "1") : localStorage.removeItem(jJ);
} catch {}
}
-var Owe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
+var kwe = "<i data-completion-skeleton class=\"skeleton-sheen\"></i>";
// src/catalog-content-skeleton.ts
-function PJ(e) {
+function NJ(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 kwe(e) {
- return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${z(e)}">` + FJ(Ewe(), NJ() ? Owe : "") + "</div>";
+function Awe(e) {
+ return `<div class="peach-react catalog-skeleton" data-skeleton="catalog/list" role="status" aria-busy="true" aria-label="${z(e)}">` + PJ(Dwe(), MJ() ? kwe : "") + "</div>";
}
-function FJ(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>${PJ(e.id)}</td>`).join("")}${n ? "" : "<td></td>"}</tr>`;
+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>`;
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 IJ(e, t) {
- return rG() === "list" ? kwe(e) : ac(e, {
+function FJ(e, t) {
+ return nG() === "list" ? Awe(e) : ac(e, {
variant: "cards",
className: "catalog-skeleton postercard-skeleton",
cardRatio: t
});
}
// src/react/components/data-table-frame.tsx
-var Awe = () => {
+var jwe = () => {
document.documentElement.dataset.columnResizing = "";
};
-function LJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
+function IJ({ 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;
@@ -60838,11 +60838,11 @@ function LJ({ 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 && nK(e, r) && n(r.dataset.key);
+ r && tK(e, r) && n(r.dataset.key);
} : void 0,
- children: r ? /* @__PURE__ */ (0, I.jsx)(_he, {
+ children: r ? /* @__PURE__ */ (0, I.jsx)(vhe, {
className: "relative min-w-0",
- onResizeStart: Awe,
+ onResizeStart: jwe,
onResize: r.resize,
onResizeEnd: (e) => {
delete document.documentElement.dataset.columnResizing, r.save(e);
@@ -60852,8 +60852,8 @@ function LJ({ children: e, follow: t = !1, onRowClick: n, preferences: r }) {
});
}
// src/react/components/select.tsx
-function RJ({ prefix: e, renderValue: t, size: n, ...r }) {
- if (e == null) return /* @__PURE__ */ (0, I.jsx)(VU, {
+function LJ({ prefix: e, renderValue: t, size: n, ...r }) {
+ if (e == null) return /* @__PURE__ */ (0, I.jsx)(BU, {
...r,
size: n,
renderValue: t
@@ -60863,14 +60863,14 @@ function RJ({ 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)(VU, {
+ return /* @__PURE__ */ (0, I.jsx)(BU, {
...r,
size: n,
renderValue: a
});
}
// src/react/components/table-pagination.tsx
-function zJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
+function RJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
return t <= 1 ? null : /* @__PURE__ */ (0, I.jsxs)("nav", {
"aria-label": r,
"data-pagination-layout": "",
@@ -60909,11 +60909,11 @@ function zJ({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {
});
}
// src/react/components/table-controls.tsx
-function BJ({ label: e, options: t, sorting: n, onChange: r }) {
+function zJ({ 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)(RJ, {
+ children: [/* @__PURE__ */ (0, I.jsxs)(LJ, {
"aria-label": `${e}排序`,
prefix: "排序",
selectedKey: i?.id ?? "default",
@@ -60923,10 +60923,10 @@ function BJ({ label: e, options: t, sorting: n, onChange: r }) {
desc: i?.desc ?? !1
}]);
},
- children: [/* @__PURE__ */ (0, I.jsx)(HU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(VU, {
id: "default",
children: "默认顺序"
- }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(HU, {
+ }), t.map((e) => /* @__PURE__ */ (0, I.jsx)(VU, {
id: e.id,
children: e.label
}, e.id))]
@@ -60934,7 +60934,7 @@ function BJ({ label: e, options: t, sorting: n, onChange: r }) {
variant: "secondary",
iconOnly: !0,
disabled: !i,
- leadingIcon: sG,
+ leadingIcon: oG,
"data-icon-state": i?.desc ? "b" : "a",
"aria-label": `${e}改为${i?.desc ? "升序" : "降序"}`,
onClick: () => {
@@ -60946,7 +60946,7 @@ function BJ({ label: e, options: t, sorting: n, onChange: r }) {
})]
});
}
-function VJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条", pageSizes: o = [
+function BJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记录", pageUnit: a = "条", pageSizes: o = [
10,
20,
50,
@@ -60961,7 +60961,7 @@ function VJ({ 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)(RJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(LJ, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(n.pageSize),
@@ -60971,11 +60971,11 @@ function VJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
pageSize: Number(e)
});
},
- children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(HU, {
+ children: o.map((e) => /* @__PURE__ */ (0, I.jsx)(VU, {
id: String(e),
children: `每页 ${e} ${a}`
}, e))
- }), /* @__PURE__ */ (0, I.jsx)(zJ, {
+ }), /* @__PURE__ */ (0, I.jsx)(RJ, {
label: `${e}分页`,
page: c + 1,
pages: s,
@@ -60988,7 +60988,7 @@ function VJ({ label: e, total: t, pagination: n, onChange: r, unit: i = "条记
});
}
// src/react/components/table-column-preferences.ts
-function HJ(e) {
+function VJ(e) {
try {
let t = JSON.parse(localStorage.getItem(e) || "{}");
return t && typeof t == "object" && !Array.isArray(t) ? t : {};
@@ -60996,17 +60996,17 @@ function HJ(e) {
return {};
}
}
-function UJ(e, t) {
+function HJ(e, t) {
try {
localStorage.setItem(e, JSON.stringify(t));
} catch {}
}
-function jwe(e, t) {
+function Mwe(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 = HJ(e);
+ let r = VJ(e);
for (let [e, n] of Object.entries(t)) n.flex && r[e] === n.width && delete r[e];
return n(r);
});
@@ -61023,7 +61023,7 @@ function jwe(e, t) {
...r,
...Object.fromEntries(t)
});
- i(a), UJ(e, a);
+ i(a), HJ(e, a);
},
reset: () => {
i(n({}));
@@ -61033,26 +61033,26 @@ function jwe(e, t) {
}
};
}
-function Mwe(e, t, n, r = {}) {
+function Nwe(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(HJ(e)));
+ }), [a, o] = (0, F.useState)(() => i(VJ(e)));
return {
visibility: a,
change: (t) => {
let n = i(typeof t == "function" ? t(a) : t);
- o(n), UJ(e, n);
+ o(n), HJ(e, n);
}
};
}
-function WJ(e, t, n) {
+function UJ(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 = jwe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = Mwe(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 = Mwe(n?.widths ?? `peach.table.${e}.widths.v1`, r), a = Nwe(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,
@@ -61071,15 +61071,15 @@ function WJ(e, t, n) {
};
}
// src/react/catalog-grid/catalog-column-widths.ts
-function Nwe() {
- return WJ("catalog", kJ, {
- widths: DJ,
- visibility: OJ
+function Pwe() {
+ return UJ("catalog", OJ, {
+ widths: EJ,
+ visibility: DJ
});
}
// src/react/components/rating-stars.tsx
-var GJ = dV("star");
-function KJ({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
+var WJ = uV("star");
+function GJ({ 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": "",
@@ -61102,25 +61102,25 @@ function KJ({ value: e, onRate: t, busyStar: n, busyAttrs: r }) {
onClick: () => {
n || t(e);
},
- children: n === e ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs("正在保存评分") } }) : /* @__PURE__ */ (0, I.jsx)(GJ, {})
+ children: n === e ? /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: Bs("正在保存评分") } }) : /* @__PURE__ */ (0, I.jsx)(WJ, {})
}, 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)(GJ, {}), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(WJ, {}), /* @__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)(GJ, {})
+ children: /* @__PURE__ */ (0, I.jsx)(WJ, {})
})]
})
}, e))
});
}
// src/react/catalog-grid/catalog-table-controls.tsx
-function Pwe({ item: e, actions: t }) {
- let { rating: n } = e, r = pH(), i = (0, F.useRef)(0), a = hP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
- fP(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
+function Fwe({ item: e, actions: t }) {
+ let { rating: n } = e, r = fH(), i = (0, F.useRef)(0), a = mP(n), o = n == null ? "未评分" : `评分 ${a} / 5`, s = (t) => {
+ dP(e.id, { rating: t }), H.setQueryData(["item", e.id], (e) => e && {
...e,
rating: t
});
@@ -61132,11 +61132,11 @@ function Pwe({ item: e, actions: t }) {
role: "group",
"aria-label": o,
title: o,
- children: [/* @__PURE__ */ (0, I.jsx)(KJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(GJ, {
value: a,
onRate: c,
busyStar: r.busy ? Number(r.busy) : void 0
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -61149,7 +61149,7 @@ function Pwe({ item: e, actions: t }) {
}) : null]
});
}
-function qJ(e) {
+function KJ(e) {
if (e == null || e === "") return "—";
let t = String(e);
if (/^\d{4}-\d{2}-\d{2}$/.test(t)) return t;
@@ -61164,7 +61164,7 @@ function qJ(e) {
});
}
// src/react/components/selection-actions.tsx
-function JJ({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
+function qJ({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-selection-actions": "",
"data-action-layout": t,
@@ -61176,10 +61176,10 @@ function JJ({ 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)(fH, {
+ }, e.label) : /* @__PURE__ */ (0, I.jsx)(dH, {
size: "small",
href: e.href,
- trailingIcon: _B,
+ trailingIcon: gB,
className: t === "inline" ? "shrink-0" : "w-full",
disabled: e.disabled,
onClick: r,
@@ -61188,15 +61188,15 @@ function JJ({ actions: e, layout: t = "inline", prefix: n, onNavigate: r }) {
});
}
// src/react/components/selection-popover.tsx
-function YJ({ 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)(JJ, {
+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, {
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)(LV, {
+ children: r.length ? r.map((e) => /* @__PURE__ */ (0, I.jsx)(IV, {
isSelected: e.selected,
className: "min-w-0 [&>span:last-child]:min-w-0 [&>span:last-child]:wrap-anywhere",
isDisabled: e.disabled,
@@ -61216,14 +61216,14 @@ function YJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
"aria-label": t,
onClick: () => u(!0),
children: t
- }), /* @__PURE__ */ (0, I.jsx)(uz, {
+ }), /* @__PURE__ */ (0, I.jsx)(lz, {
triggerRef: c,
isOpen: l,
onOpenChange: u,
placement: "bottom end",
offset: 4,
- className: q(AV, "w-max overscroll-contain"),
- children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(gH, {
+ className: q(kV, "w-max overscroll-contain"),
+ children: ({ placement: t }) => /* @__PURE__ */ (0, I.jsx)(hH, {
"aria-label": e,
"data-selection-placement": t ?? "bottom",
className: "flex w-max max-w-full flex-col gap-2 outline-none",
@@ -61232,13 +61232,13 @@ function YJ({ label: e, triggerLabel: t, leadingIcon: n, items: r, onChange: i,
})] });
}
// src/react/components/table-column-controls.tsx
-function XJ({ preferences: e, label: t = "表格" }) {
+function YJ({ 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)(YJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(JJ, {
label: `${t}显示列`,
triggerLabel: "显示列",
actionLayout: "fullWidth",
@@ -61266,39 +61266,39 @@ function XJ({ preferences: e, label: t = "表格" }) {
})]
});
}
-function ZJ({ preferences: e, id: t }) {
+function XJ({ preferences: e, id: t }) {
let n = e.columns.find((e) => e.id === t);
- return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(Ohe, { "aria-label": `调整${n.label}列宽` }) : null;
+ return e.canResize(t) ? /* @__PURE__ */ (0, I.jsx)(khe, { "aria-label": `调整${n.label}列宽` }) : null;
}
// src/react/components/table-selection-header.tsx
-function QJ(e, t) {
+function ZJ(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 $J({ table: e, label: t, page: n = !1, disabled: r = !1 }) {
- let { all: i, some: a } = QJ(e, n);
- return /* @__PURE__ */ (0, I.jsx)(LV, {
+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, {
slot: null,
"aria-label": t,
isDisabled: r,
isSelected: i,
isIndeterminate: a,
onChange: () => {
- let t = !QJ(e, n).all;
+ let t = !ZJ(e, n).all;
n ? e.toggleAllPageRowsSelected(t) : e.toggleAllRowsSelected(t);
}
});
}
// src/react/catalog-grid/catalog-list-page.tsx
-var Fwe = Eq({
- rowSortingFeature: wJ,
- rowSelectionFeature: dJ,
- rowPaginationFeature: Wq,
- columnVisibilityFeature: Pq
-}), eY = kJ.map((e) => e.id), Iwe = [
+var Iwe = Tq({
+ rowSortingFeature: CJ,
+ rowSelectionFeature: uJ,
+ rowPaginationFeature: Uq,
+ columnVisibilityFeature: Nq
+}), $J = OJ.map((e) => e.id), Lwe = [
{
id: "name",
label: "名称"
@@ -61335,12 +61335,12 @@ var Fwe = Eq({
id: "played",
label: "观看时间"
}
-], tY = /* @__PURE__ */ new Map();
-function Lwe(e) {
- let t = Nwe(), n = tK(), r = cP(e.filters || {}, !1), [i] = (0, F.useState)(() => {
+], eY = /* @__PURE__ */ new Map();
+function Rwe(e) {
+ let t = Pwe(), n = eK(), r = sP(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)(() => tY.get(i) || {
+ }), [a, o] = (0, F.useState)(() => eY.get(i) || {
sorting: [],
pagination: {
pageIndex: 0,
@@ -61348,7 +61348,7 @@ function Lwe(e) {
}
}), { sorting: s, pagination: c } = a;
(0, F.useEffect)(() => {
- tY.set(i, a);
+ eY.set(i, a);
}, [i, a]);
let l = c.pageIndex * c.pageSize, u = s[0], d = Ft({
queryKey: [
@@ -61379,9 +61379,9 @@ function Lwe(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" ? [] : AK(f, e.layout.javImage), [h] = (0, F.useState)(NJ);
+ }), 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);
(0, F.useEffect)(() => {
- d.data && !d.isPlaceholderData && Dwe(m.length > 0);
+ d.data && !d.isPlaceholderData && Owe(m.length > 0);
}, [
d.data,
d.isPlaceholderData,
@@ -61413,19 +61413,19 @@ function Lwe(e) {
p,
c.pageIndex
]);
- let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = TJ({
- features: Fwe,
+ let g = e.selectMode ? Object.fromEntries([...e.selected].map((e) => [String(e), !0])) : {}, _ = wJ({
+ features: Iwe,
columns: (0, F.useMemo)(() => {
- let t = Tq();
+ let t = wq();
return t.columns([
t.display({
id: "select",
- header: ({ table: e }) => /* @__PURE__ */ (0, I.jsx)($J, {
+ header: ({ table: e }) => /* @__PURE__ */ (0, I.jsx)(QJ, {
table: e,
label: "全选本页作品",
disabled: d.isPlaceholderData
}),
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(LV, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(IV, {
slot: null,
"aria-label": `选择 ${e.helpers.displayName(t.original, t.original.name || "")}`,
isDisabled: d.isPlaceholderData,
@@ -61437,7 +61437,7 @@ function Lwe(e) {
id: "name",
header: "作品",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Rwe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(zwe, {
item: t.original,
props: e,
disabled: d.isPlaceholderData
@@ -61446,12 +61446,12 @@ function Lwe(e) {
t.display({
id: "library",
header: "媒体库",
- cell: ({ row: e }) => /* @__PURE__ */ (0, I.jsx)(zwe, { item: e.original })
+ cell: ({ row: e }) => /* @__PURE__ */ (0, I.jsx)(Bwe, { item: e.original })
}),
t.display({
id: "people",
header: "艺人",
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Bwe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Vwe, {
item: t.original,
props: e
})
@@ -61507,7 +61507,7 @@ function Lwe(e) {
id: "rating",
header: "评分",
enableSorting: !0,
- cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Pwe, {
+ cell: ({ row: t }) => /* @__PURE__ */ (0, I.jsx)(Fwe, {
item: t.original,
actions: e.actions
})
@@ -61528,13 +61528,13 @@ function Lwe(e) {
id: "played",
header: "观看时间",
enableSorting: !0,
- cell: ({ row: e }) => qJ(e.original.last_played)
+ cell: ({ row: e }) => KJ(e.original.last_played)
}),
t.accessor((e) => e.first_seen, {
id: "new",
header: "入库时间",
enableSorting: !0,
- cell: ({ row: e }) => qJ(e.original.first_seen)
+ cell: ({ row: e }) => KJ(e.original.first_seen)
}),
t.accessor((e) => e.release_date, {
id: "release",
@@ -61542,7 +61542,7 @@ function Lwe(e) {
enableSorting: !0,
cell: ({ row: e }) => e.original.release_date || "—"
})
- ]).sort((e, t) => eY.indexOf(e.id) - eY.indexOf(t.id));
+ ]).sort((e, t) => $J.indexOf(e.id) - $J.indexOf(t.id));
}, [
e.helpers,
e.actions,
@@ -61605,9 +61605,9 @@ function Lwe(e) {
"aria-label": "作品列表工具栏",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
"data-toolbar-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(XJ, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(BJ, {
+ children: [/* @__PURE__ */ (0, I.jsx)(YJ, { preferences: t }), /* @__PURE__ */ (0, I.jsx)(zJ, {
label: "作品列表",
- options: Iwe,
+ options: Lwe,
sorting: s,
onChange: (e) => _.setSorting(e)
})]
@@ -61617,21 +61617,21 @@ function Lwe(e) {
"data-completion-skeleton": "",
"aria-hidden": "true",
className: "skeleton-sheen"
- }) : null : /* @__PURE__ */ (0, I.jsx)(jK, {
+ }) : null : /* @__PURE__ */ (0, I.jsx)(AK, {
className: "",
assetIds: m
}),
- d.isError ? /* @__PURE__ */ (0, I.jsx)(IG, {
+ d.isError ? /* @__PURE__ */ (0, I.jsx)(FG, {
message: xn(d.error),
onRetry: () => void d.refetch()
}) : null,
- /* @__PURE__ */ (0, I.jsx)(LJ, {
+ /* @__PURE__ */ (0, I.jsx)(IJ, {
follow: !0,
preferences: t,
onRowClick: e.selectMode ? (t) => {
d.isPlaceholderData || e.actions.toggleSelection(Number(t), !1);
} : void 0,
- children: /* @__PURE__ */ (0, I.jsxs)(EJ, {
+ children: /* @__PURE__ */ (0, I.jsxs)(TJ, {
"aria-label": "作品列表",
size: "sm",
sortDescriptor: u ? {
@@ -61642,48 +61642,48 @@ function Lwe(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, I.jsxs)(Qz, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)($z, {
+ children: [/* @__PURE__ */ (0, I.jsxs)(Zz, { children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(Qz, {
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: [MK(e.column.columnDef.header, e.getContext()), e.column.getCanSort() ? /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [jK(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)(DV, {})
+ children: /* @__PURE__ */ (0, I.jsx)(EV, {})
}) : null]
- }), /* @__PURE__ */ (0, I.jsx)(ZJ, {
+ }), /* @__PURE__ */ (0, I.jsx)(XJ, {
preferences: t,
id: e.id
})] })
- }, e.id)), /* @__PURE__ */ (0, I.jsx)($z, {
+ }, e.id)), /* @__PURE__ */ (0, I.jsx)(Qz, {
id: "remaining-space",
"aria-label": "行空白区域",
"data-table-space": "",
width: t.spaceWidth,
minWidth: 0
- })] }), /* @__PURE__ */ (0, I.jsx)(nB, {
+ })] }), /* @__PURE__ */ (0, I.jsx)(tB, {
renderEmptyState: () => d.isError ? "作品列表未取得" : "没有符合的作品",
- children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(aB, {
+ children: d.isPending ? Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ (0, I.jsxs)(iB, {
id: `skeleton-${t}`,
"data-list-skeleton-row": "",
"aria-hidden": "true",
- children: [_.getHeaderGroups()[0].headers.map((e) => /* @__PURE__ */ (0, I.jsx)(sB, { children: /* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: PJ(e.id) } }) }, e.id)), /* @__PURE__ */ (0, I.jsx)(sB, { "data-table-space": "" })]
- }, `skeleton-${t}`)) : _.getRowModel().rows.map((e) => /* @__PURE__ */ (0, I.jsxs)(aB, {
+ 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, {
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)(sB, { children: MK(e.column.columnDef.cell, e.getContext()) }, e.id)), /* @__PURE__ */ (0, I.jsx)(sB, { "data-table-space": "" })]
+ 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": "" })]
}, e.id))
})]
})
}),
- d.data ? /* @__PURE__ */ (0, I.jsx)(VJ, {
+ d.data ? /* @__PURE__ */ (0, I.jsx)(BJ, {
label: "作品列表",
total: p,
pagination: c,
@@ -61694,9 +61694,9 @@ function Lwe(e) {
]
});
}
-function Rwe({ item: e, props: t, disabled: n }) {
+function zwe({ 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() || "未命名作品";
- aL();
+ iL();
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",
@@ -61716,7 +61716,7 @@ function Rwe({ item: e, props: t, disabled: n }) {
children: /* @__PURE__ */ (0, I.jsxs)("span", {
"data-list-picture": "",
children: [
- r.html ? /* @__PURE__ */ (0, I.jsx)(GU, {
+ r.html ? /* @__PURE__ */ (0, I.jsx)(WU, {
artwork: r,
relayout: (e) => El(e, "small")
}) : /* @__PURE__ */ (0, I.jsx)("span", { children: "无预览" }),
@@ -61768,17 +61768,17 @@ function Rwe({ item: e, props: t, disabled: n }) {
})]
});
}
-function zwe({ item: e }) {
- let t = tK({ names: !0 }), n = e.library_id ? t.get(e.library_id) : void 0;
+function Bwe({ item: e }) {
+ let t = eK({ 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)(RH, { mark: n.icon }), /* @__PURE__ */ (0, I.jsx)("span", { children: n.name })]
+ children: [/* @__PURE__ */ (0, I.jsx)(LH, { mark: n.icon }), /* @__PURE__ */ (0, I.jsx)("span", { children: n.name })]
}) : "—";
}
-function Bwe({ item: e, props: t }) {
- aL();
- let { avatar: n, who: r } = lK(e);
+function Vwe({ item: e, props: t }) {
+ iL();
+ let { avatar: n, who: r } = cK(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-list-people": "",
onClick: (e) => {
@@ -61790,22 +61790,22 @@ function Bwe({ item: e, props: t }) {
});
}
// src/react/catalog-grid/catalog-grid-page.tsx
-function nY(e) {
- let t = iG();
- if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(Hwe, { ...e });
- let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${cP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(Lwe, { ...e }, n);
+function tY(e) {
+ let t = rG();
+ if (e.mode === "items") return /* @__PURE__ */ (0, I.jsx)(Uwe, { ...e });
+ let n = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${sP(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
+ if (t === "list" && !e.wall) return /* @__PURE__ */ (0, I.jsx)(Rwe, { ...e }, n);
let r = e.mode === "entity" ? "entity" : `catalog:${!!e.wall}`;
- return /* @__PURE__ */ (0, I.jsx)(Uwe, { ...e }, r);
+ return /* @__PURE__ */ (0, I.jsx)(Wwe, { ...e }, r);
}
-function Vwe({ name: e }) {
+function Hwe({ 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 rY({ children: e, selectMode: t }) {
+function nY({ children: e, selectMode: t }) {
let n = (0, F.useRef)(null), [r, i] = (0, F.useState)(!1);
return (0, F.useLayoutEffect)(() => {
let e = n.current;
@@ -61821,8 +61821,8 @@ function rY({ children: e, selectMode: t }) {
children: e
});
}
-function Hwe(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)(dK, {
+function Uwe(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, {
item: i,
variant: r,
layout: e.layout,
@@ -61836,13 +61836,13 @@ function Hwe(e) {
return r === "next" ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-media-next-row": "",
children: i
- }) : /* @__PURE__ */ (0, I.jsx)(rY, {
+ }) : /* @__PURE__ */ (0, I.jsx)(nY, {
selectMode: e.selectMode,
children: i
});
}
-function Uwe(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Uue(e) : Hue(e), [s] = (0, F.useState)(() => e.wall ? lP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? lP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
+function Wwe(e) {
+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Wue(e) : Uue(e), [s] = (0, F.useState)(() => e.wall ? cP(o.queryKey) : void 0), c = JSON.stringify(o.queryKey), l = (0, F.useMemo)(() => e.restoreNavigation ? cP(o.queryKey) : void 0, [c, e.restoreNavigation]) || s || (i && e.initial ? {
pages: [{
...e.initial,
items: e.initial.items || [],
@@ -61868,7 +61868,7 @@ function Uwe(e) {
u.isPlaceholderData,
e.revision
]);
- let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => Gue(u.data?.pages || [], {
+ let { tiles: f, pageStarts: p } = (0, F.useMemo)(() => Kue(u.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -61878,7 +61878,7 @@ function Uwe(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 || abe(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && ebe(e.item) ? [e.item] : []), y = a ? [] : AK(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = Wwe(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 || obe(e.filters), _ = !a && !e.selectMode && !!n.wallPlayer && !!n.wallDetails, v = f.flatMap((e) => e.kind === "card" && tbe(e.item) ? [e.item] : []), y = a ? [] : kK(f.flatMap((e) => e.kind === "card" ? [e.item] : []), r.javImage), b = (0, F.useRef)(null), x = Gwe(e, u.isPlaceholderData ? void 0 : u.data, f, p, b);
(0, F.useLayoutEffect)(() => {
if (!u.data || u.isPlaceholderData) return;
let t = !0;
@@ -61906,12 +61906,12 @@ function Uwe(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)(Kwe, {
+ }, [u.fetchNextPage]), D = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)(qwe, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, I.jsx)(dK, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, I.jsx)(uK, {
item: i.item,
grouped: e.groupCollapse !== !1,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
@@ -61923,8 +61923,8 @@ function Uwe(e) {
actions: n,
onOpen: a ? w : C
}, i.item.id), O = () => {
- if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(Gxe, {
- sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${cP(e.filters || {}, !!e.excludeVertical)}`,
+ if (_ && e.wall) return /* @__PURE__ */ (0, I.jsx)(Kxe, {
+ sessionKey: i ? `entity:${e.entityKey || ""}` : `catalog:${sP(e.filters || {}, !!e.excludeVertical)}`,
items: v,
finite: g,
hasMore: !!u.hasNextPage,
@@ -61932,7 +61932,7 @@ function Uwe(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 ? Jxe({
+ emptyHtml: u.data && !v.length ? Yxe({
libraryEmpty: !!u.data.pages[0]?.libraryEmpty,
matches: h,
hasMore: !!u.hasNextPage,
@@ -61947,7 +61947,7 @@ function Uwe(e) {
javImage: r.javImage
}, g ? "finite" : "explore");
if (u.isPending) return null;
- if (!u.data) return /* @__PURE__ */ (0, I.jsx)(IG, {
+ if (!u.data) return /* @__PURE__ */ (0, I.jsx)(FG, {
message: xn(u.error),
onRetry: () => void u.refetch()
});
@@ -61964,12 +61964,12 @@ function Uwe(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: Jue(f, x).map((t) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(rY, { children: t.tiles.map(D) }), t.strip ? /* @__PURE__ */ (0, I.jsx)(Gwe, {
+ children: Yue(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)(Kwe, {
cut: t.strip,
props: e,
onOpen: T
}) : null] }, t.start))
- }), u.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(iY, {
+ }), u.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(rY, {
entity: i,
load: E,
enabled: () => !u.isPlaceholderData && e.canLoadMore?.() !== !1
@@ -61979,14 +61979,14 @@ function Uwe(e) {
ref: b,
"data-media-body": "",
"aria-busy": u.isFetching && !u.isFetchingNextPage,
- children: [/* @__PURE__ */ (0, I.jsx)(jK, { assetIds: y }), e.wall ? O() : /* @__PURE__ */ (0, I.jsx)(LG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(AK, { assetIds: y }), e.wall ? O() : /* @__PURE__ */ (0, I.jsx)(IG, {
pending: u.isPending,
skeletonHtml: e.skeletonHtml,
children: O()
})]
});
}
-function iY({ entity: e, load: t, enabled: n, children: r }) {
+function rY({ 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: ""
@@ -62028,7 +62028,7 @@ function iY({ entity: e, load: t, enabled: n, children: r }) {
if (!e) return;
let t = new IntersectionObserver((e) => {
e.some((e) => e.isIntersecting) && d(!1);
- }, { rootMargin: FG });
+ }, { rootMargin: PG });
return a.current = t, t.observe(e), () => {
t.disconnect(), a.current = null;
};
@@ -62051,18 +62051,18 @@ function iY({ entity: e, load: t, enabled: n, children: r }) {
hidden: !!c.error,
onClick: () => void d(!0),
dangerouslySetInnerHTML: { __html: Hs(Vs) }
- }), c.error ? /* @__PURE__ */ (0, I.jsx)(IG, {
+ }), c.error ? /* @__PURE__ */ (0, I.jsx)(FG, {
message: c.error,
onRetry: () => void d(!0)
}) : null] });
}
-function Wwe(e, t, n, r, i) {
- let a = ["catalog-short-layout", cP(e.filters || {}, !!e.excludeVertical)], o = `${a[1]}:${e.revision}`, s = () => {
+function Gwe(e, t, n, r, i) {
+ let a = ["catalog-short-layout", sP(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 && uP(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
+ return t && lP(t.cuts.flatMap((e) => e.items), n, e.groupCollapse !== !1), {
stamp: o,
cuts: t?.cuts || [],
offset: t?.offset || 0,
@@ -62088,7 +62088,7 @@ function Wwe(e, t, n, r, i) {
let r = new AbortController();
p.controllers.push(r);
let i = n - 1;
- B(`/api/items?${que(e.filters || {}, p.offset)}`, r.signal).then((e) => {
+ B(`/api/items?${Jue(e.filters || {}, p.offset)}`, r.signal).then((e) => {
if (c.current !== p || r.signal.aborted) return;
let t = e.items || [];
t.length ? f({
@@ -62102,9 +62102,9 @@ function Wwe(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 = Kue(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 _ = uP(d.items, p.groups, e.groupCollapse !== !1);
+ let _ = lP(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,
@@ -62121,7 +62121,7 @@ function Wwe(e, t, n, r, i) {
});
}, [d]), m;
}
-function Gwe({ cut: e, props: t, onOpen: n }) {
+function Kwe({ cut: e, props: t, onOpen: n }) {
let r = (0, F.useRef)(null), { wireDrag: i } = t;
return (0, F.useEffect)(() => {
r.current && i(r.current);
@@ -62137,12 +62137,12 @@ function Gwe({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, I.jsx)(Vwe, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(Hwe, { 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)(dK, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, I.jsx)(uK, {
item: e,
variant: "short",
layout: t.layout,
@@ -62157,17 +62157,17 @@ function Gwe({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function aY(e, t, n) {
+function iY(e, t, n) {
return Eo(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);
}
-function Kwe({ seed: e, layout: t, helpers: n, actions: r }) {
+function qwe({ seed: e, layout: t, helpers: n, actions: r }) {
let i = (0, F.useRef)(/* @__PURE__ */ new Map()), a = (0, F.useRef)(t);
a.current = t;
let o = Mo(e, n.tagLabel), s = (0, F.useCallback)(async () => {
- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => dP(e, t.javImage)).slice(0, 9);
- return i.current = new Map(n.map((e) => [String(e.id), aY(e, t, !0).html])), n.map((e) => String(e.id));
- }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = aY(e, t, !1);
- return /* @__PURE__ */ (0, I.jsx)(hK, {
+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => uP(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, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -62177,12 +62177,12 @@ function Kwe({ seed: e, layout: t, helpers: n, actions: r }) {
wholeCard: !0,
poster: null,
artwork: l,
- artworkIdentity: c === "small" ? l.html : aY(e, {
+ artworkIdentity: c === "small" ? l.html : iY(e, {
...t,
size: "small"
}, !1).html,
relayoutArt: (e) => El(e, c),
- ratio: cK(e, "grid", t),
+ ratio: sK(e, "grid", t),
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -62193,37 +62193,40 @@ function Kwe({ seed: e, layout: t, helpers: n, actions: r }) {
});
}
// src/react/media-sources.ts
-async function oY(e) {
+async function aY(e) {
await H.fetchQuery({
queryKey: yr,
queryFn: () => br(e)
});
}
-var qwe = (e) => (e?.sources ?? []).filter((e) => vn.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Jwe = "/api/duplicates?limit=120", sY = ["duplicates"], cY = "/api/batch", lY = (e) => B(Jwe, e), Ywe = /[\s\-_.()[\]【】/\\]/;
-function Xwe(e) {
+var Jwe = (e) => (e?.sources ?? []).filter((e) => vn.includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Ywe = "/api/duplicates?limit=120", oY = ["duplicates"], sY = "/api/batch", Xwe = (e, t) => V(sY, {
+ ids: e,
+ operation: t ? "keep-duplicates" : "reconsider-duplicates"
+}), cY = (e) => B(Ywe, e), Zwe = /[\s\-_.()[\]【】/\\]/;
+function Qwe(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 && !Ywe.test(n[r - 1]);) --r;
+ for (; r > 0 && !Zwe.test(n[r - 1]);) --r;
return r >= 8 ? n.slice(0, r) : "";
}
-var Zwe = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
-async function Qwe(e) {
+var $we = (e, t) => t && e.startsWith(t) && e.length > t.length ? `…${e.slice(t.length)}` : e;
+async function eTe(e) {
await Promise.all([H.fetchQuery({
- queryKey: sY,
- queryFn: () => lY(e)
- }), oY(e)]);
+ queryKey: oY,
+ queryFn: () => cY(e)
+ }), aY(e)]);
}
-var $we = {
+var tTe = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, eTe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), uY = (e, t) => eTe(e, t).filter((t) => e.some((e) => e.location !== t)), tTe = (e, t) => t.filter((t) => e.some((e) => uY(e.files, [t]).length));
-function nTe(e, t) {
+}, nTe = (e, t) => t.filter((t) => e.some((e) => e.location === t)), lY = (e, t) => nTe(e, t).filter((t) => e.some((e) => e.location !== t)), rTe = (e, t) => t.filter((t) => e.some((e) => lY(e.files, [t]).length));
+function iTe(e, t) {
let n = [];
for (let r of e) {
if (t === "all") {
@@ -62242,19 +62245,19 @@ function nTe(e, t) {
}
return n;
}
-function rTe(e, t) {
+function aTe(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 iTe(e, t) {
- for (let n = 0; n < e.length; n += 200) await V(cY, {
+async function oTe(e, t) {
+ for (let n = 0; n < e.length; n += 200) await V(sY, {
ids: e.slice(n, n + 200),
operation: t,
...t === "dispose" ? { disposal_reason: "duplicate" } : {}
});
}
// src/react/media-repair/media-repair.ts
-var dY = "/api/media-repair", fY = ["media-repair"], pY = ["media-repair", "libraries"], aTe = {
+var uY = "/api/media-repair", dY = ["media-repair"], fY = ["media-repair", "libraries"], sTe = {
status: "idle",
library: "",
stage: "",
@@ -62266,39 +62269,39 @@ var dY = "/api/media-repair", fY = ["media-repair"], pY = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, mY = (e) => B(dY, e), hY = async (e) => (await B("/api/libraries", e)).libraries || [];
-async function oTe(e) {
+}, pY = (e) => B(uY, e), mY = async (e) => (await B("/api/libraries", e)).libraries || [];
+async function cTe(e) {
await Promise.all([H.fetchQuery({
+ queryKey: dY,
+ queryFn: () => pY(e)
+ }), H.fetchQuery({
queryKey: fY,
queryFn: () => mY(e)
- }), H.fetchQuery({
- queryKey: pY,
- queryFn: () => hY(e)
})]);
}
-var gY = (e) => Number(e).toLocaleString();
-function sTe(e) {
+var hY = (e) => Number(e).toLocaleString();
+function lTe(e) {
if (e.status === "running") {
- let t = e.total ? `${gY(Math.min(e.checked || 0, e.total))} / ${gY(e.total)}` : "准备中";
+ let t = e.total ? `${hY(Math.min(e.checked || 0, e.total))} / ${hY(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${gY(e.repaired)} 部,${gY(e.failed)} 部修不了` : `修好 ${gY(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${hY(e.repaired)} 部,${hY(e.failed)} 部修不了` : `修好 ${hY(e.repaired)} 部` : "";
}
-var cTe = (e) => `${gY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, lTe = "/api/quality-goals?limit=200", _Y = ["quality-goals"], vY = (e) => B(lTe, e);
-async function uTe(e) {
+var uTe = (e) => `${hY(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, dTe = "/api/quality-goals?limit=200", gY = ["quality-goals"], _Y = (e) => B(dTe, e);
+async function fTe(e) {
await H.fetchQuery({
- queryKey: _Y,
- queryFn: () => vY(e)
+ queryKey: gY,
+ queryFn: () => _Y(e)
});
}
-var dTe = (e) => e.has_cover ? lo(e) : `/poster?id=${e.id}&c=4`;
+var pTe = (e) => e.has_cover ? lo(e) : `/poster?id=${e.id}&c=4`;
// src/selection.ts
-function yY(e, t, n, r, i, a = i || !e.has(r)) {
+function vY(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 fTe = "/api/review", pTe = "/api/review/decision", mTe = "/api/review/genre", bY = ["review"], xY = {
+var mTe = "/api/review", hTe = "/api/review/decision", gTe = "/api/review/genre", yY = ["review"], bY = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -62308,40 +62311,40 @@ var fTe = "/api/review", pTe = "/api/review/decision", mTe = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, hTe = Object.keys(xY), gTe = "metadata_fields", SY = (e) => typeof e == "string" && Object.hasOwn(xY, e), _Te = {
+}, _Te = Object.keys(bY), vTe = "metadata_fields", xY = (e) => typeof e == "string" && Object.hasOwn(bY, e), yTe = {
creator_tags: "creator",
western_identity: "creator"
-}, CY = [
+}, SY = [
"pending",
"later",
"ignored"
-], wY = {
+], CY = {
pending: "待处理",
later: "稍后处理",
ignored: "已忽略"
-}, vTe = {
+}, bTe = {
approved: "已通过",
rejected: "已忽略",
skipped: "稍后处理"
-}, TY = (e) => e === "later" || e === "ignored" ? e : "pending", EY = (e, t) => t === "pending" ? {
+}, wY = (e) => e === "later" || e === "ignored" ? e : "pending", TY = (e, t) => t === "pending" ? {
sections: e.sections,
counts: e.counts
} : e.queues[t];
-function yTe(e, t) {
+function xTe(e, t) {
return {
...e,
- ...t(EY(e, "pending")),
+ ...t(TY(e, "pending")),
queues: {
later: t(e.queues.later),
ignored: t(e.queues.ignored)
}
};
}
-function bTe(e, t) {
+function STe(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 DY(e, t) {
+function EY(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -62358,10 +62361,10 @@ function DY(e, t) {
}
return [...n.values()];
}
-function xTe(e, t, n) {
- return n && DY(e, t).find((e) => e.key === n)?.rows || e;
+function CTe(e, t, n) {
+ return n && EY(e, t).find((e) => e.key === n)?.rows || e;
}
-function STe(e, t) {
+function wTe(e, t) {
let n = gr(e.length, 20), r = _r(t, n);
return {
page: r,
@@ -62369,32 +62372,32 @@ function STe(e, t) {
rows: e.slice((r - 1) * 20, r * 20)
};
}
-function CTe(e) {
+function TTe(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 wTe(e, t, n, r, i, a) {
- return yY(e, t, n, r, i, a);
+function ETe(e, t, n, r, i, a) {
+ return vY(e, t, n, r, i, a);
}
-function TTe(e, t) {
+function DTe(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function OY(e, t) {
+function DY(e, t) {
return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);
}
-var kY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function ETe(e, t) {
- let n = OY(e, t), r = kY(e, t);
+var OY = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
+function OTe(e, t) {
+ let n = DY(e, t), r = OY(e, t);
return r ? `${n} · ${r}` : n;
}
-var DTe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", OTe = (e) => String(e.tags || "").split("|").filter(Boolean), kTe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function ATe(e) {
+var kTe = (e) => e.reason || e.evidence || e.note || e.decision_note || "", ATe = (e) => String(e.tags || "").split("|").filter(Boolean), jTe = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
+function MTe(e) {
let t = e.candidates || [];
return {
candidateKey: t.length === 1 ? t[0].candidate_key : "",
assets: (e.preview_assets || []).map((e) => e.id)
};
}
-function jTe(e, t, n, r) {
+function NTe(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -62410,22 +62413,22 @@ function jTe(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var MTe = (e) => ({
+var PTe = (e) => ({
approved: "已通过资料",
rejected: "已忽略资料",
skipped: "已移至稍后处理",
restore: "已恢复待处理"
})[e];
-async function AY(e) {
- let t = await B(fTe, e);
- for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${wY[e]}状态未取得,请刷新或更新写入端`);
+async function kY(e) {
+ let t = await B(mTe, e);
+ for (let e of ["later", "ignored"]) if (!t.queues?.[e]?.sections || !t.queues[e].counts) throw Error(`${CY[e]}状态未取得,请刷新或更新写入端`);
return t;
}
-async function NTe(e) {
- let t = await V(pTe, e);
+async function FTe(e) {
+ let t = await V(hTe, e);
if (t.ok && t.asset_revisions) {
let e = t.asset_revisions;
- H.setQueryData(bY, (t) => t && yTe(t, (t) => ({
+ H.setQueryData(yY, (t) => t && xTe(t, (t) => ({
...t,
sections: {
...t.sections,
@@ -62441,33 +62444,33 @@ async function NTe(e) {
}
return t;
}
-function PTe(e, t) {
- let n = H.getQueryData(bY);
- return n && CY.flatMap((t) => EY(n, t).sections[e] || []).find((e) => e.item_key === t.item_key) || t;
+function ITe(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;
}
-var FTe = (e, t) => V(mTe, {
+var LTe = (e, t) => V(gTe, {
genre: e,
tag: t
});
-async function ITe(e) {
+async function RTe(e) {
await H.fetchQuery({
- queryKey: bY,
- queryFn: () => AY(e)
+ queryKey: yY,
+ queryFn: () => kY(e)
});
}
-function LTe(e, t, n) {
+function zTe(e, t, n) {
let r = new Set(t);
- r.size && H.setQueryData(bY, (t) => {
+ r.size && H.setQueryData(yY, (t) => {
if (!t) return t;
- let i = CY.flatMap((n) => EY(t, n).sections[e] || []).filter((e) => r.has(e.item_key));
+ let i = SY.flatMap((n) => TY(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(CY.map((o) => {
- let s = EY(t, o), c = (s.sections[e] || []).filter((e) => !r.has(e.item_key)), l = a === o ? [...c, ...i.map((e) => ({
+ }[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) => ({
...e,
decision: n === "restore" ? "pending" : n,
decision_note: ""
@@ -62494,254 +62497,258 @@ function LTe(e, t, n) {
};
});
}
-var RTe = () => H.invalidateQueries({
- queryKey: bY,
+var BTe = () => H.invalidateQueries({
+ queryKey: yY,
exact: !0
});
-function zTe(e, t) {
+function VTe(e, t) {
return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${Cr(e.fetched_at)} 的缓存` : e?.error || t;
}
// src/react/data-cleanup/links.ts
-var BTe = "/api/links", jY = "/api/links/check", MY = "/api/links/prune", NY = ["links"], PY = ["links", "check"], FY = ["links", "prune"], VTe = {
+var HTe = "/api/links", AY = "/api/links/check", jY = "/api/links/prune", MY = ["links"], NY = ["links", "check"], PY = ["links", "prune"], UTe = {
official: "官网/事务所",
social: "社交账号",
catalog: "作品资料站",
source_reference: "资料出处"
};
-async function IY(e) {
+async function FY(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var LY = (e) => B(BTe, e), RY = (e) => V(jY, { status_only: !0 }, "POST", e), HTe = ({ retry: e, checkId: t }) => IY(V(jY, e ? {
+var IY = (e) => B(HTe, e), LY = (e) => V(AY, { status_only: !0 }, "POST", e), WTe = ({ retry: e, checkId: t }) => FY(V(AY, e ? {
retry: e,
check_id: t
-} : { restart: !0 })), zY = (e) => B(MY, e), UTe = ({ checkId: e, ids: t }) => IY(V(MY, {
+} : { restart: !0 })), RY = (e) => B(jY, e), GTe = ({ checkId: e, ids: t }) => FY(V(jY, {
confirm: !0,
check_id: e,
background: !0,
...t ? { ids: t } : {}
-})), BY = (e) => Number(e || 0).toLocaleString(), WTe = (e) => `已删除 ${BY(e.removed)} 条;${e.marked ? `已隐退女优的 ${BY(e.marked)} 条留作不可点的记录;` : ""}保留 ${BY(e.recovered)} 条未确认失效的链接。`;
-function GTe(e) {
+})), zY = (e) => Number(e || 0).toLocaleString(), KTe = (e) => `已删除 ${zY(e.removed)} 条;${e.marked ? `已隐退女优的 ${zY(e.marked)} 条留作不可点的记录;` : ""}保留 ${zY(e.recovered)} 条未确认失效的链接。`;
+function qTe(e) {
let t = e.scope === "retry";
- return e.total ? `${t ? "已重验" : "已检查"} ${BY(e.checked)} / ${BY(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${zY(e.checked)} / ${zY(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
// src/configuration-endpoints.ts
-var VY = "/api/configuration", HY = "/api/pick-folder", UY = "/api/settings", WY = "/api/follow/schedule", GY = "/api/feeds/schedule", KY = "/api/thumbnail-jobs", qY = ["settings"], JY = ["follow-schedule"], YY = ["feed-schedule"], XY = ["thumbnail-jobs"], ZY = "/api/media-processing", KTe = ["media-processing"], qTe = (e) => B(ZY, e), QY = (e) => B(UY, e), JTe = (e) => B(WY, e), YTe = (e) => B(GY, e), XTe = (e) => B(KY, e);
-function ZTe(e = H) {
+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", JTe = ["media-processing"], YTe = (e) => B(XY, e), ZY = (e) => B(HY, e), XTe = (e) => B(UY, e), ZTe = (e) => B(WY, e), QTe = (e) => B(GY, e);
+function $Te(e = H) {
return e.fetchQuery({
- queryKey: qY,
- queryFn: ({ signal: e }) => QY(e),
+ queryKey: KY,
+ queryFn: ({ signal: e }) => ZY(e),
staleTime: 0
}).catch(() => null);
}
-function $Y() {
+function QY() {
return It({
- mutationFn: (e) => V(UY, e),
- onSuccess: (e) => H.setQueryData(qY, e)
+ mutationFn: (e) => V(HY, e),
+ onSuccess: (e) => H.setQueryData(KY, e)
});
}
-function QTe() {
+function eEe() {
return It({
- mutationFn: (e) => V(WY, {
+ mutationFn: (e) => V(UY, {
enabled: e > 0,
interval_minutes: e || 60
}),
- onSuccess: (e) => H.setQueryData(JY, e)
+ onSuccess: (e) => H.setQueryData(qY, e)
});
}
-var $Te = {
+var tEe = {
follow: {
- url: `${WY}/run`,
- key: JY
+ url: `${UY}/run`,
+ key: qY
},
feed: {
- url: `${GY}/run`,
- key: YY
+ url: `${WY}/run`,
+ key: JY
}
};
-function eEe(e) {
- let { url: t, key: n } = $Te[e];
+function nEe(e) {
+ let { url: t, key: n } = tEe[e];
return It({
mutationFn: () => V(t, {}),
onSuccess: (e) => H.setQueryData(n, e)
});
}
-var tEe = (e) => e?.running ? 3e3 : !1;
-function nEe() {
+var rEe = (e) => e?.running ? 3e3 : !1;
+function iEe() {
return It({
- mutationFn: (e) => V(KY, { mode: e }),
- onSuccess: (e) => H.setQueryData(XY, e)
+ mutationFn: (e) => V(GY, { mode: e }),
+ onSuccess: (e) => H.setQueryData(YY, e)
});
}
// src/react/data-cleanup/organize.ts
-var rEe = "/api/organize", iEe = "/api/organize/preview", aEe = "/api/organize/apply", oEe = "/api/organize/rollback", eX = ["organize"], sEe = "/api/organize/example", cEe = (e, t, n) => B(`${sEe}?${new URLSearchParams({
+var aEe = "/api/organize", oEe = "/api/organize/preview", sEe = "/api/organize/apply", cEe = "/api/organize/rollback", $Y = ["organize"], lEe = "/api/organize/example", uEe = (e, t, n) => B(`${lEe}?${new URLSearchParams({
file_template: e,
dir_template: t
-})}`, n), tX = (e) => B(rEe, e);
-async function lEe(e) {
+})}`, n), eX = (e) => B(aEe, e);
+async function dEe(e) {
await H.fetchQuery({
- queryKey: eX,
- queryFn: () => tX(e)
+ queryKey: $Y,
+ queryFn: () => eX(e)
});
}
-var uEe = (e) => V(iEe, e), dEe = (e) => V(HY, { initial: e }), fEe = (e) => e.kind === "apply" ? V(aEe, {
+var fEe = (e) => V(oEe, e), pEe = (e) => V(VY, { initial: e }), mEe = (e) => e.kind === "apply" ? V(sEe, {
...e.request,
confirm: !0
-}) : V(oEe, { confirm: !0 });
-async function pEe(e) {
- H.setQueryData(eX, (t) => t && {
+}) : V(cEe, { confirm: !0 });
+async function hEe(e) {
+ H.setQueryData($Y, (t) => t && {
...t,
templates: e
});
try {
- await V(UY, { organizeTemplates: e });
+ await V(HY, { organizeTemplates: e });
} catch {}
}
-var mEe = (e, t) => e && {
+var gEe = (e, t) => e && {
...e,
...t
-}, hEe = /目录模板|分隔符|盘符|`\.`/;
-function gEe(e) {
+}, _Ee = /目录模板|分隔符|盘符|`\.`/;
+function vEe(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var nX = (e) => Number(e || 0).toLocaleString();
-function _Ee(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${nX(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${nX(e.counts.change)} 个文件会改名或移动,${nX(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+var tX = (e) => Number(e || 0).toLocaleString();
+function yEe(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}。` : ""}`;
}
-function vEe(e) {
+function bEe(e) {
let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);
return {
- text: t ? `已退回 ${nX(r)} 个文件${n ? `,${nX(n)} 行未能退回` : ""}。` : `已整理 ${nX(r)} 个文件${n ? `,${nX(n)} 行未能处理` : ""}。`,
+ text: t ? `已退回 ${tX(r)} 个文件${n ? `,${tX(n)} 行未能退回` : ""}。` : `已整理 ${tX(r)} 个文件${n ? `,${tX(n)} 行未能处理` : ""}。`,
failed: n,
rollback: t
};
}
// src/react/data-cleanup/orphan-records.ts
-var yEe = "/api/orphan-records", bEe = "/api/orphan-records/attach", rX = ["orphan-records"], xEe = [
+var xEe = "/api/orphan-records", SEe = "/api/orphan-records/attach", nX = ["orphan-records"], CEe = [
["asset_preference", "喜欢与理由"],
["watch_queue", "稍后看"],
["playlist_item", "播放列表"],
["asset_quality_goal", "寻找更好版本"],
["activity_event", "观看历史"],
["asset_tag_preference", "隐藏标签"]
-], iX = (e) => B(yEe, e), SEe = (e, t) => V(bEe, {
+], rX = (e) => B(xEe, e), wEe = (e, t) => V(SEe, {
id: e,
target: t
-}), CEe = (e) => V(cY, {
+}), TEe = (e) => V(sY, {
ids: Array.isArray(e) ? e : [e],
operation: "delete"
-}), wEe = (e) => [
+}), EEe = (e) => [
e.rating ? `评分 ${e.rating}` : "",
e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",
e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""
-], TEe = (e) => [...xEe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...wEe(e)].filter(Boolean).join(" · "), EEe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", DEe = (e) => [e.name, EEe(e.duration)].filter(Boolean).join(" · "), aX = "/api/resource-sync/scan", oX = "/api/resource-sync/apply", sX = ["resource-sync", "scan"], cX = ["resource-sync", "apply"], lX = (e) => V(aX, {
+], DEe = (e) => [...CEe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...EEe(e)].filter(Boolean).join(" · "), OEe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", kEe = (e) => [e.name, OEe(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, {
background: !0,
status_only: !0
-}, "POST", e), OEe = () => V(aX, {
+}, "POST", e), AEe = () => V(iX, {
background: !0,
restart: !0
-}), uX = (e) => B(oX, e), kEe = (e) => V(oX, {
+}), lX = (e) => B(aX, e), jEe = (e) => V(aX, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), dX = (e) => (e?.sources ?? []).some((e) => _n.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function AEe(e) {
- dX(H.getQueryData(yr)) && await Promise.all([H.fetchQuery({
+}), uX = (e) => (e?.sources ?? []).some((e) => _n.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
+async function MEe(e) {
+ uX(H.getQueryData(yr)) && await Promise.all([H.fetchQuery({
+ queryKey: oX,
+ queryFn: () => cX(e)
+ }), H.fetchQuery({
queryKey: sX,
queryFn: () => lX(e)
- }), H.fetchQuery({
- queryKey: cX,
- queryFn: () => uX(e)
})]);
}
-var jEe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), fX = (e) => Number(e || 0).toLocaleString(), MEe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", pX = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), mX = (e) => e.vanish ? `${fX(e.vanish)} 条作品记录的文件已丢失,个人记录保留,可在「文件已丢失的记录」中转移个人记录或删除记录。` : "", hX = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", NEe = (e) => `将永久删除文件已不在盘上的 ${fX(pX(e))} 条记录和 ${fX(e.empty)} 个空文件夹,并清理 ${fX(e.cache?.files)} 个闲置缓存。${hX(e)}${mX(e)}`, PEe = (e) => `将永久删除文件已不在盘上的 ${fX(pX(e))} 条记录(含回收站里的)、${fX(e.empty)} 个空文件夹,并清理 ${fX(e.cache?.files)} 个闲置缓存。来源根目录保留。${hX(e)}${mX(e)}`, FEe = (e) => e.online ? [
- `找不到文件 · 共 ${fX(e.total)} 项`,
- e.vanish ? `${fX(e.vanish)} 项带个人记录` : "",
- e.empty ? `空文件夹 ${fX(e.empty)} 个` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${fX(e.total)} 项`;
-function gX(e) {
+var NEe = (e) => !!(e?.missing || e?.empty || e?.cache?.files), dX = (e) => Number(e || 0).toLocaleString(), PEe = (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 ? "这几样不可撤销。" : "这一步不可撤销。", FEe = (e) => `将永久删除文件已不在盘上的 ${dX(fX(e))} 条记录和 ${dX(e.empty)} 个空文件夹,并清理 ${dX(e.cache?.files)} 个闲置缓存。${mX(e)}${pX(e)}`, IEe = (e) => `将永久删除文件已不在盘上的 ${dX(fX(e))} 条记录(含回收站里的)、${dX(e.empty)} 个空文件夹,并清理 ${dX(e.cache?.files)} 个闲置缓存。来源根目录保留。${mX(e)}${pX(e)}`, LEe = (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) {
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 ? `${fX(t.length)} 条记录没有删除(${o})` : "",
- n ? `${fX(n)} 个文件夹没有删除` : "",
- r.length ? `${fX(r.length)} 个缓存没有清理` : ""
+ t.length ? `${dX(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${dX(n)} 个文件夹没有删除` : "",
+ r.length ? `${dX(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var IEe = (e, t) => {
- let { rest: n } = gX(e), r = `已永久删除 ${fX(e.purged)} 条失效记录和 ${fX(e.dirs_removed)} 个空文件夹,清理 ${fX(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${fX(e.vanished)} 条作品记录已标为文件丢失,可在「文件已丢失的记录」中处理。` : "") + (e.reattached ? `${fX(e.reattached)} 条的记录已接到库里的另一个版本。` : "");
+var REe = (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)} 条的记录已接到库里的另一个版本。` : "");
return n ? `${r}${n},重新检查后可再试。` : r;
-}, _X = ["performer-delete-candidates"], vX = (e) => B("/api/performer/delete-candidates", e), LEe = (e, t) => B(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), REe = (e) => V("/api/performer/delete", {
+}, gX = ["performer-delete-candidates"], _X = (e) => B("/api/performer/delete-candidates", e), zEe = (e, t) => B(`/api/performer/delete-plan?${new URLSearchParams({ ids: e.join(",") })}`, t), BEe = (e) => V("/api/performer/delete", {
entity_ids: e.entity_ids,
plan: e.plan
-}), zEe = "/api/review?counts=1", yX = ["review", "counts"], BEe = "/api/ads?limit=1", bX = ["junk-summary"], xX = "/api/items?state=trash&limit=1", SX = ["trash-summary"], VEe = [
+}), VEe = "/api/review?counts=1", vX = ["review", "counts"], HEe = "/api/ads?limit=1", yX = ["junk-summary"], bX = "/api/items?state=trash&limit=1", xX = ["trash-summary"], UEe = [
["video", "视频"],
["image", "图片"],
["archive", "压缩包"],
["audio", "音频"],
["url", "网址"],
["other", "其它"]
-], CX = (e) => B(zEe, e), wX = (e) => B(BEe, e), TX = (e) => {
+], SX = (e) => B(VEe, e), CX = (e) => B(HEe, e), wX = (e) => {
let t = sessionStorage.getItem("peach.library");
- return B(t ? `${xX}&library=${encodeURIComponent(t)}` : xX, e);
-}, EX = (e) => Number(e || 0).toLocaleString();
-function HEe(e) {
- let t = xY, 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 ? `${bX}&library=${encodeURIComponent(t)}` : bX, e);
+}, TX = (e) => Number(e || 0).toLocaleString();
+function WEe(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 a && i.push(`其余 ${a.toLocaleString()}`), {
figure: `${r.toLocaleString()} 条待复核`,
meta: i.join(" · ")
};
}
-function UEe(e) {
+function GEe(e) {
if (!e) return "";
- let t = VEe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${EX(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${EX(e.dismissed_total)}`), t.join(" · ");
+ let t = UEe.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(" · ");
}
-var WEe = [
+var KEe = [
+ [vX, ({ signal: e }) => SX(e)],
+ [gY, ({ signal: e }) => _Y(e)],
+ [xX, ({ signal: e }) => wX(e)],
[yX, ({ signal: e }) => CX(e)],
- [_Y, ({ signal: e }) => vY(e)],
- [SX, ({ signal: e }) => TX(e)],
- [bX, ({ signal: e }) => wX(e)],
- [sY, ({ signal: e }) => lY(e)]
+ [oY, ({ signal: e }) => cY(e)]
];
-async function GEe(e) {
- for (let [t, n] of WEe) H.prefetchQuery({
+async function qEe(e) {
+ for (let [t, n] of KEe) H.prefetchQuery({
queryKey: t,
queryFn: () => n({ signal: e })
});
- await aH(e);
+ await iH(e);
}
-async function KEe(e, t) {
+async function JEe(e, t) {
switch (e) {
case "organize":
- await lEe(t);
+ await dEe(t);
break;
case "media-repair":
- await oTe(t);
+ await cTe(t);
break;
case "resource-sync":
- await oY(t), await AEe(t);
+ await aY(t), await MEe(t);
break;
case "orphan-records":
await H.prefetchQuery({
- queryKey: rX,
- queryFn: () => iX(t)
+ queryKey: nX,
+ queryFn: () => rX(t)
});
break;
case "batch-delete":
await H.prefetchQuery({
- queryKey: _X,
- queryFn: () => vX(t)
+ queryKey: gX,
+ queryFn: () => _X(t)
});
break;
case "links": await Promise.all([
+ H.prefetchQuery({
+ queryKey: MY,
+ queryFn: () => IY(t)
+ }),
H.prefetchQuery({
queryKey: NY,
queryFn: () => LY(t)
@@ -62749,17 +62756,13 @@ async function KEe(e, t) {
H.prefetchQuery({
queryKey: PY,
queryFn: () => RY(t)
- }),
- H.prefetchQuery({
- queryKey: FY,
- queryFn: () => zY(t)
})
]);
}
}
// src/react/feed-new/feed-new.ts
-var DX = (e) => ["feed-new", e ?? "home"], qEe = 8, JEe = 1500;
-function YEe(e, t, n) {
+var EX = (e) => ["feed-new", e ?? "home"], YEe = 8, XEe = 1500;
+function ZEe(e, t, n) {
let r = document.createElement("template");
r.innerHTML = e;
let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {
@@ -62770,33 +62773,33 @@ function YEe(e, t, n) {
setTimeout(e, n);
})]);
}
-async function XEe(e, t, n) {
+async function QEe(e, t, n) {
let r = new URLSearchParams({ limit: String(rM().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 YEe(s, qEe, JEe), {
+ return n && o.length && await ZEe(s, YEe, XEe), {
items: o,
html: s,
fetching: o.some((e) => e.cover_fetching && !e.has_cover)
};
}
-var OX = (e, t, n = !1) => ({
- queryKey: DX(e),
- queryFn: () => XEe(e, t, n),
+var DX = (e, t, n = !1) => ({
+ queryKey: EX(e),
+ queryFn: () => QEe(e, t, n),
staleTime: Infinity,
refetchInterval: (e) => e.state.data?.fetching ? 2e3 : !1
-}), kX = (e, t) => Tn("/api/feeds/discovery", {
+}), OX = (e, t) => Tn("/api/feeds/discovery", {
method: "POST",
body: JSON.stringify({
action: t,
ids: [e]
})
}).then(() => void 0, () => void 0);
-async function ZEe(e) {
- H.removeQueries({ queryKey: DX(null) }), await H.fetchQuery(OX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
+async function $Ee(e) {
+ H.removeQueries({ queryKey: EX(null) }), await H.fetchQuery(DX(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));
}
// src/react/entity-page/entity-page.ts
-var AX = [
+var kX = [
"loc",
"creator",
"tag",
@@ -62810,52 +62813,52 @@ var AX = [
"browse",
"folder",
"folder_recursive"
-], jX = {
+], AX = {
media: "videos",
set: 0
-}, MX = (e, t) => [
+}, jX = (e, t) => [
"entity",
e,
t
-], QEe = (e, t, n, r) => [
+], eDe = (e, t, n, r) => [
"entity-items",
e,
t,
n,
r
-], NX = (e, t, n, r) => [
+], MX = (e, t, n, r) => [
"entity-photos",
e,
t,
n,
r
-], PX = (e) => String(e || "").split(",").filter(Boolean), $Ee = (e, t) => PX(e).includes(t);
-function FX(e, t, n, r, i = 0) {
+], NX = (e) => String(e || "").split(",").filter(Boolean), tDe = (e, t) => NX(e).includes(t);
+function PX(e, t, n, r, i = 0) {
let a = new URLSearchParams();
- a.set(e, t), e === "tag" && (a.set("tag", [.../* @__PURE__ */ new Set([t, ...PX(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 AX) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);
+ 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]);
return r.jav && a.set("jav", "1"), a;
}
-async function IX(e, t, n, r, i, a, o) {
- let s = FX(e, t, n, r, i);
+async function FX(e, t, n, r, i, a, o) {
+ let s = PX(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 LX = (e) => {
+var IX = (e) => {
let t = {
jav: e.jav,
seed: e.seed
- }, n = FX(e.kind, e.name, e.filters, t).toString();
+ }, n = PX(e.kind, e.name, e.filters, t).toString();
return {
- queryKey: QEe(e.kind, e.name, n, e.revision),
- queryFn: ({ signal: n }) => IX(e.kind, e.name, e.filters, t, 0, n),
+ queryKey: eDe(e.kind, e.name, n, e.revision),
+ queryFn: ({ signal: n }) => FX(e.kind, e.name, e.filters, t, 0, n),
staleTime: Infinity
};
-}, RX = (e, t) => ({
- queryKey: MX(e, t),
+}, LX = (e, t) => ({
+ queryKey: jX(e, t),
queryFn: ({ signal: n }) => Tn(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),
staleTime: Infinity
});
-function eDe(e, t, n, r, i, a) {
+function nDe(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)}` : ""}`;
@@ -62864,10 +62867,10 @@ function eDe(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 zX = (e, t, n, r) => ({
- queryKey: NX(e, t, n, r),
+var RX = (e, t, n, r) => ({
+ queryKey: MX(e, t, n, r),
queryFn: async ({ pageParam: i }) => {
- let a = await Tn(eDe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
+ let a = await Tn(nDe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {
if (i) throw e;
return { error: String(e) };
});
@@ -62880,8 +62883,8 @@ var zX = (e, t, n, r) => ({
seed: t[0]?.seed || ""
} : void 0,
staleTime: Infinity
-}), BX = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
-async function tDe(e) {
+}), zX = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];
+async function rDe(e) {
let { kind: t, name: n } = e;
if (!e.restoreNavigation) for (let e of [
"entity",
@@ -62892,25 +62895,25 @@ async function tDe(e) {
t,
n
] });
- e.resolvedEntity?.id && H.setQueryData(MX(t, n), e.resolvedEntity), await Promise.all([
- H.fetchQuery(RX(t, n)).then((t) => !t || t.error || !t.id ? null : (e.restoreNavigation || H.removeQueries({ queryKey: DX(Number(t.id)) }), H.fetchQuery(OX(Number(t.id), e.helpers.feedRowHtml, !0)))),
- H.fetchQuery(LX(e)),
- H.fetchInfiniteQuery(zX(t, n, 0, "")),
- e.media.media === "photos" && e.media.set ? H.fetchInfiniteQuery(zX(t, n, e.media.set, "")) : null
+ 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
]);
}
// src/identity-filter.ts
-var VX = [
+var BX = [
["all", "全部"],
["japanese_av", "女优"],
["amateur", "素人"],
["western", "西方"],
["blogger", "网黄博主"],
["animation", "动画作者"]
-], HX = "mb-4 flex flex-wrap gap-2";
-function nDe(e) {
- let t = VX.some(([t]) => t === e) ? e : "all";
- return `<div class="peach-react"><div aria-label="身份分类" class="${HX}">${VX.map(([e, n]) => Os({
+], VX = "mb-4 flex flex-wrap gap-2";
+function iDe(e) {
+ let t = BX.some(([t]) => t === e) ? e : "all";
+ return `<div class="peach-react"><div aria-label="身份分类" class="${VX}">${BX.map(([e, n]) => Os({
variant: e === t ? "primary" : "secondary",
size: "small",
label: n,
@@ -62918,45 +62921,45 @@ function nDe(e) {
})).join("")}</div></div>`;
}
// src/react/follow/online-vocab.ts
-var rDe = "/api/follow/authors", iDe = "/api/follow/tags", aDe = (e) => [
+var aDe = "/api/follow/authors", oDe = "/api/follow/tags", sDe = (e) => [
"follow",
"authors",
e
-], oDe = (e, t) => [
+], cDe = (e, t) => [
"follow",
"tags",
e,
t
];
-function sDe(e, t, n) {
+function lDe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${rDe}?${r}`;
+ return e && r.set("q", e), `${aDe}?${r}`;
}
-function cDe(e, t, n, r) {
+function uDe(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), `${iDe}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${oDe}?${i}`;
}
-var lDe = (e, t, n, r) => B(sDe(e, t, n), r), uDe = (e, t, n, r, i) => B(cDe(e, t, n, r), i), dDe = "/api/index", UX = {
+var dDe = (e, t, n, r) => B(lDe(e, t, n), r), fDe = (e, t, n, r, i) => B(uDe(e, t, n, r), i), pDe = "/api/index", HX = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, fDe = {
+}, mDe = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency",
series: "series"
-}, WX = [
+}, UX = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -62966,31 +62969,31 @@ var lDe = (e, t, n, r) => B(sDe(e, t, n), r), uDe = (e, t, n, r, i) => B(cDe(e,
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], GX = [
+], WX = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], KX = {
+], GX = {
people: 120,
tags: 100
-}, qX = (e) => e !== "tags", JX = (e) => e === "studios" || e === "agencies";
-function YX(e) {
- if (e.kind === "creators" && e.category === "animation") return YX({
+}, KX = (e) => e !== "tags", qX = (e) => e === "studios" || e === "agencies";
+function JX(e) {
+ if (e.kind === "creators" && e.category === "animation") return JX({
...e,
kind: "performers",
scope: "local"
});
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (e.kind === "tags" ? t === "online" ? GX : WX : e.kind === "performers" && t === "local" ? VX : []).some(([t]) => t === e.category);
+ 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);
return {
...e,
scope: t,
category: n ? e.category : "all"
};
}
-function XX(e) {
+function YX(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -63010,50 +63013,50 @@ function XX(e) {
...i && i !== "all" ? { category: i } : {}
};
}
-var ZX = (e, t, n = "all") => [
+var XX = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" || n !== "all" ? [n] : []
];
-function QX(e, t, n, r, i) {
+function ZX(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), `${dDe}?${a}`;
+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${pDe}?${a}`;
}
-function $X(e, t = KX.tags) {
- let n = e.what === "people" || e.what === "online-authors" ? KX.people : t, r = {
+function QX(e, t = GX.tags) {
+ let n = e.what === "people" || e.what === "online-authors" ? GX.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: ZX(e.kind, e.q, e.category || "all"),
- queryFn: ({ pageParam: t, signal: r }) => B(QX(e.kind, e.q, e.category || "all", n, t), 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)
};
case "tags": return {
...r,
- queryKey: ZX("tags", e.q, e.category),
- queryFn: ({ pageParam: t, signal: r }) => B(QX("tags", e.q, e.category, n, t), r)
+ queryKey: XX("tags", e.q, e.category),
+ queryFn: ({ pageParam: t, signal: r }) => B(ZX("tags", e.q, e.category, n, t), r)
};
case "online-authors": return {
...r,
- queryKey: aDe(e.q),
- queryFn: ({ pageParam: t, signal: r }) => lDe(e.q, n, t, r)
+ queryKey: sDe(e.q),
+ queryFn: ({ pageParam: t, signal: r }) => dDe(e.q, n, t, r)
};
case "online-tags": return {
...r,
- queryKey: oDe(e.q, e.category),
- queryFn: ({ pageParam: t, signal: r }) => uDe(e.q, e.category, n, t, r)
+ queryKey: cDe(e.q, e.category),
+ queryFn: ({ pageParam: t, signal: r }) => fDe(e.q, e.category, n, t, r)
};
}
}
-async function pDe(e, t) {
- let n = $X(XX(YX(e)));
+async function hDe(e, t) {
+ let n = QX(YX(JX(e)));
await H.fetchInfiniteQuery({
queryKey: n.queryKey,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -63065,20 +63068,20 @@ async function pDe(e, t) {
staleTime: Infinity
});
}
-var mDe = (e) => e ? e.pages.flatMap((e) => e.items) : [], hDe = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, eZ = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", gDe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, _De = {
+var gDe = (e) => e ? e.pages.flatMap((e) => e.items) : [], _De = (e, t) => `${e.toLocaleString()}${t ? "+" : ""} 项`, $X = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", vDe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : `${(t.n || 0).toLocaleString()} 个视频`, yDe = {
numeric: !0,
sensitivity: "base"
};
-function tZ(e, t) {
+function eZ(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", _De))) {
+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", yDe))) {
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 nZ({ html: e, face: t, company: n, big: r }) {
+function tZ({ 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");
@@ -63090,18 +63093,18 @@ function nZ({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var vDe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", yDe = dV("rss");
-function rZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a, ...o }) {
+var bDe = "relative flex cursor-pointer flex-col gap-2 p-3 text-inherit", xDe = uV("rss");
+function nZ({ 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: xU({
+ className: bU({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${vDe} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${bDe} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -63110,10 +63113,10 @@ function rZ({ 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)(WU, {
+ children: /* @__PURE__ */ (0, I.jsx)(UU, {
variant: "caption",
color: "soft",
- children: /* @__PURE__ */ (0, I.jsx)(yDe, {})
+ children: /* @__PURE__ */ (0, I.jsx)(xDe, {})
})
}) : null,
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -63129,9 +63132,9 @@ function rZ({ name: e, readout: t, big: n, children: r, following: i, onPress: a
]
});
}
-function iZ({ kind: e, items: t, layout: n, props: r }) {
- let i = JX(e) || e === "series";
- aL();
+function rZ({ kind: e, items: t, layout: n, props: r }) {
+ let i = qX(e) || e === "series";
+ iL();
let a = n === "big";
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-index-grid": "",
@@ -63139,16 +63142,16 @@ function iZ({ 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 || fDe[e], o = r.personAvatar(t, n, a);
- return /* @__PURE__ */ (0, I.jsx)(rZ, {
+ let n = t.entity_kind || mDe[e], o = r.personAvatar(t, n, a);
+ return /* @__PURE__ */ (0, I.jsx)(nZ, {
"data-k": t.k,
"data-kind": n,
name: nn(n, t.k, t.entity_id),
- readout: `${gDe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,
+ readout: `${vDe(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)(nZ, {
+ children: /* @__PURE__ */ (0, I.jsx)(tZ, {
html: o.html,
face: o.face,
company: i,
@@ -63158,15 +63161,15 @@ function iZ({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function bDe({ items: e, layout: t, props: n }) {
- aL();
+function SDe({ items: e, layout: t, props: n }) {
+ iL();
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)(rZ, {
+ children: e.map((e) => /* @__PURE__ */ (0, I.jsx)(nZ, {
"data-follow-author": e.key,
"data-kind": "performer",
name: nn("creator", e.k, e.entity_id),
@@ -63175,7 +63178,7 @@ function bDe({ 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)(nZ, {
+ children: /* @__PURE__ */ (0, I.jsx)(tZ, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -63184,8 +63187,8 @@ function bDe({ items: e, layout: t, props: n }) {
});
}
// src/board-tooltip.ts
-var aZ = (e) => e.replace(/\s+/g, " ").trim();
-function oZ(e) {
+var iZ = (e) => e.replace(/\s+/g, " ").trim();
+function aZ(e) {
let t = document.createTreeWalker(e, NodeFilter.SHOW_TEXT), n = "", r;
for (; r = t.nextNode();) {
let e = r.parentElement;
@@ -63193,12 +63196,12 @@ function oZ(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 aZ(n);
+ return iZ(n);
}
-function sZ(e) {
+function oZ(e) {
let t = e.getBoundingClientRect();
if (t.width && t.height) {
- if (e.matches("a") && oZ(e) && !cZ(e)) {
+ if (e.matches("a") && aZ(e) && !sZ(e)) {
let t = document.createRange();
t.selectNodeContents(e);
let n = t.getBoundingClientRect();
@@ -63211,7 +63214,7 @@ function sZ(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 cZ(e) {
+function sZ(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);
@@ -63222,19 +63225,19 @@ function cZ(e) {
}
return !1;
}
-function xDe() {
+function CDe() {
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 = sZ(t), r = e.getBoundingClientRect();
+ let n = oZ(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"), (oZ(d) !== aZ(n) || cZ(d)) && (i = setTimeout(() => {
- if (t !== d || !d.isConnected || !sZ(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"), (aZ(d) !== iZ(n) || sZ(d)) && (i = setTimeout(() => {
+ if (t !== d || !d.isConnected || !oZ(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(" "));
@@ -63259,32 +63262,32 @@ function xDe() {
e.key === "Escape" && !c() && u();
}), document.addEventListener("scroll", (n) => {
if (!t || !ds(n, t)) return;
- let r = sZ(t);
+ let r = oZ(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 lZ(e) {
+function cZ(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 uZ = /* @__PURE__ */ new WeakSet();
-function SDe() {
- if (uZ.has(document)) return;
- uZ.add(document);
+var lZ = /* @__PURE__ */ new WeakSet();
+function wDe() {
+ if (lZ.has(document)) return;
+ lZ.add(document);
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(lZ), wDe(e), CDe(e);
+ e.querySelectorAll("input[type=range]").forEach(cZ), EDe(e), TDe(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]") && lZ(t), e(t));
+ for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && cZ(t), e(t));
}).observe(document.body, {
subtree: !0,
childList: !0
}), document.addEventListener("input", (e) => {
- e.target instanceof HTMLInputElement && e.target.type === "range" && lZ(e.target);
- }), xDe();
+ e.target instanceof HTMLInputElement && e.target.type === "range" && cZ(e.target);
+ }), CDe();
}
-function CDe(e) {
+function TDe(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;
@@ -63308,15 +63311,15 @@ function CDe(e) {
r.observe(e);
});
}
-var dZ = /* @__PURE__ */ new Map();
-function wDe(e) {
+var uZ = /* @__PURE__ */ new Map();
+function EDe(e) {
let t = ".iconswitch,.insightswitch,.follow-workspace-switch", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-segments") || e.closest("[data-skeleton]")) return;
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 = dZ.get(n) ?? null, i = () => {
+ let n = e.className + (e.getAttribute("aria-label") ?? ""), r = uZ.get(n) ?? null, i = () => {
let i = e.querySelector("label:has(input:checked),button[aria-selected=true]");
if (!i || !i.offsetWidth) return;
let a = {
@@ -63325,7 +63328,7 @@ function wDe(e) {
w: i.offsetWidth,
h: i.offsetHeight
};
- Wc(t, r, a, "x"), r = a, dZ.set(n, a);
+ Wc(t, r, a, "x"), r = a, uZ.set(n, a);
};
e.addEventListener("change", i);
let a = new MutationObserver(i);
@@ -63341,8 +63344,8 @@ function wDe(e) {
});
}
// src/react/photo-lightbox/photo-lightbox.ts
-var fZ = "/vendor/swiper/14.4.0/", pZ = null, TDe = () => pZ ??= Promise.all([new Promise((e, t) => {
- let n = `${fZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+var dZ = "/vendor/swiper/14.4.0/", fZ = null, DDe = () => fZ ??= Promise.all([new Promise((e, t) => {
+ let n = `${dZ}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
if (r?.sheet) {
e();
return;
@@ -63356,11 +63359,11 @@ var fZ = "/vendor/swiper/14.4.0/", pZ = null, TDe = () => pZ ??= Promise.all([ne
return;
}
let r = document.createElement("script");
- r.src = `${fZ}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
+ r.src = `${dZ}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 pZ = null, e;
+ throw fZ = null, e;
});
-function EDe(e, t, n) {
+function ODe(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);
@@ -63381,46 +63384,46 @@ function EDe(e, t, n) {
}
};
}
-var mZ = (e) => {
+var pZ = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : Xn(t)).replace(" ", "\xA0") : "大小未知";
-}, DDe = (e) => e.asset?.name || e.name || "未命名图片";
-function ODe(e, t) {
+}, kDe = (e) => e.asset?.name || e.name || "未命名图片";
+function ADe(e, t) {
let n = e.asset;
- if (n) return [nr[n.location ?? ""] || n.location || "来源未知", mZ(n.size)].join(" · ");
+ if (n) return [nr[n.location ?? ""] || n.location || "来源未知", pZ(n.size)].join(" · ");
let r = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";
return [
e.source || "在线图片",
r,
- e.size ? mZ(e.size) : ""
+ e.size ? pZ(e.size) : ""
].filter(Boolean).join(" · ");
}
// src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var hZ = null, gZ = null, kDe = 0;
-function ADe() {
- return gZ && hZ?.isConnected || (gZ?.unmount(), hZ = document.createElement("div"), hZ.className = "peach-react", hZ.dataset.photoLightboxHost = "", document.body.append(hZ), gZ = (0, zt.createRoot)(hZ)), gZ;
+var mZ = null, hZ = null, jDe = 0;
+function MDe() {
+ 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;
}
-async function _Z(e, t, n) {
+async function gZ(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await TDe();
+ r = await DDe();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = ADe();
- (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(jDe, {
+ let i = MDe();
+ (0, Rt.flushSync)(() => i.render(/* @__PURE__ */ (0, I.jsx)(NDe, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++kDe)));
+ }, ++jDe)));
}
-function vZ() {
- gZ && (0, Rt.flushSync)(() => gZ.render(null));
+function _Z() {
+ hZ && (0, Rt.flushSync)(() => hZ.render(null));
}
-function jDe({ slides: e, index: t, Swiper: n, host: r }) {
+function NDe({ 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: ""
@@ -63463,7 +63466,7 @@ function jDe({ slides: e, index: t, Swiper: n, host: r }) {
v(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), h.current = EDe(e, a, b);
+ i(t, 0), h.current = ODe(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();
};
@@ -63480,13 +63483,13 @@ function jDe({ 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) : vZ());
+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : _Z());
};
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 && lZ(m.current);
+ m.current && cZ(m.current);
}, [y]);
let j = e[_], M = j.asset ?? null, ee = async (e) => {
if (!M || !r || e.getAttribute("aria-busy") === "true") return;
@@ -63517,18 +63520,18 @@ function jDe({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), vZ();
+ e.preventDefault(), _Z();
},
onClick: (e) => {
let t = e.target;
- g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && vZ();
+ g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && _Z();
},
children: [
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-photo-close": "",
"aria-label": "关闭",
- onClick: vZ,
+ onClick: _Z,
dangerouslySetInnerHTML: { __html: R("x") }
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -63664,10 +63667,10 @@ function jDe({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: DDe(j)
+ children: kDe(j)
}, _), /* @__PURE__ */ (0, I.jsx)("span", {
"data-photo-detail-meta": "",
- children: ODe(j, x[_])
+ children: ADe(j, x[_])
})]
}),
/* @__PURE__ */ (0, I.jsx)("button", {
@@ -63705,41 +63708,41 @@ function jDe({ slides: e, index: t, Swiper: n, host: r }) {
});
}
// src/react/entity-body/entity-body-page.tsx
-function MDe(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(NDe, {
+function PDe(e) {
+ return e.view === "people" && e.roster ? /* @__PURE__ */ (0, I.jsx)(FDe, {
roster: e.roster,
props: e
- }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(PDe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(LDe, {
+ }) : e.view === "videos" ? /* @__PURE__ */ (0, I.jsx)(IDe, { ...e }) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, I.jsx)(zDe, {
photos: e.photos,
props: e
}, e.photos.revision) : null;
}
-var yZ = KX.people;
-function NDe({ roster: e, props: t }) {
+var vZ = GX.people;
+function FDe({ 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)(yZ), s = (0, F.useMemo)(() => e.people.slice(0, a), [e.people, a]), c = (0, F.useCallback)(async () => {
- o((e) => e + yZ);
+ }), [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);
}, []);
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(iZ, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(rZ, {
kind: e.kind,
items: s,
layout: e.layout,
props: i
- }), a < e.people.length ? /* @__PURE__ */ (0, I.jsx)(iY, {
+ }), a < e.people.length ? /* @__PURE__ */ (0, I.jsx)(rY, {
entity: !0,
load: c,
enabled: () => !0
}, a) : null] });
}
-function PDe(e) {
+function IDe(e) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-grid": "",
- children: /* @__PURE__ */ (0, I.jsx)(LG, {
+ children: /* @__PURE__ */ (0, I.jsx)(IG, {
pending: !e.items,
skeletonHtml: e.skeletonHtml,
- children: e.items ? /* @__PURE__ */ (0, I.jsx)(nY, {
+ children: e.items ? /* @__PURE__ */ (0, I.jsx)(tY, {
mode: "entity",
entityKey: e.listScope || `${e.kind}:${e.name}`,
revision: e.revision,
@@ -63761,33 +63764,33 @@ function PDe(e) {
})
});
}
-var FDe = (e) => Array.from({ length: e.n }, (t, n) => ({
+var LDe = (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 || "官方样张"
-})), bZ = (e) => e.sample === !0, xZ = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, SZ = (e) => bZ(e) ? `/sample-thumb?${xZ(e)}` : `/photo-thumb?id=${e.id}`, IDe = (e) => bZ(e) ? {
- src: `/sample-image?${xZ(e)}`,
- thumb: SZ(e),
+})), 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}`, RDe = (e) => yZ(e) ? {
+ src: `/sample-image?${bZ(e)}`,
+ thumb: xZ(e),
name: e.name,
asset: null,
source: e.source
} : {
src: `/photo?id=${e.id}`,
- thumb: SZ(e),
+ thumb: xZ(e),
name: e.name || "",
asset: e
};
-function LDe({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(FDe), ...e.items], [e]), [s, c] = (0, F.useState)(() => /* @__PURE__ */ new Set()), l = (0, F.useCallback)((e) => c((t) => {
+function zDe({ photos: e, props: t }) {
+ let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, F.useMemo)(() => [...e.codeSets.flatMap(LDe), ...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) => {
- _Z(e, o.map(IDe), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(RDe, {
+ gZ(e, o.map(RDe), { revealSource: i.revealSource });
+ }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, I.jsx)(BDe, {
item: e,
index: t,
lost: s.has(t),
@@ -63805,7 +63808,7 @@ function LDe({ 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)(CZ, {
+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, I.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(SZ, {
label: e.code,
title: e.name,
meta: [
@@ -63817,7 +63820,7 @@ function LDe({ 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)(CZ, {
+ m.length && e.total ? /* @__PURE__ */ (0, I.jsx)(SZ, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@ -63826,14 +63829,14 @@ function LDe({ 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)(iY, {
+ e.hasMore ? /* @__PURE__ */ (0, I.jsx)(rY, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
}, e.items.length) : null
] });
}
-function CZ({ label: e, title: t, meta: n }) {
+function SZ({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-photo-group": "",
children: [
@@ -63850,7 +63853,7 @@ function CZ({ label: e, title: t, meta: n }) {
]
});
}
-function RDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function BDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -63859,7 +63862,7 @@ function RDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, I.jsx)("img", {
- src: SZ(e),
+ src: xZ(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -63869,9 +63872,9 @@ function RDe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
});
}
// src/react/background-job.ts
-var zDe = 2e3, BDe = (e) => e, VDe = (e, t) => t;
-function wZ(e) {
- let { queryKey: t, jobOf: n = BDe, withJob: r = VDe, idlePollMs: i } = e, [a, o] = (0, F.useState)(!1), [s, c] = (0, F.useState)(null), l = (0, F.useRef)(e);
+var VDe = 2e3, HDe = (e) => e, UDe = (e, t) => t;
+function CZ(e) {
+ let { queryKey: t, jobOf: n = HDe, withJob: r = UDe, 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;
});
@@ -63880,7 +63883,7 @@ function wZ(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? zDe : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? VDe : i ?? !1;
}
}), d = It({
mutationFn: (e) => l.current.start(e),
@@ -63904,13 +63907,13 @@ function wZ(e) {
};
}
// src/react/follow-feed/follow-check.ts
-var TZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
-function HDe(e, t) {
- return t ? TZ(e.filter((e) => e.author_key === t || t.startsWith("entity:") && String(e.entity_id) === t.slice(7)).map((e) => e.id)) : [];
+var wZ = (e) => [...new Set(e)].filter((e) => Number.isSafeInteger(e) && e > 0);
+function WDe(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)) : [];
}
// src/react/follow-feed/follow-check-button.tsx
-function UDe({ sources: e, report: t }) {
- let n = TZ(e), [r, i] = (0, F.useState)(""), { running: a, start: o } = wZ({
+function GDe({ 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),
@@ -63924,20 +63927,20 @@ function UDe({ sources: e, report: t }) {
children: [/* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
disabled: !n.length,
- ...pV(s),
+ ...fV(s),
onClick: () => {
n.length && !s && (i(""), o.mutate(n));
},
children: "检查更新"
- }), r ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ }), r ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: r
}) : null]
});
}
// src/react/follow-feed/follow-card.tsx
-var WDe = (e) => Number(e) > 0;
-function EZ({ name: e, actions: t, children: n, ...r }) {
+var KDe = (e) => Number(e) > 0;
+function TZ({ name: e, actions: t, children: n, ...r }) {
return /* @__PURE__ */ (0, I.jsx)("a", {
...r,
href: Pn("creator", e),
@@ -63947,15 +63950,15 @@ function EZ({ name: e, actions: t, children: n, ...r }) {
children: n
});
}
-var DZ = ({ provider: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var EZ = ({ provider: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-nothumb": "",
- dangerouslySetInnerHTML: { __html: dG(e) }
+ dangerouslySetInnerHTML: { __html: uG(e) }
});
-function GDe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a, retryKey: o }) {
+function qDe({ 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)(DZ, { provider: i }) : /* @__PURE__ */ (0, I.jsx)("img", {
+ }, [o]), s ? /* @__PURE__ */ (0, I.jsx)(EZ, { provider: i }) : /* @__PURE__ */ (0, I.jsx)("img", {
src: l ? t : e,
alt: "",
loading: "lazy",
@@ -63974,8 +63977,8 @@ function GDe({ src: e, fallback: t, width: n, height: r, provider: i, onLearn: a
} : void 0
});
}
-function KDe(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) => Rbe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? va(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = ba({
+function JDe(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) => zbe(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,
@@ -63983,7 +63986,7 @@ function KDe(e) {
limit: 9
}), S = (0, F.useRef)(x.faces);
S.current = x.faces;
- let C = fK({
+ let C = dK({
load: async () => S.current,
canFlip: () => S.current.length > 1 && l.canFlip(),
referrerPolicy: "no-referrer"
@@ -63991,7 +63994,7 @@ function KDe(e) {
w.current = C.onPointerLeave;
let T = (0, F.useCallback)((e) => {
e && (e._stopHover = () => w.current());
- }, []), E = gG(u, n, i), D = fG(u), O = u.resource_provider || u.provider, k = (u.tags || []).slice(0, 3), A = yG(u, i), j = vG(t, u), M = u.status === "saved", ee = (e) => {
+ }, []), 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.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();
@@ -64006,7 +64009,7 @@ function KDe(e) {
"data-collection": x.isMix ? "" : void 0,
"data-selected": a ? "" : void 0,
onClick: ee,
- onMouseDown: rK,
+ onMouseDown: nK,
onMouseEnter: C.onPointerEnter,
onMouseLeave: C.onPointerLeave,
children: [
@@ -64020,7 +64023,7 @@ function KDe(e) {
}), /* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
children: [
- p ? /* @__PURE__ */ (0, I.jsx)(GDe, {
+ p ? /* @__PURE__ */ (0, I.jsx)(qDe, {
src: p,
fallback: m,
width: _?.width,
@@ -64028,7 +64031,7 @@ function KDe(e) {
provider: O,
onLearn: v,
retryKey: e.retryKey
- }, p) : /* @__PURE__ */ (0, I.jsx)(DZ, { provider: O }),
+ }, p) : /* @__PURE__ */ (0, I.jsx)(EZ, { provider: O }),
x.faces.length > 1 ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-mix-faces": "",
hidden: !C.faces.length,
@@ -64048,7 +64051,7 @@ function KDe(e) {
"data-media-badge": "",
title: u.provider_label || u.provider,
"aria-label": `来源:${u.provider_label || u.provider}`,
- dangerouslySetInnerHTML: { __html: dG(u.provider, u.provider_label) }
+ dangerouslySetInnerHTML: { __html: uG(u.provider, u.provider_label) }
}), j ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-badges": "",
dangerouslySetInnerHTML: { __html: j }
@@ -64061,7 +64064,7 @@ function KDe(e) {
},
dangerouslySetInnerHTML: { __html: R("check") }
}) : null,
- WDe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ KDe(u.duration) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-duration": "",
children: Jn(u.duration)
}) : null,
@@ -64132,7 +64135,7 @@ function KDe(e) {
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-meta": "",
- children: [E.entityName ? /* @__PURE__ */ (0, I.jsx)(EZ, {
+ children: [E.entityName ? /* @__PURE__ */ (0, I.jsx)(TZ, {
name: E.entityName,
actions: l,
"data-media-avatar": "",
@@ -64150,31 +64153,31 @@ function KDe(e) {
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-media-title": "",
- dangerouslySetInnerHTML: { __html: _G(t, u) + z(D) }
+ dangerouslySetInnerHTML: { __html: gG(t, u) + z(D) }
}),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-byline": "",
"data-follow-byline": "",
children: [
- E.entityName ? /* @__PURE__ */ (0, I.jsx)(EZ, {
+ E.entityName ? /* @__PURE__ */ (0, I.jsx)(TZ, {
name: E.entityName,
actions: l,
"data-media-who": "",
"data-follow-author": "",
title: E.author,
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: E.author })
+ children: /* @__PURE__ */ (0, I.jsx)(RG, { name: E.author })
}) : /* @__PURE__ */ (0, I.jsx)("span", {
"data-media-who": "",
"data-follow-author": "",
title: E.author,
- children: /* @__PURE__ */ (0, I.jsx)(zG, { name: E.author })
+ children: /* @__PURE__ */ (0, I.jsx)(RG, { name: E.author })
}),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-media-facts": "",
- children: /* @__PURE__ */ (0, I.jsx)(BG, {
+ children: /* @__PURE__ */ (0, I.jsx)(zG, {
value: u.published_at || "",
- label: SG(u),
- title: xG(u)
+ label: xG(u),
+ title: bG(u)
})
}),
E.credited ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -64184,10 +64187,10 @@ function KDe(e) {
}) : null
]
}),
- e.variant === "next" ? e.reason ? /* @__PURE__ */ (0, I.jsx)(HG, {
+ e.variant === "next" ? e.reason ? /* @__PURE__ */ (0, I.jsx)(VG, {
reasons: e.reason.reasons,
tags: e.reason.tags.map((e) => Ll(e))
- }) : null : /* @__PURE__ */ (0, I.jsx)(VG, {
+ }) : null : /* @__PURE__ */ (0, I.jsx)(BG, {
"data-follow-labels": "",
tags: k,
label: Ll,
@@ -64212,9 +64215,9 @@ function KDe(e) {
]
});
}
-var OZ = (0, F.memo)(KDe);
+var DZ = (0, F.memo)(JDe);
// src/react/components/use-masonry-grid.ts
-function qDe(e, t) {
+function YDe(e, t) {
let n = (0, F.useRef)(null);
return (0, F.useLayoutEffect)(() => {
let t = n.current;
@@ -64249,37 +64252,37 @@ function qDe(e, t) {
}, [e, t]), n;
}
// src/react/follow-manage/manage-route.ts
-var kZ = [
+var OZ = [
["list", "关注列表"],
["add", "添加关注"],
["tags", "标签管理"]
-], AZ = kZ.map(([e]) => e);
-function jZ(e) {
+], kZ = OZ.map(([e]) => e);
+function AZ(e) {
let t = new URLSearchParams(e), n = t.get("tab");
return {
- tab: AZ.find((e) => e === n) || "list",
+ tab: kZ.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 MZ(e) {
+function jZ(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 NZ(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" : MZ({
- tab: t || jZ(e).tab,
+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,
page: 1,
sort: "",
dir: ""
});
}
// src/react/follow-feed/follow-feed-page.tsx
-var PZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var NZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), JDe = dV("settings"), FZ = dV("chevron-down"), YDe = dV("history"), XDe = dV("arrow-up"), ZDe = dV("arrow-down"), QDe = [[
+}), XDe = uV("settings"), PZ = uV("chevron-down"), ZDe = uV("history"), QDe = uV("arrow-up"), $De = uV("arrow-down"), eOe = [[
"fixed",
"固定比例",
"layout-grid"
@@ -64288,7 +64291,7 @@ var PZ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function $De(e, t, n) {
+function tOe(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) => {
@@ -64336,7 +64339,7 @@ function $De(e, t, n) {
n
]);
}
-function eOe(e) {
+function nOe(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)
@@ -64344,7 +64347,7 @@ function eOe(e) {
sources: s?.sources || [],
aliases: s?.author_aliases || [],
credentials: c
- }), [s, c]), u = $De(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;
+ }), [s, c]), u = tOe(s, t, n), d = a.isPending || a.isPlaceholderData, f = !d && !!s;
(0, F.useEffect)(() => {
vm(() => location.pathname === "/follow", document.querySelector("#stats [data-filter-frame]"), { pending: d });
}, [
@@ -64378,10 +64381,10 @@ function eOe(e) {
p,
i
]);
- let m = nOe(e, !!s);
+ let m = iOe(e, !!s);
if (!s) return a.isError ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-follow-feed": "",
- children: [/* @__PURE__ */ (0, I.jsx)(IZ, {}), /* @__PURE__ */ (0, I.jsx)(IG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(FZ, {}), /* @__PURE__ */ (0, I.jsx)(FG, {
message: xn(a.error),
onRetry: () => void a.refetch()
})]
@@ -64394,7 +64397,7 @@ function eOe(e) {
author: u.author,
provider: u.provider
}, {
- authors: new Map([...u.authorSources].map(([e, t]) => [e, pG(t, l)])),
+ authors: new Map([...u.authorSources].map(([e, t]) => [e, fG(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);
@@ -64403,7 +64406,7 @@ function eOe(e) {
ref: m.host,
"data-follow-progress": ""
}, m.generation),
- !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ !m.busy && m.report ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
title: "检查结果",
children: m.report
@@ -64412,7 +64415,7 @@ function eOe(e) {
"data-follow-feed": "",
"data-select-mode": e.selectMode ? "" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(IZ, { children: u.sources.length ? /* @__PURE__ */ (0, I.jsx)(J, {
+ /* @__PURE__ */ (0, I.jsx)(FZ, { children: u.sources.length ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
"data-follow-recheck": "",
"aria-label": "检查每个来源的更新",
@@ -64423,20 +64426,20 @@ function eOe(e) {
dangerouslySetInnerHTML: { __html: Bs("检查中") }
}) : "检查更新"
}) : null }),
- /* @__PURE__ */ (0, I.jsx)(rOe, {
+ /* @__PURE__ */ (0, I.jsx)(aOe, {
facets: u,
pressed: u.author,
context: l,
props: e,
onPick: (e) => h({ author: u.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(iOe, {
+ /* @__PURE__ */ (0, I.jsx)(oOe, {
rows: u.workRows,
pressed: t.work,
props: e,
onPick: (e) => h({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, I.jsx)(aOe, {
+ /* @__PURE__ */ (0, I.jsx)(sOe, {
facets: u,
view: t,
total: _,
@@ -64444,7 +64447,7 @@ function eOe(e) {
props: e,
route: h
}),
- /* @__PURE__ */ (0, I.jsx)(oOe, {
+ /* @__PURE__ */ (0, I.jsx)(cOe, {
conditions: g,
onDrop: (e) => i.route(Ea(t, e)),
onClear: () => h({
@@ -64456,8 +64459,8 @@ function eOe(e) {
durMax: 0
})
}),
- u.broken.length ? /* @__PURE__ */ (0, I.jsx)(sOe, { count: u.broken.length }) : null,
- /* @__PURE__ */ (0, I.jsx)(cOe, {
+ u.broken.length ? /* @__PURE__ */ (0, I.jsx)(lOe, { count: u.broken.length }) : null,
+ /* @__PURE__ */ (0, I.jsx)(uOe, {
retryKey: a.dataUpdatedAt,
pending: d,
facets: u,
@@ -64480,14 +64483,14 @@ function eOe(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)(iY, {
+ children: s.groups.length < 500 ? /* @__PURE__ */ (0, I.jsxs)(rY, {
entity: !0,
enabled: () => !m.busyRef.current,
load: async () => {
await a.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, I.jsx)(FZ, { className: "size-(--icon-inline)" }), "加载更多"]
- }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(tOe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(PZ, { className: "size-(--icon-inline)" }), "加载更多"]
+ }, a.data?.pages.length) : /* @__PURE__ */ (0, I.jsx)(rOe, {
busy: a.isFetchingNextPage,
error: a.isFetchNextPageError ? xn(a.error) : "",
load: () => {
@@ -64498,7 +64501,7 @@ function eOe(e) {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- leadingIcon: m.olderBusy ? void 0 : YDe,
+ leadingIcon: m.olderBusy ? void 0 : ZDe,
"data-follow-older": "",
"aria-busy": m.busy || void 0,
onClick: () => void m.start(!0),
@@ -64516,7 +64519,7 @@ function eOe(e) {
})
] });
}
-function IZ({ children: e }) {
+function FZ({ children: e }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-follow-head": "",
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
@@ -64524,30 +64527,30 @@ function IZ({ children: e }) {
children: "关注"
}), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-follow-head-actions": "",
- children: [/* @__PURE__ */ (0, I.jsx)(bL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(yL, {
variant: "secondary",
- leadingIcon: JDe,
+ leadingIcon: XDe,
"data-follow-manage": "",
- href: LZ(),
+ href: IZ(),
children: "管理关注"
}), e]
})]
});
}
-function tOe({ busy: e, error: t, load: n }) {
+function rOe({ 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)(FZ, { className: "size-(--icon-inline)" }), "加载更多"]
- }), t ? /* @__PURE__ */ (0, I.jsx)(IG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(PZ, { className: "size-(--icon-inline)" }), "加载更多"]
+ }), t ? /* @__PURE__ */ (0, I.jsx)(FG, {
message: t,
onRetry: n
}) : null] });
}
-function nOe(e, t) {
+function iOe(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
@@ -64609,12 +64612,12 @@ function nOe(e, t) {
olderBusy: c === "older" || f && o
};
}
-function rOe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function aOe({ 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) => pG(e.authorSources.get(t) || [], n);
+ let o = (t) => fG(e.authorSources.get(t) || [], n);
return e.authorOrder.length ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-authors-bar": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
@@ -64622,14 +64625,14 @@ function rOe({ 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 = mG(a), c = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
+ let a = e.authorSources.get(n) || [], s = pG(a), c = /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-ring": "",
- dangerouslySetInnerHTML: { __html: hG(a, o(n)) }
+ dangerouslySetInnerHTML: { __html: mG(a, o(n)) }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-name": "",
children: o(n)
})] });
- return s ? /* @__PURE__ */ (0, I.jsx)(EZ, {
+ return s ? /* @__PURE__ */ (0, I.jsx)(TZ, {
name: s,
actions: r.actions,
"data-follow-author": n,
@@ -64646,7 +64649,7 @@ function rOe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
})
}) : null;
}
-function iOe({ rows: e, pressed: t, props: n, onPick: r }) {
+function oOe({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -64667,13 +64670,13 @@ function iOe({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function aOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
- let { helpers: o, actions: s } = i, c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = (0, F.useRef)(null), d = (0, F.useRef)(null), f = (0, F.useRef)(null), p = (0, F.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = vL(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = vL(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);
+function sOe({ 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 = _L(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = _L(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)(pL, {
+ return /* @__PURE__ */ (0, I.jsx)(fL, {
label: "筛选与排序",
topLabel: m ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -64725,7 +64728,7 @@ function aOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: R(i) }
}, e);
})
- }), /* @__PURE__ */ (0, I.jsx)(PZ, {})] }) : null, /* @__PURE__ */ (0, I.jsxs)("div", {
+ }), /* @__PURE__ */ (0, I.jsx)(NZ, {})] }) : null, /* @__PURE__ */ (0, I.jsxs)("div", {
ref: f,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -64745,7 +64748,7 @@ function aOe({ 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)(PZ, {}) : null]
+ }, e)), v ? /* @__PURE__ */ (0, I.jsx)(NZ, {}) : null]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: p,
"data-entity-tags": "",
@@ -64758,10 +64761,10 @@ function aOe({ 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: dG(t, n) }
+ dangerouslySetInnerHTML: { __html: uG(t, n) }
}, t)),
- _.length && e.tagRows.length ? /* @__PURE__ */ (0, I.jsx)(PZ, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(mL, {
+ _.length && e.tagRows.length ? /* @__PURE__ */ (0, I.jsx)(NZ, {}) : null,
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, I.jsxs)(pL, {
"data-follow-tag": n,
"data-entity-press": "",
"data-tag-cat": `r34-${Da(e.groups, n)}`,
@@ -64779,23 +64782,23 @@ function aOe({ 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)(oL, {
+ children: /* @__PURE__ */ (0, I.jsx)(aL, {
text: `${n.toLocaleString()} 项更新 · 显示 ${e.visible.length.toLocaleString()}`,
busy: r
})
}),
- /* @__PURE__ */ (0, I.jsx)(EV, {
+ /* @__PURE__ */ (0, I.jsx)(TV, {
currentHref: () => location.pathname + location.search,
kind: "creator"
}),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(AG, { onPress: s.shuffle }),
- y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(kG, {
+ /* @__PURE__ */ (0, I.jsx)(kG, { onPress: s.shuffle }),
+ y ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(OG, {
label: "图片布局",
value: i.photoLayout,
- options: QDe,
+ options: eOe,
onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, I.jsxs)("button", {
type: "button",
@@ -64825,9 +64828,9 @@ function aOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
let n = Sa(e, t.sort, t.dir);
n && a(n);
},
- children: [n, r ? /* @__PURE__ */ (0, I.jsx)(oG, {
- a: XDe,
- b: ZDe,
+ children: [n, r ? /* @__PURE__ */ (0, I.jsx)(aG, {
+ a: QDe,
+ b: $De,
state: t.dir === "asc" ? "a" : "b",
className: "size-(--icon-inline)"
}) : null]
@@ -64838,7 +64841,7 @@ function aOe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
] })
});
}
-function oOe({ conditions: e, onDrop: t, onClear: n }) {
+function cOe({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -64863,21 +64866,21 @@ function oOe({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function sOe({ count: e }) {
+function lOe({ 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(LZ())}" 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(IZ())}" data-follow-manage>管理关注</a>看原因。</span></div>` }
});
}
-var LZ = () => NZ(window.location.search);
-function cOe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a, checkAction: o }) {
+var IZ = () => MZ(window.location.search);
+function uOe({ 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)(LG, {
+ children: /* @__PURE__ */ (0, I.jsx)(IG, {
pending: e,
skeletonHtml: () => c.listSkeletonHtml(s.media),
- children: e ? null : /* @__PURE__ */ (0, I.jsx)(lOe, {
+ children: e ? null : /* @__PURE__ */ (0, I.jsx)(dOe, {
facets: t,
data: n,
context: r,
@@ -64889,29 +64892,29 @@ function cOe({ pending: e, facets: t, data: n, context: r, props: i, retryKey: a
})
});
}
-function lOe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a, checkAction: o }) {
- let { view: s, actions: c } = r, l = zZ(r), u = i ? {
+function dOe({ 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 ? {
"data-size": r.photoSize,
"data-layout": r.photoLayout,
"data-images-only": String(r.imagesOnly)
- } : {}, d = qDe(i && r.photoLayout === "masonry", `${r.photoSize}:${e.visible.map((e) => e.primary.id).join(",")}`), f;
+ } : {}, d = YDe(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)(OZ, {
+ return /* @__PURE__ */ (0, I.jsx)(DZ, {
group: t,
authorSources: o,
media: s.media,
retryKey: a,
context: n,
- selected: r.selected.has(RZ(t, s)),
+ selected: r.selected.has(LZ(t, s)),
selectMode: r.selectMode,
- busy: l.busy.get(RZ(t, s)) || "",
- failure: l.failures.get(RZ(t, s)) || "",
+ busy: l.busy.get(LZ(t, s)) || "",
+ failure: l.failures.get(LZ(t, s)) || "",
actions: c,
onStatus: l.status,
onSave: l.save
}, `${u}:${s.media}`);
- }) : /* @__PURE__ */ (0, I.jsx)(uOe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(fOe, {
data: t,
filtered: !!(s.status || e.author || e.provider || s.work || s.tags.length || s.durMin || s.durMax),
checkAction: o,
@@ -64934,22 +64937,22 @@ function lOe({ facets: e, data: t, context: n, props: r, images: i, retryKey: a,
children: f
});
}
-function RZ(e, t) {
+function LZ(e, t) {
return ga(e, t.media).id;
}
-function uOe({ data: e, filtered: t, clear: n, checkAction: r }) {
+function fOe({ 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)(lV, {
- icon: dV(i ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, I.jsx)(cV, {
+ icon: uV(i ? "search-x" : "rss"),
title: i ? "当前筛选下没有更新" : a ? "还没有更新" : "还没有关注任何来源",
actions: i ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: n,
children: "清除筛选"
- }) : a ? r : /* @__PURE__ */ (0, I.jsx)(bL, {
+ }) : a ? r : /* @__PURE__ */ (0, I.jsx)(yL, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -64958,12 +64961,12 @@ function uOe({ data: e, filtered: t, clear: n, checkAction: r }) {
})
});
}
-var dOe = {
+var pOe = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
-function zZ(e) {
+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 = 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;
@@ -64986,7 +64989,7 @@ function zZ(e) {
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), d(), r.toast(dOe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ u(t, n), d(), r.toast(pOe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
await V(Mr, {
item: t,
to: i
@@ -65031,9 +65034,9 @@ function zZ(e) {
};
}
// src/react/entity-body/entity-online.tsx
-function fOe(e) {
+function mOe(e) {
let { result: t, data: n, media: r, helpers: i } = e, a = t.isPending || t.isPlaceholderData;
- return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(IG, {
+ return !n && t.isError ? /* @__PURE__ */ (0, I.jsx)(FG, {
message: xn(t.error),
onRetry: () => {
t.refetch();
@@ -65041,13 +65044,13 @@ function fOe(e) {
}) : /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list-body": "",
"data-entity-online": "",
- children: /* @__PURE__ */ (0, I.jsxs)(LG, {
+ children: /* @__PURE__ */ (0, I.jsxs)(IG, {
pending: a,
skeletonHtml: () => i.listSkeletonHtml(r),
- children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(pOe, {
+ children: [a || !n ? null : /* @__PURE__ */ (0, I.jsx)(hOe, {
...e,
data: n
- }), !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(iY, {
+ }), !a && n?.has_more ? /* @__PURE__ */ (0, I.jsx)(rY, {
entity: !0,
enabled: () => e.canLoadMore?.() !== !1,
load: async () => {
@@ -65057,8 +65060,8 @@ function fOe(e) {
})
});
}
-function pOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
- let u = zZ({
+function hOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a, photoLayout: o, imagesOnly: s, actions: c, clearFilters: l }) {
+ let u = RZ({
view: e,
revision: 0,
actions: c
@@ -65076,7 +65079,7 @@ function pOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
"data-images-only": String(s)
} : {}, m = r.length ? r.map((e) => {
let n = ga(e, t).id, r = d.byId.get(e.primary?.source_id)?.author_key;
- return /* @__PURE__ */ (0, I.jsx)(OZ, {
+ return /* @__PURE__ */ (0, I.jsx)(DZ, {
group: e,
authorSources: r && d.byAuthor.get(r) || [],
media: t,
@@ -65089,11 +65092,11 @@ function pOe({ 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)(mOe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(gOe, {
searched: !!(n.groups || []).length || !!(e.status || e.provider || e.tags.length || e.durMin || e.durMax),
clear: l,
actions: c,
- sources: HDe(n.sources || [], e.author)
+ sources: WDe(n.sources || [], e.author)
});
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-list": "",
@@ -65102,21 +65105,21 @@ function pOe({ view: e, media: t, data: n, visible: r, context: i, photoSize: a,
children: m
});
}
-function mOe({ searched: e, clear: t, actions: n, sources: r }) {
+function gOe({ searched: e, clear: t, actions: n, sources: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-empty": "",
className: "contents",
- children: /* @__PURE__ */ (0, I.jsx)(lV, {
- icon: dV(e ? "search-x" : "rss"),
+ children: /* @__PURE__ */ (0, I.jsx)(cV, {
+ icon: uV(e ? "search-x" : "rss"),
title: e ? "当前筛选下没有更新" : "还没有抓到更新",
actions: e ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: t,
children: "清除筛选"
- }) : r.length ? /* @__PURE__ */ (0, I.jsx)(UDe, {
+ }) : r.length ? /* @__PURE__ */ (0, I.jsx)(GDe, {
sources: r,
report: n.checkReport
- }) : /* @__PURE__ */ (0, I.jsx)(bL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(yL, {
size: "small",
href: "/subscriptions?tab=add",
children: "添加关注"
@@ -65125,7 +65128,7 @@ function mOe({ searched: e, clear: t, actions: n, sources: r }) {
})
});
}
-function BZ(e) {
+function zZ(e) {
return {
x0: 0,
y0: 0,
@@ -65133,7 +65136,7 @@ function BZ(e) {
y1: e.height
};
}
-function VZ(e) {
+function BZ(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -65141,40 +65144,40 @@ function VZ(e) {
y1: Math.round(e.y1)
};
}
-function HZ(e) {
+function VZ(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function UZ(e, t) {
- if (!HZ(e)) return {
+function HZ(e, t) {
+ if (!VZ(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return BZ(e);
+ if (t == null || !(t > 0)) return zZ(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 VZ({
+ return BZ({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function hOe(e, t) {
- if (!HZ(e) || !(t > 0)) return BZ(e);
+function _Oe(e, t) {
+ if (!VZ(e) || !(t > 0)) return zZ(e);
let n = Math.min(e.width, e.height * t);
- return VZ({
+ return BZ({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function gOe(e, t, n) {
- if (!HZ(t) || !(n > 0)) return BZ(t);
- let r = WZ(e, t), i = UZ({
+function vOe(e, t, n) {
+ if (!VZ(t) || !(n > 0)) return zZ(t);
+ let r = UZ(e, t), i = HZ({
width: r.x1 - r.x0,
height: r.y1 - r.y0
}, n);
@@ -65185,8 +65188,8 @@ function gOe(e, t, n) {
y1: r.y0 + i.y1
};
}
-function WZ(e, t, n = null, r = "width") {
- if (!HZ(t)) return {
+function UZ(e, t, n = null, r = "width") {
+ if (!VZ(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -65195,43 +65198,43 @@ function WZ(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 VZ({
+ return BZ({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function GZ(e, t, n, r) {
+function WZ(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 VZ({
+ return BZ({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function KZ(e, t, n, r = null) {
- if (!HZ(n) || !(t > 0)) return e;
+function GZ(e, t, n, r = null) {
+ if (!VZ(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 WZ({
+ return UZ({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function _Oe(e, t, n, r, i = null) {
+function yOe(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 WZ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return UZ(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function vOe(e, t) {
- return HZ(t) ? {
+function bOe(e, t) {
+ return VZ(t) ? {
left: e.x0 / t.width * 100,
top: e.y0 / t.height * 100,
width: (e.x1 - e.x0) / t.width * 100,
@@ -65243,8 +65246,8 @@ function vOe(e, t) {
height: 0
};
}
-function yOe(e, t) {
- if (!HZ(t)) return {
+function xOe(e, t) {
+ if (!VZ(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -65254,7 +65257,7 @@ function yOe(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function bOe(e, t) {
+function SOe(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}%`,
@@ -65263,15 +65266,15 @@ function bOe(e, t) {
height: `${t.height / r * 100}%`
};
}
-function qZ(e, t, n) {
+function KZ(e, t, n) {
return t > 0 ? e * n / t : 0;
}
-function xOe(e, t) {
+function COe(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 SOe = .02, JZ = 1.08;
-function YZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+var wOe = .02, qZ = 1.08;
+function JZ({ 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);
@@ -65290,8 +65293,8 @@ function YZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: qZ(e, n.clientWidth, r.width),
- dy: qZ(t, n.clientHeight, r.height)
+ dx: KZ(e, n.clientWidth, r.width),
+ dy: KZ(t, n.clientHeight, r.height)
};
}, [r]);
function m(e) {
@@ -65308,22 +65311,22 @@ function YZ({ 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(GZ(n.box, o.dx, o.dy, r)) : i(_Oe(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(WZ(n.box, o.dx, o.dy, r)) : i(yOe(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) * SOe), o = {
+ let a = Math.max(1, (n.x1 - n.x0) * wOe), o = {
ArrowLeft: [-a, 0],
ArrowRight: [a, 0],
ArrowUp: [0, -a],
ArrowDown: [0, a]
};
- o[e.key] ? (e.preventDefault(), i(GZ(n, o[e.key][0], o[e.key][1], r))) : (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(KZ(n, e.key === "-" ? 1 / JZ : JZ, r, t)));
+ 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)));
}
- let v = n && r ? vOe(WZ(n, r, t), r) : null, y = v ? xOe(v, d) : !1, b = v ? {
+ let v = n && r ? bOe(UZ(n, r, t), r) : null, y = v ? COe(v, d) : !1, b = v ? {
"--crop-l": `${v.left}%`,
"--crop-t": `${v.top}%`,
"--crop-w": `${v.width}%`,
@@ -65342,7 +65345,7 @@ function YZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- HZ({
+ VZ({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -65381,7 +65384,7 @@ function YZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: g,
onKeyDown: _,
onWheel: (e) => {
- n && r && i(KZ(n, e.deltaY > 0 ? JZ : 1 / JZ, r, t));
+ n && r && i(GZ(n, e.deltaY > 0 ? qZ : 1 / qZ, 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", {
@@ -65403,13 +65406,13 @@ function YZ({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
});
}
// src/react/avatar-picker/avatar-picker.ts
-var COe = "/api/avatar-choices", XZ = "/api/avatar-pick", wOe = "/api/avatar-code-cover", ZZ = "/api/avatar-frame", TOe = "/avatar-choice", QZ = (e, t) => [
+var TOe = "/api/avatar-choices", YZ = "/api/avatar-pick", EOe = "/api/avatar-code-cover", XZ = "/api/avatar-frame", DOe = "/avatar-choice", ZZ = (e, t) => [
"avatar-choices",
e,
t
-], $Z = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, eQ = (e, t, n, r = "") => `${TOe}${$Z(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), tQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", EOe = (e, t, n) => B(COe + $Z(e, t), n), DOe = (e) => V(wOe, { code: e });
-async function OOe(e, t, n) {
- let r = await V(ZZ, {
+], QZ = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, $Z = (e, t, n, r = "") => `${DOe}${QZ(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), eQ = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", OOe = (e, t, n) => B(TOe + QZ(e, t), n), kOe = (e) => V(EOe, { code: e });
+async function AOe(e, t, n) {
+ let r = await V(XZ, {
kind: e,
id: t,
ref: n.ref
@@ -65422,12 +65425,12 @@ async function OOe(e, t, n) {
bases: r.bases
};
}
-var kOe = (e, t, n) => V(ZZ, {
+var jOe = (e, t, n) => V(XZ, {
kind: e,
id: t,
url: n
-}), AOe = (e, t, n) => nQ(`${ZZ}${$Z(e, t)}&name=${encodeURIComponent(n.name)}`, n);
-async function nQ(e, t) {
+}), MOe = (e, t, n) => tQ(`${XZ}${QZ(e, t)}&name=${encodeURIComponent(n.name)}`, n);
+async function tQ(e, t) {
let n = await fetch(e, {
method: "POST",
credentials: "same-origin",
@@ -65436,17 +65439,17 @@ async function nQ(e, t) {
if (n.ok) return r;
throw new sr(r?.error || `请求失败(${n.status})`, n.status, r);
}
-function rQ(e, t, n) {
+function nQ(e, t, n) {
let r = t.width === e.width && t.height === e.height;
- return e.focus && r ? gOe(e.focus, t, n) : UZ(t, n);
+ return e.focus && r ? vOe(e.focus, t, n) : HZ(t, n);
}
-var jOe = (e) => e.crop && HZ({
+var NOe = (e) => e.crop && VZ({
width: e.width,
height: e.height
});
-async function MOe(e, t, n) {
+async function POe(e, t, n) {
if (!("file" in n)) {
- await V(XZ, {
+ await V(YZ, {
kind: e,
id: t,
...n
@@ -65459,19 +65462,19 @@ async function MOe(e, t, n) {
i.x1,
i.y1
].join(",")}` : "";
- await nQ(`${XZ}${$Z(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
+ await tQ(`${YZ}${QZ(e, t)}&name=${encodeURIComponent(r.name)}${a}`, r);
}
-var iQ = 2;
-function NOe(e, t) {
+var rQ = 2;
+function FOe(e, t) {
if (!t) return e;
let n = t.matched_names.filter((t) => t !== e);
- return n.length ? `${e}:图库里按${`「${n.slice(0, iQ).join("」「")}」`}${n.length > iQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
+ return n.length ? `${e}:图库里按${`「${n.slice(0, rQ).join("」「")}」`}${n.length > rQ ? `等 ${n.length.toLocaleString()} 个名字` : ""}找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:还没有备选图片,可输入番号、图片地址或从本机选择。`;
}
-var POe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
-function FOe(e) {
- return e?.index_refreshing ? "正在更新图库索引,候选图片会自动显示。" : e?.index_error && e.index_stale ? "图库索引未取得:" + e.index_error : !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${POe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+var IOe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;
+function LOe(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 ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${IOe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
}
-var aQ = (e) => e.cast > 1, IOe = (e) => aQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, LOe = {
+var iQ = (e) => e.cast > 1, ROe = (e) => iQ(e) ? `${e.label}:${e.cast.toLocaleString()} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, zOe = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
@@ -65481,7 +65484,7 @@ var aQ = (e) => e.cast > 1, IOe = (e) => aQ(e) ? `${e.label}:${e.cast.toLocale
social: "社媒头像",
online: "在线作品"
};
-function ROe(e) {
+function BOe(e) {
if (e.startsWith("follow:")) {
let t = e.split(":")[2];
return t === "cover" ? "作品封面" : `内容图片 ${Number(t.replace("image", "") || 0) + 1}`;
@@ -65492,19 +65495,19 @@ function ROe(e) {
let n = Number(t.replace("cell", ""));
return Number.isFinite(n) ? `第 ${n + 1} 格` : t;
}
-var zOe = (e) => `${LOe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (aQ(e) ? ` · ${e.cast.toLocaleString()} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "") + (e.source === "asset" && e.detail && e.detail !== e.label ? ` · ${e.detail}` : ""), BOe = 8, VOe = 3 / 4;
-async function HOe(e, t, n) {
+var VOe = (e) => `${zOe[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}` : ""), HOe = 8, UOe = 3 / 4;
+async function WOe(e, t, n) {
switch (n.via) {
- case "choice": return { choice: await OOe(e, t, n.choice) };
- case "code": return { choice: await DOe(n.code) };
- case "url": return { choice: await kOe(e, t, n.url) };
+ case "choice": return { choice: await AOe(e, t, n.choice) };
+ case "code": return { choice: await kOe(n.code) };
+ case "url": return { choice: await jOe(e, t, n.url) };
case "file": return {
- choice: await AOe(e, t, n.file),
+ choice: await MOe(e, t, n.file),
file: n.file
};
}
}
-function UOe({ kind: e, entityId: t, name: n, onPicked: r }) {
+function GOe({ 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",
@@ -65514,17 +65517,17 @@ function UOe({ 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)(sge, {
+ children: /* @__PURE__ */ (0, I.jsx)(cge, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, I.jsx)(oV, {
+ }), /* @__PURE__ */ (0, I.jsx)(aV, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, I.jsx)(WOe, {
+ children: /* @__PURE__ */ (0, I.jsx)(KOe, {
kind: e,
entityId: t,
name: n,
@@ -65533,24 +65536,24 @@ function UOe({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function WOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, F.useRef)(null), o = RV(), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), [d, f] = (0, F.useState)(null), p = QZ(e, t), m = (0, F.useRef)(!1), h = Ft({
+function KOe({ 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({
queryKey: p,
- queryFn: ({ signal: n }) => EOe(e, t, n),
+ queryFn: ({ signal: n }) => OOe(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: QZ(e, t) });
+ m.current && H.removeQueries({ queryKey: ZZ(e, t) });
}, [e, t]);
let g = It({
- mutationFn: (n) => MOe(e, t, n),
+ mutationFn: (n) => POe(e, t, n),
onSuccess: () => {
m.current = !0, i(), r();
}
}), _ = It({
- mutationFn: (n) => HOe(e, t, n),
+ mutationFn: (n) => WOe(e, t, n),
onMutate: () => {
g.reset();
},
@@ -65571,39 +65574,39 @@ function WOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
crop: e.crop
} : { file: n }) : g.mutate(e ?? { ref: t.ref });
}
- let x = h.data, S = x?.choices ?? [], C = (g.error ? lr(g.error) : "") || (!d && _.error ? lr(_.error) : "") || (h.error ? lr(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : FOe(x), E = !!C && !!h.error && C === lr(h.error), D = h.isPending || S.length > 0;
+ let x = h.data, S = x?.choices ?? [], C = (g.error ? lr(g.error) : "") || (!d && _.error ? lr(_.error) : "") || (h.error ? lr(h.error) : ""), w = g.isPending || _.isPending, T = d ? "" : LOe(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)(sV, { children: /* @__PURE__ */ (0, I.jsx)(XB, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, I.jsx)(oV, { children: /* @__PURE__ */ (0, I.jsx)(YB, { 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)(HL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(VL, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: d ? "框出头像那一块" : "更换头像"
- }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(WU, {
+ }), !d && S.length ? /* @__PURE__ */ (0, I.jsxs)(UU, {
color: "soft",
children: [S.length.toLocaleString(), " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: d ? IOe(d.choice) : NOe(n, x)
+ children: d ? ROe(d.choice) : FOe(n, x)
}),
- T ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ T ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
children: T
}) : null,
- C ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ C ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
action: E ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...pV(h.isFetching),
+ ...fV(h.isFetching),
onClick: () => {
h.isFetching || h.refetch();
},
@@ -65613,14 +65616,14 @@ function WOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(cL, {
- icon: CB,
+ /* @__PURE__ */ (0, I.jsx)(sL, {
+ icon: SB,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), d ? /* @__PURE__ */ (0, I.jsx)(KOe, {
+ }), d ? /* @__PURE__ */ (0, I.jsx)(JOe, {
kind: e,
entityId: t,
choice: d.choice,
@@ -65640,7 +65643,7 @@ function WOe({ 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: BOe }, (e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: h.isPending ? Array.from({ length: HOe }, (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",
@@ -65653,8 +65656,8 @@ function WOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: zOe(n),
- ...pV(w),
+ title: VOe(n),
+ ...fV(w),
onClick: () => {
w || (n.crop ? (g.reset(), _.reset(), f({ choice: n })) : _.mutate({
via: "choice",
@@ -65663,8 +65666,8 @@ function WOe({ 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)(GOe, {
- src: eQ(e, t, n.ref, tQ(n, n.ref)),
+ /* @__PURE__ */ (0, I.jsx)(qOe, {
+ src: $Z(e, t, n.ref, eQ(n, n.ref)),
choice: n
}),
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -65673,15 +65676,15 @@ function WOe({ 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)(WU, {
+ children: /* @__PURE__ */ (0, I.jsx)(UU, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- aQ(n) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ iQ(n) ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, I.jsxs)(WU, {
+ children: /* @__PURE__ */ (0, I.jsxs)(UU, {
variant: "caption",
color: "gray",
children: [n.cast.toLocaleString(), " 人"]
@@ -65703,7 +65706,7 @@ function WOe({ 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)(aV, {
+ children: /* @__PURE__ */ (0, I.jsx)(iV, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -65713,7 +65716,7 @@ function WOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
type: "submit",
variant: "secondary",
disabled: !l.trim(),
- ...pV(v("code")),
+ ...fV(v("code")),
children: "取封面来框"
})]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -65722,7 +65725,7 @@ function WOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: () => a.current?.click(),
- ...pV(v("file")),
+ ...fV(v("file")),
children: "从本机选图片"
}),
/* @__PURE__ */ (0, I.jsx)("input", {
@@ -65742,7 +65745,7 @@ function WOe({ 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)(aV, {
+ children: /* @__PURE__ */ (0, I.jsx)(iV, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -65752,7 +65755,7 @@ function WOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
disabled: !s.trim(),
- ...pV(v("url")),
+ ...fV(v("url")),
onClick: () => {
w || _.mutate({
via: "url",
@@ -65766,7 +65769,7 @@ function WOe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function GOe({ src: e, choice: t }) {
+function qOe({ 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);
@@ -65774,7 +65777,7 @@ function GOe({ src: e, choice: t }) {
let s = {
width: t.width,
height: t.height
- }, c = jOe(t) ? bOe(rQ(t, s, VOe), s) : null, l = r || a ? !0 : void 0;
+ }, c = NOe(t) ? SOe(nQ(t, s, UOe), 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",
@@ -65800,23 +65803,23 @@ function GOe({ src: e, choice: t }) {
})]
});
}
-function KOe({ 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 = tQ(n, s), m = eQ(e, t, s, p), h = RV();
+function JOe({ 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 g(e) {
c(e), u(null), f(null);
}
- let _ = d && l ? yOe(d, l) : null;
+ let _ = d && l ? xOe(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)(YZ, {
+ children: [m ? /* @__PURE__ */ (0, I.jsx)(JZ, {
src: m,
aspect: 1,
box: d,
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), HZ(e) && f(s === n.ref ? rQ(n, e, 1) : UZ(e, 1));
+ u(e), VZ(e) && f(s === n.ref ? nQ(n, e, 1) : HZ(e, 1));
},
onBox: f
}) : null, o.length > 1 ? /* @__PURE__ */ (0, I.jsx)("div", {
@@ -65830,7 +65833,7 @@ function KOe({ 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: ROe(e)
+ children: BOe(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -65850,12 +65853,12 @@ function KOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
onClick: i,
- ...pV(r),
+ ...fV(r),
children: "返回备选图片"
}),
n.crop ? null : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...pV(r),
+ ...fV(r),
onClick: () => {
r || a(null);
},
@@ -65863,7 +65866,7 @@ function KOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}),
/* @__PURE__ */ (0, I.jsx)(J, {
disabled: !d || !l,
- ...pV(r),
+ ...fV(r),
onClick: () => {
d && !r && a({
ref: s,
@@ -65878,17 +65881,17 @@ function KOe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
})] });
}
// src/react/components/source-picture.tsx
-var oQ = (e, t, n = 0) => `/jav-image?code=${encodeURIComponent(e)}&image=${encodeURIComponent(t)}${n ? `&attempt=${n}` : ""}`;
-function sQ({ title: e, detail: t, busy: n, onRetry: r }) {
+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 }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-jav-picture-wait": "",
- children: /* @__PURE__ */ (0, I.jsx)(lV, {
+ children: /* @__PURE__ */ (0, I.jsx)(cV, {
size: "compact",
- icon: FB,
+ icon: PB,
title: e,
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
- ...pV(!!n),
+ ...fV(!!n),
onClick: r,
children: "立即重试"
}),
@@ -65896,9 +65899,9 @@ function sQ({ title: e, detail: t, busy: n, onRetry: r }) {
})
});
}
-function qOe({ code: e }) {
- let t = pH(), [n, r] = (0, F.useState)("");
- return /* @__PURE__ */ (0, I.jsx)(sQ, {
+function YOe({ code: e }) {
+ let t = fH(), [n, r] = (0, F.useState)("");
+ return /* @__PURE__ */ (0, I.jsx)(oQ, {
title: "封面未取得",
detail: t.error || n,
busy: !!t.busy,
@@ -65913,8 +65916,8 @@ function qOe({ code: e }) {
}
});
}
-function cQ({ 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 ? oQ(e.code, t, r) : u ? lo(e, !0) : e.cover_url || "";
+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 ? lo(e, !0) : e.cover_url || "";
if ((0, F.useLayoutEffect)(() => {
let e = l.current;
e?.complete && e.naturalWidth > 0 && o({
@@ -65931,8 +65934,8 @@ function cQ({ item: e, image: t, thumbnail: n = !1 }) {
src: p,
alt: f
})
- }) : 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)(sQ, {
+ }) : n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "封面未取得" }) : /* @__PURE__ */ (0, I.jsx)(YOe, { code: e.code });
+ if (s === p) return n ? /* @__PURE__ */ (0, I.jsx)("span", { children: "预览未取得" }) : /* @__PURE__ */ (0, I.jsx)(oQ, {
title: "图片未取得",
onRetry: () => i((e) => e + 1)
});
@@ -65981,8 +65984,8 @@ function cQ({ item: e, image: t, thumbnail: n = !1 }) {
] });
}
// src/react/components/source-avatar.tsx
-function lQ({ code: e, person: t, detail: n = !1 }) {
- aL();
+function cQ({ code: e, person: t, detail: n = !1 }) {
+ iL();
let r = (0, F.useRef)(null), [i, a] = (0, F.useState)(n || typeof IntersectionObserver > "u");
(0, F.useEffect)(() => {
if (!r.current || i) return;
@@ -65996,7 +65999,7 @@ function lQ({ 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: oQ(e, `actor:${t.source_actor_id}`),
+ src: aQ(e, `actor:${t.source_actor_id}`),
alt: "",
"data-drop": "self"
}) : null] });
@@ -66006,8 +66009,8 @@ function lQ({ code: e, person: t, detail: n = !1 }) {
}) : o;
}
// src/react/feed-new/feed-new-row.tsx
-function uQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
- let a = (0, F.useContext)(JW), o = (0, F.useRef)(null), [s, c] = (0, F.useState)([]), l = e?.items.length ? e.html : "";
+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 : "";
(0, F.useLayoutEffect)(() => {
t.removeAttribute("aria-busy"), t.hidden = !l, e && i?.(!!l);
}, [
@@ -66039,7 +66042,7 @@ function uQ({ 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)(lQ, {
+ }), s.map((e, t) => (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(cQ, {
code: e.dataset.code,
person: {
name: e.dataset.name,
@@ -66048,7 +66051,7 @@ function uQ({ feedNew: e, host: t, wire: n, act: r, settled: i }) {
}), e, `${l.length}:${t}`))] }) : null;
}
// src/react/entity-hero/glyph.tsx
-function dQ({ name: e }) {
+function uQ({ name: e }) {
let { wide: t, viewBox: n } = Cn(e);
return /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: n,
@@ -66058,20 +66061,20 @@ function dQ({ name: e }) {
});
}
// src/react/entity-hero/hero-pop.tsx
-function fQ(e, t) {
+function dQ(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 pQ = (e) => !!e?.isConnected && e.matches(":popover-open");
-function mQ(e, t, n, r) {
+var fQ = (e) => !!e?.isConnected && e.matches(":popover-open");
+function pQ(e, t, n, r) {
let i = (0, F.useRef)(r);
i.current = r, (0, F.useEffect)(() => {
if (!e) return;
let r = () => {
- t.current && pQ(n.current) ? fQ(t.current, n.current) : i.current();
+ t.current && fQ(n.current) ? dQ(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -66085,17 +66088,17 @@ function mQ(e, t, n, r) {
n
]);
}
-function hQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function mQ({ 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, pQ(s.current) && s.current.hidePopover(), l(!1);
+ clearTimeout(d.current), u.current = !1, fQ(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), s.current && o.current && !pQ(s.current) && (s.current.showPopover(), fQ(o.current, s.current), l(!0));
+ clearTimeout(d.current), s.current && o.current && !fQ(s.current) && (s.current.showPopover(), dQ(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 mQ(c, o, s, f), (0, F.useEffect)(() => {
+ return pQ(c, o, s, f), (0, F.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -66121,7 +66124,7 @@ function hQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
u.current ? f() : (p(), u.current = !0);
},
onKeyDown: (e) => {
- e.key === "Escape" && pQ(s.current) && (e.preventDefault(), f());
+ e.key === "Escape" && fQ(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -66139,16 +66142,16 @@ function hQ({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function JOe({ following: e, busy: t, onToggle: n, tip: r }) {
+function XOe({ 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 = () => {
- pQ(o.current) && o.current.hidePopover(), c(!1);
+ fQ(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- !l.current && o.current && i.current && !pQ(o.current) && (o.current.showPopover(), fQ(i.current, o.current), c(!0));
+ !l.current && o.current && i.current && !fQ(o.current) && (o.current.showPopover(), dQ(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return mQ(s, i, o, () => c(!1)), (0, F.useEffect)(() => {
- i.current && pQ(o.current) && fQ(i.current, o.current);
+ return pQ(s, i, o, () => c(!1)), (0, F.useEffect)(() => {
+ i.current && fQ(o.current) && dQ(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, I.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -66157,7 +66160,7 @@ function JOe({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, I.jsx)(dQ, { name: "rss" }),
+ /* @__PURE__ */ (0, I.jsx)(uQ, { name: "rss" }),
/* @__PURE__ */ (0, I.jsx)("input", {
ref: a,
type: "checkbox",
@@ -66191,29 +66194,29 @@ function JOe({ following: e, busy: t, onToggle: n, tip: r }) {
});
}
// src/react/entity-hero/name-picker.tsx
-function YOe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function ZOe({ 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)(Ame, {
+ }, []), /* @__PURE__ */ (0, I.jsxs)(jme, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, I.jsx)(BL, {
+ children: [/* @__PURE__ */ (0, I.jsx)(zL, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, I.jsx)(dQ, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, I.jsx)(uz, {
+ children: /* @__PURE__ */ (0, I.jsx)(uQ, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, I.jsx)(lz, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: AV,
+ className: kV,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, I.jsxs)(Mme, {
+ children: /* @__PURE__ */ (0, I.jsxs)(Nme, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(vz, {
+ /* @__PURE__ */ (0, I.jsx)(_z, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -66221,34 +66224,34 @@ function YOe({ 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)(bz, {
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsxs)(yz, {
id: e.value,
textValue: e.label,
"data-namepick-name": e.value,
- children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.label })]
+ children: [/* @__PURE__ */ (0, I.jsx)(uQ, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.label })]
}, e.value))
}),
- /* @__PURE__ */ (0, I.jsx)(pme, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, I.jsx)(vz, { children: /* @__PURE__ */ (0, I.jsxs)(bz, {
+ /* @__PURE__ */ (0, I.jsx)(mme, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, I.jsx)(_z, { children: /* @__PURE__ */ (0, I.jsxs)(yz, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "plus" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, I.jsx)(uQ, { name: "plus" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var XOe = (e) => e === "studio" || e === "agency", gQ = (e) => e === "performer" || e === "creator", ZOe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
-function QOe(e, t = "zh-CN") {
+var QOe = (e) => e === "studio" || e === "agency", hQ = (e) => e === "performer" || e === "creator", $Oe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";
+function eke(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 _Q(e) {
+function gQ(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0,
@@ -66260,13 +66263,13 @@ function _Q(e) {
linked: !1
} : null;
}
-function vQ(e, t) {
+function _Q(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 yQ = (e) => ({ site: zn(e) });
-function $Oe(e, t) {
- let n = _Q(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+var vQ = (e) => ({ site: zn(e) });
+function tke(e, t) {
+ let n = gQ(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -66276,7 +66279,7 @@ function $Oe(e, t) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${vQ(e, n)} · ${t}`
+ title: `${_Q(e, n)} · ${t}`
};
}
let r = e.url || "";
@@ -66284,11 +66287,11 @@ function $Oe(e, t) {
type: "private",
label: e.label || e.hostname || "已记录"
};
- if (gQ(t) && e.link_kind !== "social") return {
+ if (hQ(t) && e.link_kind !== "social") return {
type: "icon",
url: r,
- title: vQ(e, n),
- mark: yQ(e)
+ title: _Q(e, n),
+ mark: vQ(e)
};
if (e.link_kind === "social") {
let t = Hn(r);
@@ -66296,7 +66299,7 @@ function $Oe(e, t) {
type: "icon",
url: r,
title: e.label || "",
- mark: t ? { brand: t } : yQ(e)
+ mark: t ? { brand: t } : vQ(e)
};
}
return {
@@ -66304,12 +66307,12 @@ function $Oe(e, t) {
url: r,
title: e.label || "",
text: Kn(e, t, i),
- mark: yQ(e)
+ mark: vQ(e)
};
});
- return [...r, ...eke(a)];
+ return [...r, ...nke(a)];
}
-function eke(e) {
+function nke(e) {
let t = e.filter((e) => e.type === "private");
return t.length < 2 ? e : [...e.filter((e) => e.type !== "private"), {
type: "private",
@@ -66317,8 +66320,8 @@ function eke(e) {
sources: t.map((e) => e.label)
}];
}
-var bQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function tke(e) {
+var yQ = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function rke(e) {
return [
[
"legal_name",
@@ -66374,7 +66377,7 @@ function tke(e) {
}]
}] : []);
}
-function nke(e) {
+function ike(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -66431,14 +66434,14 @@ function nke(e) {
tags: e.tags
}), t;
}
-function xQ(e, t = 4) {
+function bQ(e, t = 4) {
let n = e.length > t + 1 ? t : e.length;
return {
shown: e.slice(0, n),
rest: e.length - n
};
}
-function rke(e) {
+function ake(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 ? {
@@ -66448,7 +66451,7 @@ function rke(e) {
} : null;
}
// src/react/entity-hero/entity-hero-page.tsx
-function ike(e) {
+function oke(e) {
return go({
id: e.id,
hasImage: e.has_image,
@@ -66459,9 +66462,9 @@ function ike(e) {
standIn: e.avatar_stand_in
});
}
-function ake({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
- aL();
- let s = nn(e, n.canonical_name, Number(n.id)), c = rn(e, n.canonical_name, Number(n.id)), l = gQ(e), u = XOe(e), d = l ? nke(n.profile) : u ? tke(n.company_profile) : [], f = $Oe(n, e), p = bQ(n), m = e === "agency" ? [] : n.related_performers || [], h = (0, F.useRef)(null), g = (0, F.useRef)(null);
+function ske({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {
+ iL();
+ let s = nn(e, n.canonical_name, Number(n.id)), c = rn(e, n.canonical_name, Number(n.id)), l = hQ(e), u = QOe(e), d = l ? ike(n.profile) : u ? rke(n.company_profile) : [], f = tke(n, e), p = yQ(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)(() => {
@@ -66474,7 +66477,7 @@ function ake({ 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)(oke, {
+ children: [/* @__PURE__ */ (0, I.jsx)(cke, {
kind: e,
name: s,
helpers: o,
@@ -66482,7 +66485,7 @@ function ake({ 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)(UOe, {
+ children: /* @__PURE__ */ (0, I.jsx)(GOe, {
kind: e,
entityId: Number(n.id),
name: s || t,
@@ -66497,17 +66500,17 @@ function ake({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
"data-entity-title": "",
children: [
/* @__PURE__ */ (0, I.jsx)("h2", {
- lang: VI(s),
+ lang: BI(s),
title: c || void 0,
children: s
}),
- e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(YOe, {
+ e === "tag" ? null : /* @__PURE__ */ (0, I.jsx)(ZOe, {
current: n.canonical_name,
- choices: QOe(n, Xt()),
+ choices: eke(n, Xt()),
onChoose: a.chooseName,
onAddAlias: a.addAlias
}),
- n.id ? /* @__PURE__ */ (0, I.jsx)(TV, { item: {
+ n.id ? /* @__PURE__ */ (0, I.jsx)(wV, { item: {
entity_id: Number(n.id),
kind: e,
name: n.canonical_name || t,
@@ -66521,7 +66524,7 @@ function ake({ 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)(ske, {
+ /* @__PURE__ */ (0, I.jsx)(lke, {
kind: e,
entity: n,
actions: a
@@ -66542,14 +66545,14 @@ function ake({ 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)(pke, { link: e }, t))
+ children: f.map((e, t) => /* @__PURE__ */ (0, I.jsx)(hke, { link: e }, t))
}) : null,
- p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(mke, {
+ p.length || n.feed ? /* @__PURE__ */ (0, I.jsx)(gke, {
entity: n,
actions: a,
helpers: o
}) : null,
- n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(uke, {
+ n.follow?.held.length ? /* @__PURE__ */ (0, I.jsx)(fke, {
follow: n.follow,
displayName: s,
actions: a
@@ -66558,11 +66561,11 @@ function ake({ 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)(dke, {
+ children: d.map((e) => /* @__PURE__ */ (0, I.jsx)(pke, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, I.jsx)(fke, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, I.jsx)(mke, { 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))
@@ -66581,7 +66584,7 @@ function ake({ 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>${ike(e)}` }
+ dangerouslySetInnerHTML: { __html: `<span>${z(er(nn("performer", e.k, e.id)))}</span>${oke(e)}` }
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-hero-costar-name": "",
children: nn("performer", e.k, e.id)
@@ -66589,14 +66592,14 @@ function ake({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,
}, e.k))
})
}) : null]
- }), i ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(uQ, {
+ }), i ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(lQ, {
feedNew: r,
host: i,
wire: o.wireFeedRow,
act: (e, t) => a.feedAction(e, t)
}), i) : null] });
}
-function oke({ kind: e, name: t, helpers: n, people: r, company: i }) {
+function cke({ 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]");
@@ -66610,8 +66613,8 @@ function oke({ kind: e, name: t, helpers: n, people: r, company: i }) {
dangerouslySetInnerHTML: { __html: o }
});
}
-function ske({ kind: e, entity: t, actions: n }) {
- let r = _Q(t), i = (e, t) => (r) => {
+function lke({ kind: e, entity: t, actions: n }) {
+ let r = gQ(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),
@@ -66620,44 +66623,44 @@ function ske({ 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 = rke(e);
+ let e = t.name_display?.groups[Xt()] ?? t.name_groups, r = ake(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- /* @__PURE__ */ (0, I.jsx)(SQ, { entity: t }),
+ /* @__PURE__ */ (0, I.jsx)(xQ, { entity: t }),
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "film" }), /* @__PURE__ */ (0, I.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, I.jsx)(uQ, { name: "film" }), /* @__PURE__ */ (0, I.jsx)("span", { children: o })]
}),
- t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(lke, {
+ t.follow?.key ? /* @__PURE__ */ (0, I.jsx)(dke, {
follow: t.follow,
actions: n
}) : null,
a ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, I.jsx)(uQ, { 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)(dQ, { name: "id-card" }),
+ /* @__PURE__ */ (0, I.jsx)(uQ, { name: "id-card" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-alias-names": "",
title: "别名",
children: r.names.map((e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
- lang: VI(e),
+ lang: BI(e),
children: e
}, t))
}),
- r.rest > 0 ? /* @__PURE__ */ (0, I.jsx)(hQ, {
+ r.rest > 0 ? /* @__PURE__ */ (0, I.jsx)(mQ, {
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)(CQ, {
+ children: /* @__PURE__ */ (0, I.jsx)("dl", { children: (e?.groups || []).map((e, t) => /* @__PURE__ */ (0, I.jsx)(SQ, {
label: e.label,
names: e.names
}, t)) })
@@ -66679,61 +66682,61 @@ function ske({ kind: e, entity: t, actions: n }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entity-alias": "meta",
children: [
- e === "creator" ? /* @__PURE__ */ (0, I.jsx)(SQ, { entity: t }) : null,
+ e === "creator" ? /* @__PURE__ */ (0, I.jsx)(xQ, { entity: t }) : null,
/* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "",
title: "视频",
- children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "film" }), /* @__PURE__ */ (0, I.jsxs)("span", { children: [o, c] })]
+ children: [/* @__PURE__ */ (0, I.jsx)(uQ, { 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)(dQ, { name: "briefcase" }), /* @__PURE__ */ (0, I.jsx)("span", { children: a })]
+ children: [/* @__PURE__ */ (0, I.jsx)(uQ, { 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)(dQ, { name: "clapperboard" }), /* @__PURE__ */ (0, I.jsx)("a", {
+ children: [/* @__PURE__ */ (0, I.jsx)(uQ, { 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)(cke, { aliases: s }) : null
+ s.length ? /* @__PURE__ */ (0, I.jsx)(uke, { aliases: s }) : null
]
});
}
-function cke({ aliases: e }) {
- let { shown: t, rest: n } = xQ(e, 3);
+function uke({ aliases: e }) {
+ let { shown: t, rest: n } = bQ(e, 3);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-meta-item": "names",
"data-company-names": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(dQ, { name: "id-card" }),
+ /* @__PURE__ */ (0, I.jsx)(uQ, { 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)(hQ, {
+ n ? /* @__PURE__ */ (0, I.jsx)(mQ, {
id: "entityAliasPop",
hook: "alias",
rest: n,
label: `另外 ${n.toLocaleString()} 个别名`,
heading: `${e.length.toLocaleString()} 个别名`,
- children: /* @__PURE__ */ (0, I.jsx)("dl", { children: /* @__PURE__ */ (0, I.jsx)(CQ, { names: e.map((e) => ({ name: e })) }) })
+ children: /* @__PURE__ */ (0, I.jsx)("dl", { children: /* @__PURE__ */ (0, I.jsx)(SQ, { names: e.map((e) => ({ name: e })) }) })
}) : null
]
});
}
-function lke({ follow: e, actions: t }) {
+function dke({ 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)(dQ, { name: "rss" }), /* @__PURE__ */ (0, I.jsxs)("a", {
+ children: [/* @__PURE__ */ (0, I.jsx)(uQ, { name: "rss" }), /* @__PURE__ */ (0, I.jsxs)("a", {
href: "?media=online",
onClick: (n) => {
n.preventDefault(), t.openFollowAuthor(e.key);
@@ -66742,7 +66745,7 @@ function lke({ follow: e, actions: t }) {
})]
});
}
-function uke({ follow: e, displayName: t, actions: n }) {
+function fke({ follow: e, displayName: t, actions: n }) {
let [r, i] = (0, F.useState)(""), a = async (e, t) => {
if (!r) {
i(e);
@@ -66756,12 +66759,12 @@ function uke({ 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)(cV, {
+ children: e.held.map((e) => /* @__PURE__ */ (0, I.jsxs)(sV, {
tone: "info",
title: `关注里有同名作者 ${e.name}`,
action: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
- ...pV(r === e.key),
+ ...fV(r === e.key),
onClick: () => {
a(e.key, e.name);
},
@@ -66776,37 +66779,37 @@ function uke({ follow: e, displayName: t, actions: n }) {
}, e.key))
});
}
-function SQ({ entity: e }) {
+function xQ({ entity: e }) {
return e.identity_labels?.length ? /* @__PURE__ */ (0, I.jsxs)("span", {
"data-meta-item": "classification",
"data-identity-classification": "",
- children: [/* @__PURE__ */ (0, I.jsx)(dQ, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.identity_labels.join(" · ") })]
+ children: [/* @__PURE__ */ (0, I.jsx)(uQ, { name: "user-round" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e.identity_labels.join(" · ") })]
}) : null;
}
-function CQ({ label: e, names: t }) {
+function SQ({ 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: VI(e.name),
+ lang: BI(e.name),
children: [e.name, e.reading ? /* @__PURE__ */ (0, I.jsx)("small", { children: e.reading }) : null]
}, t))
})] });
}
-function dke({ 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)(dQ, { name: e }), t] }), /* @__PURE__ */ (0, I.jsx)("dd", {
+function pke({ 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", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function fke({ tags: e }) {
- let { shown: t, rest: n } = xQ(e);
+function mke({ tags: e }) {
+ let { shown: t, rest: n } = bQ(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)(hQ, {
+ }, e)), n ? /* @__PURE__ */ (0, I.jsx)(mQ, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -66822,10 +66825,10 @@ function fke({ tags: e }) {
})
}) : null] });
}
-function wQ({ mark: e }) {
+function CQ({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, I.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, I.jsx)(dQ, { name: e.brand })
+ children: /* @__PURE__ */ (0, I.jsx)(uQ, { 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", {
@@ -66833,7 +66836,7 @@ function wQ({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function pke({ link: e }) {
+function hke({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, I.jsx)("a", {
"data-link": "icon",
@@ -66842,19 +66845,19 @@ function pke({ link: e }) {
rel: "noopener noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, I.jsx)(wQ, { mark: e.mark })
+ children: /* @__PURE__ */ (0, I.jsx)(CQ, { 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)(wQ, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, I.jsx)(CQ, { 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)(wQ, { mark: { globe: !0 } }), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(CQ, { mark: { globe: !0 } }), /* @__PURE__ */ (0, I.jsx)("span", {
"data-link-label": "",
children: e.sources ? e.label : `来源 · ${e.label}`
})]
@@ -66866,7 +66869,7 @@ function pke({ link: e }) {
rel: "noopener noreferrer",
title: e.title,
children: [
- /* @__PURE__ */ (0, I.jsx)(wQ, { mark: e.mark }),
+ /* @__PURE__ */ (0, I.jsx)(CQ, { mark: e.mark }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-link-label": "",
children: e.text
@@ -66881,7 +66884,7 @@ function pke({ link: e }) {
});
}
}
-function mke({ entity: e, actions: t, helpers: n }) {
+function gke({ 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);
@@ -66899,33 +66902,33 @@ function mke({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-entry-marks": "",
- children: [bQ(e).map((e, t) => /* @__PURE__ */ (0, I.jsxs)("a", {
+ children: [yQ(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)(dQ, { name: e.mark }) : /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, I.jsx)(uQ, { 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)(JOe, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, I.jsx)(XOe, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: ZOe(r)
+ tip: $Oe(r)
}) : null]
});
}
// src/react/entity-page/use-entity-online.ts
-var hke = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
-function gke(e, t, n) {
+var _ke = () => ((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991;
+function vke(e, t, n) {
let [r, i] = (0, F.useState)(() => _a(e));
r.author !== e && i(_a(e));
let [a, o] = (0, F.useState)({
@@ -67004,7 +67007,7 @@ function gke(e, t, n) {
onlineMedia: (e) => c(e),
onlineShuffle: () => T({
sort: ea,
- seed: hke()
+ seed: _ke()
}),
onlineImagesOnly: (e) => n.setImagesOnly(e),
onlineStatus: (e) => T({ status: e }),
@@ -67034,8 +67037,8 @@ function gke(e, t, n) {
};
}
// src/react/entity-page/entity-page-view.tsx
-function _ke(e) {
- let { kind: t, name: n } = e, r = Ft(RX(t, n)), i = !!r.data?.error, a = r.data?.canonical_name, o = r.data?.redirect ?? (a && a !== n ? {
+function yke(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 ? {
kind: t,
name: a
} : void 0), { actions: s } = e;
@@ -67053,17 +67056,17 @@ function _ke(e) {
s,
o?.kind,
o?.name
- ]), r.isError ? /* @__PURE__ */ (0, I.jsx)(IG, {
+ ]), r.isError ? /* @__PURE__ */ (0, I.jsx)(FG, {
message: lr(r.error),
onRetry: () => {
r.refetch();
}
- }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(bke, {
+ }) : !r.data || i || o ? null : /* @__PURE__ */ (0, I.jsx)(Ske, {
...e,
entity: r.data
});
}
-function TQ(e) {
+function wQ(e) {
let [t, n] = (0, F.useState)({
key: e,
n: 1
@@ -67075,22 +67078,22 @@ function TQ(e) {
};
return n(r), r.n;
}
-var vke = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
-function yke(e, t) {
+var bke = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);
+function xke(e, t) {
return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t.toLocaleString()} 部作品` : ""].filter(Boolean).join(" · ")}`;
}
-function bke(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(zX(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 || BX(p).length > 0, g = t === "creator" && r.follow?.key || "", _ = !!g && !r.asset_count, v = a.media === "photos" && h ? a : (a.media === "online" || _) && g ? {
+function Ske(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 ? {
media: "online",
set: 0
- } : jX, [y, b] = (0, F.useState)("people"), x = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [S, C] = (0, F.useState)(x);
+ } : AX, [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 = gke(g, w === "online", {
+ let w = l && y === "people" && u.length ? "people" : v.media, T = vke(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 = LX(e), A = Ft(k), j = TQ(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 = 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)));
(0, F.useLayoutEffect)(() => {
s.javContext(M);
}, [s, M]);
@@ -67100,26 +67103,26 @@ function bke(e) {
}, [e.layout, M]), N = {
jav: e.jav,
seed: e.seed
- }, te = (0, F.useCallback)((e, r, a) => IX(t, n, i, N, e, r, a), [j]), [P, ne] = (0, F.useState)({}), re = v.set, ie = P[re] || "", ae = Lt({
- ...zX(t, n, re, ie),
+ }, 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),
enabled: w === "photos"
- }), oe = ae.data?.pages[0], se = TQ(JSON.stringify(NX(t, n, re, ie))), ce = (0, F.useMemo)(() => {
+ }), oe = ae.data?.pages[0], se = wQ(JSON.stringify(MX(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 ? [] : BX(t),
+ codeSets: t.id ? [] : zX(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({
- ...OX(d, o.feedRowHtml),
+ ...DX(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: DX(d) }));
+ fe.current !== e.feedRevision && (fe.current = e.feedRevision, H.invalidateQueries({ queryKey: EX(d) }));
}, [d, e.feedRevision]);
let pe = !!A.data;
(0, F.useEffect)(() => {
@@ -67153,7 +67156,7 @@ function bke(e) {
me.current = !1;
}, []);
let he = (0, F.useCallback)(async () => {
- await H.invalidateQueries({ queryKey: ["entity-route"] }), await H.invalidateQueries({ queryKey: MX(t, n) }), await H.invalidateQueries({ queryKey: [
+ await H.invalidateQueries({ queryKey: ["entity-route"] }), await H.invalidateQueries({ queryKey: jX(t, n) }), await H.invalidateQueries({ queryKey: [
"entity-items",
t,
n
@@ -67187,7 +67190,7 @@ function bke(e) {
enabled: e
})
}),
- onSuccess: (e, r) => H.setQueryData(MX(t, n), (e) => e && {
+ onSuccess: (e, r) => H.setQueryData(jX(t, n), (e) => e && {
...e,
feed: {
...e.feed,
@@ -67241,10 +67244,10 @@ function bke(e) {
let e = await Tn("/api/feeds/check").catch(() => null);
if (!e || e.status !== "running") break;
}
- me.current && await H.invalidateQueries({ queryKey: DX(d) });
+ me.current && await H.invalidateQueries({ queryKey: EX(d) });
})();
},
- feedAction: kX,
+ feedAction: OX,
avatarPicked: () => {
s.avatarChanged(), he().then(() => {
me.current && O((e) => e + 1);
@@ -67292,19 +67295,19 @@ function bke(e) {
(e !== w || v.set) && (b(e === "people" ? "people" : "videos"), s.route(i, e === "photos" || e === "online" ? {
media: e,
set: 0
- } : jX));
+ } : AX));
},
setState: (e) => s.route({
...i,
state: e
- }, jX),
+ }, AX),
toggleTag: s.toggleTag,
clearFilter: s.clearFilter,
clearAll: s.clearAll,
setSort: s.setSort,
reshuffle: async () => {
if (w !== "photos") {
- let r = s.reshuffleVideos(), a = LX({
+ let r = s.reshuffleVideos(), a = IX({
kind: t,
name: n,
filters: {
@@ -67318,7 +67321,7 @@ function bke(e) {
await H.fetchQuery(a).catch(() => null);
return;
}
- let r = vke(), a = await H.fetchInfiniteQuery(zX(t, n, re, r)).catch(() => null);
+ let r = bke(), a = await H.fetchInfiniteQuery(RX(t, n, re, r)).catch(() => null);
me.current && a?.pages[0] && !a.pages[0].error && ne((e) => ({
...e,
[re]: r
@@ -67353,7 +67356,7 @@ function bke(e) {
k: e.k,
label: Ll(e.k),
n: e.n,
- selected: $Ee(i.tag, e.k)
+ selected: tDe(i.tag, e.k)
})), Te = [
u.length,
!_,
@@ -67388,14 +67391,14 @@ function bke(e) {
creator: "",
studio: "",
owner: ""
- }, jX), Ne = "", Pe = !1;
+ }, AX), 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 = PX(i.tag).length;
+ let e = NX(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()} 张` : yke(oe, BX(oe).length) : Pe = ae.isPending;
+ } else oe && !oe.error ? Ne = De ? `${oe.title} · ${(oe.total || 0).toLocaleString()} 张` : xke(oe, zX(oe).length) : Pe = ae.isPending;
let Fe = (0, F.useMemo)(() => ({
...e.card.actions,
loadMorePhotos: async () => {
@@ -67412,7 +67415,7 @@ function bke(e) {
u
]);
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(ake, {
+ /* @__PURE__ */ (0, I.jsx)(ske, {
kind: t,
name: n,
entity: r,
@@ -67422,7 +67425,7 @@ function bke(e) {
actions: be,
helpers: xe
}, D),
- (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Ube, {
+ (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Wbe, {
kind: t,
name: n,
view: w,
@@ -67439,9 +67442,9 @@ function bke(e) {
actions: Se,
helpers: Ce
}), c.filter),
- (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Abe, {
+ (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(jbe, {
enabled: w === "videos",
- children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(fOe, {
+ children: w === "online" ? /* @__PURE__ */ (0, I.jsx)(mOe, {
view: T.view,
media: T.media,
result: T.result,
@@ -67455,16 +67458,16 @@ function bke(e) {
actions: e.follow.actions,
canLoadMore: e.canLoadMore,
clearFilters: T.clearFilters
- }) : w === "videos" && A.isError ? /* @__PURE__ */ (0, I.jsx)(IG, {
+ }) : w === "videos" && A.isError ? /* @__PURE__ */ (0, I.jsx)(FG, {
message: lr(A.error),
onRetry: () => {
A.refetch();
}
- }) : je ? /* @__PURE__ */ (0, I.jsx)(xke, {
+ }) : je ? /* @__PURE__ */ (0, I.jsx)(Cke, {
filtered: Ae,
onShowAll: Me,
onOnline: g ? () => Se.setView("online") : void 0
- }) : /* @__PURE__ */ (0, I.jsx)(MDe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(PDe, {
kind: t,
name: n,
view: w,
@@ -67497,9 +67500,9 @@ function bke(e) {
}), c.body)
] });
}
-function xke({ filtered: e, onShowAll: t, onOnline: n }) {
- return e ? /* @__PURE__ */ (0, I.jsx)(lV, {
- icon: dV("search"),
+function Cke({ filtered: e, onShowAll: t, onOnline: n }) {
+ return e ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ icon: uV("search"),
title: "没有符合条件的视频",
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -67507,14 +67510,14 @@ function xke({ filtered: e, onShowAll: t, onOnline: n }) {
children: "清除筛选"
}),
children: "清除筛选后查看名下全部视频。"
- }) : /* @__PURE__ */ (0, I.jsx)(lV, {
- icon: dV("film"),
+ }) : /* @__PURE__ */ (0, I.jsx)(cV, {
+ icon: uV("film"),
title: "还没有视频",
actions: n ? /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
onClick: n,
children: "查看在线作品"
- }) : /* @__PURE__ */ (0, I.jsx)(bL, {
+ }) : /* @__PURE__ */ (0, I.jsx)(yL, {
size: "small",
href: "/",
children: "浏览馆藏"
@@ -67523,30 +67526,30 @@ function xke({ filtered: e, onShowAll: t, onOnline: n }) {
});
}
// src/react/diagnostics/diagnostics.ts
-var EQ = ["diagnostics"], DQ = (e) => B("/api/diagnostics", e);
-async function Ske(e) {
+var TQ = ["diagnostics"], EQ = (e) => B("/api/diagnostics", e);
+async function wke(e) {
await H.fetchQuery({
- queryKey: EQ,
- queryFn: () => DQ(e),
+ queryKey: TQ,
+ queryFn: () => EQ(e),
staleTime: 1e4
});
}
// src/react/feed-new/feed-new-page.tsx
-function Cke({ host: e, revision: t, helpers: n, actions: r }) {
- let i = Ft(OX(null, n.feedRowHtml)), a = (0, F.useRef)(t);
+function Tke({ host: e, revision: t, helpers: n, actions: r }) {
+ let i = Ft(DX(null, n.feedRowHtml)), a = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
- a.current !== t && (a.current = t, H.invalidateQueries({ queryKey: DX(null) }));
- }, [t]), (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(uQ, {
+ a.current !== t && (a.current = t, H.invalidateQueries({ queryKey: EX(null) }));
+ }, [t]), (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(lQ, {
feedNew: i.data ?? null,
host: e,
wire: n.wireFeedRow,
- act: kX,
+ act: OX,
settled: r.settled
}), e);
}
// src/react/index/index-search.tsx
-var wke = dV("search");
-function OQ({ label: e, value: t, onQuery: n }) {
+var Eke = uV("search");
+function DQ({ 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);
@@ -67563,27 +67566,27 @@ function OQ({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, I.jsx)(nV, {
+ children: /* @__PURE__ */ (0, I.jsx)(tV, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, I.jsx)(iV, {
+ children: /* @__PURE__ */ (0, I.jsx)(rV, {
type: "search",
- leadingIcon: wke,
+ leadingIcon: Eke,
spellCheck: !1,
autoComplete: "off",
enterKeyHint: "search",
onKeyDown: (e) => {
- e.key !== "Enter" || a.current || $U(e.nativeEvent) || (e.preventDefault(), clearTimeout(o.current), n(r.trim()));
+ e.key !== "Enter" || a.current || QU(e.nativeEvent) || (e.preventDefault(), clearTimeout(o.current), n(r.trim()));
}
})
})
});
}
// src/react/index/tag-pagination.ts
-function kQ(e) {
+function OQ(e) {
let [t, n] = (0, F.useState)({
filter: e,
pageIndex: 0,
@@ -67600,7 +67603,7 @@ function kQ(e) {
}), [e])
};
}
-function AQ(e, t, n) {
+function kQ(e, t, n) {
let { pageIndex: r, pageSize: i } = t;
(0, F.useEffect)(() => {
if (e === void 0) return;
@@ -67617,11 +67620,11 @@ function AQ(e, t, n) {
]);
}
// src/react/index/index-tags.tsx
-var jQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
+var AQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
-}), MQ = dV("pencil"), NQ = (e, t) => ({
+}), jQ = uV("pencil"), MQ = (e, t) => ({
kind: "tag",
name: e.k,
favorite: e.favorite,
@@ -67630,7 +67633,7 @@ var jQ = () => /* @__PURE__ */ (0, I.jsx)("span", {
tag_id: e.id || e.k
} : { entity_id: e.entity_id }
});
-function Tke({ tag: e, actions: t }) {
+function Dke({ 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",
@@ -67639,13 +67642,13 @@ function Tke({ tag: e, actions: t }) {
type: "button",
"data-alpha-tag": "",
"data-k": e.k,
- "data-tag-cat": eZ(t.online, e.cat),
+ "data-tag-cat": $X(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)(jQ, {}),
+ /* @__PURE__ */ (0, I.jsx)(AQ, {}),
/* @__PURE__ */ (0, I.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -67656,32 +67659,32 @@ function Tke({ tag: e, actions: t }) {
})
]
}),
- t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(TV, { item: NQ(e, t.online) }),
- t.edit ? /* @__PURE__ */ (0, I.jsx)(wV, {
+ t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(wV, { item: MQ(e, t.online) }),
+ t.edit ? /* @__PURE__ */ (0, I.jsx)(CV, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, I.jsx)(MQ, {})
+ children: /* @__PURE__ */ (0, I.jsx)(jQ, {})
}) : null
]
});
}
-function PQ({ groups: e, actions: t }) {
+function NQ({ 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: xU({
+ className: bU({
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)(mW, { value: n.length })]
+ children: [e, /* @__PURE__ */ (0, I.jsx)(pW, { 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)(Tke, {
+ children: n.map((e) => /* @__PURE__ */ (0, I.jsx)(Dke, {
tag: e,
actions: t
}, e.k))
@@ -67689,26 +67692,26 @@ function PQ({ groups: e, actions: t }) {
}, e))
});
}
-var Eke = "\xA0";
-function FQ({ tags: e, actions: t }) {
+var Oke = "\xA0";
+function PQ({ 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": eZ(t.online, e.cat),
+ "data-tag-cat": $X(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": eZ(t.online, e.cat),
+ "data-tag-cat": $X(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 + Eke
+ children: e.label + Oke
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
@@ -67717,16 +67720,16 @@ function FQ({ 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)(TV, { item: NQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(wV, {
+ children: [t.favorites === !1 ? null : /* @__PURE__ */ (0, I.jsx)(wV, { item: MQ(e, t.online) }), t.edit ? /* @__PURE__ */ (0, I.jsx)(CV, {
label: `编辑标签 ${e.label}`,
onClick: () => t.edit?.(e.k),
- children: /* @__PURE__ */ (0, I.jsx)(MQ, {})
+ children: /* @__PURE__ */ (0, I.jsx)(jQ, {})
}) : null]
}) : null]
}, e.k))
});
}
-var Dke = [[
+var kke = [[
"cloud",
"标签云",
"tags"
@@ -67735,34 +67738,34 @@ var Dke = [[
"字母表",
"text-aa"
]];
-function IQ({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c, status: l, actions: u }) {
- let d = dL();
- return /* @__PURE__ */ (0, I.jsx)(pL, {
+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 = uL();
+ return /* @__PURE__ */ (0, I.jsx)(fL, {
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)(mL, {
+ children: [[[!1, "使用中"], [!0, "已隐藏"]].map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(pL, {
"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)(mL, {
+ }, String(e))), l.onBlocked ? /* @__PURE__ */ (0, I.jsx)(pL, {
"data-tag-pill": "",
"data-tag-cat": "all",
pressed: !!l.blocked,
onPress: l.onBlocked,
children: "已屏蔽内容"
}) : null]
- }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(mL, {
+ }) : null, e.map(([e, r]) => /* @__PURE__ */ (0, I.jsxs)(pL, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : eZ(n, e),
+ "data-tag-cat": e === "all" ? "all" : $X(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, I.jsx)(jQ, {}), r]
+ children: [/* @__PURE__ */ (0, I.jsx)(AQ, {}), r]
}, e))] }),
bottom: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsx)("span", {
@@ -67783,19 +67786,19 @@ function IQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, I.jsx)(Az, {
+ /* @__PURE__ */ (0, I.jsx)(kz, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${iU}`,
- children: Dke.map(([e, t, n]) => {
- let r = dV(n);
- return /* @__PURE__ */ (0, I.jsx)(jz, {
+ className: `ml-auto ${rU}`,
+ children: kke.map(([e, t, n]) => {
+ let r = uV(n);
+ return /* @__PURE__ */ (0, I.jsx)(Az, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: aU,
+ className: iU,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -67807,13 +67810,13 @@ function IQ({ categories: e, category: t, online: n, readout: r, letters: i, vie
] })
});
}
-function Oke({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+function Ake({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
return /* @__PURE__ */ (0, I.jsxs)(Cj, {
visible: e > 0,
label: "所选标签操作",
count: `已选 ${e.toLocaleString()} 个标签`,
children: [
- /* @__PURE__ */ (0, I.jsx)(LV, {
+ /* @__PURE__ */ (0, I.jsx)(IV, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -67844,74 +67847,74 @@ function Oke({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
});
}
// src/react/toaster.tsx
-var LQ = (e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
+var IQ = (e, t) => /* @__PURE__ */ (0, I.jsx)("span", {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), RQ = null, zQ = { "--floating-radius": "var(--radius-2xl)" }, BQ = (e) => `max(${e}px, var(--selection-dock-space, 0px), var(--miniplayer-space, 0px))`;
-function VQ() {
- let e = RQ;
- RQ = null, e?.root.unmount();
-}
-var HQ = (e, t) => {
- if (RQ?.host === e) return;
- VQ();
+}), 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();
let n = (0, zt.createRoot)(e);
- RQ = {
+ LQ = {
host: e,
root: n
- }, n.render(/* @__PURE__ */ (0, I.jsxs)(BV, { children: [/* @__PURE__ */ (0, I.jsx)(JV, {
+ }, n.render(/* @__PURE__ */ (0, I.jsxs)(zV, { children: [/* @__PURE__ */ (0, I.jsx)(qV, {
id: "receipts",
position: "bottom-right",
closeButton: !0,
gap: 8,
style: {
- ...zQ,
+ ...RQ,
"--width": "min(560px, calc(100vw - 48px))"
},
offset: {
right: 24,
- bottom: `calc(${BQ(24)} + var(--processing-toast-space, 0px))`
+ bottom: `calc(${zQ(24)} + var(--processing-toast-space, 0px))`
},
mobileOffset: {
right: 16,
left: 16,
- bottom: `calc(${BQ(16)} + var(--processing-toast-space, 0px))`
+ bottom: `calc(${zQ(16)} + var(--processing-toast-space, 0px))`
},
toastOptions: { closeButtonAriaLabel: "关闭提示" },
containerAriaLabel: "通知",
icons: {
- success: LQ(t.success, !0),
- error: LQ(t.error, !1)
+ success: IQ(t.success, !0),
+ error: IQ(t.error, !1)
}
- }), /* @__PURE__ */ (0, I.jsx)(JV, {
+ }), /* @__PURE__ */ (0, I.jsx)(qV, {
id: "processing",
position: "bottom-right",
gap: 8,
expand: !0,
style: {
- ...zQ,
+ ...RQ,
"--width": "min(400px, calc(100vw - 32px))"
},
offset: {
right: 24,
- bottom: BQ(24)
+ bottom: zQ(24)
},
mobileOffset: {
right: 16,
left: 16,
- bottom: BQ(16)
+ bottom: zQ(16)
},
toastOptions: { closeButtonAriaLabel: "关闭任务提示" },
containerAriaLabel: "后台任务"
})] }));
-}, kke = 6e3, UQ = (e, t) => {
+}, jke = 6e3, HQ = (e, t) => {
if (!String(t.html ?? "").trim()) return;
- let n = t.alert ? UV.error : UV.success, r = t.action;
+ let n = t.alert ? HV.error : HV.success, r = t.action;
n(/* @__PURE__ */ (0, I.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {
id: e,
toasterId: "receipts",
- duration: t.timeout > 0 ? t.timeout : kke,
+ duration: t.timeout > 0 ? t.timeout : jke,
action: r ? {
label: r.label,
onClick: (e) => {
@@ -67919,7 +67922,7 @@ var HQ = (e, t) => {
}
} : void 0
});
-}, WQ = (e) => e.id ?? e.entity_id, GQ = {
+}, UQ = (e) => e.id ?? e.entity_id, WQ = {
rename: "重命名标签",
merge: "合并标签",
hide: "隐藏标签",
@@ -67927,26 +67930,26 @@ var HQ = (e, t) => {
repair: "整理重复标签",
block: "屏蔽内容",
unblock: "恢复内容"
-}, KQ = (e, t) => V("/api/tag-management/preview", e, "POST", t);
-async function qQ(e, t, n) {
+}, GQ = (e, t) => V("/api/tag-management/preview", e, "POST", t);
+async function KQ(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 ll({
- title: GQ[e.operation],
+ title: WQ[e.operation],
body: i,
- confirmLabel: GQ[e.operation],
+ confirmLabel: WQ[e.operation],
onConfirm: () => V("/api/tag-management", {
...e,
token: t.token
}, "POST", n)
- })).confirmed || n?.aborted ? !1 : (await H.invalidateQueries(), UQ(`tag-management-${Date.now()}`, {
- html: `已${GQ[e.operation]}`,
+ })).confirmed || n?.aborted ? !1 : (await H.invalidateQueries(), HQ(`tag-management-${Date.now()}`, {
+ html: `已${WQ[e.operation]}`,
alert: !1,
timeout: 6e3,
action: null
}), !0);
}
-function JQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {
+function qQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }) {
let a = (0, F.useRef)({
operation: e,
selected: t,
@@ -67955,24 +67958,24 @@ function JQ({ 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] ? WQ(t[0]) : 0
+ target_id: t[0] ? UQ(t[0]) : 0
}), [s, c] = (0, F.useState)(null);
return (0, F.useEffect)(() => {
let e = new AbortController(), t = a.current, n = sl({
- title: GQ[t.operation],
+ title: WQ[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(WQ),
+ ids: t.selected.map(UQ),
...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 KQ(n, e.signal)
+ plan: await GQ(n, e.signal)
};
}
});
@@ -67983,14 +67986,14 @@ function JQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
if (!e.signal.aborted) {
if (n.confirmed) {
let r = n.result;
- await qQ(r.command, r.plan, e.signal) && t.done();
+ await KQ(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)(Ake, {
+ }, []), s ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Mke, {
operation: a.current.operation,
selected: a.current.selected,
dialog: s.dialog,
@@ -67999,8 +68002,8 @@ function JQ({ operation: e, selected: t, close: n, done: r, scope: i = "local" }
}
}), s.host) : null;
}
-function Ake({ operation: e, selected: t, dialog: n, update: r }) {
- let [i, a] = (0, F.useState)(t[0]?.k || ""), [o, s] = (0, F.useState)(t[0] ? WQ(t[0]) : 0);
+function Mke({ 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);
return (0, F.useEffect)(() => {
r({
name: i,
@@ -68013,28 +68016,28 @@ function Ake({ operation: e, selected: t, dialog: n, update: r }) {
e,
t,
r
- ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(aV, {
+ ]), e === "rename" ? /* @__PURE__ */ (0, I.jsx)(iV, {
autoFocus: !0,
"aria-label": "标签名称",
value: i,
onChange: a,
maxLength: 80
- }) : /* @__PURE__ */ (0, I.jsx)(RJ, {
+ }) : /* @__PURE__ */ (0, I.jsx)(LJ, {
"aria-label": "保留的标签",
prefix: "保留",
selectedKey: String(o),
onSelectionChange: (e) => {
- let n = t.find((t) => String(WQ(t)) === String(e));
- n && s(WQ(n));
+ let n = t.find((t) => String(UQ(t)) === String(e));
+ n && s(UQ(n));
},
- children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(HU, {
- id: String(WQ(e)),
+ children: t.map((e) => /* @__PURE__ */ (0, I.jsx)(VU, {
+ id: String(UQ(e)),
children: e.k
- }, WQ(e)))
+ }, UQ(e)))
});
}
// src/react/index/tag-manager.tsx
-function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r, onView: i, onJump: a, scope: o = "local" }) {
+function JQ({ 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,
_,
@@ -68042,7 +68045,7 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
g,
v,
b
- ]), { pagination: C, onChange: w } = kQ(S), T = new URLSearchParams({
+ ]), { pagination: C, onChange: w } = OQ(S), T = new URLSearchParams({
limit: String(C.pageSize),
offset: String(C.pageIndex * C.pageSize),
q: _,
@@ -68059,25 +68062,25 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
],
queryFn: ({ signal: e }) => B(`/api/tag-management?${T}`, e)
});
- AQ(E.data?.total, C, w);
+ kQ(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 = pH(), ee = E.data?.items || [], N = ee, te = (s ? GX : WX).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 = 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) => ({
...e,
label: e.k
- })), ne = g === "alphabet" ? tZ(P, (e) => e) : [], re = [...D.values()], ie = (e) => {
+ })), ne = g === "alphabet" ? eZ(P, (e) => e) : [], re = [...D.values()], ie = (e) => {
M.run(e.operation, async (t) => {
let n = s ? {
...e,
scope: o
} : e;
- return qQ(n, await KQ(n, t), t);
+ return KQ(n, await GQ(n, t), t);
}, (e) => {
e && O(/* @__PURE__ */ new Map());
});
- }, ae = re.map(WQ), oe = {
+ }, ae = re.map(UQ), oe = {
online: s,
favorites: s,
picked: k,
@@ -68098,13 +68101,13 @@ function YQ({ 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)(OQ, {
+ children: /* @__PURE__ */ (0, I.jsx)(DQ, {
label: "过滤标签",
value: l,
onQuery: u
})
}) : null,
- /* @__PURE__ */ (0, I.jsx)(IQ, {
+ /* @__PURE__ */ (0, I.jsx)(FQ, {
categories: te,
category: h,
online: s,
@@ -68132,7 +68135,7 @@ function YQ({ 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)(hL, {
+ E.data?.duplicate_groups.length ? /* @__PURE__ */ (0, I.jsx)(mL, {
busy: M.busy === "repair",
onPress: () => ie({
operation: "repair",
@@ -68140,11 +68143,11 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}),
children: "整理重复标签"
}) : null,
- N.length ? /* @__PURE__ */ (0, I.jsx)(hL, {
+ N.length ? /* @__PURE__ */ (0, I.jsx)(mL, {
onPress: () => O((e) => new Map([...e, ...N.map((e) => [e.k, e])])),
children: "选择本页"
}) : null,
- k.size ? /* @__PURE__ */ (0, I.jsx)(hL, {
+ k.size ? /* @__PURE__ */ (0, I.jsx)(mL, {
onPress: () => O(/* @__PURE__ */ new Map()),
children: "清空选择"
}) : null
@@ -68153,7 +68156,7 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
E.isPending ? /* @__PURE__ */ (0, I.jsx)("div", { dangerouslySetInnerHTML: { __html: rc({
mode: g,
pageSize: C.pageSize
- }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ }) } }) : E.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -68161,19 +68164,19 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
children: "立即重试"
}),
children: "无法读取标签"
- }) : N.length ? g === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(PQ, {
+ }) : N.length ? g === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(NQ, {
groups: ne,
actions: oe
- }) : /* @__PURE__ */ (0, I.jsx)(FQ, {
+ }) : /* @__PURE__ */ (0, I.jsx)(PQ, {
tags: P,
actions: oe
- }) : /* @__PURE__ */ (0, I.jsx)(cV, {
+ }) : /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
children: "没有符合条件的标签。"
}),
E.data ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mt-5",
- children: /* @__PURE__ */ (0, I.jsx)(VJ, {
+ children: /* @__PURE__ */ (0, I.jsx)(BJ, {
label: "标签管理",
total: E.data.total,
pagination: C,
@@ -68183,7 +68186,7 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
pageSizes: nc
})
}) : null,
- M.error ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ M.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: M.error
}) : null,
@@ -68209,7 +68212,7 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...pV(!!M.busy),
+ ...fV(!!M.busy),
onClick: () => ie({
operation: v ? "restore" : "hide",
ids: ae
@@ -68219,7 +68222,7 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
s ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...pV(!!M.busy),
+ ...fV(!!M.busy),
onClick: () => ie({
operation: b ? "unblock" : "block",
ids: ae
@@ -68228,7 +68231,7 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
}) : null
]
}),
- A ? /* @__PURE__ */ (0, I.jsx)(JQ, {
+ A ? /* @__PURE__ */ (0, I.jsx)(qQ, {
operation: A,
selected: re,
scope: o,
@@ -68239,7 +68242,7 @@ function YQ({ search: e, category: t = "all", view: n = "cloud", onCategory: r,
});
}
// src/react/index/index-page.tsx
-var jke = [
+var Nke = [
{
value: "studios",
label: "厂牌",
@@ -68255,7 +68258,7 @@ var jke = [
label: "系列",
symbol: "list"
}
-], Mke = [{
+], Pke = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -68263,7 +68266,7 @@ var jke = [
value: "online",
label: "在线",
symbol: "rss"
-}], Nke = [
+}], Fke = [
{
value: "performers",
label: "艺人",
@@ -68279,7 +68282,7 @@ var jke = [
label: "在线",
symbol: "rss"
}
-], Pke = {
+], Ike = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -68308,20 +68311,20 @@ var jke = [
"layout-grid"
]]
};
-function Fke({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, I.jsx)(tU, {
- "aria-label": `${UX[e]}索引版式`,
+function Lke({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, I.jsx)(eU, {
+ "aria-label": `${HX[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none ${nU}`,
- children: Pke[e === "series" ? "series" : JX(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = dV(n);
- return /* @__PURE__ */ (0, I.jsx)(jz, {
+ className: `flex-none ${tU}`,
+ children: Ike[e === "series" ? "series" : qX(e) ? "company" : "people"].map(([e, t, n]) => {
+ let r = uV(n);
+ return /* @__PURE__ */ (0, I.jsx)(Az, {
value: e,
"aria-label": t,
- className: zve,
+ className: Bve,
children: /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
className: "contents",
@@ -68331,8 +68334,8 @@ function Fke({ kind: e, layout: t, onChange: n }) {
})
});
}
-function Ike(e) {
- let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => YX({
+function Rke(e) {
+ let [t, n] = (0, F.useState)(!1), [r, i] = (0, F.useState)(() => JX({
kind: e.kind,
q: e.q,
scope: e.scope,
@@ -68345,8 +68348,8 @@ function Ike(e) {
e.view,
e.category
]), [o, s] = (0, F.useState)(a);
- a !== o && (s(a), i(YX(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 = UX[h], x = h === "tags" && _ === "online", S = h === "performers" && _ === "online";
+ 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";
(0, F.useEffect)(() => {
if (r.kind === e.kind && r.scope === e.scope && r.category === e.category) return;
let t = !0;
@@ -68365,7 +68368,7 @@ function Ike(e) {
...t
};
i(o), e.route(o, { replace: a });
- }, { pagination: w, onChange: T } = kQ(JSON.stringify(r)), E = $X(XX(r), w.pageSize), D = Lt({
+ }, { pagination: w, onChange: T } = OQ(JSON.stringify(r)), E = QX(YX(r), w.pageSize), D = Lt({
queryKey: h === "tags" && (w.pageIndex || w.pageSize !== 100) ? [
...E.queryKey,
"page",
@@ -68380,7 +68383,7 @@ function Ike(e) {
getNextPageParam: h === "tags" ? () => void 0 : E.getNextPageParam,
enabled: !(t && h === "tags"),
placeholderData: ke
- }), O = mDe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;
+ }), O = gDe(D.data), k = D.isPending || D.isPlaceholderData, A = !!D.hasNextPage && !D.isPlaceholderData, j = D.data?.pages[0]?.total;
(0, F.useEffect)(() => {
vm(() => window.location.pathname === `/${h}` && !!m.current?.isConnected, m.current?.querySelector("[data-index-body]"), { pending: k });
}, [
@@ -68388,8 +68391,8 @@ function Ike(e) {
D.isPending,
D.isPlaceholderData,
r
- ]), AQ(h === "tags" && !D.isPlaceholderData ? j : void 0, w, T);
- let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : hDe(O.length, !!D.hasNextPage), ee = `${h}:${_}:${g}`, N = (0, F.useRef)(null), te = D.data?.pages[0]?.categories;
+ ]), kQ(h === "tags" && !D.isPlaceholderData ? j : void 0, w, T);
+ let M = h === "tags" ? D.isPending || D.isError ? "" : `${(j ?? O.length).toLocaleString()} 个标签` : _De(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
@@ -68405,15 +68408,15 @@ function Ike(e) {
O,
h,
x
- ]), ae = (0, F.useMemo)(() => h === "tags" && v === "alphabet" ? tZ(ie, (t) => x ? t : e.tagLabel(t)) : [], [
+ ]), ae = (0, F.useMemo)(() => h === "tags" && v === "alphabet" ? eZ(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)(hW, {
- tabs: Mke,
+ }, se = h === "tags" ? /* @__PURE__ */ (0, I.jsx)(mW, {
+ tabs: Pke,
value: _,
label: "词表",
onChange: (e) => {
@@ -68423,8 +68426,8 @@ function Ike(e) {
view: e === "online" ? "alphabet" : v
});
}
- }) : JX(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(hW, {
- tabs: jke,
+ }) : qX(h) || h === "series" ? /* @__PURE__ */ (0, I.jsx)(mW, {
+ tabs: Nke,
value: h,
label: "资料类型",
onChange: (e) => C({ kind: e })
@@ -68433,7 +68436,7 @@ function Ike(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 ? GX : WX).filter(re);
+ }, le = (x ? WX : UX).filter(re);
return /* @__PURE__ */ (0, I.jsxs)("div", {
ref: m,
"data-index-page": h,
@@ -68448,10 +68451,10 @@ function Ike(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
}),
- qX(h) ? /* @__PURE__ */ (0, I.jsx)("span", {
+ KX(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)(oL, {
+ children: /* @__PURE__ */ (0, I.jsx)(aL, {
text: k ? void 0 : D.isError ? "" : M,
busy: k,
placeholder: /* @__PURE__ */ (0, I.jsx)("span", {
@@ -68460,18 +68463,18 @@ function Ike(e) {
})
})
}) : null,
- qX(h) ? /* @__PURE__ */ (0, I.jsx)(Fke, {
+ KX(h) ? /* @__PURE__ */ (0, I.jsx)(Lke, {
kind: h,
layout: c,
onChange: oe
}) : null,
- /* @__PURE__ */ (0, I.jsx)(EV, { kind: h === "tags" ? "tag" : h === "series" ? "series" : h === "studios" ? "studio" : h === "agencies" ? "agency" : h === "creators" ? "creator" : "performer" }),
+ /* @__PURE__ */ (0, I.jsx)(TV, { kind: h === "tags" ? "tag" : h === "series" ? "series" : h === "studios" ? "studio" : h === "agencies" ? "agency" : h === "creators" ? "creator" : "performer" }),
h === "tags" ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: t ? "primary" : "ghost",
iconOnly: !0,
className: "flex-none",
"data-tag-mode": "",
- leadingIcon: dV("pencil"),
+ leadingIcon: uV("pencil"),
"aria-label": t ? "返回标签浏览" : "管理标签",
title: t ? "返回标签浏览" : "管理标签",
"aria-pressed": t,
@@ -68479,7 +68482,7 @@ function Ike(e) {
e.exitSelectMode(), d(/* @__PURE__ */ new Set()), n(!t);
}
}) : null,
- /* @__PURE__ */ (0, I.jsx)(OQ, {
+ /* @__PURE__ */ (0, I.jsx)(DQ, {
label: `过滤${b}`,
value: g,
onQuery: (e) => {
@@ -68488,8 +68491,8 @@ function Ike(e) {
})
]
}),
- h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(hW, {
- tabs: Nke,
+ h === "performers" || h === "creators" ? /* @__PURE__ */ (0, I.jsx)(mW, {
+ tabs: Fke,
value: S ? "online" : h,
label: "人物名册",
onChange: (t) => {
@@ -68501,7 +68504,7 @@ function Ike(e) {
}
}) : null,
se,
- t && h === "tags" ? /* @__PURE__ */ (0, I.jsx)(YQ, {
+ t && h === "tags" ? /* @__PURE__ */ (0, I.jsx)(JQ, {
scope: _,
search: g,
category: y,
@@ -68515,8 +68518,8 @@ function Ike(e) {
}, _) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
h === "performers" && _ === "local" ? /* @__PURE__ */ (0, I.jsx)("div", {
"aria-label": "身份分类",
- className: HX,
- children: VX.filter((e) => e[0] === y || re(e)).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(J, {
+ className: VX,
+ children: BX.filter((e) => e[0] === y || re(e)).map(([e, t]) => /* @__PURE__ */ (0, I.jsx)(J, {
variant: y === e ? "primary" : "secondary",
size: "small",
"aria-pressed": y === e,
@@ -68524,7 +68527,7 @@ function Ike(e) {
children: t
}, e))
}) : null,
- h === "tags" ? /* @__PURE__ */ (0, I.jsx)(IQ, {
+ h === "tags" ? /* @__PURE__ */ (0, I.jsx)(FQ, {
categories: le,
category: y,
online: x,
@@ -68540,7 +68543,7 @@ function Ike(e) {
}) : null,
/* @__PURE__ */ (0, I.jsx)("div", {
"data-index-body": "",
- children: /* @__PURE__ */ (0, I.jsx)(LG, {
+ children: /* @__PURE__ */ (0, I.jsx)(IG, {
pending: k,
skeletonHtml: () => h === "tags" ? rc({
mode: v,
@@ -68552,8 +68555,8 @@ function Ike(e) {
}),
children: (() => {
if (k) return null;
- if (D.isError) return /* @__PURE__ */ (0, I.jsx)(lV, {
- icon: dV("alert"),
+ if (D.isError) return /* @__PURE__ */ (0, I.jsx)(cV, {
+ icon: uV("alert"),
title: `没能读取${b}`,
actions: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -68562,7 +68565,7 @@ function Ike(e) {
}),
children: xn(D.error)
});
- if (!O.length) return /* @__PURE__ */ (0, I.jsx)(Rke, {
+ if (!O.length) return /* @__PURE__ */ (0, I.jsx)(Bke, {
kind: h,
filtered: !!g || y !== "all",
online: x || S,
@@ -68571,12 +68574,12 @@ function Ike(e) {
category: "all"
})
});
- if (S) return /* @__PURE__ */ (0, I.jsx)(bDe, {
+ if (S) return /* @__PURE__ */ (0, I.jsx)(SDe, {
items: O,
layout: c,
props: e
});
- if (qX(h)) return /* @__PURE__ */ (0, I.jsx)(iZ, {
+ if (KX(h)) return /* @__PURE__ */ (0, I.jsx)(rZ, {
kind: h,
items: O,
layout: c,
@@ -68587,10 +68590,10 @@ function Ike(e) {
picked: u,
press: ce
};
- return v === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(PQ, {
+ return v === "alphabet" ? /* @__PURE__ */ (0, I.jsx)(NQ, {
groups: ae,
actions: t
- }) : /* @__PURE__ */ (0, I.jsx)(FQ, {
+ }) : /* @__PURE__ */ (0, I.jsx)(PQ, {
tags: ie,
actions: t
});
@@ -68599,7 +68602,7 @@ function Ike(e) {
}),
h === "tags" && !k && !D.isError ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "mt-5",
- children: /* @__PURE__ */ (0, I.jsx)(VJ, {
+ children: /* @__PURE__ */ (0, I.jsx)(BJ, {
label: "标签",
total: j ?? O.length,
pagination: w,
@@ -68624,7 +68627,7 @@ function Ike(e) {
}) : null, "载入更多"]
})
}) : null,
- h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(Oke, {
+ h === "tags" && !x && e.selectMode ? /* @__PURE__ */ (0, I.jsx)(Ake, {
count: u.size,
match: f,
onMatch: p,
@@ -68638,7 +68641,7 @@ function Ike(e) {
]
});
}
-var Lke = {
+var zke = {
tags: "标签",
performers: "艺人",
creators: "卖家",
@@ -68646,9 +68649,9 @@ var Lke = {
agencies: "事务所",
series: "系列"
};
-function Rke({ kind: e, filtered: t, online: n, onClear: r }) {
- if (t) return /* @__PURE__ */ (0, I.jsx)(lV, {
- icon: dV("search"),
+function Bke({ kind: e, filtered: t, online: n, onClear: r }) {
+ if (t) return /* @__PURE__ */ (0, I.jsx)(cV, {
+ icon: uV("search"),
title: "没有符合条件的内容",
actions: /* @__PURE__ */ (0, I.jsx)(J, {
size: "small",
@@ -68657,16 +68660,16 @@ function Rke({ kind: e, filtered: t, online: n, onClear: r }) {
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : Lke[e], a = /* @__PURE__ */ (0, I.jsx)(bL, {
+ let i = n && e === "performers" ? "创作者" : zke[e], a = /* @__PURE__ */ (0, I.jsx)(yL, {
size: "small",
variant: n ? "primary" : "secondary",
href: "/subscriptions?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, I.jsx)(lV, {
- icon: dV(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, I.jsx)(cV, {
+ icon: uV(e === "tags" ? "tags" : "user-round"),
title: `还没有${i}`,
- actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(bL, {
+ actions: n ? a : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(yL, {
size: "small",
href: "/settings/library",
children: "添加媒体"
@@ -68674,15 +68677,15 @@ function Rke({ kind: e, filtered: t, online: n, onClear: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var XQ = {
+var YQ = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, zke = (e) => XQ[e.junk_kind || "other"] || XQ.other;
-function Bke(e) {
+}, Vke = (e) => YQ[e.junk_kind || "other"] || YQ.other;
+function Hke(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -68693,21 +68696,21 @@ function Bke(e) {
glyph: "check"
};
}
-var Vke = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), Hke = (e, t) => [
+var XQ = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), Uke = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function Uke({ kind: e, view: t }) {
+function Wke({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function Wke(e, t) {
- let n = await B(`/api/ads?${Uke(e)}`, t);
+async function Gke(e, t) {
+ let n = await B(`/api/ads?${Wke(e)}`, t);
return {
...n,
items: n.items || []
@@ -68722,8 +68725,8 @@ function ZQ({ name: e }) {
});
}
var QQ = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function Gke({ 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] = zke(e), m = String(e.name || ""), h = Bke(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {
+function Kke({ 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] = Vke(e), m = String(e.name || ""), h = Hke(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));
}, y = (t) => {
t.stopPropagation(), QQ(r, t) ? (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey)) : o.current && a.open(e, o.current);
@@ -68757,7 +68760,7 @@ function Gke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
"data-junk-kind": d,
"data-selected": n ? "" : void 0,
onClick: v,
- onMouseDown: rK,
+ onMouseDown: nK,
children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-media-pic": "",
@@ -68853,7 +68856,7 @@ function Gke({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions
]
});
}
-var Kke = (0, F.memo)(Gke);
+var qke = (0, F.memo)(Kke);
// src/react/components/collection-summary.tsx
function $Q({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -68894,10 +68897,10 @@ function t$({ scope: e, count: t }) {
children: t.toLocaleString()
})] }) : null;
}
-function qke({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = RV(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = vL(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? PU.map(([e]) => Vke(t, e)).join(",") : ""}`), l = LU(s), u = (e) => {
+function Jke({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = LV(), a = (0, F.useRef)(null), { kind: o, view: s } = e, c = _L(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? NU.map(([e]) => XQ(t, e)).join(",") : ""}`), l = IU(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") || IU()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || FU()));
}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-junk-count": "",
@@ -68905,7 +68908,7 @@ function qke({ route: e, page: t, failed: n, onNavigate: r }) {
"data-junk-summary": "",
"aria-live": "polite",
children: /* @__PURE__ */ (0, I.jsx)($Q, {
- label: RU(s),
+ label: LU(s),
figure: d,
pending: !t && !n,
flush: !0
@@ -68925,8 +68928,8 @@ function qke({ route: e, page: t, failed: n, onNavigate: r }) {
onClick: u,
onPointerLeave: c.leave,
children: [
- PU.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {
- href: IU(e, s),
+ NU.map(([e, n, r]) => /* @__PURE__ */ (0, I.jsxs)("a", {
+ href: FU(e, s),
"data-junk-kind-link": e,
"aria-current": e === o ? "page" : void 0,
onPointerEnter: c.hover,
@@ -68935,7 +68938,7 @@ function qke({ route: e, page: t, failed: n, onNavigate: r }) {
n,
/* @__PURE__ */ (0, I.jsx)(t$, {
scope: e,
- count: t ? Vke(t, e) : 0
+ count: t ? XQ(t, e) : 0
})
]
}, e || "all")),
@@ -68963,33 +68966,33 @@ function qke({ route: e, page: t, failed: n, onNavigate: r }) {
});
}
// src/react/junk-queue/junk-queue-page.tsx
-var Jke = dV("check"), Yke = (e, t) => e[1] === t.view && e[2] === t.kind;
-function Xke(e) {
+var Yke = uV("check"), Xke = (e, t) => e[1] === t.view && e[2] === t.kind;
+function Zke(e) {
let t = {
kind: e.kind,
view: e.view
}, n = Ft({
- queryKey: Hke(t, e.revision),
- queryFn: ({ signal: e }) => Wke(t, e),
- placeholderData: (e, n) => n && Yke(n.queryKey, t) ? e : void 0
+ queryKey: Uke(t, e.revision),
+ queryFn: ({ signal: e }) => Gke(t, e),
+ placeholderData: (e, n) => n && Xke(n.queryKey, t) ? e : void 0
});
(0, F.useEffect)(() => {
n.isFetching || e.settled?.(e.revision);
}, [n.isFetching, e.revision]);
- let r = Zke(e.countRow), i = n.isPending;
+ let r = Qke(e.countRow), i = n.isPending;
(0, F.useLayoutEffect)(() => {
let t = e.countRow;
t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));
}, [e.countRow, i]), (0, F.useLayoutEffect)(() => {
r && n.data && ec(r, "junk");
}, [r, n.data]);
- let { navigate: a } = e.actions, o = r ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(qke, {
+ let { navigate: a } = e.actions, o = r ? (0, Rt.createPortal)(/* @__PURE__ */ (0, I.jsx)(Jke, {
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)(Qke, {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [o, /* @__PURE__ */ (0, I.jsx)($ke, {
props: e,
data: n.data,
pending: i,
@@ -68997,7 +69000,7 @@ function Xke(e) {
retry: () => void n.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function Zke(e) {
+function Qke(e) {
let [t, n] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
if (!e) return;
@@ -69007,8 +69010,8 @@ function Zke(e) {
};
}, [e]), t;
}
-function Qke({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = lxe(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 $ke({ props: e, data: t, pending: n, error: r, retry: i }) {
+ let a = uxe(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", {
@@ -69016,16 +69019,16 @@ function Qke({ 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)(IG, {
+ if (!t) return /* @__PURE__ */ (0, I.jsx)(FG, {
message: xn(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, I.jsx)(lV, {
- icon: Jke,
+ return /* @__PURE__ */ (0, I.jsx)(cV, {
+ icon: Yke,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
- actions: t ? /* @__PURE__ */ (0, I.jsx)(bL, {
+ actions: t ? /* @__PURE__ */ (0, I.jsx)(yL, {
size: "small",
href: "/junk-files",
children: "查看待判断"
@@ -69038,7 +69041,7 @@ function Qke({ 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)(Kke, {
+ children: u.map((t) => /* @__PURE__ */ (0, I.jsx)(qke, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -69047,7 +69050,7 @@ function Qke({ props: e, data: t, pending: n, error: r, retry: i }) {
actions: e.actions
}, t.id))
}),
- u.length < l.length ? /* @__PURE__ */ (0, I.jsx)($ke, { onMore: f }, s) : null,
+ u.length < l.length ? /* @__PURE__ */ (0, I.jsx)(eAe, { 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",
@@ -69057,14 +69060,14 @@ function Qke({ props: e, data: t, pending: n, error: r, retry: i }) {
})()]
});
}
-function $ke({ onMore: e }) {
+function eAe({ 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: FG });
+ }, { rootMargin: PG });
return r.observe(n), () => r.disconnect();
}, [e]), /* @__PURE__ */ (0, I.jsx)("div", {
ref: t,
@@ -69074,7 +69077,7 @@ function $ke({ onMore: e }) {
});
}
// src/react/components/fieldset-layout.ts
-var eAe = xU({
+var tAe = bU({
padding: "none",
className: "overflow-hidden"
}), n$ = {
@@ -69085,11 +69088,11 @@ var eAe = xU({
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 `${eAe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`;
+ return `${tAe} ${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: xU({
+ face: bU({
padding: "none",
radius: "plain",
interactive: !0,
@@ -69101,26 +69104,26 @@ 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"
-}, tAe = [
+}, nAe = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], nAe = [
+], rAe = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function rAe(e = {}) {
- return `${xU({
+function iAe(e = {}) {
+ return `${bU({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var iAe = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", aAe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
+var aAe = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", oAe = "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 xU({
+ return bU({
padding: "none",
radius: "plain",
interactive: e,
@@ -69128,7 +69131,7 @@ function s$({ interactive: e = !1 } = {}) {
});
}
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 oAe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+function sAe({ 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",
@@ -69161,13 +69164,13 @@ function oAe({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMet
})
] });
}
-function sAe({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+function cAe({ 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 ${tAe[n % 4]} ${nAe[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${nAe[n % 4]} ${rAe[n % 4]}`,
children: /* @__PURE__ */ (0, I.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -69188,10 +69191,10 @@ function sAe({ 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", cAe = "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 l$ = "发现新文件,补全新增及未完成影片的资料和预览。需要检查全部影片时,使用全库维护。", u$ = "部分视频文件可能播放卡顿、打不开,修复缺时间戳表和缺索引的问题。", d$ = "<span class=\"skeleton skeleton-text\" aria-hidden=\"true\"></span>", f$ = "disabled data-skeleton-action", lAe = "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">
<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 lAe() {
+function uAe() {
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>${Ts("arrow-up", "size-(--icon-inline) shrink-0 rotate-90")}</a><span data-button-group data-split-button data-variant="primary">${Os({
@@ -69203,19 +69206,19 @@ function lAe() {
})}</span></footer>
</section>`);
}
-function uAe() {
+function dAe() {
return p$(`<section aria-label="媒体修复" class="${i$("split")}" data-cleanup-task data-cleanup-processing>
${m$("媒体修复", u$, "split")}
<footer class="${r$.split}">${As(d$, {
className: "w-48",
- attrs: cAe
+ attrs: lAe
})}${Os({
label: "开始修复",
attrs: f$
})}</footer>
</section>`);
}
-function dAe() {
+function fAe() {
let e = (e, t, n, r = "") => `<div class="${o$.face}"><span class="${o$.icon}">${Ts(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>${Ts("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">${Ts(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) => 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$}">${[
@@ -69225,18 +69228,18 @@ function dAe() {
["高清版", "sparkles"],
["回收站", "trash"]
].map(([e, n]) => t(e, n)).join("")}</div></section>
- <div id="libraryProcessing" class="scroll-mt-20">${lAe()}</div>
+ <div id="libraryProcessing" class="scroll-mt-20">${uAe()}</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></div>`;
}
// src/react/components/fieldset.tsx
-var fAe = xU({
+var pAe = bU({
padding: "none",
radius: "surface",
className: "overflow-hidden"
-}), pAe = "border-t border-border-button-default p-4 first:border-t-0";
-function mAe({ id: e, children: t }) {
+}), mAe = "border-t border-border-button-default p-4 first:border-t-0";
+function hAe({ id: e, children: t }) {
return /* @__PURE__ */ (0, I.jsx)("h2", {
id: e,
className: "text-title-2-medium! m-0! text-text-primary",
@@ -69287,7 +69290,7 @@ function v$({ title: e, href: t, children: n }) {
});
}
// src/react/components/status-label.tsx
-var hAe = {
+var gAe = {
success: "lime",
progress: "blue",
warning: "yellow",
@@ -69295,15 +69298,15 @@ var hAe = {
neutral: "neutral"
};
function y$({ tone: e = "neutral", ...t }) {
- return /* @__PURE__ */ (0, I.jsx)(WU, {
+ return /* @__PURE__ */ (0, I.jsx)(UU, {
"data-status-tone": e,
variant: "caption",
- color: hAe[e],
+ color: gAe[e],
...t
});
}
// src/react/components/path-line.tsx
-function gAe({ className: e }) {
+function _Ae({ className: e }) {
return /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -69316,7 +69319,7 @@ function gAe({ className: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-folder-open" })
});
}
-var _Ae = "打开文件管理器失败,请重试";
+var vAe = "打开文件管理器失败,请重试";
function b$({ 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)(() => () => {
@@ -69328,7 +69331,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 : _Ae);
+ l.current && c(e instanceof sr ? e.message : vAe);
} finally {
l.current && o(!1);
}
@@ -69343,12 +69346,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)(cL, {
- icon: gAe,
+ children: [/* @__PURE__ */ (0, I.jsx)(sL, {
+ icon: _Ae,
size: "small",
"aria-label": "在资源管理器中显示",
onClick: () => void u(),
- ...pV(a)
+ ...fV(a)
}), r]
})]
}), s ? /* @__PURE__ */ (0, I.jsx)("p", {
@@ -69358,7 +69361,7 @@ function b$({ path: e, prefix: t, className: n, action: r, onRevealed: i }) {
});
}
// src/react/library-processing/issue-export.ts
-async function vAe(e, t) {
+async function yAe(e, t) {
if (!e.job_id) throw Error("请先选择有问题记录的任务");
let n = [], r = 1, i = "";
for (let a = 0; a < r; a += 200) {
@@ -69381,69 +69384,69 @@ async function vAe(e, t) {
rows: n
}, null, 2);
}
-function yAe(e, t) {
+function bAe(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 bAe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", xAe = (e) => {
+var xAe = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", SAe = (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(",")}。`;
-}, SAe = (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} 部视频预览。` : "") + xAe(e);
-function CAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = tve(e), o = pH(), s = pH(), [c, l] = (0, F.useState)(""), u = $V(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = Q_e(e.notes || {}), p = !!t || !e.archived && e.status === "failed", m = !t && !e.archived && eH(e), h = p || !e.archived && !u && (!!f || !!e.issue_count), g = !u && !!e.job_id && !e.archived, _ = e.issues_log || "", v = ZV(e), y = RV(), b = (t) => void s.run(t ? "archive" : "unarchive", (n) => V(YV, {
+}, CAe = (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} 部视频预览。` : "") + SAe(e);
+function wAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
+ let a = nve(e), o = fH(), s = fH(), [c, l] = (0, F.useState)(""), u = QV(e), d = e.status === "failed" && !!e.retryable_asset_ids?.length, f = $_e(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, {
action: t ? "archive" : "unarchive",
job_id: e.job_id
}, "POST", n), (n) => {
- H.setQueryData(XV, n), l(t ? e.job_id : "");
+ H.setQueryData(YV, n), l(t ? e.job_id : "");
}), x = e.issue_count && !u ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...pV(!!o.busy),
- onClick: () => void o.run("export", (t) => vAe(e, t), (t) => {
- yAe(e.job_id, t), i("已导出问题清单");
+ ...fV(!!o.busy),
+ onClick: () => void o.run("export", (t) => yAe(e, t), (t) => {
+ bAe(e.job_id, t), i("已导出问题清单");
}),
children: "导出完整问题清单"
}) : null, S = p ? [
t || e.error || "处理未完成,请重试",
- m ? tH : "",
+ m ? eH : "",
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)(ive, {
+ v ? /* @__PURE__ */ (0, I.jsx)(ave, {
state: e,
slow: v
- }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ }) : e.status === "running" && e.stalled ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "warning",
title: "处理较慢",
- children: bAe
+ children: xAe
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "success",
title: "处理完成",
- children: SAe(n)
+ children: CAe(n)
}) : null,
- (n ?? e).status === "cancelled" && !e.archived ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ (n ?? e).status === "cancelled" && !e.archived ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
title: "已取消上次任务",
children: "已取得的资料和预览已保留,这一轮不会自动继续,需要时重新同步。"
}) : null,
- h ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ h ? /* @__PURE__ */ (0, I.jsx)(sV, {
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)(fH, {
- href: nH,
+ m ? /* @__PURE__ */ (0, I.jsx)(dH, {
+ href: tH,
size: "small",
- trailingIcon: _B,
+ trailingIcon: gB,
children: "查看全部内容"
}) : null,
d ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -69457,7 +69460,7 @@ function CAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
variant: "secondary",
size: "small",
"aria-label": "归档提示",
- ...pV(!!s.busy),
+ ...fV(!!s.busy),
onClick: () => b(!0),
children: "归档"
}) : null
@@ -69465,7 +69468,7 @@ function CAe({ 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)(LH, {
+ children: /* @__PURE__ */ (0, I.jsx)(IH, {
summary: a.label,
contentClassName: "gap-0",
children: /* @__PURE__ */ (0, I.jsx)("div", {
@@ -69502,18 +69505,18 @@ function CAe({ 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)(cV, {
+ e.archived && c === e.job_id && !t ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- ...pV(!!s.busy),
+ ...fV(!!s.busy),
onClick: () => b(!1),
children: "撤销"
}),
children: "已归档上一趟的问题提示,完整记录仍保留。"
}) : null,
- o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ o.error || s.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "warning",
children: o.error || s.error
}) : null
@@ -69521,16 +69524,16 @@ function CAe({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
});
}
function x$(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = wH(e), o = It({
- mutationFn: (e) => V(YV, e),
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = CH(e), o = It({
+ mutationFn: (e) => V(JV, e),
onSuccess: (e) => {
- a(), H.setQueryData(XV, e), H.invalidateQueries({ queryKey: XV });
+ a(), H.setQueryData(YV, e), H.invalidateQueries({ queryKey: YV });
}
});
(0, F.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = s.job_id || "unavailable", { hidden: l } = $H(c), u = o.error ? lr(o.error) : r.isError ? r.data ? oH : lr(r.error) : "", d = o.isPending || $V(s), f = async (e) => {
+ 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) => {
d || (o.reset(), await o.mutateAsync(e));
};
return /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -69539,33 +69542,33 @@ function x$(e) {
layout: "stack",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(fH, {
+ /* @__PURE__ */ (0, I.jsx)(dH, {
href: "/sources",
size: "small",
- trailingIcon: _B,
+ trailingIcon: gB,
children: "来源和凭证"
}),
- /* @__PURE__ */ (0, I.jsx)(fH, {
+ /* @__PURE__ */ (0, I.jsx)(dH, {
href: "/settings/diagnostics",
size: "small",
- trailingIcon: _B,
+ trailingIcon: gB,
children: "诊断与日志"
}),
- s.candidates ? /* @__PURE__ */ (0, I.jsx)(fH, {
+ s.candidates ? /* @__PURE__ */ (0, I.jsx)(dH, {
href: "/review",
size: "small",
- trailingIcon: _B,
+ trailingIcon: gB,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, I.jsx)(kK, {
+ /* @__PURE__ */ (0, I.jsx)(OK, {
scan: !0,
busy: o.isPending,
- occupied: $V(s),
+ occupied: QV(s),
metadataOnly: s?.metadata_only,
speedMode: s.speed_mode,
pendingCount: s.new_asset_count,
onRun: f,
- onOccupied: () => t(X_e(s))
+ onOccupied: () => t(Z_e(s))
})
] }),
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -69575,7 +69578,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)(WU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(h$, { children: "扫描与采集" }), s.new_asset_count ? /* @__PURE__ */ (0, I.jsx)(UU, {
variant: "caption",
color: "blue",
children: /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -69583,10 +69586,10 @@ function x$(e) {
children: [s.new_asset_count.toLocaleString(), " 部待补全"]
})
}) : null]
- }), l && ($V(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(J, {
+ }), l && (QV(s) || s.status === "failed" || r.isError) ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- onClick: () => QH(c, !0),
+ onClick: () => ZH(c, !0),
children: "显示进度浮窗"
}) : null]
}),
@@ -69597,17 +69600,17 @@ function x$(e) {
s.status === "paused" && !s.total ? /* @__PURE__ */ (0, I.jsx)("span", {
className: "self-start",
children: /* @__PURE__ */ (0, I.jsx)(y$, { children: "已暂停" })
- }) : $V(s) ? /* @__PURE__ */ (0, I.jsx)(fve, { state: s }) : null,
- $V(s) ? /* @__PURE__ */ (0, I.jsx)("p", {
+ }) : QV(s) ? /* @__PURE__ */ (0, I.jsx)(pve, { state: s }) : null,
+ QV(s) ? /* @__PURE__ */ (0, I.jsx)("p", {
className: "text-body-2-regular text-text-secondary tabular-nums",
"data-processing-eta": "",
- children: rH(s)
+ children: nH(s)
}) : null,
- $V(s) ? /* @__PURE__ */ (0, I.jsx)(GH, { traffic: s.traffic }) : null,
- $V(s) ? /* @__PURE__ */ (0, I.jsx)(CH, { state: s }) : null
+ QV(s) ? /* @__PURE__ */ (0, I.jsx)(WH, { traffic: s.traffic }) : null,
+ QV(s) ? /* @__PURE__ */ (0, I.jsx)(SH, { state: s }) : null
]
})
- }), /* @__PURE__ */ (0, I.jsx)(CAe, {
+ }), /* @__PURE__ */ (0, I.jsx)(wAe, {
state: s,
problem: u,
settled: i,
@@ -69622,30 +69625,30 @@ function x$(e) {
});
}
// src/react/playlists/playlists.ts
-var wAe = "/api/playlists", S$ = "/api/playlist", C$ = ["playlists"], w$ = (e) => B(wAe, e);
-async function TAe(e) {
+var TAe = "/api/playlists", S$ = "/api/playlist", C$ = ["playlists"], w$ = (e) => B(TAe, e);
+async function EAe(e) {
await H.fetchQuery({
queryKey: C$,
queryFn: () => w$(e),
staleTime: 0
});
}
-var EAe = () => H.invalidateQueries({
+var DAe = () => H.invalidateQueries({
queryKey: C$,
exact: !0
-}), DAe = (e) => e.current_asset_id || e.preview_asset_id || null, OAe = (e) => `/poster?id=${e}&c=4`, kAe = (e) => V(S$, {
+}), OAe = (e) => e.current_asset_id || e.preview_asset_id || null, kAe = (e) => `/poster?id=${e}&c=4`, AAe = (e) => V(S$, {
action: "create",
name: e,
asset_ids: []
-}), AAe = (e, t) => V(S$, {
+}), jAe = (e, t) => V(S$, {
action: "rename",
id: e,
name: t
-}), jAe = (e) => V(S$, {
+}), MAe = (e) => V(S$, {
action: "delete",
id: e
-}), MAe = (e) => B(`${S$}?id=${e}`).catch(() => null);
-function NAe(e) {
+}), NAe = (e) => B(`${S$}?id=${e}`).catch(() => null);
+function PAe(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
return V(S$, {
action: "create",
@@ -69656,8 +69659,8 @@ function NAe(e) {
});
}
// src/react/scraping/custom-source-data.ts
-var T$ = "/api/custom-metadata", E$ = ["custom-metadata"], D$ = (e) => B(T$, e), PAe = "/api/scraping", FAe = "/api/scraping/settings", IAe = "/api/scraping/check", O$ = "/api/scraping/cover", LAe = "/api/scraping/amane-bridge", RAe = "/api/scraping/amane-bridge/check", zAe = "/api/scraping/amane-bridge/rebuild", k$ = ["scraping"], A$ = ["scraping", "cover"], j$ = ["scraping", "amane-bridge"], BAe = 262144, M$ = (e) => B(PAe, e), N$ = (e) => B(O$, e), P$ = (e) => B(LAe, e);
-async function VAe(e) {
+var T$ = "/api/custom-metadata", E$ = ["custom-metadata"], D$ = (e) => B(T$, e), FAe = "/api/scraping", IAe = "/api/scraping/settings", LAe = "/api/scraping/check", O$ = "/api/scraping/cover", RAe = "/api/scraping/amane-bridge", zAe = "/api/scraping/amane-bridge/check", BAe = "/api/scraping/amane-bridge/rebuild", k$ = ["scraping"], A$ = ["scraping", "cover"], j$ = ["scraping", "amane-bridge"], VAe = 262144, M$ = (e) => B(FAe, e), N$ = (e) => B(O$, e), P$ = (e) => B(RAe, e);
+async function HAe(e) {
await Promise.all([
H.fetchQuery({
queryKey: k$,
@@ -69677,7 +69680,7 @@ async function VAe(e) {
})
]);
}
-function HAe(e, t) {
+function UAe(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 F$ = /* @__PURE__ */ new Set([
@@ -69704,7 +69707,7 @@ function L$(e) {
};
}
var R$ = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();
-function UAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o, recommendations: s = [] }) {
+function WAe({ 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,
@@ -69795,7 +69798,7 @@ function UAe({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a
options: l
};
}
-function WAe(e, t, n = Math.random) {
+function GAe(e, t, n = Math.random) {
let r = [...e];
for (let e = r.length - 1; e > 0; --e) {
let t = Math.floor(n() * (e + 1));
@@ -69804,7 +69807,7 @@ function WAe(e, t, n = Math.random) {
return r.filter((e) => !t.some((t) => R$(t) === R$(e))).slice(0, 5);
}
// src/react/search/search-page.tsx
-var GAe = () => ({
+var KAe = () => ({
dismissed: !1,
history: [],
pool: [],
@@ -69830,7 +69833,7 @@ var GAe = () => ({
active: -1,
reveal: !1,
rewind: !1
-}), z$ = (e) => UAe({
+}), z$ = (e) => WAe({
query: e.query,
history: e.history,
picks: e.picks,
@@ -69839,8 +69842,8 @@ var GAe = () => ({
tabs: e.tabs,
kind: e.kind,
recommendations: e.recommendations
-}), KAe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), B$ = 4e3, qAe = 5e3, V$ = 1200;
-function JAe(e) {
+}), qAe = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length || e.empty), B$ = 4e3, JAe = 5e3, V$ = 1200;
+function YAe(e) {
if (window.requestIdleCallback) {
let t = window.requestIdleCallback(e, { timeout: B$ });
return () => window.cancelIdleCallback(t);
@@ -69853,13 +69856,13 @@ var H$ = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
});
-function YAe(e) {
+function XAe(e) {
let t = (0, F.useRef)(e);
t.current = e;
let n = (0, F.useRef)(null);
- n.current ??= GAe();
+ n.current ??= KAe();
let r = n.current, i = (0, F.useRef)(null), [, a] = (0, F.useReducer)((e) => e + 1, 0), o = (0, F.useRef)(null);
- o.current ??= ZAe(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);
+ o.current ??= QAe(() => 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 = () => {
@@ -69870,7 +69873,7 @@ function YAe(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, qAe);
+ let u = window.setInterval(s.rotatePlaceholder, JAe);
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);
};
@@ -69878,7 +69881,7 @@ function YAe(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 = z$(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)($Ae, {
+ let c = z$(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, I.jsx)(eje, {
entry: t,
active: t.index === r.active,
helpers: e.helpers,
@@ -69912,7 +69915,7 @@ function YAe(e) {
e.pending ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-search-items": "",
"aria-busy": "true",
- children: XAe(e)
+ children: ZAe(e)
}) : e.kind ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-search-items": "",
children: e.options.map(u)
@@ -69926,7 +69929,7 @@ function YAe(e) {
"data-search-recommendations": !r.query && r.recommendations.length ? "" : void 0,
"data-history-limit": l,
children: [
- c.tabs ? /* @__PURE__ */ (0, I.jsx)(QAe, {
+ c.tabs ? /* @__PURE__ */ (0, I.jsx)($Ae, {
tabs: c.tabs,
kind: r.kind,
onPick: s.pickKind,
@@ -69965,7 +69968,7 @@ function U$(e, t) {
}
}
var W$ = "\xA0";
-function XAe(e) {
+function ZAe(e) {
let t = I$.has(e.kind ?? "");
return Array.from({ length: e.pending ?? 0 }, (e, n) => t ? /* @__PURE__ */ (0, I.jsxs)("div", {
"data-search-option": "work",
@@ -70000,7 +70003,7 @@ function XAe(e) {
})]
}, n));
}
-function ZAe(e, t, n, r) {
+function QAe(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 () => {
@@ -70046,7 +70049,7 @@ function ZAe(e, t, n, r) {
let n = e().helpers;
n.recommendations && (t.nextRecommendations && (t.recommendations = t.nextRecommendations, t.nextRecommendations = null, U$(t.recommendations.map(L$), n)), !t.recommendations.length && (t.recommendations = n.pendingRecommendations?.() ?? [], t.recommendationsFilling = !0, p()));
}, h = () => {
- t.cancelIdle(), t.cancelIdle = JAe(() => {
+ t.cancelIdle(), t.cancelIdle = YAe(() => {
t.nextRecommendations || p();
});
}, g = h, _ = (n) => {
@@ -70082,9 +70085,9 @@ function ZAe(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 ? [] : WAe(t.pool, o()), t.active = -1;
+ t.query = i().value.trim(), t.picks = t.query ? [] : GAe(t.pool, o()), t.active = -1;
let a = n();
- a && (KAe(z$(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
+ a && (qAe(z$(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();
}, S = () => {
t.active = -1, t.kind = "", clearTimeout(t.timer);
let e = i().value.trim();
@@ -70111,10 +70114,10 @@ function ZAe(e, t, n, r) {
};
return {
input: (n) => {
- t.cancelRoll(), !$U(n) && (t.dismissed = !1, e().helpers.typed(i()), S());
+ t.cancelRoll(), !QU(n) && (t.dismissed = !1, e().helpers.typed(i()), S());
},
key: (n) => {
- if ($U(n)) return;
+ if (QU(n)) return;
let r = i();
if (n.key === "Escape") {
if (y()) {
@@ -70161,7 +70164,7 @@ function ZAe(e, t, n, r) {
rotatePlaceholder: d
};
}
-function QAe({ tabs: e, kind: t, onPick: n, wire: r }) {
+function $Ae({ tabs: e, kind: t, onPick: n, wire: r }) {
let i = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
r(i.current);
@@ -70175,9 +70178,9 @@ function QAe({ 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)(mW, { value: i }) : null]
+ children: [r, i ? /* @__PURE__ */ (0, I.jsx)(pW, { value: i }) : null]
}, e || "all");
- return /* @__PURE__ */ (0, I.jsxs)(LI, {
+ return /* @__PURE__ */ (0, I.jsxs)(II, {
ref: i,
"data-search-tabs": "",
"data-pill-nav": "",
@@ -70187,8 +70190,8 @@ function QAe({ tabs: e, kind: t, onPick: n, wire: r }) {
});
}
var G$ = (e) => e.preventDefault();
-function $Ae({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
- aL();
+function eje({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {
+ iL();
let o = {
"data-search-value": e.value,
"data-active": t ? "" : void 0,
@@ -70351,8 +70354,8 @@ function q$({ item: e, kind: t }) {
});
}
// src/react/settings/configuration.ts
-var J$ = ["configuration"], Y$ = (e) => B(VY, e);
-async function eje(e) {
+var J$ = ["configuration"], Y$ = (e) => B(BY, e);
+async function tje(e) {
await H.fetchQuery({
queryKey: J$,
queryFn: () => Y$(e)
@@ -70405,7 +70408,7 @@ function Q$({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a =
"aria-describedby": s
});
}
-function tje({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {
+function nje({ 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
@@ -70439,7 +70442,7 @@ function tje({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet
});
}
// src/react/settings-panel/glow-settings.tsx
-var nje = [
+var rje = [
[
"strength",
"强度",
@@ -70466,8 +70469,8 @@ var nje = [
100
]
];
-function rje({ host: e, spot: t, index: n, glow: r }) {
- let i = ple[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = RV(), [l, u] = (0, F.useState)("all");
+function ije({ host: e, spot: t, index: n, glow: r }) {
+ let i = ple[n], a = (0, F.useRef)(null), o = (0, F.useRef)(null), s = (0, F.useRef)(null), c = LV(), [l, u] = (0, F.useState)("all");
(0, F.useLayoutEffect)(() => {
let [e, t, n] = [
a.current,
@@ -70505,7 +70508,7 @@ function rje({ host: e, spot: t, index: n, glow: r }) {
children: d
})]
}),
- /* @__PURE__ */ (0, I.jsx)(WF, { name: "chevron-down" })
+ /* @__PURE__ */ (0, I.jsx)(UF, { name: "chevron-down" })
]
}), /* @__PURE__ */ (0, I.jsxs)("div", {
className: "popmenu",
@@ -70548,7 +70551,7 @@ function rje({ host: e, spot: t, index: n, glow: r }) {
})]
});
}
-function ije({ host: e }) {
+function aje({ host: e }) {
let t = e.store.value.homeGlow, n = Hj(t.preset);
return /* @__PURE__ */ (0, I.jsxs)("section", {
"data-glow-setting": "",
@@ -70571,7 +70574,7 @@ function ije({ host: e }) {
children: mle(t.preset)
})]
}),
- /* @__PURE__ */ (0, I.jsx)(zM, {
+ /* @__PURE__ */ (0, I.jsx)(RM, {
store: e.store,
label: "光晕配色"
}),
@@ -70582,7 +70585,7 @@ function ije({ host: e }) {
}),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-fields": "",
- children: nje.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(tje, {
+ children: rje.map(([r, i, a]) => /* @__PURE__ */ (0, I.jsx)(nje, {
field: r,
label: i,
max: a,
@@ -70622,7 +70625,7 @@ function ije({ host: e }) {
"data-glow-colour-card": "",
children: /* @__PURE__ */ (0, I.jsx)("div", {
"data-glow-stops": "",
- children: zj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(rje, {
+ children: zj.map((n, r) => /* @__PURE__ */ (0, I.jsx)(ije, {
host: e,
spot: n,
index: r,
@@ -70634,7 +70637,7 @@ function ije({ host: e }) {
});
}
// src/react/settings-panel/number-setting.tsx
-var aje = {
+var oje = {
batchSizeSetting: {
min: 1,
max: 200,
@@ -70688,7 +70691,7 @@ function e1(e, t) {
return Number.isInteger(n) ? `${n.toLocaleString()} 天` : `约 ${n.toFixed(1)} 天`;
}
function t1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
- let a = aje[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
+ let a = oje[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, F.useRef)(0);
d.current ||= Oj(Number(localStorage.getItem($$(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)(() => {
@@ -70756,7 +70759,7 @@ function t1({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {
});
}
// src/react/boardui/components/base/kbd/kbd.tsx
-function oje({ className: e, ref: t, ...n }) {
+function sje({ className: e, ref: t, ...n }) {
return /* @__PURE__ */ (0, I.jsx)("kbd", {
ref: t,
className: q("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),
@@ -70764,7 +70767,7 @@ function oje({ className: e, ref: t, ...n }) {
});
}
// src/react/components/keycap.tsx
-function sje({ keys: e, plus: t }) {
+function cje({ 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", {
@@ -70779,7 +70782,7 @@ function sje({ keys: e, plus: t }) {
});
}
// src/keyboard-shortcut.ts
-var n1 = "peach.sfw-shortcut", cje = "Shift+KeyS", r1 = /^(?:Key[A-Z]|Digit[0-9]|F(?:[1-9]|1[0-2]))$/, lje = /^(?:Shift|Control|Alt|Meta|OS)(?:Left|Right)?$/, uje = /* @__PURE__ */ new Set([
+var n1 = "peach.sfw-shortcut", lje = "Shift+KeyS", r1 = /^(?:Key[A-Z]|Digit[0-9]|F(?:[1-9]|1[0-2]))$/, uje = /^(?:Shift|Control|Alt|Meta|OS)(?:Left|Right)?$/, dje = /* @__PURE__ */ new Set([
"KeyW",
"KeyT",
"KeyN",
@@ -70812,12 +70815,12 @@ function a1(e) {
].filter(Boolean).join("+");
}
function o1(e) {
- return !e.ctrl && !e.alt && !e.shift && !e.meta ? "至少要带一个修饰键,单独的字母会和播放器快捷键冲突" : (e.ctrl || e.meta) && uje.has(e.code) ? "这个组合被浏览器占用,页面收不到" : "";
+ return !e.ctrl && !e.alt && !e.shift && !e.meta ? "至少要带一个修饰键,单独的字母会和播放器快捷键冲突" : (e.ctrl || e.meta) && dje.has(e.code) ? "这个组合被浏览器占用,页面收不到" : "";
}
function s1(e) {
- return lje.test(e);
+ return uje.test(e);
}
-function dje(e) {
+function fje(e) {
if (s1(e.code)) return { state: "waiting" };
if (!r1.test(e.code)) return {
state: "invalid",
@@ -70838,13 +70841,13 @@ function dje(e) {
shortcut: t
};
}
-function fje(e, t) {
+function pje(e, t) {
return e.code === t.code && e.ctrlKey === t.ctrl && e.altKey === t.alt && e.shiftKey === t.shift && e.metaKey === t.meta;
}
function c1(e = navigator) {
return /mac|iphone|ipad|ipod/i.test(e.userAgentData?.platform || e.platform || "");
}
-var pje = {
+var mje = {
ArrowLeft: "←",
ArrowRight: "→",
ArrowUp: "↑",
@@ -70855,8 +70858,8 @@ var pje = {
Backspace: "Backspace",
Tab: "Tab"
};
-function mje(e) {
- return pje[e] ?? e.replace(/^Key|^Digit|^Numpad/, "");
+function hje(e) {
+ return mje[e] ?? e.replace(/^Key|^Digit|^Numpad/, "");
}
function l1(e, t, n = c1()) {
let r = n ? [
@@ -70875,13 +70878,13 @@ function l1(e, t, n = c1()) {
e.shift,
e.meta
];
- return [...r.filter((e, t) => i[t]), ...t ? [mje(t)] : []];
+ return [...r.filter((e, t) => i[t]), ...t ? [hje(t)] : []];
}
function u1(e, t = c1()) {
return l1(e, e.code, t).join(t ? "" : "+");
}
// src/react/settings-panel/shortcut-setting.tsx
-var hje = 600, d1 = {
+var gje = 600, d1 = {
ctrl: !1,
alt: !1,
shift: !1,
@@ -70892,7 +70895,7 @@ var hje = 600, d1 = {
shift: e.shiftKey,
meta: e.metaKey
});
-function gje({ current: e, onChange: t }) {
+function _je({ current: e, onChange: t }) {
let [n, r] = (0, F.useState)(!1), [i, a] = (0, F.useState)(""), [o, s] = (0, F.useState)({
modifiers: d1,
code: null
@@ -70914,7 +70917,7 @@ function gje({ current: e, onChange: t }) {
modifiers: f1(e),
code: n ? null : e.code
}), a("");
- let r = dje(e);
+ let r = fje(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 ? {
@@ -70927,7 +70930,7 @@ function gje({ current: e, onChange: t }) {
};
}, [n, t]), (0, F.useEffect)(() => {
if (!c) return;
- let e = window.setTimeout(() => l(null), hje);
+ let e = window.setTimeout(() => l(null), gje);
return () => window.clearTimeout(e);
}, [c]);
let d = c1(), f = (e, t, n) => l1(e, t, d).map((e) => ({
@@ -70936,7 +70939,7 @@ function gje({ current: e, onChange: t }) {
})), 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 = a1(e) !== cje, _ = c ? `已改为 ${u1(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 = a1(e) !== lje, _ = c ? `已改为 ${u1(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", {
@@ -70947,10 +70950,10 @@ function gje({ current: e, onChange: t }) {
"data-setting-shortcut": "",
className: "peach-react",
children: [
- h ? /* @__PURE__ */ (0, I.jsx)(sje, {
+ h ? /* @__PURE__ */ (0, I.jsx)(cje, {
keys: h,
plus: !d
- }) : /* @__PURE__ */ (0, I.jsx)(oje, {
+ }) : /* @__PURE__ */ (0, I.jsx)(sje, {
"data-shortcut-keys": "",
"aria-label": `当前快捷键 ${u1(e, d)}`,
children: u1(e, d)
@@ -70977,7 +70980,7 @@ function gje({ current: e, onChange: t }) {
}
// src/react/sidebar/sidebar-order.ts
function p1(e) {
- let { mutate: t } = $Y();
+ let { mutate: t } = QY();
return (0, F.useCallback)((n) => {
e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });
}, [e, t]);
@@ -70991,8 +70994,8 @@ function m1(e, t, n, r) {
return o < 0 ? null : (i.splice(o + +!!r, 0, t), i);
}
// src/react/settings-panel/sidebar-order.tsx
-var _je = "__home__", h1 = (e) => e === "" ? _je : e;
-function vje({ host: e }) {
+var vje = "__home__", h1 = (e) => e === "" ? vje : e;
+function yje({ host: e }) {
let t = p1(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 = m1(n, e, r, i);
a && t(a);
@@ -71054,9 +71057,9 @@ function vje({ host: e }) {
/* @__PURE__ */ (0, I.jsx)("i", {
"data-sidebar-grip": "",
"aria-hidden": "true",
- children: /* @__PURE__ */ (0, I.jsx)(WF, { name: "grip-vertical" })
+ children: /* @__PURE__ */ (0, I.jsx)(UF, { name: "grip-vertical" })
}),
- /* @__PURE__ */ (0, I.jsx)(WF, { name: a ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(UF, { name: a ?? "" }),
/* @__PURE__ */ (0, I.jsx)("b", { children: r })
]
}), /* @__PURE__ */ (0, I.jsxs)("span", {
@@ -71070,7 +71073,7 @@ function vje({ host: e }) {
title: "上移",
disabled: o === 0,
onClick: () => _(e, -1),
- children: /* @__PURE__ */ (0, I.jsx)(WF, { name: "chevron-up" })
+ children: /* @__PURE__ */ (0, I.jsx)(UF, { name: "chevron-up" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -71080,7 +71083,7 @@ function vje({ host: e }) {
title: "下移",
disabled: o === i.length - 1,
onClick: () => _(e, 1),
- children: /* @__PURE__ */ (0, I.jsx)(WF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(UF, { name: "chevron-down" })
}),
/* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
@@ -71092,7 +71095,7 @@ function vje({ host: e }) {
onClick: () => {
n.length > 1 && t(n.filter((t) => t !== e));
},
- children: /* @__PURE__ */ (0, I.jsx)(WF, { name: "eye-off" })
+ children: /* @__PURE__ */ (0, I.jsx)(UF, { name: "eye-off" })
})
]
})]
@@ -71112,13 +71115,13 @@ function vje({ host: e }) {
ref: m,
onClick: b,
children: v ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(WF, { name: v[2] ?? "" }),
+ /* @__PURE__ */ (0, I.jsx)(UF, { name: v[2] ?? "" }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-add-label": "",
children: v[1]
}),
- /* @__PURE__ */ (0, I.jsx)(WF, { name: "chevron-down" })
- ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(WF, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
+ /* @__PURE__ */ (0, I.jsx)(UF, { name: "chevron-down" })
+ ] }) : /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(UF, { name: "check" }), /* @__PURE__ */ (0, I.jsx)("span", { children: "全部页面都已显示" })] })
}), a.length ? /* @__PURE__ */ (0, I.jsx)("div", {
className: "popmenu",
"data-sidebar-add-menu": "",
@@ -71136,7 +71139,7 @@ function vje({ host: e }) {
onClick: () => {
s(h1(e)), y(), m.current?.focus();
},
- children: [/* @__PURE__ */ (0, I.jsx)(WF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
+ children: [/* @__PURE__ */ (0, I.jsx)(UF, { name: n ?? "" }), /* @__PURE__ */ (0, I.jsx)("span", { children: t })]
}, h1(e)))
}) : null]
}), /* @__PURE__ */ (0, I.jsx)("button", {
@@ -71159,7 +71162,7 @@ var g1 = [
["JAV 与新作", "jav"],
["搜索与推荐", "ri-search-line"],
["内容显示", "ri-shield-check-line"]
-], yje = [
+], bje = [
["seed", "随机"],
["rating", "评分"],
["o", "高潮计数"],
@@ -71168,7 +71171,7 @@ var g1 = [
["size", "体积"],
["new", "入库时间"],
["played", "观看时间"]
-], bje = [["desc", "降序"], ["asc", "升序"]], xje = [[
+], xje = [["desc", "降序"], ["asc", "升序"]], Sje = [[
"cover",
"官方封面",
""
@@ -71176,7 +71179,7 @@ var g1 = [
"thumbnail",
"预览图",
""
-]], Sje = [
+]], Cje = [
[
"feedHideGroupSetting",
"feedHideGroupCompilations",
@@ -71195,32 +71198,32 @@ var g1 = [
"切片",
"隐藏切片"
]
-], Cje = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", _1 = null, v1 = {
+], wje = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", _1 = null, v1 = {
open: !1,
closing: !1,
epoch: 0,
tab: 0,
configurable: null
}, y1 = 0, b1 = null, x1 = /* @__PURE__ */ new Set();
-function wje(e) {
+function Tje(e) {
return x1.add(e), () => {
x1.delete(e);
};
}
-function Tje() {
+function Eje() {
for (let e of [...x1]) e();
}
function S1(e) {
v1 = {
...v1,
...e
- }, (0, Rt.flushSync)(Tje);
+ }, (0, Rt.flushSync)(Eje);
}
-async function Eje(e) {
+async function Dje(e) {
let t = v1.epoch, n = await e.configurable();
v1.open && v1.epoch === t && S1({ configurable: n });
}
-function Dje(e = "") {
+function Oje(e = "") {
let t = _1;
if (!t) return;
let n = g1.findIndex(([t]) => t === e);
@@ -71229,7 +71232,7 @@ function Dje(e = "") {
return;
}
os(), y1 += 1, b1 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");
- let r = ZTe();
+ let r = $Te();
S1({
open: !0,
closing: !1,
@@ -71238,7 +71241,7 @@ function Dje(e = "") {
tab: n >= 0 ? n : v1.tab
}), r.then((e) => {
e && t.syncRemote(e);
- }), Eje(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
+ }), Dje(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());
}
function C1(e = !0) {
if (!v1.open || v1.closing) return;
@@ -71252,31 +71255,31 @@ function C1(e = !0) {
};
matchMedia("(prefers-reduced-motion: reduce)").matches ? queueMicrotask(n) : (document.querySelector("#settingsPanel > [data-settings-card]")?.addEventListener("animationend", n, { once: !0 }), setTimeout(n, 380));
}
-var Oje = {
- open: Dje,
+var kje = {
+ open: Oje,
close: C1,
isOpen: () => v1.open,
reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))
};
-function kje(e) {
- return _1 = e, Oje;
+function Aje(e) {
+ return _1 = e, kje;
}
-function Aje() {
- let e = (0, F.useSyncExternalStore)(wje, () => v1);
- return _1 ? /* @__PURE__ */ (0, I.jsx)(Nje, {
+function jje() {
+ let e = (0, F.useSyncExternalStore)(Tje, () => v1);
+ return _1 ? /* @__PURE__ */ (0, I.jsx)(Pje, {
host: _1,
view: e
}) : null;
}
-function jje(e) {
+function Mje(e) {
if (e.key !== "Tab") return;
- let t = [...e.currentTarget.querySelectorAll(Cje)].filter((e) => e.getClientRects().length > 0);
+ let t = [...e.currentTarget.querySelectorAll(wje)].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 w1 = (e) => `settings-tab-${e}`, T1 = (e) => `settings-group-${e}`;
-function Mje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect: i }) {
+function Nje({ 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;
@@ -71348,7 +71351,7 @@ function Mje({ 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)(WF, { name: n }) : /* @__PURE__ */ (0, I.jsx)(Zde, { name: n }), t]
+ children: [n === "jav" ? /* @__PURE__ */ (0, I.jsx)(UF, { name: n }) : /* @__PURE__ */ (0, I.jsx)(Qde, { name: n }), t]
}, t)),
/* @__PURE__ */ (0, I.jsx)("div", {
"data-settings-service": "",
@@ -71359,9 +71362,9 @@ function Mje({ tab: e, epoch: t, configurable: n, openConfiguration: r, onSelect
onClick: r,
title: n === !1 ? "请在运行 Peach 的设备上打开 Peach 配置" : void 0,
children: [
- /* @__PURE__ */ (0, I.jsx)(WF, { name: "folder-cog" }),
+ /* @__PURE__ */ (0, I.jsx)(UF, { name: "folder-cog" }),
"Peach 配置",
- /* @__PURE__ */ (0, I.jsx)(WF, { name: "chevron-right" })
+ /* @__PURE__ */ (0, I.jsx)(UF, { name: "chevron-right" })
]
})
})
@@ -71404,7 +71407,7 @@ function O1({ 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 Nje({ host: e, view: t }) {
+function Pje({ 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];
@@ -71436,7 +71439,7 @@ function Nje({ host: e, view: t }) {
"aria-labelledby": "settingsTitle",
"data-closing": t.closing ? "" : void 0,
ref: r,
- onKeyDown: jje,
+ onKeyDown: Mje,
onClick: (e) => {
e.target === e.currentTarget && C1();
},
@@ -71450,13 +71453,13 @@ function Nje({ host: e, view: t }) {
children: [/* @__PURE__ */ (0, I.jsx)("h2", {
id: "settingsTitle",
children: g1[t.tab][0]
- }), /* @__PURE__ */ (0, I.jsx)(fV, {
+ }), /* @__PURE__ */ (0, I.jsx)(dV, {
id: "settingsClose",
label: "关闭设置",
onPress: () => C1()
})]
}),
- /* @__PURE__ */ (0, I.jsx)(Mje, {
+ /* @__PURE__ */ (0, I.jsx)(Nje, {
tab: t.tab,
epoch: d,
configurable: t.configurable,
@@ -71525,7 +71528,7 @@ function Nje({ host: e, view: t }) {
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(ije, { host: e }),
+ /* @__PURE__ */ (0, I.jsx)(aje, { host: e }),
/* @__PURE__ */ (0, I.jsxs)("section", {
"data-setting-block": "",
"aria-labelledby": "sidebarOrderTitle",
@@ -71537,18 +71540,18 @@ function Nje({ host: e, view: t }) {
"data-setting-card": "",
children: /* @__PURE__ */ (0, I.jsx)("section", {
"data-sidebar-setting": "",
- children: /* @__PURE__ */ (0, I.jsx)(vje, { host: e })
+ children: /* @__PURE__ */ (0, I.jsx)(yje, { host: e })
})
})]
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(Fje, {
+ /* @__PURE__ */ (0, I.jsx)(Ije, {
host: e,
tab: t.tab,
epoch: d
}),
- /* @__PURE__ */ (0, I.jsx)(Ije, {
+ /* @__PURE__ */ (0, I.jsx)(Lje, {
host: e,
tab: t.tab,
epoch: d
@@ -71557,7 +71560,7 @@ function Nje({ host: e, view: t }) {
index: 3,
tab: t.tab,
children: [
- /* @__PURE__ */ (0, I.jsx)(Bje, {
+ /* @__PURE__ */ (0, I.jsx)(Vje, {
host: e,
epoch: d
}),
@@ -71579,7 +71582,7 @@ function Nje({ host: e, view: t }) {
title: "口味与记录",
children: /* @__PURE__ */ (0, I.jsx)("div", {
className: "peach-react",
- children: /* @__PURE__ */ (0, I.jsx)(bL, {
+ children: /* @__PURE__ */ (0, I.jsx)(yL, {
variant: "secondary",
href: "/taste",
onClick: () => C1(!1),
@@ -71599,7 +71602,7 @@ function Nje({ host: e, view: t }) {
checked: e.censored(),
description: "隐藏敏感画面,停止悬停预览。",
onToggle: (t) => e.setCensored(t)
- }), /* @__PURE__ */ (0, I.jsx)(gje, {
+ }), /* @__PURE__ */ (0, I.jsx)(_je, {
current: e.sfwShortcut(),
onChange: e.setSfwShortcut
})]
@@ -71610,7 +71613,7 @@ function Nje({ host: e, view: t }) {
})
});
}
-function Pje(e, t) {
+function Fje(e, t) {
let n = e.querySelector("[data-select-label]");
if (!n) return;
n.querySelector("[data-icon-swap]") || (n.innerHTML = Ks("arrow-up", "arrow-down", "a", {
@@ -71620,7 +71623,7 @@ function Pje(e, t) {
let r = n.querySelector("[data-sort-direction-label]");
r && (r.textContent = t ? "升序" : "降序");
}
-function Fje({ host: e, tab: t, epoch: n }) {
+function Ije({ 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)(E1, {
index: 1,
@@ -71652,7 +71655,7 @@ function Fje({ host: e, tab: t, epoch: n }) {
children: [/* @__PURE__ */ (0, I.jsx)(Q$, {
id: "defaultSortSetting",
label: "默认排序",
- options: yje,
+ options: bje,
value: r.defaultSort,
epoch: n,
onPick: (t) => {
@@ -71661,7 +71664,7 @@ function Fje({ host: e, tab: t, epoch: n }) {
}), /* @__PURE__ */ (0, I.jsx)(Q$, {
id: "defaultSortDirectionSetting",
label: "默认排序方向",
- options: bje,
+ options: xje,
value: o ? "asc" : "desc",
hidden: a,
disabled: a,
@@ -71669,7 +71672,7 @@ function Fje({ host: e, tab: t, epoch: n }) {
onPick: (t) => {
r.defaultSortDirection = t, i(), e.changed("sortDirection");
},
- decorate: (e) => Pje(e, o)
+ decorate: (e) => Fje(e, o)
})]
})
}),
@@ -71719,14 +71722,14 @@ function Fje({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "播放"
}),
- /* @__PURE__ */ (0, I.jsx)(zje, {
+ /* @__PURE__ */ (0, I.jsx)(Bje, {
host: e,
epoch: n
})
]
});
}
-function Ije({ host: e, tab: t, epoch: n }) {
+function Lje({ host: e, tab: t, epoch: n }) {
let r = e.store.value, i = () => e.store.save();
return /* @__PURE__ */ (0, I.jsxs)(E1, {
index: 2,
@@ -71736,7 +71739,7 @@ function Ije({ host: e, tab: t, epoch: n }) {
"data-settings-subheading": "",
children: "作品显示"
}),
- /* @__PURE__ */ (0, I.jsx)(Lje, {
+ /* @__PURE__ */ (0, I.jsx)(Rje, {
host: e,
epoch: n
}),
@@ -71746,7 +71749,7 @@ function Ije({ host: e, tab: t, epoch: n }) {
id: "javImageSetting",
name: "jav-image",
legend: "默认图片",
- options: xje,
+ options: Sje,
value: r.javImage,
attr: "data-jav-image-choice",
variant: "javimageswitch",
@@ -71783,7 +71786,7 @@ function Ije({ host: e, tab: t, epoch: n }) {
r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");
}
}),
- Sje.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(Rje, {
+ Cje.map(([t, n, r, i]) => /* @__PURE__ */ (0, I.jsx)(zje, {
host: e,
id: t,
settingKey: n,
@@ -71793,12 +71796,12 @@ function Ije({ host: e, tab: t, epoch: n }) {
]
});
}
-function Lje({ host: e, epoch: t }) {
+function Rje({ host: e, epoch: t }) {
let n = Ft({
- queryKey: qY,
- queryFn: ({ signal: e }) => QY(e),
+ queryKey: KY,
+ queryFn: ({ signal: e }) => ZY(e),
staleTime: 0
- }), r = $Y(), [i, a] = (0, F.useState)(null), o = n.data?.performerNameLanguage;
+ }), r = QY(), [i, a] = (0, F.useState)(null), o = n.data?.performerNameLanguage;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(O1, {
title: "女优名称",
description: /* @__PURE__ */ (0, I.jsx)("small", {
@@ -71823,13 +71826,13 @@ function Lje({ host: e, epoch: t }) {
}));
}
})
- }), n.isError ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ }), n.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: "未取得数据库中的名称偏好,请重新打开设置。"
}) : null] });
}
-function Rje({ host: e, id: t, settingKey: n, label: r, title: i }) {
- let a = $Y(), [o, s] = (0, F.useState)(null), c = (0, F.useRef)(null), l = e.store.value, u = (t) => {
+function zje({ 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), 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}`);
@@ -71853,7 +71856,7 @@ function Rje({ host: e, id: t, settingKey: n, label: r, title: i }) {
})]
});
}
-function zje({ host: e, epoch: t }) {
+function Bje({ 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)(D1, {
@@ -71888,8 +71891,8 @@ function zje({ host: e, epoch: t }) {
})
] });
}
-function Bje({ host: e, epoch: t }) {
- let n = e.store.value, r = $Y();
+function Vje({ host: e, epoch: t }) {
+ let n = e.store.value, r = QY();
return /* @__PURE__ */ (0, I.jsx)(O1, {
title: "搜索记录数量",
children: /* @__PURE__ */ (0, I.jsx)("div", {
@@ -71906,7 +71909,7 @@ function Bje({ host: e, epoch: t }) {
});
}
// src/react/sidebar/use-sidebar-reorder.ts
-function Vje(e, t, n, r) {
+function Hje(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,
@@ -72042,7 +72045,7 @@ function Vje(e, t, n, r) {
};
}
// src/react/sidebar/sidebar-island.tsx
-var k1 = "__home__", Hje = {
+var k1 = "__home__", Uje = {
creator: 26,
tag: 30,
tech: 16
@@ -72054,7 +72057,7 @@ var k1 = "__home__", Hje = {
},
epoch: 0
}, N1 = /* @__PURE__ */ new Set();
-function Uje(e) {
+function Wje(e) {
return N1.add(e), () => {
N1.delete(e);
};
@@ -72062,7 +72065,7 @@ function Uje(e) {
function P1() {
for (let e of [...N1]) e();
}
-var Wje = {
+var Gje = {
render(e) {
M1 = {
...M1,
@@ -72076,7 +72079,7 @@ var Wje = {
}, (0, Rt.flushSync)(P1);
}
};
-function Gje(e) {
+function Kje(e) {
return j1 = e, M1 = {
...M1,
props: {
@@ -72084,26 +72087,26 @@ function Gje(e) {
filters: {},
latest: null
}
- }, Wje;
+ }, Gje;
}
-function Kje() {
- let e = (0, F.useSyncExternalStore)(Uje, () => M1);
- return j1 ? /* @__PURE__ */ (0, I.jsx)(qje, {
+function qje() {
+ let e = (0, F.useSyncExternalStore)(Wje, () => M1);
+ return j1 ? /* @__PURE__ */ (0, I.jsx)(Jje, {
host: j1,
props: e.props,
epoch: e.epoch
}) : null;
}
-function qje({ host: e, props: t, epoch: n }) {
+function Jje({ 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)(Jje, {
+ /* @__PURE__ */ (0, I.jsx)(Yje, {
host: e,
epoch: n,
version: r
}),
- t.content ? /* @__PURE__ */ (0, I.jsx)(Xje, {
+ t.content ? /* @__PURE__ */ (0, I.jsx)(Zje, {
host: e,
content: t.content,
filters: t.filters,
@@ -72111,8 +72114,8 @@ function qje({ host: e, props: t, epoch: n }) {
}) : null
] });
}
-function Jje({ host: e, epoch: t, version: n }) {
- let r = p1(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = vL(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || k1 : "").join(",")}`, { axis: "y" }), { sync: d } = u;
+function Yje({ host: e, epoch: t, version: n }) {
+ let r = p1(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 = _L(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || k1 : "").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());
[
@@ -72131,7 +72134,7 @@ function Jje({ host: e, epoch: t, version: n }) {
i.disconnect(), cancelAnimationFrame(a), document.removeEventListener("board:sidebar", o);
};
}, [e, d]);
- let f = Vje(c, i, r, () => requestAnimationFrame(d)), p = e.scroll.parentElement;
+ let f = Hje(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,
@@ -72167,7 +72170,7 @@ function Jje({ host: e, epoch: t, version: n }) {
alt: "",
decoding: "async",
draggable: !1
- }) : /* @__PURE__ */ (0, I.jsx)(WF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
+ }) : /* @__PURE__ */ (0, I.jsx)(UF, { name: r }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
}, t || k1);
}),
f.hint ? /* @__PURE__ */ (0, I.jsx)("span", {
@@ -72190,7 +72193,7 @@ function Jje({ host: e, epoch: t, version: n }) {
}), p) : null] });
}
var F1 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);
-function Yje(e) {
+function Xje(e) {
if (!e) return null;
let t = /* @__PURE__ */ new Map(), n = [
["loc", e.locations],
@@ -72204,7 +72207,7 @@ function Yje(e) {
for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);
return t;
}
-function Xje({ host: e, content: t, filters: n, latest: r }) {
+function Zje({ host: e, content: t, filters: n, latest: r }) {
let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}:${(t.providers || []).map((e) => e.value).join(",")}:${n.provider ?? ""}:${+!!t.duration}:${n.dur_min ?? ""}:${n.dur_max ?? ""}`;
(0, F.useLayoutEffect)(() => {
t.kind === "catalog" && ec(e.scroll, "drawer");
@@ -72213,8 +72216,8 @@ function Xje({ host: e, content: t, filters: n, latest: r }) {
i,
t.kind
]);
- let a = t.kind === "catalog" ? Zje(e, t.facets, n, r, i) : Qje(e, t, n), o = 0;
- return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)($je, {
+ let a = t.kind === "catalog" ? Qje(e, t.facets, n, r, i) : $je(e, t, n), o = 0;
+ return a.map((e) => e && /* @__PURE__ */ (0, I.jsx)(eMe, {
title: e.title,
kind: e.kind,
active: e.active,
@@ -72223,8 +72226,8 @@ function Xje({ host: e, content: t, filters: n, latest: r }) {
children: e.body
}, e.title));
}
-function Zje(e, t, n, r, i) {
- let a = Yje(r), o = (t, r, i) => {
+function Qje(e, t, n, r, i) {
+ let a = Xje(r), o = (t, r, i) => {
if (!t.length) return null;
let o = F1(n, r);
return /* @__PURE__ */ (0, I.jsx)(R1, {
@@ -72249,12 +72252,12 @@ function Zje(e, t, n, r, i) {
title: t,
kind: s,
active: p,
- body: /* @__PURE__ */ (0, I.jsx)(tMe, {
+ body: /* @__PURE__ */ (0, I.jsx)(nMe, {
epoch: i,
title: t,
rows: c,
latest: m ?? null,
- limit: Hje[d],
+ limit: Uje[d],
filterKey: l,
selected: f,
counts: a,
@@ -72293,7 +72296,7 @@ function Zje(e, t, n, r, i) {
} : null
];
}
-function Qje(e, t, n) {
+function $je(e, t, n) {
let r = t.providers || [], i = F1(n, "provider"), a = new Set(t.selected);
return [
r.length ? {
@@ -72340,7 +72343,7 @@ function I1(e, t) {
} catch {}
return n === null ? t : n === "open";
}
-function $je({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {
+function eMe({ 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)(() => I1(e, n)), u = (0, F.useRef)(!1);
(0, F.useLayoutEffect)(() => {
let t = o.current, r = s.current;
@@ -72366,7 +72369,7 @@ function $je({ 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)(WF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, I.jsx)(UF, { name: "chevron-right" }), /* @__PURE__ */ (0, I.jsx)("span", { children: e })]
}), /* @__PURE__ */ (0, I.jsx)("div", {
ref: s,
"data-sidebar-collapse": "",
@@ -72387,8 +72390,8 @@ function $je({ title: e, kind: t, active: n, index: r, epoch: i, children: a })
});
}
var L1 = (0, F.createContext)(() => {});
-function eMe({ dot: e }) {
- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(WF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
+function tMe({ dot: e }) {
+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, I.jsx)(UF, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, I.jsx)("img", {
"data-sidebar-source-icon": "",
src: e.src,
alt: ""
@@ -72411,7 +72414,7 @@ function R1({ 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)(eMe, { dot: e.dot }),
+ /* @__PURE__ */ (0, I.jsx)(tMe, { dot: e.dot }),
/* @__PURE__ */ (0, I.jsx)("span", {
"data-sidebar-chip-label": "",
children: e.label
@@ -72426,7 +72429,7 @@ function R1({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a,
})
});
}
-function tMe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {
+function nMe({ 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)(L1), [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;
@@ -72467,7 +72470,7 @@ function tMe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, s
all: !_
}), _ && u());
},
- children: /* @__PURE__ */ (0, I.jsx)(WF, { name: "chevron-down" })
+ children: /* @__PURE__ */ (0, I.jsx)(UF, { name: "chevron-down" })
}) : null] });
}
function z1({ rows: e, host: t, selected: n, badges: r }) {
@@ -72576,11 +72579,11 @@ function H1() {
</div></div>`;
}
// src/react/settings/library-policy-copy.ts
-var U1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", nMe = [
+var U1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式只决定要不要联网补全。", rMe = [
"自动补全",
"仅使用本地资料",
"自定义"
-], rMe = [
+], iMe = [
[
"读本地 NFO 和图片",
"✓",
@@ -72611,7 +72614,7 @@ var U1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
"—",
"可选"
]
-], iMe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", W1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", G1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", K1 = "只填域名,留空用默认地址", aMe = [
+], aMe = "本地只有竖版海报时:自动补全会联网找完整封套(FC2 商品图除外),仅使用本地资料直接用竖版。", W1 = "一个媒体库可以有多个文件夹,作品合在一起显示,共用名称、颜色和处理方式;要分开显示或分开设置时再添加媒体库。", G1 = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", K1 = "只填域名,留空用默认地址", oMe = [
{
provider: "coomer",
label: "Coomer",
@@ -72701,7 +72704,7 @@ var U1 = "每个媒体库都先读本地 NFO 和同目录图片;处理方式
label: "SubscribeStar",
requirement: "none"
}
-], q1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", oMe = "peach.configuration.shape.v1";
+], q1 = "API 代理用于列目录和查询文件信息,数据代理用于读取视频及配套文件。保存后,同一网盘账号在 CloudDrive 中的其他读取也会使用此设置。", sMe = "peach.configuration.shape.v1";
function J1() {
try {
let e = JSON.parse(localStorage.getItem("peach.configuration.shape.v1") || "{}");
@@ -72710,11 +72713,11 @@ function J1() {
return {};
}
}
-function sMe(e, t) {
+function cMe(e, t) {
try {
let n = J1();
if (JSON.stringify(n[e]) === JSON.stringify(t)) return;
- localStorage.setItem(oMe, JSON.stringify({
+ localStorage.setItem(sMe, JSON.stringify({
...n,
[e]: t
}));
@@ -72725,16 +72728,16 @@ var Y1 = (e) => J1()[e], X1 = (e) => e === !0, Z1 = (e, t) => Number.isInteger(e
variant: t,
size: n,
attrs: $1
-}), o0 = (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>`, s0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, cMe = (e, t, n) => {
+}), o0 = (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>`, s0 = (e, t = !1) => `<div class="flex flex-col gap-4 ${t ? "border-t border-separator-border " : ""}py-4 pr-3">${e}</div>`, lMe = (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">${i0()}${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;
-}, c0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${cMe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? o0(n, i) : ""}</div></section>`, l0 = (e, t, n, r = "") => {
+}, c0 = (e, t, n = "", { aside: r = "", status: i = "", mark: a = !1 } = {}) => `<section aria-label="${e}" class="flex w-full flex-col gap-2 wrap-anywhere">${lMe(e, r, a)}<div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${t}${n ? o0(n, i) : ""}</div></section>`, l0 = (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>`;
-}, u0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => l0(e, t, `<span class="skeleton ${n}"></span>`), d0 = (e, t = "", n = "4em") => l0(e, t, e0(n)), f0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, p0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, m0 = (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>${t0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, h0 = (e) => `<div class="flex flex-col gap-1">${p0(e)}${As(e0("8em"))}</div>`, g0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${n0("16px", "16px")}${e}</span>`, _0 = (e) => `<span class="inline-flex items-center gap-1">${i0()}${e}</span>`, v0 = (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>`, lMe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), y0 = (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">${lMe.has(e) ? e0("100%") + e0("80%") + e0("6em") : e0("6em")}</dd></div>`).join("")}</dl>`, uMe = aMe;
-function dMe(e = Y1("credentials")) {
+}, u0 = (e, t = "", n = "ui-configuration-skeleton-toggle") => l0(e, t, `<span class="skeleton ${n}"></span>`), d0 = (e, t = "", n = "4em") => l0(e, t, e0(n)), f0 = (e) => `<p class="text-body-2-regular text-text-secondary">${e}</p>`, p0 = (e) => `<p class="text-body-medium text-text-primary">${e}</p>`, m0 = (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>${t0()}${t ? `<span class="pt-px text-caption-1-medium text-text-secondary">${t}</span>` : ""}</div>`, h0 = (e) => `<div class="flex flex-col gap-1">${p0(e)}${As(e0("8em"))}</div>`, g0 = (e) => `<span class="flex items-center gap-2 text-body-regular text-text-primary">${n0("16px", "16px")}${e}</span>`, _0 = (e) => `<span class="inline-flex items-center gap-1">${i0()}${e}</span>`, v0 = (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>`, uMe = /* @__PURE__ */ new Set(["FFmpeg", "untrunc"]), y0 = (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">${uMe.has(e) ? e0("100%") + e0("80%") + e0("6em") : e0("6em")}</dd></div>`).join("")}</dl>`, dMe = oMe;
+function fMe(e = Y1("credentials")) {
let t = new Set(Q1(e?.done, 64, String));
- return uMe.map((e) => {
+ return dMe.map((e) => {
let n = t.has(e.provider);
return {
...e,
@@ -72743,19 +72746,19 @@ function dMe(e = Y1("credentials")) {
};
});
}
-function fMe(e) {
+function pMe(e) {
let t = e.fields ?? [], n = e.requirement !== "none" && e.requirement !== "blocked", r = r0() + (n && !e.done ? t.map(() => r0("4.5em")).join("") : ""), i = `<span class="flex min-w-0 flex-wrap items-center gap-2">${n0("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 ? f0(z(e.why)) : ""}</div>`;
let a = e.open ? "<div class=\"flex flex-col gap-2 pt-3\"><div class=\"flex flex-col gap-3\">" + f0(`${z(e.why ?? "")}${e.where ? " 获取凭据" : ""}`) + (e.howto ? f0(z(e.howto)) : "") + `<div class="flex w-full flex-col gap-3">${t.map((e) => m0(z(e))).join("")}</div><div class="flex flex-wrap items-center gap-2">${a0("保存配置")}</div>${v0("凭据文件")}</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>${v0(e.done ? "修改凭据" : "填写凭据", e.open)}${a}</div></div>`;
}
function b0() {
- let e = dMe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
+ let e = fMe(), t = e.filter((e) => e.requirement === "required" && !e.done).length;
return c0("来源凭据", s0(`<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(fMe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? e0("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(pMe).join("")}</div></div>`).join("")}</div>`), "", { aside: t ? e0("5em") : "" });
}
function x0() {
let e = Q1(Y1("indexers")?.open, 20, X1).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" : ""}`)}${e0("6em")}${e0("12em")}</span>` + (e ? `<div class="flex flex-col gap-2 pt-3"><div class="flex min-w-0 flex-col gap-4">${m0("名称")}${m0("Torznab 地址")}${m0("API key")}<div class="flex flex-wrap items-center gap-x-6 gap-y-2">${g0("启用")}${a0("移除", "secondary", "small")}</div></div></div>` : "") + "</div>").join("");
@@ -72770,25 +72773,25 @@ function w0() {
let e = Y1("cloudProxy"), t = Q1(e?.accounts, 12, (e) => Array.isArray(e) ? [X1(e[0]), X1(e[1])] : [!1, !1]), n = Z1(e?.unlinked, 12), r = t.length || n ? Array.from({ length: n }, () => `<div class="flex min-w-0 flex-col gap-1">${p0(_0(e0("6em")))}${f0(e0("9em"))}</div>`).join("") + t.map(([e, t]) => `<div class="flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4">${p0(_0(e0("8em")))}${f0(e0("50%"))}${C0("数据代理", e)}${C0("API 代理", t)}<div class="flex justify-end">${a0("保存配置")}</div></div>`).join("") : f0(e0("60%"));
return c0("CloudDrive 代理", s0(`${f0(q1)}<div class="flex min-w-0 flex-col gap-4">${r}</div>`), a0("重新读取", "secondary"));
}
-var T0 = (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>`, pMe = (e) => `<div data-folder-row class="@container flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3">
+var T0 = (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>`, mMe = (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">${t0()}</span>${Os({
glyph: "folder-search",
variant: "secondary",
attrs: $1
})}</div>
<div class="flex flex-wrap items-end gap-2"><div class="flex w-full flex-wrap items-start gap-2">${T0("来源", As(e0("6em")), "w-full @lg:w-60")}${T0("读取策略", As(e0("4em")), "w-full @lg:w-32")}${e > 1 ? T0("移到媒体库", As(e0("4em")), "w-full @lg:w-48") : ""}</div></div>
- </div>`, mMe = (e, t) => `<div data-library-block class="min-w-0 bg-background-primary-default rounded-2xl shadow-card flex flex-col p-2">
+ </div>`, hMe = (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: $1
})}${t0()}<span class="skeleton ui-configuration-skeleton-input" style="width:136px"></span>${As(e0("4em"), { prefix: "处理方式" })}</div>
- <div data-library-folders>${pMe(t).repeat(e)}<div class="flex">${Os({
+ <div data-library-folders>${mMe(t).repeat(e)}<div class="flex">${Os({
label: "添加文件夹",
variant: "secondary",
attrs: $1
-})}</div></div></div>`, hMe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${U1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, gMe = "<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 _Me(e = Y1("media")) {
+})}</div></div></div>`, gMe = `<div data-policy-legend class="flex flex-col gap-1"><p class="text-body-2-regular text-text-secondary">${U1}</p><span class="flex items-center gap-1 text-body-2-medium text-text-secondary">三种处理方式对比</span></div>`, _Me = "<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 vMe(e = Y1("media")) {
let t = Q1(e?.folders, 12, (e) => Z1(e, 50)).filter(Boolean);
return t.length ? {
folders: t,
@@ -72798,7 +72801,7 @@ function _Me(e = Y1("media")) {
cloud: !1
};
}
-function vMe() {
+function yMe() {
let e = Y1("discovery"), t = X1(e?.enabled), n = t && X1(e?.cloud), r = n && X1(e?.webhook), i = `<div class="flex items-start gap-2"><span class="min-w-0 flex-1">${t0()}</span>${As(e0("4em"), { prefix: "对应目录" })}${Os({
glyph: "trash",
variant: "secondary",
@@ -72806,13 +72809,13 @@ function vMe() {
})}</div>`;
return c0("自动发现新文件", s0(`<div class="flex flex-wrap items-center gap-2"><span class="text-body-regular text-text-secondary">本机监视</span>${r0()}</div>`) + u0("发现新文件后自动入库", t ? e0("10em") : "") + u0("监视本机文件夹", t && X1(e?.watchLocal) ? e0("12em") : "") + u0("接收 CloudDrive2 通知", "网盘目录有变化时由 CloudDrive2 推送过来。") + (n ? l0("Webhook 配置", e0("20em"), "") : "") + (r ? s0(v0("查看配置"), !0) : "") + (n ? s0(`<div class="flex flex-col gap-3">${p0("云端路径前缀")}<div class="flex flex-col gap-3">${i.repeat(Z1(e?.prefixes, 20))}</div><div>${a0("添加前缀", "secondary")}</div></div>`, !0) : ""), (r ? a0("更换密钥", "secondary") : "") + a0("保存配置"));
}
-var yMe = () => {
- let e = _Me();
- return c0("媒体库与目录", s0(`${hMe}<div class="flex flex-col gap-4">${e.folders.map((t) => mMe(t, e.folders.length)).join("")}</div>
+var bMe = () => {
+ let e = vMe();
+ return c0("媒体库与目录", s0(`${gMe}<div class="flex flex-col gap-4">${e.folders.map((t) => hMe(t, e.folders.length)).join("")}</div>
<div class="self-start">${a0("添加媒体库", "secondary")}</div>
<p class="text-body-2-regular text-text-secondary">${W1}</p>
- ${e.cloud ? gMe : ""}<span class="text-body-medium text-text-primary">${e0("15em")}</span>`), a0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? w0() : "") + vMe() + c0("番号识别规则", s0(`${e0("90%")}${e0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), a0("保存配置")) + c0("视频预览", u0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + u0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + u0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
-}, bMe = () => `<div>${a0("采集来源与登录状态", "secondary")}</div>` + b0() + c0("关注采集", l0("自动检查更新", "", "<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>") + d0("订阅源拉取") + u0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + d0("头像刷新", "重新获取关注创作者的头像。") + d0("favicon 刷新", "重新获取来源站点的图标。")) + x0() + c0("作品资料站点", s0(`<p class="text-body-2-regular text-text-secondary">${G1}</p>${m0(_0("JavDB 地址"), K1)}${m0(_0("MISSAV 地址"), K1)}`), a0("保存配置")), xMe = () => {
+ ${e.cloud ? _Me : ""}<span class="text-body-medium text-text-primary">${e0("15em")}</span>`), a0("保存配置"), { status: "保存后 Peach 会重新启动。" }) + (e.cloud ? w0() : "") + yMe() + c0("番号识别规则", s0(`${e0("90%")}${e0("60%")}<span class="skeleton ui-configuration-skeleton-input" style="width:100%;height:88px"></span>`), a0("保存配置")) + c0("视频预览", u0("生成视频预览", "为本地视频生成九宫格与时间轴预览;关闭后仍按入库规则探测时长与分辨率。") + u0("时间轴预览", "按所选间隔抽帧,仅处理本机磁盘上的视频。", "ui-configuration-skeleton-select") + u0("抽帧解码方式", "用于生成封面、九宫格和时间轴。", "ui-configuration-skeleton-select"));
+}, xMe = () => `<div>${a0("采集来源与登录状态", "secondary")}</div>` + b0() + c0("关注采集", l0("自动检查更新", "", "<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>") + d0("订阅源拉取") + u0("首次采集范围", "新关注的来源第一次回看多久以前的内容。", "ui-configuration-skeleton-select") + d0("头像刷新", "重新获取关注创作者的头像。") + d0("favicon 刷新", "重新获取来源站点的图标。")) + x0() + c0("作品资料站点", s0(`<p class="text-body-2-regular text-text-secondary">${G1}</p>${m0(_0("JavDB 地址"), K1)}${m0(_0("MISSAV 地址"), K1)}`), a0("保存配置")), SMe = () => {
let e = Y1("downloads"), t = X1(e?.pikpak), n = X1(e?.pikpakRoots) ? h0(_0("PikPak 根目录对应的媒体目录")) : `<div class="flex flex-col gap-1">${p0(_0("PikPak 根目录对应的媒体目录"))}${f0("先在「媒体库与入库」添加 PikPak 挂载文件夹。")}</div>`, r = X1(e?.cloud) ? c0("云下载", s0(m0("CloudDrive2 地址") + m0("CloudDrive2 API 令牌", "需要离线任务权限。") + (X1(e?.has115) ? m0(_0("115 目标目录"), "应位于自动入库的云端路径前缀内。") : "") + (t ? m0(_0("PikPak 目标目录"), "目录要已经存在。") + n : "") + m0("等待上限(小时)", e0("14em"))), a0("检查连接", "secondary") + a0("保存配置")) : "", i = X1(e?.pikpakLoggedIn);
return r + (t ? c0("PikPak 账号", i ? y0(["账号", e0("4em")]) : s0(m0("账号") + m0("密码") + g0("保存密码,登录过期时自动重新登录")), i ? a0("登出", "secondary") : (X1(e?.browserLogin) ? a0("用浏览器登录", "secondary") : "") + a0("登录"), {
aside: r0(),
@@ -72826,7 +72829,7 @@ var yMe = () => {
quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",
named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"
};
-function SMe(e) {
+function CMe(e) {
let t = e === "locked" ? "" : m0(e === "password" ? "新访问密码 *" : "设置访问密码 *", "至少 8 个字符。保存后其他设备需要重新登录。") + m0(e === "password" ? "确认新访问密码 *" : "确认访问密码 *");
return (E0[e] ? f0(E0[e]) : "") + (e === "open" ? n0("100%", "64px") : "") + (e === "password" || e === "legacy" ? g0("关闭访问密码") : "") + (e === "password" ? m0("当前访问密码 *") : "") + t;
}
@@ -72834,20 +72837,20 @@ function O0() {
let e = Y1("devices");
return c0("已登录的设备", Array.from({ length: Math.max(1, Z1(e?.rows, 8)) }, () => l0(e0("8em"), e0("14em"), e0("3em"), n0("20px", "20px"))).join(""), X1(e?.manageable) ? a0("撤销其他设备", "secondary") : "", X1(e?.manageable) ? { status: "修改访问密码会让全部设备退出。" } : {});
}
-var CMe = () => {
+var wMe = () => {
let e = Y1("network"), t = typeof e?.access == "string" && e.access ? e.access : "legacy", n = X1(e?.tunnelNamed), r = (n && X1(e?.tunnelNamedMode) ? f0(D0.named) + m0("公开主机名", "Cloudflare Zero Trust 里指向这台电脑的主机名。") + m0("隧道令牌", e0("16em")) : f0(D0.quick)) + (X1(e?.tunnelNote) ? n0("100%", "64px") : ""), i = Z1(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">${m0([
"本机地址",
"手机连接地址",
"备用 IP 地址"
][t])}</div>${a0("复制地址", "secondary")}</div>`).join("");
- return (i || X1(e?.port) ? c0("访问地址", s0(a + (i ? n0("100%", "40px") : "") + (X1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${p0("谁可以访问")}${n0("min(100%, 20em)", "36px")}</div>` + (X1(e?.lan) ? m0("局域网访问地址") : "") : "") + (X1(e?.port) ? m0("端口") : "")), X1(e?.port) ? a0("保存配置") : "", X1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + c0("访问密码", s0(SMe(t)), t === "locked" ? "" : a0("保存配置")) + (t === "password" || t === "legacy" ? O0() : "") + c0("Cloudflare 公网入口", s0((n ? n0("10.5em", "36px") : "") + r), a0("启动公网入口", n ? "secondary" : "primary") + (n ? a0("保存配置") : ""), { aside: r0() }) + c0("Peach 代理", u0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + (X1(e?.proxyAddress) ? s0(m0("代理地址"), !0) : ""), a0("保存配置"));
-}, wMe = [
+ return (i || X1(e?.port) ? c0("访问地址", s0(a + (i ? n0("100%", "40px") : "") + (X1(e?.networkEditable) ? `<div class="flex flex-col gap-1.5">${p0("谁可以访问")}${n0("min(100%, 20em)", "36px")}</div>` + (X1(e?.lan) ? m0("局域网访问地址") : "") : "") + (X1(e?.port) ? m0("端口") : "")), X1(e?.port) ? a0("保存配置") : "", X1(e?.port) ? { status: "保存后 Peach 会重启,并跳转到新地址。" } : {}) : "") + c0("访问密码", s0(CMe(t)), t === "locked" ? "" : a0("保存配置")) + (t === "password" || t === "legacy" ? O0() : "") + c0("Cloudflare 公网入口", s0((n ? n0("10.5em", "36px") : "") + r), a0("启动公网入口", n ? "secondary" : "primary") + (n ? a0("保存配置") : ""), { aside: r0() }) + c0("Peach 代理", u0("连接方式", "Peach 访问外网和采集来源时使用。", "ui-configuration-skeleton-select") + (X1(e?.proxyAddress) ? s0(m0("代理地址"), !0) : ""), a0("保存配置"));
+}, TMe = [
"版本",
"操作系统",
"数据目录",
"设置文件",
"日志目录"
-], TMe = () => {
+], EMe = () => {
let e = Y1("maintenance"), t = [
"当前版本",
"安装方式",
@@ -72858,25 +72861,25 @@ var CMe = () => {
return c0("检查更新", y0(t) + (n ? s0(f0(e0("50%")).repeat(n), !0) : ""), a0("检查更新"), {
aside: r0("4em"),
status: e0("5em")
- }) + c0("自动更新", u0("自动检查新版本") + u0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + u0("检查频率", X1(e?.autoUpdateHelp) ? e0("12em") : "", "ui-configuration-skeleton-select"), a0("保存配置")) + c0("开机自启", u0("开机后启动 Peach") + u0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + u0("在桌面创建快捷方式", X1(e?.desktopNote) ? e0("12em") : "") + (X1(e?.startupNote) ? s0(f0(e0("60%")), !0) : ""), a0("保存配置")) + c0("视频播放", u0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + c0("存储空间", y0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => l0(e0("6em"), "", e0("4em"))).join("") : s0(f0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? s0(f0(e0("80%")).repeat(i), !0) : ""), a0("更改位置", "secondary") + a0(r ? "重新统计" : "统计占用")) + (c || l ? c0("数据上传", c + l) : "") + c0("运行信息", y0(a.length ? a : wMe)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${l0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", a0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? c0("卸载 Peach", (X1(e?.uninstallHelp) ? s0(f0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + u0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + s0(v0("数据目录"), !0), a0("卸载 Peach"), { status: e0("16em") }) : "");
+ }) + c0("自动更新", u0("自动检查新版本") + u0("自动下载更新", "发现新版本后先下载,重启安装前会询问。") + u0("检查频率", X1(e?.autoUpdateHelp) ? e0("12em") : "", "ui-configuration-skeleton-select"), a0("保存配置")) + c0("开机自启", u0("开机后启动 Peach") + u0("只启动托盘,不打开网页", "开机后在后台运行,需要时从托盘打开页面。") + u0("在桌面创建快捷方式", X1(e?.desktopNote) ? e0("12em") : "") + (X1(e?.startupNote) ? s0(f0(e0("60%")), !0) : ""), a0("保存配置")) + c0("视频播放", u0("转码方式", "用于播放时的视频转码。", "ui-configuration-skeleton-select")) + c0("存储空间", y0(["数据目录", "所在磁盘"]) + (r ? Array.from({ length: r }, () => l0(e0("6em"), "", e0("4em"))).join("") : s0(f0("统计后显示各类数据的占用,并可清理缓存与旧备份。"), !0)) + (i ? s0(f0(e0("80%")).repeat(i), !0) : ""), a0("更改位置", "secondary") + a0(r ? "重新统计" : "统计占用")) + (c || l ? c0("数据上传", c + l) : "") + c0("运行信息", y0(a.length ? a : TMe)) + `<section aria-label="新手教程" class="w-full"><div class="flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3">${l0("新手教程", "在所有设备上恢复右上角教程入口,保留已读进度", a0("重新打开", "secondary"))}</div></section>` + (s(e?.uninstall) ? c0("卸载 Peach", (X1(e?.uninstallHelp) ? s0(f0("卸载移除 Peach 程序本身,原始媒体文件保留。")) : "") + u0("完全卸载", "同时删除设置、本地数据库、观看记录、凭据和缓存") + s0(v0("数据目录"), !0), a0("卸载 Peach"), { status: e0("16em") }) : "");
};
-function EMe(e) {
+function DMe(e) {
switch (e) {
case "系统诊断": return H1();
- case "来源与订阅": return bMe();
- case "下载渠道": return xMe();
- case "网络与访问": return CMe();
- case "应用与维护": return TMe();
- default: return yMe();
+ case "来源与订阅": return xMe();
+ case "下载渠道": return SMe();
+ case "网络与访问": return wMe();
+ case "应用与维护": return EMe();
+ default: return bMe();
}
}
-function DMe(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">${EMe(e)}</div></div></div>`;
+function OMe(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">${DMe(e)}</div></div></div>`;
}
// src/filter-controls-skeleton.ts
-var k0 = (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"), A0 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", j0 = (e, t, n) => `<span data-entity-layout="" class="${iU}" role="radiogroup" aria-label="${z(e)}">${n.map(([e, n, r]) => `<span class="${aU}" role="radio" aria-label="${z(n)}" aria-checked="${e === t}" data-glass-segment=""${e === t ? " data-selected=\"\"" : ""} ${A0}>${k0(r)}</span>`).join("")}</span>`;
+var k0 = (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"), A0 = "inert aria-disabled=\"true\" tabindex=\"-1\" data-skeleton-control", j0 = (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=\"\"" : ""} ${A0}>${k0(r)}</span>`).join("")}</span>`;
function M0(e, t, { folders: n = !0 } = {}) {
- let r = rG(), i = new URLSearchParams(location.search), a = t && r === "cards" ? j0(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")}" ${A0}>${k0("ri-folder-3-line")}</button>` : "";
+ let r = nG(), i = new URLSearchParams(location.search), a = t && r === "cards" ? j0(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")}" ${A0}>${k0("ri-folder-3-line")}</button>` : "";
return `<span data-entity-sorts=""><button type="button" data-entity-batch="" data-filter-action="" aria-label="换一批" ${A0}>${k0("shuffle")}</button>${a}${j0("馆藏显示方式", r, [[
"cards",
"卡片",
@@ -72893,13 +72896,13 @@ var N0 = 64, P0 = (e) => e.replace(/[&<>"]/g, (e) => ({
"<": "&lt;",
">": "&gt;",
"\"": "&quot;"
-})[e]), OMe = (e) => e.repeat(N0), F0 = (e) => OMe(`<span data-catalog-placeholder="${e}" aria-hidden="true"><span></span><span>&nbsp;</span></span>`);
-function kMe(e, t, n) {
- let r = e.map((e) => `<a href="${P0(e.href)}" data-catalog-view="${P0(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${P0(e.label)}</a>`).join(""), i = MG();
+})[e]), kMe = (e) => e.repeat(N0), F0 = (e) => kMe(`<span data-catalog-placeholder="${e}" aria-hidden="true"><span></span><span>&nbsp;</span></span>`);
+function AMe(e, t, n) {
+ let r = e.map((e) => `<a href="${P0(e.href)}" data-catalog-view="${P0(e.k)}" data-entity-press="" aria-pressed="${t === e.k}">${P0(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">${F0("performer")}</div>` : "") + (i.studios ? `<div data-catalog-tier="studios">${F0("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(N0) + `</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 ? M0(n.sorts, n.layout) : "") + "</div></div></div></div>";
}
// src/react/jav/release-table-columns.ts
-var I0 = "peach.table.jav-releases.widths.v1", L0 = "peach.table.jav-releases.visibility.v1", AMe = {
+var I0 = "peach.table.jav-releases.widths.v1", L0 = "peach.table.jav-releases.visibility.v1", jMe = {
name: {
width: 300,
min: 240,
@@ -72945,7 +72948,7 @@ var I0 = "peach.table.jav-releases.widths.v1", L0 = "peach.table.jav-releases.vi
min: 112,
max: 320
}
-}, jMe = {
+}, MMe = {
name: "作品",
people: "艺人",
studio: "厂牌",
@@ -72955,7 +72958,7 @@ var I0 = "peach.table.jav-releases.widths.v1", L0 = "peach.table.jav-releases.vi
score: "来源评分",
release: "发行时间",
actions: "操作"
-}, MMe = {
+}, NMe = {
code: "code",
dur: "duration",
score: "source_score",
@@ -72972,17 +72975,17 @@ var I0 = "peach.table.jav-releases.widths.v1", L0 = "peach.table.jav-releases.vi
"code"
].map((e) => ({
id: e,
- label: jMe[e],
- ...AMe[e],
+ label: MMe[e],
+ ...jMe[e],
flex: e === "name",
required: e === "name",
visible: e !== "code"
}));
-function NMe() {
- return jJ(R0, I0, L0);
+function PMe() {
+ return AJ(R0, I0, L0);
}
// src/jav-skeleton.ts
-var z0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, PMe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, B0 = "w-full min-w-0";
+var z0 = (e) => `<span data-jav-skeleton-text class="skeleton block rounded-md" style="width:${e}" aria-hidden="true"></span>`, FMe = (e) => `<span data-jav-skeleton-cover class="skeleton ${e}"></span>`, B0 = "w-full min-w-0";
function V0() {
return [
"w-20",
@@ -72994,7 +72997,7 @@ function V0() {
].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 H0(e, t = mM()) {
- if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${z0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${PMe("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">${z0("80%")}${z0("60%")}${z0("40%")}</div></div>`).join("")}</div>`;
+ if (e === "wants") return `<div class="flex w-full flex-col gap-8" data-skeleton="jav-wants">${z0("5em")}${Array.from({ length: 3 }, () => `<div class="flex min-w-0 gap-4 rounded-2lg bg-background-secondary-default p-6">${FMe("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">${z0("80%")}${z0("60%")}${z0("40%")}</div></div>`).join("")}</div>`;
let n = SM({
...xM({
active: !0,
@@ -73012,24 +73015,24 @@ function H0(e, t = mM()) {
<div data-jav-skeleton-actions class="flex flex-wrap gap-2"><span data-jav-skeleton-action class="skeleton block h-9 w-20 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-12 rounded-md"></span><span data-jav-skeleton-action class="skeleton block h-9 w-26 rounded-md"></span></div>
</div>`).join("")}</div>`;
}
-var FMe = {
+var IMe = {
releases: "筛选新作",
discover: "筛选推荐",
wants: "筛选想要"
};
-function IMe(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>${z0("100%")}</div>${H0(e)}` : e === "releases" ? `<section class="flex min-w-0 flex-col gap-4">${LMe()}${rG() === "list" ? `<div data-catalog-table>${FJ(NMe())}</div>` : H0(e)}</section>` : `<section class="flex min-w-0 flex-col gap-4">${RMe()}${H0(e)}</section>`;
+function LMe(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>${z0("100%")}</div>${H0(e)}` : e === "releases" ? `<section class="flex min-w-0 flex-col gap-4">${RMe()}${nG() === "list" ? `<div data-catalog-table>${PJ(PMe())}</div>` : H0(e)}</section>` : `<section class="flex min-w-0 flex-col gap-4">${zMe()}${H0(e)}</section>`;
return `<div class="peach-react"><div class="flex w-full flex-col gap-6">
- <div class="flex w-full flex-col gap-4"><div class="flex min-w-0 flex-wrap items-center gap-3 max-board-narrow:gap-x-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2><div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", t, FMe[e] || "筛选")}</div>${Os({
+ <div class="flex w-full flex-col gap-4"><div class="flex min-w-0 flex-wrap items-center gap-3 max-board-narrow:gap-x-2"><h2 data-page-title class="text-display-4-medium text-text-primary max-board-narrow:text-title-1-medium">JAV</h2><div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", t, IMe[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">${oU.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">${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>
${n}</div></div>`;
}
-function LMe() {
- let e = new URLSearchParams(location.search), t = e.get("sort") || "release_date", n = e.get("dir") === "asc" ? "asc" : "desc", r = cW.map(([e, r, i]) => ({
+function RMe() {
+ 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]) => ({
key: e,
label: r,
ariaLabel: i,
@@ -73052,7 +73055,7 @@ function LMe() {
</div>
</div>`;
}
-function RMe() {
+function zMe() {
let e = (e, t) => `<button type="button" data-entity-tag="${e}" data-entity-press="" aria-pressed="${e === "external"}" class="flex h-8 flex-none items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit">${t}</button>`, t = (e, t) => `<span data-glass-segment="" ${mM() === e ? "data-selected=\"true\"" : ""} class="flex size-8 flex-none items-center justify-center rounded-lg text-(--glass-text)/62">${Ts(t, "size-4")}</span>`;
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">
@@ -73062,14 +73065,14 @@ function RMe() {
<span data-catalog-readout><span data-skeleton="count" class="relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"></span></span>
${Es()}
<span data-entity-sorts><button type="button" data-entity-batch data-filter-action data-skeleton-action data-jav-metadata-update title="更新资料" aria-label="更新资料" disabled>${Ts("refresh-cw", "size-4")}</button><span data-entity-layout class="inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg">${t("big", "maximize")}${t("small", "layout-grid")}</span>
- ${sW.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("")}
+ ${oW.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 U0 = "relative overflow-hidden skeleton-sheen bg-background-tertiary-default rounded-lg", W0 = (e = "60%") => `<span class="${U0} inline-block max-w-full align-middle" style="width:${e};height:1em"></span>`, G0 = "disabled data-skeleton-action", K0 = "min-w-0 rounded-2-5xl bg-background-secondary-default p-5 flex flex-col gap-4 max-sm:p-4";
-function zMe() {
+function BMe() {
let e = [
"馆藏视频",
"看过",
@@ -73110,7 +73113,7 @@ function zMe() {
</section>
</div></div>`;
}
-function BMe() {
+function VMe() {
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 = [
"浏览记录",
"口味维度",
@@ -73166,7 +73169,7 @@ function BMe() {
</div>
</div></div>`;
}
-function VMe() {
+function HMe() {
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="${U0} 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">${W0("70%")}</span>
@@ -73194,7 +73197,7 @@ function VMe() {
${t.repeat(2)}
</div></div>`;
}
-function HMe() {
+function UMe() {
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="${U0} 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">${W0("80%")}</h3><p class="text-body-2-regular">${W0("60%")}</p></div>
@@ -73212,14 +73215,14 @@ function HMe() {
</div></div>`;
}
// src/board-skeleton.ts
-var q0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, UMe = () => `${q0("80%")}${q0("48%")}`, J0 = (e, t) => e.repeat(t), Y0 = "disabled data-skeleton-action", X0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, Z0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, WMe = "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", Q0 = () => `<div class="inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6">${[
+var q0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, WMe = () => `${q0("80%")}${q0("48%")}`, J0 = (e, t) => e.repeat(t), Y0 = "disabled data-skeleton-action", X0 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, Z0 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, GMe = "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", Q0 = () => `<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="${WMe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${X0("3em")}</b></div>`).join("")}</div>`, GMe = (e = "") => kZ.some(([t]) => t === e) ? e : "list", $0 = (e) => `<div data-section-nav data-section-items class="flex max-w-full flex-nowrap overflow-x-auto">${kZ.map(([t, n]) => `<span class="whitespace-nowrap" aria-selected="${t === e}">${n}</span>`).join("")}</div>`, e2 = (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>`, KMe = ({ table: e, sort: t, dir: n }) => {
+].map((e) => `<div class="${GMe}"><span class="text-body-medium text-text-secondary">${e}</span><b class="text-title-1-medium tabular-nums text-text-primary">${X0("3em")}</b></div>`).join("")}</div>`, KMe = (e = "") => OZ.some(([t]) => t === e) ? e : "list", $0 = (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>`, e2 = (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>`, qMe = ({ 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">${X0("132px")}</span></span><div data-follow-toolbar-actions data-toolbar-actions>${Os({
glyph: "refresh-cw",
@@ -73254,7 +73257,7 @@ var q0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, UMe
size: "small",
glyph: "trash",
attrs: Y0
-})}</span>`, qMe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${e2()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${X0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${Z0(14, 14)}</span>${Z0(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">${X0("113px")}</span>${t2()}</span></div>`, n2 = (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>${Z0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${X0("92px")}</b><span data-follow-author-controls class="flex w-max max-w-full flex-none flex-wrap items-center gap-2 max-sm:w-full">${Os({
+})}</span>`, JMe = () => `<div class="flex min-h-16 flex-wrap items-center gap-3 px-2 py-3 max-sm:gap-x-2 follow-skeleton-source">${e2()}<span class="flex min-w-0 grow basis-0 flex-col gap-0.5"><span class="text-body-medium">${X0("8em")}</span></span><span class="flex shrink-0 items-center gap-1.5">${Z0(14, 14)}</span>${Z0(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">${X0("113px")}</span>${t2()}</span></div>`, n2 = (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>${Z0(32, 32, !0)}<b class="min-w-0 grow text-body-medium wrap-anywhere text-text-primary max-sm:basis-0">${X0("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",
@@ -73271,13 +73274,13 @@ var q0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, UMe
glyph: "chevron-up",
label: "收起",
attrs: Y0
-})}</span></span></div><div data-source-divider>${J0(qMe(), e)}</div></section>`, JMe = () => {
+})}</span></span></div><div data-source-divider>${J0(JMe(), e)}</div></section>`, YMe = () => {
try {
return Number(JSON.parse(localStorage.getItem("peach.settings.v1") || "{}").followPageSize) || 20;
} catch {
return 20;
}
-}, YMe = [
+}, XMe = [
["select", ""],
["author", "创作者"],
["source", "来源"],
@@ -73285,13 +73288,13 @@ var q0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, UMe
["status", "状态"],
["checked", "上次检查"],
["actions", ""]
-], XMe = {
+], ZMe = {
name: "author",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, r2 = "<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>", ZMe = (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>${YMe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${XMe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${r2}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${J0(`<tr>${[
+}, r2 = "<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>", QMe = (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>${XMe.map(([e, r]) => r ? `<th><span class="flex items-center gap-0.5">${r}<span data-sort-indicator${ZMe[t] === e ? ` data-direction="${n === "asc" ? "ascending" : "descending"}"` : ""}>${r2}</span></span></th>` : "<th></th>").join("")}</tr></thead><tbody>${J0(`<tr>${[
e2(),
`<span class="flex min-w-0 items-center gap-2">${Z0(32, 32, !0)}${X0("5em")}</span>`,
X0("10em"),
@@ -73299,39 +73302,39 @@ var q0 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, UMe
Z0(48, 24),
X0("113px"),
t2()
-].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, QMe = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${X0("111px")}</span><div data-toolbar-actions>${As(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${Z0(204, 32)}</div></div>`, $Me = () => `<div class="min-w-0 bg-background-secondary-default rounded-2xl shadow-card flex flex-col gap-4 px-6 py-5 max-sm:px-4 ui-follow-skeleton-surface"><h3 class="text-title-2-medium text-text-primary">${X0("120px")}</h3>${[
+].map((e) => `<td>${e}</td>`).join("")}</tr>`, e)}</tbody></table></div></div>`, $Me = (e, t) => `<div class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular text-text-secondary">${X0("111px")}</span><div data-toolbar-actions>${As(`每页 ${t} ${e ? "条" : "位"}`, { size: "sm" })}${Z0(204, 32)}</div></div>`, eNe = () => `<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">${X0("120px")}</h3>${[
"72%",
"56%",
"64%",
"40%"
-].map((e) => `<span class="text-body-medium">${X0(e)}</span>`).join("")}</div>`, eNe = (e) => {
- let t = GMe(e.followTab);
- if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${Q0()}<div class="flex flex-col gap-6">${$0(t)}<div class="flex flex-col gap-4">${$Me()}</div></div></div></div>`;
- let n = e.followLayout === "table", r = mr(e.followSort, e.followDir), i = e.followPageSize || JMe(), a = n ? ZMe(i, r) : `${e2("全选本页")}<div class="flex flex-col gap-3">${n2(3)}${n2(4)}${n2(3)}</div>`;
- return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${Q0()}<div class="flex flex-col gap-6">${$0(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"}">${KMe({
+].map((e) => `<span class="text-body-medium">${X0(e)}</span>`).join("")}</div>`, tNe = (e) => {
+ let t = KMe(e.followTab);
+ if (t !== "list") return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${Q0()}<div class="flex flex-col gap-6">${$0(t)}<div class="flex flex-col gap-4">${eNe()}</div></div></div></div>`;
+ let n = e.followLayout === "table", r = mr(e.followSort, e.followDir), i = e.followPageSize || YMe(), a = n ? QMe(i, r) : `${e2("全选本页")}<div class="flex flex-col gap-3">${n2(3)}${n2(4)}${n2(3)}</div>`;
+ return `<div class="peach-react"><div class="mx-auto flex w-full max-w-board flex-col gap-8">${Q0()}<div class="flex flex-col gap-6">${$0(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"}">${qMe({
table: n,
...r
- })}${a}${QMe(n, i)}</div></div></div></div></div>`;
+ })}${a}${$Me(n, i)}</div></div></div></div></div>`;
};
-function tNe() {
- 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">${q0("85%")}${q0("65%")}${J0(UMe(), 4)}</div></aside></div>`;
+function nNe() {
+ 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">${q0("85%")}${q0("65%")}${J0(WMe(), 4)}</div></aside></div>`;
}
-function nNe(e, t = {}) {
+function rNe(e, t = {}) {
let n = "";
- if (e === "/stats") n = zMe();
+ if (e === "/stats") n = BMe();
else if (e === "/jav") {
- let e = sU(new URLSearchParams(location.search).get("tab"));
- n = IMe(e === "library" ? "discover" : e);
- } else if (e === "/taste") n = BMe();
- else if (e === "/subscriptions") n = eNe(t);
- else if (e.startsWith("/settings/") && e.split("/")[2] in kf) n = DMe(kf[e.split("/")[2]]);
+ let e = oU(new URLSearchParams(location.search).get("tab"));
+ n = LMe(e === "library" ? "discover" : e);
+ } else if (e === "/taste") n = VMe();
+ else if (e === "/subscriptions") n = tNe(t);
+ else if (e.startsWith("/settings/") && e.split("/")[2] in kf) n = OMe(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">${X0("8em")}</span><span class="text-caption-1-regular">${X0("14em")}</span>${X0("60%")}${X0("40%")}</div><div class="border-t border-separator-border px-5 py-2.5">${X0("6em")}</div></div></section>`).join("")}</div></div>`;
- else if (e === "/duplicates") n = VMe();
- else if (e === "/quality-goals") n = HMe();
+ else if (e === "/duplicates") n = HMe();
+ else if (e === "/quality-goals") n = UMe();
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: Y0
@@ -73340,7 +73343,7 @@ function nNe(e, t = {}) {
return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${n}</div></div>`;
}
// src/react/components/overlay-host.ts
-function rNe(e) {
+function iNe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
if (t) return t;
let n = e.ownerDocument.createElement("div");
@@ -73348,10 +73351,10 @@ function rNe(e) {
}
function i2(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return rNe(n ?? t.body);
+ return iNe(n ?? t.body);
}
var a2 = "[role=\"dialog\"],[role=\"listbox\"],[role=\"menu\"]";
-function iNe(e) {
+function aNe(e) {
let t = e.querySelector(":scope > [data-react-overlays]");
for (let e = t?.lastElementChild; e; e = e.previousElementSibling) {
let t = e.matches(a2) ? e : e.querySelector(a2);
@@ -73364,13 +73367,13 @@ function o2(e) {
t && t.parentElement !== n && n.append(t);
}
// src/react/follow-detail/follow-detail.ts
-var s2 = (e) => ["follow-item", e], aNe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, oNe = "/api/follow/save", sNe = "/api/follow/media/hide", c2 = class extends Error {
+var s2 = (e) => ["follow-item", e], oNe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, sNe = "/api/follow/save", cNe = "/api/follow/media/hide", c2 = class extends Error {
constructor() {
super("这条关注内容已不存在");
}
};
async function l2(e, t) {
- let n = await B(aNe(e), t);
+ let n = await B(oNe(e), t);
for (let t of n.groups || []) {
let r = la(t).find((t) => t.id === e);
if (r) return {
@@ -73382,7 +73385,7 @@ async function l2(e, t) {
}
throw new c2();
}
-function cNe(e) {
+function lNe(e) {
for (let [, t] of H.getQueriesData({ queryKey: ["follow-item"] })) {
if (!t?.group) continue;
let n = la(t.group).find((t) => t.id === e);
@@ -73400,13 +73403,13 @@ async function u2(e, t) {
}), a = r ? {
...r,
item: r.item
- } : H.getQueryData(n) ?? cNe(e.id);
+ } : H.getQueryData(n) ?? lNe(e.id);
a ? H.setQueryData(n, a) : await H.fetchQuery({
queryKey: n,
queryFn: () => l2(e.id, t)
}), await i;
}
-function lNe(e, t, n, r) {
+function uNe(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,
@@ -73421,32 +73424,32 @@ function lNe(e, t, n, r) {
src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""
};
}
-var uNe = (e) => la(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), dNe = {
+var dNe = (e) => la(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), fNe = {
"gofile.io": "Gofile",
"pixeldrain.com": "Pixeldrain",
"mega.nz": "MEGA",
"mega.io": "MEGA",
"mediafire.com": "MediaFire",
"drive.google.com": "Google Drive"
-}, fNe = {
+}, pNe = {
gofile: "Gofile",
pixeldrain: "Pixeldrain",
mega: "MEGA",
mediafire: "MediaFire",
google_drive: "Google Drive"
};
-function pNe(e) {
+function mNe(e) {
try {
let t = new URL(e).hostname.replace(/^www\./, "");
- return dNe[t] || t;
+ return fNe[t] || t;
} catch {
return "外部文件页";
}
}
function d2(e, t) {
- return fNe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+ return pNe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
}
-function mNe(e, t, n = "") {
+function hNe(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;
@@ -73455,16 +73458,16 @@ function mNe(e, t, n = "") {
title: e.is_release && t.author ? `${t.author}:${i}` : i
};
}
-var hNe = (e) => String(e.name || "").trim(), f2 = (e, t) => e.tag_types?.[t] || "unknown", gNe = /* @__PURE__ */ new Set([
+var gNe = (e) => String(e.name || "").trim(), f2 = (e, t) => e.tag_types?.[t] || "unknown", _Ne = /* @__PURE__ */ new Set([
"artist",
"character",
"copyright",
"metadata",
"unknown"
]);
-function _Ne(e, t) {
+function vNe(e, t) {
let n = f2(e, t);
- return `r34-${gNe.has(n) ? n : "general"}`;
+ return `r34-${_Ne.has(n) ? n : "general"}`;
}
var p2 = [
"copyright",
@@ -73473,7 +73476,7 @@ var p2 = [
"general",
"metadata"
];
-function vNe(e, t) {
+function yNe(e, t) {
let n = e.detail_tags || e.tags || [], r = (t) => {
let n = p2.indexOf(f2(e, t));
return n < 0 ? p2.length : n;
@@ -73484,12 +73487,12 @@ function m2(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 yNe = (e, t) => ({
+var bNe = (e, t) => ({
sources: e.sources,
aliases: e.aliases,
credentials: t
}), h2 = (e) => e?.size ? { size: e.size } : {};
-function bNe(e, t) {
+function xNe(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}`,
@@ -73510,7 +73513,7 @@ function bNe(e, t) {
source: e.provider_label || e.provider || "在线图片"
}] : [];
}
-var xNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", g2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", _2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", v2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", y2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", b2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", x2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", S2 = "disabled data-skeleton-action", C2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, w2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, T2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, E2 = (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>`, SNe = [
+var SNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", g2 = "清理文件名中的特殊符号与乱码,也可按模板改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。", _2 = "指定路径时包含子目录,目录模板以该路径为起点。模板均留空时只清理文件名。", v2 = "点击参数插入光标处,选中文字可替换。方括号里的内容在字段为空时整段省略。", y2 = "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。", b2 = "这些作品的源文件已删除,喜欢、稍后看、播放列表与观看历史仍保留。选择替代文件后,这些记录会转移到该文件,旧作品记录随之删除。", x2 = "勾选女优,永久删除她们在全部来源中的影片文件、影片资料和观看记录,包括回收站中的影片。女优档案和照片保留。共同出演的同一文件只删除一次。", S2 = "disabled data-skeleton-action", C2 = (e) => `<span class="skeleton skeleton-text" style="width:${e}"></span>`, w2 = (e, t, n = !1) => `<span class="skeleton" style="width:${e}px;height:${t}px;flex:none${n ? ";border-radius:50%" : ""}"></span>`, T2 = (e, t) => `<h3 class="text-title-2-medium text-text-primary${t ? ` ${t}` : ""}">${e}</h3>`, E2 = (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>`, CNe = [
"3em",
"5em",
"5em",
@@ -73520,7 +73523,7 @@ var xNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", g2
"8em",
"8em",
"10em"
-], CNe = [
+], wNe = [
"5.8em",
"6.4em",
"7em",
@@ -73535,7 +73538,7 @@ var xNe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态", g2
size: "small",
label: C2(t)
});
-function wNe() {
+function TNe() {
return `<section class="${i$("stack")}">
<div class="${n$.stack}">${T2("整理", "mb-3")}
<p class="text-body-regular text-text-secondary">${g2}</p>
@@ -73549,9 +73552,9 @@ function wNe() {
</div>
<p class="text-caption-1-regular text-text-secondary">${_2}</p>
${E2(C2("12em"), { label: "文件名模板" })}${E2(C2("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">${SNe.map((e) => D2("secondary", e)).join("")}</div></div>
+ <div class="flex flex-col gap-2"><p class="text-caption-1-medium text-text-secondary">套用模板</p><div class="flex flex-wrap gap-2">${CNe.map((e) => D2("secondary", e)).join("")}</div></div>
<p class="text-caption-1-regular text-text-secondary">路径示例:${C2("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">${CNe.map((e) => D2("ghost", e)).join("")}</div></div>
+ <div class="flex flex-col gap-2"><p class="text-caption-1-regular text-text-secondary"><strong class="text-caption-1-semibold text-text-primary">插入参数</strong>(到文件名模板)</p><div class="flex flex-wrap gap-1">${wNe.map((e) => D2("ghost", e)).join("")}</div></div>
<p class="text-caption-1-regular leading-4.5 text-text-secondary">${v2}</p>
</div>
</div>
@@ -73561,7 +73564,7 @@ function wNe() {
})}</footer>
</section>`;
}
-var TNe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
+var ENe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
<section class="${i$("split")}"><div class="${n$.split}">${T2("资源同步", "mb-2")}
<p class="max-w-190 text-body-2-regular leading-5 text-text-secondary">${y2}</p></div>
<footer class="${r$.split}">${Os({
@@ -73569,7 +73572,7 @@ var TNe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
label: "检查文件",
attrs: S2
})}</footer></section>
-</section>`, O2 = (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">${C2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${C2("14em")}</small>` : ""}</div>`, ENe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
+</section>`, O2 = (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">${C2("3em")}</b>${t ? `<small class="text-caption-1-regular leading-5 text-text-secondary">${C2("14em")}</small>` : ""}</div>`, DNe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
<section class="${i$("stack")}"><div class="${n$.stack}">${T2("链接管理", "mb-2")}
<div class="link-stat-grid mt-4 gap-x-8 gap-y-3">${O2("链接总数", !0)}${[
0,
@@ -73589,7 +73592,7 @@ var TNe = () => `<section class="flex scroll-mt-20 flex-col gap-4">
</section>`;
function k2({ 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">${e2()}</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>${r2}</span></span></th>`).join("")}<th data-table-space style="width:0"></th>`, s = `<tr><td>${e2()}</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="${xU({
+ return `<div data-data-table-panel class="${bU({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
})}">
@@ -73611,14 +73614,14 @@ function k2({ title: e, description: t, search: n = "", columns: r, rows: i }) {
<div data-table-pagination class="flex flex-wrap items-center justify-between gap-3"><span class="mr-auto text-body-2-regular tabular-nums text-text-secondary">${C2("8em")}</span><div data-toolbar-actions>${As("每页 20 条", { size: "sm" })}</div></div>
</div>`;
}
-var DNe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${C2(e)}</span><small class="text-caption-1-regular">${C2(t)}</small></span>`, ONe = {
+var ONe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span class="text-body-regular">${C2(e)}</span><small class="text-caption-1-regular">${C2(t)}</small></span>`, kNe = {
organize: {
label: "正在读取整理配置",
- body: wNe
+ body: TNe
},
"resource-sync": {
label: "正在读取资源同步状态",
- body: TNe
+ body: ENe
},
"orphan-records": {
label: "正在读取文件已丢失的记录",
@@ -73630,7 +73633,7 @@ var DNe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
{
label: "作品",
width: 480,
- cell: `<span class="flex min-w-0 items-center gap-3"><span class="skeleton flex-none rounded-lg max-cleanup-tight:hidden" style="width:96px;height:60px"></span>${DNe("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>${ONe("70%", "40%")}</span>`
},
{
label: "个人记录",
@@ -73652,11 +73655,11 @@ var DNe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
},
"media-repair": {
label: "正在读取媒体修复状态",
- body: uAe
+ body: dAe
},
links: {
label: "正在读取链接统计",
- body: ENe
+ body: DNe
},
"batch-delete": {
label: "正在读取女优列表",
@@ -73691,7 +73694,7 @@ var DNe = (e, t) => `<span class="flex min-w-0 flex-1 flex-col gap-0.5"><span cl
}
};
function A2(e) {
- let { label: t, body: n } = ONe[e];
+ let { label: t, body: n } = kNe[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
@@ -73703,7 +73706,7 @@ var j2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
...i ? { count: i } : {},
...a === void 0 ? {} : { fill: a },
...o ? { cardRatio: o } : {}
-}), kNe = [
+}), ANe = [
"元数据字段",
"创作者标签",
"厂牌 Logo",
@@ -73713,15 +73716,15 @@ var j2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
"FC2 评论标记",
"FC2 跨号相似",
"片尾/出处证据"
-], ANe = (e = "正在读取复核队列") => `<div class="review review-workspace review-skeleton" data-skeleton="review" aria-busy="true" aria-label="${z(e)}">
+], jNe = (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>${kNe.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>${ANe.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>`, jNe = {
- "/data-cleanup": () => dAe(),
+ <section class="reviewsection"><div class="reviewlist">${"<div class=\"skeletoncard\" aria-hidden=\"true\"><i></i><b></b><em></em></div>".repeat(6)}</div></section></div>`, MNe = {
+ "/data-cleanup": () => fAe(),
...Object.fromEntries(Yf.map((e) => [e.path, () => A2(e.key)])),
"/resource-sync": () => A2("resource-sync"),
- "/review": () => ANe(),
+ "/review": () => jNe(),
"/sources": () => `<div class="scraping-page"><p>高清图片可能要经代理才能下载,先检查连接。</p>
${j2("正在读取采集来源", {
cards: !0,
@@ -73731,13 +73734,13 @@ var j2 = (e, { cards: t = !1, className: n = "", variant: r = "", count: i, fill
})}</div>`
};
function M2(e, { followLayout: t, followSort: n, followDir: r }) {
- return nNe(e, {
+ return rNe(e, {
followLayout: t,
...e === "/subscriptions" ? {
followSort: n,
followDir: r
} : {}
- }) || (jNe[e] ?? (() => j2("正在读取页面")))();
+ }) || (MNe[e] ?? (() => j2("正在读取页面")))();
}
var N2 = (e) => String(e).match(/data-skeleton="([^"]*)"/)?.[1] || "";
function P2(e, t) {
@@ -73758,17 +73761,17 @@ function F2({ 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)(IG, {
+ children: /* @__PURE__ */ (0, I.jsx)(FG, {
message: i,
onRetry: a || (() => {})
})
}) : r && !n ? /* @__PURE__ */ (0, I.jsx)("div", {
"data-related-state": "",
- children: /* @__PURE__ */ (0, I.jsx)(lV, {
+ children: /* @__PURE__ */ (0, I.jsx)(cV, {
size: "compact",
- icon: ZB,
+ icon: XB,
title: "暂无接着看的内容",
- actions: /* @__PURE__ */ (0, I.jsx)(bL, {
+ actions: /* @__PURE__ */ (0, I.jsx)(yL, {
size: "small",
href: o ? "/follow" : "/",
children: o ? "返回关注" : "浏览馆藏"
@@ -73872,7 +73875,7 @@ function L2({ 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)(MNe, {
+ children: e.map((e, r) => /* @__PURE__ */ (0, I.jsx)(NNe, {
item: e,
selected: r === t,
onSelect: n,
@@ -73891,7 +73894,7 @@ function L2({ items: e, position: t, onSelect: n, below: r = !1, renderThumbnail
]
});
}
-function MNe({ item: e, selected: t, onSelect: n, render: r }) {
+function NNe({ 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;
@@ -73917,7 +73920,7 @@ function MNe({ item: e, selected: t, onSelect: n, render: r }) {
});
}
// src/react/follow-detail/follow-related.ts
-var NNe = (e, t, n) => [
+var PNe = (e, t, n) => [
"follow-feed",
"related",
e,
@@ -73939,19 +73942,19 @@ function R2(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 PNe = /* @__PURE__ */ new Set(["metadata", "artist"]);
-function FNe(e, t, n) {
+var FNe = /* @__PURE__ */ new Set(["metadata", "artist"]);
+function INe(e, t, n) {
let r = (e) => e.detail_tags || e.tags || [], i = new Set(r(t.item)), a = t.sources.find((e) => e.id === t.item.source_id)?.author_key, o = new Map(e.flatMap((e) => e.sources || []).map((e) => [e.id, e])), s = /* @__PURE__ */ new Map();
for (let t of e.flatMap((e) => e.groups || [])) for (let e of r(ga(t, n))) s.set(e, (s.get(e) || 0) + 1);
return (e) => {
- let t = ga(e, n), c = t.source_id === void 0 ? void 0 : o.get(t.source_id), l = r(t).filter((e) => i.has(e) && !PNe.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) && !FNe.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 INe(e, t, n, r) {
+async function LNe(e, t, n, r) {
let i = e.sources.find((t) => t.id === e.item.source_id)?.author_key || "", a = {
..._a(i),
status: "new",
@@ -73974,13 +73977,13 @@ async function INe(e, t, n, r) {
var z2 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
-}), LNe = 20;
+}), RNe = 20;
function B2({ 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 = pH(), _ = (e) => {
+ }), h = m.data?.items?.filter((e) => !e.hidden && !e.blocked && (n === "online" || e.cat !== "meta")) || t, g = fH(), _ = (e) => {
g.run("rename", async (t) => {
let r = (await H.fetchQuery({
queryKey: ["tag-management", n],
@@ -73991,7 +73994,7 @@ function B2({ 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 < LNe || b.includes(Un(e.k))) : e;
+ }, C = e.length > 24, w = C && !v ? e.filter((e, t) => t < RNe || b.includes(Un(e.k))) : e;
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-tags": "",
@@ -74015,7 +74018,7 @@ function B2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
"data-edit-tag": e.k,
title: "修改标签名称",
"aria-label": `修改标签 ${a(e.k)}`,
- ...pV(!!g.busy),
+ ...fV(!!g.busy),
onClick: () => _(e),
children: /* @__PURE__ */ (0, I.jsx)(z2, { name: "pencil" })
}),
@@ -74035,11 +74038,11 @@ function B2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
size: "small",
"data-tags-more": "",
"aria-expanded": v,
- trailingIcon: v ? yB : gB,
+ trailingIcon: v ? vB : hB,
onClick: () => y(!v),
children: v ? "收起" : `还有 ${e.length - w.length} 个`
}) : null,
- /* @__PURE__ */ (0, I.jsx)(RNe, {
+ /* @__PURE__ */ (0, I.jsx)(zNe, {
tags: e,
candidates: h,
label: a,
@@ -74051,11 +74054,11 @@ function B2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
})
]
}),
- g.error ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ g.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: g.error
}) : null,
- m.isError ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ m.isError ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -74064,7 +74067,7 @@ function B2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}),
children: "无法读取标签候选"
}) : null,
- u ? /* @__PURE__ */ (0, I.jsx)(JQ, {
+ u ? /* @__PURE__ */ (0, I.jsx)(qQ, {
operation: "rename",
selected: [u],
scope: n,
@@ -74073,8 +74076,8 @@ function B2({ tags: e, candidates: t, scope: n = "local", id: r, adding: i, labe
}) : null
] });
}
-function RNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a, onOpen: o, loading: s }) {
- let c = (0, F.useRef)(null), l = (0, F.useRef)(null), u = RV(), 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 zNe({ 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)({
adding: i,
query: h,
tags: e,
@@ -74119,7 +74122,7 @@ function RNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
_,
t.length
]);
- let w = p ? nde(_, t, LP()) : {
+ let w = p ? rde(_, t, IP()) : {
recent: [],
results: [],
create: ""
@@ -74133,7 +74136,7 @@ function RNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
], E = (e, t) => {
C(), t || r(e.k);
}, D = (t) => {
- if (!$U(t.nativeEvent)) {
+ if (!QU(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;
@@ -74182,7 +74185,7 @@ function RNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
title: "添加标签",
"aria-label": "添加标签",
"aria-expanded": p,
- ...pV(!!i),
+ ...fV(!!i),
children: /* @__PURE__ */ (0, I.jsx)(z2, { name: "plus" })
}), /* @__PURE__ */ (0, I.jsxs)("div", {
ref: l,
@@ -74257,8 +74260,8 @@ function RNe({ tags: e, candidates: t, label: n, onAdd: r, adding: i, scope: a,
})] });
}
// src/react/follow-detail/follow-tags.tsx
-function zNe({ item: e, label: t, actions: n }) {
- let r = pH(), i = () => H.invalidateQueries({ predicate: (e) => [
+function BNe({ item: e, label: t, actions: n }) {
+ let r = fH(), i = () => H.invalidateQueries({ predicate: (e) => [
"follow-feed",
"follow",
"tag-management"
@@ -74281,7 +74284,7 @@ function zNe({ item: e, label: t, actions: n }) {
}, "POST", t);
a(n), await i();
}, () => {
- o === "add" && RP(s);
+ o === "add" && LP(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", {
@@ -74298,9 +74301,9 @@ function zNe({ item: e, label: t, actions: n }) {
"data-follow-tag-editor": "",
"data-follow-detail-tags": "",
children: [/* @__PURE__ */ (0, I.jsx)(B2, {
- tags: vNe(e, t).map((t) => ({
+ tags: yNe(e, t).map((t) => ({
k: t,
- cat: _Ne(e, t)
+ cat: vNe(e, t)
})),
scope: "online",
adding: !!r.busy,
@@ -74309,19 +74312,19 @@ function zNe({ item: e, label: t, actions: n }) {
onOpen: n.openTag,
onAdd: (e) => o("add", e),
onRemove: (e) => o("remove", e.k),
- busyAttrs: () => pV(!!r.busy)
- }), r.error ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ busyAttrs: () => fV(!!r.busy)
+ }), r.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: r.error
}) : null]
});
}
// src/react/follow-detail/follow-detail-page.tsx
-var V2 = (e) => Number(e) > 0, BNe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
+var V2 = (e) => Number(e) > 0, VNe = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: R(e) }
}), H2 = R("external-link", "ui-externalmark");
-function VNe(e) {
+function HNe(e) {
let { id: t, actions: n } = e, r = Ft({
queryKey: s2(t),
queryFn: ({ signal: e }) => l2(t, e)
@@ -74329,10 +74332,10 @@ function VNe(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)(WNe, {
+ return r.data ? /* @__PURE__ */ (0, I.jsx)(GNe, {
...e,
data: r.data,
- context: yNe(r.data, a),
+ context: bNe(r.data, a),
mediaIndex: o,
onMedia: s
}) : /* @__PURE__ */ (0, I.jsx)("div", {
@@ -74343,7 +74346,7 @@ function VNe(e) {
"data-follow-detail-media": "none",
children: [/* @__PURE__ */ (0, I.jsx)(U2, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-placeholder": "",
- children: r.isError ? HNe(r.error) ? /* @__PURE__ */ (0, I.jsx)(UNe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(IG, {
+ children: r.isError ? UNe(r.error) ? /* @__PURE__ */ (0, I.jsx)(WNe, { onBack: n.close }) : /* @__PURE__ */ (0, I.jsx)(FG, {
message: xn(r.error),
onRetry: () => void r.refetch()
}) : null
@@ -74351,8 +74354,8 @@ function VNe(e) {
})
});
}
-var HNe = (e) => e instanceof c2 || e instanceof sr && e.status === 404;
-function UNe({ onBack: e }) {
+var UNe = (e) => e instanceof c2 || e instanceof sr && e.status === 404;
+function WNe({ onBack: e }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-follow-detail-gone": "",
onClick: (t) => {
@@ -74370,8 +74373,8 @@ var U2 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function WNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
- let { item: c, group: l } = e, u = lNe(c, l, n, i), d = XNe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
+function GNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, relatedLimit: a, helpers: o, actions: s }) {
+ let { item: c, group: l } = e, u = uNe(c, l, n, i), d = ZNe(c, s, r), f = `${c.id}:${u.selected?.index ?? ""}`, [p, m] = (0, F.useState)({
key: "",
kind: ""
}), h = {
@@ -74391,7 +74394,7 @@ function WNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
c,
u.kind
]);
- let g = !u.embedded.length && u.collection ? uNe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(q2, {
+ let g = !u.embedded.length && u.collection ? dNe(u.collection) : void 0, _ = u.embeddedQueue ? /* @__PURE__ */ (0, I.jsx)(q2, {
item: c,
current: u.selected.index,
helpers: o,
@@ -74404,7 +74407,7 @@ function WNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
actions: s,
onMedia: r,
currentId: c.id
- }) : /* @__PURE__ */ (0, I.jsx)(qNe, {
+ }) : /* @__PURE__ */ (0, I.jsx)(JNe, {
group: u.collection,
itemId: c.id,
helpers: o,
@@ -74414,14 +74417,14 @@ function WNe({ 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)(KNe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(qNe, {
item: c,
media: u,
helpers: o,
actions: s,
onMedia: r,
issues: h
- }, f), /* @__PURE__ */ (0, I.jsx)(JNe, {
+ }, f), /* @__PURE__ */ (0, I.jsx)(YNe, {
item: c,
data: e,
context: t,
@@ -74433,7 +74436,7 @@ function WNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
})]
}), /* @__PURE__ */ (0, I.jsx)(I2, {
queue: _,
- children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(GNe, {
+ children: a > 0 ? /* @__PURE__ */ (0, I.jsx)(KNe, {
data: e,
media: u.kind === "image" ? "images" : u.kind === "video" ? "videos" : i,
limit: a,
@@ -74443,10 +74446,10 @@ function WNe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, rel
}) : null
})] });
}
-function GNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
+function KNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }) {
let o = Ft({
- queryKey: NNe(e.item.id, t, n),
- queryFn: ({ signal: r }) => INe(e, t, n, r)
+ queryKey: PNe(e.item.id, t, n),
+ queryFn: ({ signal: r }) => LNe(e, t, n, r)
}), [s] = (0, F.useState)(() => j2("正在读取推荐", {
cards: !0,
className: "related-skeleton"
@@ -74454,7 +74457,7 @@ function GNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
openDetail: a.openItem,
openAuthor: a.openAuthor,
canFlip: a.canFlip
- }), [a]), l = R2(o.data?.pages || [], e, t, n), u = FNe(o.data?.pages || [], e, t), d = o.data?.pages.at(-1)?.sources || e.sources, f = {
+ }), [a]), l = R2(o.data?.pages || [], e, t, n), u = INe(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
@@ -74469,7 +74472,7 @@ function GNe({ 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)(OZ, {
+ children: o.data ? l.map((e) => /* @__PURE__ */ (0, I.jsx)(DZ, {
variant: "next",
group: e,
media: t,
@@ -74487,8 +74490,8 @@ function GNe({ data: e, media: t, limit: n, context: r, helpers: i, actions: a }
})
});
}
-function KNe({ 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 = bNe(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 qNe({ 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 = xNe(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);
@@ -74509,7 +74512,7 @@ function KNe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
src: v,
alt: e.title,
referrerPolicy: "no-referrer",
- onClick: p.length ? () => void _Z(Math.max(0, l), p) : void 0,
+ onClick: p.length ? () => void gZ(Math.max(0, l), p) : void 0,
onError: () => {
_ && v !== _ ? (y(_), i.thumbFallback()) : i.failed();
}
@@ -74517,7 +74520,7 @@ function KNe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {
"data-follow-detail-placeholder": "",
children: [/* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
- dangerouslySetInnerHTML: { __html: uG(e.resource_provider || e.provider) }
+ dangerouslySetInnerHTML: { __html: lG(e.resource_provider || e.provider) }
}), /* @__PURE__ */ (0, I.jsx)("span", { children: "没有可用预览" })]
}),
u ? /* @__PURE__ */ (0, I.jsx)(L2, {
@@ -74556,18 +74559,18 @@ function K2(e) {
t && e.wireDrag(t);
}, [e]);
}
-function qNe({ group: e, itemId: t, helpers: n, actions: r }) {
+function JNe({ group: e, itemId: t, helpers: n, actions: r }) {
let i = va(e), a = K2(n);
- return /* @__PURE__ */ (0, I.jsx)(yK, {
+ return /* @__PURE__ */ (0, I.jsx)(vK, {
kind: "collection",
"data-follow-queue": "",
title: "视频合集",
onClose: r.close,
listRef: a,
- summary: `${fG(e.primary)} · ${i.length} 个视频`,
+ summary: `${dG(e.primary)} · ${i.length} 个视频`,
children: i.map((n) => {
- let i = e.duplicates.includes(n), a = mNe(e, n, i ? n.provider_label : ""), o = i ? uG(n.provider, n.provider_label) : "";
- return /* @__PURE__ */ (0, I.jsxs)(bK, {
+ let i = e.duplicates.includes(n), a = hNe(e, n, i ? n.provider_label : ""), o = i ? lG(n.provider, n.provider_label) : "";
+ return /* @__PURE__ */ (0, I.jsxs)(yK, {
current: n.id === t,
"data-follow-queue-item": n.id,
onClick: () => r.openItem(n.id),
@@ -74589,7 +74592,7 @@ function qNe({ group: e, itemId: t, helpers: n, actions: r }) {
children: a.label
}), /* @__PURE__ */ (0, I.jsx)("time", {
dateTime: n.published_at || "",
- children: xG(n)
+ children: bG(n)
})]
})]
}, n.id);
@@ -74607,17 +74610,17 @@ function q2({ 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)(yK, {
+ return /* @__PURE__ */ (0, I.jsx)(vK, {
kind: "media",
"data-follow-queue": "",
title: "多媒体",
onClose: i.close,
listRef: s,
- summary: `${fG(e)} · ${o.length} 个媒体`,
- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(Hxe, {
+ summary: `${dG(e)} · ${o.length} 个媒体`,
+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, I.jsx)(Uxe, {
label: n.label,
count: n.items.length
- }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(bK, {
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, I.jsxs)(yK, {
current: n.index === t,
"data-follow-media-owner": e.id,
"data-follow-media-item": n.index,
@@ -74626,7 +74629,7 @@ function q2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
pic: n.thumb_url ? /* @__PURE__ */ (0, I.jsx)(G2, { src: n.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(W2, { kind: n.media_kind || "" }),
children: [/* @__PURE__ */ (0, I.jsx)("b", {
"data-middle-truncate": "",
- children: hNe(n)
+ children: gNe(n)
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-truncate-end": "",
children: n.media_kind === "image" ? "图片" : "视频"
@@ -74634,13 +74637,13 @@ function q2({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,
}, n.index))])
});
}
-function JNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {
+function YNe({ 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 = vG(d, e), p = gG(e, m2(e, t.sources), n), m = p.credited ? "" : e.author && Un(e.author) !== Un(p.author) ? e.author : "", h = yG(e, n), g = e.status === "saved", { busy: _ } = i, v = (e) => _.has(e) ? {
+ }, f = _G(d, e), p = hG(e, m2(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) ? {
"aria-busy": !0,
"aria-disabled": !0
} : {};
@@ -74656,7 +74659,7 @@ function JNe({ 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: _G(d, e) + z(fG(e)) }
+ dangerouslySetInnerHTML: { __html: gG(d, e) + z(dG(e)) }
}), e.url ? /* @__PURE__ */ (0, I.jsx)("a", {
"data-follow-origin": "",
href: e.url,
@@ -74672,7 +74675,7 @@ function JNe({ 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: xG(e) }),
+ /* @__PURE__ */ (0, I.jsx)("span", { children: bG(e) }),
V2(e.duration) ? /* @__PURE__ */ (0, I.jsx)("span", { children: Jn(e.duration) }) : null,
f ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-follow-badges": "",
@@ -74690,7 +74693,7 @@ function JNe({ 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)(EZ, {
+ children: p.entityName ? /* @__PURE__ */ (0, I.jsxs)(TZ, {
name: p.entityName,
actions: s,
"data-id-cell": "creator",
@@ -74722,7 +74725,7 @@ function JNe({ 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)(YNe, { text: e.summary }, e.id) : null,
+ e.summary ? /* @__PURE__ */ (0, I.jsx)(XNe, { text: e.summary }, e.id) : null,
h ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-follow-media-issue": "",
children: h
@@ -74745,7 +74748,7 @@ function JNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
href: e,
target: "_blank",
rel: "noreferrer noopener",
- children: [pNe(e), /* @__PURE__ */ (0, I.jsx)("span", {
+ children: [mNe(e), /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: H2 }
})]
@@ -74847,7 +74850,7 @@ function JNe({ 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)(G2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(BNe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
+ children: [e.thumb_url ? /* @__PURE__ */ (0, I.jsx)(G2, { src: e.thumb_url }) : /* @__PURE__ */ (0, I.jsx)(VNe, { name: "image-off" }), /* @__PURE__ */ (0, I.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]
}, e.index))
})]
}) : null,
@@ -74856,7 +74859,7 @@ function JNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
"aria-live": "polite",
children: i.failure
}),
- /* @__PURE__ */ (0, I.jsx)(zNe, {
+ /* @__PURE__ */ (0, I.jsx)(BNe, {
item: e,
label: o.tagLabel,
actions: s
@@ -74865,7 +74868,7 @@ function JNe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe
})
});
}
-function YNe({ text: e }) {
+function XNe({ 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;
@@ -74878,7 +74881,7 @@ function YNe({ text: e }) {
ref: t,
"data-follow-detail-summary": "",
"data-long-text": "",
- lang: VI(e),
+ lang: BI(e),
"data-clamped": n ? void 0 : "",
children: e
}), i || n ? /* @__PURE__ */ (0, I.jsx)(J, {
@@ -74890,7 +74893,7 @@ function YNe({ text: e }) {
children: n ? "收起" : "展开"
}) : null] });
}
-function XNe(e, t, n) {
+function ZNe(e, t, n) {
let r = e.id, i = s2(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;
@@ -74910,7 +74913,7 @@ function XNe(e, t, n) {
to: e
}),
onSuccess: (e, { to: n, was: i }) => {
- u(n), c(""), n === "ignored" && oW(), t.toast(xNe(n), { undo: i === "saved" ? void 0 : async () => {
+ u(n), c(""), n === "ignored" && aW(), t.toast(SNe(n), { undo: i === "saved" ? void 0 : async () => {
await V(Mr, {
item: r,
to: i
@@ -74920,7 +74923,7 @@ function XNe(e, t, n) {
onError: d,
onSettled: (e, t, { to: n }) => l(n, !1)
}), p = It({
- mutationFn: () => V(oNe, { item: r }),
+ mutationFn: () => V(sNe, { item: r }),
onSuccess: () => {
u("saved"), c(""), t.toast("已保存到数据库");
},
@@ -74928,7 +74931,7 @@ function XNe(e, t, n) {
onSettled: () => l("save", !1)
}), m = It({
mutationFn: async ({ index: e, hidden: t }) => {
- await V(sNe, {
+ await V(cNe, {
item: r,
media: e,
hidden: t
@@ -74944,12 +74947,12 @@ function XNe(e, t, n) {
onError: d,
onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
}), h = Ft({
- queryKey: Pye(r),
- queryFn: ({ signal: e }) => Lye(r, e)
+ queryKey: Fye(r),
+ queryFn: ({ signal: e }) => Rye(r, e)
}).data?.want ?? null, g = It({
- mutationFn: async (e) => (e ? await aW([e.id]) : await iW({ follow: r }), !e),
+ mutationFn: async (e) => (e ? await iW([e.id]) : await rW({ follow: r }), !e),
onSuccess: (e) => {
- c(""), t.toast(e ? "已加入想要" : "已取消想要"), oW();
+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), aW();
},
onError: d,
onSettled: () => l("want", !1)
@@ -74989,7 +74992,7 @@ function XNe(e, t, n) {
}
// src/react/components/identity-cell.tsx
function J2({ kind: e, person: t, onOpen: n, hidden: r, overflow: i, face: a }) {
- aL();
+ iL();
let o = nn(e, t.name, t.id), s = e === "performer" || e === "creator" ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-id-face": "",
dangerouslySetInnerHTML: { __html: `<span>${z(er(o))}</span>` + go({
@@ -75087,7 +75090,7 @@ function X2(e) {
// src/react/item-detail/catalog-picture.tsx
function Z2({ 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)(cQ, {
+ if (n && t > 0 && e.code) return /* @__PURE__ */ (0, I.jsx)(sQ, {
item: {
code: e.code,
has_cover: !1,
@@ -75101,7 +75104,7 @@ function Z2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
src: c,
alt: "",
onError: () => a(c)
- }) : i === c ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ }) : i === c ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -75119,20 +75122,20 @@ function Z2({ item: e, image: t, source: n = !1, thumbnail: r = !1 }) {
}, o);
}
// src/react/jav-detail/jav-detail.ts
-var Q2 = (e) => ["jav-detail", e], $2 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), ZNe = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), e4 = (e, t) => H.ensureQueryData({
+var Q2 = (e) => ["jav-detail", e], $2 = (e, t, n = !1) => B(`/api/jav/detail?code=${encodeURIComponent(e)}${n ? "&refresh=1" : ""}`, t), QNe = (e, t, n, r = !1) => B(`/api/jav/reviews?code=${encodeURIComponent(e)}&page=${t}${r ? "&refresh=1" : ""}`, n), e4 = (e, t) => H.ensureQueryData({
queryKey: Q2(e.code),
queryFn: () => $2(e.code, t),
staleTime: 216e5,
revalidateIfStale: !0
});
-function QNe(e, t) {
+function $Ne(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 t4 = "peach.playback-target.v1", n4 = [["m3u", "M3U 播放列表"], ["url", "网络播放地址 / VR"]];
-function $Ne() {
+function ePe() {
try {
return localStorage.getItem(t4) || `local:${localStorage.getItem("peach.local-player.v1") || "default"}`;
} catch {
@@ -75140,7 +75143,7 @@ function $Ne() {
}
}
function r4({ id: e, onOpened: t }) {
- let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)($Ne), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = pH();
+ let [n, r] = (0, F.useState)(null), [i, a] = (0, F.useState)(ePe), [o, s] = (0, F.useState)(null), [c, l] = (0, F.useState)(""), [u, d] = (0, F.useState)(0), f = fH();
(0, F.useEffect)(() => {
let e = new AbortController();
return B("/api/local-players", e.signal).then((t) => {
@@ -75187,12 +75190,12 @@ function r4({ id: e, onOpened: t }) {
variant: "secondary",
"aria-label": "使用外部播放器打开",
disabled: n === null,
- ...pV(f.busy === "open"),
+ ...fV(f.busy === "open"),
onClick: p,
children: "打开"
})]
}),
- f.error || c ? /* @__PURE__ */ (0, I.jsx)(FH, { children: f.error || c }) : null,
+ f.error || c ? /* @__PURE__ */ (0, I.jsx)(PH, { children: f.error || c }) : null,
c ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
disabled: !!f.busy,
@@ -75201,16 +75204,16 @@ function r4({ id: e, onOpened: t }) {
},
children: "重新检测播放器"
}) : null,
- o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(aV, {
+ o ? /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(iV, {
label: "网络播放地址",
value: o.url,
isReadOnly: !0
- }), /* @__PURE__ */ (0, I.jsx)(PH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
+ }), /* @__PURE__ */ (0, I.jsx)(NH, { children: "链接有效期为 6 小时。VR 播放器可使用网络播放地址;另一台设备需要能访问当前 Peach 地址。" })] }) : null
]
});
}
// src/react/boardui/components/base/switch/switch.tsx
-var ePe = FI({
+var tPe = PI({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -75272,8 +75275,8 @@ var ePe = FI({
}
}
});
-function tPe({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = ePe[t];
+function nPe({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = tPe[t];
return /* @__PURE__ */ (0, I.jsx)("span", {
"aria-hidden": !0,
className: q("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? q("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
@@ -75284,11 +75287,11 @@ function tPe({ state: e, size: t = "md", shape: n = "pill" }) {
});
}
function i4({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, I.jsx)(the, {
+ return /* @__PURE__ */ (0, I.jsx)(nhe, {
ref: i,
...a,
className: (t) => q("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),
- children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(tPe, {
+ children: (e) => /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(nPe, {
state: e,
size: n,
shape: r
@@ -75299,7 +75302,7 @@ function i4({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
});
}
// src/react/cover-crop/cover-crop.ts
-var nPe = "/api/cover-crop", rPe = (e, t) => V(nPe, {
+var rPe = "/api/cover-crop", iPe = (e, t) => V(rPe, {
code: e,
box: t
});
@@ -75317,7 +75320,7 @@ function a4({ className: e }) {
children: /* @__PURE__ */ (0, I.jsx)("use", { href: "#i-crop" })
});
}
-function iPe({ code: e, coverUrl: t, box: n, onSaved: r }) {
+function aPe({ 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",
@@ -75328,12 +75331,12 @@ function iPe({ code: e, coverUrl: t, box: n, onSaved: r }) {
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
children: /* @__PURE__ */ (0, I.jsx)(a4, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, I.jsx)(oV, {
+ }), /* @__PURE__ */ (0, I.jsx)(aV, {
isOpen: i,
onOpenChange: a,
width: "cover-crop",
label: "裁剪封面",
- children: /* @__PURE__ */ (0, I.jsx)(aPe, {
+ children: /* @__PURE__ */ (0, I.jsx)(oPe, {
code: e,
coverUrl: t,
box: n,
@@ -75342,9 +75345,9 @@ function iPe({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function aPe({ 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 = RV(), f = It({
- mutationFn: (t) => rPe(e, t),
+function oPe({ 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) => iPe(e, t),
onSuccess: (e) => {
i(), r(e.poster_box);
}
@@ -75356,19 +75359,19 @@ function aPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : hOe(e, no);
- c(WZ(t, e, null));
+ } : _Oe(e, no);
+ c(UZ(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)(sV, { children: /* @__PURE__ */ (0, I.jsx)(a4, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, I.jsx)(oV, { children: /* @__PURE__ */ (0, I.jsx)(a4, { className: "size-6" }) }),
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
- /* @__PURE__ */ (0, I.jsx)(HL, {
+ /* @__PURE__ */ (0, I.jsx)(VL, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -75377,14 +75380,14 @@ function aPe({ 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)(cV, {
+ f.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: lr(f.error)
}) : null
]
}),
- /* @__PURE__ */ (0, I.jsx)(cL, {
- icon: CB,
+ /* @__PURE__ */ (0, I.jsx)(sL, {
+ icon: SB,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -75394,14 +75397,14 @@ function aPe({ 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)(YZ, {
+ children: /* @__PURE__ */ (0, I.jsx)(JZ, {
src: t,
aspect: l ? no : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- HZ(e) && p(e);
+ VZ(e) && p(e);
},
onBox: c
})
@@ -75411,7 +75414,7 @@ function aPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
children: [/* @__PURE__ */ (0, I.jsx)(i4, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(WZ(s, a, no));
+ u(e), e && s && a && c(UZ(s, a, no));
},
children: /* @__PURE__ */ (0, I.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -75421,14 +75424,14 @@ function aPe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
className: "flex flex-1 flex-wrap items-center justify-end gap-3",
children: [/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...pV(m),
+ ...fV(m),
onClick: () => {
m || f.mutate(null);
},
children: "恢复默认"
}), /* @__PURE__ */ (0, I.jsx)(J, {
disabled: !s || !a,
- ...pV(m),
+ ...fV(m),
onClick: () => {
s && !m && f.mutate(s);
},
@@ -75446,14 +75449,14 @@ var o4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: e }
}), c4 = (e) => Number(e) > 0 ? Xn(Number(e)) : "大小未知";
-function oPe(e) {
+function sPe(e) {
let { queue: t, actions: n } = e, r = Ft({
- queryKey: t ? vP(t) : ["item-queue", "none"],
- queryFn: ({ signal: n }) => DP(t, e.helpers, n),
+ queryKey: t ? _P(t) : ["item-queue", "none"],
+ queryFn: ({ signal: n }) => EP(t, e.helpers, n),
enabled: !!t
- }), i = t && r.data || null, a = i ? AP(i, e.id) : t ? null : e.id, o = Ft({
- queryKey: _P(a ?? 0),
- queryFn: ({ signal: e }) => EP(a, e),
+ }), i = t && r.data || null, a = i ? kP(i, e.id) : t ? null : e.id, o = Ft({
+ queryKey: gP(a ?? 0),
+ queryFn: ({ signal: e }) => TP(a, e),
enabled: a != null
});
if (!o.data || t && !i) {
@@ -75466,7 +75469,7 @@ function oPe(e) {
"data-item-media": "none",
children: [/* @__PURE__ */ (0, I.jsx)(l4, { onClose: n.close }), /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-placeholder": "",
- children: e ? /* @__PURE__ */ (0, I.jsx)(IG, {
+ children: e ? /* @__PURE__ */ (0, I.jsx)(FG, {
message: xn(e),
onRetry: () => {
r.error && r.refetch(), o.error && o.refetch();
@@ -75476,9 +75479,9 @@ function oPe(e) {
})
});
}
- return /* @__PURE__ */ (0, I.jsx)(sPe, {
+ return /* @__PURE__ */ (0, I.jsx)(cPe, {
...e,
- item: $ue(o.data, i),
+ item: ede(o.data, i),
queue: i
}, o.data.id);
}
@@ -75491,23 +75494,23 @@ var l4 = ({ onClose: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function sPe(e) {
- let { item: t, queue: n, actions: r, helpers: i } = e, a = SPe(t, r, i.tagLabel), o = (0, F.useRef)(t);
+function cPe(e) {
+ let { item: t, queue: n, actions: r, helpers: i } = e, a = CPe(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(yP, {
+ n?.kind === "playlist" && V(vP, {
action: "progress",
id: n.playlistId,
asset_id: t.id
}).catch(() => {});
}, []);
- let s = ZN() ? "" : lde(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = jP(n, t.id);
+ let s = XN() ? "" : ude(t, i.sourceOffline(String(t.root_id || t.location || ""))), c = AP(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)(cPe, {
+ children: [/* @__PURE__ */ (0, I.jsx)(lPe, {
item: t,
gate: s,
helpers: i,
@@ -75520,7 +75523,7 @@ function sPe(e) {
autoplay: !0
}, c.id);
}
- }), /* @__PURE__ */ (0, I.jsx)(pPe, {
+ }), /* @__PURE__ */ (0, I.jsx)(mPe, {
item: t,
queue: n,
write: a,
@@ -75529,13 +75532,13 @@ function sPe(e) {
})]
}), /* @__PURE__ */ (0, I.jsx)(I2, {
queueCards: n?.kind === "parts" || n?.kind === "editions" ? n.items.length : void 0,
- queue: n ? /* @__PURE__ */ (0, I.jsx)(uPe, {
+ queue: n ? /* @__PURE__ */ (0, I.jsx)(dPe, {
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)(xPe, {
+ children: e.relatedLimit > 0 && (!n || n.kind === "parts" || n.kind === "editions") ? /* @__PURE__ */ (0, I.jsx)(SPe, {
...e,
item: n ? {
...t,
@@ -75544,7 +75547,7 @@ function sPe(e) {
}) : null
})] });
}
-function cPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a }) {
+function lPe({ 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: Q2(e.code || ""),
queryFn: ({ signal: t }) => {
@@ -75634,7 +75637,7 @@ function cPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
className: "relative block h-12 w-20 skeleton-sheen"
}) : /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...pV(f.isFetching),
+ ...fV(f.isFetching),
title: f.data?.message || xn(f.error),
"aria-label": "立即重试样图",
onClick: () => {
@@ -75643,7 +75646,7 @@ function cPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
children: "立即重试"
})
}) : null,
- t === "offline" ? /* @__PURE__ */ (0, I.jsx)(lPe, {
+ t === "offline" ? /* @__PURE__ */ (0, I.jsx)(uPe, {
item: e,
badge: y,
helpers: n,
@@ -75684,7 +75687,7 @@ function cPe({ item: e, gate: t, helpers: n, actions: r, autoplay: i, onEnded: a
]
});
}
-function lPe({ item: e, badge: t, helpers: n, actions: r }) {
+function uPe({ 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);
@@ -75709,8 +75712,8 @@ function lPe({ item: e, badge: t, helpers: n, actions: r }) {
]
});
}
-function uPe({ queue: e, itemId: t, helpers: n, actions: r }) {
- let i = ade(e), a = (0, F.useRef)(null), o = fPe(e, t, r), s = (0, F.useRef)(o);
+function dPe({ queue: e, itemId: t, helpers: n, actions: r }) {
+ let i = ode(e), a = (0, F.useRef)(null), o = pPe(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, {
@@ -75718,7 +75721,7 @@ function uPe({ 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 = dPe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
+ }, [n, e.kind]), l = fPe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, I.jsx)("button", {
type: "button",
"data-save-mix": "",
title: "保存为播放列表",
@@ -75737,7 +75740,7 @@ function uPe({ queue: e, itemId: t, helpers: n, actions: r }) {
seedId: e.seedId,
playlistId: e.playlistId
};
- return /* @__PURE__ */ (0, I.jsx)(yK, {
+ return /* @__PURE__ */ (0, I.jsx)(vK, {
kind: e.kind,
title: i.title,
summary: i.summary,
@@ -75746,11 +75749,11 @@ function uPe({ 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 ${rde[i.edition_label] || "censored"}`,
+ className: `javedition ${ide[i.edition_label] || "censored"}`,
"data-queue-edition": "",
children: i.edition_label
- }) : null, s = e.kind === "playlist" && kP(i);
- return /* @__PURE__ */ (0, I.jsxs)(bK, {
+ }) : null, s = e.kind === "playlist" && OP(i);
+ return /* @__PURE__ */ (0, I.jsxs)(yK, {
current: i.id === t,
"data-queue-item": i.id,
row: { "data-queue-row": i.id },
@@ -75789,14 +75792,14 @@ function uPe({ 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 ? zP(i.part_label) : Mo(i, n.tagLabel)
+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" || e.kind === "editions" && i.part_label ? RP(i.part_label) : Mo(i, n.tagLabel)
})]
}, i.id);
})
});
}
-function dPe(e, t) {
- let n = It({ mutationFn: (t) => V(yP, {
+function fPe(e, t) {
+ let n = It({ mutationFn: (t) => V(vP, {
action: "create",
name: t,
asset_ids: e.items.map((e) => e.id),
@@ -75809,11 +75812,11 @@ function dPe(e, t) {
save: (e) => n.mutateAsync(e)
});
}
-function fPe(e, t, n) {
- let r = vP({
+function pPe(e, t, n) {
+ let r = _P({
kind: "playlist",
playlistId: e.playlistId
- }), i = (e) => (H.setQueryData(r, OP(e)), e), a = (t) => V(yP, {
+ }), i = (e) => (H.setQueryData(r, DP(e)), e), a = (t) => V(vP, {
id: e.playlistId,
...t
}).then((e) => e.playlist), o = It({
@@ -75829,8 +75832,8 @@ function fPe(e, t, n) {
return {
move: async (t, r, c) => {
if (e.kind !== "playlist") return;
- let l = sde(s, t, r, c);
- if (cde(l, s)) return;
+ let l = cde(s, t, r, c);
+ if (lde(l, s)) return;
let u = s;
await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {
i(await a({
@@ -75872,7 +75875,7 @@ function fPe(e, t, n) {
}
};
}
-function pPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
+function mPe({ 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": "",
@@ -75880,7 +75883,7 @@ function pPe({ 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)(mPe, {
+ /* @__PURE__ */ (0, I.jsx)(hPe, {
item: e,
queue: t,
helpers: r,
@@ -75892,7 +75895,7 @@ function pPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
"aria-live": "polite",
children: n.sourceState
}),
- /* @__PURE__ */ (0, I.jsx)(gPe, {
+ /* @__PURE__ */ (0, I.jsx)(_Pe, {
item: e,
write: n
}),
@@ -75931,24 +75934,24 @@ function pPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
id: e.id,
onOpened: () => i.toast("已请求打开本地播放器")
}, e.id) : null,
- /* @__PURE__ */ (0, I.jsx)(_Pe, {
+ /* @__PURE__ */ (0, I.jsx)(vPe, {
item: e,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, I.jsx)(vPe, {
+ /* @__PURE__ */ (0, I.jsx)(yPe, {
item: e,
write: n,
helpers: r,
actions: i
}),
- /* @__PURE__ */ (0, I.jsx)(jK, {
- assetIds: AK([e], r.javImage()),
+ /* @__PURE__ */ (0, I.jsx)(AK, {
+ assetIds: kK([e], r.javImage()),
onComplete: () => {
- H.invalidateQueries({ queryKey: _P(e.id) });
+ H.invalidateQueries({ queryKey: gP(e.id) });
}
}),
- /* @__PURE__ */ (0, I.jsx)(yPe, { item: e }),
+ /* @__PURE__ */ (0, I.jsx)(bPe, { item: e }),
/* @__PURE__ */ (0, I.jsxs)("div", {
"data-stage-actions": "",
"data-item-feedback": "",
@@ -76042,7 +76045,7 @@ function pPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
]
}),
- /* @__PURE__ */ (0, I.jsx)(bPe, {
+ /* @__PURE__ */ (0, I.jsx)(xPe, {
item: e,
open: s,
write: n
@@ -76066,8 +76069,8 @@ function pPe({ item: e, queue: t, write: n, helpers: r, actions: i }) {
})
});
}
-function mPe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
- let { text: a, expanded: o, foldable: s, toggle: c } = X2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + ode(e, t);
+function hPe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
+ let { text: a, expanded: o, foldable: s, toggle: c } = X2(String(e.title || e.name || "")), l = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + sde(e, t);
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-title": "",
children: /* @__PURE__ */ (0, I.jsxs)("div", {
@@ -76094,23 +76097,23 @@ function mPe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
"aria-label": o ? "收起标题" : "展开标题",
title: o ? "收起标题" : "展开完整标题",
onClick: c,
- children: /* @__PURE__ */ (0, I.jsx)(jH, {})
+ children: /* @__PURE__ */ (0, I.jsx)(AH, {})
}),
e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, I.jsx)("span", {
"data-cover-crop-host": "",
- children: /* @__PURE__ */ (0, I.jsx)(iPe, {
+ children: /* @__PURE__ */ (0, I.jsx)(aPe, {
code: e.cover_key || e.code || "",
coverUrl: lo(e),
box: e.poster_box || null,
onSaved: (t) => {
H.invalidateQueries({
- queryKey: _P(e.id),
+ queryKey: gP(e.id),
exact: !0
- }), pP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
+ }), fP((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });
}
})
}) : null,
- e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(hPe, {
+ e.location === "online" ? null : /* @__PURE__ */ (0, I.jsx)(gPe, {
id: e.id,
actions: r,
onStatus: i
@@ -76120,7 +76123,7 @@ function mPe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {
})
});
}
-function hPe({ id: e, actions: t, onStatus: n }) {
+function gPe({ 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 () => {
@@ -76153,15 +76156,15 @@ function hPe({ id: e, actions: t, onStatus: n }) {
children: /* @__PURE__ */ (0, I.jsx)(o4, { name: "folder-sync" })
})] });
}
-function gPe({ item: e, write: t }) {
- let n = hP(e.rating);
+function _Pe({ item: e, write: t }) {
+ let n = mP(e.rating);
return /* @__PURE__ */ (0, I.jsxs)("div", {
id: "detailRating",
role: "group",
"data-item-rating": "",
"aria-label": "评分",
- "data-value": mP(e.rating),
- children: [/* @__PURE__ */ (0, I.jsx)(KJ, {
+ "data-value": pP(e.rating),
+ children: [/* @__PURE__ */ (0, I.jsx)(GJ, {
value: n,
onRate: (e) => t.rate(e),
busyStar: [
@@ -76175,12 +76178,12 @@ function gPe({ item: e, write: t }) {
}), /* @__PURE__ */ (0, I.jsx)("span", {
"data-rating-value": "",
"aria-live": "polite",
- children: Yue(e.rating)
+ children: Xue(e.rating)
})]
});
}
-function _Pe({ item: e, actions: t }) {
- let n = (0, F.useMemo)(() => ede(e), [e]), [r, i] = (0, F.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {
+function vPe({ item: e, actions: t }) {
+ let n = (0, F.useMemo)(() => tde(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)(J2, {
kind: e,
@@ -76226,7 +76229,7 @@ function _Pe({ item: e, actions: t }) {
size: "small",
id: "castMore",
"data-cast-more": "",
- trailingIcon: gB,
+ trailingIcon: hB,
"aria-expanded": !1,
onClick: () => i(!0),
children: [
@@ -76251,12 +76254,12 @@ function _Pe({ item: e, actions: t }) {
})]
});
}
-function vPe({ item: e, write: t, helpers: n, actions: r }) {
+function yPe({ item: e, write: t, helpers: n, actions: r }) {
return /* @__PURE__ */ (0, I.jsx)("div", {
"data-item-tags": "",
children: /* @__PURE__ */ (0, I.jsx)(B2, {
id: "detailTags",
- tags: tde(e, n),
+ tags: nde(e, n),
candidates: n.tagCandidates(),
label: n.tagLabel,
adding: [...t.busy].some((e) => e.startsWith("add:")),
@@ -76267,8 +76270,8 @@ function vPe({ item: e, write: t, helpers: n, actions: r }) {
}, e.id)
});
}
-function yPe({ item: e }) {
- let t = ude(e);
+function bPe({ item: e }) {
+ let t = dde(e);
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-trace": "",
children: [/* @__PURE__ */ (0, I.jsxs)("div", {
@@ -76302,7 +76305,7 @@ function yPe({ item: e }) {
})]
});
}
-function bPe({ item: e, open: t, write: n }) {
+function xPe({ 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();
@@ -76341,10 +76344,10 @@ function bPe({ item: e, open: t, write: n }) {
})]
});
}
-function xPe(e) {
+function SPe(e) {
let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = Ft({
- queryKey: Xue(t.id, n),
- queryFn: async ({ signal: e }) => (await B(Que(t.id, n), e)).items || []
+ queryKey: Zue(t.id, n),
+ queryFn: async ({ signal: e }) => (await B($ue(t.id, n), e)).items || []
}), [o] = (0, F.useState)(() => r.relatedSkeletonHtml());
return /* @__PURE__ */ (0, I.jsx)(F2, {
wireDrag: r.wireDrag,
@@ -76354,7 +76357,7 @@ function xPe(e) {
onRetry: () => {
a.refetch();
},
- children: a.data ? /* @__PURE__ */ (0, I.jsx)(nY, {
+ children: a.data ? /* @__PURE__ */ (0, I.jsx)(tY, {
mode: "items",
variant: "next",
items: a.data,
@@ -76370,8 +76373,8 @@ function xPe(e) {
}) : /* @__PURE__ */ (0, I.jsx)(s4, { html: o })
});
}
-function SPe(e, t, n) {
- let r = e.id, i = _P(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = (e, t) => o((n) => {
+function CPe(e, t, n) {
+ let r = e.id, i = gP(r), [a, o] = (0, F.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, F.useState)(""), [l, u] = (0, F.useState)(""), d = (e, t) => o((n) => {
let r = new Set(n);
return t ? r.add(e) : r.delete(e), r;
}), f = () => H.getQueryData(i) || e, p = (e) => {
@@ -76387,7 +76390,7 @@ function SPe(e, t, n) {
rating: t.rating,
o_count: t.o_count
};
- return fP(r, n), t;
+ return dP(r, n), t;
}, m = (e, t) => V(e, {
id: r,
...t
@@ -76402,7 +76405,7 @@ function SPe(e, t, n) {
run: n
}));
}, _ = async (e, t) => {
- let n = await m(bP, t === void 0 ? { kind: e } : {
+ let n = await m(yP, t === void 0 ? { kind: e } : {
kind: e,
value: t
});
@@ -76422,21 +76425,21 @@ function SPe(e, t, n) {
"aria-disabled": !0
} : {},
rate: (e) => g(`rate:${e}`, "评分", async () => {
- let n = f().rating || 0, r = gP(n, e);
- await _("rate", r), t.toast(r ? `已评 ${hP(r)} 星` : "已取消评分", { undo: async () => {
+ let n = f().rating || 0, r = hP(n, e);
+ await _("rate", r), t.toast(r ? `已评 ${mP(r)} 星` : "已取消评分", { undo: async () => {
await _("rate", n);
} });
}),
feedback: (e) => g(e, "操作", async () => {
let n = { feedback: f().feedback || null }, r = await _(e);
- t.toast(BP(e, r), { undo: async () => {
+ t.toast(zP(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(SP, {});
+ let e = await m(xP, {});
p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {
- p({ watch_later: (await m(SP, {})).watch_later });
+ p({ watch_later: (await m(xP, {})).watch_later });
} });
}),
quality: () => g("quality", "更新版本需求", async () => {
@@ -76446,9 +76449,9 @@ function SPe(e, t, n) {
}, n = (e) => p({
better_version: e.better_version,
better_version_reason: e.better_version_reason || ""
- }), r = await m(CP, { wanted: !e.wanted });
+ }), r = await m(SP, { wanted: !e.wanted });
n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {
- n(await m(CP, e));
+ n(await m(SP, e));
} });
}),
preference: ({ liked: e, reason: n }) => {
@@ -76462,7 +76465,7 @@ function SPe(e, t, n) {
});
u("保存中…");
try {
- o(await m(wP, {
+ o(await m(CP, {
liked: a,
reason: i
}));
@@ -76472,7 +76475,7 @@ function SPe(e, t, n) {
u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);
let s = f();
t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {
- o(await m(wP, r));
+ o(await m(CP, r));
} });
});
},
@@ -76481,30 +76484,30 @@ function SPe(e, t, n) {
operation: "remove",
tag: e.k
})).ok) throw Error("标签未删除");
- p((t) => PP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
- await m(xP, {
+ p((t) => NP(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {
+ await m(bP, {
operation: "add",
tag: e.k
- }), p((t) => FP(t, e));
+ }), p((t) => PP(t, e));
} });
}),
addTag: (e) => {
let r = e.trim();
r && g(`add:${r}`, "添加标签", async () => {
- let e = await m(xP, {
+ let e = await m(bP, {
operation: "add",
tag: r
});
if (!e.ok) return;
let i = e.tag || r;
- NP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => FP(e, {
+ MP(f(), i) ? t.toast(`标签「${n(i)}」已存在`) : (p((e) => PP(e, {
k: i,
cat: "general"
- })), RP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
- await m(xP, {
+ })), LP(i), t.toast(`已添加标签「${n(i)}」`, { undo: async () => {
+ await m(bP, {
operation: "remove",
tag: i
- }), p((e) => PP(e, i));
+ }), p((e) => NP(e, i));
} }));
});
}
@@ -76523,12 +76526,12 @@ function f4(e) {
let o = new Date(Date.UTC(n, r + 2, 0)).getUTCDate();
return Date.UTC(n, r + 1, Math.min(i, o));
}
-function CPe(e, t = Date.now()) {
+function wPe(e, t = Date.now()) {
let n = f4(e);
return n !== void 0 && d4(t) > n ? Infinity : u4;
}
function p4(e, t, n = Date.now()) {
- return !Number.isFinite(e) || e <= 0 || e > n ? !1 : CPe(t, n) === Infinity ? d4(e) > f4(t) : n - e < u4;
+ return !Number.isFinite(e) || e <= 0 || e > n ? !1 : wPe(t, n) === Infinity ? d4(e) > f4(t) : n - e < u4;
}
// src/react/wants/resource-cache.ts
var m4 = "peach.want-resources.v2";
@@ -76550,11 +76553,11 @@ function _4() {
return [];
}
}
-function wPe(e, t) {
+function TPe(e, t) {
let n = _4().find((t) => t.code === e);
return n && p4(n.saved, t) ? n : void 0;
}
-function TPe(e) {
+function EPe(e) {
let t = new Map(_4().map((e) => [e.code, e])), n = /* @__PURE__ */ new Map();
for (let r of e) {
if (!r.code) continue;
@@ -76563,7 +76566,7 @@ function TPe(e) {
}
return n;
}
-function EPe(e, t) {
+function DPe(e, t) {
if (t.state === "ready" && h4(t)) try {
let n = _4().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");
localStorage.setItem(m4, JSON.stringify([{
@@ -76574,11 +76577,11 @@ function EPe(e, t) {
} catch {}
}
// src/react/wants/resource-display.ts
-function DPe(e) {
+function OPe(e) {
let t = (e ?? "").trim(), n = /^([\d,]+)\s*B$/i.exec(t);
return /^[\d,.]+$/.test(t) ? "大小未知" : n ? Xn(Number(n[1].replaceAll(",", ""))) : e || "大小未知";
}
-function OPe(e) {
+function kPe(e) {
return /^更多评论.*(?:VIP|官方 App)/.test(e) ? "来源只返回了部分评论,资源链接可能不完整。" : e;
}
// src/react/wants/want-magnets.tsx
@@ -76593,7 +76596,7 @@ function v4({ icon: e, children: t, title: n }) {
});
}
function y4({ 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 = pH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => wPe(h, e.release_date), [h, e.release_date]);
+ let s = (0, F.useRef)(null), [c, l] = (0, F.useState)(typeof IntersectionObserver > "u"), [u, d] = (0, F.useState)([]), f = fH(), p = ae(), m = (0, F.useRef)(!1), h = o ? `comment-resources:${o}:${e.code}` : `all-sources:${e.code || ""}`, g = (0, F.useMemo)(() => TPe(h, e.release_date), [h, e.release_date]);
(0, F.useEffect)(() => {
if (!s.current || c) return;
let e = new IntersectionObserver((t) => {
@@ -76613,7 +76616,7 @@ function y4({ 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", EPe(h, i), i;
+ return m.current = n && i.state === "busy", DPe(h, i), i;
},
initialData: g?.result,
initialDataUpdatedAt: g?.saved,
@@ -76628,7 +76631,7 @@ function y4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
(0, F.useEffect)(() => {
_.data?.source_url && a?.(_.data.source_url);
}, [_.data?.source_url, a]), (0, F.useEffect)(() => {
- !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && Iye(e.id, _.data.items.some((e) => e.protocol === "magnet"));
+ !o && _.data && (_.data.state === "ready" || _.data.items.length > 0) && Lye(e.id, _.data.items.some((e) => e.protocol === "magnet"));
}, [
_.data,
o,
@@ -76636,7 +76639,7 @@ function y4({ 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(KU, {
+ let n = await V(GU, {
magnet: r.uri,
provider: v.key,
target: v.target,
@@ -76647,7 +76650,7 @@ function y4({ 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: qU });
+ d((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), p.invalidateQueries({ queryKey: KU });
});
}, b = (e) => {
f.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));
@@ -76665,39 +76668,39 @@ function y4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
}), /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: HB,
- ...pV(x),
+ leadingIcon: VB,
+ ...fV(x),
onClick: () => {
x || (m.current = !0, _.refetch());
},
children: "重新查询"
})]
}),
- x ? /* @__PURE__ */ (0, I.jsx)(TH, { label: "正在查找资源链接" }) : null,
- S ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ x ? /* @__PURE__ */ (0, I.jsx)(wH, { label: "正在查找资源链接" }) : null,
+ S ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
title: "资源链接未取得",
children: S
}) : null,
- _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(cV, {
+ _.data?.warnings?.map((e) => /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
- children: OPe(e)
+ children: kPe(e)
}, e)),
- _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(bL, {
+ _.data?.warnings?.length && _.data.source_url ? /* @__PURE__ */ (0, I.jsx)(yL, {
variant: "secondary",
size: "small",
className: "self-start",
- trailingIcon: DB,
+ trailingIcon: EB,
href: _.data.source_url,
target: "_blank",
rel: "noopener noreferrer",
children: "查看来源页"
}) : null,
- _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ _.data?.state === "ready" && !_.data.items.length && !_.data.warnings?.length ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
children: "暂未找到资源链接。"
}) : null,
- f.error ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ f.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
title: "操作未完成",
children: f.error
@@ -76712,7 +76715,7 @@ function y4({ 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)(WU, {
+ children: [/* @__PURE__ */ (0, I.jsx)(UU, {
variant: "caption",
color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",
children: e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ED2K" : "网页链接"
@@ -76727,25 +76730,25 @@ function y4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
className: "flex flex-wrap gap-x-2 gap-y-1 text-caption-1-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, I.jsx)(v4, {
- icon: Rge,
+ icon: zge,
children: e.source
}),
/* @__PURE__ */ (0, I.jsx)(v4, {
- icon: PB,
+ icon: NB,
title: e.size ? `来源大小:${e.size}` : void 0,
- children: DPe(e.size)
+ children: OPe(e.size)
}),
e.files ? /* @__PURE__ */ (0, I.jsx)(v4, {
- icon: Dge,
+ icon: Oge,
children: e.files.replaceAll("個", "个")
}) : null,
/* @__PURE__ */ (0, I.jsx)(v4, {
- icon: pge,
+ icon: mge,
title: e.source === "JavDB 评论" ? "评论日期" : "收录日期",
children: e.date ? e.date.slice(0, 10) : "日期未知"
}),
e.attributes.filter((e) => e !== "高清").map((e) => /* @__PURE__ */ (0, I.jsx)(v4, {
- icon: VB,
+ icon: BB,
children: e
}, e))
]
@@ -76754,11 +76757,11 @@ function y4({ 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)(bL, {
+ /* @__PURE__ */ (0, I.jsx)(yL, {
"data-button-link": "",
variant: "secondary",
size: "small",
- trailingIcon: DB,
+ trailingIcon: EB,
href: e.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -76767,18 +76770,18 @@ function y4({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourc
/* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
size: "small",
- leadingIcon: Tge,
- ...pV(f.busy === `copy:${e.id}`),
+ leadingIcon: Ege,
+ ...fV(f.busy === `copy:${e.id}`),
onClick: () => b(e),
children: "复制链接"
}),
e.protocol === "magnet" ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "primary",
size: "small",
- leadingIcon: v ? BH(v.key) : vge,
+ leadingIcon: v ? zH(v.key) : yge,
title: v ? `下载到 ${v.label}` : void 0,
disabled: t || !n?.available || !v || r,
- ...pV(f.busy === e.id),
+ ...fV(f.busy === e.id),
onClick: () => y(e),
children: r ? "已添加" : "添加下载"
}) : null
@@ -76789,7 +76792,7 @@ function y4({ 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)(LH, {
+ }), e.length > 3 ? /* @__PURE__ */ (0, I.jsx)(IH, {
summary: `更多资源(${e.length - 3} 条)`,
children: /* @__PURE__ */ (0, I.jsx)("ul", {
className: "flex min-w-0 flex-col gap-4",
@@ -76812,7 +76815,7 @@ function x4() {
return [];
}
}
-function kPe(e, t) {
+function APe(e, t) {
if (t.ok && !t.cache_stale) try {
let n = Date.parse(t.checked_at || ""), r = [{
code: e,
@@ -76822,7 +76825,7 @@ function kPe(e, t) {
i.length <= 2e6 && localStorage.setItem(b4, i);
} catch {}
}
-function APe(e, t) {
+function jPe(e, t) {
let n = x4(), r = [], i = Infinity;
for (let a = 1; a <= 8; a++) {
let o = n.find((t) => t.code === e && t.result.page === a);
@@ -76834,11 +76837,11 @@ function APe(e, t) {
saved: i
} : void 0;
}
-function jPe(e, t, n) {
+function MPe(e, t, n) {
return e.length > 0 && e.every((e) => e.ok && !e.cache_stale && p4(Date.parse(e.checked_at || "") || t, n));
}
// src/react/jav-detail/jav-detail-page.tsx
-function MPe(e) {
+function NPe(e) {
let t = (0, F.useRef)(!1), n = Ft({
queryKey: Q2(e.code),
queryFn: ({ signal: n }) => {
@@ -76853,14 +76856,14 @@ function MPe(e) {
"data-jav-detail": "",
"data-item-detail": "",
"data-stage-grid": "",
- children: n.data ? /* @__PURE__ */ (0, I.jsx)(NPe, {
+ children: n.data ? /* @__PURE__ */ (0, I.jsx)(PPe, {
...e,
item: n.data,
retry: r,
retrying: n.isFetching
}, e.code) : /* @__PURE__ */ (0, I.jsxs)("div", {
"data-jav-failure": "",
- children: [/* @__PURE__ */ (0, I.jsx)(S4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, I.jsx)(IG, {
+ children: [/* @__PURE__ */ (0, I.jsx)(S4, { close: e.actions.close }), n.error ? /* @__PURE__ */ (0, I.jsx)(FG, {
message: lr(n.error),
onRetry: r
}) : null]
@@ -76876,7 +76879,7 @@ var S4 = ({ close: e }) => /* @__PURE__ */ (0, I.jsx)("button", {
onClick: e,
dangerouslySetInnerHTML: { __html: R("x") }
});
-function NPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a }) {
+function PPe({ 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)(() => {
@@ -76896,13 +76899,13 @@ function NPe({ 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 = pH(), m = () => {
- p.run("want", async (e) => d ? (await aW([d], e), null) : (await iW({ code: t.code }, e)).want.id, (t) => {
+ ], [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(Q2(e), (e) => e && {
...e,
wanted: !!t,
want_id: t
- }), n.receipt(t ? "已加入想要" : "已取消想要"), oW(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
+ }), n.receipt(t ? "已加入想要" : "已取消想要"), aW(), H.invalidateQueries({ queryKey: ["feed-new"] }), H.invalidateQueries({ queryKey: ["jav-discoveries"] });
});
};
return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
@@ -76919,7 +76922,7 @@ function NPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
onClick: () => s(o === -2 ? -1 : -2),
children: [/* @__PURE__ */ (0, I.jsx)(C4, { name: o === -2 ? "image" : "play" }), o === -2 ? "查看图片" : "视频预览"]
}) : null,
- o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(IPe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(cQ, {
+ o === -2 && t.preview_video_url ? /* @__PURE__ */ (0, I.jsx)(LPe, { src: t.preview_video_url }, t.preview_video_url) : /* @__PURE__ */ (0, I.jsx)(sQ, {
item: t,
image: o === -1 ? "cover" : String(o)
}, t.code),
@@ -76928,7 +76931,7 @@ function NPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
position: Math.max(0, c.findIndex((e) => e.index === o)),
onSelect: s,
below: !0,
- renderThumbnail: (e) => /* @__PURE__ */ (0, I.jsx)(cQ, {
+ renderThumbnail: (e) => /* @__PURE__ */ (0, I.jsx)(sQ, {
item: t,
image: e.index < 0 ? "cover" : String(e.index),
thumbnail: !0
@@ -76942,7 +76945,7 @@ function NPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
"data-stage-side-content": "",
"data-jav-info": "",
children: [
- /* @__PURE__ */ (0, I.jsx)(PPe, { item: t }),
+ /* @__PURE__ */ (0, I.jsx)(FPe, { item: t }),
Number(t.score) > 0 ? /* @__PURE__ */ (0, I.jsx)(T4, { score: Number(t.score) }) : null,
/* @__PURE__ */ (0, I.jsxs)("div", {
className: "mono",
@@ -76958,7 +76961,7 @@ function NPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
value: t.duration ? `${t.duration} 分钟` : void 0
})]
}),
- /* @__PURE__ */ (0, I.jsx)(FPe, {
+ /* @__PURE__ */ (0, I.jsx)(IPe, {
item: t,
navigate: n.navigate
}),
@@ -76997,14 +77000,14 @@ function NPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
t.summary ? /* @__PURE__ */ (0, I.jsx)("p", {
"data-jav-summary": "",
"data-long-text": "",
- lang: VI(t.summary),
+ lang: BI(t.summary),
children: t.summary
}) : null,
- t.message ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ t.message ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...pV(a),
+ ...fV(a),
onClick: i,
children: "立即重试"
}),
@@ -77013,10 +77016,10 @@ function NPe({ 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)(bL, {
+ t.source_url ? /* @__PURE__ */ (0, I.jsx)(yL, {
"data-button-link": "",
variant: "secondary",
- trailingIcon: DB,
+ trailingIcon: EB,
href: t.source_url,
target: "_blank",
rel: "noopener noreferrer",
@@ -77026,7 +77029,7 @@ function NPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
variant: "secondary",
disabled: r,
"aria-pressed": !!d,
- ...pV(!!p.busy),
+ ...fV(!!p.busy),
onClick: m,
children: d ? "取消想要" : "想要"
}),
@@ -77044,16 +77047,16 @@ function NPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
})
]
}),
- p.error ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ p.error ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "error",
children: p.error
}) : null,
- /* @__PURE__ */ (0, I.jsx)(LPe, {
+ /* @__PURE__ */ (0, I.jsx)(RPe, {
code: t.code,
count: t.comments_count,
released: t.release_date
}),
- /* @__PURE__ */ (0, I.jsx)(RPe, {
+ /* @__PURE__ */ (0, I.jsx)(zPe, {
item: t,
actions: n,
readOnly: r
@@ -77061,7 +77064,7 @@ function NPe({ code: e, item: t, actions: n, readOnly: r, retry: i, retrying: a
]
})
}),
- /* @__PURE__ */ (0, I.jsx)(eW, {
+ /* @__PURE__ */ (0, I.jsx)($U, {
prefill: l,
close: () => u(null),
receipt: n.receipt
@@ -77077,7 +77080,7 @@ var C4 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("span", {
title: t,
children: [/* @__PURE__ */ (0, I.jsx)(C4, { name: e }), /* @__PURE__ */ (0, I.jsx)("span", { children: n })]
}) : null;
-function PPe({ item: e }) {
+function FPe({ item: e }) {
let { text: t, expanded: n, foldable: r, toggle: i } = X2(e.title), a = e.title === e.code ? "" : e.title;
return /* @__PURE__ */ (0, I.jsxs)("div", {
"data-item-title": "",
@@ -77094,7 +77097,7 @@ function PPe({ 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: VI(a),
+ lang: BI(a),
children: a
})] }) : null]
})
@@ -77108,7 +77111,7 @@ function PPe({ item: e }) {
"aria-label": n ? "收起标题" : "展开标题",
title: n ? "收起标题" : "展开完整标题",
onClick: i,
- children: /* @__PURE__ */ (0, I.jsx)(jH, {})
+ children: /* @__PURE__ */ (0, I.jsx)(AH, {})
})
})]
});
@@ -77120,13 +77123,13 @@ function T4({ score: e, review: t = !1 }) {
"data-review-rating": t ? "" : void 0,
role: "img",
"aria-label": `${t ? "评论" : "JavDB"}评分 ${e} / 5`,
- children: [/* @__PURE__ */ (0, I.jsx)(KJ, { value: e }), /* @__PURE__ */ (0, I.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, I.jsx)(GJ, { value: e }), /* @__PURE__ */ (0, I.jsxs)("span", {
"data-rating-value": "",
children: [e.toFixed(1), " / 5"]
})]
});
}
-function FPe({ item: e, navigate: t }) {
+function IPe({ 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,
@@ -77142,7 +77145,7 @@ function FPe({ item: e, navigate: t }) {
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)(lQ, {
+ face: t === "performer" && !r.has_image && !r.has_avatar && r.source_avatar && r.source_actor_id ? /* @__PURE__ */ (0, I.jsx)(cQ, {
code: e.code,
person: r,
detail: !0
@@ -77168,18 +77171,18 @@ function FPe({ item: e, navigate: t }) {
})]
});
}
-function IPe({ src: e }) {
+function LPe({ 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), Iue(i, {
+ return i.className = "video-js vjs-big-play-centered", i.controls = !0, i.setAttribute("playsinline", ""), i.setAttribute("aria-label", "视频预览"), n.append(i), Lue(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)(cV, {
+ children: n ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
@@ -77192,8 +77195,8 @@ function IPe({ src: e }) {
}) : null
});
}
-function LPe({ code: e, count: t, released: n }) {
- let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => APe(e, n), [e, n]), s = (0, F.useRef)(!1), c = Lt({
+function RPe({ code: e, count: t, released: n }) {
+ let r = ae(), [i, a] = (0, F.useState)(!1), o = (0, F.useMemo)(() => jPe(e, n), [e, n]), s = (0, F.useRef)(!1), c = Lt({
queryKey: ["jav-reviews", e],
enabled: i,
initialPageParam: 1,
@@ -77202,12 +77205,12 @@ function LPe({ code: e, count: t, released: n }) {
pageParams: o.pageParams
} : void 0,
initialDataUpdatedAt: o?.saved,
- staleTime: (e) => jPe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
+ staleTime: (e) => MPe(e.state.data?.pages || [], e.state.dataUpdatedAt, n) ? Infinity : 0,
gcTime: 864e5,
refetchOnWindowFocus: !1,
queryFn: async ({ signal: t, pageParam: n }) => {
- let i = await ZNe(e, n, t, s.current);
- if (kPe(e, i), !i.ok || i.cache_stale) {
+ let i = await QNe(e, n, t, s.current);
+ if (APe(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,
@@ -77217,7 +77220,7 @@ function LPe({ code: e, count: t, released: n }) {
}
return i;
},
- getNextPageParam: QNe
+ getNextPageParam: $Ne
});
(0, F.useEffect)(() => {
c.isFetching || (s.current = !1);
@@ -77225,10 +77228,10 @@ function LPe({ 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)(LH, {
+ children: /* @__PURE__ */ (0, I.jsxs)(IH, {
trailing: !0,
summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [
- /* @__PURE__ */ (0, I.jsx)(mge, { "aria-hidden": !0 }),
+ /* @__PURE__ */ (0, I.jsx)(hge, { "aria-hidden": !0 }),
"评论",
t > 0 ? ` · ${t}` : ""
] }),
@@ -77277,28 +77280,28 @@ function LPe({ code: e, count: t, released: n }) {
]
}), /* @__PURE__ */ (0, I.jsx)("p", {
"data-long-text": "",
- lang: VI(e.content),
+ lang: BI(e.content),
children: e.content
})]
}, e.id)),
- d ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ d ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
action: /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...pV(c.isFetching),
+ ...fV(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
children: "立即重试"
}),
children: d
- }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(cV, {
+ }) : !c.isPending && !u.length ? /* @__PURE__ */ (0, I.jsx)(sV, {
tone: "neutral",
children: "暂无评论"
}) : null,
!d && l.length ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...pV(c.isFetching),
+ ...fV(c.isFetching),
onClick: () => {
s.current = !0, c.refetch();
},
@@ -77306,13 +77309,13 @@ function LPe({ code: e, count: t, released: n }) {
}) : null,
c.hasNextPage ? /* @__PURE__ */ (0, I.jsx)(J, {
variant: "secondary",
- ...pV(c.isFetchingNextPage),
+ ...fV(c.isFetchingNextPage),
onClick: () => {
c.isFetchingNextPage || c.fetchNextPage();
},
children: "更多评论"
}) : null,
- !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(cV, {
+ !d && l.at(-1)?.page === 8 && t > u.length ? /* @__PURE__ */ (0, I.jsxs)(sV, {
tone: "neutral",
children: [
"已显示 ",
@@ -77324,15 +77327,15 @@ function LPe({ code: e, count: t, released: n }) {
})
});
}
-function RPe({ item: e, actions: t, readOnly: n }) {
+function zPe({ item: e, actions: t, readOnly: n }) {
let [r, i] = (0, F.useState)(!1), a = Ft({
- queryKey: qU,
+ queryKey: KU,
enabled: r,
- queryFn: ({ signal: e }) => B(`${KU}?limit=50`, e)
+ queryFn: ({ signal: e }) => B(`${GU}?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)(LH, {
+ children: /* @__PURE__ */ (0, I.jsx)(IH, {
trailing: !0,
summary: /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, I.jsx)(C4, { name: "link" }), "资源"] }),
onOpenChange: (e) => {
@@ -77356,16 +77359,16 @@ function RPe({ item: e, actions: t, readOnly: n }) {
}
// src/react/stage/stage-player.ts
var E4 = null, D4 = null, O4 = null, k4 = null, A4 = null, j4 = !1, M4 = 0, N4 = null, P4 = () => !1, F4 = (e, t, n) => `${e}:${t}:${n ?? ""}`;
-function zPe(e, t) {
- E4 = e, P4 = () => t.isOpen(), N4 = () => t.requestClose(), Jle({
+function BPe(e, t) {
+ E4 = e, P4 = () => t.isOpen(), N4 = () => t.requestClose(), Yle({
...e.player,
stage: () => document.getElementById("stage")
- }), Yle({
+ }), Xle({
inMiniplayer: (e) => D4?.player === e,
kind: (e) => D4?.player === e ? D4.kind : O4?.kind ?? k4?.kind ?? "item",
expand: () => t3(),
toMiniplayer: () => n3()
- }), I4 || (I4 = !0, addEventListener("pagehide", () => KN()));
+ }), I4 || (I4 = !0, addEventListener("pagehide", () => GN()));
}
var I4 = !1;
function L4() {
@@ -77375,10 +77378,10 @@ function L4() {
function R4(e) {
k4 = e;
}
-var BPe = () => k4;
+var VPe = () => k4;
function z4(e, t) {
let { kind: n, item: r, media: i = null } = t, a = F4(n, r.id, i?.index ?? null);
- if (D4 && D4.key === a) return HPe(e, D4);
+ if (D4 && D4.key === a) return UPe(e, D4);
D4 && e3();
let o = {
player: null,
@@ -77390,7 +77393,7 @@ function z4(e, t) {
O4 = 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 = aP(s, {
+ let c = iP(s, {
kind: n,
item: r,
media: i,
@@ -77403,10 +77406,10 @@ function z4(e, t) {
});
return () => {
let e = !!o.player && D4?.player === o.player;
- O4 === o && (O4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), KN());
+ O4 === o && (O4 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), GN());
};
}
-async function VPe(e, t, n) {
+async function HPe(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("这条作品没有可播放的视频");
@@ -77430,9 +77433,9 @@ async function VPe(e, t, n) {
s || (s = !0, e && k4 === a && V4(!0), o(), k4 === a && R4(null));
};
}
-function HPe(e, t) {
+function UPe(e, t) {
let { player: n } = t;
- Q4(t), D4 = null, $4(), n.el().classList.remove("vjs-peach-mini"), rP(e), e.append(n.el()), YM(n);
+ Q4(t), D4 = null, $4(), n.el().classList.remove("vjs-peach-mini"), nP(e), e.append(n.el()), JM(n);
let r = {
player: n,
kind: t.kind,
@@ -77441,9 +77444,9 @@ function HPe(e, t) {
key: t.key
};
O4 = r;
- let i = iP(n, e);
- return XM(n), () => {
- O4 === r && (O4 = null), i(), D4?.player !== n && (JM() === n && YM(null), LN(n), KN());
+ let i = rP(n, e);
+ return YM(n), () => {
+ O4 === r && (O4 = null), i(), D4?.player !== n && (qM() === n && JM(null), IN(n), GN());
};
}
var B4 = () => {
@@ -77456,7 +77459,7 @@ function V4(e) {
let n = O4, r = n?.player, i = k4;
if (!n || !r || r.isDisposed() || !i || !A4) return;
let a = L4().player.settings();
- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && KPe({
+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && qPe({
player: r,
kind: n.kind,
item: n.item,
@@ -77471,11 +77474,11 @@ function U4(e) {
A4 = e, A4 && X4();
}
var W4 = () => !!D4 && !D4.pending && !D4.player.isDisposed();
-function UPe() {
+function WPe() {
return W4() ? A4?.frame.querySelector("video") ?? null : null;
}
-function WPe() {
- return P4() ? document.getElementById("stage")?.querySelector("video") ?? null : B4()?.el().querySelector("video") ?? UPe();
+function GPe() {
+ return P4() ? document.getElementById("stage")?.querySelector("video") ?? null : B4()?.el().querySelector("video") ?? WPe();
}
function G4(e) {
A4 && (A4.title.textContent = e.title || "", A4.sub.textContent = e.sub || "", A4.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));
@@ -77524,7 +77527,7 @@ function Z4(e) {
function Q4(e) {
e.off.forEach((e) => e()), e.off = [];
}
-function GPe() {
+function KPe() {
let e = A4?.root;
if (!e) return;
let t = e.hidden;
@@ -77545,7 +77548,7 @@ function $4() {
e.style.transform = "";
}
}
-function KPe(e, t) {
+function qPe(e, t) {
if (!A4) return;
let n = {
...e,
@@ -77553,13 +77556,13 @@ function KPe(e, t) {
off: [],
pending: !1
};
- D4 = n, M4++, e.player.el().classList.add("vjs-peach-mini"), A4.frame.prepend(e.player.el()), G4(t), Z4(n), GPe(), XM(e.player);
+ D4 = n, M4++, e.player.el().classList.add("vjs-peach-mini"), A4.frame.prepend(e.player.el()), G4(t), Z4(n), KPe(), YM(e.player);
}
function e3() {
let e = D4;
e && Q4(e), D4 = null, M4++;
let t = e?.player ?? null;
- t && JM() === t && YM(null), LN(t), t && KN(), A4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), KM(), $4();
+ t && qM() === t && JM(null), IN(t), t && GN(), A4?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), GM(), $4();
}
function t3() {
if (!W4() || !D4) return;
@@ -77569,7 +77572,7 @@ function t3() {
function n3() {
W4() && !P4() ? t3() : P4() && B4() && N4 && (j4 = !0, N4());
}
-function qPe() {
+function JPe() {
let e = D4?.player;
e && !e.isDisposed() && (e.paused() ? e.play()?.catch(() => {}) : e.pause());
}
@@ -77582,7 +77585,7 @@ function r3(e) {
function i3(e) {
return !(!W4() || !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 || L4().sourceOffline(String(e.root_id || e.location || "")));
}
-async function JPe(e) {
+async function YPe(e) {
if (!W4() || !D4 || !A4) return;
let t = ++M4, n = await Tn(`/api/item?id=${e}`).catch(() => null);
if (t !== M4 || !W4() || !D4 || !A4 || !n || n.error) return;
@@ -77591,7 +77594,7 @@ async function JPe(e) {
return;
}
let r = D4;
- Q4(r), JM() === r.player && YM(null), LN(r.player), KN(), A4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
+ Q4(r), qM() === r.player && JM(null), IN(r.player), GN(), A4.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());
let i = document.createElement("video");
i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", A4.frame.prepend(i);
let a = {
@@ -77600,14 +77603,14 @@ async function JPe(e) {
title: String(n.title || n.name || ""),
sub: String(n.performers?.[0] || n.creator || "未归属")
};
- G4(a), aP(i, {
+ G4(a), iP(i, {
kind: "item",
item: n,
autoplay: !0,
chrome: !1,
onPlayer: (r) => {
if (t !== M4) {
- r && JM() === r && YM(null), LN(r);
+ r && qM() === r && JM(null), IN(r);
return;
}
if (!r) {
@@ -77634,9 +77637,9 @@ var a3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
children: /* @__PURE__ */ (0, I.jsx)("use", { href: `#i-${e}` })
-}), YPe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, o3 = (e) => (t) => {
+}), XPe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, o3 = (e) => (t) => {
t.stopPropagation(), e();
-}, XPe = (0, F.memo)(function() {
+}, ZPe = (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)(() => (U4({
root: e.current,
@@ -77648,7 +77651,7 @@ var a3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
title: s.current,
sub: c.current,
info: l.current
- }), () => U4(null)), []), (0, F.useEffect)(() => $Pe(e.current, t.current), []), (0, F.useEffect)(() => ZPe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
+ }), () => U4(null)), []), (0, F.useEffect)(() => eFe(e.current, t.current), []), (0, F.useEffect)(() => QPe(e.current), []), /* @__PURE__ */ (0, I.jsx)("aside", {
ref: e,
"data-miniplayer": "",
id: "miniplayer",
@@ -77698,8 +77701,8 @@ var a3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
id: "miniplayerPlay",
"aria-label": "暂停",
"aria-keyshortcuts": "k",
- onClick: o3(qPe),
- dangerouslySetInnerHTML: YPe
+ onClick: o3(JPe),
+ dangerouslySetInnerHTML: XPe
}),
/* @__PURE__ */ (0, I.jsx)("button", {
ref: o,
@@ -77738,7 +77741,7 @@ var a3 = ({ name: e }) => /* @__PURE__ */ (0, I.jsx)("svg", {
})
});
});
-function ZPe(e) {
+function QPe(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");
@@ -77752,7 +77755,7 @@ function ZPe(e) {
n.disconnect(), r.disconnect(), window.removeEventListener("resize", t), document.documentElement.style.removeProperty("--miniplayer-space");
};
}
-function QPe(e, t, n) {
+function $Pe(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
@@ -77774,7 +77777,7 @@ function QPe(e, t, n) {
};
e.addEventListener("transitionend", u), setTimeout(u, 600);
}
-function $Pe(e, t) {
+function eFe(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 = {
@@ -77800,7 +77803,7 @@ function $Pe(e, t) {
} catch {}
i.moved && (e.dataset.dragged = "1", setTimeout(() => {
delete e.dataset.dragged;
- }, 0), QPe(e, i.dx, i.dy));
+ }, 0), $Pe(e, i.dx, i.dy));
}, o = (t) => {
e.dataset.dragged && (t.stopPropagation(), t.preventDefault());
}, s = (e) => {
@@ -77819,25 +77822,25 @@ function g3() {
if (!s3) throw Error("舞台还没有接上宿主(configureStage)");
return s3;
}
-function eFe(e) {
+function tFe(e) {
return u3.add(e), () => {
u3.delete(e);
};
}
-function tFe() {
+function nFe() {
for (let e of [...u3]) e();
}
function _3() {
- (0, Rt.flushSync)(tFe);
+ (0, Rt.flushSync)(nFe);
}
-function nFe({ view: e }) {
- return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(rFe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(XPe, {})] });
+function rFe({ view: e }) {
+ return /* @__PURE__ */ (0, I.jsxs)(I.Fragment, { children: [e ? /* @__PURE__ */ (0, I.jsx)(iFe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, I.jsx)(ZPe, {})] });
}
var v3 = () => /* @__PURE__ */ (0, I.jsx)("div", {
"data-skeleton": "detail",
role: "status",
"aria-label": "正在读取作品详情",
- dangerouslySetInnerHTML: { __html: tNe() }
+ dangerouslySetInnerHTML: { __html: nNe() }
});
function y3(e) {
let t = e.currentTarget;
@@ -77846,14 +77849,14 @@ function y3(e) {
return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;
}
function b3() {
- let e = h3(), t = e && iNe(e);
+ let e = h3(), t = e && aNe(e);
t ? (t.focus({ preventScroll: !0 }), t.dispatchEvent(new KeyboardEvent("keydown", {
key: "Escape",
bubbles: !0,
cancelable: !0
}))) : x3();
}
-function rFe({ view: e }) {
+function iFe({ view: e }) {
let t = (0, F.useRef)(null);
(0, F.useLayoutEffect)(() => {
let e = t.current, n = (t) => {
@@ -77861,7 +77864,7 @@ function rFe({ view: e }) {
};
return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);
}, []);
- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(oPe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(MPe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(VNe, { ...r.props }, r.props.id);
+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, I.jsx)(sPe, { ...r.props }) : r.kind === "jav" ? /* @__PURE__ */ (0, I.jsx)(NPe, { ...r.props }, r.props.code) : /* @__PURE__ */ (0, I.jsx)(HNe, { ...r.props }, r.props.id);
return /* @__PURE__ */ (0, I.jsxs)("dialog", {
ref: t,
id: "stage",
@@ -77981,7 +77984,7 @@ function C3(e) {
}
};
}
-function iFe(e, t) {
+function aFe(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 = () => {
@@ -77998,7 +78001,7 @@ function w3(e) {
let t = h3();
return !c3 || c3.content.kind !== e || p3 || !t?.open || t.hasAttribute("data-closing") ? null : t;
}
-async function aFe(e) {
+async function oFe(e) {
!l3 && document.activeElement instanceof HTMLElement && document.activeElement !== document.body && (l3 = {
left: window.scrollX,
top: window.scrollY,
@@ -78006,7 +78009,7 @@ async function aFe(e) {
});
let t = w3(e.kind);
if (t) {
- await sFe(e, t);
+ await cFe(e, t);
return;
}
c3 && T3({ miniplayer: !1 });
@@ -78019,12 +78022,12 @@ async function aFe(e) {
content: i,
phase: "skeleton"
};
- let a = i.kind === "item" ? MP(i.props, r.signal) : i.kind === "jav" ? e4(i.props, r.signal) : u2(i.props, r.signal);
+ let a = i.kind === "item" ? jP(i.props, r.signal) : i.kind === "jav" ? e4(i.props, r.signal) : u2(i.props, r.signal);
if (n !== d3 || c3?.request !== e) {
await a.catch(() => {});
return;
}
- let o = oFe(i);
+ let o = sFe(i);
c3 = {
...c3,
phase: o ? "content" : "skeleton"
@@ -78045,31 +78048,31 @@ async function aFe(e) {
c3 = {
...c3,
phase: c ? "content" : "reveal"
- }, _3(), c || iFe(s, n), tc(s, ":scope>:not([data-stage-fade]) [data-reveal-line]");
+ }, _3(), c || aFe(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 oFe(e) {
+function sFe(e) {
if (e.kind === "jav") return !!H.getQueryData(Q2(e.props.code));
if (e.kind === "follow") return !!H.getQueryData(s2(e.props.id));
- let { queue: t, id: n } = e.props, r = t ? H.getQueryData(vP(t)) : null;
+ let { queue: t, id: n } = e.props, r = t ? H.getQueryData(_P(t)) : null;
if (t && !r) return !1;
- let i = r ? AP(r, n) : n;
- return i != null && !!H.getQueryData(_P(i));
+ let i = r ? kP(r, n) : n;
+ return i != null && !!H.getQueryData(gP(i));
}
-async function sFe(e, t) {
+async function cFe(e, t) {
let n = ++d3;
f3?.abort();
let r = new AbortController();
f3 = r, m3 = !1;
let i = C3(e);
try {
- i.kind === "item" ? await MP(i.props, r.signal) : i.kind === "jav" ? await e4(i.props, r.signal) : await u2(i.props, r.signal);
+ i.kind === "item" ? await jP(i.props, r.signal) : i.kind === "jav" ? await e4(i.props, r.signal) : await u2(i.props, r.signal);
} catch {
if (r.signal.aborted) return;
}
if (n !== d3 || !c3 || w3(e.kind) !== t) return;
- e.kind === "jav" ? e3() : H4(e.kind, e.id ?? NaN), Nl(t), KM(), c3 = {
+ e.kind === "jav" ? e3() : H4(e.kind, e.id ?? NaN), Nl(t), GM(), c3 = {
...c3,
request: e,
content: i,
@@ -78078,7 +78081,7 @@ async function sFe(e, t) {
let a = document.activeElement;
a !== t && t.contains(a) || (t.querySelector("[data-mix-item][aria-current=\"true\"]") || t.querySelector("#closeStage"))?.focus({ preventScroll: !0 });
}
-function cFe() {
+function lFe() {
o2(null);
let e = h3();
return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {
@@ -78093,7 +78096,7 @@ function cFe() {
function T3({ miniplayer: e = !0 } = {}) {
if (d3++, f3?.abort(), f3 = null, V4(e), !c3) return;
let t = h3();
- t && Nl(t), KM(), o2(null), t?.open && t.close(), c3 = null, p3 = !1, m3 = !1, _3(), R4(null), document.body.removeAttribute("data-detail-open");
+ t && Nl(t), GM(), o2(null), t?.open && t.close(), c3 = null, p3 = !1, m3 = !1, _3(), R4(null), document.body.removeAttribute("data-detail-open");
let n = l3;
l3 = null;
let r = () => {
@@ -78105,7 +78108,7 @@ function T3({ miniplayer: e = !0 } = {}) {
};
r(), requestAnimationFrame(r);
}
-function lFe(e) {
+function uFe(e) {
c3 && (c3 = {
...c3,
content: c3.content.kind === "item" ? {
@@ -78123,62 +78126,62 @@ function lFe(e) {
}
}, _3());
}
-function uFe() {
- let e = BPe(), t = e?.kind === "item" ? e.item : null, n = t ? ko(t, g3().player.settings().javImage) : "";
+function dFe() {
+ let e = VPe(), t = e?.kind === "item" ? e.item : null, n = t ? ko(t, g3().player.settings().javImage) : "";
if (!n) return;
let r = B4();
r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);
}
-var dFe = {
- open: aFe,
- update: lFe,
- exit: cFe,
+var fFe = {
+ open: oFe,
+ update: uFe,
+ exit: lFe,
dispose: T3,
requestClose: x3,
requestEscape: b3,
- repaintPoster: uFe,
+ repaintPoster: dFe,
isOpen: () => !!c3,
showing: () => c3 && w3(c3.content.kind) ? c3.content.kind : null,
- activeVideo: () => WPe(),
- mountWallPlayer: VPe,
+ activeVideo: () => GPe(),
+ mountWallPlayer: HPe,
toggleTheater: () => {
- c3 && wN(!g3().player.settings().theaterMode);
+ c3 && CN(!g3().player.settings().theaterMode);
},
toggleMiniplayer: () => n3(),
closeMiniplayer: () => e3(),
miniplayerActive: () => W4(),
miniplayerTakesCard: (e) => i3(e),
miniplayerPlay: (e) => {
- JPe(e);
+ YPe(e);
}
};
-function fFe(e) {
- return s3 = e, zPe(e, {
+function pFe(e) {
+ return s3 = e, BPe(e, {
isOpen: () => !!c3,
requestClose: x3
- }), dFe;
+ }), fFe;
}
-function pFe() {
- let e = (0, F.useSyncExternalStore)(eFe, () => c3);
- return s3 ? /* @__PURE__ */ (0, I.jsx)(nFe, { view: e }) : null;
+function mFe() {
+ let e = (0, F.useSyncExternalStore)(tFe, () => c3);
+ return s3 ? /* @__PURE__ */ (0, I.jsx)(rFe, { view: e }) : null;
}
// src/react/stats/stats.ts
-var mFe = "/api/stats", E3 = ["stats"], D3 = (e) => B(mFe, e);
-async function hFe(e) {
+var hFe = "/api/stats", E3 = ["stats"], D3 = (e) => B(hFe, e);
+async function gFe(e) {
await H.fetchQuery({
queryKey: E3,
queryFn: () => D3(e)
});
}
-var O3 = (e) => e != null && Number.isFinite(e), gFe = (e) => O3(e) ? e.toLocaleString() : "未取得", _Fe = (e, t) => O3(e) && O3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, vFe = (e, t) => {
- let n = _Fe(e, t);
+var O3 = (e) => e != null && Number.isFinite(e), _Fe = (e) => O3(e) ? e.toLocaleString() : "未取得", vFe = (e, t) => O3(e) && O3(t) && t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0, yFe = (e, t) => {
+ let n = vFe(e, t);
return !n && O3(e) && e > 0 && O3(t) && t > 0 ? "<1%" : `${n}%`;
}, k3 = (e) => {
if (!O3(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)} 分钟`;
-}, A3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, j3 = (e) => (e.max_reached || 0) * 100, yFe = (e) => e.kind === "online" ? "在线直接观看" : A3(e) < j3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", bFe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
-function xFe(e, t = 6) {
+}, A3 = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, j3 = (e) => (e.max_reached || 0) * 100, bFe = (e) => e.kind === "online" ? "在线直接观看" : A3(e) < j3(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", xFe = (e) => `${e.kind === "online" ? "/posts/" : "/assets/"}${e.id}`;
+function SFe(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);
@@ -78188,7 +78191,7 @@ function xFe(e, t = 6) {
bytes: i.reduce((e, t) => e + (t.bytes ?? 0), 0)
}];
}
-var SFe = (e) => Math.max(1, ...e) * 1.1, CFe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, wFe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), TFe = {
+var CFe = (e) => Math.max(1, ...e) * 1.1, wFe = (e, t) => e > 0 ? Math.max(e, t * .02) : 0, TFe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), EFe = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -78196,10 +78199,10 @@ var SFe = (e) => Math.max(1, ...e) * 1.1, CFe = (e, t) => e > 0 ? Math.max(e, t
audio: "音频",
account: "账号",
other: "其它文件"
-}, EFe = (e) => e.map((e) => ({
- name: TFe[e.k] ?? e.k,
+}, DFe = (e) => e.map((e) => ({
+ name: EFe[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), DFe = {
+})).sort((e, t) => t.value - e.value), OFe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
@@ -78207,7 +78210,7 @@ var SFe = (e) => Math.max(1, ...e) * 1.1, CFe = (e, t) => e > 0 ? Math.max(e, t
}, M3 = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), OFe = (e) => M3(e, DFe), kFe = [
+})), kFe = (e) => M3(e, OFe), AFe = [
[
1,
1,
@@ -78243,7 +78246,7 @@ var SFe = (e) => Math.max(1, ...e) * 1.1, CFe = (e, t) => e > 0 ? Math.max(e, t
Infinity,
"≥10"
]
-], AFe = (e) => kFe.map(([t, n, r]) => ({
+], jFe = (e) => AFe.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
}));
@@ -78278,7 +78281,7 @@ function F3(e, t) {
return n;
}
// node_modules/d3-sankey/src/align.js
-function jFe(e, t) {
+function MFe(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
// node_modules/d3-sankey/src/constant.js
@@ -78300,13 +78303,13 @@ function z3(e, t) {
function B3(e) {
return e.value;
}
-function MFe(e) {
+function NFe(e) {
return e.index;
}
-function NFe(e) {
+function PFe(e) {
return e.nodes;
}
-function PFe(e) {
+function FFe(e) {
return e.links;
}
function V3(e, t) {
@@ -78321,8 +78324,8 @@ function H3({ nodes: e }) {
for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
}
}
-function FFe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = MFe, c = jFe, l, u, d = NFe, f = PFe, p = 6;
+function IFe() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = NFe, c = MFe, l, u, d = PFe, f = FFe, p = 6;
function m() {
let e = {
nodes: d.apply(null, arguments),
@@ -78507,7 +78510,7 @@ function FFe() {
return m;
}
// node_modules/d3-path/src/path.js
-var U3 = Math.PI, W3 = 2 * U3, G3 = 1e-6, IFe = W3 - G3;
+var U3 = Math.PI, W3 = 2 * U3, G3 = 1e-6, LFe = W3 - G3;
function K3() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
@@ -78548,7 +78551,7 @@ K3.prototype = q3.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) > G3 || Math.abs(this._y1 - l) > G3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % W3 + W3), d > IFe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > G3 && (this._ += "A" + n + "," + n + ",0," + +(d >= U3) + "," + 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) > G3 || Math.abs(this._y1 - l) > G3) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % W3 + W3), d > LFe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > G3 && (this._ += "A" + n + "," + n + ",0," + +(d >= U3) + "," + 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";
@@ -78564,25 +78567,25 @@ function J3(e) {
};
}
// node_modules/d3-shape/src/point.js
-function LFe(e) {
+function RFe(e) {
return e[0];
}
-function RFe(e) {
+function zFe(e) {
return e[1];
}
// node_modules/d3-shape/src/array.js
-var zFe = Array.prototype.slice;
+var BFe = Array.prototype.slice;
// node_modules/d3-shape/src/link/index.js
-function BFe(e) {
+function VFe(e) {
return e.source;
}
-function VFe(e) {
+function HFe(e) {
return e.target;
}
-function HFe(e) {
- var t = BFe, n = VFe, r = LFe, i = RFe, a = null;
+function UFe(e) {
+ var t = VFe, n = HFe, r = RFe, i = zFe, a = null;
function o() {
- var o, s = zFe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ var o, s = BFe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
if (a ||= o = q3(), 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) {
@@ -78597,54 +78600,54 @@ function HFe(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function UFe(e, t, n, r, i) {
+function WFe(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function WFe() {
- return HFe(UFe);
+function GFe() {
+ return UFe(WFe);
}
// node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function GFe(e) {
+function KFe(e) {
return [e.source.x1, e.y0];
}
-function KFe(e) {
+function qFe(e) {
return [e.target.x0, e.y1];
}
-function qFe() {
- return WFe().source(GFe).target(KFe);
+function JFe() {
+ return GFe().source(KFe).target(qFe);
}
// src/react/taste/taste.ts
-var JFe = "/api/taste", Y3 = "/api/taste/refresh", YFe = "/api/taste/import", X3 = "/api/taste/source", Z3 = (e) => ["taste", e], XFe = ["taste", "refresh"], ZFe = [
+var YFe = "/api/taste", Y3 = "/api/taste/refresh", XFe = "/api/taste/import", X3 = "/api/taste/source", Z3 = (e) => ["taste", e], ZFe = ["taste", "refresh"], QFe = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], QFe = 2e3, $Fe = (e) => e?.stale && !e.error ? QFe : !1, eIe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
+], $Fe = 2e3, eIe = (e) => e?.stale && !e.error ? $Fe : !1, tIe = (e) => e ? new Date(e).toLocaleString("zh-CN", {
month: "numeric",
day: "numeric",
hour: "2-digit",
minute: "2-digit"
-}) : "—", tIe = (e, t) => V(X3, {
+}) : "—", nIe = (e, t) => V(X3, {
...e,
window: t
-}), Q3 = (e, t, n = !1) => B(`${JFe}?window=${e}${n ? "&retry=1" : ""}`, t), nIe = (e) => B(Y3, e);
-async function rIe(e, t) {
+}), Q3 = (e, t, n = !1) => B(`${YFe}?window=${e}${n ? "&retry=1" : ""}`, t), rIe = (e) => B(Y3, e);
+async function iIe(e, t) {
await H.fetchQuery({
queryKey: Z3(e),
queryFn: () => Q3(e, t)
});
}
-var iIe = (e) => V(Y3, {
+var aIe = (e) => V(Y3, {
window: e,
background: !0
-}), aIe = (e, t) => V(X3, {
+}), oIe = (e, t) => V(X3, {
operation: "remove",
source_key: e,
window: t
});
-async function oIe(e) {
- let t = await fetch(YFe, {
+async function sIe(e) {
+ let t = await fetch(XFe, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -78662,8 +78665,8 @@ async function oIe(e) {
}
return n;
}
-var sIe = 1e4, $3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
-function cIe(e) {
+var cIe = 1e4, $3 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—";
+function lIe(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", {
@@ -78672,31 +78675,31 @@ function cIe(e) {
}) : $3(e);
return `${t} · ${r(e.range_start)}–${r(e.range_end)}`;
}
-var lIe = k3, uIe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), dIe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function fIe(e) {
+var uIe = k3, dIe = (e) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).sort((e, t) => Number(t.score) - Number(e.score)), fIe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
+function pIe(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 pIe(e) {
- let t = e.map(dIe), n = Math.max(1, ...t);
+function mIe(e) {
+ let t = e.map(fIe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
var e6 = (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 mIe(e) {
+function hIe(e) {
let t = e6(e, 6);
return t.length < 3 ? [] : t;
}
var t6 = {
width: 720,
height: 435
-}, hIe = {
+}, gIe = {
source: 145,
target: 545
-}, n6 = 30, gIe = 240;
+}, n6 = 30, _Ie = 240;
function r6(e, t, n) {
let r = /* @__PURE__ */ new Map();
for (let n of e) r.set(n[t], (r.get(n[t]) ?? 0) + n.value);
@@ -78704,7 +78707,7 @@ function r6(e, t, n) {
let i = [...r].sort((e, t) => t[1] - e[1]).map(([e]) => e), a = new Set(i.slice(0, 11)), o = n(i.length - a.size);
return (e) => a.has(e) ? e : o;
}
-function _Ie(e = []) {
+function vIe(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return null;
let n = r6(t, "source", (e) => `其余 ${e.toLocaleString()} 个网站`), r = r6(t, "target", (e) => `其余 ${e.toLocaleString()} 位创作者`), i = /* @__PURE__ */ new Map();
@@ -78716,7 +78719,7 @@ function _Ie(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) * n6 + gIe), u = FFe().nodeId((e) => e.id).nodeWidth(10).nodePadding(n6).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) * n6 + _Ie), u = IFe().nodeId((e) => e.id).nodeWidth(10).nodePadding(n6).extent([[155, 16], [535, l]])({
nodes: [...o.map((e) => ({
id: `source:${e}`,
name: e,
@@ -78731,7 +78734,7 @@ function _Ie(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), d = a.reduce((e, t) => e + t.value, 0), f = qFe();
+ }), d = a.reduce((e, t) => e + t.value, 0), f = JFe();
return {
nodes: u.nodes.map((e) => ({
id: e.id,
@@ -78762,14 +78765,14 @@ function _Ie(e = []) {
height: l + t6.height - 404
};
}
-var vIe = (e) => tr(e, 17), i6 = {
+var yIe = (e) => tr(e, 17), i6 = {
performers: "艺人",
creators: "卖家",
studios: "厂牌",
agencies: "事务所",
series: "系列",
tags: "标签"
-}, yIe = [[
+}, bIe = [[
"big",
"大图 · 竖幅头像",
"maximize"
@@ -78777,7 +78780,7 @@ var vIe = (e) => tr(e, 17), i6 = {
"compact",
"紧凑 · 圆形头像",
"layout-grid"
-]], bIe = [[
+]], xIe = [[
"big",
"大图 · 完整标识",
"maximize"
@@ -78785,7 +78788,7 @@ var vIe = (e) => tr(e, 17), i6 = {
"compact",
"紧凑 · 圆形标识",
"layout-grid"
-]], xIe = [[
+]], SIe = [[
"big",
"大图 · 系列图片",
"maximize"
@@ -78793,7 +78796,7 @@ var vIe = (e) => tr(e, 17), i6 = {
"compact",
"紧凑 · 系列图片",
"layout-grid"
-]], SIe = [
+]], CIe = [
[
"studios",
"厂牌",
@@ -78809,7 +78812,7 @@ var vIe = (e) => tr(e, 17), i6 = {
"系列",
"file-stack"
]
-], CIe = [[
+], wIe = [[
"local",
"本地",
"hard-drive"
@@ -78817,7 +78820,7 @@ var vIe = (e) => tr(e, 17), i6 = {
"online",
"在线",
"rss"
-]], wIe = [
+]], TIe = [
[
"performers",
"艺人",
@@ -78833,7 +78836,7 @@ var vIe = (e) => tr(e, 17), i6 = {
"在线",
"rss"
]
-], TIe = [[
+], EIe = [[
"cloud",
"标签云",
"tags"
@@ -78860,12 +78863,12 @@ var s6 = (e, t, n) => Us(e.map(([e, t, n]) => ({
active: t,
label: n,
className: "indextabs"
-}), EIe = (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">
+}), DIe = (e) => `<div class="peach-react contents"><div data-filter-glass data-glass-pane class="sticky top-topbar z-10 mb-5.5 flex flex-col">
<div class="flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2" data-filter-row="top" data-skeleton-tier="filter-pill" aria-label="标签类型"></div>
<div class="flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2" data-filter-row="bottom"><span class="countskeleton"></span>
- <span class="ml-auto">${$c("tag-view", "标签视图", TIe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
-function DIe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
- let o = i6[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? $c("people-layout", o + "索引版式", e === "series" ? xIe : c ? bIe : yIe, a) : "";
+ <span class="ml-auto">${$c("tag-view", "标签视图", EIe, e, { className: "tag-skeleton-view" })}</span></div></div></div>`;
+function OIe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
+ let o = i6[e] || "标签", s = e !== "tags", c = e === "studios" || e === "agencies" || e === "series", l = s ? $c("people-layout", o + "索引版式", e === "series" ? SIe : c ? xIe : bIe, 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}
@@ -78877,24 +78880,24 @@ function DIe({ kind: e, q: t, scope: n, view: r, category: i }, a) {
}) : ""}
<div data-index-search class="ml-auto min-w-0 max-w-80 flex-1">${Ds("", t, "过滤" + o)}</div>
</div>
- ${e === "tags" ? s6(CIe, n, "词表") : e === "performers" || e === "creators" ? s6(wIe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? s6(SIe, e, "资料类型") : ""}
- ${e === "tags" ? EIe(r) : ""}
- ${e === "performers" && n !== "online" ? nDe(i) : ""}
+ ${e === "tags" ? s6(wIe, n, "词表") : e === "performers" || e === "creators" ? s6(TIe, e === "performers" && n === "online" ? "online" : e, "人物名册") : c ? s6(CIe, e, "资料类型") : ""}
+ ${e === "tags" ? DIe(r) : ""}
+ ${e === "performers" && n !== "online" ? iDe(i) : ""}
${oc({
kind: e,
layout: a,
mode: r
})}`;
}
-var OIe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
+var kIe = (e) => e.match(/data-skeleton="([^"]*)"/)?.[1] || "";
function c6(e, t, n) {
- let r = DIe(t, n);
- e.querySelector("[data-skeleton]")?.dataset.skeleton !== OIe(r) && (e.innerHTML = r, pc(e));
+ let r = OIe(t, n);
+ e.querySelector("[data-skeleton]")?.dataset.skeleton !== kIe(r) && (e.innerHTML = r, pc(e));
}
// src/react/router/pages/index-entity.tsx
-var kIe = () => pu, AIe = () => Ql, l6 = () => document.getElementById("index");
+var AIe = () => pu, jIe = () => Ql, l6 = () => document.getElementById("index");
function u6(e, t, n = {}) {
- let r = (0, F.useSyncExternalStore)(Cu, kIe);
+ let r = (0, F.useSyncExternalStore)(Cu, AIe);
ef();
let i = Bf(Np.navigation.location.pathname), a = (0, F.useRef)({
mounted: !0,
@@ -78942,7 +78945,7 @@ function u6(e, t, n = {}) {
i
]);
}
-async function jIe(e, t, n, r) {
+async function MIe(e, t, n, r) {
let i = l6();
if (!i) return;
let a = `/${t}`, o = o6(t, n), s = a6(rM().value.peopleLayout), c = !!i.querySelector("[data-index-page]") && !i.hidden;
@@ -78957,23 +78960,23 @@ async function jIe(e, t, n, r) {
reuse: c
}) && r() && (e.surfaceShown?.("index", a), vm(r, i));
}
-function MIe(e) {
+function NIe(e) {
let t = l6(), n = t ? mp(t) : null;
return !!t && !t.hidden && !!n && n.path === e && n.host.isConnected;
}
-function NIe({ epoch: e }) {
- let t = (0, F.useContext)(JW), n = ef(), r = n.pathname.split("/").filter(Boolean)[0];
+function PIe({ epoch: e }) {
+ let t = (0, F.useContext)(qW), n = ef(), r = n.pathname.split("/").filter(Boolean)[0];
return u6(e, (e, i) => {
- t && jIe(t, r, n.search, i);
- }, { shown: () => MIe(`/${r}`) }), null;
+ t && MIe(t, r, n.search, i);
+ }, { shown: () => NIe(`/${r}`) }), null;
}
-function PIe() {
- let e = qW(), t = (0, F.useSyncExternalStore)(Cu, AIe), n = (0, F.useRef)(t);
+function FIe() {
+ let e = KW(), t = (0, F.useSyncExternalStore)(Cu, jIe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
n.current !== t && (n.current = t, window.location.pathname === "/tags" && xp(l6(), { selectMode: t }));
- }, [t]), /* @__PURE__ */ (0, I.jsx)(NIe, { epoch: e }, e);
+ }, [t]), /* @__PURE__ */ (0, I.jsx)(PIe, { epoch: e }, e);
}
-function FIe(e) {
+function IIe(e) {
let t;
try {
t = decodeURIComponent(e);
@@ -78988,7 +78991,7 @@ function FIe(e) {
} : null;
}
var d6 = /* @__PURE__ */ new WeakMap();
-function IIe(e) {
+function LIe(e) {
let t = d6.get(e);
return t || (t = {
helpers: {
@@ -79005,7 +79008,7 @@ function f6() {
let e = l6(), t = e ? mp(e) : null;
return !!t && t.path.endsWith("/*") && t.host.isConnected;
}
-async function LIe(e, t, n, r, i, a, o) {
+async function RIe(e, t, n, r, i, a, o) {
let s = l6();
if (!s) return;
let { segment: c, kind: l, name: u } = n;
@@ -79029,7 +79032,7 @@ async function LIe(e, t, n, r, i, a, o) {
let g = {
...h,
hosts: m,
- card: IIe(e),
+ card: LIe(e),
resolvedEntity: o,
restoreNavigation: gm(),
actions: {
@@ -79046,8 +79049,8 @@ async function LIe(e, t, n, r, i, a, o) {
place: (e) => (e.replaceChildren(...f), p.firstElementChild)
}) && a() && f6() && (e.surfaceShown?.("entity", r), vm(a, m.filter));
}
-function RIe({ target: e }) {
- let t = (0, F.useContext)(JW), n = qW(), r = ef();
+function zIe({ target: e }) {
+ let t = (0, F.useContext)(qW), n = KW(), r = ef();
return u6(n, (n, i) => {
let a = t?.entity;
t && a && (async () => {
@@ -79079,7 +79082,7 @@ function RIe({ target: e }) {
return;
}
let c = String(s.canonical_name || e.name), l = Pn(e.kind, c, Number(s.id));
- l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? vm(i, l6()?.querySelector("[data-entity-filter]")) : LIe(t, a, {
+ l === r.pathname ? !n && a.refresh(e.kind, c, r.search) ? vm(i, l6()?.querySelector("[data-entity-filter]")) : RIe(t, a, {
...e,
name: c
}, r.pathname, r.search, i, s) : Pp(l + r.search + r.hash, {
@@ -79089,13 +79092,13 @@ function RIe({ target: e }) {
})();
}, { shown: () => f6() && !l6()?.hidden }), null;
}
-function zIe() {
- let e = FIe(ef().pathname);
- return e ? /* @__PURE__ */ (0, I.jsx)(RIe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
+function BIe() {
+ let e = IIe(ef().pathname);
+ return e ? /* @__PURE__ */ (0, I.jsx)(zIe, { target: e }, JSON.stringify([e.kind, e.name])) : null;
}
// src/react/router/pages/follow.tsx
-var p6 = () => document.getElementById("stats"), BIe = () => yu;
-async function VIe(e, t) {
+var p6 = () => document.getElementById("stats"), VIe = () => yu;
+async function HIe(e, t) {
let n = p6(), r = e.follow;
if (!n || !r) return;
let i = hm("follow"), a = r.refresh(i), o = r.props();
@@ -79111,16 +79114,16 @@ async function VIe(e, t) {
beforePlace: s ? () => e.surfaceChanged("follow", "/follow") : void 0
}), t() && vm(t, n.querySelector("[data-filter-frame]"));
}
-function HIe() {
+function UIe() {
let e = p6(), t = e ? mp(e) : null;
return !!e && !e.hidden && !!t && t.path === "/follow" && t.host.isConnected;
}
-function UIe() {
- let e = (0, F.useContext)(JW);
- return u6(qW(), (t, n) => {
- e && VIe(e, n);
+function WIe() {
+ let e = (0, F.useContext)(qW);
+ return u6(KW(), (t, n) => {
+ e && HIe(e, n);
}, {
- shown: HIe,
+ shown: UIe,
onCovered: () => {
Np.navigation.location.pathname.startsWith("/posts/") && e?.follow?.ground();
}
@@ -79130,7 +79133,7 @@ function m6(e) {
let t = e ? mp(e) : null;
return !!t && t.path === "/playlists" && t.host.isConnected;
}
-async function WIe(e, t) {
+async function GIe(e, t) {
let n = p6();
n && (e.surfaceChanged("playlists", "/playlists"), P2(n, M2("/playlists", {
followLayout: "",
@@ -79141,36 +79144,36 @@ async function WIe(e, t) {
isCurrent: t
}), t() && vm(t));
}
-function GIe() {
- let e = (0, F.useContext)(JW), t = (0, F.useSyncExternalStore)(Cu, BIe), n = (0, F.useRef)(t);
+function KIe() {
+ let e = (0, F.useContext)(qW), t = (0, F.useSyncExternalStore)(Cu, VIe), n = (0, F.useRef)(t);
return (0, F.useEffect)(() => {
if (n.current === t) return;
n.current = t;
let e = p6();
m6(e) && xp(e, { revision: t });
- }, [t]), u6(qW(), (t, n) => {
- e && WIe(e, n);
+ }, [t]), u6(KW(), (t, n) => {
+ e && GIe(e, n);
}, { shown: () => {
let e = p6();
return m6(e) && !e.hidden;
} }), null;
}
// src/react/router/pages/immerse.tsx
-function KIe() {
+function qIe() {
let e = new URLSearchParams(Np.navigation.location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function qIe() {
- let e = (0, F.useContext)(JW);
- return GW(() => {
- e?.openImmerse(KIe());
+function JIe() {
+ let e = (0, F.useContext)(qW);
+ return WW(() => {
+ e?.openImmerse(qIe());
}, !0), null;
}
-function JIe() {
- return /* @__PURE__ */ (0, I.jsx)(qIe, {}, qW());
+function YIe() {
+ return /* @__PURE__ */ (0, I.jsx)(JIe, {}, KW());
}
// src/react/router/pages/managed.tsx
-var YIe = () => pu > 0, h6 = () => (0, F.useSyncExternalStore)(Cu, YIe), g6 = () => rM().value.followLayout === "table" ? "table" : "default", _6 = () => new URLSearchParams(window.location.search);
+var XIe = () => pu > 0, h6 = () => (0, F.useSyncExternalStore)(Cu, XIe), g6 = () => rM().value.followLayout === "table" ? "table" : "default", _6 = () => new URLSearchParams(window.location.search);
function v6(e) {
return Tn("/healthz", { signal: e.controller.signal }).catch((e) => {
if (En(e)) return null;
@@ -79184,11 +79187,11 @@ function y6(e, t) {
writerUrl: e?.ledger_writer_origin ? new URL(t, e.ledger_writer_origin).href : ""
};
}
-async function XIe(e, t) {
+async function ZIe(e, t) {
if (e === "/jav") {
let e = await v6(t);
return t.live ? {
- tab: sU(_6().get("tab")),
+ tab: oU(_6().get("tab")),
readOnly: !!e?.ledger_read_only
} : null;
}
@@ -79205,13 +79208,13 @@ async function XIe(e, t) {
if (e === "/review") {
let e = _6().get("category") || "", n = await v6(t);
return t.live ? {
- category: SY(e) ? e : "",
- queue: TY(_6().get("queue")),
+ category: xY(e) ? e : "",
+ queue: wY(_6().get("queue")),
...y6(n, "/review")
} : null;
}
if (e === "/subscriptions") {
- let e = jZ("?" + _6().toString()), n = await v6(t);
+ let e = AZ("?" + _6().toString()), n = await v6(t);
if (!t.live) return null;
let r = rM().value;
return {
@@ -79223,10 +79226,10 @@ async function XIe(e, t) {
}
return {};
}
-async function ZIe(e, t, n) {
+async function QIe(e, t, n) {
let r = Np.navigation.seq, i = () => n.live && Np.navigation.seq === r;
- if (e === "/jav" && sU(_6().get("tab")) === "library") {
- Np.replace(Bve(window.location.search));
+ if (e === "/jav" && oU(_6().get("tab")) === "library") {
+ Np.replace(Vve(window.location.search));
return;
}
if (e === "/subscriptions" && _6().get("tab") === "wants") {
@@ -79258,7 +79261,7 @@ async function ZIe(e, t, n) {
q: "",
jav: ""
} }), t.clearSearch());
- let o = await XIe(e, n);
+ let o = await ZIe(e, n);
if (!o) return;
let s = await yp(e, o, {
container: a,
@@ -79275,18 +79278,18 @@ async function ZIe(e, t, n) {
}
}
function b6({ path: e }) {
- let t = qW();
+ let t = KW();
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)(QIe, {
+ return /* @__PURE__ */ (0, I.jsx)($Ie, {
path: e,
covered: r.current === null
}, `${a} ${r.current ?? "covered"}`);
}
-function QIe({ path: e, covered: t }) {
- let n = (0, F.useContext)(JW), r = h6(), i = (0, F.useRef)(null);
+function $Ie({ path: e, covered: t }) {
+ let n = (0, F.useContext)(qW), r = h6(), i = (0, F.useRef)(null);
return (0, F.useEffect)(() => {
e.startsWith("/settings/") && xp(document.getElementById("stats"), { section: Af(e) });
}, [e]), (0, F.useEffect)(() => {
@@ -79297,14 +79300,14 @@ function QIe({ path: e, covered: t }) {
controller: new AbortController()
};
i.current = a, queueMicrotask(() => {
- a.live && ZIe(e, n, a);
+ a.live && QIe(e, n, a);
});
}, [r]), (0, F.useEffect)(() => () => {
let e = i.current;
e && (e.live = !1, e.controller.abort());
}, []), null;
}
-function $Ie() {
+function eLe() {
let e = h6(), t = (0, F.useRef)(!1);
return (0, F.useEffect)(() => {
if (!e || t.current || Bf(Np.navigation.location.pathname)) return;
@@ -79318,11 +79321,11 @@ function $Ie() {
}, [e]), null;
}
// src/react/router/route-chunk.ts
-var x6 = [], S6 = "peach.chunkReloadAt", eLe = 3e4;
-async function tLe() {
+var x6 = [], S6 = "peach.chunkReloadAt", tLe = 3e4;
+async function nLe() {
try {
let e = Number(sessionStorage.getItem(S6) || 0);
- if (Date.now() - e < eLe || !(await fetch("/healthz", {
+ if (Date.now() - e < tLe || !(await fetch("/healthz", {
cache: "no-store",
credentials: "same-origin"
})).ok) return;
@@ -79335,7 +79338,7 @@ function C6(e) {
});
return x6.push(r), {
preload: () => r().catch(async (e) => {
- throw await tLe(), e;
+ throw await nLe(), e;
}),
get: () => {
if (!t) throw Error("页面代码还没装载");
@@ -79343,7 +79346,7 @@ function C6(e) {
}
};
}
-function nLe() {
+function rLe() {
let e = globalThis.requestIdleCallback;
if (typeof e != "function") return;
let t = [...x6], n = () => {
@@ -79360,14 +79363,14 @@ async function w6(e, t) {
if (r.status === "rejected") throw r.reason;
if (n.status === "rejected") throw n.reason;
}
-var T6 = C6(() => import("./peach-app.jav-page-CvsnSwyE.js")), E6 = C6(() => import("./peach-app.stats-page-Domc7MK7.js")), D6 = C6(() => import("./peach-app.taste-page-DBsNS6-3.js")), O6 = C6(() => import("./peach-app.review-page-DL1KGdJQ.js")), k6 = C6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), A6 = C6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), j6 = C6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), M6 = C6(() => import("./peach-app.scraping-page-C4xFEKWF.js")), N6 = C6(async () => {
+var T6 = C6(() => import("./peach-app.jav-page-CvsnSwyE.js")), E6 = C6(() => import("./peach-app.stats-page-Domc7MK7.js")), D6 = C6(() => import("./peach-app.taste-page-DBsNS6-3.js")), O6 = C6(() => import("./peach-app.review-page-DL1KGdJQ.js")), k6 = C6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), A6 = C6(() => import("./peach-app.duplicates-page-BHkh7UmS.js")), j6 = C6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), M6 = C6(() => import("./peach-app.scraping-page-C4xFEKWF.js")), N6 = C6(async () => {
let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-tx87-zps.js"), import("./peach-app.diagnostics-page-DS1L_wLs.js")]);
return {
ConfigurationPage: e,
DiagnosticsPage: t
};
}), P6 = C6(() => import("./peach-app.activity-page-Ba2ZG9aL.js")), F6 = C6(() => import("./peach-app.follow-manage-page-DfAEh_7P.js")), I6 = C6(() => import("./peach-app.playlists-page-Be7ygGCR.js"));
-function rLe(e, t, n) {
+function iLe(e, t, n) {
if (e === "duplicates") {
n("/duplicates");
return;
@@ -79377,7 +79380,7 @@ function rLe(e, t, n) {
}
var L6 = (e) => ({
element: /* @__PURE__ */ (0, I.jsx)(b6, { path: e }),
- prefetch: (t, n) => w6(N6, Promise.all([eje(n), ...e === "/settings/diagnostics" ? [Ske(n)] : []]).then(() => {})),
+ prefetch: (t, n) => w6(N6, Promise.all([tje(n), ...e === "/settings/diagnostics" ? [wke(n)] : []]).then(() => {})),
page: (t, n) => {
let { ConfigurationPage: r, DiagnosticsPage: i } = N6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
@@ -79393,7 +79396,7 @@ var L6 = (e) => ({
}), R6 = {
...Yf.reduce((e, t) => (e[t.path] = {
element: /* @__PURE__ */ (0, I.jsx)(b6, { path: t.path }),
- prefetch: (e, n) => w6(k6, KEe(t.key, n)),
+ prefetch: (e, n) => w6(k6, JEe(t.key, n)),
page: (e, n) => {
let { DataCleanupToolPage: r } = k6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
@@ -79405,7 +79408,7 @@ var L6 = (e) => ({
}, e), {}),
"/jav": {
element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/jav" }),
- prefetch: (e, t) => w6(T6, Gye(e.tab, t)),
+ prefetch: (e, t) => w6(T6, Kye(e.tab, t)),
page: (e, t) => {
let { JavPage: n } = T6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
@@ -79417,7 +79420,7 @@ var L6 = (e) => ({
},
"/stats": {
element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/stats" }),
- prefetch: (e, t) => w6(E6, hFe(t)),
+ prefetch: (e, t) => w6(E6, gFe(t)),
page: (e, t) => {
let { StatsPage: n } = E6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
@@ -79428,7 +79431,7 @@ var L6 = (e) => ({
},
"/taste": {
element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/taste" }),
- prefetch: (e, t) => w6(D6, rIe("all", t)),
+ prefetch: (e, t) => w6(D6, iIe("all", t)),
page: (e, t, n) => {
let { TastePage: r } = D6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
@@ -79441,7 +79444,7 @@ var L6 = (e) => ({
},
"/review": {
element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/review" }),
- prefetch: (e, t) => w6(O6, ITe(t)),
+ prefetch: (e, t) => w6(O6, RTe(t)),
page: (e, t) => {
let { ReviewPage: n } = O6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
@@ -79456,20 +79459,20 @@ var L6 = (e) => ({
},
"/data-cleanup": {
element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/data-cleanup" }),
- prefetch: (e, t) => w6(k6, GEe(t)),
+ prefetch: (e, t) => w6(k6, qEe(t)),
page: (e, t, n) => {
let { DataCleanupPage: r } = k6.get();
return /* @__PURE__ */ (0, I.jsx)(r, {
navigate: n,
failure: t.failure,
- open: (e) => rLe(e, t, n),
+ open: (e) => iLe(e, t, n),
toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)
});
}
},
"/duplicates": {
element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/duplicates" }),
- prefetch: (e, t) => w6(A6, Qwe(t)),
+ prefetch: (e, t) => w6(A6, eTe(t)),
page: (e, t) => {
let { DuplicatesPage: n } = A6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
@@ -79481,13 +79484,13 @@ var L6 = (e) => ({
},
"/quality-goals": {
element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/quality-goals" }),
- prefetch: (e, t) => w6(j6, uTe(t)),
+ prefetch: (e, t) => w6(j6, fTe(t)),
page: (e, t) => {
let { QualityGoalsPage: n } = j6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
openItem: t.openItem,
- javTitleHtml: WI,
- javDisplayName: UI,
+ javTitleHtml: UI,
+ javDisplayName: HI,
toast: (e) => t.receipt(e),
srcBadge: t.srcBadge
});
@@ -79495,7 +79498,7 @@ var L6 = (e) => ({
},
"/sources": {
element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/sources" }),
- prefetch: (e, t) => w6(M6, VAe(t)),
+ prefetch: (e, t) => w6(M6, HAe(t)),
page: (e, t) => {
let { ScrapingPage: n } = M6.get();
return /* @__PURE__ */ (0, I.jsx)(n, { toast: (e) => t.toast(e) });
@@ -79509,7 +79512,7 @@ var L6 = (e) => ({
"/settings/diagnostics": L6("/settings/diagnostics"),
"/tasks": {
element: /* @__PURE__ */ (0, I.jsx)(b6, { path: "/tasks" }),
- prefetch: (e, t) => w6(P6, gpe(t)),
+ prefetch: (e, t) => w6(P6, _pe(t)),
page: () => {
let { ActivityPage: e } = P6.get();
return /* @__PURE__ */ (0, I.jsx)(e, {});
@@ -79529,10 +79532,10 @@ var L6 = (e) => ({
});
}
}
-}, z6 = (e) => Object.hasOwn(R6, e), iLe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)($Ie, {}) } }, aLe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(JIe, {}) } }, B6 = {
+}, z6 = (e) => Object.hasOwn(R6, e), aLe = { "/resource-sync": { element: /* @__PURE__ */ (0, I.jsx)(eLe, {}) } }, oLe = { "/immerse": { element: /* @__PURE__ */ (0, I.jsx)(YIe, {}) } }, B6 = {
"/playlists": {
- element: /* @__PURE__ */ (0, I.jsx)(GIe, {}),
- prefetch: (e, t) => w6(I6, TAe(t)),
+ element: /* @__PURE__ */ (0, I.jsx)(KIe, {}),
+ prefetch: (e, t) => w6(I6, EAe(t)),
page: (e, t) => {
let { PlaylistsPage: n } = I6.get();
return /* @__PURE__ */ (0, I.jsx)(n, {
@@ -79545,14 +79548,14 @@ var L6 = (e) => ({
}
},
"/follow": {
- element: /* @__PURE__ */ (0, I.jsx)(UIe, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(WIe, {}),
prefetch: (e, t) => oa(e, t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(eOe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(nOe, { ...e })
}
}, V6 = (e) => Object.hasOwn(B6, e), H6 = {
- element: /* @__PURE__ */ (0, I.jsx)(PIe, {}),
- prefetch: (e, t) => pDe(e, t),
- page: (e, t) => /* @__PURE__ */ (0, I.jsx)(Ike, {
+ element: /* @__PURE__ */ (0, I.jsx)(FIe, {}),
+ prefetch: (e, t) => hDe(e, t),
+ page: (e, t) => /* @__PURE__ */ (0, I.jsx)(Rke, {
...e,
route: t.routeIndex,
savePreference: t.savePeopleLayout,
@@ -79573,9 +79576,9 @@ var L6 = (e) => ({
"/tags": H6,
"/series": H6
}, W6 = {
- element: /* @__PURE__ */ (0, I.jsx)(zIe, {}),
- prefetch: (e) => tDe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(_ke, { ...e })
+ element: /* @__PURE__ */ (0, I.jsx)(BIe, {}),
+ prefetch: (e) => rDe(e),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(yke, { ...e })
}, G6 = {
"/performers/*": W6,
"/studios/*": W6,
@@ -79585,31 +79588,31 @@ var L6 = (e) => ({
"/tags/*": W6
}, K6 = {
"/": {
- element: /* @__PURE__ */ (0, I.jsx)(UW, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(HW, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(nY, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(tY, { ...e })
},
"/junk-files": {
- element: /* @__PURE__ */ (0, I.jsx)(UW, {}),
+ element: /* @__PURE__ */ (0, I.jsx)(HW, {}),
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(Xke, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(Zke, { ...e })
}
-}, q6 = (e) => Object.hasOwn(K6, e), oLe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(Ave, { ...e }) : /* @__PURE__ */ (0, I.jsx)(x$, { ...e }), J6 = {
+}, q6 = (e) => Object.hasOwn(K6, e), sLe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, I.jsx)(jve, { ...e }) : /* @__PURE__ */ (0, I.jsx)(x$, { ...e }), J6 = {
"catalog-filter": {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(txe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(nxe, { ...e })
},
"feed-new": {
- prefetch: (e) => ZEe(e),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(Cke, { ...e })
+ prefetch: (e) => $Ee(e),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(Tke, { ...e })
},
"library-processing": {
- prefetch: (e, t) => aH(t),
- page: (e) => /* @__PURE__ */ (0, I.jsx)(oLe, { ...e })
+ prefetch: (e, t) => iH(t),
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(sLe, { ...e })
},
search: {
prefetch: async () => {},
- page: (e) => /* @__PURE__ */ (0, I.jsx)(YAe, { ...e })
+ page: (e) => /* @__PURE__ */ (0, I.jsx)(XAe, { ...e })
}
}, Y6 = (e) => Object.hasOwn(J6, e), X6 = {
"batch-dock": {
@@ -79618,27 +79621,27 @@ var L6 = (e) => ({
},
"glow-picker": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Kle, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(qle, {})
},
"manage-header": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Yfe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Xfe, {})
},
immerse: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Gde, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(Kde, {})
},
"settings-panel": {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Aje, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(jje, {})
},
sidebar: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(Kje, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(qje, {})
},
stage: {
prefetch: async () => {},
- page: () => /* @__PURE__ */ (0, I.jsx)(pFe, {})
+ page: () => /* @__PURE__ */ (0, I.jsx)(mFe, {})
}
}, Z6 = (e) => Object.hasOwn(X6, e), Q6 = [
"/",
@@ -79660,21 +79663,21 @@ var $6 = (e) => z6(e) || V6(e) || Object.hasOwn(U6, e) || Object.hasOwn(G6, e) |
function e8(e) {
return z6(e) ? R6[e] : V6(e) ? B6[e] : q6(e) ? K6[e] : Y6(e) ? J6[e] : Z6(e) ? X6[e] : Object.hasOwn(U6, e) ? U6[e] : G6[e];
}
-function sLe(e, t, n) {
+function cLe(e, t, n) {
return $6(e) ? e8(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));
}
-function cLe(e, t, n, r) {
+function lLe(e, t, n, r) {
return e8(e).page(t, n, r);
}
// src/react/application-residents.ts
var t8 = null, n8 = null, r8 = 0, i8 = /* @__PURE__ */ new Set();
-function lLe(e) {
+function uLe(e) {
return t8 = e, n8 && e(n8), () => {
t8 === e && (t8 = null);
};
}
-function uLe(e) {
- return t8 && (n8 = e, t8(e), pp(Promise.resolve(sLe)), nLe()), Promise.resolve();
+function dLe(e) {
+ return t8 && (n8 = e, t8(e), pp(Promise.resolve(cLe)), rLe()), Promise.resolve();
}
async function a8(e, t, n = (e) => e) {
let r = r8;
@@ -79685,61 +79688,61 @@ async function a8(e, t, n = (e) => e) {
place: () => n(t)
}) || r !== r8 || !t8) throw new DOMException("应用已卸载", "AbortError");
}
-function dLe() {
+function fLe() {
r8 += 1, t8 = null, n8 = null, o8 = null, s8 = null, u8 = null, d8 = null, p8 = null, m8 = null, g8 = null, _8 = null, y8 = null, b8 = null, S8 = null, C8 = null, T8 = null;
for (let e of i8) e.remove();
- i8.clear(), VQ();
+ i8.clear(), BQ();
}
var o8 = null, s8 = null;
function c8(e) {
return o8 ??= (async () => {
- let t = fFe(e), n = document.createElement("div");
+ let t = pFe(e), n = document.createElement("div");
return n.dataset.stageHost = "", await a8("stage", n, (e) => (document.body.append(e), e)), s8 = t, t;
})(), o8;
}
var l8 = () => s8, u8 = null, d8 = null;
-function fLe(e) {
+function pLe(e) {
return u8 ??= (async () => {
- let t = Wde(e), n = document.createElement("div");
+ let t = Gde(e), n = document.createElement("div");
return n.dataset.immerseHost = "", await a8("immerse", n, (e) => (document.body.append(e), e)), d8 = t, t;
})(), u8;
}
var f8 = () => d8, p8 = null, m8 = null;
-function pLe(e) {
+function mLe(e) {
return p8 ??= (async () => {
- let t = kje(e), n = document.createElement("div");
+ let t = Aje(e), n = document.createElement("div");
return n.dataset.settingsHost = "", await a8("settings-panel", n, (e) => (document.body.append(e), e)), m8 = t, t;
})(), p8;
}
var h8 = () => m8, g8 = null, _8 = null;
-function mLe(e) {
+function hLe(e) {
return g8 ??= (async () => {
- let t = Gje(e);
+ let t = Kje(e);
return await a8("sidebar", e.scroll, (e) => (e.replaceChildren(), e)), e.attached(), _8 = t, t;
})(), g8;
}
var v8 = () => _8, y8 = null, b8 = null;
-function hLe(e) {
+function gLe(e) {
return y8 ??= (async () => {
- let t = Jfe(e);
+ let t = Yfe(e);
return await a8("manage-header", e.root, (e) => (e.replaceChildren(), e)), b8 = t, t;
})(), y8;
}
var x8 = () => b8, S8 = null, C8 = null;
-function gLe(e) {
+function _Le(e) {
return S8 ??= (async () => {
let t = lle(e);
return await a8("batch-dock", e.root), C8 = t, t;
})(), S8;
}
var w8 = () => C8, T8 = null;
-function _Le(e) {
+function vLe(e) {
return T8 ??= (async () => {
- Gle(e), await a8("glow-picker", e.root);
+ Kle(e), await a8("glow-picker", e.root);
})(), T8;
}
function E8(e, t, n, r) {
- HQ(e, t), UQ(n, r);
+ VQ(e, t), HQ(n, r);
}
// src/application/receipts.js
var D8 = {
@@ -79751,8 +79754,8 @@ var D8 = {
rollSeed: void 0,
seededSample: void 0
};
-function vLe() {
- HQ(L("#toasts"), {
+function yLe() {
+ VQ(L("#toasts"), {
success: R("check"),
error: R("circle-alert")
}), D8.toastBody = (e) => e && typeof e == "object" && "html" in e ? String(e.html) : z(e && typeof e == "object" ? e.text ?? "" : e ?? ""), D8.toastSeq = 0, D8.toast = (e, { timeout: t = 6e3, warn: n = !1, action: r = null, sound: i = null } = {}) => {
@@ -79795,7 +79798,7 @@ function vLe() {
};
}
// src/react/catalog-grid/catalog-state.ts
-var yLe = [
+var bLe = [
"loc",
"creator",
"studio",
@@ -79819,7 +79822,7 @@ var yLe = [
function O8(e, t, n, r = n.defaultSort) {
return Rj(e, t, n.defaultSort, n.defaultSortDirection, r);
}
-function bLe(e, t, n) {
+function xLe(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",
@@ -79845,18 +79848,18 @@ function bLe(e, t, n) {
folder_recursive: o("folder_recursive") === "0" ? "0" : ""
};
}
-function xLe(e, t) {
+function SLe(e, t) {
return e.split(",").filter(Boolean).filter((e) => t[e] !== !1).join(",") || e;
}
-function SLe(e) {
+function CLe(e) {
let t = On[e.state ?? ""] || "/", n = new URLSearchParams();
- for (let t of yLe) {
+ for (let t of bLe) {
let r = e[t];
!r || t === "tag_match" && r === "all" || t === "dir" && r === Fj(e.sort ?? "") || n.set(t, r);
}
return !On[e.state ?? ""] && e.state && n.set("state", e.state), t + (n.size ? `?${n}` : "");
}
-function CLe(e, t, n) {
+function wLe(e, t, n) {
return {
loc: e.loc ?? "",
creator: "",
@@ -79893,7 +79896,7 @@ function k8(e) {
};
}
// src/react/catalog-grid/catalog-controller.ts
-var wLe = class {
+var TLe = class {
currentRevision = 0;
currentPage = "";
painting = null;
@@ -79938,16 +79941,16 @@ var wLe = class {
let e = [...this.waiters.values()];
this.waiters.clear(), e.forEach((e) => e());
}
-}, A8 = Infinity, j8 = 0, TLe = (e, t = j8) => [
+}, A8 = Infinity, j8 = 0, ELe = (e, t = j8) => [
"facets",
e,
t
-], ELe = (e, t, n = j8) => [
+], DLe = (e, t, n = j8) => [
"tops",
e,
t,
n
-], DLe = (e, t = j8) => [
+], OLe = (e, t = j8) => [
"tops",
e,
t
@@ -79956,20 +79959,20 @@ async function M8(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 OLe(e, t) {
+function kLe(e, t) {
return Promise.all([H.fetchQuery({
- queryKey: TLe(e),
+ queryKey: ELe(e),
queryFn: () => Tn(`/api/facets${e ? `?${e}` : ""}`),
staleTime: A8
}), H.fetchQuery({
- queryKey: ELe(t, e),
+ queryKey: DLe(t, e),
queryFn: () => M8(t),
staleTime: A8
})]);
}
-function kLe(e) {
+function ALe(e) {
return H.fetchQuery({
- queryKey: DLe(e),
+ queryKey: OLe(e),
queryFn: () => M8(e),
staleTime: A8
});
@@ -80090,11 +80093,11 @@ var P8 = [
"follow",
"activity",
"configuration"
-], ALe = (e) => F8.filter(([t]) => I8.includes(t) && (t !== "configuration" || e)), L8 = F8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
+], jLe = (e) => F8.filter(([t]) => I8.includes(t) && (t !== "configuration" || e)), L8 = F8.flatMap(([e, t, n]) => e === "configuration" ? [] : [[
e === "follow" ? "follow-manage" : e === "cleanup" ? "data-cleanup" : e,
t,
n
-]]), jLe = [...P8, ...L8], MLe = {
+]]), MLe = [...P8, ...L8], NLe = {
stats: "stats",
review: "review",
"data-cleanup": "cleanup",
@@ -80130,7 +80133,7 @@ function V8(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 NLe(e) {
+function PLe(e) {
let t = (t) => {
e.adoptFollowView(t), e.hideIndex(), e.openPage(ka(t));
};
@@ -80231,11 +80234,11 @@ var H8 = class {
if (e.length) throw AggregateError(e, "应用资源清理未全部完成");
}
}, U8 = new H8();
-function PLe() {
+function FLe() {
return U8.dispose(), U8 = new H8(), U8;
}
// src/application/source-action.ts
-function FLe(e) {
+function ILe(e) {
return async (t, n, { button: r = null } = {}) => {
if (r?.getAttribute("aria-busy") === "true") return;
let i = r?.innerHTML ?? "", a = r?.textContent?.trim() ?? "";
@@ -80250,10 +80253,10 @@ function FLe(e) {
};
}
// src/react/entity-page/entity-route.ts
-var W8 = () => Object.fromEntries(AX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
+var W8 = () => Object.fromEntries(kX.map((e) => [e, e === "sort" ? "new" : e === "dir" ? "desc" : ""]));
function G8(e, t) {
let n = new URLSearchParams(e), r = W8();
- for (let e of AX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
+ for (let e of kX) e !== "sort" && e !== "dir" && (r[e] = n.get(e) || "");
return {
...r,
...Rj(n.get("sort"), n.get("dir"), t.sort, t.dir, "new")
@@ -80261,7 +80264,7 @@ function G8(e, t) {
}
function K8(e) {
let t = new URLSearchParams();
- for (let n of AX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Fj(e.sort || "") || t.set(n, e[n]);
+ for (let n of kX) !e[n] || n === "sort" && e[n] === "new" || n === "dir" && e[n] === Fj(e.sort || "") || t.set(n, e[n]);
return t.toString();
}
function q8(e) {
@@ -80275,11 +80278,11 @@ function J8(e, t) {
let n = new URLSearchParams(K8(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 ILe(e, t, n, r) {
+function LLe(e, t, n, r) {
let i = J8(n, r);
return Pn(e, t) + (i ? `?${i}` : "");
}
-function LLe() {
+function RLe() {
let e = "";
return {
fresh(t, n) {
@@ -80300,10 +80303,10 @@ function LLe() {
};
}
// src/react/entity-page/photo-surface.ts
-function RLe(e, t) {
+function zLe(e, t) {
return e.entityWall && e.entityCurrent && e.indexVisible || e.pathname === "/follow" && e.followMedia === "images" && e.statsVisible ? !0 : t();
}
-function zLe(e) {
+function BLe(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);
@@ -80325,12 +80328,12 @@ function zLe(e) {
};
}
// src/react/entity-page/entity-controller.ts
-function BLe(e, t, n) {
+function VLe(e, t, n) {
let r = (t, n, r, i = {
media: "videos",
set: 0
}, { push: a = !0 } = {}) => {
- if (a && e.route(ILe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
+ if (a && e.route(LLe(t, n, r, i)), e.restoreHomeContext(), !e.live(t, n)) return !1;
e.releaseBodyPreviews();
let o = e.state();
return e.push({
@@ -80408,7 +80411,7 @@ function BLe(e, t, n) {
};
}
// src/react/entity-page/entity-loading.ts
-function VLe(e) {
+function HLe(e) {
return async (t, n, r) => {
e.paintSkeleton(t, n), e.resetView(), e.shapesReady(t, n) || e.waitShapes().then(() => {
r() && e.syncParts(t, n);
@@ -80418,7 +80421,7 @@ function VLe(e) {
};
}
// src/react/entity-page/entity-portrait.ts
-function HLe(e, t) {
+function ULe(e, t) {
let n = e === "studio" || e === "agency", r = t.id ? go({
kind: e,
id: t.id,
@@ -80440,11 +80443,11 @@ function HLe(e, t) {
return r || (i?.avatar ? `<img src="${z(i.avatar)}" alt="${z(t.canonical_name)}" referrerpolicy="no-referrer" ${Va({ fallbacks: [i.avatar_fallback || ""] })}>` : "");
}
// src/react/entity-page/entity-application.ts
-function ULe(e) {
- let t = LLe(), n = {
+function WLe(e) {
+ let t = RLe(), n = {
...e.helpers,
- portraitImg: HLe
- }, r = BLe(e.controller, n, e.actions);
+ portraitImg: ULe
+ }, r = VLe(e.controller, n, e.actions);
return {
...r,
helpers: n,
@@ -80453,12 +80456,12 @@ function ULe(e) {
let { filters: o, media: s } = t.read(n, i, a, e.sortPreference());
return r.props(n, i, o, s);
},
- loading: VLe(e.loading),
- photos: zLe(e.photos)
+ loading: HLe(e.loading),
+ photos: BLe(e.photos)
};
}
// src/card-art/feed-identity.ts
-function WLe(e) {
+function GLe(e) {
let t = e.performer_refs || [], n = [...new Set((e.performers || "").split(/[,,、;/]/).map((e) => e.trim()).filter(Boolean))], r = t.length ? t : n.map((e) => ({ name: e })), i = r.slice(0, 3).map((t) => {
let n = e.code && t.source_actor_id && t.source_avatar && !t.has_image && !t.has_avatar, r = n ? ` data-feed-source-avatar data-code="${z(e.code)}" data-actor="${z(t.source_actor_id)}" data-name="${z(t.name)}"` : "", i = n ? "" : _o(t.name, t, null);
return "id" in t && t.id ? `<a class="mav"${r} href="${z(Pn("performer", t.name, t.id))}" aria-label="打开女优页:${z(t.name)}">${i}</a>` : `<span class="mav"${r} title="${z(t.name)}">${i}</span>`;
@@ -80485,8 +80488,8 @@ var Y8 = {
function X8(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 GLe(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 = X8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? WI({
+function KLe(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 = X8(e), r = e.code || String(e.title || "").trim() || "未命名新作", i = e.code ? UI({
is_jav: !0,
code: e.code,
name: e.code,
@@ -80498,10 +80501,10 @@ function GLe(e) {
<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">${WLe(e)}<div class="mtext"><span class="t">${i}</span>
+ <div class="meta">${GLe(e)}<div class="mtext"><span class="t">${i}</span>
<div class="s mono">${t || (e.title ? "" : "资料还没取到")}</div></div></div></article>`;
}
-function KLe() {
+function qLe() {
let e = document.getElementById("peach-entity-shape");
if (e) try {
let t = JSON.parse(e.textContent || "null");
@@ -80520,7 +80523,7 @@ function $8(e) {
localStorage.setItem(Q8, e ? "1" : "0");
} catch {}
}
-function qLe() {
+function JLe() {
try {
let e = localStorage.getItem(Q8);
return e === "1" || e !== "0" && null;
@@ -80531,7 +80534,7 @@ function qLe() {
function e5(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 = Y8.feedNewSkeletonHtml())));
}
-function JLe(e, t) {
+function YLe(e, t) {
return !(e > 0) || !t.some((e) => !e.has_cover) ? "" : zs(`${e} 部新作的封面连不上 DMM 图片主机,中国移动宽带常见。把 DMM / FANZA 的连接方式设成 Peach 代理,下一轮会自动重取。`, {
variant: "warning",
className: "feednetwork",
@@ -80541,7 +80544,7 @@ function JLe(e, t) {
}
function t5(e, t = "") {
let n = e && !e.error && e.items || [], r = t && n.length ? `<a class="feednewall" href="${z(t)}" style="--card-ratio:${fM}">${R("chevron-right")}<span>查看全部新作</span></a>` : "";
- return JLe(e?.cover_network, n) + `<div class="feednewrow srow">${n.map(GLe).join("")}${r}</div>`;
+ return YLe(e?.cover_network, n) + `<div class="feednewrow srow">${n.map(KLe).join("")}${r}</div>`;
}
function n5(e) {
e && (o9(e), Z.appSettings.feedAutoScroll && Bc(e));
@@ -80549,7 +80552,7 @@ function n5(e) {
function r5(e) {
return jn(e) && e !== "/junk-files";
}
-function YLe() {
+function XLe() {
let e = L("#feedNew");
hp(e) ? e.hidden = X.homeHasFeed !== !0 : (e5(e), yp("feed-new", {
host: e,
@@ -80568,26 +80571,26 @@ function i5() {
function a5() {
Y8.feedRevision += 1, xp(L("#feedNew"), { revision: Y8.feedRevision }), c5({ feedRevision: Y8.feedRevision });
}
-function XLe() {
+function ZLe() {
document.querySelectorAll(".feednewrow").forEach((e) => Z.appSettings.feedAutoScroll ? Bc(e) : Vc(e));
}
var o5 = 0;
-function ZLe([e]) {
+function QLe([e]) {
let t = e.contentRect.width >= Y8.HERO_WIDE_PX;
cancelAnimationFrame(o5), o5 = requestAnimationFrame(() => {
o5 = 0, L("#index")?.toggleAttribute("data-hero-wide", t);
});
}
-function QLe() {
+function $Le() {
Y8.FEED_SKELETON_CARDS = 8, Y8.feedNewSkeletonHtml = () => `<div class="feednewrow srow" data-skeleton="feed/new" aria-hidden="true">${`<article class="card feednewcard feednewskeleton"><div class="pic imgwait" style="--card-ratio:${fM}"></div>
<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(Y8.FEED_SKELETON_CARDS)}</div>`, Y8.entityShapes = null, Y8.entityShapesComplete = !1, Y8.hasEntityShape = (e, t) => Y8.entityShapesComplete || !!Y8.entityShapes?.has(`${e}/${Un(t)}`), Y8.hasEntityPart = (e, t, n) => !!t && !!Y8.entityShapes?.get(`${e}/${Un(t)}`)?.includes(n), Y8.feedNewSkeletonSection = () => `<section class="feednew">${Y8.feedNewSkeletonHtml()}</section>`, Y8.COSTAR_SKELETON_PEOPLE = 12, Y8.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(Y8.COSTAR_SKELETON_PEOPLE)}</div></div>`, Y8.factsSkeleton = () => `<dl class="entityfacts" data-entity-facts>${"<dt><span class=\"skeleton\"></span></dt><dd><span class=\"skeleton\"></span></dd>".repeat(5)}</dl>`, Y8.feedRevision = 0, Y8.feedNewHelpers = {
feedRowHtml: t5,
wireFeedRow: (e) => n5(e)
- }, Y8.feedNewActions = { settled: (e) => $8(e) }, Y8.HERO_WIDE_PX = 900, U8.resize(ZLe).observe(L("#index"));
+ }, Y8.feedNewActions = { settled: (e) => $8(e) }, Y8.HERO_WIDE_PX = 900, U8.resize(QLe).observe(L("#index"));
}
// src/entity-skeleton.ts
-function $Le(e, t, n, r = "") {
+function eRe(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">
@@ -80648,7 +80651,7 @@ function l5() {
return Jl;
}
function u5(e, t, n = s7()) {
- return KRe(n).map(([n, r]) => {
+ return qRe(n).map(([n, r]) => {
let i = e === n, a = Ij(n, e, t);
return {
key: n,
@@ -80663,7 +80666,7 @@ function d5(e, t, n, r = Y.EMPTY_ENTITY_MEDIA, i = {}) {
return Y.application.route(e, t, n, r, i);
}
function f5() {
- return RLe({
+ return zLe({
entityWall: Y.entityPageWall,
entityCurrent: Y.entityPageCurrent(),
indexVisible: !L("#index").hidden,
@@ -80678,10 +80681,10 @@ function p5() {
function m5() {
f5() ? Rle(vM()) : jM();
}
-function eRe(e) {
+function tRe(e) {
Y.photos.setSize(e);
}
-var h5 = FLe({
+var h5 = ILe({
request: (e) => Tn("/api/reveal", {
method: "POST",
body: JSON.stringify({ id: e })
@@ -80693,7 +80696,7 @@ async function g5(e) {
let t = { textContent: "" };
return await h5(e, t), t.textContent;
}
-async function tRe(e) {
+async function nRe(e) {
let t = { textContent: "" }, n = [];
return await _5(e, t, (e) => {
e.items && (n = e.items.map((e) => e.id));
@@ -80732,17 +80735,17 @@ async function _5(e, t, n) {
t.textContent = Y.sourceHint(e.message), D8.actionFailure("核对目录", e);
}
}
-function nRe(e) {
+function rRe(e) {
return `<div class="srctools">${Y.sourceToolButtons(e)}
<span class="srcstate" aria-live="polite"></span></div>`;
}
-function rRe(e, t) {
+function iRe(e, t) {
let n = e.querySelector(".srcstate");
if (!n) return;
let r = e.querySelector("[data-reveal]"), i = e.querySelector("[data-sync]");
r && U8.handler(r, "onclick", () => h5(Number(r.dataset.reveal), n, { button: r })), i && U8.handler(i, "onclick", () => _5(Number(i.dataset.sync), n, t));
}
-async function iRe(e, t) {
+async function aRe(e, t) {
let n = sl({
title: "添加别名",
description: "图库按名字查找图片,添加别名可能找到更多备选图片;也可以将别名设为统一显示的名称。",
@@ -80786,10 +80789,10 @@ function v5(e, t) {
label: "JAV 卡片版式",
value: mM(),
options: lM
- } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${A0}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${A0}>${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}" ${A0}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = $Le(e, r, e === "agency" ? oc({
+ } : null)}</div>`, i = e === "agency" ? "" : `<div data-entity-media><button type="button" data-media-view="videos" aria-label="视频" aria-pressed="true" ${A0}>${R("play")}</button><button type="button" data-media-view="photos" data-media-icon="image" aria-label="照片" ${A0}>${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}" ${A0}>${z(e.label)}</button>`).join("")}<span data-entity-sep></span></div>`, a = eRe(e, r, e === "agency" ? oc({
kind: "performers",
layout: P5.peopleIndexLayout()
- }) : IJ("正在读取作品", SM(xM({
+ }) : FJ("正在读取作品", SM(xM({
active: n,
home: !1,
portrait: !1
@@ -80811,7 +80814,7 @@ function b5(e) {
function x5(e, t) {
w9(Y.application.fresh(e, t));
}
-function aRe() {
+function oRe() {
Y.ENTITY_FILTER_KEYS = [
"loc",
"creator",
@@ -80834,7 +80837,7 @@ function aRe() {
return e.type === "home" ? U : e.filters;
}, L("#q").value = U.q, X.rememberSearchValue();
}
-function oRe() {
+function sRe() {
Y.entityPageView = "", Y.entityPageWall = !1, Y.entityPageRevision = 0, Y.entityPageCurrent = () => !!s5(), Y.entityPageLive = (e, t) => {
let n = s5();
return !!n && !L("#index").hidden && n.props.kind === e && n.props.name === t;
@@ -80852,9 +80855,9 @@ function oRe() {
feedRowHtml: t5,
receipt: (e, t) => D8.actionReceipt(e, t),
failure: (e, t) => D8.actionFailure(e, t),
- aliasForm: (e, t) => iRe(e, t),
- sourceToolsHtml: (e) => nRe(e),
- wireSourceTools: (e, t) => rRe(e, t),
+ aliasForm: (e, t) => aRe(e, t),
+ sourceToolsHtml: (e) => rRe(e),
+ wireSourceTools: (e, t) => iRe(e, t),
comboItems: (e) => z7(e),
sortKeys: (e, t, n) => u5(e, t, n)
}, Y.entityFollowActions = {
@@ -80879,8 +80882,8 @@ function oRe() {
<button type="button" data-sync="${e}" title="核对该目录:磁盘上已删除的移入 Peach 回收站,带个人记录的标为已消失"
aria-label="同步删除">${R("folder-sync")}</button>`;
}
-function sRe() {
- Y.application = ULe({
+function cRe() {
+ Y.application = WLe({
controller: {
context: () => {
let e = l5();
@@ -80980,7 +80983,7 @@ function sRe() {
}
// src/application/playlists.js
var S5 = { playlistWrite: void 0 };
-function cRe(e, t) {
+function lRe(e, t) {
e === "tag" ? (W({ state: {
...U,
tag: t,
@@ -80996,7 +80999,7 @@ function C5(e = "") {
return `<label class="modalfield"><span>名称</span><input class="geist-input" name="name"
maxlength="80" placeholder="输入名称" value="${z(e)}"></label>`;
}
-async function lRe({ title: e, count: t, save: n }) {
+async function uRe({ title: e, count: t, save: n }) {
let r = sl({
title: "保存为播放列表",
description: `这个 Mix 的 ${t} 个视频会存成一份可以继续播放的列表。`,
@@ -81017,7 +81020,7 @@ async function lRe({ title: e, count: t, save: n }) {
}), w9("/playlists");
} }));
}
-async function uRe(e) {
+async function dRe(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: "加入播放列表",
@@ -81066,7 +81069,7 @@ function w5() {
let e = mp(L("#stats"));
e?.path !== "/playlists" || !e.host.isConnected ? W({ pageOpens: pu + 1 }) : (W5({ manage: !1 }), W({ playlistsRevision: yu + 1 }));
}
-function dRe(e) {
+function fRe(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 : ""));
@@ -81074,7 +81077,7 @@ function dRe(e) {
function T5(e) {
W({ configurationRequestedSection: e }), Q.navigatePath(Pf(e));
}
-function fRe() {
+function pRe() {
S5.playlistWrite = (e) => Tn("/api/playlist", {
method: "POST",
body: JSON.stringify(e)
@@ -81093,18 +81096,18 @@ function D5(e, t, n, r, i = !1) {
};
}
function O5(e, t, n, r, i, a = !1) {
- let o = n === "follow", s = yY(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
+ let o = n === "follow", s = vY(o ? e.followSelected : e.selected, r, o ? t.followLastSelectedId : t.lastSelectedId, i, a);
return {
...D5(e, t, n, !0),
...o ? { followLastSelectedId: s } : { lastSelectedId: s }
};
}
-function pRe(e, t, n, r) {
+function mRe(e, t, n, r) {
let i = E5(t);
return {
count: (i === "follow" ? e.followSelected : e.selected).size,
context: i === "catalog" && r === "trash" ? "trash" : i,
- junkDismissed: FU(n).view === "dismissed"
+ junkDismissed: PU(n).view === "dismissed"
};
}
// src/application/selection.js
@@ -81126,7 +81129,7 @@ function A5() {
}), k9({
selected: new Set(Zl),
selectMode: Ql
- }), k5.batchDockProps = CRe(), w8() && (w8().render(k5.batchDockProps), Z.syncGlassOptics());
+ }), k5.batchDockProps = wRe(), w8() && (w8().render(k5.batchDockProps), Z.syncGlassOptics());
}
function j5(e, t = !1) {
W(D5({
@@ -81134,25 +81137,25 @@ function j5(e, t = !1) {
followSelected: Zl
}, N5(), E5(location.pathname), !!e, t)), document.body.classList.toggle("select-mode", Ql), Ql && Nl(), L("#selectMode").setAttribute("aria-pressed", String(Ql)), A5();
}
-function mRe() {
+function hRe() {
return [...R5.gridCards()].map((e) => +e.dataset.id);
}
function M5(e, t = !1) {
W(O5({
selected: Xl,
followSelected: Zl
- }, N5(), E5(location.pathname), mRe(), e, t)), j5(!0);
+ }, N5(), E5(location.pathname), hRe(), e, t)), j5(!0);
}
-function hRe() {
+function gRe() {
return [...document.querySelectorAll("[data-follow-list] > [data-follow-item]")].map((e) => +e.dataset.followItem);
}
-function gRe(e, t = !1) {
+function _Re(e, t = !1) {
W(O5({
selected: Xl,
followSelected: Zl
- }, N5(), "follow", hRe(), e, t)), j5(!0);
+ }, N5(), "follow", gRe(), e, t)), j5(!0);
}
-async function _Re(e, t) {
+async function vRe(e, t) {
let n = {
like: "喜欢",
seen: "标为看过",
@@ -81221,7 +81224,7 @@ async function _Re(e, t) {
}
});
}
-async function vRe() {
+async function yRe() {
let e = [...Xl];
if (!e.length) return;
let t = sl({
@@ -81253,7 +81256,7 @@ async function vRe() {
let { confirmed: n, result: r } = await t.done;
n && (j5(!1, !0), await f7(), D8.actionReceipt(r.region === "none" ? `已撤回 ${e.length} 项的产地判定` : `已判为${r.label}:${e.length} 项`));
}
-async function yRe(e, t) {
+async function bRe(e, t) {
let n = [...Zl];
if (!n.length) return;
let r = {
@@ -81288,7 +81291,7 @@ async function yRe(e, t) {
}
});
}
-async function bRe(e, t) {
+async function xRe(e, t) {
let n = [...Xl];
if (!n.length) return;
let r = {
@@ -81334,8 +81337,8 @@ async function bRe(e, t) {
}
});
}
-function xRe() {
- gLe({
+function SRe() {
+ _Le({
root: L("[data-batch-dock]"),
run: (e, t, n) => {
k5.BATCH_RUNNERS[e]?.(t, n);
@@ -81344,7 +81347,7 @@ function xRe() {
e.render(k5.batchDockProps), Z.syncGlassOptics();
}).catch(() => {});
}
-function SRe() {
+function CRe() {
k5.batchDockProps = {
count: 0,
context: "catalog",
@@ -81357,13 +81360,13 @@ function SRe() {
["other", "其他"],
["none", "撤回判定"]
], k5.BATCH_RUNNERS = {
- batch: _Re,
- region: vRe,
- follow: yRe,
- junk: bRe,
+ batch: vRe,
+ region: yRe,
+ follow: bRe,
+ junk: xRe,
clear: () => j5(!1, !0)
}, U8.handler(L("#density"), "onclick", () => {
- f5() ? eRe(vM() === "big" ? "small" : "big") : Lle();
+ f5() ? tRe(vM() === "big" ? "small" : "big") : Lle();
}), jM(), jl({
selecting: () => Ql,
censored: () => n9(),
@@ -81384,8 +81387,8 @@ function N5() {
followLastSelectedId: eu
};
}
-function CRe() {
- return pRe({
+function wRe() {
+ return mRe({
selected: Xl,
followSelected: Zl
}, location.pathname, location.search, U.state);
@@ -81395,22 +81398,22 @@ var P5 = {
peopleIndexLayout: void 0,
personAvatar: void 0
};
-function wRe() {
- return Z.appSettings.followLayout === "table" ? "table" : "default";
-}
function TRe() {
- return jZ(location.search);
+ return Z.appSettings.followLayout === "table" ? "table" : "default";
}
-function ERe(e) {
- return MZ(e);
+function ERe() {
+ return AZ(location.search);
}
function DRe(e) {
- Q.route(ERe(e));
+ return jZ(e);
}
-function ORe(e = "") {
- return NZ(location.search, e);
+function ORe(e) {
+ Q.route(DRe(e));
}
-function kRe(e) {
+function kRe(e = "") {
+ return MZ(location.search, e);
+}
+function ARe(e) {
return V8(e);
}
function F5(e) {
@@ -81419,7 +81422,7 @@ function F5(e) {
function I5() {
L("#stats").hidden = !0, L("#index").hidden = !1, U7(), X.hideCatalogCombo(), L("#count").textContent = "", L("#loadSentinel").hidden = !0;
}
-function ARe(e, t) {
+function jRe(e, t) {
W({ state: {
...U,
state: "",
@@ -81430,16 +81433,16 @@ function ARe(e, t) {
function L5(e) {
P5.controller.openFollowAuthor(e);
}
-function jRe(e) {
+function MRe(e) {
P5.controller.openFollowTag(e);
}
-function MRe() {
- $.FOLLOW_MANAGE_TABS = AZ, U8.listen(document, "click", (e) => {
+function NRe() {
+ $.FOLLOW_MANAGE_TABS = kZ, U8.listen(document, "click", (e) => {
e.target.closest?.("[data-empty-settings]") && T5("媒体库与入库");
}), P5.peopleIndexLayout = () => a6(Z.appSettings.peopleLayout), P5.personAvatar = B8;
}
-function NRe() {
- P5.controller = NLe({
+function PRe() {
+ P5.controller = PLe({
route: Q.route,
followView: E9,
adoptFollowView: D9,
@@ -81465,7 +81468,7 @@ function z5(e = "正在读取作品") {
return;
}
let t = L("#count"), n = decodeURIComponent(location.pathname) === "/junk-files";
- if (t.classList.toggle("manage-static", n), t.classList.toggle("junkcount", n), n ? (t.setAttribute("aria-busy", "true"), t.setAttribute("aria-label", e), t.innerHTML = yye(FU(location.search)), pc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && O7({
+ 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 = bye(PU(location.search)), pc(t)) : (t.removeAttribute("aria-busy"), t.removeAttribute("aria-label"), t.textContent = "", U && O7({
count: null,
...j7()
})), L("#loadSentinel").hidden = !0, K7()) return;
@@ -81485,13 +81488,13 @@ function V5() {
});
return Promise.race([R5.entityShapesReady ||= Z8(), e]);
}
-function PRe() {
+function FRe() {
let e = decodeURIComponent(location.pathname);
- if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), B5(), obe();
+ if (document.body.dataset.surface = location.pathname, e === "/wall") document.body.setAttribute("data-wall-open", ""), B5(), sbe();
else if (/^\/assets\/\d+$/.test(e)) B5();
else if (e === "/settings" || /^\/settings\/(appearance|playback|jav|search|content)$/.test(e) || e.startsWith("/posts/") || e.startsWith("/works/")) B5();
else if (e === "/junk-files") z5("正在读取垃圾文件");
- else if (e === "/jav" && sU(new URLSearchParams(location.search).get("tab")) === "library") z5("正在读取馆藏");
+ else if (e === "/jav" && oU(new URLSearchParams(location.search).get("tab")) === "library") z5("正在读取馆藏");
else if (Q.managedPagePath(e)) {
B5();
let t = L("#stats");
@@ -81505,7 +81508,7 @@ function PRe() {
});
} else Q.routeMeta(e) ? z5() : (U7(), L("#count").textContent = "", L("#loadSentinel").hidden = !0);
}
-function FRe() {
+function IRe() {
$.followContentSkeletonHtml = (e = new URLSearchParams(location.search).get("media") === "images" ? "images" : "videos", t = "正在读取关注内容") => j2(t, {
cards: !0,
className: "follow-content-skeleton postercard-skeleton",
@@ -81521,12 +81524,12 @@ function FRe() {
${$.followContentSkeletonHtml(void 0, e)}</div></div>`, L("#loadSentinel").innerHTML = Hs(Vs), R5.setGridCards = (e) => ic(L("#grid"), () => {
L("#grid").innerHTML = `<div class="grid">${e}</div>`;
}), R5.gridCards = () => document.querySelectorAll(":is(#grid,#index [data-entity-grid]) :is([data-media-grid] > [data-media-card][data-id],[data-catalog-row][data-id])"), R5.managementPlaceholder = (e) => M2(e, {
- followLayout: wRe(),
+ followLayout: TRe(),
...(({ sort: e, dir: t, tab: n }) => ({
followSort: e,
followDir: t,
followTab: n
- }))(TRe())
+ }))(ERe())
}), R5.wantsDiscoveryBars = () => L("#catalogFilter").style.display !== "none", R5.entityShapesReady = null, R5.ENTITY_SHAPES_WAIT = 400, R5.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, v9();
@@ -81540,7 +81543,7 @@ var H5 = (e) => e.replace(/[&<>"']/g, (e) => ({
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function IRe(e, t, n) {
+function LRe(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-${H5(r)}"/></svg>`;
@@ -81548,7 +81551,7 @@ function IRe(e, t, n) {
}).join("")}</div>`;
}
// src/application/filter-scroll.js
-function LRe(e, t, n, r = !1) {
+function RRe(e, t, n, r = !1) {
if (t = Math.max(0, t), !e || !n || r || t <= 8) return {
y: t,
origin: t,
@@ -81597,7 +81600,7 @@ function G5() {
function K5() {
L("#javLibraryHeader").hidden = !jn(location.pathname) || !s7(), document.body.classList.remove("entity-open", "index-open"), Sp(L("#index")), L("#stats").hidden = !0, L("#index").hidden = !0, r5(location.pathname) || (L("#feedNew").hidden = !0), L("#catalogFilter").style.display = "", D7(), e7(), n7();
}
-function RRe() {
+function zRe() {
Q.route("/"), K5();
}
function q5({ tags: e = [], providers: t = [], duration: n = !1 }) {
@@ -81625,7 +81628,7 @@ function q5({ tags: e = [], providers: t = [], duration: n = !1 }) {
});
}
function J5(e) {
- zze({
+ Bze({
...E9(),
...e
}), y9({ filters: $.followSidebarFilters() });
@@ -81640,7 +81643,7 @@ function X5(e) {
function Z5() {
Y5() && X5(!1);
}
-function zRe() {
+function BRe() {
du === null && (W({ runtimeConfigurable: !1 }), Tn("/healthz").then((e) => {
W({ runtimeConfigurable: !!e.configurable }), du && $5() && e7();
}).catch(() => {}));
@@ -81658,12 +81661,12 @@ function Q5(e = "", t = !1) {
replace: !0,
state: Np.navigation.location.state
});
- return e ||= Nf(location.pathname), pLe(U5.settingsHost()).then((t) => (t.open(e), t));
+ return e ||= Nf(location.pathname), mLe(U5.settingsHost()).then((t) => (t.open(e), t));
}
-function BRe() {
+function VRe() {
Mf(location.pathname) && (Ff(Np.navigation.location.state) ? Np.go(-1) : Q.navigatePath("/", !0));
}
-function VRe() {
+function HRe() {
return {
scroll: L("#drawerScroll"),
store: Z.settingsStore,
@@ -81698,15 +81701,15 @@ function VRe() {
}
};
}
-function HRe() {
+function URe() {
let e = L("#drawerScroll"), t = [...e.querySelector("[data-sidebar-head]")?.children || []];
- e.innerHTML = IRe(Z.appSettings.sidebarOrder, U5.NAV_CATALOG, m7), e.querySelector("[data-sidebar-head]").append(...t), U8.listen(e, "click", (e) => {
+ e.innerHTML = LRe(Z.appSettings.sidebarOrder, U5.NAV_CATALOG, m7), e.querySelector("[data-sidebar-head]").append(...t), U8.listen(e, "click", (e) => {
if (v8()) return;
let t = e.target.closest?.("[data-nav]");
t && h7(t.dataset.nav);
- }), mLe(VRe()).then((e) => e.render(U5.sidebarProps)).catch(() => {});
+ }), hLe(HRe()).then((e) => e.render(U5.sidebarProps)).catch(() => {});
}
-async function URe() {
+async function WRe() {
let e = U8, t = null;
try {
t = await Tn("/api/settings", { signal: e.signal });
@@ -81720,9 +81723,9 @@ function $5() {
}
function e7() {
let e = $5();
- zRe(), e && B5(), L("#count").classList.toggle("no-tagbar", !!e), b9(), e !== "trash" && (k5.trashCount = null), t7(e);
+ BRe(), e && B5(), L("#count").classList.toggle("no-tagbar", !!e), b9(), e !== "trash" && (k5.trashCount = null), t7(e);
}
-function WRe(e) {
+function GRe(e) {
return {
section: e,
path: decodeURIComponent(location.pathname),
@@ -81733,16 +81736,16 @@ function WRe(e) {
}
function t7(e = $5()) {
n7();
- let t = WRe(e), n = x8();
+ let t = GRe(e), n = x8();
if (n) n.render(t);
else {
- let e = Yde(t);
+ let e = Xde(t);
e !== U5.manageHeaderSkeleton && (U5.manageHeaderSkeleton = e, U5.manageHeaderRoot().innerHTML = e);
}
- let r = BF(t)?.title || "";
+ let r = zF(t)?.title || "";
r !== U5.lastManagePageLabel && (U5.lastManagePageLabel = r, r && tc(U5.manageHeaderRoot(), "[data-manage-title],[data-manage-lede]"));
}
-function GRe() {
+function KRe() {
let e = U5.manageHeaderRoot();
U8.listen(e, "click", (e) => {
if (x8()) return;
@@ -81752,7 +81755,7 @@ function GRe() {
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]") && L7();
- }), hLe({
+ }), gLe({
root: e,
openManage: o7,
openDataCleanup: () => Q.navigatePath("/data-cleanup"),
@@ -81797,13 +81800,13 @@ function a7(e) {
}
function o7(e = "stats") {
let t = Q.routePathOf("section", e);
- t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", Su(), Q.route(IU()), K5(), b9(), I7());
+ t ? Q.openRoutePath(t) : (U.orient = "", U.state = "ads", Su(), Q.route(FU()), K5(), b9(), I7());
}
function s7() {
let e = decodeURIComponent(location.pathname);
return e === "/" ? U.jav === "1" : e.startsWith("/performers/") || e.startsWith("/studios/") ? U.jav === "1" || hu : !1;
}
-function KRe(e = s7()) {
+function qRe(e = s7()) {
let t = kj.filter(([e]) => e !== "seed");
return e ? [Aj, ...t] : t;
}
@@ -81813,7 +81816,7 @@ function c7() {
function l7() {
return hM(c7());
}
-function qRe(e) {
+function JRe(e) {
Ple(e), d7(), L("#grid").hidden || Q7();
}
function u7(e) {
@@ -81824,7 +81827,7 @@ function d7() {
e.checked = e.value === l7();
}), X.catalogFilterProps && O7({ layout: A7() });
}
-function JRe(e) {
+function YRe(e) {
Fle(e), d7(), Q7();
}
async function f7() {
@@ -81884,11 +81887,11 @@ function g7() {
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, p5(), !i && Ql && j5(!1, !0);
}
-function YRe() {
+function XRe() {
let e = [...document.querySelectorAll("[data-filter-frame]")], t = e.find((e) => e.offsetParent !== null);
(t !== U5.mobileFilterHost || location.pathname !== U5.mobileFilterPath) && (U5.mobileFilterScroll = null), U5.mobileFilterHost = t, U5.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\"]");
- U5.mobileFilterScroll = LRe(U5.mobileFilterScroll, n, innerWidth <= 760, r);
+ U5.mobileFilterScroll = RRe(U5.mobileFilterScroll, n, innerWidth <= 760, r);
for (let n of e) {
let e = n === t && U5.mobileFilterScroll.free;
if (e && n.style.setProperty("--filter-free-top", `${-n.offsetHeight - 12}px`), e === n.hasAttribute("data-filter-free")) continue;
@@ -81902,28 +81905,28 @@ function YRe() {
});
}
}
-function XRe() {
- YRe(), [".board-filter-frame", "#count"].forEach((e) => {
+function ZRe() {
+ XRe(), [".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 _7() {
U5.stickyFrame ||= U8.frame(() => {
- U5.stickyFrame = 0, XRe();
+ U5.stickyFrame = 0, ZRe();
});
}
-function ZRe() {
+function QRe() {
$.followSidebarFilters = () => ({
provider: [...$.followProviders][0] || "",
dur_min: $.followDurMin || "",
dur_max: $.followDurMax || ""
- }), U8.handler(L("#filterBtn"), "onclick", () => X5(!L("#drawer").classList.contains("open"))), U5.SIDEBAR_ITEMS = P8, U5.MANAGE_SECTIONS = F8, U5.MANAGE_MENU_SECTIONS = I8, U5.manageMenuSections = () => ALe(du === !0), U5.OPTIONAL_SIDEBAR_ITEMS = L8, U5.NAV_CATALOG = jLe, U5.DIRECT_MANAGE_NAV = MLe, U5.settingsHost = () => ({
+ }), U8.handler(L("#filterBtn"), "onclick", () => X5(!L("#drawer").classList.contains("open"))), U5.SIDEBAR_ITEMS = P8, U5.MANAGE_SECTIONS = F8, U5.MANAGE_MENU_SECTIONS = I8, U5.manageMenuSections = () => jLe(du === !0), U5.OPTIONAL_SIDEBAR_ITEMS = L8, U5.NAV_CATALOG = MLe, U5.DIRECT_MANAGE_NAV = NLe, U5.settingsHost = () => ({
selectSection: (e) => Pp(Pf(e), {
replace: !0,
state: Np.navigation.location.state
}),
- closed: BRe,
+ closed: VRe,
store: Z.settingsStore,
changed: (e) => Z.settingsEffects[e]?.(),
sound: (e) => Qo(e),
@@ -81932,13 +81935,13 @@ function ZRe() {
videoLayouts: lM,
followInitialRanges: R8,
videoLayout: () => l7(),
- setVideoLayout: JRe,
+ setVideoLayout: YRe,
censored: n9,
setCensored: i9,
sfwShortcut: a9,
- setSfwShortcut: vze,
+ setSfwShortcut: yze,
highContrast: () => document.documentElement.classList.contains("board-high-contrast"),
- setHighContrast: yze,
+ setHighContrast: bze,
receipt: (e) => D8.actionReceipt(e),
failure: D8.actionFailure,
syncRemote: (e) => iM(e, (e) => Z.settingsEffects[e]?.()),
@@ -81988,22 +81991,22 @@ var X = {
junkQueueHelpers: void 0,
junkQueueActions: void 0
};
-function QRe() {
+function $Re() {
X.initialParams.has("loc") || (U.loc = v7(U.loc), Su());
}
function v7(e) {
- return xLe(e, Z.sourceOnline);
+ return SLe(e, Z.sourceOnline);
}
function y7(e = U) {
- return SLe(e);
+ return CLe(e);
}
-function $Re() {
- W(k8(CLe(U, Z.appSettings, D8.rollSeed)));
+function eze() {
+ W(k8(wLe(U, Z.appSettings, D8.rollSeed)));
}
function b7(e = null) {
- $Re(), e && (Object.assign(U, e), Su()), Q.route(e ? y7() : "/"), X.clearSearchField(), u9(!1), b9(), I7();
+ eze(), e && (Object.assign(U, e), Su()), Q.route(e ? y7() : "/"), X.clearSearchField(), u9(!1), b9(), I7();
}
-function eze(e, t = null) {
+function tze(e, t = null) {
let n = e.id;
!e.medium || e.medium === "video" ? m9(n, !0, null, t) : e.medium === "image" && e.location !== "online" ? window.open("/photo?id=" + n, "_blank", "noopener") : M5(n);
}
@@ -82012,13 +82015,13 @@ function x7(e) {
throw X.mixRelatedCache.delete(e), t;
})), X.mixRelatedCache.get(e);
}
-function tze(e, t) {
+function nze(e, t) {
l8()?.miniplayerTakesCard(e) ? l8().miniplayerPlay(e.id) : S7(e, t);
}
function S7(e, t) {
- e.edition_group ? Eze(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? Dze(e.part_group.seed_id, e.id, !0, t) : m9(e.id, !0, null, t);
+ e.edition_group ? Dze(e.edition_group.seed_id, e.id, !0, t) : e.part_group ? Oze(e.part_group.seed_id, e.id, !0, t) : m9(e.id, !0, null, t);
}
-async function nze(e, t) {
+async function rze(e, t) {
try {
let n = await Tn("/api/watch-later", {
method: "POST",
@@ -82035,7 +82038,7 @@ async function nze(e, t) {
D8.actionFailure("更新稍后看", e);
}
}
-async function rze(e, t) {
+async function ize(e, t) {
try {
await Tn("/api/batch", {
method: "POST",
@@ -82059,8 +82062,8 @@ async function rze(e, t) {
throw D8.actionFailure("操作", e), e;
}
}
-async function ize(e, t, n, r) {
- let i = Number(e.rating) || 0, a = gP(i, t), o = async (t, r) => {
+async function aze(e, t, n, r) {
+ let i = Number(e.rating) || 0, a = hP(i, t), o = async (t, r) => {
let i = (await Tn("/api/feedback", {
method: "POST",
body: JSON.stringify({
@@ -82074,7 +82077,7 @@ async function ize(e, t, n, r) {
};
try {
let e = await o(a, r);
- D8.actionReceipt(e ? `已评 ${hP(e)} 星` : "已取消评分", { undo: () => o(i) });
+ D8.actionReceipt(e ? `已评 ${mP(e)} 星` : "已取消评分", { undo: () => o(i) });
} catch (e) {
throw r?.aborted || D8.actionFailure("评分", e), e;
}
@@ -82103,7 +82106,7 @@ async function C7(e) {
e[n] && t.set(n, e[n]);
});
}
- return OLe(t.toString(), X.topsQueryParams(e).toString());
+ return kLe(t.toString(), X.topsQueryParams(e).toString());
}
function w7(e) {
l5().type !== "entity" && O7({ tags: M7(e) }), y9({ filters: { ...e } }), B7();
@@ -82129,7 +82132,7 @@ function E7(e) {
} }), Q.route(y7()), K5(), I7();
} else e(U), Su(), Q.route(y7()), w7(U), T7(Jl);
}
-function aze() {
+function oze() {
return {
tiers: null,
tiersPending: !1,
@@ -82165,9 +82168,9 @@ function O7(e) {
...e,
offscreen: n
}, X.catalogFilterProps = {
- ...X.catalogFilterProps || aze(),
+ ...X.catalogFilterProps || oze(),
...e
- }, !X.catalogFilterMounting && (hp(t) ? xp(t, e) : (!t.firstChild && !n && (t.innerHTML = kMe(X.catalogViews(), X.catalogFilterProps.state, j7()), pc(t)), X.catalogFilterMounting = yp("catalog-filter", X.catalogFilterProps, {
+ }, !X.catalogFilterMounting && (hp(t) ? xp(t, e) : (!t.firstChild && !n && (t.innerHTML = AMe(X.catalogViews(), X.catalogFilterProps.state, j7()), pc(t)), X.catalogFilterMounting = yp("catalog-filter", X.catalogFilterProps, {
container: t,
isCurrent: () => !0
}).then(() => xp(t, X.catalogFilterProps)).finally(() => {
@@ -82195,14 +82198,14 @@ function k7() {
let t = Ij(e, U.sort, U.dir);
t && (U.sort = t.sort, U.dir = t.dir, Su(), e9());
},
- reshuffle: () => _ze(),
+ reshuffle: () => vze(),
setLayout: (e) => {
- s7() ? u7(e) : qRe(e);
+ s7() ? u7(e) : JRe(e);
},
moreTops: async (e) => {
let t = X.catalogTopsPages;
if (!t) return [];
- let n = (await kLe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
+ let n = (await ALe(X.topsQueryParams(t.context, ++t[e]).toString()))[e] || [];
return e === "performers" ? n.map(N7) : n.map(P7);
}
};
@@ -82255,7 +82258,7 @@ function P7(e) {
logo: e.has_logo ? po(e.k, "icon", e.logo_version) : ""
};
}
-function oze(e, t) {
+function sze(e, t) {
X.barsPendingSeq = t, X.catalogFilterProps?.tiers ? O7({
tiersPending: !0,
state: e.state || ""
@@ -82278,7 +82281,7 @@ async function I7() {
U.seed || "",
s7()
]);
- oze(n, e);
+ sze(n, e);
let i;
try {
i = await C7(t);
@@ -82334,7 +82337,7 @@ async function I7() {
latest: null
});
}
-function sze(e, t) {
+function cze(e, t) {
s9.total = e, U.state === "trash" && (k5.trashCount = {
total: s9.total,
shown: t
@@ -82403,12 +82406,12 @@ async function V7() {
filters: U
},
detailReturnBarsContext: null
- }), u9(!1), U.state === "ads") return uze(e);
+ }), u9(!1), U.state === "ads") return dze(e);
X.controller.page === "/junk-files" && U7(), z5(), K5();
let t = W7(e);
if (r5(location.pathname) && U.browse !== "folders") {
if (await R5.entityShapesReady, !Q.surfaceCurrent(e)) return;
- YLe();
+ XLe();
} else i5();
return B7(), L("#count").classList.remove("manage-static", "junkcount"), t;
}
@@ -82420,10 +82423,10 @@ function U7() {
Nl(e), Sp(e), X.controller.clear(), e.innerHTML = "";
}
function W7(e) {
- return J7("/", lze, e, { place: Vze });
+ return J7("/", uze, e, { place: Hze });
}
-function cze(e) {
- return J7("/junk-files", fze, e);
+function lze(e) {
+ return J7("/junk-files", pze, e);
}
function G7() {
return !!mp(L("#grid"));
@@ -82458,7 +82461,7 @@ function Y7() {
});
}
function X7(e = "正在读取作品") {
- return IJ(e, Z7());
+ return FJ(e, Z7());
}
function Z7() {
return U ? SM(Y7()) : 16 / 9;
@@ -82472,7 +82475,7 @@ function Q7() {
seekSeconds: Z.appSettings.seekSeconds
}));
}
-function lze() {
+function uze() {
let e = decodeURIComponent(location.pathname), t = jn(e), n = U.state === "trash";
return {
mode: "catalog",
@@ -82495,9 +82498,9 @@ function lze() {
mix: t && e !== "/wall" && !n && U.browse !== "folders",
shorts: t && e !== "/wall" && !s7() && U.orient !== "竖屏" && !n && U.browse !== "folders",
countRow: L("#count"),
- onCount: sze,
+ onCount: cze,
onCountFailed: () => O7({ count: !1 }),
- emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : EK({
+ emptyHtml: ({ trash: e, libraryEmpty: t }) => e ? Z.emptyState("trash", "回收站是空的", "删掉的内容会先到这里;确认不再需要后再清空。") : TK({
jav: s7() && !t,
configurable: du,
filtered: !t
@@ -82505,11 +82508,11 @@ function lze() {
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function uze(e) {
+function dze(e) {
let t = L("#count");
- return X.controller.page === "/junk-files" && G7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (U7(), z5("正在读取垃圾文件")), K5(), B7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), cze(e);
+ return X.controller.page === "/junk-files" && G7() && !X.controller.pending && t.querySelector(":scope > .peach-react:not([data-junk-count-skeleton])") || (U7(), z5("正在读取垃圾文件")), K5(), B7(), t.classList.add("manage-static", "junkcount"), t.classList.remove("is-stuck"), lze(e);
}
-async function dze(e, t) {
+async function fze(e, t) {
let n = [e.id], r = t === "dispose", i = t === "reconsider-junk";
try {
await Tn("/api/batch", {
@@ -82534,9 +82537,9 @@ async function dze(e, t) {
throw D8.actionFailure("操作", e), e;
}
}
-function fze() {
+function pze() {
return {
- ...FU(location.search),
+ ...PU(location.search),
helpers: X.junkQueueHelpers,
actions: X.junkQueueActions,
batchSize: Z.appSettings.batchSize,
@@ -82552,8 +82555,8 @@ function fze() {
canLoadMore: () => L("#stats").hidden && L("#index").hidden
};
}
-function pze() {
- X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => O8(e, t, Z.appSettings, n), W(k8(bLe(location, Z.appSettings, D8.rollSeed))), X.searchValueSnapshot = {
+function mze() {
+ X.initialParams = new URLSearchParams(location.search), X.resolveSort = (e, t, n = Z.appSettings.defaultSort) => O8(e, t, Z.appSettings, n), W(k8(xLe(location, Z.appSettings, D8.rollSeed))), X.searchValueSnapshot = {
text: "",
scrollLeft: 0
}, X.cancelSearchDissolve = () => {}, X.rememberSearchValue = (e = L("#q")) => {
@@ -82574,21 +82577,21 @@ function pze() {
};
};
}
-function mze() {
+function hze() {
U8.handler(L("#wallBtn"), "onclick", () => {
j5(!1, !0);
let e = l5(), t = {
...Y.activeFilterState(),
jav: s7() ? "1" : ""
};
- e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(Wxe(void 0, t));
+ e.type === "entity" && e.kind !== "tag" && (t[e.kind] = e.name), Q.navigatePath(Gxe(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) => WI(e, t),
- displayName: (e, t) => UI(e, t),
+ titleHtml: (e, t) => UI(e, t),
+ displayName: (e, t) => HI(e, t),
tagLabel: (e) => Ll(e)
}, X.gridActions = {
wallPlayer: async (e, t, n) => {
@@ -82596,11 +82599,11 @@ function mze() {
return n.throwIfAborted(), r.mountWallPlayer(e, t, n);
},
wallDetails: S7,
- open: (e, t) => tze(e, t),
- openResource: (e, t) => l8()?.miniplayerTakesCard(e) ? l8().miniplayerPlay(e.id) : eze(e, t),
+ open: (e, t) => nze(e, t),
+ openResource: (e, t) => l8()?.miniplayerTakesCard(e) ? l8().miniplayerPlay(e.id) : tze(e, t),
openShort: (e) => l8()?.miniplayerTakesCard(e) ? l8().miniplayerPlay(e.id) : _9(e.id),
openShorts: () => _9(),
- openMix: (e, t) => Tze(e, e, !0, t),
+ openMix: (e, t) => Eze(e, e, !0, t),
openEntity: (e, t) => x5(e, t),
openUnowned: () => b7({ owner: "none" }),
toggleTag: (e) => {
@@ -82609,9 +82612,9 @@ function mze() {
});
},
toggleSelection: (e, t) => M5(e, t),
- watchLater: (e, t) => nze(e, t),
- rate: (e, t, n, r) => ize(e, t, n, r),
- resourceOperation: (e, t) => rze(e, t),
+ watchLater: (e, t) => rze(e, t),
+ rate: (e, t, n, r) => aze(e, t, n, r),
+ resourceOperation: (e, t) => ize(e, t),
mixRelated: (e) => x7(e),
canFlip: () => !Ql && !n9() && !window.__scrolling && !X.reduceMotion()
}, X.topsQueryParams = (e, t = 0) => {
@@ -82651,7 +82654,7 @@ function mze() {
X.catalogFilterProps && O7({ comboHidden: !0 });
};
}
-function hze() {
+function gze() {
X.junkQueueHelpers = { badgeHtml: (e, t) => Z.srcBadge(e, t) }, X.junkQueueActions = {
navigate: (e) => {
Ql && j5(!1, !0), Q.route(e);
@@ -82668,10 +82671,10 @@ function hze() {
return Y.sourceHint(e.message);
}
},
- operate: (e, t) => dze(e, t)
+ operate: (e, t) => fze(e, t)
};
}
-X.controller = new wLe();
+X.controller = new TLe();
// src/application/preferences.js
var Z = {
sourceOnline: void 0,
@@ -82705,7 +82708,7 @@ async function $7() {
if (!e.isActive) return Z.sourceOnline;
Z.sourceOnline = {}, Z.sourceProblems = {};
}
- return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), QRe(), Z.sourceOnline;
+ return document.body.classList.toggle("offline-source", Object.values(Z.sourceOnline).includes(!1)), $Re(), Z.sourceOnline;
}
function e9() {
let e = Q.surfacePath();
@@ -82716,7 +82719,7 @@ function e9() {
state: Np.navigation.location.state
}), t;
}
-function gze(e) {
+function _ze(e) {
if (e === "local") return {
kind: "glyph",
name: "hard-drive"
@@ -82748,7 +82751,7 @@ function t9(e, t) {
value: e.k,
label: nr[e.k] || e.k,
n: e.n ?? null,
- dot: gze(e.k),
+ dot: _ze(e.k),
...Z.sourceOffline(e.k) ? { offline: Z.OFFLINE_HINT } : {}
})),
regions: n(e.regions),
@@ -82761,7 +82764,7 @@ function t9(e, t) {
duration: !!e.stats?.duration
};
}
-async function _ze(e = !1) {
+async function vze(e = !1) {
if (e && (document.hidden || !jn(decodeURIComponent(location.pathname)) || s9.stageOpen() || s9.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;
@@ -82799,23 +82802,23 @@ function i9(e) {
function a9() {
return i1(localStorage.getItem("peach.sfw-shortcut")) || i1("Shift+KeyS");
}
-function vze(e) {
+function yze(e) {
e ? localStorage.setItem(n1, a1(e)) : localStorage.removeItem(n1), Z.settingsStore.notify();
}
-function yze(e) {
+function bze(e) {
localStorage.setItem("peach.high-contrast", String(e)), document.documentElement.classList.toggle("board-high-contrast", e), Z.settingsStore.notify();
}
function o9(e) {
return Ac(e, { drag: !0 });
}
-function bze() {
+function xze() {
["#nrow", "#count"].forEach((e) => o9(L(e))), document.querySelectorAll(".tier,.srow").forEach(o9);
}
-function xze() {
+function Sze() {
let e = new URLSearchParams(location.search).get("id");
return /^\d+$/.test(e || "") ? Number(e) : void 0;
}
-function Sze() {
+function Cze() {
Z.sourceOnline = {}, Z.sourceProblems = {}, Z.sourceOffline = (e) => Z.sourceOnline[e] === !1, Z.OFFLINE_HINT = "媒体目录无法访问,请检查目录、读取权限和网盘挂载状态", Z.OFFLINE_REASON = {
local: "无法读取媒体目录,请检查目录是否存在及读取权限。",
115: "无法读取 115 媒体目录,请检查目录权限及网盘挂载工具是否正常运行。",
@@ -82848,14 +82851,14 @@ function Sze() {
},
seekSeconds: () => Q7(),
groupCollapse: () => p7(),
- feedAutoScroll: () => XLe(),
+ feedAutoScroll: () => ZLe(),
feedLimit: () => a5(),
feedCompilations: () => a5(),
miniplayer: () => {
Z.appSettings.miniplayer || l8()?.closeMiniplayer();
},
javImage: () => {
- ao(document, Z.appSettings.javImage), Q7(), document.querySelectorAll("img[data-jav-image].cover").forEach(fl), wze();
+ ao(document, Z.appSettings.javImage), Q7(), document.querySelectorAll("img[data-jav-image].cover").forEach(fl), Tze();
},
searchHistoryLimit: () => xp(L("#searchMenu"), { historyLimit: Z.appSettings.searchHistoryLimit })
}, Z.syncGlassOptics = () => {}, Z.placeSidebarHead = () => {}, Z.SRCICON = {
@@ -82866,7 +82869,7 @@ function Sze() {
return `<span class="${n || "src"} ${t === "metered" ? "metered" : "free"}" title="${z(r)}" aria-label="${z(r)}">` + (Z.SRCICON[e] || "") + "</span>";
}, Z.emptyState = Ws;
}
-function Cze() {
+function wze() {
Z.CENSOR_KEY = "peach-censor", r9(localStorage.getItem(Z.CENSOR_KEY) === "1");
}
// src/application/media.js
@@ -82902,7 +82905,7 @@ function u9(e = !1, t = !1, { miniplayer: n = !0, preserveQueueRequest: r = null
detailReturnNeedsRestore: !1
}), _7(), e && Q.route(nu || "/");
}
-function wze() {
+function Tze() {
l8()?.repaintPoster();
}
function d9(e, t, n, r, i = null, a = {}) {
@@ -82927,13 +82930,13 @@ function d9(e, t, n, r, i = null, a = {}) {
Q.requestedQueue = () => m9(n == null ? null : +n, !1, s, i, !0, e), W({ queueOpens: mu + 1 });
} else return m9(n == null ? null : +n, !1, s, i, r);
}
-function Tze(e, t = e, n = !0, r = null) {
+function Eze(e, t = e, n = !0, r = null) {
return d9("mix", e, t, n, r);
}
-function Eze(e, t = e, n = !0, r = null) {
+function Dze(e, t = e, n = !0, r = null) {
return d9("editions", e, t, n, r);
}
-function Dze(e, t = e, n = !0, r = null) {
+function Oze(e, t = e, n = !0, r = null) {
return d9("parts", e, t, n, r);
}
function f9(e, t = null, n = !0) {
@@ -83031,9 +83034,9 @@ async function g9(e, t = !0) {
}), _7());
}
async function _9(e = null, t = !0) {
- t ? (s9.requestedImmerseId = e, Q.route("/immerse")) : (l8()?.closeMiniplayer(), await (await fLe(s9.immerseHost)).open(e));
+ t ? (s9.requestedImmerseId = e, Q.route("/immerse")) : (l8()?.closeMiniplayer(), await (await pLe(s9.immerseHost)).open(e));
}
-function Oze() {
+function kze() {
s9.total = 0, s9.facets = null, s9.stageHost = {
player: {
settings: () => Z.appSettings,
@@ -83049,11 +83052,11 @@ function Oze() {
openItem: (e) => void m9(e)
}, s9.stageOpen = () => !!l8()?.isOpen();
}
-function kze() {
+function Aze() {
s9.itemDetailHelpers = {
badgeHtml: (e, t, n) => Z.srcBadge(e, t, n),
- titleHtml: (e) => WI(e),
- displayName: (e) => UI(e),
+ titleHtml: (e) => UI(e),
+ displayName: (e) => HI(e),
javImage: () => Z.appSettings.javImage,
tagLabel: (e) => Ll(e),
isDurationTag: (e) => ar.has(e),
@@ -83102,12 +83105,12 @@ function kze() {
openTag: (e) => E7((t) => {
t.tag = e;
}),
- addToPlaylist: (e) => uRe(e),
- saveMix: (e) => lRe(e),
+ addToPlaylist: (e) => dRe(e),
+ saveMix: (e) => uRe(e),
editPlaylist: () => w9("/playlists"),
openPlaylists: () => w9("/playlists"),
reveal: (e) => g5(e),
- sync: (e) => tRe(e),
+ sync: (e) => nRe(e),
trashChanged: async (e, t) => {
U.state === "ads" && (t || e === "trash") && (t || (Gf(), u9(!0, !1, { miniplayer: !1 })), await V7());
},
@@ -83117,7 +83120,7 @@ function kze() {
filters: () => U,
seekSeconds: () => Z.appSettings.seekSeconds,
sourceOffline: (e) => Z.sourceOffline(e),
- displayName: (e) => UI(e),
+ displayName: (e) => HI(e),
route: (e) => Q.route("/immerse?id=" + e, !0),
closed: () => b7(),
openItem: (e) => void m9(e),
@@ -83181,7 +83184,7 @@ function C9() {
function w9(e) {
Q.route(e), W({ pageOpens: pu + 1 });
}
-function Aze() {
+function jze() {
Q.routeMeta = (e) => {
let t = ep(e);
return t ? { route: t } : null;
@@ -83189,7 +83192,7 @@ function Aze() {
let t = ep(e);
return !!t && t.reload !== "reopen" && !Q.catalogPage(e) && !Bf(e) && e !== "/immerse";
}, Q.openRoutePath = (e) => {
- e === "/immerse" ? _9(xze()) : e === "/follow" ? A9() : e === "/playlists" || Q.catalogPage(e) ? w9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? ORe() : e) : (j5(!1, !0), w9(F5({
+ e === "/immerse" ? _9(Sze()) : e === "/follow" ? A9() : e === "/playlists" || Q.catalogPage(e) ? w9(e) : Q.managedPagePath(e) ? Q.navigatePath(e === "/subscriptions" ? kRe() : e) : (j5(!1, !0), w9(F5({
kind: e.slice(1),
q: "",
scope: "local",
@@ -83198,7 +83201,7 @@ function Aze() {
})));
};
}
-function jze() {
+function Mze() {
Q.surfaceEpoch = 0, Q.surfacePath = () => decodeURIComponent(location.pathname), Q.surfaceRequests = null, Q.surfaceToken = (e) => ({
epoch: Q.surfaceEpoch,
path: e,
@@ -83217,15 +83220,15 @@ function jze() {
}, Q.requestedOverlay = null, Q.requestedQueue = null, Q.queueOpenRequest = null, Q.initialOverlayOpened = !1;
}
// src/jobs.ts
-function Mze(e, t, n) {
+function Nze(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 Nze(e, t = 0, n = 0) {
- return n > 0 ? Mze(e, t, n) : Hs(e);
+function Pze(e, t = 0, n = 0) {
+ return n > 0 ? Nze(e, t, n) : Hs(e);
}
-async function Pze(e) {
+async function Fze(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -83240,14 +83243,14 @@ async function Pze(e) {
await t(2e3);
}
}
-function Fze(e) {
+function Ize(e) {
let t = e.note || ((e) => zs(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || Hs, r = e.progress || ((e, t, n) => Nze(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) => Pze(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;
- Pze({
+ Fze({
read: e.read,
active: () => !c && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -83296,7 +83299,7 @@ var $ = {
FOLLOW_MANAGE_TABS: void 0,
followSidebarFilters: void 0
};
-function Ize(e) {
+function Lze(e) {
let t = (e.results || []).filter((e) => !e.ok).length;
D8.toast({ text: Hi(e) }, {
warn: !!t,
@@ -83311,7 +83314,7 @@ function Ize(e) {
function T9() {
return ka(E9());
}
-function Lze() {
+function Rze() {
return $.controller.read();
}
function E9() {
@@ -83332,17 +83335,17 @@ function E9() {
function D9(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 Rze() {
+function zze() {
let e = mp(L("#stats"));
return e && e.path === "/follow" && e.host.isConnected ? e : null;
}
function O9() {
- return !!Rze();
+ return !!zze();
}
function k9(e) {
O9() && xp(L("#stats"), e);
}
-function zze(e, t = {}) {
+function Bze(e, t = {}) {
return $.controller.route(e, t);
}
function A9(e = !1) {
@@ -83366,16 +83369,16 @@ async function j9(e, t = !0, n = null, r = !1) {
resume: t ? null : c9()
}), _7();
}
-async function Bze() {
- await l9(), u9(!1, !1, { miniplayer: !1 }), Gf(), Q.route(lu || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && O9() ? (Lze(), k9({ view: E9() })) : W({ pageOpens: pu + 1 }));
+async function Vze() {
+ await l9(), u9(!1, !1, { miniplayer: !1 }), Gf(), Q.route(lu || "/follow"), !(Y.entityPageView && Y.entityPageCurrent() && !L("#index").hidden) && (location.pathname === "/follow" && O9() ? (Rze(), k9({ view: E9() })) : W({ pageOpens: pu + 1 }));
}
-function Vze(e) {
+function Hze(e) {
let t = document.createElement("div");
return t.className = "peach-react", ic(e, () => {
e.textContent = "", e.append(t);
}), t;
}
-function Hze() {
+function Uze() {
$.followFeedHelpers = zl({
wireDrag: (e) => {
e && o9(e);
@@ -83384,12 +83387,12 @@ function Hze() {
e && Ac(e);
},
listSkeletonHtml: (e) => $.followContentSkeletonHtml(e),
- jobProgress: Fze
+ jobProgress: Ize
}), $.followFeedActions = {
loaded: (e) => q5(e),
openDetail: (e) => j9(e),
openAuthor: (e) => Q.navigatePath(Pn("creator", e)),
- toggleSelection: (e, t) => gRe(e, t),
+ toggleSelection: (e, t) => _Re(e, t),
setImagesOnly: (e) => {
Z.appSettings.followImagesOnly = !!e, Z.saveSettings(), p5();
},
@@ -83399,7 +83402,7 @@ function Hze() {
canFlip: () => !Ql && !n9() && !window.__scrolling && !X.reduceMotion(),
toast: (e, { undo: t } = {}) => D8.actionReceipt(e, { undo: t }),
failure: (e, t) => D8.actionFailure(e, t),
- checkReport: (e) => Ize(e)
+ checkReport: (e) => Lze(e)
}, $.followFeedShell = {
skeleton: () => $.followSkeletonHtml("正在读取关注内容"),
ground: () => {
@@ -83409,7 +83412,7 @@ function Hze() {
view: E9,
adoptView: D9,
rememberReturn: (e) => W({ followDetailReturnPath: e }),
- close: () => void Bze(),
+ close: () => void Vze(),
open: (e, t, n) => void j9(e, !0, t, n),
drawer: q5,
openAuthor: (e) => Q.navigatePath(Pn("creator", e))
@@ -83419,7 +83422,7 @@ function Hze() {
canFlip: $.followFeedActions.canFlip
});
}
-function Uze() {
+function Wze() {
$.controller = Ma({
location: () => location,
view: E9,
@@ -83463,8 +83466,8 @@ function Uze() {
}, $.followFeedHelpers, $.followFeedActions), $.followFeedActions = $.controller.actions, $.followFeedProps = $.controller.props, $.followFeedShell.refresh = $.controller.refresh, $.followFeedShell.props = $.controller.props;
}
// src/application/lifecycle.js
-function Wze() {
- SDe(), Qc(document), Ro(document.documentElement, { variant: "page" }), Ro(L("#drawerScroll")), U8.own(Yc()), Wa(document.body), X.homeHasFeed = qLe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, U5.sidebarProps = {
+function Gze() {
+ wDe(), Qc(document), Ro(document.documentElement, { variant: "page" }), Ro(L("#drawerScroll")), U8.own(Yc()), Wa(document.body), X.homeHasFeed = JLe(), X.barsRequestSeq = 0, X.barsPendingSeq = 0, X.barsRendered = "", X.catalogFilterProps = null, X.catalogFilterMounting = null, X.catalogTagRows = [], X.catalogTopsPages = null, U5.sidebarProps = {
content: null,
filters: {},
latest: null
@@ -83475,12 +83478,12 @@ function Wze() {
], $.FOLLOW_RANDOM_SORT = "rand", $.followSort = "new", $.followDir = "desc", $.followSeed = 0, $.followDurMin = 0, $.followDurMax = 0;
}
// src/application/tutorial.js
-async function Gze() {
- bU({ reopen: !0 });
+async function Kze() {
+ yU({ reopen: !0 });
}
-function Kze() {
+function qze() {
let e = new URL(location.href), t = e.searchParams.get("onboarding") === "1";
- W({ cameFromSetup: t }), U8.handler(document.getElementById("tutorialBtn"), "onclick", () => bU()), bU({ invitation: !0 }), t && e.searchParams.delete("onboarding");
+ W({ cameFromSetup: t }), U8.handler(document.getElementById("tutorialBtn"), "onclick", () => yU()), yU({ invitation: !0 }), t && e.searchParams.delete("onboarding");
let n = e.searchParams.get("agentation");
try {
localStorage.removeItem("peach.agentation");
@@ -83542,15 +83545,15 @@ var M9 = [
size: 5
}
];
-function qze() {
+function Jze() {
return M9.map((e) => ({
...e,
items: [],
pending: !0
}));
}
-var Jze = (e) => e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10), N9 = (e, t = e.length) => t > 1 ? `${e[0]} 等 ${t} 人` : e[0] || "";
-async function Yze(e) {
+var Yze = (e) => e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10), N9 = (e, t = e.length) => t > 1 ? `${e[0]} 等 ${t} 人` : e[0] || "";
+async function Xze(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,
@@ -83585,7 +83588,7 @@ async function Yze(e) {
avatar_focus: n.avatar_focus,
rep: n.has_avatar ? n.rep : null,
works: [e],
- subtitle: r ? `最新作 ${r.code || "无番号"} · ${Jze(r.release_date)}` : "最新作未取得"
+ subtitle: r ? `最新作 ${r.code || "无番号"} · ${Yze(r.release_date)}` : "最新作未取得"
});
}
a.performer = o && [...s.values()];
@@ -83600,9 +83603,9 @@ async function Yze(e) {
let i = ha(r);
for (let a of ["videos", "images"]) {
if (a === "images" ? !i.has("image") : i.size && !i.has("video")) continue;
- let o = ga(r, a), s = n.sources.find((e) => e.id === o.source_id), c = gG(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 = 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;
(a === "images" ? t : e).push({
- value: fG(o),
+ value: dG(o),
id: o.id,
who: c.author,
whoAvatarHtml: c.avatar,
@@ -83625,7 +83628,7 @@ async function Yze(e) {
value: e.k,
href: e.entity_id ? `/creators/${e.entity_id}` : `/follow?author=${encodeURIComponent(e.key)}`,
avatarHtml: V8(e),
- subtitle: e.latest ? `最新更新于 ${SG({ published_at: e.latest })}` : "更新时间未取得"
+ subtitle: e.latest ? `最新更新于 ${xG({ published_at: e.latest })}` : "更新时间未取得"
})) : null, {
groups: M9.map((e) => {
let t = a[e.kind] ?? [];
@@ -83640,7 +83643,7 @@ async function Yze(e) {
};
}
// src/application/search-morph.js
-function Xze(e, t, n, r, i, a, o) {
+function Zze(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);
@@ -83665,7 +83668,7 @@ var P9 = {
function F9() {
P9.searchControl?.close();
}
-function Zze(e) {
+function Qze(e) {
let t = e ? to({
...e,
is_jav: !!e.code
@@ -83684,7 +83687,7 @@ function L9(e) {
if (t.classList.toggle("open", e), L("#searchBtn").setAttribute("aria-expanded", String(e)), innerWidth > 760 || matchMedia("(prefers-reduced-motion:reduce)").matches) return;
let s = t.getBoundingClientRect(), c = getComputedStyle(t), l = parseFloat(c.paddingLeft), u = t.querySelector("svg").getBoundingClientRect().width, d = Math.max(0, (o.width - u) / 2 - parseFloat(c.borderLeftWidth)), f = r ? i : e ? o : s, p = e ? s : o, m = Uc();
t.classList.add("search-morphing");
- let h = t.animate(Xze(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
+ let h = t.animate(Zze(f, p, s, r ? a : e ? d : l, e ? l : d, m.easing, innerWidth), {
duration: m.duration,
easing: "linear",
fill: "both"
@@ -83693,13 +83696,13 @@ function L9(e) {
P9.searchMorph === h && I9();
});
}
-function Qze() {
+function $ze() {
return s9.immerseOpen() ? f8().activeVideo() : l8()?.activeVideo() || null;
}
-function $ze(e) {
+function eBe(e) {
return !!e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable);
}
-function eBe() {
+function tBe() {
P9.searchControl = null, P9.searchActions = {
search: (e) => {
X.rememberSearchValue(), u9(!1), U.q = e, Su(), Q.route(U.jav === "1" ? y7() : U.q ? "/?q=" + encodeURIComponent(U.q) : "/", !0);
@@ -83711,11 +83714,11 @@ function eBe() {
$.followMediaView = t, j9(e, !0, n);
}
}, P9.searchHelpers = {
- pool: () => qxe(U, Tn),
- recommendations: () => Yze(Tn),
- pendingRecommendations: qze,
+ pool: () => Jxe(U, Tn),
+ recommendations: () => Xze(Tn),
+ pendingRecommendations: Jze,
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 ? X8(e) : Zze(e)}</span>`,
+ coverHtml: (e) => `<span class="pic">${e?.thumb_url ? `<img src="${z(e.thumb_url)}" width="640" height="360" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : e?.sourceWork ? X8(e) : Qze(e)}</span>`,
present: (e) => cs(e),
dismiss: (e) => ls(e),
wireScroller: (e) => Ac(e),
@@ -83749,7 +83752,7 @@ function eBe() {
e.currentTarget.value && X.rememberSearchValue(e.currentTarget);
});
}
-function tBe() {
+function nBe() {
P9.searchMorph = null, P9.searchMorphViewport = innerWidth, U8.listen.bind(U8, window)("resize", () => {
innerWidth !== P9.searchMorphViewport && (P9.searchMorphViewport = innerWidth, I9());
}, { passive: !0 }), U8.listen(matchMedia("(prefers-reduced-motion:reduce)"), "change", I9), U8.handler(L("#searchBtn"), "onclick", () => {
@@ -83791,8 +83794,8 @@ function tBe() {
}
return;
}
- if ($ze(e.target)) return;
- if (!e.defaultPrevented && fje(e, a9())) {
+ if (eBe(e.target)) return;
+ if (!e.defaultPrevented && pje(e, a9())) {
e.preventDefault(), i9(!n9());
return;
}
@@ -83804,26 +83807,26 @@ function tBe() {
return;
}
}
- let t = Qze();
+ let t = $ze();
if (t) {
if (e.key === "t" || e.key === "T") {
e.preventDefault(), l8()?.toggleTheater();
return;
}
if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
- e.preventDefault(), sP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
+ e.preventDefault(), oP(t, Z.appSettings.seekSeconds * (e.key === "ArrowRight" ? 1 : -1));
return;
}
if (e.key === " " || e.key === "k" || e.key === "K") {
- e.preventDefault(), oP(t);
+ e.preventDefault(), aP(t);
return;
}
if (e.key === "m" || e.key === "M") {
- e.preventDefault(), xN(t, ".vjs-mute-control");
+ e.preventDefault(), bN(t, ".vjs-mute-control");
return;
}
if (e.key === "f" || e.key === "F") {
- e.preventDefault(), xN(t, ".vjs-fullscreen-control");
+ e.preventDefault(), bN(t, ".vjs-fullscreen-control");
return;
}
if (e.key === "i" || e.key === "I") {
@@ -83834,7 +83837,7 @@ function tBe() {
});
}
// src/history/links.ts
-function nBe(e) {
+function rBe(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;
@@ -83857,23 +83860,23 @@ var R9 = {
shellActions: void 0,
routing: void 0
};
-function rBe() {
+function iBe() {
let e = U8, t = (e) => {
e.kind === "item" ? m9(e.id, !1) : e.kind === "jav" ? g9(e.code, !1) : e.kind === "follow" ? j9(e.id, !1) : d9(e.queue, e.key, e.item, !1);
};
- if (KLe(), R5.entityShapesReady = Z8(), PRe(), location.pathname === "/") {
+ if (qLe(), R5.entityShapesReady = Z8(), FRe(), location.pathname === "/") {
let e = new URLSearchParams(location.search);
!e.has("state") && e.get("jav") !== "1" && (L("#catalogPageHeading").hidden = !1, r7(L("#catalogPageHeading"), e.get("q")));
}
- r5(decodeURIComponent(location.pathname)) && e5(L("#feedNew")), HRe(), R9.shellActions = {
+ r5(decodeURIComponent(location.pathname)) && e5(L("#feedNew")), URe(), R9.shellActions = {
openSettings: (e) => Q5(e, !0),
closeSettings: () => h8()?.close(!1),
openItem: (e) => void m9(e),
openEntity: (e, t) => void x5(e, t),
openTag: (e) => {
- RRe(), R7(e);
+ zRe(), R7(e);
},
- openTasteSignal: cRe,
+ openTasteSignal: lRe,
navigate: (e) => {
let n = new URL(e, location.href), r = zf(n.pathname, n.search);
if (r) {
@@ -83892,9 +83895,9 @@ function rBe() {
toast: (e, t) => D8.toast(e, t),
failure: D8.actionFailure,
revealSource: g5,
- reopenTutorial: Gze,
- routeReview: dRe,
- routeFollowManage: DRe,
+ reopenTutorial: Kze,
+ routeReview: fRe,
+ routeFollowManage: ORe,
saveFollowPreference: (e) => {
e.pageSize !== void 0 && (Z.appSettings.followPageSize = e.pageSize), e.layout !== void 0 && (Z.appSettings.followLayout = e.layout), Z.saveSettings();
},
@@ -83905,10 +83908,10 @@ function rBe() {
},
exitSelectMode: () => j5(!1, !1),
personAvatar: (e, t, n) => P5.personAvatar(e, t, n),
- authorAvatar: (e) => kRe(e),
- showIndexTags: ARe,
+ authorAvatar: (e) => ARe(e),
+ showIndexTags: jRe,
openFollowAuthor: L5,
- openFollowTag: jRe,
+ openFollowTag: MRe,
openPlaylist: (e, t) => void f9(e, t, !0),
canFlip: () => !Ql && !n9() && !window.__scrolling && !X.reduceMotion(),
surfaceChanged: (e, t) => {
@@ -83969,23 +83972,23 @@ function rBe() {
}
}
}, R9.routing = !1, e.listen(document, "click", (e) => {
- let t = nBe(e);
+ let t = rBe(e);
t && (e.preventDefault(), R9.shellActions.navigate(t));
}), U8.own(Np.listen((e) => {
Q.queueOpenRequest && e.seq !== Q.queueOpenRequest.seq && !Bf(e.location.pathname) && u9(!1), R9.routing && !e.claimed && C9();
- })), uLe(R9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), GRe(), xRe(), e7(), Promise.all([
+ })), dLe(R9.shellActions).catch((e) => console.error("客户端导航装载失败", e)), KRe(), SRe(), e7(), Promise.all([
$7(),
- URe(),
+ WRe(),
R5.entityShapesReady
]).then(() => {
- e.isActive && (R5.wantsDiscoveryBars() && I7().catch((e) => console.error("首页横条装载失败", e)), b9(), bze(), R9.routing = !0, W({ pageOpens: 1 }), C9(), _7());
+ e.isActive && (R5.wantsDiscoveryBars() && I7().catch((e) => console.error("首页横条装载失败", e)), b9(), xze(), R9.routing = !0, W({ pageOpens: 1 }), C9(), _7());
}).catch((t) => {
e.isActive && console.error("应用启动失败", t);
});
}
// src/theme-transition.ts
var z9 = !1;
-async function iBe(e, t) {
+async function aBe(e, t) {
if (z9) return;
if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
@@ -84007,7 +84010,7 @@ async function iBe(e, t) {
}
}
// src/application/chrome.js
-function aBe() {
+function oBe() {
(() => {
let e = U8, t = [
"#brandHome",
@@ -84069,7 +84072,7 @@ function aBe() {
e.key === "Escape" && (e.stopPropagation(), u.setOpen(!1), c.focus());
}), Tn("/api/libraries", { signal: e.signal }).then((t) => {
if (!e.isActive) return;
- KG(t.libraries);
+ GG(t.libraries);
let n = [[
"",
"全部媒体库",
@@ -84107,14 +84110,14 @@ function aBe() {
(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" && iBe(t, () => {
+ t.getAttribute("aria-pressed") !== "true" && aBe(t, () => {
Z.appSettings.theme = t.dataset.boardTheme, Z.saveSettings(), sM();
});
})), sM();
let _ = document.createElement("div");
_.className = "popmenu board-glow-menu", _.id = "boardGlowMenu", _.hidden = !0, _.setAttribute("popover", "manual"), _.setAttribute("role", "dialog"), _.setAttribute("aria-label", "配色"), document.body.append(_), e.own(() => _.remove());
let v = g.querySelector("#boardGlowBtn"), y = fs(g, v, _);
- e.own(y.dispose), e.own(Wle(v)), _Le({
+ e.own(y.dispose), e.own(Gle(v)), vLe({
root: _,
store: Z.settingsStore,
openDetails: () => {
@@ -84257,8 +84260,8 @@ function aBe() {
})(), X5(!Y5() && sessionStorage.getItem("board.sidebar") !== "closed");
}
// src/navigation-progress.ts
-var oBe = 200, sBe = 400, cBe = 240;
-function lBe() {
+var sBe = 200, cBe = 400, lBe = 240;
+function uBe() {
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 = () => up() || t.size > 0, s = () => {
@@ -84269,12 +84272,12 @@ function lBe() {
}
n ||= window.setTimeout(() => {
n = 0, i = performance.now(), e.dataset.state = "running";
- }, oBe);
+ }, sBe);
} 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;
- }, cBe);
- }, Math.max(0, sBe - (performance.now() - i))));
+ }, lBe);
+ }, Math.max(0, cBe - (performance.now() - i))));
}, c = () => {
a || (a = !0, queueMicrotask(() => {
a = !1, s();
@@ -84291,15 +84294,15 @@ function lBe() {
};
}
// src/application/initialize.js
-function uBe() {
- Wze(), Aze(), FRe(), jze(), Sze(), vLe(), pze(), Kze(), aRe(), Oze(), SRe(), mze(), QLe(), fRe(), Hze(), MRe(), oRe(), Uze(), NRe(), sRe(), ZRe(), hze(), eBe(), kze(), tBe(), Cze(), rBe(), aBe(), U8.own(lBe()), U8.own(U7), U8.own(x9);
+function dBe() {
+ Gze(), jze(), IRe(), Mze(), Cze(), yLe(), mze(), qze(), oRe(), kze(), CRe(), hze(), $Le(), pRe(), Uze(), NRe(), sRe(), Wze(), PRe(), cRe(), QRe(), gze(), tBe(), Aze(), nBe(), wze(), iBe(), oBe(), U8.own(uBe()), U8.own(U7), U8.own(x9);
}
// src/ui-kit/middle-truncate.ts
-var dBe = "…", B9 = 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, q9 = (e) => B9 ? [...B9.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), J9 = (e, t) => {
+var fBe = "…", B9 = 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, q9 = (e) => B9 ? [...B9.segment(String(e ?? ""))].map((e) => e.segment) : Array.from(String(e ?? "")), J9 = (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("") + dBe + (r ? e.slice(-r).join("") : "");
-}, fBe = (e, t) => {
+ return e.slice(0, n).join("") + fBe + (r ? e.slice(-r).join("") : "");
+}, pBe = (e, t) => {
if (!e.length || t(e.join(""))) return e.length;
let n = 0, r = e.length - 1, i = 0;
for (; n <= r;) {
@@ -84307,23 +84310,23 @@ var dBe = "…", B9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
t(J9(e, a)) ? (i = a, n = a + 1) : r = a - 1;
}
return i;
-}, pBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-￯]/u, mBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, hBe = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, gBe = /[＀-￯]/u, _Be = (e) => mBe.test(e) ? 1 : hBe.test(e) && !gBe.test(e) ? 2 : 0, vBe = (e) => {
+}, mBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-￯]/u, hBe = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u, gBe = /[\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Nd}]/u, _Be = /[＀-￯]/u, vBe = (e) => hBe.test(e) ? 1 : gBe.test(e) && !_Be.test(e) ? 2 : 0, yBe = (e) => {
let t = 0, n = 0;
for (let r of e) {
- let e = _Be(r);
+ let e = vBe(r);
n && e && n !== e && t++, n = e;
}
return t;
-}, yBe = null, bBe = (e, t) => {
- let n = getComputedStyle(e), r = (yBe ||= document.createElement("canvas")).getContext("2d");
+}, bBe = null, xBe = (e, t) => {
+ let n = getComputedStyle(e), r = (bBe ||= 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, q9(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += vBe(e) * s), t;
+ return Number.isFinite(i) && (t += Math.max(0, q9(e).length - 1) * i), Number.isFinite(a) && (t += (e.match(/\s/g) || []).length * a), s && (t += yBe(e) * s), t;
};
-}, xBe = [
+}, SBe = [
"font-family",
"font-size",
"font-weight",
@@ -84348,7 +84351,7 @@ var dBe = "…", B9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
"text-autospace",
"text-spacing-trim",
"white-space-collapse"
-], Y9 = null, SBe = (e) => {
+], Y9 = null, CBe = (e) => {
if (!Y9) {
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 = {
@@ -84357,10 +84360,10 @@ var dBe = "…", B9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
};
}
Y9.box.isConnected || document.documentElement.append(Y9.box);
- let t = getComputedStyle(e), n = xBe.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(xBe[t], e)), a.lang = r, Y9.box.append(a), Y9.groups.set(i, a)), a;
-}, CBe = 8, wBe = (e) => {
- for (let t = 0; e.length && t < CBe; t++) {
+ let t = getComputedStyle(e), n = SBe.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(SBe[t], e)), a.lang = r, Y9.box.append(a), Y9.groups.set(i, a)), a;
+}, wBe = 8, TBe = (e) => {
+ for (let t = 0; e.length && t < wBe; 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;
@@ -84378,28 +84381,28 @@ var dBe = "…", B9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
])].filter((t) => t > e.fits && t < e.fails), !0;
});
}
-}, TBe = (e) => {
+}, EBe = (e) => {
let t = [];
for (let n of e) {
- let e = n.state.full, r = pBe.test(e), i = bBe(n.element, r);
- if (n.kept = fBe(n.parts, (e) => i(e) <= n.available), !r) continue;
+ let e = n.state.full, r = mBe.test(e), i = xBe(n.element, r);
+ if (n.kept = pBe(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: SBe(n.element),
+ group: CBe(n.element),
fits: 0,
fails: n.parts.length + 1,
tries: a
});
}
- wBe(t);
-}, EBe = (e) => {
+ TBe(t);
+}, DBe = (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);
-}, DBe = (e) => {
- if (e.dataset.middleTruncateWithin === void 0) return EBe(e);
+}, OBe = (e) => {
+ if (e.dataset.middleTruncateWithin === void 0) return DBe(e);
let t = e.parentElement;
if (!t) return e.clientWidth;
let n = getComputedStyle(t), r = parseFloat(n.columnGap) || 0, i = 0, a = 0;
@@ -84408,7 +84411,7 @@ var dBe = "…", B9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
n === e ? a++ : t > 0 && (i += t, a++);
}
return t.getBoundingClientRect().width - (parseFloat(n.paddingLeft) || 0) - (parseFloat(n.paddingRight) || 0) - i - r * Math.max(0, a - 1);
-}, OBe = () => {
+}, kBe = () => {
U9 = 0;
let e = [];
for (let t of H9) {
@@ -84416,12 +84419,12 @@ var dBe = "…", B9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
n && t.isConnected && e.push({
element: t,
state: n,
- available: DBe(t),
+ available: OBe(t),
parts: q9(n.full),
kept: 0
});
}
- H9.clear(), TBe(e.filter((e) => e.available > 0));
+ H9.clear(), EBe(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;
n.rendered = e, t.textContent !== e && (t.textContent = e);
@@ -84429,28 +84432,28 @@ var dBe = "…", B9 = typeof Intl.Segmenter == "function" ? new Intl.Segmenter(v
t.classList.toggle("middle-truncated", o), t.setAttribute("aria-label", n.full), t.hasAttribute("title") && t.dataset.middleTitle !== "true" || (t.title = n.full, t.dataset.middleTitle = "true");
}
}, X9 = (e) => {
- V9.has(e) && (H9.add(e), U9 ||= requestAnimationFrame(OBe));
-}, kBe = (e) => {
+ V9.has(e) && (H9.add(e), U9 ||= requestAnimationFrame(kBe));
+}, ABe = (e) => {
e instanceof HTMLElement && (V9.has(e) || V9.set(e, {
full: e.textContent || "",
rendered: e.textContent || ""
}), W9.has(e) || (W9.add(e), e.dataset.middleTruncateWithin !== void 0 && e.parentElement ? G9?.observe(e.parentElement) : G9?.observe(e)), X9(e));
-}, ABe = (e) => {
+}, jBe = (e) => {
if (e.nodeType !== Node.ELEMENT_NODE) return;
let t = e;
- t.matches("[data-middle-truncate]") && kBe(t), t.querySelectorAll("[data-middle-truncate]").forEach(kBe);
+ t.matches("[data-middle-truncate]") && ABe(t), t.querySelectorAll("[data-middle-truncate]").forEach(ABe);
};
-function jBe(e = document) {
+function MBe(e = document) {
K9?.(), W9 = /* @__PURE__ */ new WeakSet();
let t = !0;
G9 = new ResizeObserver((e) => e.forEach((e) => {
t && (X9(e.target), e.target.querySelectorAll?.(":scope>[data-middle-truncate-within]").forEach(X9));
}));
let n = G9;
- ABe(e.documentElement || e);
+ jBe(e.documentElement || e);
let r = new MutationObserver((e) => e.forEach((e) => {
if (!t) return;
- e.addedNodes.forEach(ABe);
+ e.addedNodes.forEach(jBe);
let n = (e.target.nodeType === Node.TEXT_NODE ? e.target.parentElement : e.target)?.closest?.("[data-middle-truncate]");
if (!n) return;
let r = V9.get(n);
@@ -84476,7 +84479,7 @@ function jBe(e = document) {
return K9 = a, a;
}
// src/react/result-updates.tsx
-var MBe = [
+var NBe = [
"catalog-grid",
"catalog-folders",
"item",
@@ -84501,15 +84504,15 @@ var MBe = [
"follow",
"entity",
"index"
-], NBe = [
+], PBe = [
"feed-new",
"jav-discoveries",
"jav-detail",
"wants",
"index"
-], PBe = {
+], FBe = {
catalog: [
- ...MBe,
+ ...NBe,
...Z9,
"review",
"taste"
@@ -84519,19 +84522,19 @@ var MBe = [
"stats",
"taste"
],
- discoveries: NBe,
+ discoveries: PBe,
review: ["review"],
artwork: [
- ...MBe,
- ...Z9,
...NBe,
+ ...Z9,
+ ...PBe,
"avatar-choices"
]
};
-function FBe() {
+function IBe() {
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 PBe[t] || []) e.add(n);
+ for (let t of Object.keys(r)) if (r[t] !== n[t]) for (let n of FBe[t] || []) e.add(n);
return !t && e.size && (t = (async () => {
for (; e.size;) {
let t = new Set(e);
@@ -84544,67 +84547,67 @@ function FBe() {
})), t || Promise.resolve();
};
}
-function IBe() {
+function LBe() {
let e = Ft({
- queryKey: KI,
- queryFn: ({ signal: e }) => JI(e),
- refetchInterval: (e) => qI(e.state.data)
- }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(FBe), r = e.data?.result_versions;
+ queryKey: GI,
+ queryFn: ({ signal: e }) => qI(e),
+ refetchInterval: (e) => KI(e.state.data)
+ }), t = (0, F.useRef)(void 0), [n] = (0, F.useState)(IBe), r = e.data?.result_versions;
return (0, F.useEffect)(() => {
r && (t.current && n(t.current, r), t.current = r);
}, [r, n]), null;
}
// src/react/application.tsx
var Q9 = null;
-function LBe(e) {
+function RBe(e) {
Q9 !== e || e.owners || (Q9 = null, e.effects.dispose());
}
-function RBe() {
+function zBe() {
if (!Q9) {
- let e = PLe();
+ let e = FLe();
Q9 = {
effects: e,
owners: 0
- }, e.own(jBe(document)), e.own(() => {
+ }, e.own(MBe(document)), e.own(() => {
Nl(), H.cancelQueries();
- }), e.own(dLe), e.own(Cp), e.own(os);
+ }), e.own(fLe), e.own(Cp), e.own(os);
}
return Q9.owners += 1, Q9.effects.resume(), Q9;
}
-function zBe() {
+function BBe() {
let [e, t] = (0, F.useState)(null);
return (0, F.useLayoutEffect)(() => {
- let e = Q9 === null, n = RBe(), r = lLe(t);
+ let e = Q9 === null, n = zBe(), r = uLe(t);
if (e) try {
- uBe();
+ dBe();
} catch (e) {
throw r(), n.effects.dispose(), Q9 = null, e;
}
return () => {
- r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => LBe(n)));
+ r(), --n.owners, !n.owners && (n.effects.pause(), queueMicrotask(() => RBe(n)));
};
- }, []), /* @__PURE__ */ (0, I.jsx)(Tbe, {
+ }, []), /* @__PURE__ */ (0, I.jsx)(Ebe, {
actions: e,
processing: !0,
- background: e ? /* @__PURE__ */ (0, I.jsx)(IBe, {}) : null
+ background: e ? /* @__PURE__ */ (0, I.jsx)(LBe, {}) : null
});
}
var $9 = /* @__PURE__ */ new WeakMap();
-function BBe(e) {
+function VBe(e) {
let t = $9.get(e);
if (t) return t;
- let n = (0, zt.createRoot)(e, Ebe);
+ let n = (0, zt.createRoot)(e, Dbe);
$9.set(e, n);
let r = n.unmount.bind(n);
return n.unmount = () => {
- $9.get(e) === n && ($9.delete(e), r(), Q9 && LBe(Q9));
- }, (0, Rt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(zBe, {}))), n;
+ $9.get(e) === n && ($9.delete(e), r(), Q9 && RBe(Q9));
+ }, (0, Rt.flushSync)(() => n.render(/* @__PURE__ */ (0, I.jsx)(BBe, {}))), n;
}
// src/react/bootstrap.tsx
O();
-var VBe = document.getElementById("appRoot");
-if (!VBe) throw Error("主界面宿主缺失");
-BBe(VBe);
-export { HL as $2ec61d1d4f780267$export$a8a3e93435678ff9, XL as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, uz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, CD as $72abaeab4d80592f$export$78efe591171d7d45, nB as $76d00c5a4edb230a$export$76ccd210b9029917, $z as $76d00c5a4edb230a$export$816b5d811295e6bc, aB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, sB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, Qz as $76d00c5a4edb230a$export$f850895b287ef28e, Whe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Uhe as $b4f18e3395fe64d7$export$3e41faf802a29e71, Bhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, dB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, qhe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, uE as $ea3928288112382f$export$439d29a4e110a164, Cz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Az as $fe21c36db05242bb$export$a98f0dcb43a68a25, jz as $fe21c36db05242bb$export$d7b12c4107be0d61, Age as $l, Gj as ACCENTS, RAe as AMANE_BRIDGE_CHECK_URL, j$ as AMANE_BRIDGE_KEY, zAe as AMANE_BRIDGE_REBUILD_URL, sr as ApiError, GU as ArtSlot, x2 as BATCH_DELETE_TEXT, J as Button, bL as ButtonLink, UB as Bx, o$ as CLEANUP_ENTRY, a$ as CLEANUP_ENTRY_GRID, Zf as CLEANUP_HASH_REDIRECTS, Yf as CLEANUP_TOOLS, vn as CLOUD_LOCATIONS, q1 as CLOUD_PROXY_HELP, Kr as COLUMN_SORT, J$ as CONFIGURATION_KEY, VY as CONFIGURATION_URL, BAe as COOKIE_TEXT_LIMIT, A$ as COVER_JOB_KEY, Yi as CREDENTIAL_STATE, E$ as CUSTOM_SOURCES_KEY, T$ as CUSTOM_SOURCES_URL, aG as CatalogViewToggle, LV as Checkbox, IV as CheckboxGlyph, DV as ChevronSortDown, WU as Chip, eW as CloudDownloadDialog, jH as CollapseChevron, AH as CollapseRegion, $Q as CollectionSummary, yve as CommandSteps, gTe as DEFAULT_CATEGORY, dr as DEFAULT_SORT, EQ as DIAGNOSTICS_KEY, hEe as DIRECTORY_TEMPLATE_ERROR, sW as DISCOVERY_SORTS, qU as DOWNLOADS_KEY, KU as DOWNLOADS_URL, sY as DUPLICATES_KEY, VJ as DataTableFooter, LJ as DataTableFrame, BJ as DataTableSort, LH as Disclosure, Eye as DownloadsPanel, yge as E3, _Te as ENTITY_REVIEW_KINDS, G1 as ENTRY_LINKS_HELP, K1 as ENTRY_LINKS_HINT, FB as Ea, r_e as EmptyFocusButton, lV as EmptyState, FH as ErrorText, qge as Eu, bve as ExternalLink, Vr as FEEDS_KEY, YY as FEED_SCHEDULE_KEY, r$ as FIELDSET_FOOT, hIe as FLOW_LABEL_X, t6 as FLOW_VIEWBOX, zr as FOLLOW_CHECK_KEY, Rr as FOLLOW_CREDENTIALS_KEY, R8 as FOLLOW_INITIAL_RANGE_OPTIONS, Lr as FOLLOW_MANAGE_KEY, kZ as FOLLOW_MANAGE_NAV, Br as FOLLOW_RESOLVE_KEY, JY as FOLLOW_SCHEDULE_KEY, Cve as Fact, Sve as FactList, IH as FieldLabel, g$ as Fieldset, h$ as FieldsetTitle, Rpe as FilterGlass, pL as FilterGlassRows, fL as FilterIconButton, mL as FilterPill, vve as Footer, BB as Gg, hL as GlassPill, qB as HN, PH as Help, eV as HintText, sIe as IDLE_POLL_MS, aTe as IDLE_REPAIR, cL as IconButton, OQ as IndexSearch, aV as Input, iV as InputBase, v$ as IssueRow, lM as JAV_LAYOUTS, B0 as JAV_RECOMMENDATION_GRID, bX as JUNK_KEY, gW as JavHeader, $we as KEEP_LABELS, lge as L1, Ur as LAYOUTS, W1 as LIBRARY_FOLDER_HELP, XV as LIBRARY_PROCESSING_KEY, NY as LINKS_KEY, PY as LINK_CHECK_KEY, VTe as LINK_KINDS, FY as LINK_PRUNE_KEY, nr as LOC, $B as Label, x$ as LibraryProcessingCard, EV as LibraryShortcuts, fH as LinkButton, Mge as Lo, TH as LoadingDots, xge as M6, KTe as MEDIA_PROCESSING_KEY, ZY as MEDIA_PROCESSING_URL, fY as MEDIA_REPAIR_KEY, dY as MEDIA_REPAIR_URL, yr as MEDIA_SOURCES_KEY, _s as MEDIA_SOURCE_ICONS, gn as MEDIA_SOURCE_OPTIONS, jV as MENU_ITEM, MV as MENU_ITEM_INTERACTIVE, AV as MENU_POPOVER_SURFACE, Pge as Ma, gH as MenuDialog, hK as MixCard, oV as ModalFrame, xx as MotionConfigContext, ZB as NR, _$ as NameLink, cV as Note, $ge as OA, eX as ORGANIZE_KEY, v2 as ORGANIZE_PARAMETER_HINT, _2 as ORGANIZE_SCOPE_HINT, g2 as ORGANIZE_TEXT, rX as ORPHAN_RECORDS_KEY, b2 as ORPHAN_RECORDS_TEXT, RB as OV, CB as P7, _X as PERFORMER_DELETE_KEY, Fye as PHASES, HY as PICK_FOLDER_URL, c$ as PLAIN_STAT_STRIP, C$ as PLAYLISTS_KEY, nMe as POLICY_COLUMNS, iMe as POLICY_COVER_NOTE, rMe as POLICY_MATRIX, U1 as POLICY_SUMMARY, zJ as Pagination, b$ as PathLine, YB as Pf, LI as PillTabList, oAe as PlainStat, DH as Progress, _Y as QUALITY_GOALS_KEY, JB as RB, L0 as RELEASE_COLUMN_VISIBILITY_KEY, I0 as RELEASE_COLUMN_WIDTHS_KEY, cW as RELEASE_SORTS, MMe as RELEASE_SORT_COLUMNS, u$ as REPAIR_CARD_TEXT, pY as REPAIR_LIBRARIES_KEY, cX as RESOURCE_APPLY_KEY, sX as RESOURCE_SCAN_KEY, y2 as RESOURCE_SYNC_TEXT, fAe as RESULT_PANEL, pAe as RESULT_SECTION, hTe as REVIEW_CATEGORIES, yX as REVIEW_COUNTS_KEY, vTe as REVIEW_DECISION_LABELS, bY as REVIEW_KEY, xY as REVIEW_LABELS, CY as REVIEW_QUEUES, wY as REVIEW_QUEUE_LABELS, IG as RetryNote, Zge as Rf, QB as Rk, hve as Rows, IAe as SCRAPING_CHECK_URL, O$ as SCRAPING_COVER_URL, k$ as SCRAPING_KEY, FAe as SCRAPING_SETTINGS_URL, rU as SEGMENT, nU as SEGMENTED_TRACK, qY as SETTINGS_KEY, UY as SETTINGS_URL, fr as SORT_DEFAULT_DIR, ur as SORT_OPTIONS, yn as SOURCE_LABELS, E3 as STATS_KEY, iAe as STAT_STRIP, aAe as STAT_STRIP_SIX, mve as Section, mAe as SectionHeading, _ve as SectionSkeleton, tU as SegmentedRadioGroup, Rve as SegmentedTabList, kG as Segments, RJ as Select, VU as Select$1, Q$ as SelectField, HU as SelectItem, JJ as SelectionActions, Cj as SelectionDock, YJ as SelectionPopover, MH as SettingsCard, pve as SettingsRow, NH as SettingsSectionLabel, AG as Shuffle, Dve as SiteLabel, sG as SortDirectionIcon, jG as SortKeys, lQ as SourceAvatar, VH as SourceLabel, RH as SourceMark, gve as Stack, sAe as StatCard, y$ as StatusLabel, Jge as Su, i4 as Switch, KI as TASKS_KEY, XFe as TASTE_REFRESH_KEY, ZFe as TASTE_WINDOWS, XY as THUMBNAIL_JOBS_KEY, SX as TRASH_KEY, _pe as TRIGGER_LABELS, EJ as Table, XJ as TableColumnControls, ZJ as TableColumnResizer, $J as TableSelectionHeader, YQ as TagManager, xve as TaskCenterLink, OH as TaskProgress, nV as TextField, tV as TextFieldContext, IB as Un, Qge as Uz, nW as WANTS_KEY, y4 as WantMagnets, qg as WithPromise, DB as Wt, PB as Xc, XB as Xf, kB as Xl, OB as Xt, TB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, KB as _p, Xge as aB, Ei as addAlias, Ti as addSource, iW as addWant, uS as animate, B as apiGet, V as apiSend, rM as appSettingsStore, PEe as applyConfirmText, gX as applyLeftovers, NEe as applyPlanText, IEe as applyText, sM as applyTheme, vy as asNumber, SEe as attachOrphan, ci as authorAvatar, ui as authorGroups, si as authorInitial, oi as authorName, mq as autoResetPageIndex, _o as avatarInner, M3 as bandRows, gEe as baseName, iTe as batchOperate, Nue as beginPlayerGuidePreview, Oj as boundedPreference, tTe as bulkCloudPreferences, pV as busyProps, Yge as cB, TPe as cachedMagnetStates, Vg as calcGeneratorVelocity, TTe as canApprove, vg as cancelFrame, DEe as candidateText, xU as cardClass, SM as cardRatio, PJ as catalogListSkeletonCellHtml, NB as cc, Gi as checkEvidenceGap, Wi as checkFailures, Fi as checkFeeds, GTe as checkLine, Hi as checkReceipt, Ui as checkSummary, HAe as checkText, Ki as checkedText, nK as clickedBlank, Z5 as closeDrawerAfterNav, qwe as cloudLocations, w0 as cloudProxySkeleton, UC as clsx, Lge as cn, sv as collectMotionValues, Pq as columnVisibilityFeature, xJ as column_getCanSort, _J as column_getSortFn, CTe as commonReviewSources, $U as composingKey, Af as configurationSection, tIe as configureTasteBrowser, ll as confirmModal, hpe as controlTask, XK as copyInstancePropertiesWithoutMemos, lo as coverUrl, Tq as createColumnHelper, kAe as createPlaylist, Xi as credentialDone, b0 as credentialsSkeleton, PTe as currentReviewRow, q as cx, Sge as d6, HB as dZ, jTe as decisionPayload, MTe as decisionReceipt, ATe as defaultChoice, REe as deletePerformerVideos, jAe as deletePlaylist, O0 as devicesSkeleton, x as diagnosticHeaders, H1 as diagnosticsSkeleton, Wye as discoveryArtwork, lW as discoveryKey, Vye as discoveryScore, u9 as disposeStage, Zwe as distinctName, Bi as dropSources, Kge as du, nTe as duplicateVictims, $I as elapsedText, nn as entityDisplayName, go as entityFaceImg, Pn as entityPath, ti as errorHeadline, lr as errorMessage, z as esc, pq as expandRowModel, gB as f1, bo as facePos, ei as feedIntervalText, P$ as fetchAmaneBridge, vi as fetchCheckJob, Y$ as fetchConfiguration, N$ as fetchCoverJob, _i as fetchCredentials, D$ as fetchCustomSources, vX as fetchDeletePerformers, LEe as fetchDeletePlan, DQ as fetchDiagnostics, uW as fetchDiscoveries, lY as fetchDuplicates, dpe as fetchEarlier, YTe as fetchFeedSchedule, Mi as fetchFeeds, gi as fetchFollow, JTe as fetchFollowSchedule, wX as fetchJunkSummary, iH as fetchLibraryProcessing, RY as fetchLinkCheck, zY as fetchLinkPrune, LY as fetchLinkStats, qTe as fetchMediaProcessing, mY as fetchMediaRepair, br as fetchMediaSources, tX as fetchOrganize, cEe as fetchOrganizeExample, iX as fetchOrphanRecords, ji as fetchPending, w$ as fetchPlaylists, vY as fetchQualityGoals, pW as fetchReleases, hY as fetchRepairLibraries, yi as fetchResolveJob, uX as fetchResourceApply, lX as fetchResourceScan, AY as fetchReview, CX as fetchReviewCounts, QY as fetchSettings, M$ as fetchSources, D3 as fetchStats, bi as fetchSuggestions, JI as fetchTasks, Q3 as fetchTaste, nIe as fetchTasteJob, XTe as fetchThumbnailJobs, TX as fetchTrashSummary, rW as fetchWants, xTe as filterReviewRows, er as firstGrapheme, MK as flexRender, _Ie as flowGraph, vIe as flowLabel, gFe as fmtCount, Jn as fmtDur, Xn as fmtSize, upe as foldByKind, Dpe as foldRoutine, Li as followFeedByName, Hr as followSuggestKey, kpe as followupDetail, lpe as followupTally, _g as frame, xB as g4, Lq as getDefaultPaginationState, xM as gridLayout, li as groupByAuthor, Epe as groupFollowups, DY as groupReviewRows, jEe as hasChanges, dX as hasResourceRoots, XI as hasResultProblems, cIe as historySpan, _B as i2, oIe as importTasteExport, x0 as indexersSkeleton, Lg as interpolate, oW as invalidateWants, QI as isActive, $r as isBroken, qr as isLayout, vv as isMotionValue, SY as isReviewCategory, Ope as isRoutine, S0 as javBrowserSkeleton, H0 as javContentSkeleton, mM as javLayout, V0 as javTagSkeleton, UEe as junkBreakdown, MAe as keepPlaylist, ke as keepPreviousData, pi as keepSelected, O3 as known, cge as l1, hge as l7, Tpe as latestOfKind, $n as leadingGraphemes, OFe as lengthRows, Cr as localTime, po as logoUrl, Ii as lookupFeedActor, SB as m7, VB as mM, Dn as mapLimit, Ai as markItem, N3 as max, EFe as mediumRows, fpe as mergeFinished, P3 as min, zTe as mirrorText, cTe as missingToolText, uY as mixedCloudPreferences, rL as momentText, dS as motion, lv as motionValue, rn as nameFallback, Ue as notifyManager, Cge as oe, vEe as organizeOutcome, i2 as overlayHost, Jr as pageSizeOf, fi as pageWindow, hr as paginationRange, zi as patchSource, Np as peachHistory, Np as peachHistory$1, kTe as pendingGenres, vFe as percentText, dEe as pickOrganizeFolder, s$ as plainStatClass, _Ee as planSummary, k3 as playedFor, bFe as playedItemUrl, qI as pollInterval, Ys as popCount, OAe as posterUrl, _xe as previewLibraryColor, uEe as previewOrganize, dTe as previewUrl, Cpe as problemDestination, $V as processingActive, eL as progressText, BH as providerIcon, WTe as pruneText, pX as purgeCount, CEe as purgeOrphan, WB as pv, Gge as qE, H as queryClient, vB as r2, mIe as radarRows, CFe as radialArc, wFe as radialBarSize, SFe as radialCeiling, xFe as radialSlices, RN as randomId, fIe as rankDetail, pIe as rankShares, j3 as reachedShare, tL as readableErrorHeadline, Hye as recommendationScore, FTe as recordGenre, TEe as recordsText, NAe as recreatePlaylist, EAe as refreshPlaylists, El as relayoutCovers, R0 as releaseColumns, dW as releaseFilters, fW as releaseKey, Vi as reloadFollowManage, RTe as reloadReview, sMe as rememberShape, pEe as rememberTemplates, Di as removeAlias, Pi as removeFeed, wi as removeSource, aIe as removeTasteSource, aW as removeWants, Oi as renameAliasGroup, AAe as renamePlaylist, Se as replaceEqualDeep, AFe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, KK as require_with_selector, Rye as resetWants, mr as resolveFollowSort, Wg as resolveStartTime, Y_e as restartEffectText, DAe as resumeAssetId, bTe as reviewGroupingOptions, EY as reviewQueueData, TY as reviewQueueOf, HEe as reviewSummary, STe as reviewWindow, DTe as rowEvidence, kY as rowFieldName, Wq as rowPaginationFeature, dJ as rowSelectionFeature, wJ as rowSortingFeature, OY as rowSubject, OTe as rowTags, ETe as rowTitle, fge as s5, ki as saveCredential, MEe as scanLine, tEe as schedulePollInterval, Bye as searchNote, wTe as selectReviewRange, mi as selectionState, Ni as setFeedEnabled, Ci as setSourceEnabled, Pf as settingsPath, LTe as settleReviewRows, Xwe as sharedNamePrefix, Pp as shellNavigate, E8 as showToast, Bn as siteMarkUrl, iq as skipFirstRun, FI as sortCx, Xr as sortLabel, bn as sourceDefaultCost, Ji as sourceIconUrl, FEe as sourceMeta, Bs as spinnerHtml, Fg as spring, dV as spriteGlyph, xi as startCheck, HTe as startLinkCheck, UTe as startLinkPrune, fEe as startOrganize, Si as startResolve, kEe as startResourceApply, OEe as startResourceScan, iIe as startTasteRefresh, rAe as statCardClass, ype as statusLabel, sTe as statusLine, Qr as statusText, CM as storeJavLayout, NTe as submitDecision, iL as summaryItems, Eq as tableFeatures, aq as tableMemo, di as tableRows, Spe as taskIssues, wpe as taskSubject, $3 as tasteDate, uIe as tasteDimensions, lIe as tasteHours, Z3 as tasteKey, $Fe as tasteRefetchInterval, eIe as tasteTime, VI as textLang, F0 as tierPlaceholdersHtml, ch as time, Oge as tl, hi as toggleGroup, e6 as topScores, zge as um, Nge as uo, pH as useAction, wZ as useBackgroundJob, iG as useCatalogView, NU as useClientUpdates, bm as useConstant, aL as useEntityNames, dL as useHorizontalScroller, xm as useIsomorphicLayoutEffect, tK as useLibraryTints, It as useMutation, RV as useOverlayScrollbar, Ft as useQuery, ae as useQueryClient, $x as useReducedMotion, eEe as useRunSchedule, QTe as useSaveFollowSchedule, $Y as useSaveSettings, nEe as useSaveThumbnailMode, TJ as useTable, WJ as useTablePreferences, vL as useViewGlide, rTe as victimBytes, kge as vl, zye as wantName, yFe as watchNote, A3 as watchedShare, Ac as wireHorizontalScroller, mEe as withOrganizeJob, Uye as writeJavQuery, bge as z3 };
+var HBe = document.getElementById("appRoot");
+if (!HBe) throw Error("主界面宿主缺失");
+VBe(HBe);
+export { VL as $2ec61d1d4f780267$export$a8a3e93435678ff9, YL as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, lz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, CD 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, uE as $ea3928288112382f$export$439d29a4e110a164, Sz as $f2ff30fde7b014be$export$3ddf2d174ce01153, kz as $fe21c36db05242bb$export$a98f0dcb43a68a25, Az as $fe21c36db05242bb$export$d7b12c4107be0d61, jge as $l, Gj as ACCENTS, zAe as AMANE_BRIDGE_CHECK_URL, j$ as AMANE_BRIDGE_KEY, BAe as AMANE_BRIDGE_REBUILD_URL, sr as ApiError, WU as ArtSlot, x2 as BATCH_DELETE_TEXT, J as Button, yL as ButtonLink, HB as Bx, o$ as CLEANUP_ENTRY, a$ as CLEANUP_ENTRY_GRID, Zf as CLEANUP_HASH_REDIRECTS, Yf as CLEANUP_TOOLS, vn as CLOUD_LOCATIONS, q1 as CLOUD_PROXY_HELP, Kr as COLUMN_SORT, J$ as CONFIGURATION_KEY, BY as CONFIGURATION_URL, VAe as COOKIE_TEXT_LIMIT, A$ as COVER_JOB_KEY, Yi 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, bve as CommandSteps, vTe as DEFAULT_CATEGORY, dr as DEFAULT_SORT, TQ as DIAGNOSTICS_KEY, _Ee 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, Dye as DownloadsPanel, bge as E3, yTe as ENTITY_REVIEW_KINDS, G1 as ENTRY_LINKS_HELP, K1 as ENTRY_LINKS_HINT, PB as Ea, i_e as EmptyFocusButton, cV as EmptyState, PH as ErrorText, Jge as Eu, xve as ExternalLink, Vr as FEEDS_KEY, JY as FEED_SCHEDULE_KEY, r$ as FIELDSET_FOOT, gIe as FLOW_LABEL_X, t6 as FLOW_VIEWBOX, zr as FOLLOW_CHECK_KEY, Rr as FOLLOW_CREDENTIALS_KEY, R8 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, wve as Fact, Cve as FactList, FH as FieldLabel, g$ as Fieldset, h$ as FieldsetTitle, zpe as FilterGlass, fL as FilterGlassRows, dL as FilterIconButton, pL as FilterPill, yve as Footer, zB as Gg, mL as GlassPill, KB as HN, NH as Help, $B as HintText, cIe as IDLE_POLL_MS, sTe as IDLE_REPAIR, sL as IconButton, DQ as IndexSearch, iV as Input, rV as InputBase, v$ as IssueRow, lM as JAV_LAYOUTS, B0 as JAV_RECOMMENDATION_GRID, yX as JUNK_KEY, hW as JavHeader, tTe as KEEP_LABELS, uge as L1, Ur as LAYOUTS, W1 as LIBRARY_FOLDER_HELP, YV as LIBRARY_PROCESSING_KEY, MY as LINKS_KEY, NY as LINK_CHECK_KEY, UTe as LINK_KINDS, PY as LINK_PRUNE_KEY, nr as LOC, QB as Label, x$ as LibraryProcessingCard, TV as LibraryShortcuts, dH as LinkButton, Nge as Lo, wH as LoadingDots, Sge as M6, JTe as MEDIA_PROCESSING_KEY, XY as MEDIA_PROCESSING_URL, dY as MEDIA_REPAIR_KEY, uY as MEDIA_REPAIR_URL, yr as MEDIA_SOURCES_KEY, _s as MEDIA_SOURCE_ICONS, gn as MEDIA_SOURCE_OPTIONS, AV as MENU_ITEM, jV as MENU_ITEM_INTERACTIVE, kV as MENU_POPOVER_SURFACE, Fge as Ma, hH as MenuDialog, mK as MixCard, aV as ModalFrame, xx as MotionConfigContext, XB as NR, _$ as NameLink, sV as Note, e_e as OA, $Y as ORGANIZE_KEY, v2 as ORGANIZE_PARAMETER_HINT, _2 as ORGANIZE_SCOPE_HINT, g2 as ORGANIZE_TEXT, nX as ORPHAN_RECORDS_KEY, b2 as ORPHAN_RECORDS_TEXT, LB as OV, SB as P7, gX as PERFORMER_DELETE_KEY, Iye as PHASES, VY as PICK_FOLDER_URL, c$ as PLAIN_STAT_STRIP, C$ as PLAYLISTS_KEY, rMe as POLICY_COLUMNS, aMe as POLICY_COVER_NOTE, iMe as POLICY_MATRIX, U1 as POLICY_SUMMARY, RJ as Pagination, b$ as PathLine, JB as Pf, II as PillTabList, sAe as PlainStat, EH as Progress, gY as QUALITY_GOALS_KEY, qB as RB, L0 as RELEASE_COLUMN_VISIBILITY_KEY, I0 as RELEASE_COLUMN_WIDTHS_KEY, sW as RELEASE_SORTS, NMe as RELEASE_SORT_COLUMNS, u$ as REPAIR_CARD_TEXT, fY as REPAIR_LIBRARIES_KEY, sX as RESOURCE_APPLY_KEY, oX as RESOURCE_SCAN_KEY, y2 as RESOURCE_SYNC_TEXT, pAe as RESULT_PANEL, mAe as RESULT_SECTION, _Te as REVIEW_CATEGORIES, vX as REVIEW_COUNTS_KEY, bTe as REVIEW_DECISION_LABELS, yY as REVIEW_KEY, bY as REVIEW_LABELS, SY as REVIEW_QUEUES, CY as REVIEW_QUEUE_LABELS, FG as RetryNote, Qge as Rf, ZB as Rk, gve as Rows, LAe as SCRAPING_CHECK_URL, O$ as SCRAPING_COVER_URL, k$ as SCRAPING_KEY, IAe 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, E3 as STATS_KEY, aAe as STAT_STRIP, oAe as STAT_STRIP_SIX, hve as Section, hAe as SectionHeading, vve as SectionSkeleton, eU as SegmentedRadioGroup, zve as SegmentedTabList, OG as Segments, LJ as Select, BU as Select$1, Q$ as SelectField, VU as SelectItem, qJ as SelectionActions, Cj as SelectionDock, JJ as SelectionPopover, jH as SettingsCard, mve as SettingsRow, MH as SettingsSectionLabel, kG as Shuffle, Ove as SiteLabel, oG as SortDirectionIcon, AG as SortKeys, cQ as SourceAvatar, BH as SourceLabel, LH as SourceMark, _ve as Stack, cAe as StatCard, y$ as StatusLabel, Yge as Su, i4 as Switch, GI as TASKS_KEY, ZFe as TASTE_REFRESH_KEY, QFe as TASTE_WINDOWS, YY as THUMBNAIL_JOBS_KEY, xX as TRASH_KEY, vpe as TRIGGER_LABELS, TJ as Table, YJ as TableColumnControls, XJ as TableColumnResizer, QJ as TableSelectionHeader, JQ as TagManager, Sve as TaskCenterLink, DH as TaskProgress, tV as TextField, eV as TextFieldContext, FB as Un, $ge as Uz, tW as WANTS_KEY, y4 as WantMagnets, qg 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, Zge as aB, Ei as addAlias, Ti as addSource, rW as addWant, uS as animate, B as apiGet, V as apiSend, rM as appSettingsStore, IEe as applyConfirmText, hX as applyLeftovers, FEe as applyPlanText, REe as applyText, sM as applyTheme, vy as asNumber, wEe as attachOrphan, ci as authorAvatar, ui as authorGroups, si as authorInitial, oi as authorName, pq as autoResetPageIndex, _o as avatarInner, M3 as bandRows, vEe as baseName, oTe as batchOperate, Pue as beginPlayerGuidePreview, Oj as boundedPreference, rTe as bulkCloudPreferences, fV as busyProps, Xge as cB, EPe as cachedMagnetStates, Vg as calcGeneratorVelocity, DTe as canApprove, vg as cancelFrame, kEe as candidateText, bU as cardClass, SM as cardRatio, NJ as catalogListSkeletonCellHtml, MB as cc, Gi as checkEvidenceGap, Wi as checkFailures, Fi as checkFeeds, qTe as checkLine, Hi as checkReceipt, Ui as checkSummary, UAe as checkText, Ki as checkedText, tK as clickedBlank, Z5 as closeDrawerAfterNav, Jwe as cloudLocations, w0 as cloudProxySkeleton, UC as clsx, Rge as cn, sv as collectMotionValues, Nq as columnVisibilityFeature, bJ as column_getCanSort, gJ as column_getSortFn, TTe as commonReviewSources, QU as composingKey, Af as configurationSection, nIe as configureTasteBrowser, ll as confirmModal, gpe as controlTask, YK as copyInstancePropertiesWithoutMemos, lo as coverUrl, wq as createColumnHelper, AAe as createPlaylist, Xi as credentialDone, b0 as credentialsSkeleton, ITe as currentReviewRow, q as cx, Cge as d6, VB as dZ, NTe as decisionPayload, PTe as decisionReceipt, MTe as defaultChoice, BEe as deletePerformerVideos, MAe as deletePlaylist, O0 as devicesSkeleton, x as diagnosticHeaders, H1 as diagnosticsSkeleton, Gye as discoveryArtwork, cW as discoveryKey, Hye as discoveryScore, u9 as disposeStage, $we as distinctName, Bi as dropSources, qge as du, iTe as duplicateVictims, QI as elapsedText, nn as entityDisplayName, go as entityFaceImg, Pn as entityPath, ti as errorHeadline, lr as errorMessage, z as esc, fq as expandRowModel, hB as f1, bo as facePos, ei as feedIntervalText, P$ as fetchAmaneBridge, vi as fetchCheckJob, Y$ as fetchConfiguration, N$ as fetchCoverJob, _i as fetchCredentials, D$ as fetchCustomSources, _X as fetchDeletePerformers, zEe as fetchDeletePlan, EQ as fetchDiagnostics, lW as fetchDiscoveries, cY as fetchDuplicates, fpe as fetchEarlier, ZTe as fetchFeedSchedule, Mi as fetchFeeds, gi as fetchFollow, XTe as fetchFollowSchedule, CX as fetchJunkSummary, rH as fetchLibraryProcessing, LY as fetchLinkCheck, RY as fetchLinkPrune, IY as fetchLinkStats, YTe as fetchMediaProcessing, pY as fetchMediaRepair, br as fetchMediaSources, eX as fetchOrganize, uEe 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, M$ as fetchSources, D3 as fetchStats, bi as fetchSuggestions, qI as fetchTasks, Q3 as fetchTaste, rIe as fetchTasteJob, QTe as fetchThumbnailJobs, wX as fetchTrashSummary, nW as fetchWants, CTe as filterReviewRows, er as firstGrapheme, jK as flexRender, vIe as flowGraph, yIe as flowLabel, _Fe as fmtCount, Jn as fmtDur, Xn as fmtSize, dpe as foldByKind, Ope as foldRoutine, Li as followFeedByName, Hr as followSuggestKey, Ape as followupDetail, upe as followupTally, _g as frame, bB as g4, Iq as getDefaultPaginationState, xM as gridLayout, li as groupByAuthor, Dpe as groupFollowups, EY as groupReviewRows, NEe as hasChanges, uX as hasResourceRoots, YI as hasResultProblems, lIe as historySpan, gB as i2, sIe as importTasteExport, x0 as indexersSkeleton, Lg as interpolate, aW as invalidateWants, ZI as isActive, $r as isBroken, qr as isLayout, vv as isMotionValue, xY as isReviewCategory, kpe as isRoutine, S0 as javBrowserSkeleton, H0 as javContentSkeleton, mM as javLayout, V0 as javTagSkeleton, GEe as junkBreakdown, Xwe as keepGroup, NAe as keepPlaylist, ke as keepPreviousData, pi as keepSelected, O3 as known, lge as l1, gge as l7, Epe as latestOfKind, $n as leadingGraphemes, kFe as lengthRows, Cr as localTime, po as logoUrl, Ii as lookupFeedActor, xB as m7, BB as mM, Dn as mapLimit, Ai as markItem, N3 as max, DFe as mediumRows, ppe as mergeFinished, P3 as min, VTe as mirrorText, uTe as missingToolText, lY as mixedCloudPreferences, nL as momentText, dS as motion, lv as motionValue, rn as nameFallback, Ue as notifyManager, wge as oe, bEe as organizeOutcome, i2 as overlayHost, Jr as pageSizeOf, fi as pageWindow, hr as paginationRange, zi as patchSource, Np as peachHistory, Np as peachHistory$1, jTe as pendingGenres, yFe as percentText, pEe as pickOrganizeFolder, s$ as plainStatClass, yEe as planSummary, k3 as playedFor, xFe as playedItemUrl, KI as pollInterval, Ys as popCount, kAe as posterUrl, vxe as previewLibraryColor, fEe as previewOrganize, pTe as previewUrl, wpe as problemDestination, QV as processingActive, $I as progressText, zH as providerIcon, KTe as pruneText, fX as purgeCount, TEe as purgeOrphan, UB as pv, Kge as qE, H as queryClient, _B as r2, hIe as radarRows, wFe as radialArc, TFe as radialBarSize, CFe as radialCeiling, SFe as radialSlices, LN as randomId, pIe as rankDetail, mIe as rankShares, j3 as reachedShare, eL as readableErrorHeadline, Uye as recommendationScore, LTe as recordGenre, DEe as recordsText, PAe as recreatePlaylist, DAe as refreshPlaylists, El as relayoutCovers, R0 as releaseColumns, uW as releaseFilters, dW as releaseKey, Vi as reloadFollowManage, BTe as reloadReview, cMe as rememberShape, hEe as rememberTemplates, Di as removeAlias, Pi as removeFeed, wi as removeSource, oIe as removeTasteSource, iW as removeWants, Oi as renameAliasGroup, jAe as renamePlaylist, Se as replaceEqualDeep, jFe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, GK as require_with_selector, zye as resetWants, mr as resolveFollowSort, Wg as resolveStartTime, X_e as restartEffectText, OAe as resumeAssetId, STe as reviewGroupingOptions, TY as reviewQueueData, wY as reviewQueueOf, WEe as reviewSummary, wTe as reviewWindow, kTe as rowEvidence, OY as rowFieldName, Uq as rowPaginationFeature, uJ as rowSelectionFeature, CJ as rowSortingFeature, DY as rowSubject, ATe as rowTags, OTe as rowTitle, pge as s5, ki as saveCredential, PEe as scanLine, rEe as schedulePollInterval, Vye as searchNote, ETe as selectReviewRange, mi as selectionState, Ni as setFeedEnabled, Ci as setSourceEnabled, Pf as settingsPath, zTe as settleReviewRows, Qwe as sharedNamePrefix, Pp as shellNavigate, E8 as showToast, Bn as siteMarkUrl, rq as skipFirstRun, PI as sortCx, Xr as sortLabel, bn as sourceDefaultCost, Ji as sourceIconUrl, LEe as sourceMeta, Bs as spinnerHtml, Fg as spring, uV as spriteGlyph, xi as startCheck, WTe as startLinkCheck, GTe as startLinkPrune, mEe as startOrganize, Si as startResolve, jEe as startResourceApply, AEe as startResourceScan, aIe as startTasteRefresh, iAe as statCardClass, bpe as statusLabel, lTe as statusLine, Qr as statusText, CM as storeJavLayout, FTe as submitDecision, rL as summaryItems, Tq as tableFeatures, iq as tableMemo, di as tableRows, Cpe as taskIssues, Tpe as taskSubject, $3 as tasteDate, dIe as tasteDimensions, uIe as tasteHours, Z3 as tasteKey, eIe as tasteRefetchInterval, tIe as tasteTime, BI as textLang, F0 as tierPlaceholdersHtml, ch as time, kge as tl, hi as toggleGroup, e6 as topScores, Bge as um, Pge as uo, fH as useAction, CZ as useBackgroundJob, rG as useCatalogView, MU as useClientUpdates, bm as useConstant, iL as useEntityNames, uL as useHorizontalScroller, xm as useIsomorphicLayoutEffect, eK as useLibraryTints, It as useMutation, LV as useOverlayScrollbar, Ft as useQuery, ae as useQueryClient, $x as useReducedMotion, nEe as useRunSchedule, eEe as useSaveFollowSchedule, QY as useSaveSettings, iEe as useSaveThumbnailMode, wJ as useTable, UJ as useTablePreferences, _L as useViewGlide, aTe as victimBytes, Age as vl, Bye as wantName, bFe as watchNote, A3 as watchedShare, Ac as wireHorizontalScroller, gEe as withOrganizeJob, Wye as writeJavQuery, xge as z3 };
-//# debugId=35bdebfc-79fb-4902-bad8-ce5d25be7c0a
\ No newline at end of file
+//# debugId=04a9e035-5ba5-4108-a7f2-b90e08a14faf
\ No newline at end of file