Peach: Local-first video metadata scraper and media manager.
fix(avatars): 换头像弹层的合演封面标出人数不框别人的脸,过期索引照实说
longmeidao60773885e29a
diff --git a/frontend/src/react/avatar-picker/avatar-picker-page.tsx b/frontend/src/react/avatar-picker/avatar-picker-page.tsxindex 3a6e8129a..1a907ee37 100644--- a/frontend/src/react/avatar-picker/avatar-picker-page.tsx+++ b/frontend/src/react/avatar-picker/avatar-picker-page.tsx@@ -29,8 +29,8 @@ import { CropFrame } from '../crop/crop-frame';import { queryClient } from '../query';import { busyProps } from '../settings/use-action';import {- avatarChoicesKey, baseLabel, choiceDetail, choiceFrame, choiceImageUrl, fetchAvatarChoices,- fetchCodeCover, framesItself, indexNotReady, pickerNote, sendAvatarPick,+ avatarChoicesKey, baseLabel, choiceDetail, choiceFrame, choiceImageUrl, cropNote,+ fetchAvatarChoices, fetchCodeCover, framesItself, indexNote, pickerNote, sendAvatarPick, sharedCast,type AvatarChoice, type AvatarSubmission,} from './avatar-picker';@@ -127,6 +127,7 @@ function PickerBody({ kind, entityId, name, onPicked, close }: AvatarPickerProps|| (!cropping && cover.error ? errorMessage(cover.error) : '')|| (listing.error ? errorMessage(listing.error) : '');const busy = submit.isPending || cover.isPending;+ const index = cropping ? '' : indexNote(data);return (<>{/* 头部:左边一个方图标槽,右边标题加一句说明,右上角是关闭键。 */}@@ -142,13 +143,9 @@ function PickerBody({ kind, entityId, name, onPicked, close }: AvatarPickerProps{!cropping && choices.length ? <Chip color="soft">{choices.length} 张可选</Chip> : null}</div><p className="text-body-2-regular text-text-secondary">- {cropping- ? `${cropping.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`- : pickerNote(name, data)}+ {cropping ? cropNote(cropping) : pickerNote(name, data)}</p>- {!cropping && indexNotReady(data)- ? <Note tone="neutral">图库索引还没取过,只能从用过的图里选。</Note>- : null}+ {index ? <Note tone="neutral">{index}</Note> : null}{problem ? <Note tone="error">{problem}</Note> : null}</div><IconButton icon={RiCloseLine} size="small" aria-label="关闭" onClick={close} />@@ -189,6 +186,10 @@ function PickerBody({ kind, entityId, name, onPicked, close }: AvatarPickerProps{choice.current? <span className="absolute top-1 left-1"><Chip variant="caption" color="gray">在用</Chip></span>: null}+ {/* 合演封面上最大那张脸多半是领衔的另一位,格子不围着它取景,这里标出人数。 */}+ {sharedCast(choice)+ ? <span className="absolute top-1 right-1"><Chip variant="caption" color="gray">{choice.cast} 人</Chip></span>+ : null}</button>))}</div>diff --git a/frontend/src/react/avatar-picker/avatar-picker.ts b/frontend/src/react/avatar-picker/avatar-picker.tsindex 75e72982c..7d692c616 100644--- a/frontend/src/react/avatar-picker/avatar-picker.ts+++ b/frontend/src/react/avatar-picker/avatar-picker.ts@@ -29,6 +29,9 @@ export interface AvatarChoice {/** 封面上该取景的那一块(脸周围的方图,没检出脸的封套是正封),源图像素。* 只对 `ref` 那一张、`width`×`height` 那个尺寸作数。 */focus: CropBox | null;+ /** 这部作品有几位演员;0 是不知道。多于一位时 `focus` 不围着封面上那张脸,+ * 那多半是领衔的另一位。 */+ cast: number;}export interface AvatarChoices {@@ -108,9 +111,26 @@ export function pickerNote(name: string, data: AvatarChoices | undefined): strin: `${name}:图库里没有这个名字,用下面两种方式换。`;}-/** 图库索引还没取过、这一次也一张图库图都没拿到:能走的只剩手填那两条路。 */-export const indexNotReady = (data: AvatarChoices | undefined): boolean =>- !!data && data.index_stale && !data.choices.some((one) => one.source === 'gfriends');+/** 超过两天按天数说:「124 小时」要人自己去除。 */+const indexAge = (hours: number): string =>+ hours < 48 ? `${Math.max(1, Math.round(hours))} 小时` : `${Math.floor(hours / 24)} 天`;++/** 图库索引没取过或已过期、这一次也一张图库图都没拿到时的那句提示;别的情形是空串。+ * 没取过和过期是两回事:过期的索引照样在查,只是新收的人像查不到。 */+export function indexNote(data: AvatarChoices | undefined): string {+ if (!data || !data.index_stale || data.choices.some((one) => one.source === 'gfriends')) return '';+ return data.index_age_hours === null+ ? '图库索引还没取过,只能从用过的图里选。'+ : `图库索引 ${indexAge(data.index_age_hours)}没更新,新收的人像这里还查不到。`;+}++/** 多人合演的作品:格子上标人数,框选时提醒先找到她自己的脸。 */+export const sharedCast = (choice: AvatarChoice): boolean => choice.cast > 1;++export const cropNote = (choice: AvatarChoice): string =>+ sharedCast(choice)+ ? `${choice.label}:${choice.cast} 人合演,先找到她自己的脸,再拖动方框选一块。`+ : `${choice.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`;const SOURCE_LABELS: Record<string, string> = {gfriends: '图库', history: '用过的', asset: '作品画面', code: '番号封面',@@ -129,4 +149,5 @@ export function baseLabel(ref: string): string {export const choiceDetail = (choice: AvatarChoice): string =>`${SOURCE_LABELS[choice.source] || choice.source} · ${choice.label}`+ (choice.width ? ` · ${choice.width}×${choice.height}` : '')+ + (sharedCast(choice) ? ` · ${choice.cast} 人合演` : '')+ (choice.found_by ? ` · 按「${choice.found_by}」找到` : '');diff --git a/frontend/test/react/avatar-picker.test.tsx b/frontend/test/react/avatar-picker.test.tsxindex 237090edb..4fed95180 100644--- a/frontend/test/react/avatar-picker.test.tsx+++ b/frontend/test/react/avatar-picker.test.tsx@@ -29,6 +29,7 @@ const choice = (over: Partial<AvatarChoice> = {}): AvatarChoice => ({crop: false,bases: [],focus: null,+ cast: 0,...over,});@@ -182,6 +183,26 @@ it('图库索引还没取过时只剩手填那两条路', async () => {expect(document.querySelector('input[type=file]')).not.toBeNull();});+it('过期的图库索引说出多久没更新,不说成还没取过', async () => {+ server(listing([], { matched_names: [], index_age_hours: 124, index_stale: true }));+ await openPicker();+ expect(dialog()?.textContent).toContain('图库索引 5 天没更新');+ expect(dialog()?.textContent).not.toContain('还没取过');+});++it('合演作品的格子标出人数,框选时提醒先找到她自己的脸', async () => {+ server(listing([choice({+ ref: 'asset:11:cover', source: 'asset', label: 'DVAJ-495', crop: true,+ width: 800, height: 540, bases: ['asset:11:cover'], cast: 15,+ })]));+ await openPicker();+ const [cell] = cells();+ expect(cell?.textContent).toContain('15 人');+ expect(cell?.getAttribute('title')).toContain('15 人合演');+ await click(cell);+ expect(dialog()?.textContent).toContain('DVAJ-495:15 人合演,先找到她自己的脸');+});+/** 作品画面那一档:点开是框一块,不是直接装上去。 */const artwork = () => choice({ref: 'asset:11:cover', source: 'asset', label: 'ABW-232', detail: '',diff --git a/src/peach/avatar_picker.py b/src/peach/avatar_picker.pyindex be3de45b9..20b319e05 100644--- a/src/peach/avatar_picker.py+++ b/src/peach/avatar_picker.py@@ -98,6 +98,9 @@ class Choice:#: 封面上该取景的那一块,源图像素、右下开区间(`cover_focus`)。格子围着它取景,#: 框选围着它落默认框;None 时两边都居中。focus: tuple[int, int, int, int] | None = None+ #: 这部作品有几位演员(`cast_sizes`)。多于一位时封面上那张脸多半是领衔的另一位,+ #: `focus` 不围着它取景;0 是不知道(不是她馆藏里的作品)。+ cast: int = 0def as_dict(self) -> dict:focus = (dict(zip(("x0", "y0", "x1", "y1"), self.focus))@@ -106,7 +109,7 @@ class Choice:"width": self.width, "height": self.height,"detail": self.detail, "found_by": self.found_by,"current": self.current, "crop": self.crop,- "bases": list(self.bases), "focus": focus}+ "bases": list(self.bases), "focus": focus, "cast": self.cast}def name_chain(connection: sqlite3.Connection, entity_id: int) -> list[str]:@@ -152,8 +155,33 @@ def installed_digest(avatar_root: Path, kind: str, entity_id: int) -> str:return ""+def cast_sizes(connection: sqlite3.Connection, entity_id: int) -> dict[str, int]:+ """她名下每个番号的作品有几位演员,番号按 `normalise_code_key`。++ 与 `avatar_cover_face.single_performer_works` 同一个口径:只数 `performer` 角色。同一个+ 番号有几条 asset 行时取人数最多的那一行。+ """+ sizes: dict[str, int] = {}+ for code, cast in connection.execute(+ "SELECT a.code,(SELECT count(DISTINCT o.entity_id) FROM asset_entity o"+ " WHERE o.asset_id=a.id AND o.role='performer')"+ " FROM asset a JOIN asset_entity ae ON ae.asset_id=a.id"+ " WHERE ae.entity_id=? AND ae.role='performer' AND coalesce(a.code,'')<>''",+ (int(entity_id),)):+ key = normalise_code_key(code)+ if key:+ sizes[key] = max(sizes.get(key, 0), int(cast or 0))+ return sizes+++def _focus_face(face: dict | None, cast: int) -> dict | None:+ """合演作品的封面不按边车里那张脸取景:DVAJ-495 那张是 15 人里领衔的葵つかさ。"""+ return face if cast <= 1 else None++def _history(providers_root: Path, entity_id: int, current: str,- cover_root: Path | None = None) -> list[Choice]:+ cover_root: Path | None = None,+ casts: dict[str, int] | None = None) -> list[Choice]:"""这个人取过的图。证据文件按 `performer-<id>-<sha>.json` 存,天然是一份历史。这里给的是「换回去不用重下」的那一批:装过又被顶掉的、批处理下过但没装的,@@ -186,19 +214,21 @@ def _history(providers_root: Path, entity_id: int, current: str,label = SOURCE_NAMES.get(provider, provider or "取过的图")width, height = int(record.get("width") or 0), int(record.get("height") or 0)whole = provider in WHOLE_COVER_PROVIDERS- focus = None+ focus, cast = None, 0if whole:key = normalise_code_key(record.get("external_id"))label = f"{label} {key}".strip()+ cast = (casts or {}).get(key, 0)cover = Path(cover_root) / f"{key}.jpg" if cover_root is not None and key else Noneif width and height:- focus = cover_focus(key, cover, read_sidecar(cover) if cover else None,+ focus = cover_focus(key, cover,+ _focus_face(read_sidecar(cover) if cover else None, cast),width, height)out.append(Choice(ref=f"sha256:{digest}", source="history", label=label,width=width, height=height,detail=str(record.get("upstream_url") or ""),- current=digest == current, crop=whole, focus=focus))+ current=digest == current, crop=whole, focus=focus, cast=cast))return out@@ -218,7 +248,11 @@ def asset_artwork(connection: sqlite3.Connection, cover_root: Path,**封面像素多的排前面**,只有九宫格的排在所有封面之后。同一个人的封面有 3360×1890的官方原图,也有 276×154 的缩略图;框出来的头像清不清楚只看底图有多少像素。格上的宽高就是封面的,页面照常把它标出来。++ **合演作品标出人数,不按封面上那张脸取景**(`_focus_face`):封面人脸边车记的是最大那+ 张脸,合集里那多半是领衔的另一位。格子照列,她自己的脸常常在九宫格里。"""+ casts = cast_sizes(connection, entity_id)rows = connection.execute("SELECT a.id,a.code,COALESCE(NULLIF(a.catalog_title,''),a.name),a.snapshot_path ""FROM asset_entity ae JOIN asset a ON a.id=ae.asset_id "@@ -243,13 +277,14 @@ def asset_artwork(connection: sqlite3.Connection, cover_root: Path,if has_sheet:bases += [f"asset:{int(asset_id)}:cell{cell}" for cell in range(SHEET_CELLS)]width, height = size or (0, 0)+ cast = casts.get(key, 0)found.append((width * height, order, Choice(ref=bases[0], source="asset",label=str(code or title or f"作品 {asset_id}"),width=width, height=height,detail=str(title or ""), crop=True, bases=tuple(bases),- focus=cover_focus(key, cover, read_sidecar(cover), width, height)- if size else None)))+ focus=cover_focus(key, cover, _focus_face(read_sidecar(cover), cast), width, height)+ if size else None, cast=cast)))found.sort(key=lambda item: (-item[0], item[1]))return [choice for _area, _order, choice in found[:MAX_ASSET_CHOICES]]@@ -357,7 +392,8 @@ def choices(connection: sqlite3.Connection, providers_root: Path,found_by=match.finder.get((category, filename), "") if tell_finder else "",width=int(shot.get("width") or 0), height=int(shot.get("height") or 0),current=bool(digest) and digest == current))- for choice in _history(providers_root, entity_id, current, cover_root):+ for choice in _history(providers_root, entity_id, current, cover_root,+ cast_sizes(connection, entity_id)):if choice.ref.split(":", 1)[1] not in taken:items.append(choice)# 在用的那张排第一。它是这一屏唯一的参照物——别的候选好不好,是跟它比出来的;diff --git a/tests/test_avatar_picker.py b/tests/test_avatar_picker.pyindex 7c7fdf20d..5f56815e1 100644--- a/tests/test_avatar_picker.py+++ b/tests/test_avatar_picker.py@@ -512,6 +512,42 @@ class CoverFocusTests(AssetArtworkTests):self.assertEqual(self.whole_cover_history()["focus"],{"x0": 217, "y0": 0, "x1": 400, "y1": 260})+ def co_star(self, asset_id: int) -> None:+ """同一部作品里再登记一位演员。"""+ with self.connection:+ self.connection.execute(+ "INSERT OR IGNORE INTO entity(id,kind,canonical_name,normalized_name,"+ "created_at,updated_at) VALUES(9001,'performer','共演','共演','t','t')")+ self.connection.execute(+ "INSERT INTO asset_entity(asset_id,entity_id,role,source) "+ "VALUES(?,9001,'performer','r18:performer')", (asset_id,))++ def test_a_shared_cover_says_how_many_are_on_it_and_skips_the_face(self):+ """合演封面上最大那张脸多半是领衔的另一位:只标人数,取景退回正封。"""+ self.add_asset(11, "ABW-232")+ self.co_star(11)+ sidecar_path(self.cover).write_text(json.dumps(face_record(400, 260)), "utf-8")+ listed = avatar_picker.choices(self.connection, self.providers, self.avatars,+ "performer", 7792, cover_root=self.covers)+ choice = next(one for one in listed["choices"] if one["source"] == "asset")+ self.assertEqual(choice["cast"], 2)+ self.assertEqual(choice["focus"], {"x0": 217, "y0": 0, "x1": 400, "y1": 260})++ def test_her_own_work_counts_one(self):+ self.add_asset(11, "ABW-232")+ listed = avatar_picker.choices(self.connection, self.providers, self.avatars,+ "performer", 7792, cover_root=self.covers)+ self.assertEqual(next(one for one in listed["choices"]+ if one["source"] == "asset")["cast"], 1)++ def test_a_whole_shared_cover_kept_by_the_batch_skips_the_face_too(self):+ self.add_asset(11, "ABW-232")+ self.co_star(11)+ sidecar_path(self.cover).write_text(json.dumps(face_record(400, 260)), "utf-8")+ choice = self.whole_cover_history()+ self.assertEqual((choice["cast"], choice["focus"]),+ (2, {"x0": 217, "y0": 0, "x1": 400, "y1": 260}))+class CodeCoverTests(PickerFixture):"""按番号取一张封面来框:本机有就不出网,取过一次就不再取。"""diff --git a/web/dist/peach-react.js b/web/dist/peach-react.jsindex 3cd1bcbb2..39dd4909e 100644--- a/web/dist/peach-react.js+++ b/web/dist/peach-react.js@@ -25719,21 +25719,25 @@ function Rb(e, t) {let n = t.matched_names.filter((t) => t !== e);return n.length ? `${e}:图库里按「${n.join("」「")}」找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:图库里没有这个名字,用下面两种方式换。`;}-var zb = (e) => !!e && e.index_stale && !e.choices.some((e) => e.source === "gfriends"), Bb = {+var zb = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;+function Bb(e) {+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${zb(e.index_age_hours)}没更新,新收的人像这里还查不到。`;+}+var Vb = (e) => e.cast > 1, Hb = (e) => Vb(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, Ub = {gfriends: "图库",history: "用过的",asset: "作品画面",code: "番号封面"};-function Vb(e) {+function Wb(e) {if (e.startsWith("cover:")) return "封面";let t = e.split(":")[2] || "";if (t === "cover") return "封面";let n = Number(t.replace("cell", ""));return Number.isFinite(n) ? `第 ${n + 1} 格` : t;}-var Hb = (e) => `${Bb[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Ub = 8, Wb = 3 / 4;-function Gb({ kind: e, entityId: t, name: n, onPicked: r }) {+var Gb = (e) => `${Ub[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (Vb(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Kb = 8, qb = 3 / 4;+function Jb({ kind: e, entityId: t, name: n, onPicked: r }) {let [i, a] = (0, C.useState)(!1);return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)("span", {className: "absolute right-1 bottom-1 z-10",@@ -25758,7 +25762,7 @@ function Gb({ kind: e, entityId: t, name: n, onPicked: r }) {children: /* @__PURE__ */ (0, w.jsx)(lv, {"aria-label": "更换头像",className: "flex min-h-0 flex-col outline-none",- children: /* @__PURE__ */ (0, w.jsx)(Kb, {+ children: /* @__PURE__ */ (0, w.jsx)(Yb, {kind: e,entityId: t,name: n,@@ -25769,7 +25773,7 @@ function Gb({ kind: e, entityId: t, name: n, onPicked: r }) {})})] });}-function Kb({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {+function Yb({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {let a = (0, C.useRef)(null), o = Sb(), [s, c] = (0, C.useState)(""), [l, u] = (0, C.useState)(""), [d, f] = (0, C.useState)(""), [p, m] = (0, C.useState)(null), h = Ab(e, t), g = (0, C.useRef)(!1), _ = pt({queryKey: h,queryFn: ({ signal: n }) => Nb(e, t, n),@@ -25791,7 +25795,7 @@ function Kb({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {let t = e.currentTarget, n = t.files?.[0];t.value = "", f(""), n && v.mutate({ file: n });}- let x = _.data, S = x?.choices ?? [], T = d || (v.error ? q(v.error) : "") || (!p && y.error ? q(y.error) : "") || (_.error ? q(_.error) : ""), E = v.isPending || y.isPending;+ let x = _.data, S = x?.choices ?? [], T = d || (v.error ? q(v.error) : "") || (!p && y.error ? q(y.error) : "") || (_.error ? q(_.error) : ""), E = v.isPending || y.isPending, D = p ? "" : Bb(x);return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsxs)("div", {className: "flex shrink-0 items-start gap-4 p-5",children: [@@ -25816,11 +25820,11 @@ function Kb({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {}),/* @__PURE__ */ (0, w.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: p ? `${p.label}:拖动方框选一块,滚轮或角上那枚方块改大小。` : Rb(n, x)+ children: p ? Hb(p) : Rb(n, x)}),- !p && zb(x) ? /* @__PURE__ */ (0, w.jsx)(Y, {+ D ? /* @__PURE__ */ (0, w.jsx)(Y, {tone: "neutral",- children: "图库索引还没取过,只能从用过的图里选。"+ children: D}) : null,T ? /* @__PURE__ */ (0, w.jsx)(Y, {tone: "error",@@ -25835,7 +25839,7 @@ function Kb({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {onClick: i})]- }), p ? /* @__PURE__ */ (0, w.jsx)(Jb, {+ }), p ? /* @__PURE__ */ (0, w.jsx)(Zb, {kind: e,entityId: t,choice: p,@@ -25858,7 +25862,7 @@ function Kb({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {"aria-busy": _.isPending || void 0,"data-skeleton": _.isPending ? "avatar-choices" : void 0,className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",- children: _.isPending ? Array.from({ length: Ub }, (e, t) => /* @__PURE__ */ (0, w.jsxs)("span", {+ children: _.isPending ? Array.from({ length: Kb }, (e, t) => /* @__PURE__ */ (0, w.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",@@ -25871,14 +25875,14 @@ function Kb({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {role: "option","data-avatar-choice": !0,"aria-selected": n.current,- title: Hb(n),+ title: Gb(n),...X(E),onClick: () => {E || (n.crop ? m(n) : v.mutate({ ref: n.ref }));},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, w.jsx)(qb, {+ /* @__PURE__ */ (0, w.jsx)(Xb, {src: Mb(e, t, n.ref),choice: n}),@@ -25893,6 +25897,14 @@ function Kb({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {color: "gray",children: "在用"})+ }) : null,+ Vb(n) ? /* @__PURE__ */ (0, w.jsx)("span", {+ className: "absolute top-1 right-1",+ children: /* @__PURE__ */ (0, w.jsxs)(Ym, {+ variant: "caption",+ color: "gray",+ children: [n.cast, " 人"]+ })}) : null]}, n.ref))@@ -25962,7 +25974,7 @@ function Kb({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {})]})] })] });}-function qb({ src: e, choice: t }) {+function Xb({ src: e, choice: t }) {let n = (0, C.useRef)(null), [r, i] = (0, C.useState)(!1);(0, C.useEffect)(() => {n.current?.complete && n.current.naturalWidth && i(!0);@@ -25970,7 +25982,7 @@ function qb({ src: e, choice: t }) {let a = {width: t.width,height: t.height- }, o = Ib(t) ? bb(Fb(t, a, Wb), a) : null, s = r ? !0 : void 0;+ }, o = Ib(t) ? bb(Fb(t, a, qb), a) : null, s = r ? !0 : void 0;return /* @__PURE__ */ (0, w.jsxs)("span", {className: "relative block w-full aspect-avatar-choice overflow-hidden",children: [/* @__PURE__ */ (0, w.jsx)("img", {@@ -25995,7 +26007,7 @@ function qb({ src: e, choice: t }) {})]});}-function Jb({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {+function Zb({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, C.useState)(o[0]), [l, u] = (0, C.useState)(null), [d, f] = (0, C.useState)(null), p = Mb(e, t, s), m = Sb();function h(e) {c(e), u(null), f(null);@@ -26025,7 +26037,7 @@ function Jb({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {"data-crop-base": !0,onClick: () => h(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: Vb(e)+ children: Wb(e)}, e))}) : null]}), /* @__PURE__ */ (0, w.jsxs)("div", {@@ -26059,7 +26071,7 @@ function Jb({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {}//#endregion//#region src/react/boardui/components/base/switch/switch.tsx-var Yb = qm({+var Qb = qm({sm: {track: "h-4 w-7",trackRadius: {@@ -26121,8 +26133,8 @@ var Yb = qm({}}});-function Xb({ state: e, size: t = "md", shape: n = "pill" }) {- let r = Yb[t];+function $b({ state: e, size: t = "md", shape: n = "pill" }) {+ let r = Qb[t];return /* @__PURE__ */ (0, w.jsx)("span", {"aria-hidden": !0,className: G("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? G("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"),@@ -26132,12 +26144,12 @@ function Xb({ state: e, size: t = "md", shape: n = "pill" }) {})});}-function Zb({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {+function ex({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {return /* @__PURE__ */ (0, w.jsx)(Hv, {ref: i,...a,className: (t) => G("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, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(Xb, {+ children: (e) => /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)($b, {state: e,size: n,shape: r@@ -26149,23 +26161,23 @@ function Zb({ className: e, children: t, size: n = "md", shape: r = "pill", ref:}//#endregion//#region src/react/components/overlay-host.ts-function Qb(e) {+function tx(e) {let t = e.querySelector(":scope > [data-react-overlays]");if (t) return t;let n = e.ownerDocument.createElement("div");return n.className = "peach-react", n.dataset.reactOverlays = "", e.append(n), n;}-function $b(e) {+function nx(e) {let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");- return Qb(n ?? t.body);+ return tx(n ?? t.body);}//#endregion//#region src/react/cover-crop/cover-crop.ts-var ex = "/api/cover-crop", tx = (e, t) => J(ex, {+var rx = "/api/cover-crop", ix = (e, t) => J(rx, {code: e,box: t-}), nx = .704;-function rx({ className: e }) {+}), ax = .704;+function ox({ className: e }) {return /* @__PURE__ */ (0, w.jsx)("svg", {"aria-hidden": !0,viewBox: "0 0 24 24",@@ -26178,7 +26190,7 @@ function rx({ className: e }) {children: /* @__PURE__ */ (0, w.jsx)("use", { href: "#i-crop" })});}-function ix({ code: e, coverUrl: t, box: n, onSaved: r }) {+function sx({ code: e, coverUrl: t, box: n, onSaved: r }) {let [i, a] = (0, C.useState)(!1), o = (0, C.useRef)(null);return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)("button", {ref: o,@@ -26189,9 +26201,9 @@ function ix({ code: e, coverUrl: t, box: n, onSaved: r }) {title: "裁剪封面:框出正封那一块",onClick: () => a(!0),className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",- children: /* @__PURE__ */ (0, w.jsx)(rx, { className: "size-3.75" })+ children: /* @__PURE__ */ (0, w.jsx)(ox, { className: "size-3.75" })}), /* @__PURE__ */ (0, w.jsx)(Sc, {- getContainer: () => $b(o.current),+ getContainer: () => nx(o.current),children: /* @__PURE__ */ (0, w.jsx)(_v, {isOpen: i,onOpenChange: a,@@ -26202,7 +26214,7 @@ function ix({ code: e, coverUrl: t, box: n, onSaved: r }) {children: /* @__PURE__ */ (0, w.jsx)(lv, {"aria-label": "裁剪封面",className: "flex min-h-0 flex-col outline-none",- children: /* @__PURE__ */ (0, w.jsx)(ax, {+ children: /* @__PURE__ */ (0, w.jsx)(cx, {code: e,coverUrl: t,box: n,@@ -26214,9 +26226,9 @@ function ix({ code: e, coverUrl: t, box: n, onSaved: r }) {})})] });}-function ax({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {+function cx({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {let [a, o] = (0, C.useState)(null), [s, c] = (0, C.useState)(null), [l, u] = (0, C.useState)(!0), d = Sb(), f = mt({- mutationFn: (t) => tx(e, t),+ mutationFn: (t) => ix(e, t),onSuccess: () => {i(), r();}@@ -26228,7 +26240,7 @@ function ax({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {y0: n.y0,x1: n.x1,y1: n.y1- } : fb(e, nx);+ } : fb(e, ax);c(mb(t, e, null));}let m = f.isPending;@@ -26239,7 +26251,7 @@ function ax({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {/* @__PURE__ */ (0, w.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",- children: /* @__PURE__ */ (0, w.jsx)(rx, { className: "size-6" })+ children: /* @__PURE__ */ (0, w.jsx)(ox, { className: "size-6" })}),/* @__PURE__ */ (0, w.jsxs)("div", {className: "flex min-w-0 flex-1 flex-col gap-2",@@ -26272,7 +26284,7 @@ function ax({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {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, w.jsx)(Tb, {src: t,- aspect: l ? nx : null,+ aspect: l ? ax : null,box: s,size: a,label: `${e} 的正封取景框`,@@ -26284,10 +26296,10 @@ function ax({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {}),/* @__PURE__ */ (0, w.jsxs)("div", {className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",- children: [/* @__PURE__ */ (0, w.jsx)(Zb, {+ children: [/* @__PURE__ */ (0, w.jsx)(ex, {isSelected: l,onChange: (e) => {- u(e), e && s && a && c(mb(s, a, nx));+ u(e), e && s && a && c(mb(s, a, ax));},children: /* @__PURE__ */ (0, w.jsx)("span", {className: "text-body-2-regular text-text-secondary",@@ -26316,7 +26328,7 @@ function ax({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {}//#endregion//#region src/follow-sort.ts-var ox = [+var lx = [["checked", "检查时间"],["added", "添加时间"],["name", "创作者名称"],@@ -26324,7 +26336,7 @@ var ox = [["source", "来源名称"],["provider", "站点"],["status", "状态"]-], sx = "checked", cx = {+], ux = "checked", dx = {checked: "desc",added: "desc",name: "asc",@@ -26332,15 +26344,15 @@ var ox = [source: "asc",provider: "asc",status: "asc"-}, lx = (e) => ox.some(([t]) => t === e);-function ux(e, t) {- let n = lx(e) ? e : sx;+}, fx = (e) => lx.some(([t]) => t === e);+function px(e, t) {+ let n = fx(e) ? e : ux;return {sort: n,- dir: t === "asc" || t === "desc" ? t : cx[n]+ dir: t === "asc" || t === "desc" ? t : dx[n]};}-function dx(e, t, n = 1) {+function mx(e, t, n = 1) {let r = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);if (n * 2 + 5 >= t) return r(1, t);let i = Math.max(e - n, 1), a = Math.min(e + n, t), o = i > 2, s = a < t - 2;@@ -26360,15 +26372,15 @@ function dx(e, t, n = 1) {t];}-function fx(e, t) {+function hx(e, t) {return Math.max(1, Math.ceil(e / t));}-function px(e, t) {+function gx(e, t) {return Math.min(Math.max(1, Math.floor(e) || 1), t);}//#endregion//#region src/react/time.ts-function mx(e) {+function _x(e) {if (!e) return "";let t = /[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`, n = new Date(t);if (Number.isNaN(n.getTime())) return String(e).replace("T", " ").slice(0, 16);@@ -26377,22 +26389,22 @@ function mx(e) {}//#endregion//#region src/react/follow-manage/follow-manage.ts-var hx = "/api/follow", gx = "/api/follow/credentials", _x = "/api/follow/check", vx = "/api/follow/source", yx = "/api/follow/resolve", bx = "/api/follow/suggest", xx = "/api/follow/author-alias", Sx = "/api/follow/credential", Cx = "/api/follow/status", wx = "/api/feeds", Tx = "/api/feeds/source", Ex = "/api/feeds/check", Dx = ["follow-manage"], Ox = ["follow-manage", "credentials"], kx = ["follow-manage", "check"], Ax = ["follow-manage", "resolve"], jx = ["follow-manage", "feeds"], Mx = (e) => [+var vx = "/api/follow", yx = "/api/follow/credentials", bx = "/api/follow/check", xx = "/api/follow/source", Sx = "/api/follow/resolve", Cx = "/api/follow/suggest", wx = "/api/follow/author-alias", Tx = "/api/follow/credential", Ex = "/api/follow/status", Dx = "/api/feeds", Ox = "/api/feeds/source", kx = "/api/feeds/check", Ax = ["follow-manage"], jx = ["follow-manage", "credentials"], Mx = ["follow-manage", "check"], Nx = ["follow-manage", "resolve"], Px = ["follow-manage", "feeds"], Fx = (e) => ["follow-manage","suggest",e-], Nx = [["default", "默认视图"], ["table", "表格视图"]], Px = [+], Ix = [["default", "默认视图"], ["table", "表格视图"]], Lx = [10,20,50,100-], Fx = Object.fromEntries(ox), Ix = {+], Rx = Object.fromEntries(lx), zx = {author: "name",source: "source",provider: "provider",status: "status",checked: "checked"-}, Lx = (e) => Nx.some(([t]) => t === e), Rx = (e) => Px.includes(Number(e)) ? Number(e) : 20, zx = {+}, Bx = (e) => Ix.some(([t]) => t === e), Vx = (e) => Lx.includes(Number(e)) ? Number(e) : 20, Hx = {checked: ["从近到远", "从远到近"],added: ["从近到远", "从远到近"],name: ["倒序", "正序"],@@ -26400,25 +26412,25 @@ var hx = "/api/follow", gx = "/api/follow/credentials", _x = "/api/follow/check"source: ["倒序", "正序"],provider: ["倒序", "正序"],status: ["倒序", "正序"]-}, Bx = (e, t) => `按${Fx[e]}${zx[e][t === "asc" ? 0 : 1]}排序`;-function Vx(e) {+}, Ux = (e, t) => `按${Rx[e]}${Hx[e][t === "asc" ? 0 : 1]}排序`;+function Wx(e) {let t = e.last_status;return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;}-function Hx(e) {+function Gx(e) {return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";}-var Ux = (e) => e.last_status === "error" || e.last_status === "unauthorized", Wx = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), Gx = {- source: Wx,- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || Wx(e, t),- status: (e, t) => Vx(e) - Vx(t) || Wx(e, t)-}, Kx = (e) => Date.parse(e || "") || 0, qx = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();-function Jx(e, t = []) {+var Kx = (e) => e.last_status === "error" || e.last_status === "unauthorized", qx = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), Jx = {+ source: qx,+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || qx(e, t),+ status: (e, t) => Wx(e) - Wx(t) || qx(e, t)+}, Yx = (e) => Date.parse(e || "") || 0, Xx = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();+function Zx(e, t = []) {if (!e.length) return "";- let n = (e) => String(e.author_name || "").trim() || qx(e.label), r = e.find((e) => e.entity_name);+ let n = (e) => String(e.author_name || "").trim() || Xx(e.label), r = e.find((e) => e.entity_name);if (r) return r.entity_name;let i = t.find((t) => `name:${t.canonical_key}` === e[0]?.author_key);- if (i) return qx(i.canonical_name);+ if (i) return Xx(i.canonical_name);let a = e.find((e) => e.official_avatar_url);if (a && n(a)) return n(a);let o = e.map(n).filter(Boolean);@@ -26426,18 +26438,18 @@ function Jx(e, t = []) {let s = (e) => (e.match(/[A-Z]/g) || []).length;return o.reduce((e, t) => s(t) > s(e) ? t : e, o[0]);}-function Yx(e) {+function Qx(e) {let t = e.trim().match(/[A-Za-z0-9]/);return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();}-function Xx(e) {+function $x(e) {let t = e.find((e) => e.official_avatar_url), n = e.find((e) => e.avatar_url), r = t?.official_avatar_url || n?.avatar_url || "";return {src: r,fallback: t && n && n.avatar_url !== r && n.avatar_url || ""};}-function Zx(e) {+function eS(e) {let t = [], n = /* @__PURE__ */ new Map();for (let r of e) {let e = r.author_key || `source:${r.id}`;@@ -26445,32 +26457,32 @@ function Zx(e) {}return t.map((e) => n.get(e));}-function Qx(e, t, n, r = []) {- let i = Zx(e), a = n === cx[t] ? 1 : -1, o = (e) => Jx(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = Gx[t];+function tS(e, t, n, r = []) {+ let i = eS(e), a = n === dx[t] ? 1 : -1, o = (e) => Zx(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = Jx[t];if (c) {for (let e of i) e.sort((e, t) => a * c(e, t));return i.sort((e, t) => a * c(e[0], t[0]) || s(e, t));}- let l = (e) => Math.max(...e.map((e) => Kx(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => Kx(e.created_at)));+ let l = (e) => Math.max(...e.map((e) => Yx(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => Yx(e.created_at)));return i.sort((e, n) => t === "name" ? a * s(e, n) : t === "sources" ? a * (n.length - e.length) || s(e, n) : t === "added" ? a * (u(n) - u(e)) || s(e, n) : a * (l(n) - l(e)) || s(e, n));}-function $x(e, t, n, r = []) {+function nS(e, t, n, r = []) {let i = e.flatMap((e) => {- let t = Jx(e, r);+ let t = Zx(e, r);return e.map((n) => ({source: n,group: e,author: t}));- }), a = Gx[t];+ }), a = Jx[t];if (a) {- let e = n === cx[t] ? 1 : -1;+ let e = n === dx[t] ? 1 : -1;i.sort((t, n) => e * a(t.source, n.source));}return i;}-function eS(e, t, n) {- let r = fx(e, t), i = px(n, r), a = (i - 1) * t;+function rS(e, t, n) {+ let r = hx(e, t), i = gx(n, r), a = (i - 1) * t;return {page: i,pages: r,@@ -26479,87 +26491,87 @@ function eS(e, t, n) {end: Math.min(a + t, e)};}-function tS(e, t) {+function iS(e, t) {let n = new Set(t.map((e) => e.id));return new Set([...e].filter((e) => n.has(e)));}-function nS(e, t) {+function aS(e, t) {let n = t.filter((t) => e.has(t)).length;return {all: t.length > 0 && n === t.length,some: n > 0 && n < t.length};}-function rS(e, t, n) {+function oS(e, t, n) {let r = new Set(e);for (let e of t) n ? r.add(e) : r.delete(e);return r;}-var iS = (e) => eh(`${hx}?limit=1`, e), aS = (e) => eh(gx, e), oS = (e) => eh(_x, e), sS = (e) => eh(yx, e), cS = (e, t) => eh(`${bx}?q=${encodeURIComponent(e)}`, t), lS = (e) => J(_x, {+var sS = (e) => eh(`${vx}?limit=1`, e), cS = (e) => eh(yx, e), lS = (e) => eh(bx, e), uS = (e) => eh(Sx, e), dS = (e, t) => eh(`${Cx}?q=${encodeURIComponent(e)}`, t), fS = (e) => J(bx, {...e?.length ? { sources: e } : {},background: !0-}), uS = (e) => J(yx, {+}), pS = (e) => J(Sx, {lines: e,background: !0-}), dS = (e, t) => J(vx, {+}), mS = (e, t) => J(xx, {action: "enabled",id: e,enabled: t-}), fS = (e) => J(vx, {+}), hS = (e) => J(xx, {action: "remove",id: e-}), pS = (e) => J(vx, {+}), gS = (e) => J(xx, {action: "add",url: e.url,label: e.label,author: e.author || "",aliases: e.aliases || [],defer_check: !0-}), mS = (e, t) => J(xx, {+}), _S = (e, t) => J(wx, {action: "add",canonical: e,alias: t-}), hS = (e) => J(xx, {+}), vS = (e) => J(wx, {action: "remove",alias: e-}), gS = (e, t) => J(Sx, {+}), yS = (e, t) => J(Tx, {provider: e,values: t-}), _S = (e, t) => J(Cx, {+}), bS = (e, t) => J(Ex, {item: e,to: t-}), vS = () => eh(`${hx}?status=new&limit=1000`);-async function yS(e) {- let t = await eh(wx, e);+}), xS = () => eh(`${vx}?status=new&limit=1000`);+async function SS(e) {+ let t = await eh(Dx, e);if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");return t;}-var bS = (e, t, n) => J(Tx, {+var CS = (e, t, n) => J(Ox, {action: "enabled",id: e,enabled: t-}, "POST", n), xS = (e, t) => J(Tx, {+}, "POST", n), wS = (e, t) => J(Ox, {action: "remove",id: e-}, "POST", t), SS = (e) => J(Ex, { all: !0 }, "POST", e);-async function CS(e, t = "") {+}, "POST", t), TS = (e) => J(kx, { all: !0 }, "POST", e);+async function ES(e, t = "") {await Promise.all([hh.fetchQuery({- queryKey: Dx,- queryFn: () => iS(e)+ queryKey: Ax,+ queryFn: () => sS(e)}),hh.fetchQuery({- queryKey: Ox,- queryFn: () => aS(e)+ queryKey: jx,+ queryFn: () => cS(e)}),t === "feeds" ? hh.fetchQuery({- queryKey: jx,- queryFn: () => yS(e)+ queryKey: Px,+ queryFn: () => SS(e)}) : null]);}-function wS(e, t) {- hh.setQueryData(Dx, (n) => n && {+function DS(e, t) {+ hh.setQueryData(Ax, (n) => n && {...n,sources: n.sources.map((n) => n.id === e ? {...n,@@ -26567,24 +26579,24 @@ function wS(e, t) {} : n)});}-function TS(e) {+function OS(e) {let t = new Set(e);- hh.setQueryData(Dx, (e) => e && {+ hh.setQueryData(Ax, (e) => e && {...e,sources: e.sources.filter((e) => !t.has(e.id))});}-var ES = () => hh.invalidateQueries({- queryKey: Dx,+var kS = () => hh.invalidateQueries({+ queryKey: Ax,exact: !0});-function DS(e) {+function AS(e) {let t = e.results || [], n = (e) => t.reduce((t, n) => t + (e(n) || 0), 0), r = n((e) => e.added), i = n((e) => e.updated), a = n((e) => e.skipped_compilations), o = n((e) => e.skipped) - a, s = n((e) => e.history_skipped), c = n((e) => e.probed), l = t.filter((e) => e.ok && !e.added && !e.updated).length, u = t.filter((e) => !e.ok).length, d = [];r && d.push(`新增 ${r} 条`), i && d.push(`更新 ${i} 条`), o && d.push(`跳过 ${o} 条无资源`), a && d.push(`排除 ${a} 个超大合集`), s && d.push(`跳过 ${s} 条超出首次采集范围的历史内容`), c && d.push(`回查 ${c} 条`), l && d.push(`${l} 个来源没有更新`), d.length || d.push("没有任何更新");let f = t.filter((e) => e.exhausted).length;return f && d.push(`${f} 个没有更多内容`), u && d.push(`${u} 个失败`), `检查了 ${t.length} 个来源:${d.join(" · ")}`;}-var OS = (e) => (e?.results || []).filter((e) => !e.ok), kS = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", AS = (e) => e.last_checked_at ? mx(e.last_checked_at) : "未检查", jS = /* @__PURE__ */ new Set([+var jS = (e) => (e?.results || []).filter((e) => !e.ok), MS = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", NS = (e) => e.last_checked_at ? _x(e.last_checked_at) : "未检查", PS = /* @__PURE__ */ new Set(["fanbox","patreon","subscribestar",@@ -26597,36 +26609,36 @@ var OS = (e) => (e?.results || []).filter((e) => !e.ok), kS = (e) => (e?.results"gofile","f95zone","simpcity"-]), MS = (e) => jS.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", NS = {+]), FS = (e) => PS.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", IS = {required: "需要",optional: "可选",none: "不需要",blocked: "接不进来"-}, PS = (e) => !!e.present && !e.missing.length, FS = "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", IS = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 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-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", LS = [+}, LS = (e) => !!e.present && !e.missing.length, RS = "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", zS = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 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-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", BS = ["text-chart-6","text-chart-5","text-chart-7","text-chart-8"-], RS = [+], VS = ["bg-chart-6/10","bg-chart-5/10","bg-chart-7/10","bg-chart-8/10"];-function zS(e = {}) {+function HS(e = {}) {return `${ch({...e,padding: "none"})} flex flex-col overflow-hidden pt-4 text-left`;}-var BS = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4";-function VS({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {+var US = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4";+function WS({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.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, w.jsx)("i", {"aria-hidden": !0,- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${LS[n % 4]} ${RS[n % 4]}`,+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${BS[n % 4]} ${VS[n % 4]}`,children: /* @__PURE__ */ (0, w.jsx)(t, {"aria-hidden": !0,className: "size-4"@@ -26648,7 +26660,7 @@ function VS({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {}//#endregion//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx-var HS = {+var GS = {md: {box: "size-4",glyph: "size-4",@@ -26662,8 +26674,8 @@ var HS = {gap: "gap-1.5"}};-function US({ state: e, size: t = "md" }) {- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = HS[t], c = n || r, l = o && !a;+function KS({ state: e, size: t = "md" }) {+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = GS[t], c = n || r, l = o && !a;return /* @__PURE__ */ (0, w.jsx)("span", {"aria-hidden": !0,className: G("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? G("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : G("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"),@@ -26690,13 +26702,13 @@ function US({ state: e, size: t = "md" }) {}//#endregion//#region src/react/boardui/components/base/checkbox/checkbox.tsx-function WS({ className: e, children: t, size: n = "md", ref: r, ...i }) {- let a = HS[n];+function qS({ className: e, children: t, size: n = "md", ref: r, ...i }) {+ let a = GS[n];return /* @__PURE__ */ (0, w.jsx)(Og, {ref: r,...i,className: (t) => G("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, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(US, {+ children: (e) => /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(KS, {state: e,size: n}), t != null && /* @__PURE__ */ (0, w.jsx)("span", {@@ -26707,7 +26719,7 @@ function WS({ className: e, children: t, size: n = "md", ref: r, ...i }) {}//#endregion//#region src/react/boardui/components/base/dropdown/menu-styles.ts-var GS = [+var JS = ["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",@@ -26715,9 +26727,9 @@ var GS = ["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"-].join(" "), KS = "w-[266px]", qS = "flex w-full flex-col gap-1 outline-none", JS = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), YS = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background", XS = 2e3, ZS = (e) => e, QS = (e, t) => t;-function $S(e) {- let { queryKey: t, jobOf: n = ZS, withJob: r = QS, idlePollMs: i } = e, [a, o] = (0, C.useState)(!1), [s, c] = (0, C.useState)(null), l = (0, C.useRef)(e);+].join(" "), YS = "w-[266px]", XS = "flex w-full flex-col gap-1 outline-none", ZS = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), QS = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background", $S = 2e3, eC = (e) => e, tC = (e, t) => t;+function nC(e) {+ let { queryKey: t, jobOf: n = eC, withJob: r = tC, idlePollMs: i } = e, [a, o] = (0, C.useState)(!1), [s, c] = (0, C.useState)(null), l = (0, C.useRef)(e);(0, C.useEffect)(() => {l.current = e;});@@ -26726,7 +26738,7 @@ function $S(e) {queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),refetchInterval: (e) => {let t = e.state.data;- return t !== void 0 && n(t)?.status === "running" ? XS : i ?? !1;+ return t !== void 0 && n(t)?.status === "running" ? $S : i ?? !1;}}), d = mt({mutationFn: (e) => l.current.start(e),@@ -26757,19 +26769,19 @@ function $S(e) {}//#endregion//#region src/react/boardui/components/application/settings/settings-rows.tsx-function eC({ className: e, children: t }) {+function rC({ className: e, children: t }) {return /* @__PURE__ */ (0, w.jsx)("div", {className: G("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),children: t});}-function tC({ className: e, children: t }) {+function iC({ className: e, children: t }) {return /* @__PURE__ */ (0, w.jsx)("p", {className: G("w-full px-3 text-body-2-medium text-text-secondary", e),children: t});}-function nC({ label: e, description: t, children: n }) {+function aC({ label: e, description: t, children: n }) {return /* @__PURE__ */ (0, w.jsxs)("div", {className: G("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, w.jsxs)("div", {@@ -26786,7 +26798,7 @@ function nC({ label: e, description: t, children: n }) {}//#endregion//#region src/react/boardui/components/base/buttons/link-button.tsx-var rC = qm({+var oC = qm({base: ["inline-flex items-center justify-center gap-1 whitespace-nowrap","font-sans select-none cursor-pointer rounded-sm",@@ -26810,15 +26822,15 @@ var rC = qm({secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")}});-function iC({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {- let c = G(rC.base, rC.size[t], rC.variant[e], a), l = /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [+function sC({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {+ let c = G(oC.base, oC.size[t], oC.variant[e], a), l = /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [n ? /* @__PURE__ */ (0, w.jsx)(n, {- className: rC.icon[t],+ className: oC.icon[t],"aria-hidden": !0}) : null,i != null && /* @__PURE__ */ (0, w.jsx)("span", { children: i }),r ? /* @__PURE__ */ (0, w.jsx)(r, {- className: rC.icon[t],+ className: oC.icon[t],"aria-hidden": !0}) : null] });@@ -26845,14 +26857,14 @@ function iC({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili}//#endregion//#region src/react/settings/section.tsx-function aC({ title: e, id: t, aside: n, onSubmit: r, children: i }) {+function cC({ title: e, id: t, aside: n, onSubmit: r, children: i }) {let a = /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [n ? /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex w-full flex-wrap items-center justify-between gap-2",children: [/* @__PURE__ */ (0, w.jsx)("div", {className: "min-w-0 flex-1",- children: /* @__PURE__ */ (0, w.jsx)(tC, { children: e })+ children: /* @__PURE__ */ (0, w.jsx)(iC, { children: e })}), n]- }) : /* @__PURE__ */ (0, w.jsx)(tC, { children: e }), /* @__PURE__ */ (0, w.jsx)(eC, { children: i })] });+ }) : /* @__PURE__ */ (0, w.jsx)(iC, { children: e }), /* @__PURE__ */ (0, w.jsx)(rC, { children: i })] });return r ? /* @__PURE__ */ (0, w.jsx)("form", {id: t,"aria-label": e,@@ -26867,13 +26879,13 @@ function aC({ title: e, id: t, aside: n, onSubmit: r, children: i }) {children: a});}-function oC({ children: e }) {+function lC({ children: e }) {return /* @__PURE__ */ (0, w.jsx)("div", {className: "flex flex-col",children: e});}-function sC({ divided: e = !1, children: t }) {+function uC({ divided: e = !1, children: t }) {return e ? /* @__PURE__ */ (0, w.jsx)("div", {className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",children: t@@ -26882,7 +26894,7 @@ function sC({ divided: e = !1, children: t }) {children: t});}-function cC({ status: e, children: t }) {+function dC({ status: e, children: t }) {return /* @__PURE__ */ (0, w.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",children: [e ? /* @__PURE__ */ (0, w.jsx)("div", {@@ -26891,28 +26903,28 @@ function cC({ status: e, children: t }) {}) : null, t]});}-function lC({ role: e, children: t }) {+function fC({ role: e, children: t }) {return /* @__PURE__ */ (0, w.jsx)("p", {role: e,className: "text-body-2-regular text-text-secondary",children: t});}-function uC({ children: e }) {+function pC({ children: e }) {return /* @__PURE__ */ (0, w.jsx)("p", {role: "alert",className: "text-body-2-regular text-text-error-primary",children: e});}-function dC({ children: e }) {+function mC({ children: e }) {return /* @__PURE__ */ (0, w.jsx)("p", {className: "text-body-medium text-text-primary",children: e});}-function fC({ href: e, children: t }) {- return /* @__PURE__ */ (0, w.jsx)(iC, {+function hC({ href: e, children: t }) {+ return /* @__PURE__ */ (0, w.jsx)(sC, {href: e,target: "_blank",rel: "noopener noreferrer",@@ -26921,13 +26933,13 @@ function fC({ href: e, children: t }) {children: t});}-function pC({ children: e }) {+function gC({ children: e }) {return /* @__PURE__ */ (0, w.jsx)("dl", {className: "flex flex-col",children: e});}-function mC({ term: e, children: t }) {+function _C({ term: e, children: t }) {return /* @__PURE__ */ (0, w.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, w.jsx)("dt", {@@ -26939,7 +26951,7 @@ function mC({ term: e, children: t }) {})]});}-function hC({ summary: e, defaultOpen: t = !1, children: n }) {+function vC({ summary: e, defaultOpen: t = !1, children: n }) {let r = (0, C.useId)(), i = (0, C.useRef)(null), a = (0, C.useRef)(null), o = (0, C.useRef)(!1), [s, c] = (0, C.useState)(t);return /* @__PURE__ */ (0, w.jsxs)("details", {ref: (e) => {@@ -26967,7 +26979,7 @@ function hC({ summary: e, defaultOpen: t = !1, children: n }) {})]});}-function gC({ name: e }) {+function yC({ name: e }) {return /* @__PURE__ */ (0, w.jsx)("svg", {"aria-hidden": !0,viewBox: "0 0 24 24",@@ -26976,19 +26988,19 @@ function gC({ name: e }) {children: /* @__PURE__ */ (0, w.jsx)("use", { href: `#i-${e}` })});}-function _C({ mark: e }) {+function bC({ mark: e }) {return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, w.jsx)("img", {src: e,alt: "",width: 16,height: 16,className: "size-4 shrink-0"- }) : /* @__PURE__ */ (0, w.jsx)(gC, { name: e });+ }) : /* @__PURE__ */ (0, w.jsx)(yC, { name: e });}//#endregion//#region src/react/follow-manage/source-view.tsx-function vC({ provider: e, label: t }) {- let n = MS(e), [r, i] = (0, C.useState)(!1);+function xC({ provider: e, label: t }) {+ let n = FS(e), [r, i] = (0, C.useState)(!1);return !n || r ? t ? /* @__PURE__ */ (0, w.jsx)(w.Fragment, { children: t }) : null : /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)("img", {src: n,alt: "",@@ -26999,8 +27011,8 @@ function vC({ provider: e, label: t }) {className: "size-3.5 shrink-0 rounded-sm object-contain"}), t ? /* @__PURE__ */ (0, w.jsx)(Qo, { children: t }) : null] });}-function yC({ group: e, name: t }) {- let { src: n, fallback: r } = Xx(e), [i, a] = (0, C.useState)(0), o = [n, r].filter(Boolean)[i];+function SC({ group: e, name: t }) {+ let { src: n, fallback: r } = $x(e), [i, a] = (0, C.useState)(0), o = [n, r].filter(Boolean)[i];return o ? /* @__PURE__ */ (0, w.jsx)("img", {src: o,alt: "",@@ -27013,18 +27025,18 @@ function yC({ group: e, name: t }) {}) : /* @__PURE__ */ (0, w.jsx)("span", {title: "没有可用头像",className: "inline-grid size-8 shrink-0 place-items-center rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary",- children: Yx(t)+ children: Qx(t)});}-function bC({ source: e }) {- let t = Ux(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";+function CC({ source: e }) {+ let t = Kx(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";return /* @__PURE__ */ (0, w.jsx)(Ym, {variant: "caption",color: t,- children: Hx(e)+ children: Gx(e)});}-function xC({ source: e }) {+function wC({ source: e }) {return /* @__PURE__ */ (0, w.jsx)("a", {href: e.url,target: "_blank",@@ -27036,18 +27048,18 @@ function xC({ source: e }) {}//#endregion//#region src/react/follow-manage/add-source.tsx-var SC = G(JS, YS, "text-body-2-medium"), CC = "粘贴来源链接,或输入创作者名、id…", wC = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", TC = "识别中…", EC = "站内没有查到来源", DC = (e, t) => `${e}:${t.url}`;-function OC({ options: e, active: t, busy: n, onPick: r }) {+var TC = G(ZS, QS, "text-body-2-medium"), EC = "粘贴来源链接,或输入创作者名、id…", DC = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", OC = "识别中…", kC = "站内没有查到来源", AC = (e, t) => `${e}:${t.url}`;+function jC({ options: e, active: t, busy: n, onPick: r }) {return /* @__PURE__ */ (0, w.jsxs)("div", {"aria-label": "来源建议",- className: G(GS, "absolute top-full z-10 mt-1 flex w-full flex-col gap-1"),+ className: G(JS, "absolute top-full z-10 mt-1 flex w-full flex-col gap-1"),children: [n && !e.length ? /* @__PURE__ */ (0, w.jsx)("div", {className: "px-2 py-1.5",children: /* @__PURE__ */ (0, w.jsx)(dh, { label: "正在查找建议" })}) : null, e.map((e, n) => /* @__PURE__ */ (0, w.jsxs)("button", {type: "button","aria-current": n === t ? "true" : void 0,- className: n === t ? G(SC, "bg-background-secondary-default") : SC,+ className: n === t ? G(TC, "bg-background-secondary-default") : TC,onMouseDown: (e) => e.preventDefault(),onClick: () => r(e.value),children: [/* @__PURE__ */ (0, w.jsx)("span", {@@ -27060,7 +27072,7 @@ function OC({ options: e, active: t, busy: n, onPick: r }) {}, `${e.group}-${e.value}`))]});}-function kC({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {+function MC({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {let i = (0, C.useRef)(null), [a, o] = (0, C.useState)(!1), s = (e.providers || []).filter((e) => e.followable), c = s.filter((e) => !t.has(e.provider_label)).length, l = c === s.length ? "全部来源" : `${c}/${s.length} 个来源`, u = (e, r) => {let i = new Set(t);r ? i.delete(e) : i.add(e), n(i);@@ -27080,7 +27092,7 @@ function kC({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {onOpenChange: o,placement: "bottom end",offset: 4,- className: GS,+ className: JS,children: /* @__PURE__ */ (0, w.jsxs)(lv, {"aria-label": "来源筛选",className: "flex w-64 flex-col gap-1 outline-none",@@ -27097,16 +27109,16 @@ function kC({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {onClick: () => n(new Set(s.map((e) => e.provider_label))),children: "全不选"})]- }) : /* @__PURE__ */ (0, w.jsx)(lC, { children: "暂无可用来源" }), s.map((e) => {+ }) : /* @__PURE__ */ (0, w.jsx)(fC, { children: "暂无可用来源" }), s.map((e) => {let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);return /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex items-center gap-2",- children: [/* @__PURE__ */ (0, w.jsx)(WS, {+ children: [/* @__PURE__ */ (0, w.jsx)(qS, {isSelected: !t.has(e.provider_label),onChange: (t) => u(e.provider_label, t),children: /* @__PURE__ */ (0, w.jsxs)("span", {className: "flex min-w-0 items-center gap-1.5",- children: [/* @__PURE__ */ (0, w.jsx)(vC, { provider: e.provider }), e.provider_label]+ children: [/* @__PURE__ */ (0, w.jsx)(xC, { provider: e.provider }), e.provider_label]})}), n ? /* @__PURE__ */ (0, w.jsx)(K, {variant: "ghost",@@ -27122,7 +27134,7 @@ function kC({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {})})] });}-function AC({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {+function NC({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {if (e.kind === "error") return /* @__PURE__ */ (0, w.jsx)(Y, {tone: "error",title: e.line,@@ -27140,15 +27152,15 @@ function AC({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {children: e.line}),a.length ? a.map((e) => {- let n = DC(t, e);- return /* @__PURE__ */ (0, w.jsx)(WS, {+ let n = AC(t, e);+ return /* @__PURE__ */ (0, w.jsx)(qS, {isSelected: !e.known && !r.has(n),isDisabled: e.known,onChange: (e) => i(n, e),children: /* @__PURE__ */ (0, w.jsxs)("span", {className: "flex min-w-0 flex-wrap items-center gap-1.5",children: [- /* @__PURE__ */ (0, w.jsx)(vC, { provider: e.provider }),+ /* @__PURE__ */ (0, w.jsx)(xC, { provider: e.provider }),/* @__PURE__ */ (0, w.jsx)("b", {className: "text-body-medium",children: e.provider_label@@ -27164,22 +27176,22 @@ function AC({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {]})}, n);- }) : /* @__PURE__ */ (0, w.jsx)(lC, { children: EC }),+ }) : /* @__PURE__ */ (0, w.jsx)(fC, { children: kC }),(e.external_searches || []).map((e) => /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-wrap items-center gap-2",children: [/* @__PURE__ */ (0, w.jsx)("small", {className: "text-caption-1-regular text-text-secondary",children: e.evidence- }), /* @__PURE__ */ (0, w.jsx)(fC, {+ }), /* @__PURE__ */ (0, w.jsx)(hC, {href: e.url,children: `${e.label}:${e.query}`})]}, e.url)),- o.length ? /* @__PURE__ */ (0, w.jsx)(lC, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null+ o.length ? /* @__PURE__ */ (0, w.jsx)(fC, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null]});}-function jC({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {+function PC({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {let [a, o] = (0, C.useState)(""), [s, c] = (0, C.useState)(""), [l, u] = (0, C.useState)(""), [d, f] = (0, C.useState)(!1), [p, m] = (0, C.useState)(-1), [h, g] = (0, C.useState)(/* @__PURE__ */ new Set()), [_, v] = (0, C.useState)(/* @__PURE__ */ new Set()), [y, b] = (0, C.useState)(""), [x, S] = (0, C.useState)(0);(0, C.useEffect)(() => {let e = a.trim();@@ -27191,17 +27203,17 @@ function jC({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: ireturn () => clearTimeout(t);}, [a]);let T = pt({- queryKey: Mx(l),- queryFn: ({ signal: e }) => cS(l, e),+ queryKey: Fx(l),+ queryFn: ({ signal: e }) => dS(l, e),enabled: l.length > 0 && d}), E = (0, C.useMemo)(() => (T.data?.groups || []).flatMap((e) => e.items.map((t) => ({value: t.value,label: t.matched || t.value,group: e.label- }))), [T.data]), { job: D, running: O, outcome: k, start: A, dismiss: j } = $S({- queryKey: Ax,- queryFn: ({ signal: e }) => sS(e),- start: (e) => uS([e]),+ }))), [T.data]), { job: D, running: O, outcome: k, start: A, dismiss: j } = nC({+ queryKey: Nx,+ queryFn: ({ signal: e }) => uS(e),+ start: (e) => pS([e]),onStarted: () => v(/* @__PURE__ */ new Set()),onError: (e) => b(q(e)),onFinish: (e) => {@@ -27230,14 +27242,14 @@ function jC({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i}}, te = k?.results || [], ne = te.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !h.has(e.provider_label || "")).map((e) => ({candidate: e,- key: DC(t, e)+ key: AC(t, e)})).filter((e) => !_.has(e.key))), N = mt({mutationFn: async (e) => {let t = [], n = [];S(0);for (let r of e) {try {- let e = await pS(r.candidate);+ let e = await gS(r.candidate);n.push(e.source);} catch (e) {t.push(`${r.candidate.label}:${q(e)}`);@@ -27245,7 +27257,7 @@ function jC({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: iS((e) => e + 1);}if (n.length) try {- await lS(n);+ await fS(n);} catch (e) {t.push(q(e));}@@ -27255,7 +27267,7 @@ function jC({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i};},onSuccess: (e) => {- if (ES(), e.failures.length) {+ if (kS(), e.failures.length) {b(e.failures.join(";"));return;}@@ -27284,20 +27296,20 @@ function jC({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i},children: [/* @__PURE__ */ (0, w.jsx)(sb, {"aria-label": "来源链接、名字或 id",- placeholder: CC,+ placeholder: EC,value: a,leadingIcon: op,isDisabled: n,onChange: o,onKeyDown: ee- }), oe ? /* @__PURE__ */ (0, w.jsx)(OC, {+ }), oe ? /* @__PURE__ */ (0, w.jsx)(jC, {options: E,active: p,busy: ae,onPick: M}) : null]}),- /* @__PURE__ */ (0, w.jsx)(kC, {+ /* @__PURE__ */ (0, w.jsx)(MC, {credentials: t,hidden: h,onHidden: g,@@ -27319,7 +27331,7 @@ function jC({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: ilabel: D.message || `查找中:${D.checked || 0}/${D.total}`,value: D.checked || 0,max: D.total- }) : /* @__PURE__ */ (0, w.jsx)(dh, { label: ie ? wC : TC }) : null, y ? /* @__PURE__ */ (0, w.jsx)(Y, {+ }) : /* @__PURE__ */ (0, w.jsx)(dh, { label: ie ? DC : OC }) : null, y ? /* @__PURE__ */ (0, w.jsx)(Y, {tone: "error",title: "这一次没有完成",children: y@@ -27328,8 +27340,8 @@ function jC({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: ite.length ? /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, w.jsx)(dC, { children: "查找结果" }),- te.map((e, t) => /* @__PURE__ */ (0, w.jsx)(AC, {+ /* @__PURE__ */ (0, w.jsx)(mC, { children: "查找结果" }),+ te.map((e, t) => /* @__PURE__ */ (0, w.jsx)(NC, {row: e,at: t,hidden: h,@@ -27384,7 +27396,7 @@ function jC({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i}//#endregion//#region src/react/boardui/components/base/table/table.tsx-function MC({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {+function FC({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {return /* @__PURE__ */ (0, w.jsx)("div", {className: G("w-full overflow-x-auto", n),children: /* @__PURE__ */ (0, w.jsx)(cy, {@@ -27396,7 +27408,7 @@ function MC({ size: e = "md", className: t, containerClassName: n, ref: r, ...i}//#endregion//#region src/react/components/data-table-frame.tsx-function NC({ children: e, follow: t = !1 }) {+function IC({ children: e, follow: t = !1 }) {return /* @__PURE__ */ (0, w.jsx)("div", {"data-board-data-table": !0,"data-follow-table": t || void 0,@@ -27405,16 +27417,16 @@ function NC({ children: e, follow: t = !1 }) {}//#endregion//#region src/react/follow-manage/alias-manager.tsx-var PC = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, FC = (e) => e.alias;-function IC(e, t, n) {+var LC = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, RC = (e) => e.alias;+function zC(e, t, n) {let r = n ? `name:${n}` : "", i = r ? e.find((e) => e.author_key === r) : e.find((e) => e.author_name === t || e.entity_name === t);return i ? e.filter((e) => e.author_key === i.author_key) : [];}-function LC({ sources: e, name: t, canonicalKey: n }) {+function BC({ sources: e, name: t, canonicalKey: n }) {return /* @__PURE__ */ (0, w.jsxs)("span", {className: "flex items-center gap-2",- children: [/* @__PURE__ */ (0, w.jsx)(yC, {- group: IC(e, t, n),+ children: [/* @__PURE__ */ (0, w.jsx)(SC, {+ group: zC(e, t, n),name: t}), /* @__PURE__ */ (0, w.jsx)("b", {className: "text-body-medium",@@ -27422,15 +27434,15 @@ function LC({ sources: e, name: t, canonicalKey: n }) {})]});}-function RC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {+function VC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {let [a, o] = (0, C.useState)(/* @__PURE__ */ new Set()), [s, l] = (0, C.useState)(""), [u, d] = (0, C.useState)(""), [f, p] = (0, C.useState)(""), m = mt({mutationFn: async (e) => {let t = 0;for (let n of e) {try {- await mS(n.canonical, n.alias);+ await _S(n.canonical, n.alias);} catch (n) {- throw t && ES(), Error(`${q(n)}(还有 ${e.length - t} 组没有合并)`);+ throw t && kS(), Error(`${q(n)}(还有 ${e.length - t} 组没有合并)`);}t += 1;}@@ -27440,19 +27452,19 @@ function RC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i};},onSuccess: (e) => {- l(""), o(/* @__PURE__ */ new Set()), ES(), i(`已合并 ${e.done} 组创作者别名`);+ l(""), o(/* @__PURE__ */ new Set()), kS(), i(`已合并 ${e.done} 组创作者别名`);},onError: (e) => l(q(e))}), h = mt({- mutationFn: (e) => mS(e.canonical, e.alias),+ mutationFn: (e) => _S(e.canonical, e.alias),onSuccess: () => {- l(""), d(""), p(""), ES(), i("已保存创作者别名");+ l(""), d(""), p(""), kS(), i("已保存创作者别名");},onError: (e) => l(q(e))}), g = mt({- mutationFn: (e) => hS(e),+ mutationFn: (e) => vS(e),onSuccess: () => {- l(""), ES(), i("已移除创作者别名");+ l(""), kS(), i("已移除创作者别名");},onError: (e) => l(q(e))}), _ = (e, t) => {@@ -27462,7 +27474,7 @@ function RC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: iconfirmLabel: t ? "合并全部别名" : "合并所选别名",onConfirm: () => m.mutateAsync(e)});- }, v = t.filter((e) => a.has(FC(e))), y = t.length > 0 && v.length === t.length, b = X(m.isPending);+ }, v = t.filter((e) => a.has(RC(e))), y = t.length > 0 && v.length === t.length, b = X(m.isPending);return /* @__PURE__ */ (0, w.jsxs)("div", {className: ch({padding: "none",@@ -27475,7 +27487,7 @@ function RC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i}),/* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-col gap-2",- children: [/* @__PURE__ */ (0, w.jsx)(dC, { children: "手动添加别名" }), /* @__PURE__ */ (0, w.jsxs)("div", {+ children: [/* @__PURE__ */ (0, w.jsx)(mC, { children: "手动添加别名" }), /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-wrap items-end gap-2",children: [/* @__PURE__ */ (0, w.jsx)(sb, {@@ -27507,13 +27519,13 @@ function RC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i]})]}),- s ? /* @__PURE__ */ (0, w.jsx)(uC, { children: s }) : null,+ s ? /* @__PURE__ */ (0, w.jsx)(pC, { children: s }) : null,t.length ? /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-col gap-2",children: [/* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-wrap items-center gap-2",children: [- /* @__PURE__ */ (0, w.jsx)(dC, { children: "待合并" }),+ /* @__PURE__ */ (0, w.jsx)(mC, { children: "待合并" }),/* @__PURE__ */ (0, w.jsx)("span", {className: "mr-auto text-body-2-regular text-text-secondary",children: `${t.length} 组`@@ -27535,18 +27547,18 @@ function RC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: ichildren: `全部合并(${t.length})`})]- }), /* @__PURE__ */ (0, w.jsx)(NC, { children: /* @__PURE__ */ (0, w.jsxs)(MC, {+ }), /* @__PURE__ */ (0, w.jsx)(IC, { children: /* @__PURE__ */ (0, w.jsxs)(FC, {"aria-label": "待合并创作者别名",size: "sm",children: [/* @__PURE__ */ (0, w.jsxs)(hy, { children: [/* @__PURE__ */ (0, w.jsx)(by, {id: "select",- children: /* @__PURE__ */ (0, w.jsx)(WS, {+ children: /* @__PURE__ */ (0, w.jsx)(qS, {slot: null,isSelected: y,isIndeterminate: v.length > 0 && !y,"aria-label": "全选待合并别名",- onChange: (e) => o(e ? new Set(t.map(FC)) : /* @__PURE__ */ new Set())+ onChange: (e) => o(e ? new Set(t.map(RC)) : /* @__PURE__ */ new Set())})}),/* @__PURE__ */ (0, w.jsx)(by, {@@ -27567,12 +27579,12 @@ function RC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: ichildren: "操作"})] }), /* @__PURE__ */ (0, w.jsx)(wy, { children: t.map((e) => {- let t = FC(e);+ let t = RC(e);return /* @__PURE__ */ (0, w.jsxs)(Oy, {id: t,"data-board-selected": a.has(t) || void 0,children: [- /* @__PURE__ */ (0, w.jsx)(jy, { children: /* @__PURE__ */ (0, w.jsx)(WS, {+ /* @__PURE__ */ (0, w.jsx)(jy, { children: /* @__PURE__ */ (0, w.jsx)(qS, {slot: null,isSelected: a.has(t),"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,@@ -27581,7 +27593,7 @@ function RC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: ie ? n.add(t) : n.delete(t), o(n);}}) }),- /* @__PURE__ */ (0, w.jsx)(jy, { children: /* @__PURE__ */ (0, w.jsx)(LC, {+ /* @__PURE__ */ (0, w.jsx)(jy, { children: /* @__PURE__ */ (0, w.jsx)(BC, {sources: n,name: e.canonical}) }),@@ -27607,11 +27619,11 @@ function RC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: iclassName: "flex flex-col gap-2",children: [/* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-wrap items-center gap-2",- children: [/* @__PURE__ */ (0, w.jsx)(dC, { children: "已保存别名" }), /* @__PURE__ */ (0, w.jsx)("span", {+ children: [/* @__PURE__ */ (0, w.jsx)(mC, { children: "已保存别名" }), /* @__PURE__ */ (0, w.jsx)("span", {className: "text-body-2-regular text-text-secondary",children: `${e.length} 组`})]- }), e.length ? /* @__PURE__ */ (0, w.jsx)(NC, { children: /* @__PURE__ */ (0, w.jsxs)(MC, {+ }), e.length ? /* @__PURE__ */ (0, w.jsx)(IC, { children: /* @__PURE__ */ (0, w.jsxs)(FC, {"aria-label": "已保存创作者别名",size: "sm",children: [/* @__PURE__ */ (0, w.jsxs)(hy, { children: [/* @__PURE__ */ (0, w.jsx)(by, {@@ -27623,7 +27635,7 @@ function RC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: ichildren: "平台别名"})] }), /* @__PURE__ */ (0, w.jsx)(wy, { children: e.map((e) => /* @__PURE__ */ (0, w.jsxs)(Oy, {id: e.canonical_key,- children: [/* @__PURE__ */ (0, w.jsx)(jy, { children: /* @__PURE__ */ (0, w.jsx)(LC, {+ children: [/* @__PURE__ */ (0, w.jsx)(jy, { children: /* @__PURE__ */ (0, w.jsx)(BC, {sources: n,name: e.canonical_name,canonicalKey: e.canonical_key@@ -27641,7 +27653,7 @@ function RC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i...X(g.isPending),onClick: () => void c({title: "移除创作者别名",- body: PC(e.name),+ body: LC(e.name),confirmLabel: "移除创作者别名",onConfirm: () => g.mutateAsync(e.name)})@@ -27661,7 +27673,7 @@ function RC({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i}//#endregion//#region src/react/components/path-line.tsx-function zC({ className: e }) {+function HC({ className: e }) {return /* @__PURE__ */ (0, w.jsx)("svg", {"aria-hidden": !0,viewBox: "0 0 24 24",@@ -27674,8 +27686,8 @@ function zC({ className: e }) {children: /* @__PURE__ */ (0, w.jsx)("use", { href: "#i-folder-open" })});}-var BC = "打开文件管理器失败,请重试";-function VC({ path: e, prefix: t, className: n, onRevealed: r }) {+var UC = "打开文件管理器失败,请重试";+function WC({ path: e, prefix: t, className: n, onRevealed: r }) {let [i, a] = (0, C.useState)(!1), [o, s] = (0, C.useState)(""), c = (0, C.useRef)(!0);(0, C.useEffect)(() => () => {c.current = !1;@@ -27686,7 +27698,7 @@ function VC({ path: e, prefix: t, className: n, onRevealed: r }) {try {await J("/api/reveal", { path: e }), r?.("已在资源管理器中显示");} catch (e) {- c.current && s(e instanceof Qm ? e.message : BC);+ c.current && s(e instanceof Qm ? e.message : UC);} finally {c.current && a(!1);}@@ -27700,7 +27712,7 @@ function VC({ path: e, prefix: t, className: n, onRevealed: r }) {className: G("min-w-0 break-all", n),children: [t, e]}), /* @__PURE__ */ (0, w.jsx)(eb, {- icon: zC,+ icon: HC,size: "small",className: "shrink-0","aria-label": "在资源管理器中显示",@@ -27715,12 +27727,12 @@ function VC({ path: e, prefix: t, className: n, onRevealed: r }) {}//#endregion//#region src/react/follow-manage/credentials.tsx-var HC = "这些账号信息存在哪里", UC = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", WC = "将清除这个来源在本机和共享副本中的登录凭据。", GC = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";-function KC(e, t) {+var GC = "这些账号信息存在哪里", KC = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", qC = "将清除这个来源在本机和共享副本中的登录凭据。", JC = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";+function YC(e, t) {return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";}-function qC({ row: e }) {- if (PS(e)) return /* @__PURE__ */ (0, w.jsx)(Ym, {+function XC({ row: e }) {+ if (LS(e)) return /* @__PURE__ */ (0, w.jsx)(Ym, {variant: "caption",color: "lime",children: "已配置"@@ -27729,19 +27741,19 @@ function qC({ row: e }) {return /* @__PURE__ */ (0, w.jsx)(Ym, {variant: "caption",color: t,- children: NS[e.requirement] || ""+ children: IS[e.requirement] || ""});}-function JC({ row: e, readOnly: t, toast: n }) {- let [r, i] = (0, C.useState)({}), [a, o] = (0, C.useState)(""), s = PS(e), l = mt({- mutationFn: (t) => gS(e.provider, t),+function ZC({ row: e, readOnly: t, toast: n }) {+ let [r, i] = (0, C.useState)({}), [a, o] = (0, C.useState)(""), s = LS(e), l = mt({+ mutationFn: (t) => yS(e.provider, t),onSuccess: (e, t) => {if (e.note) {o(e.note);return;}o(""), i({}), hh.invalidateQueries({- queryKey: Ox,+ queryKey: jx,exact: !0}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");},@@ -27757,17 +27769,17 @@ function JC({ row: e, readOnly: t, toast: n }) {return /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, w.jsxs)(lC, { children: [e.why, e.where ? /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [" ", /* @__PURE__ */ (0, w.jsx)(fC, {+ /* @__PURE__ */ (0, w.jsxs)(fC, { children: [e.why, e.where ? /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [" ", /* @__PURE__ */ (0, w.jsx)(hC, {href: e.where,children: "去取"})] }) : null] }),- e.howto ? /* @__PURE__ */ (0, w.jsx)(lC, { children: e.howto }) : null,+ e.howto ? /* @__PURE__ */ (0, w.jsx)(fC, { children: e.howto }) : null,/* @__PURE__ */ (0, w.jsx)("div", {className: "flex flex-wrap items-end gap-3",children: (e.needs || []).map((n) => /* @__PURE__ */ (0, w.jsx)(sb, {type: "password",label: n,- placeholder: KC(e, n),+ placeholder: YC(e, n),autoComplete: "off",spellCheck: "false",isDisabled: t,@@ -27795,7 +27807,7 @@ function JC({ row: e, readOnly: t, toast: n }) {...X(l.isPending),onClick: () => void c({title: "清除来源凭据",- body: WC,+ body: qC,confirmLabel: "清除来源凭据",danger: !0,onConfirm: () => l.mutateAsync({})@@ -27803,9 +27815,9 @@ function JC({ row: e, readOnly: t, toast: n }) {children: "清除"}) : null]}),- a ? /* @__PURE__ */ (0, w.jsx)(uC, { children: a }) : null,- (e.shared_fields || []).length ? /* @__PURE__ */ (0, w.jsx)(lC, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,- e.path ? /* @__PURE__ */ (0, w.jsx)(VC, {+ a ? /* @__PURE__ */ (0, w.jsx)(pC, { children: a }) : null,+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, w.jsx)(fC, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,+ e.path ? /* @__PURE__ */ (0, w.jsx)(WC, {path: e.path,className: "font-mono text-caption-1-regular text-text-tertiary",onRevealed: n@@ -27813,24 +27825,24 @@ function JC({ row: e, readOnly: t, toast: n }) {e.world_readable ? /* @__PURE__ */ (0, w.jsx)(Y, {tone: "error",title: "凭据文件权限过宽",- children: GC+ children: JC}) : null]});}-function YC({ row: e, readOnly: t, toast: n }) {+function QC({ row: e, readOnly: t, toast: n }) {let r = /* @__PURE__ */ (0, w.jsxs)("span", {className: "flex min-w-0 items-center gap-2",children: [/* @__PURE__ */ (0, w.jsx)("span", {className: "inline-flex size-3.5 shrink-0 items-center justify-center",- children: /* @__PURE__ */ (0, w.jsx)(vC, { provider: e.provider })+ children: /* @__PURE__ */ (0, w.jsx)(xC, { provider: e.provider })}),/* @__PURE__ */ (0, w.jsx)("b", {className: "text-body-medium text-text-primary",children: e.provider_label}),- /* @__PURE__ */ (0, w.jsx)(qC, { row: e }),+ /* @__PURE__ */ (0, w.jsx)(XC, { row: e }),e.missing.length ? /* @__PURE__ */ (0, w.jsx)(Ym, {variant: "caption",color: "rose",@@ -27840,13 +27852,13 @@ function YC({ row: e, readOnly: t, toast: n }) {});return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",- children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, w.jsx)(lC, { children: e.why }) : null]+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, w.jsx)(fC, { children: e.why }) : null]}) : /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",- children: [r, /* @__PURE__ */ (0, w.jsx)(hC, {- summary: PS(e) ? "修改凭据" : "填写凭据",- defaultOpen: e.requirement === "required" && !PS(e),- children: /* @__PURE__ */ (0, w.jsx)(JC, {+ children: [r, /* @__PURE__ */ (0, w.jsx)(vC, {+ summary: LS(e) ? "修改凭据" : "填写凭据",+ defaultOpen: e.requirement === "required" && !LS(e),+ children: /* @__PURE__ */ (0, w.jsx)(ZC, {row: e,readOnly: t,toast: n@@ -27854,8 +27866,8 @@ function YC({ row: e, readOnly: t, toast: n }) {})]});}-function XC({ data: e, readOnly: t, toast: n }) {- let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !PS(e));+function $C({ data: e, readOnly: t, toast: n }) {+ let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !LS(e));return r.length ? /* @__PURE__ */ (0, w.jsxs)("div", {className: ch({padding: "none",@@ -27877,7 +27889,7 @@ function XC({ data: e, readOnly: t, toast: n }) {padding: "none",className: "flex flex-col overflow-hidden"}),- children: r.map((e) => /* @__PURE__ */ (0, w.jsx)(YC, {+ children: r.map((e) => /* @__PURE__ */ (0, w.jsx)(QC, {row: e,readOnly: t,toast: n@@ -27888,13 +27900,13 @@ function XC({ data: e, readOnly: t, toast: n }) {children: [/* @__PURE__ */ (0, w.jsx)("b", {className: "text-body-medium text-text-primary",- children: HC+ children: GC}),/* @__PURE__ */ (0, w.jsx)("span", {className: "text-body-2-regular text-text-secondary",- children: UC+ children: KC}),- /* @__PURE__ */ (0, w.jsx)(VC, {+ /* @__PURE__ */ (0, w.jsx)(WC, {path: e.root,prefix: "凭据文件在 ",className: "text-body-2-regular text-text-secondary",@@ -27912,41 +27924,41 @@ function XC({ data: e, readOnly: t, toast: n }) {}//#endregion//#region src/react/follow-manage/feed-sources.tsx-function ZC(e) {+function ew(e) {let t = e.last_fetched_at ? `上次拉取 ${new Date(e.last_fetched_at).toLocaleString()}` : "还没拉过", n = e.interval_minutes >= 60 ? `每 ${Math.round(e.interval_minutes / 60)} 小时一次` : `每 ${e.interval_minutes} 分钟一次`;return `${e.kind_label} · ${n} · ${t} · 上次新增 ${e.last_new_count} 条`;}-var QC = () => hh.invalidateQueries({- queryKey: jx,+var tw = () => hh.invalidateQueries({+ queryKey: Px,exact: !0-}), $C = (e) => e.name || e.url;-function ew({ readOnly: e, toast: t }) {+}), nw = (e) => e.name || e.url;+function rw({ readOnly: e, toast: t }) {let n = pt({- queryKey: jx,- queryFn: ({ signal: e }) => yS(e)+ queryKey: Px,+ queryFn: ({ signal: e }) => SS(e)}), r = mh(), i = n.data;- if (!i) return /* @__PURE__ */ (0, w.jsx)(eC, { children: /* @__PURE__ */ (0, w.jsx)(sC, { children: n.error ? /* @__PURE__ */ (0, w.jsx)(Y, {+ if (!i) return /* @__PURE__ */ (0, w.jsx)(rC, { children: /* @__PURE__ */ (0, w.jsx)(uC, { children: n.error ? /* @__PURE__ */ (0, w.jsx)(Y, {tone: "error",title: "打不开订阅源",children: q(n.error)- }) : /* @__PURE__ */ (0, w.jsx)(lC, { children: "正在读订阅源。" }) }) });- let a = (e, t) => void r.run(`enabled-${e.id}`, (n) => bS(e.id, t, n), () => void QC()), o = (e) => void c({+ }) : /* @__PURE__ */ (0, w.jsx)(fC, { children: "正在读订阅源。" }) }) });+ let a = (e, t) => void r.run(`enabled-${e.id}`, (n) => CS(e.id, t, n), () => void tw()), o = (e) => void c({title: "移除订阅源",- body: `将移除订阅源「${$C(e)}」,之后不再拉取它的新作;已经拉到的新作保留。`,+ body: `将移除订阅源「${nw(e)}」,之后不再拉取它的新作;已经拉到的新作保留。`,confirmLabel: "移除订阅源",danger: !0,onConfirm: async () => {- await xS(e.id), t(`已移除订阅源「${$C(e)}」`), QC();+ await wS(e.id), t(`已移除订阅源「${nw(e)}」`), tw();}- }), s = () => void r.run("check", (e) => SS(e), () => void QC()), l = i.sources.filter((e) => e.last_error);- return /* @__PURE__ */ (0, w.jsxs)(eC, { children: [- i.sources.length ? /* @__PURE__ */ (0, w.jsx)(oC, { children: i.sources.map((t) => /* @__PURE__ */ (0, w.jsx)(nC, {- label: $C(t),- description: ZC(t),+ }), s = () => void r.run("check", (e) => TS(e), () => void tw()), l = i.sources.filter((e) => e.last_error);+ return /* @__PURE__ */ (0, w.jsxs)(rC, { children: [+ i.sources.length ? /* @__PURE__ */ (0, w.jsx)(lC, { children: i.sources.map((t) => /* @__PURE__ */ (0, w.jsx)(aC, {+ label: nw(t),+ description: ew(t),children: /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex items-center gap-2",- children: [/* @__PURE__ */ (0, w.jsx)(Zb, {- "aria-label": `启用 ${$C(t)}`,+ children: [/* @__PURE__ */ (0, w.jsx)(ex, {+ "aria-label": `启用 ${nw(t)}`,isSelected: t.enabled,isDisabled: e,onChange: (e) => a(t, e)@@ -27955,7 +27967,7 @@ function ew({ readOnly: e, toast: t }) {size: "xs",iconOnly: !0,leadingIcon: Uf,- "aria-label": `移除 ${$C(t)}`,+ "aria-label": `移除 ${nw(t)}`,disabled: e,onClick: () => o(t)})]@@ -27966,15 +27978,15 @@ function ew({ readOnly: e, toast: t }) {shell: "plain",children: "在人物页点「订阅新作」添加。"}),- l.length || r.error ? /* @__PURE__ */ (0, w.jsxs)(sC, {+ l.length || r.error ? /* @__PURE__ */ (0, w.jsxs)(uC, {divided: !0,children: [l.map((e) => /* @__PURE__ */ (0, w.jsx)(Y, {tone: "error",- title: `${$C(e)} 拉取失败`,+ title: `${nw(e)} 拉取失败`,children: e.last_error- }, e.id)), r.error ? /* @__PURE__ */ (0, w.jsx)(uC, { children: r.error }) : null]+ }, e.id)), r.error ? /* @__PURE__ */ (0, w.jsx)(pC, { children: r.error }) : null]}) : null,- /* @__PURE__ */ (0, w.jsx)(cC, {+ /* @__PURE__ */ (0, w.jsx)(dC, {status: i.unread ? `有 ${i.unread} 条新作还没看` : "新作都看过了",children: /* @__PURE__ */ (0, w.jsx)(K, {onClick: s,@@ -27987,7 +27999,7 @@ function ew({ readOnly: e, toast: t }) {}//#endregion//#region node_modules/@tanstack/table-core/build/lib/index.mjs-function tw() {+function iw() {return {accessor: (e, t) => typeof e == "function" ? {...t,@@ -28000,24 +28012,24 @@ function tw() {group: (e) => e};}-function nw(e, t) {+function aw(e, t) {return typeof e == "function" ? e(t) : e;}-function rw(e, t) {+function ow(e, t) {return (n) => {t.setState((t) => ({...t,- [e]: nw(n, t[e])+ [e]: aw(n, t[e])}));};}-function iw(e) {+function sw(e) {return e instanceof Function;}-function aw(e) {+function cw(e) {return Array.isArray(e) && e.every((e) => typeof e == "number");}-function ow(e, t) {+function lw(e, t) {let n = [], r = (e) => {e.forEach((e) => {n.push(e);@@ -28056,7 +28068,7 @@ function $(e, t, n, r) {onChange: r};}-function sw(e, t, n, r) {+function uw(e, t, n, r) {let i = {id: `${t.id}_${n.id}`,row: t,@@ -28081,7 +28093,7 @@ function sw(e, t, n, r) {r.createCell == null || r.createCell(i, n, t, e);}, {}), i;}-function cw(e, t, n, r) {+function dw(e, t, n, r) {let i = {...e._getDefaultColumnDef(),...t@@ -28107,8 +28119,8 @@ function cw(e, t, n, r) {for (let t of e._features) t.createColumn == null || t.createColumn(c, e);return c;}-var lw = "debugHeaders";-function uw(e, t, n) {+var fw = "debugHeaders";+function pw(e, t, n) {let r = {id: n.id ?? t.id,column: t,@@ -28136,7 +28148,7 @@ function uw(e, t, n) {t.createHeader == null || t.createHeader(r, e);}), r;}-var dw = { createTable: (e) => {+var mw = { createTable: (e) => {e.getHeaderGroups = Q(() => [e.getAllColumns(),e.getVisibleLeafColumns(),@@ -28144,34 +28156,34 @@ var dw = { createTable: (e) => {e.getState().columnPinning.right], (t, n, r, i) => {let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));- return fw(t, [+ return hw(t, [...a,...s,...o], e);- }, $(e.options, lw, "getHeaderGroups")), e.getCenterHeaderGroups = Q(() => [+ }, $(e.options, fw, "getHeaderGroups")), e.getCenterHeaderGroups = Q(() => [e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right- ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), fw(t, n, e, "center")), $(e.options, lw, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Q(() => [+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), hw(t, n, e, "center")), $(e.options, fw, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Q(() => [e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left- ], (t, n, r) => fw(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), $(e.options, lw, "getLeftHeaderGroups")), e.getRightHeaderGroups = Q(() => [+ ], (t, n, r) => hw(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), $(e.options, fw, "getLeftHeaderGroups")), e.getRightHeaderGroups = Q(() => [e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right- ], (t, n, r) => fw(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), $(e.options, lw, "getRightHeaderGroups")), e.getFooterGroups = Q(() => [e.getHeaderGroups()], (e) => [...e].reverse(), $(e.options, lw, "getFooterGroups")), e.getLeftFooterGroups = Q(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), $(e.options, lw, "getLeftFooterGroups")), e.getCenterFooterGroups = Q(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), $(e.options, lw, "getCenterFooterGroups")), e.getRightFooterGroups = Q(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), $(e.options, lw, "getRightFooterGroups")), e.getFlatHeaders = Q(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, lw, "getFlatHeaders")), e.getLeftFlatHeaders = Q(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, lw, "getLeftFlatHeaders")), e.getCenterFlatHeaders = Q(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, lw, "getCenterFlatHeaders")), e.getRightFlatHeaders = Q(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, lw, "getRightFlatHeaders")), e.getCenterLeafHeaders = Q(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {+ ], (t, n, r) => hw(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), $(e.options, fw, "getRightHeaderGroups")), e.getFooterGroups = Q(() => [e.getHeaderGroups()], (e) => [...e].reverse(), $(e.options, fw, "getFooterGroups")), e.getLeftFooterGroups = Q(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), $(e.options, fw, "getLeftFooterGroups")), e.getCenterFooterGroups = Q(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), $(e.options, fw, "getCenterFooterGroups")), e.getRightFooterGroups = Q(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), $(e.options, fw, "getRightFooterGroups")), e.getFlatHeaders = Q(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, fw, "getFlatHeaders")), e.getLeftFlatHeaders = Q(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, fw, "getLeftFlatHeaders")), e.getCenterFlatHeaders = Q(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, fw, "getCenterFlatHeaders")), e.getRightFlatHeaders = Q(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, fw, "getRightFlatHeaders")), e.getCenterLeafHeaders = Q(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {var t;return !((t = e.subHeaders) != null && t.length);- }), $(e.options, lw, "getCenterLeafHeaders")), e.getLeftLeafHeaders = Q(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {+ }), $(e.options, fw, "getCenterLeafHeaders")), e.getLeftLeafHeaders = Q(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {var t;return !((t = e.subHeaders) != null && t.length);- }), $(e.options, lw, "getLeftLeafHeaders")), e.getRightLeafHeaders = Q(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {+ }), $(e.options, fw, "getLeftLeafHeaders")), e.getRightLeafHeaders = Q(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {var t;return !((t = e.subHeaders) != null && t.length);- }), $(e.options, lw, "getRightLeafHeaders")), e.getLeafHeaders = Q(() => [+ }), $(e.options, fw, "getRightLeafHeaders")), e.getLeafHeaders = Q(() => [e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()@@ -28179,9 +28191,9 @@ var dw = { createTable: (e) => {...e[0]?.headers ?? [],...t[0]?.headers ?? [],...n[0]?.headers ?? []- ].map((e) => e.getLeafHeaders()).flat(), $(e.options, lw, "getLeafHeaders"));+ ].map((e) => e.getLeafHeaders()).flat(), $(e.options, fw, "getLeafHeaders"));} };-function fw(e, t, n, r) {+function hw(e, t, n, r) {let i = 0, a = function(e, t) {t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {var n;@@ -28199,7 +28211,7 @@ function fw(e, t, n, r) {let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);else {- let i = uw(n, c, {+ let i = pw(n, c, {id: [r,t,@@ -28216,7 +28228,7 @@ function fw(e, t, n, r) {i.headers.push(e), e.headerGroup = i;}), o.push(i), t > 0 && s(a, t - 1);};- s(t.map((e, t) => uw(n, e, {+ s(t.map((e, t) => pw(n, e, {depth: i,index: t})), i - 1), o.reverse();@@ -28234,7 +28246,7 @@ function fw(e, t, n, r) {});return c(o[0]?.headers ?? []), o;}-var pw = (e, t, n, r, i, a, o) => {+var gw = (e, t, n, r, i, a, o) => {let s = {id: t,index: r,@@ -28255,7 +28267,7 @@ var pw = (e, t, n, r, i, a, o) => {},renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,subRows: a ?? [],- getLeafRows: () => ow(s.subRows, (e) => e.subRows),+ getLeafRows: () => lw(s.subRows, (e) => e.subRows),getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,getParentRows: () => {let e = [], t = s;@@ -28266,7 +28278,7 @@ var pw = (e, t, n, r, i, a, o) => {}return e.reverse();},- getAllCells: Q(() => [e.getAllLeafColumns()], (t) => t.map((t) => sw(e, s, t, t.id)), $(e.options, "debugRows", "getAllCells")),+ getAllCells: Q(() => [e.getAllLeafColumns()], (t) => t.map((t) => uw(e, s, t, t.id)), $(e.options, "debugRows", "getAllCells")),_getAllCellsByColumnId: Q(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), $(e.options, "debugRows", "getAllCellsByColumnId"))};for (let t = 0; t < e._features.length; t++) {@@ -28274,87 +28286,87 @@ var pw = (e, t, n, r, i, a, o) => {n == null || n.createRow == null || n.createRow(s, e);}return s;-}, mw = { createColumn: (e, t) => {+}, _w = { createColumn: (e, t) => {e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();};-} }, hw = (e, t, n) => {+} }, vw = (e, t, n) => {var r, i;let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();return !!((i = e.getValue(t)) != null && (i = i.toString()) != null && (i = i.toLowerCase()) != null && i.includes(a));};-hw.autoRemove = (e) => Tw(e);-var gw = (e, t, n) => {+vw.autoRemove = (e) => Ow(e);+var yw = (e, t, n) => {var r;return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));};-gw.autoRemove = (e) => Tw(e);-var _w = (e, t, n) => {+yw.autoRemove = (e) => Ow(e);+var bw = (e, t, n) => {var r;return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();};-_w.autoRemove = (e) => Tw(e);-var vw = (e, t, n) => e.getValue(t)?.includes(n);-vw.autoRemove = (e) => Tw(e);-var yw = (e, t, n) => !n.some((n) => {+bw.autoRemove = (e) => Ow(e);+var xw = (e, t, n) => e.getValue(t)?.includes(n);+xw.autoRemove = (e) => Ow(e);+var Sw = (e, t, n) => !n.some((n) => {var r;return !((r = e.getValue(t)) != null && r.includes(n));});-yw.autoRemove = (e) => Tw(e) || !(e != null && e.length);-var bw = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));-bw.autoRemove = (e) => Tw(e) || !(e != null && e.length);-var xw = (e, t, n) => e.getValue(t) === n;-xw.autoRemove = (e) => Tw(e);-var Sw = (e, t, n) => e.getValue(t) == n;-Sw.autoRemove = (e) => Tw(e);-var Cw = (e, t, n) => {+Sw.autoRemove = (e) => Ow(e) || !(e != null && e.length);+var Cw = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));+Cw.autoRemove = (e) => Ow(e) || !(e != null && e.length);+var ww = (e, t, n) => e.getValue(t) === n;+ww.autoRemove = (e) => Ow(e);+var Tw = (e, t, n) => e.getValue(t) == n;+Tw.autoRemove = (e) => Ow(e);+var Ew = (e, t, n) => {let [r, i] = n, a = e.getValue(t);return a >= r && a <= i;};-Cw.resolveFilterValue = (e) => {+Ew.resolveFilterValue = (e) => {let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;if (a > o) {let e = a;a = o, o = e;}return [a, o];-}, Cw.autoRemove = (e) => Tw(e) || Tw(e[0]) && Tw(e[1]);-var ww = {- includesString: hw,- includesStringSensitive: gw,- equalsString: _w,- arrIncludes: vw,- arrIncludesAll: yw,- arrIncludesSome: bw,- equals: xw,- weakEquals: Sw,- inNumberRange: Cw+}, Ew.autoRemove = (e) => Ow(e) || Ow(e[0]) && Ow(e[1]);+var Dw = {+ includesString: vw,+ includesStringSensitive: yw,+ equalsString: bw,+ arrIncludes: xw,+ arrIncludesAll: Sw,+ arrIncludesSome: Cw,+ equals: ww,+ weakEquals: Tw,+ inNumberRange: Ew};-function Tw(e) {+function Ow(e) {return e == null || e === "";}-var Ew = {+var kw = {getDefaultColumnDef: () => ({ filterFn: "auto" }),getInitialState: (e) => ({columnFilters: [],...e}),getDefaultOptions: (e) => ({- onColumnFiltersChange: rw("columnFilters", e),+ onColumnFiltersChange: ow("columnFilters", e),filterFromLeafRows: !1,maxLeafRowFilterDepth: 100}),createColumn: (e, t) => {e.getAutoFilterFn = () => {let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);- return typeof n == "string" ? ww.includesString : typeof n == "number" ? ww.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? ww.equals : Array.isArray(n) ? ww.arrIncludes : ww.weakEquals;- }, e.getFilterFn = () => iw(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? ww[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {+ return typeof n == "string" ? Dw.includesString : typeof n == "number" ? Dw.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? Dw.equals : Array.isArray(n) ? Dw.arrIncludes : Dw.weakEquals;+ }, e.getFilterFn = () => sw(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? Dw[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {var n;return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;}, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {t.setColumnFilters((t) => {- let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = nw(n, i ? i.value : void 0);- if (Dw(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = aw(n, i ? i.value : void 0);+ if (Aw(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];let o = {id: e.id,value: a@@ -28369,19 +28381,19 @@ var Ew = {createTable: (e) => {e.setColumnFilters = (t) => {let n = e.getAllLeafColumns();- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => nw(t, e)?.filter((e) => {+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => aw(t, e)?.filter((e) => {let t = n.find((t) => t.id === e.id);- return !(t && Dw(t.getFilterFn(), e.value, t));+ return !(t && Aw(t.getFilterFn(), e.value, t));}));}, e.resetColumnFilters = (t) => {e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());}};-function Dw(e, t, n) {+function Aw(e, t, n) {return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;}-var Ow = {+var jw = {sum: (e, t, n) => n.reduce((t, n) => {let r = n.getValue(e);return t + (typeof r == "number" ? r : 0);@@ -28417,7 +28429,7 @@ var Ow = {median: (e, t) => {if (!t.length) return;let n = t.map((t) => t.getValue(e));- if (!aw(n)) return;+ if (!cw(n)) return;if (n.length === 1) return n[0];let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];@@ -28425,7 +28437,7 @@ var Ow = {unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,count: (e, t) => t.length-}, kw = {+}, Mw = {getDefaultColumnDef: () => ({aggregatedCell: (e) => {var t;@@ -28438,7 +28450,7 @@ var Ow = {...e}),getDefaultOptions: (e) => ({- onGroupingChange: rw("grouping", e),+ onGroupingChange: ow("grouping", e),groupedColumnMode: "reorder"}),createColumn: (e, t) => {@@ -28451,11 +28463,11 @@ var Ow = {};}, e.getAutoAggregationFn = () => {let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);- if (typeof n == "number") return Ow.sum;- if (Object.prototype.toString.call(n) === "[object Date]") return Ow.extent;+ if (typeof n == "number") return jw.sum;+ if (Object.prototype.toString.call(n) === "[object Date]") return jw.extent;}, e.getAggregationFn = () => {if (!e) throw Error();- return iw(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? Ow[e.columnDef.aggregationFn];+ return sw(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? jw[e.columnDef.aggregationFn];};},createTable: (e) => {@@ -28477,20 +28489,20 @@ var Ow = {};}};-function Aw(e, t, n) {+function Nw(e, t, n) {if (!(t != null && t.length) || !n) return e;let r = e.filter((e) => !t.includes(e.id));return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];}-var jw = {+var Pw = {getInitialState: (e) => ({columnOrder: [],...e}),- getDefaultOptions: (e) => ({ onColumnOrderChange: rw("columnOrder", e) }),+ getDefaultOptions: (e) => ({ onColumnOrderChange: ow("columnOrder", e) }),createColumn: (e, t) => {- e.getIndex = Q((e) => [Hw(t, e)], (t) => t.findIndex((t) => t.id === e.id), $(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => Hw(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {- let r = Hw(t, n);+ e.getIndex = Q((e) => [Gw(t, e)], (t) => t.findIndex((t) => t.id === e.id), $(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => Gw(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {+ let r = Gw(t, n);return r[r.length - 1]?.id === e.id;};},@@ -28512,18 +28524,18 @@ var jw = {}i = [...i, ...n];}- return Aw(i, t, n);+ return Nw(i, t, n);}, $(e.options, "debugTable", "_getOrderColumnsFn"));}-}, Mw = () => ({+}, Fw = () => ({left: [],right: []-}), Nw = {+}), Iw = {getInitialState: (e) => ({- columnPinning: Mw(),+ columnPinning: Fw(),...e}),- getDefaultOptions: (e) => ({ onColumnPinningChange: rw("columnPinning", e) }),+ getDefaultOptions: (e) => ({ onColumnPinningChange: ow("columnPinning", e) }),createColumn: (e, t) => {e.pin = (n) => {let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);@@ -28563,7 +28575,7 @@ var jw = {})), $(t.options, "debugRows", "getRightVisibleCells"));},createTable: (e) => {- e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? Mw() : e.initialState?.columnPinning ?? Mw()), e.getIsSomeColumnsPinned = (t) => {+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? Fw() : e.initialState?.columnPinning ?? Fw()), e.getIsSomeColumnsPinned = (t) => {let n = e.getState().columnPinning;return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);}, e.getLeftLeafColumns = Q(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), $(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = Q(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), $(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = Q(() => [@@ -28576,44 +28588,44 @@ var jw = {}, $(e.options, "debugColumns", "getCenterLeafColumns"));}};-function Pw(e) {+function Lw(e) {return e || (typeof document < "u" ? document : null);}-var Fw = {+var Rw = {size: 150,minSize: 20,maxSize: 2 ** 53 - 1-}, Iw = () => ({+}, zw = () => ({startOffset: null,startSize: null,deltaOffset: null,deltaPercentage: null,isResizingColumn: !1,columnSizingStart: []-}), Lw = {- getDefaultColumnDef: () => Fw,+}), Bw = {+ getDefaultColumnDef: () => Rw,getInitialState: (e) => ({columnSizing: {},- columnSizingInfo: Iw(),+ columnSizingInfo: zw(),...e}),getDefaultOptions: (e) => ({columnResizeMode: "onEnd",columnResizeDirection: "ltr",- onColumnSizingChange: rw("columnSizing", e),- onColumnSizingInfoChange: rw("columnSizingInfo", e)+ onColumnSizingChange: ow("columnSizing", e),+ onColumnSizingInfoChange: ow("columnSizingInfo", e)}),createColumn: (e, t) => {e.getSize = () => {let n = t.getState().columnSizing[e.id];- return Math.min(Math.max(e.columnDef.minSize ?? Fw.minSize, n ?? e.columnDef.size ?? Fw.size), e.columnDef.maxSize ?? Fw.maxSize);+ return Math.min(Math.max(e.columnDef.minSize ?? Rw.minSize, n ?? e.columnDef.size ?? Rw.size), e.columnDef.maxSize ?? Rw.maxSize);}, e.getStart = Q((e) => [e,- Hw(t, e),+ Gw(t, e),t.getState().columnSizing], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), $(t.options, "debugColumns", "getStart")), e.getAfter = Q((e) => [e,- Hw(t, e),+ Gw(t, e),t.getState().columnSizing], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), $(t.options, "debugColumns", "getAfter")), e.resetSize = () => {t.setColumnSizing((t) => {@@ -28637,8 +28649,8 @@ var Fw = {}, e.getResizeHandler = (n) => {let r = t.getColumn(e.column.id), i = r?.getCanResize();return (a) => {- if (!r || !i || (a.persist == null || a.persist(), Bw(a) && a.touches && a.touches.length > 1)) return;- let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = Bw(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {+ if (!r || !i || (a.persist == null || a.persist(), Uw(a) && a.touches && a.touches.length > 1)) return;+ let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = Uw(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {typeof n == "number" && (t.setColumnSizingInfo((e) => {let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);return e.columnSizingStart.forEach((e) => {@@ -28663,7 +28675,7 @@ var Fw = {deltaPercentage: null,columnSizingStart: []}));- }, p = Pw(n), m = {+ }, p = Lw(n), m = {moveHandler: (e) => d(e.clientX),upHandler: (e) => {p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);@@ -28673,8 +28685,8 @@ var Fw = {upHandler: (e) => {p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);}- }, g = zw() ? { passive: !1 } : !1;- Bw(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({+ }, g = Hw() ? { passive: !1 } : !1;+ Uw(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({...e,startOffset: c,startSize: o,@@ -28690,12 +28702,12 @@ var Fw = {e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});}, e.resetHeaderSizeInfo = (t) => {- e.setColumnSizingInfo(t ? Iw() : e.initialState.columnSizingInfo ?? Iw());+ e.setColumnSizingInfo(t ? zw() : e.initialState.columnSizingInfo ?? zw());}, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;}-}, Rw = null;-function zw() {- if (typeof Rw == "boolean") return Rw;+}, Vw = null;+function Hw() {+ if (typeof Vw == "boolean") return Vw;let e = !1;try {let t = { get passive() {@@ -28705,17 +28717,17 @@ function zw() {} catch {e = !1;}- return Rw = e, Rw;+ return Vw = e, Vw;}-function Bw(e) {+function Uw(e) {return e.type === "touchstart";}-var Vw = {+var Ww = {getInitialState: (e) => ({columnVisibility: {},...e}),- getDefaultOptions: (e) => ({ onColumnVisibilityChange: rw("columnVisibility", e) }),+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: ow("columnVisibility", e) }),createColumn: (e, t) => {e.toggleVisibility = (n) => {e.getCanHide() && t.setColumnVisibility((t) => ({@@ -28754,20 +28766,20 @@ var Vw = {};}};-function Hw(e, t) {+function Gw(e, t) {return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();}-var Uw = { createTable: (e) => {+var Kw = { createTable: (e) => {e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();};-} }, Ww = {+} }, qw = {getInitialState: (e) => ({globalFilter: void 0,...e}),getDefaultOptions: (e) => ({- onGlobalFilterChange: rw("globalFilter", e),+ onGlobalFilterChange: ow("globalFilter", e),globalFilterFn: "auto",getColumnCanGlobalFilter: (t) => {var n;@@ -28779,22 +28791,22 @@ var Uw = { createTable: (e) => {e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;},createTable: (e) => {- e.getGlobalAutoFilterFn = () => ww.includesString, e.getGlobalFilterFn = () => {+ e.getGlobalAutoFilterFn = () => Dw.includesString, e.getGlobalFilterFn = () => {let { globalFilterFn: t } = e.options;- return iw(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? ww[t];+ return sw(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? Dw[t];}, e.setGlobalFilter = (t) => {e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);}, e.resetGlobalFilter = (t) => {e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);};}-}, Gw = {+}, Jw = {getInitialState: (e) => ({expanded: {},...e}),getDefaultOptions: (e) => ({- onExpandedChange: rw("expanded", e),+ onExpandedChange: ow("expanded", e),paginateExpandedRows: !0}),createTable: (e) => {@@ -28865,18 +28877,18 @@ var Uw = { createTable: (e) => {};};}-}, Kw = 0, qw = 10, Jw = () => ({- pageIndex: Kw,- pageSize: qw-}), Yw = {+}, Yw = 0, Xw = 10, Zw = () => ({+ pageIndex: Yw,+ pageSize: Xw+}), Qw = {getInitialState: (e) => ({...e,pagination: {- ...Jw(),+ ...Zw(),...e?.pagination}}),- getDefaultOptions: (e) => ({ onPaginationChange: rw("pagination", e) }),+ getDefaultOptions: (e) => ({ onPaginationChange: ow("pagination", e) }),createTable: (e) => {let t = !1, n = !1;e._autoResetPageIndex = () => {@@ -28892,11 +28904,11 @@ var Uw = { createTable: (e) => {e.resetPageIndex(), n = !1;});}- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => nw(t, e)), e.resetPagination = (t) => {- e.setPagination(t ? Jw() : e.initialState.pagination ?? Jw());+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => aw(t, e)), e.resetPagination = (t) => {+ e.setPagination(t ? Zw() : e.initialState.pagination ?? Zw());}, e.setPageIndex = (t) => {e.setPagination((n) => {- let r = nw(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;+ let r = aw(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@@ -28904,13 +28916,13 @@ var Uw = { createTable: (e) => {});}, e.resetPageIndex = (t) => {var n;- e.setPageIndex(t ? Kw : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? Kw);+ e.setPageIndex(t ? Yw : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? Yw);}, e.resetPageSize = (t) => {var n;- e.setPageSize(t ? qw : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? qw);+ e.setPageSize(t ? Xw : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? Xw);}, e.setPageSize = (t) => {e.setPagination((e) => {- let n = Math.max(1, nw(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);+ let n = Math.max(1, aw(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);return {...e,pageIndex: i,@@ -28918,7 +28930,7 @@ var Uw = { createTable: (e) => {};});}, e.setPageCount = (t) => e.setPagination((n) => {- let r = nw(t, e.options.pageCount ?? -1);+ let r = aw(t, e.options.pageCount ?? -1);return typeof r == "number" && (r = Math.max(-1, r)), {...n,pageCount: r@@ -28931,15 +28943,15 @@ var Uw = { createTable: (e) => {return n === -1 || n !== 0 && t < n - 1;}, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;}-}, Xw = () => ({+}, $w = () => ({top: [],bottom: []-}), Zw = {+}), eT = {getInitialState: (e) => ({- rowPinning: Xw(),+ rowPinning: $w(),...e}),- getDefaultOptions: (e) => ({ onRowPinningChange: rw("rowPinning", e) }),+ getDefaultOptions: (e) => ({ onRowPinningChange: ow("rowPinning", e) }),createRow: (e, t) => {e.pin = (n, r, i) => {let a = r ? e.getLeafRows().map((e) => {@@ -28978,7 +28990,7 @@ var Uw = { createTable: (e) => {};},createTable: (e) => {- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? Xw() : e.initialState?.rowPinning ?? Xw()), e.getIsSomeRowsPinned = (t) => {+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? $w() : e.initialState?.rowPinning ?? $w()), e.getIsSomeRowsPinned = (t) => {let n = e.getState().rowPinning;return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);}, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {@@ -28996,13 +29008,13 @@ var Uw = { createTable: (e) => {return e.filter((e) => !r.has(e.id));}, $(e.options, "debugRows", "getCenterRows"));}-}, Qw = {+}, tT = {getInitialState: (e) => ({rowSelection: {},...e}),getDefaultOptions: (e) => ({- onRowSelectionChange: rw("rowSelection", e),+ onRowSelectionChange: ow("rowSelection", e),enableRowSelection: !0,enableMultiRowSelection: !0,enableSubRowSelection: !0@@ -29021,17 +29033,17 @@ var Uw = { createTable: (e) => {}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };return e.getRowModel().rows.forEach((t) => {- $w(i, t.id, r, !0, e);+ nT(i, t.id, r, !0, e);}), i;- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Q(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? eT(e, n) : {+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Q(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? rT(e, n) : {rows: [],flatRows: [],rowsById: {}- }, $(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Q(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? eT(e, n) : {+ }, $(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Q(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? rT(e, n) : {rows: [],flatRows: [],rowsById: {}- }, $(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Q(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? eT(e, n) : {+ }, $(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Q(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? rT(e, n) : {rows: [],flatRows: [],rowsById: {}@@ -29059,17 +29071,17 @@ var Uw = { createTable: (e) => {t.setRowSelection((a) => {if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;let o = { ...a };- return $w(o, e.id, n, r?.selectChildren ?? !0, t), o;+ return nT(o, e.id, n, r?.selectChildren ?? !0, t), o;});}, e.getIsSelected = () => {let { rowSelection: n } = t.getState();- return tT(e, n);+ return iT(e, n);}, e.getIsSomeSelected = () => {let { rowSelection: n } = t.getState();- return nT(e, n) === "some";+ return aT(e, n) === "some";}, e.getIsAllSubRowsSelected = () => {let { rowSelection: n } = t.getState();- return nT(e, n) === "all";+ return aT(e, n) === "all";}, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {let t = e.getCanSelect();return (n) => {@@ -29077,16 +29089,16 @@ var Uw = { createTable: (e) => {};};}-}, $w = (e, t, n, r, i) => {+}, nT = (e, t, n, r, i) => {var a;let o = i.getRow(t, !0);- n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => $w(e, t.id, n, r, i));+ n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => nT(e, t.id, n, r, i));};-function eT(e, t) {+function rT(e, t) {let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {return e.map((e) => {var t;- let o = tT(e, n);+ let o = iT(e, n);if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {...e,subRows: a(e.subRows)@@ -29099,32 +29111,32 @@ function eT(e, t) {rowsById: i};}-function tT(e, t) {+function iT(e, t) {return t[e.id] ?? !1;}-function nT(e, t, n) {+function aT(e, t, n) {var r;if (!((r = e.subRows) != null && r.length)) return !1;let i = !0, a = !1;return e.subRows.forEach((e) => {- if (!(a && !i) && (e.getCanSelect() && (tT(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {- let n = nT(e, t);+ if (!(a && !i) && (e.getCanSelect() && (iT(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {+ let n = aT(e, t);n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);}}), i ? "all" : a ? "some" : !1;}-var rT = /([0-9]+)/gm, iT = (e, t, n) => fT(dT(e.getValue(n)).toLowerCase(), dT(t.getValue(n)).toLowerCase()), aT = (e, t, n) => fT(dT(e.getValue(n)), dT(t.getValue(n))), oT = (e, t, n) => uT(dT(e.getValue(n)).toLowerCase(), dT(t.getValue(n)).toLowerCase()), sT = (e, t, n) => uT(dT(e.getValue(n)), dT(t.getValue(n))), cT = (e, t, n) => {+var oT = /([0-9]+)/gm, sT = (e, t, n) => hT(mT(e.getValue(n)).toLowerCase(), mT(t.getValue(n)).toLowerCase()), cT = (e, t, n) => hT(mT(e.getValue(n)), mT(t.getValue(n))), lT = (e, t, n) => pT(mT(e.getValue(n)).toLowerCase(), mT(t.getValue(n)).toLowerCase()), uT = (e, t, n) => pT(mT(e.getValue(n)), mT(t.getValue(n))), dT = (e, t, n) => {let r = e.getValue(n), i = t.getValue(n);return r > i ? 1 : r < i ? -1 : 0;-}, lT = (e, t, n) => uT(e.getValue(n), t.getValue(n));-function uT(e, t) {+}, fT = (e, t, n) => pT(e.getValue(n), t.getValue(n));+function pT(e, t) {return e === t ? 0 : e > t ? 1 : -1;}-function dT(e) {+function mT(e) {return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";}-function fT(e, t) {- let n = e.split(rT).filter(Boolean), r = t.split(rT).filter(Boolean);+function hT(e, t) {+ let n = e.split(oT).filter(Boolean), r = t.split(oT).filter(Boolean);for (; n.length && r.length;) {let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();if (isNaN(o[0])) {@@ -29138,22 +29150,22 @@ function fT(e, t) {}return n.length - r.length;}-var pT = {- alphanumeric: iT,- alphanumericCaseSensitive: aT,- text: oT,- textCaseSensitive: sT,- datetime: cT,- basic: lT-}, mT = [- dw,- Vw,- jw,- Nw,+var gT = {+ alphanumeric: sT,+ alphanumericCaseSensitive: cT,+ text: lT,+ textCaseSensitive: uT,+ datetime: dT,+ basic: fT+}, _T = [mw,- Ew,- Uw,Ww,+ Pw,+ Iw,+ _w,+ kw,+ Kw,+ qw,{getInitialState: (e) => ({sorting: [],@@ -29164,7 +29176,7 @@ var pT = {sortUndefined: 1}),getDefaultOptions: (e) => ({- onSortingChange: rw("sorting", e),+ onSortingChange: ow("sorting", e),isMultiSortEvent: (e) => e.shiftKey}),createColumn: (e, t) => {@@ -29172,13 +29184,13 @@ var pT = {let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;for (let t of n) {let n = t?.getValue(e.id);- if (Object.prototype.toString.call(n) === "[object Date]") return pT.datetime;- if (typeof n == "string" && (r = !0, n.split(rT).length > 1)) return pT.alphanumeric;+ if (Object.prototype.toString.call(n) === "[object Date]") return gT.datetime;+ if (typeof n == "string" && (r = !0, n.split(oT).length > 1)) return gT.alphanumeric;}- return r ? pT.text : pT.basic;+ return r ? gT.text : gT.basic;}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {if (!e) throw Error();- return iw(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? pT[e.columnDef.sortingFn];+ return sw(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? gT[e.columnDef.sortingFn];}, e.toggleSorting = (n, r) => {let i = e.getNextSortingOrder(), a = n != null;t.setSorting((o) => {@@ -29215,15 +29227,15 @@ var pT = {}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());}},- kw,- Gw,- Yw,- Zw,+ Mw,+ Jw,Qw,- Lw+ eT,+ tT,+ Bw];-function hT(e) {- let t = [...mT, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {+function vT(e) {+ let t = [..._T, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {...r,...e}, a = { ...e.initialState ?? {} };@@ -29249,7 +29261,7 @@ function hT(e) {n.setState(n.initialState);},setOptions: (e) => {- let t = nw(e, n.options);+ let t = aw(e, n.options);n.options = i(t);},getState: () => n.options.state,@@ -29280,7 +29292,7 @@ function hT(e) {getAllColumns: Q(() => [n._getColumnDefs()], (e) => {let t = function(e, r, i) {return i === void 0 && (i = 0), e.map((e) => {- let a = cw(n, e, i, r), o = e;+ let a = dw(n, e, i, r), o = e;return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;});};@@ -29298,7 +29310,7 @@ function hT(e) {}return n;}-function gT() {+function yT() {return (e) => Q(() => [e.options.data], (t) => {let n = {rows: [],@@ -29308,7 +29320,7 @@ function gT() {i === void 0 && (i = 0);let o = [];for (let c = 0; c < t.length; c++) {- let l = pw(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);+ let l = gw(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {var s;l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));@@ -29319,7 +29331,7 @@ function gT() {return n.rows = r(t), n;}, $(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));}-function _T(e) {+function bT(e) {let t = [], n = (e) => {var r;t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);@@ -29330,7 +29342,7 @@ function _T(e) {rowsById: e.rowsById};}-function vT(e) {+function xT(e) {return (e) => Q(() => [e.getState().pagination,e.getPrePaginationRowModel(),@@ -29344,7 +29356,7 @@ function vT(e) {rows: a,flatRows: o,rowsById: s- } : _T({+ } : bT({rows: a,flatRows: o,rowsById: s@@ -29357,28 +29369,28 @@ function vT(e) {}//#endregion//#region node_modules/@tanstack/react-table/build/lib/index.mjs-function yT(e, t) {- return e ? bT(e) ? /*#__PURE__*/ C.createElement(e, t) : e : null;+function ST(e, t) {+ return e ? CT(e) ? /*#__PURE__*/ C.createElement(e, t) : e : null;}-function bT(e) {- return xT(e) || typeof e == "function" || ST(e);+function CT(e) {+ return wT(e) || typeof e == "function" || TT(e);}-function xT(e) {+function wT(e) {return typeof e == "function" && (() => {let t = Object.getPrototypeOf(e);return t.prototype && t.prototype.isReactComponent;})();}-function ST(e) {+function TT(e) {return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);}-function CT(e) {+function ET(e) {let t = {state: {},onStateChange: () => {},renderFallbackValue: null,...e- }, [n] = C.useState(() => ({ current: hT(t) })), [r, i] = C.useState(() => n.current.initialState);+ }, [n] = C.useState(() => ({ current: vT(t) })), [r, i] = C.useState(() => n.current.initialState);return n.current.setOptions((t) => ({...t,...e,@@ -29393,7 +29405,7 @@ function CT(e) {}//#endregion//#region src/react/boardui/components/foundations/icons/chevrons.tsx-function wT(e) {+function DT(e) {return /* @__PURE__ */ (0, w.jsx)("svg", {viewBox: "0 0 16 16",fill: "none",@@ -29407,7 +29419,7 @@ function wT(e) {})});}-function TT(e) {+function OT(e) {return /* @__PURE__ */ (0, w.jsx)("svg", {viewBox: "0 0 24 24",fill: "none",@@ -29421,7 +29433,7 @@ function TT(e) {}//#endregion//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts-function ET(e, t, n) {+function kT(e, t, n) {(0, C.useEffect)(() => {if (!e) return;let r = (e) => {@@ -29435,7 +29447,7 @@ function ET(e, t, n) {n]);}-function DT(e, t) {+function AT(e, t) {let n = (0, C.useRef)(!1);return (0, C.useEffect)(() => {if (!e) return;@@ -29449,11 +29461,11 @@ function DT(e, t) {}//#endregion//#region src/react/boardui/components/base/select/select.tsx-var OT = (0, C.createContext)("md");-function kT({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {+var jT = (0, C.createContext)("md");+function MT({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {let l = (0, C.useRef)(null), u = (0, C.useRef)(null), [d, f] = (0, C.useState)(!1);- ET(d, () => f(!1), [l, u]);- let p = DT(d, l);+ kT(d, () => f(!1), [l, u]);+ let p = AT(d, l);return /* @__PURE__ */ (0, w.jsx)(Fv, {ref: s,...c,@@ -29466,16 +29478,16 @@ function kT({ className: e, triggerClassName: t, popoverClassName: n, size: r =children: [/* @__PURE__ */ (0, w.jsx)(zv, {className: G("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),children: o- }), /* @__PURE__ */ (0, w.jsx)(wT, { className: G("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]+ }), /* @__PURE__ */ (0, w.jsx)(DT, { className: G("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]}), /* @__PURE__ */ (0, w.jsx)(av, {ref: u,isNonModal: !0,offset: 4,- className: G(KS, GS, "p-2", n),+ className: G(YS, JS, "p-2", n),children: /* @__PURE__ */ (0, w.jsx)(W_, {items: a,- className: G(qS, "max-h-[240px] overflow-auto"),- children: /* @__PURE__ */ (0, w.jsx)(OT.Provider, {+ className: G(XS, "max-h-[240px] overflow-auto"),+ children: /* @__PURE__ */ (0, w.jsx)(jT.Provider, {value: r,children: i})@@ -29483,17 +29495,17 @@ function kT({ className: e, triggerClassName: t, popoverClassName: n, size: r =})] })});}-function AT({ className: e, children: t, ...n }) {- let r = (0, C.useContext)(OT);+function NT({ className: e, children: t, ...n }) {+ let r = (0, C.useContext)(jT);return /* @__PURE__ */ (0, w.jsx)(J_, {...n,- className: (t) => G(JS, 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) => G(ZS, 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});}//#endregion//#region src/react/components/selection-dock.tsx-function jT({ children: e, count: t, label: n }) {+function PT({ children: e, count: t, label: n }) {return /* @__PURE__ */ (0, w.jsxs)("div", {role: "group","aria-label": n,@@ -29508,19 +29520,19 @@ function jT({ children: e, count: t, label: n }) {}//#endregion//#region src/react/follow-manage/source-list.tsx-var MT = Object.fromEntries(Object.entries(Ix).map(([e, t]) => [t, e])), NT = 740;-function PT() {+var FT = Object.fromEntries(Object.entries(zx).map(([e, t]) => [t, e])), IT = 740;+function LT() {let [e, t] = (0, C.useState)(!1), n = (0, C.useRef)(null), r = (0, C.useCallback)((e) => {if (n.current?.disconnect(), !e) {n.current = null;return;}- let r = new ResizeObserver(() => t(e.clientWidth < NT));- r.observe(e), n.current = r, t(e.clientWidth < NT);+ let r = new ResizeObserver(() => t(e.clientWidth < IT));+ r.observe(e), n.current = r, t(e.clientWidth < IT);}, []);return (0, C.useEffect)(() => () => n.current?.disconnect(), []), [r, e];}-var FT = {+var RT = {select: "选择",author: "创作者",source: "来源",@@ -29529,7 +29541,7 @@ var FT = {checked: "上次检查",actions: "操作"};-function IT({ page: e, pages: t, onPage: n }) {+function zT({ page: e, pages: t, onPage: n }) {return t <= 1 ? null : /* @__PURE__ */ (0, w.jsxs)("nav", {"aria-label": "关注列表分页",className: "flex flex-wrap items-center justify-center gap-2",@@ -29543,7 +29555,7 @@ function IT({ page: e, pages: t, onPage: n }) {}),/* @__PURE__ */ (0, w.jsx)("ul", {className: "flex flex-wrap items-center gap-1",- children: dx(e, t).map((t, r) => /* @__PURE__ */ (0, w.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, w.jsx)("span", {+ children: mx(e, t).map((t, r) => /* @__PURE__ */ (0, w.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, w.jsx)("span", {"aria-hidden": !0,className: "px-1 text-body-2-regular text-text-tertiary",children: "…"@@ -29566,19 +29578,19 @@ function IT({ page: e, pages: t, onPage: n }) {]});}-function LT({ source: e, selected: t, onToggle: n, handlers: r }) {+function BT({ source: e, selected: t, onToggle: n, handlers: r }) {return /* @__PURE__ */ (0, w.jsxs)("div", {"data-selected": t || void 0,className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",children: [- /* @__PURE__ */ (0, w.jsx)(WS, {+ /* @__PURE__ */ (0, w.jsx)(qS, {isSelected: t,onChange: n,"aria-label": `选择 ${e.label}`}),/* @__PURE__ */ (0, w.jsxs)("span", {className: "flex min-w-0 grow flex-col gap-0.5",- children: [/* @__PURE__ */ (0, w.jsx)(xC, { source: e }), e.last_error ? /* @__PURE__ */ (0, w.jsx)("small", {+ children: [/* @__PURE__ */ (0, w.jsx)(wC, { source: e }), e.last_error ? /* @__PURE__ */ (0, w.jsx)("small", {className: "text-caption-1-regular text-text-error-primary",children: e.last_error}) : null]@@ -29586,15 +29598,15 @@ function LT({ source: e, selected: t, onToggle: n, handlers: r }) {/* @__PURE__ */ (0, w.jsx)("span", {className: "flex shrink-0 items-center gap-1.5 text-body-2-regular text-text-secondary",title: e.provider_label,- children: /* @__PURE__ */ (0, w.jsx)(vC, {+ children: /* @__PURE__ */ (0, w.jsx)(xC, {provider: e.provider,label: e.provider_label})}),- /* @__PURE__ */ (0, w.jsx)(bC, { source: e }),+ /* @__PURE__ */ (0, w.jsx)(CC, { source: e }),/* @__PURE__ */ (0, w.jsx)("span", {className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",- children: AS(e)+ children: NS(e)}),/* @__PURE__ */ (0, w.jsxs)("span", {className: "flex shrink-0 items-center gap-1",@@ -29620,8 +29632,8 @@ function LT({ source: e, selected: t, onToggle: n, handlers: r }) {]});}-function RT({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {- let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(Ux).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = nS(r, c);+function VT({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {+ let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(Kx).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = aS(r, c);return /* @__PURE__ */ (0, w.jsxs)("section", {"aria-label": `${t} 的关注来源`,className: ch({@@ -29634,7 +29646,7 @@ function RT({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o"data-open": n || void 0,className: "flex flex-wrap items-center gap-3 px-2 py-2.5",children: [- /* @__PURE__ */ (0, w.jsx)(yC, {+ /* @__PURE__ */ (0, w.jsx)(SC, {group: e,name: t}),@@ -29655,7 +29667,7 @@ function RT({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o/* @__PURE__ */ (0, w.jsxs)("span", {className: "flex shrink-0 items-center gap-1",title: d,- children: [e.map((e) => /* @__PURE__ */ (0, w.jsx)(vC, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, w.jsx)(Qo, { children: `来源:${d}` })]+ children: [e.map((e) => /* @__PURE__ */ (0, w.jsx)(xC, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, w.jsx)(Qo, { children: `来源:${d}` })]}),u ? /* @__PURE__ */ (0, w.jsx)("span", {className: "shrink-0 text-body-2-regular text-text-error-primary",@@ -29685,7 +29697,7 @@ function RT({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, oid: f,hidden: !n,"data-source-divider": !0,- children: e.map((e) => /* @__PURE__ */ (0, w.jsx)(LT, {+ children: e.map((e) => /* @__PURE__ */ (0, w.jsx)(BT, {source: e,handlers: i,selected: r.has(e.id),@@ -29694,31 +29706,31 @@ function RT({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, o})]});}-function zT(e) {- let { data: t, sort: n, dir: i, page: a, layout: o, pageSize: s, selected: l, readOnly: u, onSort: d, onPage: f, onLayout: p, onPageSize: m, onSelected: h, toast: g, openFollow: _ } = e, v = t.sources, y = (0, C.useMemo)(() => t.author_aliases || [], [t.author_aliases]), b = t.counts || {}, [x, S] = (0, C.useState)(/* @__PURE__ */ new Set()), [T, E] = PT(), [D, O] = (0, C.useState)(""), k = (0, C.useMemo)(() => Qx(v, n, i, y), [+function HT(e) {+ let { data: t, sort: n, dir: i, page: a, layout: o, pageSize: s, selected: l, readOnly: u, onSort: d, onPage: f, onLayout: p, onPageSize: m, onSelected: h, toast: g, openFollow: _ } = e, v = t.sources, y = (0, C.useMemo)(() => t.author_aliases || [], [t.author_aliases]), b = t.counts || {}, [x, S] = (0, C.useState)(/* @__PURE__ */ new Set()), [T, E] = LT(), [D, O] = (0, C.useState)(""), k = (0, C.useMemo)(() => tS(v, n, i, y), [v,n,i,y- ]), A = (0, C.useMemo)(() => $x(k, n, i, y), [+ ]), A = (0, C.useMemo)(() => nS(k, n, i, y), [k,n,i,y- ]), { job: j, running: M, outcome: ee, start: te } = $S({- queryKey: kx,- queryFn: ({ signal: e }) => oS(e),- start: (e) => lS(e),+ ]), { job: j, running: M, outcome: ee, start: te } = nC({+ queryKey: Mx,+ queryFn: ({ signal: e }) => lS(e),+ start: (e) => fS(e),onError: (e) => O(q(e)),onFinish: (e) => {- ES(), g(e.status === "failed" ? e.error || "检查失败" : DS(e));+ kS(), g(e.status === "failed" ? e.error || "检查失败" : AS(e));}}), ne = (e) => {M || te.isPending || (O(""), te.mutate(e));- }, N = (e, t) => h(rS(l, [e], t)), re = (e, t) => h(rS(l, e, t)), ie = mt({- mutationFn: (e) => fS(e),+ }, N = (e, t) => h(oS(l, [e], t)), re = (e, t) => h(oS(l, e, t)), ie = mt({+ mutationFn: (e) => hS(e),onSuccess: (e, t) => {- TS([t]), h(rS(l, [t], !1)), g("已取消关注来源");+ OS([t]), h(oS(l, [t], !1)), g("已取消关注来源");},onError: (e) => O(q(e))}), ae = (e) => void c({@@ -29730,7 +29742,7 @@ function zT(e) {}), oe = mt({mutationFn: async (e) => {let t = await r(e.ids, 4, async (t) => {- e.action === "remove" ? await fS(t) : await dS(t, e.action === "enabled");+ e.action === "remove" ? await hS(t) : await mS(t, e.action === "enabled");});return {...e,@@ -29739,9 +29751,9 @@ function zT(e) {};},onSuccess: (e) => {- if (e.action === "remove") TS(e.done);- else for (let t of e.done) wS(t, { enabled: e.action === "enabled" });- h(rS(l, e.done, !1));+ if (e.action === "remove") OS(e.done);+ else for (let t of e.done) DS(t, { enabled: e.action === "enabled" });+ h(oS(l, e.done, !1));let t = e.results.filter((e) => !e.ok);if (t.length) {O(`${t.length}/${e.ids.length} 个来源未更新:${q(t[0]?.error)}`);@@ -29754,18 +29766,18 @@ function zT(e) {onError: (e) => O(q(e))}), se = mt({mutationFn: async (e) => {- let t = ((await vS()).groups || []).flatMap((e) => [+ let t = ((await xS()).groups || []).flatMap((e) => [e.primary,...e.variants,...e.duplicates]).filter((e) => e.status === "new").map((e) => e.id);return {ids: t,- failed: (await r(t, 6, (t) => _S(t, e))).filter((e) => !e.ok)+ failed: (await r(t, 6, (t) => bS(t, e))).filter((e) => !e.ok)};},onSuccess: (e) => {- if (ES(), e.failed.length) {+ if (kS(), e.failed.length) {O(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);return;}@@ -29785,12 +29797,12 @@ function zT(e) {readOnly: u};let le = ce.current, ue = (0, C.useMemo)(() => {- let e = tw(), t = (e) => () => FT[e] || e;+ let e = iw(), t = (e) => () => RT[e] || e;return [e.display({id: "select",header: t("select"),- cell: (e) => /* @__PURE__ */ (0, w.jsx)(WS, {+ cell: (e) => /* @__PURE__ */ (0, w.jsx)(qS, {slot: null,isSelected: e.row.getIsSelected(),onChange: (t) => e.row.toggleSelected(t),@@ -29802,7 +29814,7 @@ function zT(e) {header: t("author"),cell: (e) => /* @__PURE__ */ (0, w.jsxs)("span", {className: "flex min-w-0 items-center gap-2",- children: [/* @__PURE__ */ (0, w.jsx)(yC, {+ children: [/* @__PURE__ */ (0, w.jsx)(SC, {group: e.row.original.group,name: e.row.original.author}), /* @__PURE__ */ (0, w.jsx)("span", {@@ -29816,7 +29828,7 @@ function zT(e) {header: t("source"),cell: (e) => /* @__PURE__ */ (0, w.jsxs)("span", {className: "flex min-w-0 flex-col gap-0.5",- children: [/* @__PURE__ */ (0, w.jsx)(xC, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, w.jsx)("small", {+ children: [/* @__PURE__ */ (0, w.jsx)(wC, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, w.jsx)("small", {className: "text-caption-1-regular text-text-error-primary",children: e.row.original.source.last_error}) : null]@@ -29827,18 +29839,18 @@ function zT(e) {header: t("provider"),cell: (e) => /* @__PURE__ */ (0, w.jsxs)("span", {className: "flex items-center gap-1.5",- children: [/* @__PURE__ */ (0, w.jsx)(vC, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]+ children: [/* @__PURE__ */ (0, w.jsx)(xC, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]})}),e.display({id: "status",header: t("status"),- cell: (e) => /* @__PURE__ */ (0, w.jsx)(bC, { source: e.row.original.source })+ cell: (e) => /* @__PURE__ */ (0, w.jsx)(CC, { source: e.row.original.source })}),e.accessor((e) => e.source.last_checked_at || "", {id: "checked",header: t("checked"),- cell: (e) => AS(e.row.original.source)+ cell: (e) => NS(e.row.original.source)}),e.display({id: "actions",@@ -29867,12 +29879,12 @@ function zT(e) {})];}, [le]), de = (0, C.useMemo)(() => {- let e = MT[n];+ let e = FT[n];return e ? [{id: e,desc: i === "desc"}] : [];- }, [n, i]), fe = (0, C.useMemo)(() => Object.fromEntries([...l].map((e) => [String(e), !0])), [l]), pe = o === "table", me = eS(pe ? A.length : k.length, s, a), P = CT({+ }, [n, i]), fe = (0, C.useMemo)(() => Object.fromEntries([...l].map((e) => [String(e), !0])), [l]), pe = o === "table", me = rS(pe ? A.length : k.length, s, a), P = ET({data: A,columns: ue,getRowId: (e) => String(e.source.id),@@ -29889,7 +29901,7 @@ function zT(e) {onSortingChange: (e) => {let t = (typeof e == "function" ? e(de) : e)[0];if (!t) return;- let n = Ix[t.id];+ let n = zx[t.id];n && d(n, t.desc ? "desc" : "asc");},onRowSelectionChange: (e) => {@@ -29903,9 +29915,9 @@ function zT(e) {}, n = typeof e == "function" ? e(t) : e;n.pageSize === s ? n.pageIndex !== t.pageIndex && f(n.pageIndex + 1) : m(n.pageSize);},- getCoreRowModel: gT(),- getPaginationRowModel: vT()- }), he = P.getRowModel().rows, ge = pe ? he.map((e) => e.original.source.id) : k.slice(me.start, me.end).flatMap((e) => e.map((e) => e.id)), _e = nS(l, ge), ve = [...l], ye = OS(ee), be = kS(ee), xe = k.length > 0 && x.size >= k.length;+ getCoreRowModel: yT(),+ getPaginationRowModel: xT()+ }), he = P.getRowModel().rows, ge = pe ? he.map((e) => e.original.source.id) : k.slice(me.start, me.end).flatMap((e) => e.map((e) => e.id)), _e = aS(l, ge), ve = [...l], ye = jS(ee), be = MS(ee), xe = k.length > 0 && x.size >= k.length;return v.length ? /* @__PURE__ */ (0, w.jsxs)("div", {className: ch({padding: "none",@@ -29942,27 +29954,27 @@ function zT(e) {variant: "ghost",iconOnly: !0,leadingIcon: tp,- "aria-label": Nx[0][1],+ "aria-label": Ix[0][1],"aria-pressed": !pe,onClick: () => p("default")}), /* @__PURE__ */ (0, w.jsx)(K, {variant: "ghost",iconOnly: !0,leadingIcon: sp,- "aria-label": Nx[1][1],+ "aria-label": Ix[1][1],"aria-pressed": pe,onClick: () => p("table")})]}),- /* @__PURE__ */ (0, w.jsx)(kT, {+ /* @__PURE__ */ (0, w.jsx)(MT, {"aria-label": "关注列表排序",selectedKey: n,onSelectionChange: (e) => {if (e === null) return;let t = String(e);- d(t, cx[t]);+ d(t, dx[t]);},- children: ox.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(AT, {+ children: lx.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(NT, {id: e,children: t}, e))@@ -29971,7 +29983,7 @@ function zT(e) {variant: "secondary",iconOnly: !0,leadingIcon: i === "asc" ? If : Mf,- "aria-label": Bx(n, i),+ "aria-label": Ux(n, i),onClick: () => d(n, i === "asc" ? "desc" : "asc")}),pe ? null : /* @__PURE__ */ (0, w.jsx)(K, {@@ -30013,7 +30025,7 @@ function zT(e) {}) : null]}),- ve.length ? /* @__PURE__ */ (0, w.jsxs)(jT, {+ ve.length ? /* @__PURE__ */ (0, w.jsxs)(PT, {label: "关注来源批量操作",count: `已选 ${ve.length} 个来源`,children: [@@ -30072,9 +30084,9 @@ function zT(e) {})]}) : null,- pe ? /* @__PURE__ */ (0, w.jsx)(NC, {+ pe ? /* @__PURE__ */ (0, w.jsx)(IC, {follow: !0,- children: /* @__PURE__ */ (0, w.jsxs)(MC, {+ children: /* @__PURE__ */ (0, w.jsxs)(FC, {"aria-label": "关注来源",size: "sm",sortDescriptor: de[0] ? {@@ -30086,7 +30098,7 @@ function zT(e) {desc: e.direction === "descending"}]),children: [/* @__PURE__ */ (0, w.jsx)(hy, { children: P.getHeaderGroups()[0].headers.map((e) => {- let t = e.column.id in Ix, n = yT(e.column.columnDef.header, e.getContext());+ let t = e.column.id in zx, n = ST(e.column.columnDef.header, e.getContext());return /* @__PURE__ */ (0, w.jsx)(by, {id: e.id,allowsSorting: t,@@ -30096,7 +30108,7 @@ function zT(e) {children: [n, /* @__PURE__ */ (0, w.jsx)("span", {"data-sort-indicator": !0,"data-direction": e || void 0,- children: /* @__PURE__ */ (0, w.jsx)(TT, {})+ children: /* @__PURE__ */ (0, w.jsx)(OT, {})})]}) : /* @__PURE__ */ (0, w.jsx)(Qo, { children: n })}, e.id);@@ -30105,11 +30117,11 @@ function zT(e) {children: he.map((e) => /* @__PURE__ */ (0, w.jsx)(Oy, {id: e.id,"data-follow-selected": e.getIsSelected() || void 0,- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, w.jsx)(jy, { children: yT(e.column.columnDef.cell, e.getContext()) }, e.id))+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, w.jsx)(jy, { children: ST(e.column.columnDef.cell, e.getContext()) }, e.id))}, e.id))})]})- }) : /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(WS, {+ }) : /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(qS, {isSelected: _e.all,isIndeterminate: _e.some,onChange: (e) => re(ge, e),@@ -30119,9 +30131,9 @@ function zT(e) {className: "flex flex-col gap-3",children: k.slice(me.start, me.end).map((e) => {let t = String(e[0].author_key || e[0].id);- return /* @__PURE__ */ (0, w.jsx)(RT, {+ return /* @__PURE__ */ (0, w.jsx)(VT, {group: e,- name: Jx(e, y),+ name: Zx(e, y),handlers: le,selected: l,open: !x.has(t),@@ -30141,19 +30153,19 @@ function zT(e) {className: "text-body-2-regular text-text-secondary",children: `${me.start + 1}–${me.end} / ${me.total} ${pe ? "个来源" : "位创作者"}`}),- /* @__PURE__ */ (0, w.jsx)(kT, {+ /* @__PURE__ */ (0, w.jsx)(MT, {"aria-label": "每页显示数量",size: "sm",selectedKey: String(s),onSelectionChange: (e) => {e !== null && P.setPageSize(Number(e));},- children: Px.map((e) => /* @__PURE__ */ (0, w.jsx)(AT, {+ children: Lx.map((e) => /* @__PURE__ */ (0, w.jsx)(NT, {id: String(e),children: `每页 ${e} ${pe ? "条" : "位"}`}, e))}),- /* @__PURE__ */ (0, w.jsx)(IT, {+ /* @__PURE__ */ (0, w.jsx)(zT, {page: me.page,pages: me.pages,onPage: (e) => P.setPageIndex(e - 1)@@ -30211,13 +30223,13 @@ function zT(e) {}//#endregion//#region src/react/follow-manage/follow-manage-page.tsx-var BT = [+var UT = [["list", "关注列表"],["add", "添加关注"],["feeds", "订阅源"],["source", "来源和凭证"]-], VT = (e) => BT.some(([t]) => t === e);-function HT({ term: e, figure: t, unit: n }) {+], WT = (e) => UT.some(([t]) => t === e);+function GT({ term: e, figure: t, unit: n }) {return /* @__PURE__ */ (0, w.jsxs)("div", {className: ch({padding: "none",@@ -30235,20 +30247,20 @@ function HT({ term: e, figure: t, unit: n }) {})]});}-function UT(e) {- let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, C.useState)(VT(e.tab) ? e.tab : "list"), [u, d] = (0, C.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, C.useState)(() => ux(e.sort, e.dir).sort), [m, h] = (0, C.useState)(() => ux(e.sort, e.dir).dir), [g, _] = (0, C.useState)(Lx(e.layout) ? e.layout : "default"), [v, y] = (0, C.useState)(Rx(e.pageSize)), [b, x] = (0, C.useState)(/* @__PURE__ */ new Set()), S = pt({- queryKey: Dx,- queryFn: ({ signal: e }) => iS(e)+function KT(e) {+ let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, C.useState)(WT(e.tab) ? e.tab : "list"), [u, d] = (0, C.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, C.useState)(() => px(e.sort, e.dir).sort), [m, h] = (0, C.useState)(() => px(e.sort, e.dir).dir), [g, _] = (0, C.useState)(Bx(e.layout) ? e.layout : "default"), [v, y] = (0, C.useState)(Vx(e.pageSize)), [b, x] = (0, C.useState)(/* @__PURE__ */ new Set()), S = pt({+ queryKey: Ax,+ queryFn: ({ signal: e }) => sS(e)}), T = pt({- queryKey: Ox,- queryFn: ({ signal: e }) => aS(e)+ queryKey: jx,+ queryFn: ({ signal: e }) => cS(e)}), E = S.data || { sources: [] }, D = T.data || {root: "",providers: []}, O = E.sources;(0, C.useEffect)(() => {x((e) => {- let t = tS(e, O);+ let t = iS(e, O);return t.size === e.size ? e : t;});}, [O]);@@ -30258,9 +30270,9 @@ function UT(e) {tab: e.tab ?? c,page: e.page ?? u,sort: n === "checked" ? "" : n,- dir: r === cx[n] ? "" : r+ dir: r === dx[n] ? "" : r});- }, A = Zx(O), j = O.filter(Ux).length, M = O.filter((e) => e.enabled).length, ee = (D.providers || []).filter((e) => e.requirement === "required" && !PS(e)).length;+ }, A = eS(O), j = O.filter(Kx).length, M = O.filter((e) => e.enabled).length, ee = (D.providers || []).filter((e) => e.requirement === "required" && !LS(e)).length;return /* @__PURE__ */ (0, w.jsxs)(fh, { children: [a ? /* @__PURE__ */ (0, w.jsx)(Y, {tone: "warning",@@ -30276,25 +30288,25 @@ function UT(e) {children: o}) : null,/* @__PURE__ */ (0, w.jsxs)("div", {- className: BS,+ className: US,"aria-label": "关注概览",children: [- /* @__PURE__ */ (0, w.jsx)(HT, {+ /* @__PURE__ */ (0, w.jsx)(GT, {term: "关注创作者",figure: A.length,unit: "位"}),- /* @__PURE__ */ (0, w.jsx)(HT, {+ /* @__PURE__ */ (0, w.jsx)(GT, {term: "启用来源",figure: M,unit: `/ ${O.length}`}),- /* @__PURE__ */ (0, w.jsx)(HT, {+ /* @__PURE__ */ (0, w.jsx)(GT, {term: "检查失败",figure: j,unit: "个来源"}),- /* @__PURE__ */ (0, w.jsx)(HT, {+ /* @__PURE__ */ (0, w.jsx)(GT, {term: "未看更新",figure: E.counts?.new || 0,unit: "条"@@ -30305,23 +30317,23 @@ function UT(e) {selectedKey: c,onSelectionChange: (e) => {let t = String(e);- VT(t) && (l(t), k({ tab: t }));+ WT(t) && (l(t), k({ tab: t }));},className: "flex flex-col gap-6",children: [/* @__PURE__ */ (0, w.jsx)(Gy, {"aria-label": "关注管理区域",- className: FS,- children: BT.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(qy, {+ className: RS,+ children: UT.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(qy, {id: e,- className: IS,+ className: zS,children: e === "source" && ee ? `${t}(${ee})` : t}, e))}),/* @__PURE__ */ (0, w.jsx)(Jy, {id: "list",className: "flex flex-col gap-4",- children: /* @__PURE__ */ (0, w.jsx)(zT, {+ children: /* @__PURE__ */ (0, w.jsx)(HT, {data: E,sort: f,dir: m,@@ -30354,7 +30366,7 @@ function UT(e) {/* @__PURE__ */ (0, w.jsxs)(Jy, {id: "add",className: "flex flex-col gap-8",- children: [/* @__PURE__ */ (0, w.jsx)(jC, {+ children: [/* @__PURE__ */ (0, w.jsx)(PC, {data: E,credentials: D,readOnly: a,@@ -30362,7 +30374,7 @@ function UT(e) {openCredentials: () => {l("source"), k({ tab: "source" });}- }), /* @__PURE__ */ (0, w.jsx)(RC, {+ }), /* @__PURE__ */ (0, w.jsx)(VC, {groups: E.author_aliases || [],readOnly: a,toast: r,@@ -30373,7 +30385,7 @@ function UT(e) {/* @__PURE__ */ (0, w.jsx)(Jy, {id: "feeds",className: "flex flex-col gap-4",- children: /* @__PURE__ */ (0, w.jsx)(ew, {+ children: /* @__PURE__ */ (0, w.jsx)(rw, {readOnly: a,toast: r})@@ -30381,7 +30393,7 @@ function UT(e) {/* @__PURE__ */ (0, w.jsx)(Jy, {id: "source",className: "flex flex-col gap-4",- children: /* @__PURE__ */ (0, w.jsx)(XC, {+ children: /* @__PURE__ */ (0, w.jsx)($C, {data: D,readOnly: a,toast: r@@ -30393,35 +30405,35 @@ function UT(e) {}//#endregion//#region src/react/library-processing/library-processing.ts-var WT = "/api/library-processing", GT = ["library-processing"], KT = (e) => eh(WT, e);-async function qT(e) {+var qT = "/api/library-processing", JT = ["library-processing"], YT = (e) => eh(qT, e);+async function XT(e) {await hh.fetchQuery({- queryKey: GT,- queryFn: () => KT(e)+ queryKey: JT,+ queryFn: () => YT(e)});}-var JT = 2e3, YT = 1e4, XT = "连接中断,正在重新读取处理进度";-function ZT(e, t) {- return e?.status === "running" ? JT : t ? YT : !1;+var ZT = 2e3, QT = 1e4, $T = "连接中断,正在重新读取处理进度";+function eE(e, t) {+ return e?.status === "running" ? ZT : t ? QT : !1;}-var QT = {+var tE = {reading_local: "读取本地资料",querying_metadata: "查询外部资料",fetching_cover: "采集缺失封面",writing_candidates: "保存资料候选"-}, $T = {+}, nE = {querying_metadata: "没有资料",fetching_cover: "没有封面"};-function eE(e) {- let t = Object.entries(e).filter(([e, t]) => $T[e] && t > 0).map(([e, t]) => `${$T[e]} ${t} 部`);+function rE(e) {+ let t = Object.entries(e).filter(([e, t]) => nE[e] && t > 0).map(([e, t]) => `${nE[e]} ${t} 部`);return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";}-function tE(e) {- let t = QT[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";+function iE(e) {+ let t = tE[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;}-function nE(e) {+function aE(e) {let t = e.issue_preview || [];return t.length ? {label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,@@ -30435,21 +30447,21 @@ function nE(e) {log: e.issues_log || ""} : null;}-var rE = "peach.library-processing.announced", iE = 120;-function aE(e, t, n) {+var oE = "peach.library-processing.announced", sE = 120;+function cE(e, t, n) {if (e.status !== "complete") return;- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < iE;+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < sE;if (!(!n && !r)) {try {- if (e.job_id && localStorage.getItem(rE) === e.job_id) return;- e.job_id && localStorage.setItem(rE, e.job_id);+ if (e.job_id && localStorage.getItem(oE) === e.job_id) return;+ e.job_id && localStorage.setItem(oE, e.job_id);} catch {}t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条`);}}//#endregion//#region src/react/media-repair/media-repair.ts-var oE = "/api/media-repair", sE = ["media-repair"], cE = ["media-repair", "libraries"], lE = {+var lE = "/api/media-repair", uE = ["media-repair"], dE = ["media-repair", "libraries"], fE = {status: "idle",library: "",stage: "",@@ -30461,51 +30473,51 @@ var oE = "/api/media-repair", sE = ["media-repair"], cE = ["media-repair", "librmissing_tool: 0,skipped: 0,message: ""-}, uE = (e) => eh(oE, e), dE = async (e) => (await eh("/api/libraries", e)).libraries || [];-async function fE(e) {+}, pE = (e) => eh(lE, e), mE = async (e) => (await eh("/api/libraries", e)).libraries || [];+async function hE(e) {await Promise.all([hh.fetchQuery({- queryKey: sE,- queryFn: () => uE(e)+ queryKey: uE,+ queryFn: () => pE(e)}), hh.fetchQuery({- queryKey: cE,- queryFn: () => dE(e)+ queryKey: dE,+ queryFn: () => mE(e)})]);}-var pE = (e) => Number(e).toLocaleString();-function mE(e) {+var gE = (e) => Number(e).toLocaleString();+function _E(e) {if (e.status === "running") {- let t = e.total ? `${pE(e.checked)} / ${pE(e.total)}` : "准备中";+ let t = e.total ? `${gE(e.checked)} / ${gE(e.total)}` : "准备中";return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;}- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${pE(e.repaired)} 部,${pE(e.failed)} 部修不了` : `修好 ${pE(e.repaired)} 部` : "";+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${gE(e.repaired)} 部,${gE(e.failed)} 部修不了` : `修好 ${gE(e.repaired)} 部` : "";}-var hE = (e) => `${pE(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`;+var vE = (e) => `${gE(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`;({medium: "h-9 rounded-2lg p-2 text-body-medium",small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"}).medium;//#endregion//#region src/management.ts-var gE = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", _E = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", vE = (e) => o[e] || e, yE = (e) => hh.setQueryData(sE, e);-function bE() {+var yE = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", bE = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", xE = (e) => o[e] || e, SE = (e) => hh.setQueryData(uE, e);+function CE() {let e = pt({- queryKey: sE,- queryFn: ({ signal: e }) => uE(e),- refetchInterval: (e) => e.state.data?.status === "running" && XS+ queryKey: uE,+ queryFn: ({ signal: e }) => pE(e),+ refetchInterval: (e) => e.state.data?.status === "running" && $S}), t = pt({- queryKey: cE,- queryFn: ({ signal: e }) => dE(e)- }), [n, r] = (0, C.useState)(""), i = mh(), a = e.data ?? lE, o = t.data ?? [], s = a.status === "running", l = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], u = () => {+ queryKey: dE,+ queryFn: ({ signal: e }) => mE(e)+ }), [n, r] = (0, C.useState)(""), i = mh(), a = e.data ?? fE, o = t.data ?? [], s = a.status === "running", l = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], u = () => {l && c({title: `修复媒体库「${l.name}」`,body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (l.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),confirmLabel: "修复媒体库",- onConfirm: async () => yE(await J(oE, {+ onConfirm: async () => SE(await J(lE, {library: l.id,restart: !0}))});- }, d = () => void i.run("stop", (e) => J(oE, { stop: !0 }, "POST", e), yE), f = mE(a), p = a.status === "complete", m = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");+ }, d = () => void i.run("stop", (e) => J(lE, { stop: !0 }, "POST", e), SE), f = _E(a), p = a.status === "complete", m = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");return /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-col gap-4",children: [/* @__PURE__ */ (0, w.jsxs)("section", {@@ -30522,7 +30534,7 @@ function bE() {}),/* @__PURE__ */ (0, w.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: _E+ children: bE}),s && a.total ? /* @__PURE__ */ (0, w.jsx)(ph, {label: "修复进度",@@ -30537,7 +30549,7 @@ function bE() {]}), /* @__PURE__ */ (0, w.jsxs)("footer", {"data-geist-fieldset-footer": !0,- children: [/* @__PURE__ */ (0, w.jsx)(kT, {+ children: [/* @__PURE__ */ (0, w.jsx)(MT, {"aria-label": "媒体库",className: "w-48",selectedKey: l?.id ?? null,@@ -30545,10 +30557,10 @@ function bE() {onSelectionChange: (e) => {e !== null && r(String(e));},- children: o.map((e) => /* @__PURE__ */ (0, w.jsxs)(AT, {+ children: o.map((e) => /* @__PURE__ */ (0, w.jsxs)(NT, {id: e.id,textValue: e.name,- children: [/* @__PURE__ */ (0, w.jsx)(_C, { mark: vE(e.icon) }), e.name]+ children: [/* @__PURE__ */ (0, w.jsx)(bC, { mark: xE(e.icon) }), e.name]}, e.id))}), s ? /* @__PURE__ */ (0, w.jsx)(K, {onClick: d,@@ -30572,7 +30584,7 @@ function bE() {p && a.missing_tool ? /* @__PURE__ */ (0, w.jsx)(Y, {tone: "warning",title: "缺少 untrunc",- children: hE(a)+ children: vE(a)}) : null,m ? /* @__PURE__ */ (0, w.jsx)(Y, {tone: "error",@@ -30584,18 +30596,18 @@ function bE() {}//#endregion//#region src/react/library-processing/use-library-processing.ts-function xE({ toast: e, mode: t, monitor: n }) {+function wE({ toast: e, mode: t, monitor: n }) {let r = t === "notice" || !!n, i = pt({- queryKey: GT,- queryFn: ({ signal: e }) => KT(e),- refetchInterval: (e) => ZT(e.state.data, r)+ queryKey: JT,+ queryFn: ({ signal: e }) => YT(e),+ refetchInterval: (e) => eE(e.state.data, r)}), [a, o] = (0, C.useState)(null), s = (0, C.useRef)(void 0), c = i.data;return (0, C.useEffect)(() => {if (!c) return;let n = s.current;s.current = c.status;let r = n === "running" && c.status !== "running";- r && o(c), (r || t === "notice") && aE(c, e, r);+ r && o(c), (r || t === "notice") && cE(c, e, r);}, [c,t,@@ -30608,7 +30620,7 @@ function xE({ toast: e, mode: t, monitor: n }) {}//#endregion//#region src/react/library-processing/library-processing-card.tsx-var SE = [+var TE = [{label: "扫描并补全资料",icon: Hf,@@ -30624,13 +30636,13 @@ var SE = [icon: Jf,command: { stage: "collect" }}-], CE = G(JS, YS, "text-body-2-medium"), wE = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", TE = (e) => {+], EE = G(ZS, QS, "text-body-2-medium"), DE = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", OE = (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(",")}。`;-}, EE = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + TE(e);-function DE({ busy: e, onRun: t }) {+}, kE = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + OE(e);+function AE({ busy: e, onRun: t }) {let n = (0, C.useRef)(null), [r, i] = (0, C.useState)(!1), a = (n) => {e || (i(!1), t(n));};@@ -30661,13 +30673,13 @@ function DE({ busy: e, onRun: t }) {onOpenChange: i,placement: "bottom end",offset: 4,- className: GS,+ className: JS,children: /* @__PURE__ */ (0, w.jsx)(lv, {"aria-label": "更多扫描与采集方式",className: "flex w-52 flex-col gap-1 outline-none",- children: SE.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, w.jsxs)("button", {+ children: TE.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, w.jsxs)("button", {type: "button",- className: CE,+ className: EE,onClick: () => a(n),children: [/* @__PURE__ */ (0, w.jsx)(t, {"aria-hidden": !0,@@ -30677,8 +30689,8 @@ function DE({ busy: e, onRun: t }) {})})] });}-function OE({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {- let a = nE(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = eE(e.notes || {}), c = Sb();+function jE({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {+ let a = aE(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = rE(e.notes || {}), c = Sb();return /* @__PURE__ */ (0, w.jsxs)("div", {"aria-live": "polite",className: "flex flex-col gap-4 empty:hidden",@@ -30686,7 +30698,7 @@ function OE({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {e.status === "running" && e.stalled ? /* @__PURE__ */ (0, w.jsx)(Y, {tone: "warning",title: "处理较慢",- children: wE+ children: DE}) : null,t || e.status === "failed" ? /* @__PURE__ */ (0, w.jsx)(Y, {tone: "error",@@ -30698,7 +30710,7 @@ function OE({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {}) : null,extra: a ? /* @__PURE__ */ (0, w.jsx)("div", {className: "mt-1.5 border-t border-current/20 pt-1.5",- children: /* @__PURE__ */ (0, w.jsxs)(hC, {+ children: /* @__PURE__ */ (0, w.jsxs)(vC, {summary: a.label,children: [/* @__PURE__ */ (0, w.jsx)("div", {className: "relative",@@ -30729,7 +30741,7 @@ function OE({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {})}), a.log ? /* @__PURE__ */ (0, w.jsx)("div", {className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",- children: /* @__PURE__ */ (0, w.jsx)(VC, {+ children: /* @__PURE__ */ (0, w.jsx)(WC, {path: a.log,prefix: "完整记录:",className: "text-caption-1-regular",@@ -30743,13 +30755,13 @@ function OE({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {n?.status === "complete" ? /* @__PURE__ */ (0, w.jsx)(Y, {tone: "success",title: "处理完成",- children: EE(n)+ children: kE(n)}) : null,e.status !== "running" && s ? /* @__PURE__ */ (0, w.jsx)(Y, {tone: "neutral",extra: e.issues_log ? /* @__PURE__ */ (0, w.jsx)("div", {className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",- children: /* @__PURE__ */ (0, w.jsx)(VC, {+ children: /* @__PURE__ */ (0, w.jsx)(WC, {path: e.issues_log,prefix: "完整记录:",className: "text-caption-1-regular",@@ -30761,17 +30773,17 @@ function OE({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {]});}-function kE(e) {- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = xE(e), o = mt({- mutationFn: (e) => J(WT, e),+function ME(e) {+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = wE(e), o = mt({+ mutationFn: (e) => J(qT, e),onSuccess: (e) => {- a(), hh.setQueryData(GT, e), hh.invalidateQueries({ queryKey: GT });+ a(), hh.setQueryData(JT, e), hh.invalidateQueries({ queryKey: JT });}});(0, C.useEffect)(() => {i && n?.();}, [i, n]);- let s = r.data ?? { status: "idle" }, c = o.error ? q(o.error) : r.isError ? r.data ? XT : q(r.error) : "", l = o.isPending || s.status === "running", u = tE(s), d = (e) => {+ let s = r.data ?? { status: "idle" }, c = o.error ? q(o.error) : r.isError ? r.data ? $T : q(r.error) : "", l = o.isPending || s.status === "running", u = iE(s), d = (e) => {l || (o.reset(), o.mutate(e));};return /* @__PURE__ */ (0, w.jsxs)("div", {@@ -30790,7 +30802,7 @@ function kE(e) {}),/* @__PURE__ */ (0, w.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: gE+ children: yE}),s.status === "running" ? /* @__PURE__ */ (0, w.jsx)("div", {className: "flex flex-col gap-1.5",@@ -30814,25 +30826,25 @@ function kE(e) {}), /* @__PURE__ */ (0, w.jsxs)("footer", {"data-geist-fieldset-footer": !0,children: [- /* @__PURE__ */ (0, w.jsx)(iC, {+ /* @__PURE__ */ (0, w.jsx)(sC, {href: "/scraping",size: "small",trailingIcon: Pf,children: "来源和凭证"}),- s.candidates ? /* @__PURE__ */ (0, w.jsx)(iC, {+ s.candidates ? /* @__PURE__ */ (0, w.jsx)(sC, {href: "/review",size: "small",trailingIcon: Pf,children: "复核资料"}) : null,- /* @__PURE__ */ (0, w.jsx)(DE, {+ /* @__PURE__ */ (0, w.jsx)(AE, {busy: l,onRun: d})]})]- }), /* @__PURE__ */ (0, w.jsx)(OE, {+ }), /* @__PURE__ */ (0, w.jsx)(jE, {state: s,problem: c,settled: i,@@ -30848,12 +30860,12 @@ function kE(e) {}//#endregion//#region src/react/library-processing/library-processing-notice.tsx-var AE = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", jE = {- gray: `${AE} border-separator-border bg-background-secondary-default text-text-secondary`,- warning: `${AE} border-current/35 bg-status-yellow-background text-status-yellow-text`,- error: `${AE} border-current/35 bg-background-tertiary-error text-text-error-primary`+var NE = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", PE = {+ gray: `${NE} border-separator-border bg-background-secondary-default text-text-secondary`,+ warning: `${NE} border-current/35 bg-status-yellow-background text-status-yellow-text`,+ error: `${NE} border-current/35 bg-background-tertiary-error text-text-error-primary`};-function ME({ value: e, max: t }) {+function FE({ value: e, max: t }) {let n = Math.max(0, Math.min(100, e / t * 100));return /* @__PURE__ */ (0, w.jsxs)("svg", {role: "progressbar",@@ -30881,16 +30893,16 @@ function ME({ value: e, max: t }) {})]});}-function NE(e) {- let { job: t } = xE(e), n = t.data, r = t.isError ? n ? XT : q(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";+function IE(e) {+ let { job: t } = wE(e), n = t.data, r = t.isError ? n ? $T : q(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";if (!r && !o && !a) return null;- let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : tE(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? $f : Wf;+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : iE(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? $f : Wf;return /* @__PURE__ */ (0, w.jsxs)("aside", {role: a ? "alert" : "status",- className: jE[s],+ className: PE[s],children: [/* @__PURE__ */ (0, w.jsxs)("div", {className: "flex min-w-0 items-center gap-3",- children: [o && l ? /* @__PURE__ */ (0, w.jsx)(ME, {+ children: [o && l ? /* @__PURE__ */ (0, w.jsx)(FE, {value: c,max: l}) : /* @__PURE__ */ (0, w.jsx)(d, {@@ -30900,7 +30912,7 @@ function NE(e) {className: "min-w-0 text-body-2-regular",children: u})]- }), /* @__PURE__ */ (0, w.jsx)(iC, {+ }), /* @__PURE__ */ (0, w.jsx)(sC, {href: "/data-cleanup#libraryProcessing",size: "small",trailingIcon: Pf,@@ -30910,17 +30922,17 @@ function NE(e) {}//#endregion//#region src/react/quality-goals/quality-goals.ts-var PE = "/api/quality-goals?limit=200", FE = ["quality-goals"], IE = (e) => eh(PE, e);-async function LE(e) {+var LE = "/api/quality-goals?limit=200", RE = ["quality-goals"], zE = (e) => eh(LE, e);+async function BE(e) {await hh.fetchQuery({- queryKey: FE,- queryFn: () => IE(e)+ queryKey: RE,+ queryFn: () => zE(e)});}-var RE = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;+var VE = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;//#endregion//#region src/react/quality-goals/quality-goals-page.tsx-function zE({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge: s }) {+function HE({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge: s }) {let c = () => i(r.id);return /* @__PURE__ */ (0, w.jsxs)("li", {"data-goal-id": r.id,@@ -30940,7 +30952,7 @@ function zE({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadgeclassName: "text-caption-1-regular text-text-secondary",children: "暂无预览"}), /* @__PURE__ */ (0, w.jsx)("img", {- src: RE(r),+ src: VE(r),alt: "",loading: "lazy",onError: (e) => e.currentTarget.remove(),@@ -30988,10 +31000,10 @@ function zE({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge})]});}-function BE(e) {+function UE(e) {let t = pt({- queryKey: FE,- queryFn: ({ signal: e }) => IE(e)+ queryKey: RE,+ queryFn: ({ signal: e }) => zE(e)}), n = t.data;if (!n) return /* @__PURE__ */ (0, w.jsx)(fh, { children: /* @__PURE__ */ (0, w.jsx)(Y, {tone: "error",@@ -31013,7 +31025,7 @@ function BE(e) {})]}), /* @__PURE__ */ (0, w.jsx)("ul", {className: "card-grid-cover gap-5",- children: r.map((t) => /* @__PURE__ */ (0, w.jsx)(zE, {+ children: r.map((t) => /* @__PURE__ */ (0, w.jsx)(HE, {item: t,...e}, t.id))@@ -31026,13 +31038,13 @@ function BE(e) {}//#endregion//#region src/selection.ts-function VE(e, t, n, r, i, a = i || !e.has(r)) {+function WE(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;}//#endregion//#region src/react/review/review.ts-var HE = "/api/review", UE = "/api/review/decision", WE = "/api/review/genre", GE = ["review"], KE = {+var GE = "/api/review", KE = "/api/review/decision", qE = "/api/review/genre", JE = ["review"], YE = {metadata_fields: "元数据字段",creator_tags: "创作者标签",studio_logos: "厂牌 Logo",@@ -31043,15 +31055,15 @@ var HE = "/api/review", UE = "/api/review/decision", WE = "/api/review/genre", Gfc2_similarity: "FC2 跨号相似",video_endcards: "片尾/出处证据",media_failure: "无法识别"-}, qE = Object.keys(KE), JE = "metadata_fields", YE = (e) => typeof e == "string" && Object.hasOwn(KE, e), XE = {+}, XE = Object.keys(YE), ZE = "metadata_fields", QE = (e) => typeof e == "string" && Object.hasOwn(YE, e), $E = {creator_tags: "creator",western_identity: "creator"};-function ZE(e, t) {+function eD(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 QE(e, t) {+function tD(e, t) {let n = /* @__PURE__ */ new Map();for (let r of e) {let e, i;@@ -31068,43 +31080,43 @@ function QE(e, t) {}return [...n.values()];}-function $E(e, t, n) {- return n && QE(e, t).find((e) => e.key === n)?.rows || e;+function nD(e, t, n) {+ return n && tD(e, t).find((e) => e.key === n)?.rows || e;}-function eD(e, t) {- let n = fx(e.length, 20), r = px(t, n);+function rD(e, t) {+ let n = hx(e.length, 20), r = gx(t, n);return {page: r,pages: n,rows: e.slice((r - 1) * 20, r * 20)};}-function tD(e) {+function iD(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 nD(e, t, n, r, i, a) {- return VE(e, t, n, r, i, a);+function aD(e, t, n, r, i, a) {+ return WE(e, t, n, r, i, a);}-function rD(e, t) {+function oD(e, t) {return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";}-function iD(e, t) {+function sD(e, t) {return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);}-var aD = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";-function oD(e, t) {- let n = iD(e, t), r = aD(e, t);+var cD = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";+function lD(e, t) {+ let n = sD(e, t), r = cD(e, t);return r ? `${n} · ${r}` : n;}-var sD = (e) => e.reason || e.evidence || e.note || e.decision_note || "", cD = (e) => String(e.tags || "").split("|").filter(Boolean), lD = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];-function uD(e) {+var uD = (e) => e.reason || e.evidence || e.note || e.decision_note || "", dD = (e) => String(e.tags || "").split("|").filter(Boolean), fD = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];+function pD(e) {let t = e.candidates || [];return {candidateKey: t.length === 1 ? t[0].candidate_key : "",assets: (e.preview_assets || []).map((e) => e.id)};}-function dD(e, t, n, r) {+function mD(e, t, n, r) {let i = !!t.asset_path && t.asset_mutation_revision != null;return {category: e,@@ -31120,19 +31132,19 @@ function dD(e, t, n, r) {...i ? { expected_revision: t.asset_mutation_revision } : {}};}-var fD = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", pD = (e) => eh(HE, e), mD = (e) => J(UE, e), hD = (e, t) => J(WE, {+var hD = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", gD = (e) => eh(GE, e), _D = (e) => J(KE, e), vD = (e, t) => J(qE, {genre: e,tag: t});-async function gD(e) {+async function yD(e) {await hh.fetchQuery({- queryKey: GE,- queryFn: () => pD(e)+ queryKey: JE,+ queryFn: () => gD(e)});}-function _D(e, t) {+function bD(e, t) {let n = new Set(t);- n.size && hh.setQueryData(GE, (t) => {+ n.size && hh.setQueryData(JE, (t) => {if (!t) return t;let r = t.sections[e] || [], i = r.filter((e) => !n.has(String(e.item_key)));return i.length === r.length ? t : {@@ -31148,17 +31160,17 @@ function _D(e, t) {};});}-var vD = () => hh.invalidateQueries({- queryKey: GE,+var xD = () => hh.invalidateQueries({+ queryKey: JE,exact: !0});-function yD(e, t) {- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${mx(e.fetched_at)} 的缓存` : e?.error || t;+function SD(e, t) {+ return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${_x(e.fetched_at)} 的缓存` : e?.error || t;}//#endregion//#region src/react/review/bulk-toolbar.tsx-function bD(e) {- let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = tD(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";+function CD(e) {+ let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = iD(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsxs)("div", {role: "group","aria-label": "复核筛选",@@ -31166,29 +31178,29 @@ function bD(e) {"data-glass-pane": "",className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",children: [- /* @__PURE__ */ (0, w.jsx)(kT, {+ /* @__PURE__ */ (0, w.jsx)(MT, {"aria-label": "筛选分组方式",size: "sm",selectedKey: n,onSelectionChange: (e) => {e !== null && r(String(e));},- children: t.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(AT, {+ children: t.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(NT, {id: e,children: t}, e))}),- i.length > 1 ? /* @__PURE__ */ (0, w.jsxs)(kT, {+ i.length > 1 ? /* @__PURE__ */ (0, w.jsxs)(MT, {"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",size: "sm",selectedKey: a || "*",onSelectionChange: (e) => {e !== null && o(String(e) === "*" ? "" : String(e));},- children: [/* @__PURE__ */ (0, w.jsx)(AT, {+ children: [/* @__PURE__ */ (0, w.jsx)(NT, {id: "*",children: "全部分类"- }), i.map((e) => /* @__PURE__ */ (0, w.jsx)(AT, {+ }), i.map((e) => /* @__PURE__ */ (0, w.jsx)(NT, {id: e.key,children: `${e.title} · ${e.rows.length}`}, e.key))]@@ -31207,11 +31219,11 @@ function bD(e) {children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"})]- }), c.size ? /* @__PURE__ */ (0, w.jsxs)(jT, {+ }), c.size ? /* @__PURE__ */ (0, w.jsxs)(PT, {label: "复核所选项目",count: `已选 ${c.size} 项`,children: [- b ? /* @__PURE__ */ (0, w.jsxs)(kT, {+ b ? /* @__PURE__ */ (0, w.jsxs)(MT, {"aria-label": "统一选择来源",size: "sm",selectedKey: "",@@ -31219,10 +31231,10 @@ function bD(e) {onSelectionChange: (e) => {e !== null && e !== "" && h(String(e));},- children: [/* @__PURE__ */ (0, w.jsx)(AT, {+ children: [/* @__PURE__ */ (0, w.jsx)(NT, {id: "",children: x- }), y.map((e) => /* @__PURE__ */ (0, w.jsx)(AT, {+ }), y.map((e) => /* @__PURE__ */ (0, w.jsx)(NT, {id: e,children: e}, e))]@@ -31258,7 +31270,7 @@ function bD(e) {}//#endregion//#region src/react/review/candidate-form.tsx-var xD = {+var wD = {title: "标题",original_title: "原标题",runtime: "来源时长",@@ -31268,14 +31280,14 @@ var xD = {cover_url: "封面",screenshot_urls: "截图",trailer_url: "预告片"-}, SD = "reviewgenretags";-function CD({ tags: e }) {+}, TD = "reviewgenretags";+function ED({ tags: e }) {return e.length ? /* @__PURE__ */ (0, w.jsx)("datalist", {- id: SD,+ id: TD,children: e.map((e) => /* @__PURE__ */ (0, w.jsx)("option", { value: e }, e))}) : null;}-function wD({ candidate: e, selectable: t = !1 }) {+function DD({ candidate: e, selectable: t = !1 }) {let n = Object.entries(e.catalog_evidence || {}).filter(([, e]) => e && e.display_value), r = e.content_id || e.provider_id;return /* @__PURE__ */ (0, w.jsxs)("span", {className: "flex min-w-0 flex-1 flex-col",@@ -31312,7 +31324,7 @@ function wD({ candidate: e, selectable: t = !1 }) {children: [/* @__PURE__ */ (0, w.jsx)("dt", {className: "text-body-2-regular text-text-secondary",- children: xD[e] || e+ children: wD[e] || e}),/* @__PURE__ */ (0, w.jsx)("dd", {className: "min-w-0 text-body-2-regular break-words text-text-primary",@@ -31327,11 +31339,11 @@ function wD({ candidate: e, selectable: t = !1 }) {}) : null]});}-function TD({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {+function OD({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {let a = e.candidates || [];return a.length ? a.length === 1 ? /* @__PURE__ */ (0, w.jsx)("div", {className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",- children: /* @__PURE__ */ (0, w.jsx)(wD, { candidate: a[0] })+ children: /* @__PURE__ */ (0, w.jsx)(DD, { candidate: a[0] })}) : /* @__PURE__ */ (0, w.jsx)(Ev, {"aria-label": `${t || "候选"}的来源`,value: n,@@ -31341,22 +31353,22 @@ function TD({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {children: a.map((e) => /* @__PURE__ */ (0, w.jsx)(Dv, {value: e.candidate_key,className: "group flex cursor-pointer items-center gap-2 overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:border-border-button-active data-disabled:cursor-not-allowed",- children: /* @__PURE__ */ (0, w.jsx)(wD, {+ children: /* @__PURE__ */ (0, w.jsx)(DD, {candidate: e,selectable: !0})}, e.candidate_key))}) : null;}-function ED({ genre: e, tags: t, locked: n, toast: r }) {+function kD({ genre: e, tags: t, locked: n, toast: r }) {let [i, a] = (0, C.useState)(""), [o, s] = (0, C.useState)(""), c = mt({- mutationFn: (t) => hD(e, t),+ mutationFn: (t) => vD(e, t),onSuccess: async (t, n) => {if (!t.ok) {s(t.error || "服务端拒绝了这次收录");return;}- r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await vD();+ r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await xD();},onError: (e) => s(q(e))}), l = () => {@@ -31384,7 +31396,7 @@ function ED({ genre: e, tags: t, locked: n, toast: r }) {className: "min-w-40 flex-1",children: /* @__PURE__ */ (0, w.jsx)(ob, {size: "small",- list: t.length ? SD : void 0,+ list: t.length ? TD : void 0,autoComplete: "off",placeholder: "中文标签",onKeyDown: (e) => {@@ -31416,8 +31428,8 @@ function ED({ genre: e, tags: t, locked: n, toast: r }) {]});}-function DD({ row: e, tags: t, locked: n, toast: r }) {- let i = lD(e);+function AD({ row: e, tags: t, locked: n, toast: r }) {+ let i = fD(e);return i.length ? /* @__PURE__ */ (0, w.jsxs)("div", {role: "group","aria-label": "未收录 genre",@@ -31425,7 +31437,7 @@ function DD({ row: e, tags: t, locked: n, toast: r }) {children: [/* @__PURE__ */ (0, w.jsx)("h5", {className: "text-body-2-medium text-text-secondary",children: `未收录 genre · ${i.length}`- }), i.map((e) => /* @__PURE__ */ (0, w.jsx)(ED, {+ }), i.map((e) => /* @__PURE__ */ (0, w.jsx)(kD, {genre: e,tags: t,locked: n,@@ -31435,9 +31447,9 @@ function DD({ row: e, tags: t, locked: n, toast: r }) {}//#endregion//#region src/react/review/review-evidence.tsx-var OD = (e = "") => /^https?:\/\//i.test(e) ? e : "", kD = (e = "") => OD(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");-function AD({ url: e }) {- let t = kD(e || ""), [n, r] = (0, C.useState)(!1);+var jD = (e = "") => /^https?:\/\//i.test(e) ? e : "", MD = (e = "") => jD(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");+function ND({ url: e }) {+ let t = MD(e || ""), [n, r] = (0, C.useState)(!1);return /* @__PURE__ */ (0, w.jsx)("div", {className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",children: t && !n ? /* @__PURE__ */ (0, w.jsx)("img", {@@ -31452,7 +31464,7 @@ function AD({ url: e }) {})});}-function jD({ asset: e, openItem: t }) {+function PD({ asset: e, openItem: t }) {let n = e.name || "";return /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",@@ -31485,7 +31497,7 @@ function jD({ asset: e, openItem: t }) {})]});}-function MD({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {+function FD({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {return /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex min-w-0 items-center gap-3",children: [/* @__PURE__ */ (0, w.jsx)("button", {@@ -31508,8 +31520,8 @@ function MD({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {})]});}-function ND({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {- let o = OD(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));+function ID({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {+ let o = jD(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));return /* @__PURE__ */ (0, w.jsxs)("section", {className: "flex flex-col gap-3",children: [@@ -31534,7 +31546,7 @@ function ND({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, notchildren: `查看全部 ${c.toLocaleString()} 部作品`})]}),- /* @__PURE__ */ (0, w.jsx)(AD, { url: e.preview_url }),+ /* @__PURE__ */ (0, w.jsx)(ND, { url: e.preview_url }),/* @__PURE__ */ (0, w.jsx)("p", {className: "text-body-2-regular text-text-secondary",children: "通过后记录身份判断。"@@ -31577,7 +31589,7 @@ function ND({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, not]});}-function PD({ assets: e, picked: t, onPicked: n, locked: r }) {+function LD({ assets: e, picked: t, onPicked: n, locked: r }) {let [i, a] = (0, C.useState)(null), o = new Set(t), s = (t, s) => {if (r) return;let c = new Set(o);@@ -31633,7 +31645,7 @@ function PD({ assets: e, picked: t, onPicked: n, locked: r }) {}),/* @__PURE__ */ (0, w.jsx)("span", {className: "absolute top-1 right-1",- children: /* @__PURE__ */ (0, w.jsx)(US, {+ children: /* @__PURE__ */ (0, w.jsx)(KS, {size: "sm",state: {isSelected: n,@@ -31653,19 +31665,19 @@ function PD({ assets: e, picked: t, onPicked: n, locked: r }) {}//#endregion//#region src/react/review/review-card.tsx-var FD = ch({+var RD = ch({variant: "outlined",padding: "none",className: "flex flex-col gap-4 px-5 pt-4"-}), ID = "flex min-h-6 min-w-0 items-center", LD = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";-function RD(e) {- let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, C.useRef)(!1), m = Sb(), h = Sb(), g = t === "metadata_fields", _ = XE[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = oD(t, n), x = aD(t, n), S = iD(t, n), T = sD(n), E = cD(n), D = rD(t, n), O = n.comparison_assets || [], k = n.preview_assets || [], A = String(n.decision || "pending") !== "pending", j = O.length > 1 ? /* @__PURE__ */ (0, w.jsx)("div", {+}), zD = "flex min-h-6 min-w-0 items-center", BD = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";+function VD(e) {+ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, C.useRef)(!1), m = Sb(), h = Sb(), g = t === "metadata_fields", _ = $E[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = lD(t, n), x = cD(t, n), S = sD(t, n), T = uD(n), E = dD(n), D = oD(t, n), O = n.comparison_assets || [], k = n.preview_assets || [], A = String(n.decision || "pending") !== "pending", j = O.length > 1 ? /* @__PURE__ */ (0, w.jsx)("div", {className: "flex flex-col gap-3",- children: O.map((e) => /* @__PURE__ */ (0, w.jsx)(jD, {+ children: O.map((e) => /* @__PURE__ */ (0, w.jsx)(PD, {asset: e,openItem: f.openItem}, e.id))- }) : y ? /* @__PURE__ */ (0, w.jsx)(MD, {+ }) : y ? /* @__PURE__ */ (0, w.jsx)(FD, {kind: _,name: v,works: Number(n.video_count || n.videos || 0),@@ -31675,14 +31687,14 @@ function RD(e) {has_image: !!n.has_image,avatar_focus: n.avatar_focus} : null, null, _)- }) : n.asset_id ? /* @__PURE__ */ (0, w.jsx)(jD, {+ }) : n.asset_id ? /* @__PURE__ */ (0, w.jsx)(PD, {openItem: f.openItem,asset: {id: n.asset_id,name: n.asset_name,preview_url: n.asset_preview_url}- }) : null, M = g ? /* @__PURE__ */ (0, w.jsx)(TD, {+ }) : null, M = g ? /* @__PURE__ */ (0, w.jsx)(OD, {row: n,fieldName: x,value: r.candidateKey,@@ -31691,7 +31703,7 @@ function RD(e) {candidateKey: e}),locked: s- }) : t === "creator_tags" ? k.length ? /* @__PURE__ */ (0, w.jsx)(PD, {+ }) : t === "creator_tags" ? k.length ? /* @__PURE__ */ (0, w.jsx)(LD, {assets: k,picked: r.assets,locked: s,@@ -31704,15 +31716,15 @@ function RD(e) {icon: Zf,title: "这批作品尚未抽帧",children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, w.jsx)(ND, {+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, w.jsx)(ID, {row: n,openItem: f.openItem,openEntity: f.openEntity,onReveal: f.onReveal,revealing: f.revealing,note: f.revealNote- }) : /* @__PURE__ */ (0, w.jsx)(AD, { url: n.preview_url }), ee = y ? j : x ? /* @__PURE__ */ (0, w.jsxs)("h4", {- className: `${ID} flex-wrap gap-2`,+ }) : /* @__PURE__ */ (0, w.jsx)(ND, { url: n.preview_url }), ee = y ? j : x ? /* @__PURE__ */ (0, w.jsxs)("h4", {+ className: `${zD} flex-wrap gap-2`,children: [/* @__PURE__ */ (0, w.jsx)(Ym, {variant: "caption",color: "blue",@@ -31723,7 +31735,7 @@ function RD(e) {children: S})]}) : /* @__PURE__ */ (0, w.jsx)("h4", {- className: ID,+ className: zD,children: /* @__PURE__ */ (0, w.jsx)("span", {title: b,className: "min-w-0 truncate text-body-medium text-text-primary",@@ -31733,20 +31745,20 @@ function RD(e) {return /* @__PURE__ */ (0, w.jsxs)("section", {"aria-label": b,"data-review-key": n.item_key,- className: `${FD} ${LD(t)} overflow-hidden`,+ className: `${RD} ${BD(t)} overflow-hidden`,children: [/* @__PURE__ */ (0, w.jsxs)("header", {className: "flex min-w-0 shrink-0 items-start gap-2",children: [s ? null : /* @__PURE__ */ (0, w.jsx)("span", {- className: `${ID} shrink-0`,+ className: `${zD} shrink-0`,onPointerDownCapture: (e) => {p.current = e.shiftKey;},onKeyDownCapture: (e) => {p.current = e.shiftKey;},- children: /* @__PURE__ */ (0, w.jsx)(WS, {+ children: /* @__PURE__ */ (0, w.jsx)(qS, {isSelected: a,"aria-label": `选择 ${b}`,onChange: (e) => o(p.current, e)@@ -31790,7 +31802,7 @@ function RD(e) {})}) : null,M,- /* @__PURE__ */ (0, w.jsx)(DD, {+ /* @__PURE__ */ (0, w.jsx)(AD, {row: n,tags: u,locked: s,@@ -31852,8 +31864,8 @@ function RD(e) {}//#endregion//#region src/react/review/review-page.tsx-var zD = "flex min-h-9 cursor-pointer items-center justify-between gap-2 rounded-2lg p-2 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-tertiary-default data-selected:text-text-primary review-tight:min-h-10 review-tight:px-3 review-tight:py-2.5";-function BD({ page: e, pages: t, onPage: n }) {+var HD = "flex min-h-9 cursor-pointer items-center justify-between gap-2 rounded-2lg p-2 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-tertiary-default data-selected:text-text-primary review-tight:min-h-10 review-tight:px-3 review-tight:py-2.5";+function UD({ page: e, pages: t, onPage: n }) {return t <= 1 ? null : /* @__PURE__ */ (0, w.jsxs)("nav", {"aria-label": "复核分页",className: "flex w-full flex-wrap items-center justify-between gap-2",@@ -31867,7 +31879,7 @@ function BD({ page: e, pages: t, onPage: n }) {}),/* @__PURE__ */ (0, w.jsx)("ul", {className: "flex flex-wrap items-center gap-1",- children: dx(e, t).map((t, r) => /* @__PURE__ */ (0, w.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, w.jsx)("span", {+ children: mx(e, t).map((t, r) => /* @__PURE__ */ (0, w.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, w.jsx)("span", {"aria-hidden": !0,className: "px-1 text-body-2-regular text-text-tertiary",children: "…"@@ -31890,33 +31902,33 @@ function BD({ page: e, pages: t, onPage: n }) {]});}-function VD(e) {- let { route: t, openItem: n, openEntity: r, revealSource: i, avatarInner: a, toast: o, readOnly: s, readOnlyMessage: c, writerUrl: l } = e, [u, d] = (0, C.useState)(YE(e.category) ? e.category : JE), [f, p] = (0, C.useState)("candidates"), [m, h] = (0, C.useState)(""), [g, _] = (0, C.useState)(1), [v, y] = (0, C.useState)(/* @__PURE__ */ new Set()), [b, x] = (0, C.useState)(/* @__PURE__ */ new Map()), [S, T] = (0, C.useState)(/* @__PURE__ */ new Map()), [E, D] = (0, C.useState)(""), O = (0, C.useRef)(null), [k, A] = (0, C.useState)(0), [j, M] = (0, C.useState)(""), ee = (0, C.useRef)(!0);+function WD(e) {+ let { route: t, openItem: n, openEntity: r, revealSource: i, avatarInner: a, toast: o, readOnly: s, readOnlyMessage: c, writerUrl: l } = e, [u, d] = (0, C.useState)(QE(e.category) ? e.category : ZE), [f, p] = (0, C.useState)("candidates"), [m, h] = (0, C.useState)(""), [g, _] = (0, C.useState)(1), [v, y] = (0, C.useState)(/* @__PURE__ */ new Set()), [b, x] = (0, C.useState)(/* @__PURE__ */ new Map()), [S, T] = (0, C.useState)(/* @__PURE__ */ new Map()), [E, D] = (0, C.useState)(""), O = (0, C.useRef)(null), [k, A] = (0, C.useState)(0), [j, M] = (0, C.useState)(""), ee = (0, C.useRef)(!0);(0, C.useEffect)(() => () => {ee.current = !1;}, []);let te = pt({- queryKey: GE,- queryFn: ({ signal: e }) => pD(e)+ queryKey: JE,+ queryFn: ({ signal: e }) => gD(e)}).data || {sections: {},counts: {}- }, ne = te.sections[u] || [], N = u === "metadata_fields", re = s, ie = ZE(ne, N), ae = ie.some(([e]) => e === f) ? f : "candidates", oe = QE(ne, ae), se = oe.some((e) => e.key === m) ? m : "", ce = eD($E(ne, ae, se), g), le = ce.rows.map((e) => e.item_key), ue = new Set(le), de = oe.map((e) => ({+ }, ne = te.sections[u] || [], N = u === "metadata_fields", re = s, ie = eD(ne, N), ae = ie.some(([e]) => e === f) ? f : "candidates", oe = tD(ne, ae), se = oe.some((e) => e.key === m) ? m : "", ce = rD(nD(ne, ae, se), g), le = ce.rows.map((e) => e.item_key), ue = new Set(le), de = oe.map((e) => ({...e,rows: e.rows.filter((e) => ue.has(e.item_key))- })).filter((e) => e.rows.length), fe = (e) => b.get(e.item_key) || uD(e), pe = ne.filter((e) => v.has(e.item_key)), me = (e) => {+ })).filter((e) => e.rows.length), fe = (e) => b.get(e.item_key) || pD(e), pe = ne.filter((e) => v.has(e.item_key)), me = (e) => {let t = new Set(e);y((e) => new Set([...e].filter((e) => !t.has(e)))), x((e) => new Map([...e].filter(([e]) => !t.has(e)))), T((e) => new Map([...e].filter(([e]) => !t.has(e))));}, P = (e, t) => T((n) => new Map(n).set(e, t)), he = (e) => {d(e), p("candidates"), h(""), _(1), y(/* @__PURE__ */ new Set()), x(/* @__PURE__ */ new Map()), T(/* @__PURE__ */ new Map()), D(""), O.current = null, t({ category: e === "metadata_fields" ? "" : e });}, ge = mt({- mutationFn: ({ row: e, status: t }) => mD(dD(u, e, t, fe(e))),+ mutationFn: ({ row: e, status: t }) => _D(mD(u, e, t, fe(e))),onSuccess: (e, { row: t, status: n }) => {if (!e.ok) {P(t.item_key, e.error || "服务端拒绝了这次判定");return;}- _D(u, [t.item_key]), me([t.item_key]), o(fD(n));+ bD(u, [t.item_key]), me([t.item_key]), o(hD(n));},onError: (e, { row: t }) => P(t.item_key, q(e))}), _e = mt({@@ -31926,7 +31938,7 @@ function VD(e) {if (!ee.current) break;D(`正在处理 ${i} / ${t.length}`);try {- let t = await mD(dD(u, a, e, fe(a)));+ let t = await _D(mD(u, a, e, fe(a)));if (!t.ok) throw Error(t.error || "服务端未采用该项");n.push(a.item_key);} catch (e) {@@ -31940,7 +31952,7 @@ function VD(e) {};},onSuccess: ({ status: e, done: t, failures: n }) => {- _D(u, t), me(t), n.forEach(([e, t]) => P(e, t)), D(""), o(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));+ bD(u, t), me(t), n.forEach(([e, t]) => P(e, t)), D(""), o(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));},onError: (e) => {D(q(e));@@ -31970,7 +31982,7 @@ function VD(e) {A(e), M("");let t = await i(e);ee.current && (A(0), M(t));- }, xe = yD(te.mirror, c), Se = te.genre_tags || [], Ce = {+ }, xe = SD(te.mirror, c), Se = te.genre_tags || [], Ce = {openItem: n,openEntity: r,onReveal: be,@@ -31995,12 +32007,12 @@ function VD(e) {}) : void 0,children: xe}) : null,- /* @__PURE__ */ (0, w.jsx)(CD, { tags: Se }),+ /* @__PURE__ */ (0, w.jsx)(ED, { tags: Se }),/* @__PURE__ */ (0, w.jsxs)(Uy, {selectedKey: u,onSelectionChange: (e) => {let t = String(e);- YE(t) && he(t);+ QE(t) && he(t);},className: "flex flex-col gap-5 review-split:flex-row-reverse review-split:items-start review-split:gap-6",children: [/* @__PURE__ */ (0, w.jsxs)("div", {@@ -32012,12 +32024,12 @@ function VD(e) {}), /* @__PURE__ */ (0, w.jsx)(Gy, {"aria-labelledby": "reviewcategories",className: "flex flex-wrap gap-1 review-split:flex-col review-split:flex-nowrap review-split:items-stretch",- children: qE.map((e) => {+ children: XE.map((e) => {let t = Number(te.counts[e] || 0);return /* @__PURE__ */ (0, w.jsxs)(qy, {id: e,- className: zD,- children: [KE[e], t ? /* @__PURE__ */ (0, w.jsx)("span", {+ className: HD,+ children: [YE[e], t ? /* @__PURE__ */ (0, w.jsx)("span", {className: "tabular-nums text-caption-1-medium text-text-secondary",children: t.toLocaleString()}) : null]@@ -32028,7 +32040,7 @@ function VD(e) {id: u,className: "flex min-w-0 flex-1 flex-col gap-5",children: [- ne.length && !re ? /* @__PURE__ */ (0, w.jsx)(bD, {+ ne.length && !re ? /* @__PURE__ */ (0, w.jsx)(CD, {groupOptions: ie,groupBy: ae,onGroupBy: (e) => {@@ -32044,7 +32056,7 @@ function VD(e) {onSelected: y,selectedRows: pe,metadata: N,- approvable: pe.every((e) => rD(u, e)),+ approvable: pe.every((e) => oD(u, e)),busy: _e.isPending,feedback: E,onUnifySource: ye,@@ -32069,7 +32081,7 @@ function VD(e) {})]}) : null, /* @__PURE__ */ (0, w.jsx)("div", {className: "review-grid gap-5",- children: e.rows.map((e) => /* @__PURE__ */ (0, w.jsx)(RD, {+ children: e.rows.map((e) => /* @__PURE__ */ (0, w.jsx)(VD, {category: u,row: e,choice: fe(e),@@ -32077,7 +32089,7 @@ function VD(e) {selected: v.has(e.item_key),onSelect: (t, n) => y((r) => {let i = new Set(r);- return O.current = nD(i, le, O.current, e.item_key, t, n), i;+ return O.current = aD(i, le, O.current, e.item_key, t, n), i;}),locked: re,busy: ge.isPending && ge.variables?.row.item_key === e.item_key,@@ -32097,7 +32109,7 @@ function VD(e) {title: "暂无候选",children: "该分类当前没有待人工复核的项目。"}),- /* @__PURE__ */ (0, w.jsx)(BD, {+ /* @__PURE__ */ (0, w.jsx)(UD, {page: ce.page,pages: ce.pages,onPage: _@@ -32110,30 +32122,30 @@ function VD(e) {}//#endregion//#region src/react/scraping/scraping.ts-var HD = "/api/scraping", UD = "/api/scraping/settings", WD = "/api/scraping/check", GD = "/api/scraping/cover", KD = "/api/scraping/amane-bridge", qD = "/api/scraping/amane-bridge/check", JD = "/api/scraping/amane-bridge/rebuild", YD = ["scraping"], XD = ["scraping", "cover"], ZD = ["scraping", "amane-bridge"], QD = (e) => eh(HD, e), $D = (e) => eh(GD, e), eO = (e) => eh(KD, e);-async function tO(e) {+var GD = "/api/scraping", KD = "/api/scraping/settings", qD = "/api/scraping/check", JD = "/api/scraping/cover", YD = "/api/scraping/amane-bridge", XD = "/api/scraping/amane-bridge/check", ZD = "/api/scraping/amane-bridge/rebuild", QD = ["scraping"], $D = ["scraping", "cover"], eO = ["scraping", "amane-bridge"], tO = (e) => eh(GD, e), nO = (e) => eh(JD, e), rO = (e) => eh(YD, e);+async function iO(e) {await Promise.all([hh.fetchQuery({- queryKey: YD,- queryFn: () => QD(e)+ queryKey: QD,+ queryFn: () => tO(e)}),hh.fetchQuery({- queryKey: XD,- queryFn: () => $D(e)+ queryKey: $D,+ queryFn: () => nO(e)}),hh.fetchQuery({- queryKey: ZD,- queryFn: () => eO(e)+ queryKey: eO,+ queryFn: () => rO(e)})]);}-function nO(e, t) {+function aO(e, t) {return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.message ? `。${e.message}` : "");}//#endregion//#region src/react/scraping/scraping-page.tsx-var rO = [["peach", "Peach 代理"], ["direct", "直接连接"]], iO = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];-function aO({ source: e }) {+var oO = [["peach", "Peach 代理"], ["direct", "直接连接"]], sO = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];+function cO({ source: e }) {return /* @__PURE__ */ (0, w.jsx)("img", {src: a({ source: e }),alt: "",@@ -32144,13 +32156,13 @@ function aO({ source: e }) {className: "size-4 shrink-0 rounded-sm object-contain"});}-function oO({ source: e, toast: t }) {- let [n, r] = (0, C.useState)(e.network), [i, a] = (0, C.useState)(""), [o, s] = (0, C.useState)(""), [c, l] = (0, C.useState)(iO[0][0]), [u, d] = (0, C.useState)(""), [f, p] = (0, C.useState)(""), m = (0, C.useRef)(null);+function lO({ source: e, toast: t }) {+ let [n, r] = (0, C.useState)(e.network), [i, a] = (0, C.useState)(""), [o, s] = (0, C.useState)(""), [c, l] = (0, C.useState)(sO[0][0]), [u, d] = (0, C.useState)(""), [f, p] = (0, C.useState)(""), m = (0, C.useRef)(null);function h() {a(""), s(""), d(""), p(""), m.current && (m.current.value = "");}let g = mt({- mutationFn: (t) => J(UD, {+ mutationFn: (t) => J(KD, {source: e.source,network: n,cookie: i,@@ -32158,12 +32170,12 @@ function oO({ source: e, toast: t }) {revoke: t}),onSuccess: (e, n) => {- hh.setQueryData(YD, (t) => t && {+ hh.setQueryData(QD, (t) => t && {...t,sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");}- }), _ = mt({ mutationFn: () => J(WD, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {+ }), _ = mt({ mutationFn: () => J(qD, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {e.preventDefault(), !v && (_.reset(), g.mutate(!1));}, b = () => {v || (_.reset(), g.mutate(!0));@@ -32188,37 +32200,37 @@ function oO({ source: e, toast: t }) {}}let T = f || (g.error ? q(g.error) : "") || (_.error ? q(_.error) : ""), E = _.data?.results ?? [], D = n === "peach" || e.accepts_cookie || e.browser || !!T || E.length > 0;- return /* @__PURE__ */ (0, w.jsxs)(aC, {+ return /* @__PURE__ */ (0, w.jsxs)(cC, {title: e.label,onSubmit: y,aside: /* @__PURE__ */ (0, w.jsxs)("span", {className: "flex min-w-0 items-center gap-1",- children: [/* @__PURE__ */ (0, w.jsx)(aO, { source: e.source }), /* @__PURE__ */ (0, w.jsx)(fC, {+ children: [/* @__PURE__ */ (0, w.jsx)(cO, { source: e.source }), /* @__PURE__ */ (0, w.jsx)(hC, {href: e.login,children: e.login})]}),children: [- /* @__PURE__ */ (0, w.jsx)(oC, { children: /* @__PURE__ */ (0, w.jsx)(nC, {+ /* @__PURE__ */ (0, w.jsx)(lC, { children: /* @__PURE__ */ (0, w.jsx)(aC, {label: "连接方式",- children: /* @__PURE__ */ (0, w.jsx)(kT, {+ children: /* @__PURE__ */ (0, w.jsx)(MT, {"aria-label": "连接方式",selectedKey: n,onSelectionChange: (e) => {e !== null && r(String(e));},- children: rO.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(AT, {+ children: oO.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(NT, {id: e,children: t}, e))})}) }),- D ? /* @__PURE__ */ (0, w.jsxs)(sC, {+ D ? /* @__PURE__ */ (0, w.jsxs)(uC, {divided: !0,children: [n === "peach" ? /* @__PURE__ */ (0, w.jsx)("span", {className: "self-start",- children: /* @__PURE__ */ (0, w.jsx)(iC, {+ children: /* @__PURE__ */ (0, w.jsx)(sC, {href: "/configuration#peachProxy",size: "small",trailingIcon: Pf,@@ -32240,10 +32252,10 @@ function oO({ source: e, toast: t }) {onChange: (e) => {l(e), h();},- className: FS,- children: iO.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(Dv, {+ className: RS,+ children: sO.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(Dv, {value: e,- className: IS,+ className: zS,children: t}, e))}),@@ -32256,7 +32268,7 @@ function oO({ source: e, toast: t }) {}) : /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-col gap-2",children: [- /* @__PURE__ */ (0, w.jsx)(dC, { children: "Netscape Cookie 文件(.txt)" }),+ /* @__PURE__ */ (0, w.jsx)(mC, { children: "Netscape Cookie 文件(.txt)" }),/* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-wrap items-center gap-3",children: [/* @__PURE__ */ (0, w.jsx)(K, {@@ -32282,14 +32294,14 @@ function oO({ source: e, toast: t }) {]})] }) : null,- T ? /* @__PURE__ */ (0, w.jsx)(uC, { children: T }) : null,+ T ? /* @__PURE__ */ (0, w.jsx)(pC, { children: T }) : null,E.map((t) => /* @__PURE__ */ (0, w.jsx)(Y, {tone: t.ok ? "success" : "error",- children: nO(t, e.label)+ children: aO(t, e.label)}, t.label))]}) : null,- /* @__PURE__ */ (0, w.jsxs)(cC, { children: [+ /* @__PURE__ */ (0, w.jsxs)(dC, { children: [e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, w.jsx)(K, {variant: "secondary",onClick: b,@@ -32311,21 +32323,21 @@ function oO({ source: e, toast: t }) {]});}-function sO({ toast: e }) {- let [t, n] = (0, C.useState)(""), { running: r, outcome: i, start: a } = $S({- queryKey: XD,- queryFn: ({ signal: e }) => $D(e),- start: () => J(GD, { code: t }),+function uO({ toast: e }) {+ let [t, n] = (0, C.useState)(""), { running: r, outcome: i, start: a } = nC({+ queryKey: $D,+ queryFn: ({ signal: e }) => nO(e),+ start: () => J(JD, { code: t }),onFinish: (t) => {t.status === "complete" && e(t.result || "封面采集完成");}}), o = (e) => {e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();}, s = a.error ? q(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";- return /* @__PURE__ */ (0, w.jsx)(aC, {+ return /* @__PURE__ */ (0, w.jsx)(cC, {title: "高清封面",onSubmit: o,- children: /* @__PURE__ */ (0, w.jsxs)(sC, { children: [+ children: /* @__PURE__ */ (0, w.jsxs)(uC, { children: [/* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-wrap items-end gap-2",children: [/* @__PURE__ */ (0, w.jsx)("div", {@@ -32357,11 +32369,11 @@ function sO({ toast: e }) {] })});}-function cO({ toast: e }) {- let { query: t, running: n, outcome: r, start: i } = $S({- queryKey: ZD,- queryFn: ({ signal: e }) => eO(e),- start: () => J(JD, {}),+function dO({ toast: e }) {+ let { query: t, running: n, outcome: r, start: i } = nC({+ queryKey: eO,+ queryFn: ({ signal: e }) => rO(e),+ start: () => J(ZD, {}),jobOf: (e) => e.job,withJob: (e, t) => e && {...e,@@ -32370,44 +32382,44 @@ function cO({ toast: e }) {onFinish: (t) => {t.status === "complete" && e(t.result || "amane 桥已重建");}- }), a = mt({ mutationFn: () => J(qD, {}) }), o = t.data;- if (!o) return t.error ? /* @__PURE__ */ (0, w.jsx)(aC, {+ }), a = mt({ mutationFn: () => J(XD, {}) }), o = t.data;+ if (!o) return t.error ? /* @__PURE__ */ (0, w.jsx)(cC, {title: "amane 桥",- children: /* @__PURE__ */ (0, w.jsx)(sC, { children: /* @__PURE__ */ (0, w.jsx)(Y, {+ children: /* @__PURE__ */ (0, w.jsx)(uC, { children: /* @__PURE__ */ (0, w.jsx)(Y, {tone: "error",children: q(t.error)}) })}) : null;let s = n || i.isPending || a.isPending, c = i.error ? q(i.error) : a.error ? q(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";- return /* @__PURE__ */ (0, w.jsxs)(aC, {+ return /* @__PURE__ */ (0, w.jsxs)(cC, {title: "amane 桥",- aside: /* @__PURE__ */ (0, w.jsx)(fC, {+ aside: /* @__PURE__ */ (0, w.jsx)(hC, {href: o.repository,children: o.repository}),children: [- /* @__PURE__ */ (0, w.jsxs)(pC, { children: [- /* @__PURE__ */ (0, w.jsxs)(mC, {+ /* @__PURE__ */ (0, w.jsxs)(gC, { children: [+ /* @__PURE__ */ (0, w.jsxs)(_C, {term: "钉住的版本",children: [o.version ? `${o.version} · ` : "", o.revision.slice(0, 12)]}),- /* @__PURE__ */ (0, w.jsx)(mC, {+ /* @__PURE__ */ (0, w.jsx)(_C, {term: "上游最新版本",children: a.data?.latest ?? "尚未检查"}),- /* @__PURE__ */ (0, w.jsx)(mC, {+ /* @__PURE__ */ (0, w.jsx)(_C, {term: "运行环境",children: o.installed ? "已安装" : "未安装"}),- /* @__PURE__ */ (0, w.jsx)(mC, {+ /* @__PURE__ */ (0, w.jsx)(_C, {term: "开放的站",children: o.sites.map((e) => e.label).join("、")})] }),- /* @__PURE__ */ (0, w.jsxs)(sC, {+ /* @__PURE__ */ (0, w.jsxs)(uC, {divided: !0,children: [- /* @__PURE__ */ (0, w.jsxs)(lC, { children: [+ /* @__PURE__ */ (0, w.jsxs)(fC, { children: ["这几站由 amane(",o.license,")的解析器经独立子进程回答,运行环境按钉住的版本单独安装, 不随上游自动升级;换版本要人读过上游改动再改清单。首次安装约需下载 98 MB。"@@ -32423,7 +32435,7 @@ function cO({ toast: e }) {}) : null]}),- /* @__PURE__ */ (0, w.jsxs)(cC, { children: [/* @__PURE__ */ (0, w.jsx)(K, {+ /* @__PURE__ */ (0, w.jsxs)(dC, { children: [/* @__PURE__ */ (0, w.jsx)(K, {variant: "secondary",onClick: () => {s || a.mutate();@@ -32440,22 +32452,22 @@ function cO({ toast: e }) {]});}-function lO({ toast: e }) {+function fO({ toast: e }) {let t = pt({- queryKey: YD,- queryFn: ({ signal: e }) => QD(e)+ queryKey: QD,+ queryFn: ({ signal: e }) => tO(e)}), n = t.data;return n ? /* @__PURE__ */ (0, w.jsxs)(fh, { children: [/* @__PURE__ */ (0, w.jsx)("p", {className: "text-body-2-regular text-text-secondary",children: "高清图片可能要经代理才能下载,先检查连接。"}),- /* @__PURE__ */ (0, w.jsx)(sO, { toast: e }),- (n.sources || []).map((t) => /* @__PURE__ */ (0, w.jsx)(oO, {+ /* @__PURE__ */ (0, w.jsx)(uO, { toast: e }),+ (n.sources || []).map((t) => /* @__PURE__ */ (0, w.jsx)(lO, {source: t,toast: e}, t.source)),- /* @__PURE__ */ (0, w.jsx)(cO, { toast: e })+ /* @__PURE__ */ (0, w.jsx)(dO, { toast: e })] }) : /* @__PURE__ */ (0, w.jsx)(fh, { children: /* @__PURE__ */ (0, w.jsx)(Y, {tone: "error",title: "读取失败",@@ -32464,21 +32476,21 @@ function lO({ toast: e }) {}//#endregion//#region src/configuration-endpoints.ts-var uO = "/api/configuration", dO = "/api/pick-folder", fO = ["configuration"], pO = (e) => eh(uO, e);-async function mO(e) {+var pO = "/api/configuration", mO = "/api/pick-folder", hO = ["configuration"], gO = (e) => eh(pO, e);+async function _O(e) {await hh.fetchQuery({- queryKey: fO,- queryFn: () => pO(e)+ queryKey: hO,+ queryFn: () => gO(e)});}//#endregion//#region src/react/settings/entry-links-settings.tsx-function hO({ initial: e, receipt: t }) {+function vO({ initial: e, receipt: t }) {let [n, r] = (0, C.useState)(e.sites), i = mh(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {...n,host: t} : n));- return /* @__PURE__ */ (0, w.jsxs)(aC, {+ return /* @__PURE__ */ (0, w.jsxs)(cC, {title: "外部入口",onSubmit: (e) => {e.preventDefault();@@ -32487,8 +32499,8 @@ function hO({ initial: e, receipt: t }) {r(e.sites), t("已保存配置");});},- children: [/* @__PURE__ */ (0, w.jsxs)(sC, { children: [- /* @__PURE__ */ (0, w.jsx)(lC, { children: "账本里没有这个站点 id 的人物不显示它那一枚入口,地址不会退回站内搜索。 JavDB 与 MISSAV 只收 JAV 女优,这两枚还要账本里有哪个 JAV 目录站给过她 id 才出现; FC2 个人摄那类创作者没有这种 id,资料页上也就没有这一行。 这两站的主域名连不上时,把能打开的那个镜像域名填在下面,后面的路径由 Peach 自己拼。" }),+ children: [/* @__PURE__ */ (0, w.jsxs)(uC, { children: [+ /* @__PURE__ */ (0, w.jsx)(fC, { children: "账本里没有这个站点 id 的人物不显示它那一枚入口,地址不会退回站内搜索。 JavDB 与 MISSAV 只收 JAV 女优,这两枚还要账本里有哪个 JAV 目录站给过她 id 才出现; FC2 个人摄那类创作者没有这种 id,资料页上也就没有这一行。 这两站的主域名连不上时,把能打开的那个镜像域名填在下面,后面的路径由 Peach 自己拼。" }),n.map((e) => /* @__PURE__ */ (0, w.jsx)(sb, {id: `entry-link-${e.key}`,label: `${e.label} 地址`,@@ -32500,8 +32512,8 @@ function hO({ initial: e, receipt: t }) {validationBehavior: "aria",hint: "只写域名本身,留空就是默认"}, e.key)),- i.error ? /* @__PURE__ */ (0, w.jsx)(uC, { children: i.error }) : null- ] }), /* @__PURE__ */ (0, w.jsx)(cC, { children: /* @__PURE__ */ (0, w.jsx)(K, {+ i.error ? /* @__PURE__ */ (0, w.jsx)(pC, { children: i.error }) : null+ ] }), /* @__PURE__ */ (0, w.jsx)(dC, { children: /* @__PURE__ */ (0, w.jsx)(K, {type: "submit",...X(i.busy === "save"),children: "保存配置"@@ -32510,21 +32522,21 @@ function hO({ initial: e, receipt: t }) {}//#endregion//#region src/react/settings/general-settings.tsx-function gO({ data: e, receipt: t }) {+function yO({ data: e, receipt: t }) {return /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-col gap-6",- children: [e.startup ? /* @__PURE__ */ (0, w.jsx)(_O, {+ children: [e.startup ? /* @__PURE__ */ (0, w.jsx)(bO, {startup: e.startup,receipt: t- }) : null, e.entry_links ? /* @__PURE__ */ (0, w.jsx)(hO, {+ }) : null, e.entry_links ? /* @__PURE__ */ (0, w.jsx)(vO, {initial: e.entry_links,receipt: t}) : null]});}-function _O({ startup: e, receipt: t }) {+function bO({ startup: e, receipt: t }) {let [n, r] = (0, C.useState)(e.enabled), [i, a] = (0, C.useState)(e.silent), [o, s] = (0, C.useState)(e.desktop), c = mh(), l = e.available && !e.desktop_message;- return /* @__PURE__ */ (0, w.jsxs)(aC, {+ return /* @__PURE__ */ (0, w.jsxs)(cC, {title: "开机自启",onSubmit: (r) => {r.preventDefault(), e.available && c.run("save", (e) => J("/api/configuration/startup", {@@ -32534,30 +32546,30 @@ function _O({ startup: e, receipt: t }) {}, "POST", e), () => t("已保存配置"));},children: [- /* @__PURE__ */ (0, w.jsxs)(oC, { children: [- /* @__PURE__ */ (0, w.jsx)(nC, {+ /* @__PURE__ */ (0, w.jsxs)(lC, { children: [+ /* @__PURE__ */ (0, w.jsx)(aC, {label: "开机后启动 Peach",- children: /* @__PURE__ */ (0, w.jsx)(Zb, {+ children: /* @__PURE__ */ (0, w.jsx)(ex, {"aria-label": "开机后启动 Peach",isSelected: n,isDisabled: !e.available,onChange: r})}),- /* @__PURE__ */ (0, w.jsx)(nC, {+ /* @__PURE__ */ (0, w.jsx)(aC, {label: "静默启动",description: "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。",- children: /* @__PURE__ */ (0, w.jsx)(Zb, {+ children: /* @__PURE__ */ (0, w.jsx)(ex, {"aria-label": "静默启动",isSelected: i,isDisabled: !e.available || !n,onChange: a})}),- /* @__PURE__ */ (0, w.jsx)(nC, {+ /* @__PURE__ */ (0, w.jsx)(aC, {label: "在桌面创建快捷方式",description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",- children: /* @__PURE__ */ (0, w.jsx)(Zb, {+ children: /* @__PURE__ */ (0, w.jsx)(ex, {"aria-label": "在桌面创建快捷方式",isSelected: o,isDisabled: !l,@@ -32565,11 +32577,11 @@ function _O({ startup: e, receipt: t }) {})})] }),- e.message || c.error ? /* @__PURE__ */ (0, w.jsxs)(sC, {+ e.message || c.error ? /* @__PURE__ */ (0, w.jsxs)(uC, {divided: !0,- children: [e.message ? /* @__PURE__ */ (0, w.jsx)(lC, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, w.jsx)(uC, { children: c.error }) : null]+ children: [e.message ? /* @__PURE__ */ (0, w.jsx)(fC, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, w.jsx)(pC, { children: c.error }) : null]}) : null,- /* @__PURE__ */ (0, w.jsx)(cC, { children: /* @__PURE__ */ (0, w.jsx)(K, {+ /* @__PURE__ */ (0, w.jsx)(dC, { children: /* @__PURE__ */ (0, w.jsx)(K, {type: "submit",disabled: !e.available,...X(c.busy === "save"),@@ -32580,23 +32592,23 @@ function _O({ startup: e, receipt: t }) {}//#endregion//#region src/react/settings/release-updates.tsx-var vO = /* @__PURE__ */ new Set([+var xO = /* @__PURE__ */ new Set(["downloading","verifying","extracting","preparing","restarting","installing"-]), yO = [+]), SO = [65,67,90-], bO = 120;-function xO({ initial: e, initialJob: t }) {+], CO = 120;+function wO({ initial: e, initialJob: t }) {let [n, r] = (0, C.useState)(e), [i, a] = (0, C.useState)(t || {state: "idle",progress: 0- }), [o, s] = (0, C.useState)(""), l = mh(), u = (0, C.useRef)(!1), d = (0, C.useRef)(!0), f = vO.has(i.state);+ }), [o, s] = (0, C.useState)(""), l = mh(), u = (0, C.useRef)(!1), d = (0, C.useRef)(!0), f = xO.has(i.state);(0, C.useEffect)(() => (d.current = !0, () => {d.current = !1;}), []);@@ -32613,7 +32625,7 @@ function xO({ initial: e, initialJob: t }) {(0, C.useEffect)(() => {i.state !== "ready" || u.current || (u.current = !0, m());}, [i.state]), (0, C.useEffect)(() => {- let e = new AbortController(), t = vO.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {+ let e = new AbortController(), t = xO.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {try {let t = await eh("/api/configuration/update-status", e.signal);if (e.signal.aborted) return;@@ -32626,9 +32638,9 @@ function xO({ initial: e, initialJob: t }) {let n = await eh("/api/configuration/automatic-updates", e.signal);!e.signal.aborted && n.result && r(n.result);} catch {- o += 1, o >= bO && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");+ o += 1, o >= CO && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");}- !e.signal.aborted && o < bO && (n = setTimeout(c, t));+ !e.signal.aborted && o < CO && (n = setTimeout(c, t));};return n = setTimeout(c, t), () => {e.abort(), clearTimeout(n);@@ -32642,40 +32654,40 @@ function xO({ initial: e, initialJob: t }) {state: "error"}), l.setError(q(t));}), _ = l.error || o, v = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;- return /* @__PURE__ */ (0, w.jsxs)(aC, {+ return /* @__PURE__ */ (0, w.jsxs)(cC, {title: "检查更新",children: [- /* @__PURE__ */ (0, w.jsxs)(pC, { children: [- /* @__PURE__ */ (0, w.jsx)(mC, {+ /* @__PURE__ */ (0, w.jsxs)(gC, { children: [+ /* @__PURE__ */ (0, w.jsx)(_C, {term: "当前版本",children: n.current_version}),- /* @__PURE__ */ (0, w.jsx)(mC, {+ /* @__PURE__ */ (0, w.jsx)(_C, {term: "安装方式",children: n.installation}),- /* @__PURE__ */ (0, w.jsx)(mC, {+ /* @__PURE__ */ (0, w.jsx)(_C, {term: "更新通道",children: n.channel}),- /* @__PURE__ */ (0, w.jsx)(mC, {+ /* @__PURE__ */ (0, w.jsx)(_C, {term: "最新版本",children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")})] }),- /* @__PURE__ */ (0, w.jsxs)(sC, {+ /* @__PURE__ */ (0, w.jsxs)(uC, {divided: !0,children: [- n.checked_at ? /* @__PURE__ */ (0, w.jsxs)(lC, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,+ n.checked_at ? /* @__PURE__ */ (0, w.jsxs)(fC, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,n.state === "available" && !_ ? /* @__PURE__ */ (0, w.jsx)(Y, {tone: "info",title: "有可用更新",children: n.message- }) : _ || n.state === "error" ? /* @__PURE__ */ (0, w.jsx)(uC, { children: _ || n.message }) : /* @__PURE__ */ (0, w.jsx)(lC, {+ }) : _ || n.state === "error" ? /* @__PURE__ */ (0, w.jsx)(pC, { children: _ || n.message }) : /* @__PURE__ */ (0, w.jsx)(fC, {role: "status",children: n.message}),- i.state === "error" ? /* @__PURE__ */ (0, w.jsx)(uC, { children: i.message }) : null,+ i.state === "error" ? /* @__PURE__ */ (0, w.jsx)(pC, { children: i.message }) : null,i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, w.jsxs)("div", {"aria-live": "polite",className: "flex flex-col gap-2",@@ -32683,16 +32695,16 @@ function xO({ initial: e, initialJob: t }) {/* @__PURE__ */ (0, w.jsx)(ph, {label: "更新准备进度",value: i.progress,- stops: yO+ stops: SO}),- /* @__PURE__ */ (0, w.jsxs)(lC, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),- /* @__PURE__ */ (0, w.jsx)(lC, { children: v })+ /* @__PURE__ */ (0, w.jsxs)(fC, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),+ /* @__PURE__ */ (0, w.jsx)(fC, { children: v })]}) : null]}),- /* @__PURE__ */ (0, w.jsxs)(cC, {- status: /* @__PURE__ */ (0, w.jsx)(fC, {+ /* @__PURE__ */ (0, w.jsxs)(dC, {+ status: /* @__PURE__ */ (0, w.jsx)(hC, {href: n.release_url,children: "查看发布页"}),@@ -32719,98 +32731,98 @@ function xO({ initial: e, initialJob: t }) {}//#endregion//#region src/react/settings/maintenance-settings.tsx-var SO = [+var TO = [["6", "每 6 小时"],["24", "每天"],["168", "每周"]];-function CO({ data: e, receipt: t, reopenTutorial: n }) {+function EO({ data: e, receipt: t, reopenTutorial: n }) {return /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-col gap-6",children: [- e.automatic_updates ? /* @__PURE__ */ (0, w.jsx)(TO, {+ e.automatic_updates ? /* @__PURE__ */ (0, w.jsx)(OO, {initial: e.automatic_updates,receipt: t}) : null,- e.updates ? /* @__PURE__ */ (0, w.jsx)(xO, {+ e.updates ? /* @__PURE__ */ (0, w.jsx)(wO, {initial: e.updates,initialJob: e.update_job}) : null,- /* @__PURE__ */ (0, w.jsx)(EO, { facts: e.facts }),- /* @__PURE__ */ (0, w.jsx)(wO, {+ /* @__PURE__ */ (0, w.jsx)(kO, { facts: e.facts }),+ /* @__PURE__ */ (0, w.jsx)(DO, {receipt: t,reopenTutorial: n}),- e.uninstall ? /* @__PURE__ */ (0, w.jsx)(DO, {+ e.uninstall ? /* @__PURE__ */ (0, w.jsx)(AO, {uninstall: e.uninstall,receipt: t}) : null]});}-function wO({ receipt: e, reopenTutorial: t }) {+function DO({ receipt: e, reopenTutorial: t }) {let n = mh();- return /* @__PURE__ */ (0, w.jsxs)(aC, {+ return /* @__PURE__ */ (0, w.jsxs)(cC, {title: "安装教程",- children: [/* @__PURE__ */ (0, w.jsxs)(sC, { children: [/* @__PURE__ */ (0, w.jsx)(lC, { children: "关掉的安装教程从这里叫回来:跳过的项目会重新出现,做完的仍然算完成。" }), n.error ? /* @__PURE__ */ (0, w.jsx)(uC, { children: n.error }) : null] }), /* @__PURE__ */ (0, w.jsx)(cC, { children: /* @__PURE__ */ (0, w.jsx)(K, {+ children: [/* @__PURE__ */ (0, w.jsxs)(uC, { children: [/* @__PURE__ */ (0, w.jsx)(fC, { children: "关掉的安装教程从这里叫回来:跳过的项目会重新出现,做完的仍然算完成。" }), n.error ? /* @__PURE__ */ (0, w.jsx)(pC, { children: n.error }) : null] }), /* @__PURE__ */ (0, w.jsx)(dC, { children: /* @__PURE__ */ (0, w.jsx)(K, {onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),...X(n.busy === "reopen"),children: "重新打开教程"}) })]});}-function TO({ initial: e, receipt: t }) {+function OO({ initial: e, receipt: t }) {let [n, r] = (0, C.useState)(e.mode), [i, a] = (0, C.useState)(e.interval_hours), o = mh(e.error), s = (r) => {r.preventDefault(), e.available && o.run("save", (e) => J("/api/configuration/automatic-updates", {mode: n,interval_hours: i}, "POST", e), () => t("已保存配置"));}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行时在发布页获取新版本。" : "自动更新需要由托盘管理的服务。";- return /* @__PURE__ */ (0, w.jsxs)(aC, {+ return /* @__PURE__ */ (0, w.jsxs)(cC, {title: "自动更新",onSubmit: s,children: [- /* @__PURE__ */ (0, w.jsxs)(oC, { children: [- /* @__PURE__ */ (0, w.jsx)(nC, {+ /* @__PURE__ */ (0, w.jsxs)(lC, { children: [+ /* @__PURE__ */ (0, w.jsx)(aC, {label: "自动检查新版本",- children: /* @__PURE__ */ (0, w.jsx)(Zb, {+ children: /* @__PURE__ */ (0, w.jsx)(ex, {"aria-label": "自动检查新版本",isSelected: n !== "off",isDisabled: !e.available,onChange: (e) => r(e ? "check" : "off")})}),- /* @__PURE__ */ (0, w.jsx)(nC, {+ /* @__PURE__ */ (0, w.jsx)(aC, {label: "自动下载更新",- children: /* @__PURE__ */ (0, w.jsx)(Zb, {+ children: /* @__PURE__ */ (0, w.jsx)(ex, {"aria-label": "自动下载更新",isSelected: n === "download",isDisabled: !e.available || !e.download_available || n === "off",onChange: (e) => r(e ? "download" : "check")})}),- /* @__PURE__ */ (0, w.jsx)(nC, {+ /* @__PURE__ */ (0, w.jsx)(aC, {label: "检查频率",description: c,- children: /* @__PURE__ */ (0, w.jsx)(kT, {+ children: /* @__PURE__ */ (0, w.jsx)(MT, {"aria-label": "检查频率",selectedKey: String(i),isDisabled: !e.available,onSelectionChange: (e) => {e !== null && a(Number(e));},- children: SO.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(AT, {+ children: TO.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(NT, {id: e,children: t}, e))})})] }),- o.error ? /* @__PURE__ */ (0, w.jsx)(sC, {+ o.error ? /* @__PURE__ */ (0, w.jsx)(uC, {divided: !0,- children: /* @__PURE__ */ (0, w.jsx)(uC, { children: o.error })+ children: /* @__PURE__ */ (0, w.jsx)(pC, { children: o.error })}) : null,- /* @__PURE__ */ (0, w.jsx)(cC, { children: /* @__PURE__ */ (0, w.jsx)(K, {+ /* @__PURE__ */ (0, w.jsx)(dC, { children: /* @__PURE__ */ (0, w.jsx)(K, {type: "submit",disabled: !e.available,...X(o.busy === "save"),@@ -32819,19 +32831,19 @@ function TO({ initial: e, receipt: t }) {]});}-function EO({ facts: e }) {- return /* @__PURE__ */ (0, w.jsx)(aC, {+function kO({ facts: e }) {+ return /* @__PURE__ */ (0, w.jsx)(cC, {title: "运行信息",- children: /* @__PURE__ */ (0, w.jsx)(pC, { children: e.map((e) => /* @__PURE__ */ (0, w.jsxs)(mC, {+ children: /* @__PURE__ */ (0, w.jsx)(gC, { children: e.map((e) => /* @__PURE__ */ (0, w.jsxs)(_C, {term: e.term,- children: [e.value, e.download_url ? /* @__PURE__ */ (0, w.jsx)(fC, {+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, w.jsx)(hC, {href: e.download_url,children: e.download_label}) : null]}, e.term)) })});}-function DO({ uninstall: e, receipt: t }) {+function AO({ uninstall: e, receipt: t }) {let [n, r] = (0, C.useState)(!1), [i, a] = (0, C.useState)(""), o = () => void c({title: "卸载 Peach",danger: !0,@@ -32845,26 +32857,26 @@ function DO({ uninstall: e, receipt: t }) {a(e.message);}}), s = i || e.message, l = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];- return /* @__PURE__ */ (0, w.jsxs)(aC, {+ return /* @__PURE__ */ (0, w.jsxs)(cC, {id: "uninstallPeach",title: "卸载 Peach",- children: [/* @__PURE__ */ (0, w.jsxs)(sC, { children: [- e.available ? /* @__PURE__ */ (0, w.jsx)(lC, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,- /* @__PURE__ */ (0, w.jsx)(WS, {+ children: [/* @__PURE__ */ (0, w.jsxs)(uC, { children: [+ e.available ? /* @__PURE__ */ (0, w.jsx)(fC, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,+ /* @__PURE__ */ (0, w.jsx)(qS, {isSelected: n,isDisabled: !e.full_available || !!i,onChange: r,children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"}),- /* @__PURE__ */ (0, w.jsx)(hC, {+ /* @__PURE__ */ (0, w.jsx)(vC, {summary: "数据目录",- children: l.map((e) => /* @__PURE__ */ (0, w.jsx)(VC, {+ children: l.map((e) => /* @__PURE__ */ (0, w.jsx)(WC, {path: e,className: "text-body-2-regular text-text-secondary",onRevealed: t}, e))})- ] }), /* @__PURE__ */ (0, w.jsx)(cC, {+ ] }), /* @__PURE__ */ (0, w.jsx)(dC, {status: s ? /* @__PURE__ */ (0, w.jsx)("p", {role: i ? "status" : void 0,children: s@@ -32880,7 +32892,7 @@ function DO({ uninstall: e, receipt: t }) {}//#endregion//#region src/react/settings/clouddrive-guide.tsx-var OO = [+var jO = [{name: "机械硬盘,或内存 8 GB 以内",cache: "10–20 GiB",@@ -32899,32 +32911,32 @@ var OO = [read: "256 / 128 KB",task: "2 个起步"}-], kO = [+], MO = [["cache", "缓存上限"],["read", "读取长度(默认 / 最小)"],["task", "同时处理视频"]];-function AO() {+function NO() {return /* @__PURE__ */ (0, w.jsxs)("div", {className: "@container flex flex-col gap-3",- children: [/* @__PURE__ */ (0, w.jsxs)(lC, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, w.jsx)(fC, {+ children: [/* @__PURE__ */ (0, w.jsxs)(fC, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, w.jsx)(hC, {href: "https://www.clouddrive2.com/help.html",children: "挂载帮助"- })] }), /* @__PURE__ */ (0, w.jsxs)(hC, {+ })] }), /* @__PURE__ */ (0, w.jsxs)(vC, {summary: "CloudDrive 缓存建议",children: [- /* @__PURE__ */ (0, w.jsx)(lC, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,按实际播放表现再调。" }),+ /* @__PURE__ */ (0, w.jsx)(fC, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,按实际播放表现再调。" }),/* @__PURE__ */ (0, w.jsx)("ul", {"aria-label": "按缓存所在硬盘分档",className: "flex flex-col gap-2",- children: OO.map((e) => /* @__PURE__ */ (0, w.jsxs)("li", {+ children: jO.map((e) => /* @__PURE__ */ (0, w.jsxs)("li", {className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",children: [/* @__PURE__ */ (0, w.jsx)("p", {className: "text-body-medium text-text-primary",children: e.name}), /* @__PURE__ */ (0, w.jsx)("dl", {className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",- children: kO.map(([t, n]) => /* @__PURE__ */ (0, w.jsxs)("div", {+ children: MO.map(([t, n]) => /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-col",children: [/* @__PURE__ */ (0, w.jsx)("dt", {className: "text-caption-1-regular text-text-secondary",@@ -32945,9 +32957,9 @@ function AO() {/* @__PURE__ */ (0, w.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })]}),- /* @__PURE__ */ (0, w.jsxs)(lC, { children: [+ /* @__PURE__ */ (0, w.jsxs)(fC, { children: ["三处缓存的分工、往上调的方法和这些起步值的来源在",- /* @__PURE__ */ (0, w.jsx)(fC, {+ /* @__PURE__ */ (0, w.jsx)(hC, {href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",children: "CloudDrive 配置与调优"}),@@ -32959,7 +32971,7 @@ function AO() {}//#endregion//#region src/react/settings/library-icon-picker.tsx-var jO = [+var PO = [["", "自动识别"],["hard-drive", "磁盘"],["database", "资料库"],@@ -33003,13 +33015,13 @@ var jO = [["star", "收藏"],["tags", "主题"]];-function MO(e) {+function FO(e) {let t = e === "local" ? "" : o[e];return t ? [t, "自动识别"] : ["hard-drive", "默认"];}-var NO = "auto";-function PO({ value: e, label: t, kind: n = "local", onChange: r }) {- let i = (0, C.useRef)(null), [a, o] = (0, C.useState)(!1), [s, c] = (0, C.useState)(e), [l, u] = MO(n);+var IO = "auto";+function LO({ value: e, label: t, kind: n = "local", onChange: r }) {+ let i = (0, C.useRef)(null), [a, o] = (0, C.useState)(!1), [s, c] = (0, C.useState)(e), [l, u] = FO(n);return /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(K, {ref: i,variant: "secondary",@@ -33023,7 +33035,7 @@ function PO({ value: e, label: t, kind: n = "local", onChange: r }) {children: /* @__PURE__ */ (0, w.jsxs)("span", {"data-icon-choice": !0,className: "flex items-center gap-2",- children: [/* @__PURE__ */ (0, w.jsx)(_C, { mark: e || l }), ((e) => e && jO.find(([t]) => t === e)?.[1] || u)(e)]+ children: [/* @__PURE__ */ (0, w.jsx)(bC, { mark: e || l }), ((e) => e && PO.find(([t]) => t === e)?.[1] || u)(e)]})}), /* @__PURE__ */ (0, w.jsx)(av, {triggerRef: i,@@ -33031,7 +33043,7 @@ function PO({ value: e, label: t, kind: n = "local", onChange: r }) {onOpenChange: o,placement: "bottom start",offset: 4,- className: GS,+ className: JS,children: /* @__PURE__ */ (0, w.jsxs)(lv, {"aria-label": `${t}候选`,className: "flex w-72 flex-col gap-3 outline-none",@@ -33043,15 +33055,15 @@ function PO({ value: e, label: t, kind: n = "local", onChange: r }) {}),/* @__PURE__ */ (0, w.jsx)(Ev, {"aria-label": "候选图标",- value: s || NO,- onChange: (e) => c(e === NO ? "" : e),+ value: s || IO,+ onChange: (e) => c(e === IO ? "" : e),className: "inline-grid grid-cols-7 gap-1",- children: jO.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(Dv, {- value: e || NO,+ children: PO.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(Dv, {+ value: e || IO,"aria-label": e ? t : u,className: "flex h-10 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none hover:bg-dropdown-item-hover-background focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-dropdown-item-hover-background data-selected:text-text-primary",- children: /* @__PURE__ */ (0, w.jsx)(_C, { mark: e || l })- }, e || NO))+ children: /* @__PURE__ */ (0, w.jsx)(bC, { mark: e || l })+ }, e || IO))}),/* @__PURE__ */ (0, w.jsxs)("div", {className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",@@ -33073,15 +33085,15 @@ function PO({ value: e, label: t, kind: n = "local", onChange: r }) {}//#endregion//#region src/react/settings/push-discovery-settings.tsx-var FO = "/api/configuration/push-discovery", IO = "/api/configuration/push-discovery/secret";-function LO({ initial: e, receipt: t }) {+var RO = "/api/configuration/push-discovery", zO = "/api/configuration/push-discovery/secret";+function BO({ initial: e, receipt: t }) {let [n, r] = (0, C.useState)(e), [i, a] = (0, C.useState)(e.prefixes), [o, s] = (0, C.useState)(""), c = mh(), l = Sb(), u = n.media_roots, [d, f] = (0, C.useState)(e), p = (e, n) => {r(e), f(e), a(e.prefixes), s(""), t(n);}, m = (e, t) => a((n) => n.map((n, r) => r === e ? {...n,...t} : n));- return /* @__PURE__ */ (0, w.jsxs)(aC, {+ return /* @__PURE__ */ (0, w.jsxs)(cC, {title: "推送发现",onSubmit: (e) => {e.preventDefault();@@ -33091,14 +33103,14 @@ function LO({ initial: e, receipt: t }) {cloud: n.cloud,prefixes: i};- c.run("save", (e) => J(FO, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(q(e)));+ c.run("save", (e) => J(RO, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(q(e)));},children: [- /* @__PURE__ */ (0, w.jsxs)(oC, { children: [- /* @__PURE__ */ (0, w.jsx)(nC, {+ /* @__PURE__ */ (0, w.jsxs)(lC, { children: [+ /* @__PURE__ */ (0, w.jsx)(aC, {label: "新文件落地就入库",description: "打开之后不必等下一轮扫描。定期全量扫描照常进行,漏掉的由它补上。",- children: /* @__PURE__ */ (0, w.jsx)(Zb, {+ children: /* @__PURE__ */ (0, w.jsx)(ex, {"aria-label": "新文件落地就入库",isSelected: n.enabled,isDisabled: !n.available,@@ -33108,10 +33120,10 @@ function LO({ initial: e, receipt: t }) {})})}),- /* @__PURE__ */ (0, w.jsx)(nC, {+ /* @__PURE__ */ (0, w.jsx)(aC, {label: "监视本机文件夹",description: "订阅本地来源的文件系统事件。网盘挂载不监视,因为遍历它就是走网络。",- children: /* @__PURE__ */ (0, w.jsx)(Zb, {+ children: /* @__PURE__ */ (0, w.jsx)(ex, {"aria-label": "监视本机文件夹",isSelected: n.watch_local,isDisabled: !n.available || !n.enabled,@@ -33121,10 +33133,10 @@ function LO({ initial: e, receipt: t }) {})})}),- /* @__PURE__ */ (0, w.jsx)(nC, {+ /* @__PURE__ */ (0, w.jsx)(aC, {label: "接收 CloudDrive2 通知",description: "由 CloudDrive2 把网盘里的新文件推给 Peach。只接受本机与局域网发来的请求。",- children: /* @__PURE__ */ (0, w.jsx)(Zb, {+ children: /* @__PURE__ */ (0, w.jsx)(ex, {"aria-label": "接收 CloudDrive2 通知",isSelected: n.cloud,isDisabled: !n.available || !n.enabled,@@ -33135,30 +33147,30 @@ function LO({ initial: e, receipt: t }) {})})] }),- d.enabled ? /* @__PURE__ */ (0, w.jsx)(sC, {+ d.enabled ? /* @__PURE__ */ (0, w.jsx)(uC, {divided: !0,- children: /* @__PURE__ */ (0, w.jsxs)(pC, { children: [d.watch_local ? /* @__PURE__ */ (0, w.jsx)(mC, {+ children: /* @__PURE__ */ (0, w.jsxs)(gC, { children: [d.watch_local ? /* @__PURE__ */ (0, w.jsx)(_C, {term: "本机文件夹监视",children: d.local_running ? d.local_roots.join("、") : d.local_message || "没有运行"- }) : null, /* @__PURE__ */ (0, w.jsx)(mC, {+ }) : null, /* @__PURE__ */ (0, w.jsx)(_C, {term: "已入库",children: `${d.queue.ingested} 个文件,队列里还有 ${d.queue.pending} 条`})] })}) : null,- d.enabled && d.cloud ? /* @__PURE__ */ (0, w.jsx)(sC, {+ d.enabled && d.cloud ? /* @__PURE__ */ (0, w.jsx)(uC, {divided: !0,children: /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, w.jsx)(dC, { children: "CloudDrive2 配置内容" }),- /* @__PURE__ */ (0, w.jsx)(lC, { children: "在 CloudDrive2 的「设置 → Webhooks」里添加一条,把这段配置贴进去保存。 地址、端点和密钥都已经填好了;换过密钥之后要重新贴一次。 Webhook 是 CloudDrive2 的会员功能:不是会员时列表照样显示有效,但一条都不会发出来。 Windows 桌面版的编辑框会把换行存坏,列表里标「无效」:那就把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),+ /* @__PURE__ */ (0, w.jsx)(mC, { children: "CloudDrive2 配置内容" }),+ /* @__PURE__ */ (0, w.jsx)(fC, { children: "在 CloudDrive2 的「设置 → Webhooks」里添加一条,把这段配置贴进去保存。 地址、端点和密钥都已经填好了;换过密钥之后要重新贴一次。 Webhook 是 CloudDrive2 的会员功能:不是会员时列表照样显示有效,但一条都不会发出来。 Windows 桌面版的编辑框会把换行存坏,列表里标「无效」:那就把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),d.config_toml ? /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)("div", { children: /* @__PURE__ */ (0, w.jsx)(K, {size: "small",onClick: () => {navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看这段配置」选中自己复制。"));},children: "复制配置"- }) }), /* @__PURE__ */ (0, w.jsx)(hC, {+ }) }), /* @__PURE__ */ (0, w.jsx)(vC, {summary: "查看这段配置",children: /* @__PURE__ */ (0, w.jsx)("div", {className: "relative",@@ -33169,17 +33181,17 @@ function LO({ initial: e, receipt: t }) {children: d.config_toml})})- })] }) : /* @__PURE__ */ (0, w.jsx)(lC, { children: d.origin ? "还没有生成共享密钥,保存一次配置就会有。" : "这台机器还没有对外的 HTTPS 地址,配置里的地址填不出来。CloudDrive2 只能推到 HTTPS:80 口那条服务对写请求回的是 426,不会替它转发。" })+ })] }) : /* @__PURE__ */ (0, w.jsx)(fC, { children: d.origin ? "还没有生成共享密钥,保存一次配置就会有。" : "这台机器还没有对外的 HTTPS 地址,配置里的地址填不出来。CloudDrive2 只能推到 HTTPS:80 口那条服务对写请求回的是 426,不会替它转发。" })]})}) : null,- n.enabled && n.cloud ? /* @__PURE__ */ (0, w.jsx)(sC, {+ n.enabled && n.cloud ? /* @__PURE__ */ (0, w.jsx)(uC, {divided: !0,children: /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, w.jsx)(dC, { children: "云端路径前缀" }),- /* @__PURE__ */ (0, w.jsx)(lC, { children: "左边填 CloudDrive2 里看到的那一层目录,右边选它对应哪个媒体根。 CloudDrive2 给的是它自己的路径,Peach 按这张表换算成账本里的盘符路径。" }),+ /* @__PURE__ */ (0, w.jsx)(mC, { children: "云端路径前缀" }),+ /* @__PURE__ */ (0, w.jsx)(fC, { children: "左边填 CloudDrive2 里看到的那一层目录,右边选它对应哪个媒体根。 CloudDrive2 给的是它自己的路径,Peach 按这张表换算成账本里的盘符路径。" }),/* @__PURE__ */ (0, w.jsx)("div", {role: "group","aria-label": "云端路径前缀",@@ -33196,13 +33208,13 @@ function LO({ initial: e, receipt: t }) {value: e.prefix,onChange: (e) => m(t, { prefix: e })}),- /* @__PURE__ */ (0, w.jsx)(kT, {+ /* @__PURE__ */ (0, w.jsx)(MT, {"aria-label": `前缀 ${t + 1} 对应的媒体根`,selectedKey: e.root,onSelectionChange: (e) => {e !== null && m(t, { root: String(e) });},- children: u.map((e) => /* @__PURE__ */ (0, w.jsx)(AT, {+ children: u.map((e) => /* @__PURE__ */ (0, w.jsx)(NT, {id: e,children: e}, e))@@ -33226,15 +33238,15 @@ function LO({ initial: e, receipt: t }) {]})}) : null,- o || c.error ? /* @__PURE__ */ (0, w.jsx)(sC, {+ o || c.error ? /* @__PURE__ */ (0, w.jsx)(uC, {divided: !0,- children: /* @__PURE__ */ (0, w.jsx)(uC, { children: o || c.error })+ children: /* @__PURE__ */ (0, w.jsx)(pC, { children: o || c.error })}) : null,- /* @__PURE__ */ (0, w.jsxs)(cC, {+ /* @__PURE__ */ (0, w.jsxs)(dC, {status: d.enabled && d.cloud ? "换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。" : void 0,children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, w.jsx)(K, {onClick: () => {- c.run("secret", (e) => J(IO, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(q(e)));+ c.run("secret", (e) => J(zO, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(q(e)));},disabled: !n.available,...X(c.busy === "secret"),@@ -33251,8 +33263,8 @@ function LO({ initial: e, receipt: t }) {}//#endregion//#region src/react/settings/media-settings.tsx-var RO = 8e3;-function zO({ className: e }) {+var VO = 8e3;+function HO({ className: e }) {return /* @__PURE__ */ (0, w.jsx)("svg", {"aria-hidden": !0,viewBox: "0 0 24 24",@@ -33265,33 +33277,33 @@ function zO({ className: e }) {children: /* @__PURE__ */ (0, w.jsx)("use", { href: "#i-folder-search" })});}-var BO = [+var UO = [["local", "本地磁盘"],["115", "CloudDrive · 115"],["pikpak", "CloudDrive · PikPak"]-], VO = (e) => BO.find(([t]) => t === e)?.[1] ?? e, HO = (e) => o[e] || "database", UO = (e = "") => ({+], WO = (e) => UO.find(([t]) => t === e)?.[1] ?? e, GO = (e) => o[e] || "database", KO = (e = "") => ({path: e,location: "local",root: "",library: "",library_icon: ""});-function WO(e) {- let t = e.media_sources?.filter((e) => BO.some(([t]) => t === e.location));+function qO(e) {+ let t = e.media_sources?.filter((e) => UO.some(([t]) => t === e.location));return t?.length ? t.map((e) => ({path: e.path,location: e.location,root: e.root,library: e.library || "",library_icon: e.library_icon || ""- })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => UO(e));+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => KO(e));}-var GO = (e) => !(e instanceof Qm) || e.status !== 400 ? null : e.body?.errors ?? null;-function KO({ data: e, receipt: t }) {+var JO = (e) => !(e instanceof Qm) || e.status !== 400 ? null : e.body?.errors ?? null;+function YO({ data: e, receipt: t }) {return /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-col gap-6",children: [- e.editable ? /* @__PURE__ */ (0, w.jsx)(qO, {+ e.editable ? /* @__PURE__ */ (0, w.jsx)(XO, {data: e,receipt: t}) : /* @__PURE__ */ (0, w.jsx)(Y, {@@ -33299,21 +33311,21 @@ function KO({ data: e, receipt: t }) {title: "只读",children: e.notice}),- /* @__PURE__ */ (0, w.jsx)(YO, { data: e }),- e.push_discovery ? /* @__PURE__ */ (0, w.jsx)(LO, {+ /* @__PURE__ */ (0, w.jsx)(QO, { data: e }),+ e.push_discovery ? /* @__PURE__ */ (0, w.jsx)(BO, {initial: e.push_discovery,receipt: t}) : null]});}-function qO({ data: e, receipt: t }) {- let [n, r] = (0, C.useState)(() => WO(e)), [i, a] = (0, C.useState)(String(e.port)), [o, s] = (0, C.useState)(!1), [c, l] = (0, C.useState)([]), [u, d] = (0, C.useState)(""), [f, p] = (0, C.useState)(""), [m, h] = (0, C.useState)(null), [g, _] = (0, C.useState)(null), [v, y] = (0, C.useState)(null), b = (0, C.useRef)(!1), x = (0, C.useRef)(e.revision), S = (0, C.useRef)([]), T = mh();+function XO({ data: e, receipt: t }) {+ let [n, r] = (0, C.useState)(() => qO(e)), [i, a] = (0, C.useState)(String(e.port)), [o, s] = (0, C.useState)(!1), [c, l] = (0, C.useState)([]), [u, d] = (0, C.useState)(""), [f, p] = (0, C.useState)(""), [m, h] = (0, C.useState)(null), [g, _] = (0, C.useState)(null), [v, y] = (0, C.useState)(null), b = (0, C.useRef)(!1), x = (0, C.useRef)(e.revision), S = (0, C.useRef)([]), T = mh();(0, C.useLayoutEffect)(() => {g !== null && (S.current[g]?.focus(), _(null));}, [g]), (0, C.useEffect)(() => {if (!m) return;- let e = setTimeout(() => location.assign(m.url), RO);+ let e = setTimeout(() => location.assign(m.url), VO);return () => clearTimeout(e);}, [m]);let E = (e, t) => r((n) => n.map((n, r) => r === e ? {@@ -33324,14 +33336,14 @@ function qO({ data: e, receipt: t }) {for (; r.length <= e;) r.push("");return r[e] = t, r;}), O = () => {- _(n.length), r((e) => [...e, UO()]);+ _(n.length), r((e) => [...e, KO()]);}, k = (e) => {r((t) => t.filter((t, n) => n !== e)), l((t) => t.filter((t, n) => n !== e));}, A = async (e) => {if (!b.current) {b.current = !0, y(e);try {- let { path: t } = await J(dO, { initial: n[e]?.path ?? "" });+ let { path: t } = await J(mO, { initial: n[e]?.path ?? "" });t && (E(e, { path: t }), D(e, ""));} catch (t) {D(e, q(t));@@ -33340,7 +33352,7 @@ function qO({ data: e, receipt: t }) {}}}, j = (r) => {- r.preventDefault(), p(""), T.run("save", (t) => J(uO, {+ r.preventDefault(), p(""), T.run("save", (t) => J(pO, {revision: x.current,media_dirs: n.map((e) => e.path),...e.media_sources ? { media_sources: n } : {},@@ -33349,18 +33361,18 @@ function qO({ data: e, receipt: t }) {}, "POST", t), (e) => {x.current = e.revision, l([]), d(""), t("已保存配置"), h(e);}, (e) => {- let t = GO(e);+ let t = JO(e);l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(q(e));});};- if (m) return /* @__PURE__ */ (0, w.jsx)(aC, {+ if (m) return /* @__PURE__ */ (0, w.jsx)(cC, {title: "这台电脑",- children: /* @__PURE__ */ (0, w.jsx)(sC, { children: /* @__PURE__ */ (0, w.jsxs)(Y, {+ children: /* @__PURE__ */ (0, w.jsx)(uC, { children: /* @__PURE__ */ (0, w.jsxs)(Y, {tone: "success",title: "配置已保存",children: ["Peach 正在重新启动。稍后自动跳转,或点击",- /* @__PURE__ */ (0, w.jsx)(iC, {+ /* @__PURE__ */ (0, w.jsx)(sC, {href: m.url,size: "small",children: "进入馆藏"@@ -33370,14 +33382,14 @@ function qO({ data: e, receipt: t }) {}) })});let M = n.some((e) => e.location === "115" || e.location === "pikpak"), ee = M ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];- return /* @__PURE__ */ (0, w.jsxs)(aC, {+ return /* @__PURE__ */ (0, w.jsxs)(cC, {title: "这台电脑",onSubmit: j,- children: [/* @__PURE__ */ (0, w.jsxs)(sC, { children: [+ children: [/* @__PURE__ */ (0, w.jsxs)(uC, { children: [/* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, w.jsx)(dC, { children: "媒体文件夹" }),+ /* @__PURE__ */ (0, w.jsx)(mC, { children: "媒体文件夹" }),/* @__PURE__ */ (0, w.jsx)("div", {role: "group","aria-label": "媒体文件夹",@@ -33402,7 +33414,7 @@ function qO({ data: e, receipt: t }) {hint: c[r] || void 0}),/* @__PURE__ */ (0, w.jsx)(eb, {- icon: zO,+ icon: HO,"aria-label": "选择文件夹",onClick: () => void A(r),...X(v === r)@@ -33425,7 +33437,7 @@ function qO({ data: e, receipt: t }) {}),/* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-col gap-1.5",- children: [/* @__PURE__ */ (0, w.jsx)(dC, { children: "媒体库图标" }), /* @__PURE__ */ (0, w.jsx)(PO, {+ children: [/* @__PURE__ */ (0, w.jsx)(mC, { children: "媒体库图标" }), /* @__PURE__ */ (0, w.jsx)(LO, {label: `媒体库图标 ${r + 1}`,value: t.library_icon,kind: t.location,@@ -33434,16 +33446,16 @@ function qO({ data: e, receipt: t }) {}),/* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-col gap-1.5",- children: [/* @__PURE__ */ (0, w.jsx)(dC, { children: "媒体来源" }), /* @__PURE__ */ (0, w.jsx)(kT, {+ children: [/* @__PURE__ */ (0, w.jsx)(mC, { children: "媒体来源" }), /* @__PURE__ */ (0, w.jsx)(MT, {"aria-label": `媒体来源 ${r + 1}`,selectedKey: t.location,onSelectionChange: (e) => {e !== null && E(r, { location: String(e) });},- children: BO.map(([e, t]) => /* @__PURE__ */ (0, w.jsxs)(AT, {+ children: UO.map(([e, t]) => /* @__PURE__ */ (0, w.jsxs)(NT, {id: e,textValue: t,- children: [/* @__PURE__ */ (0, w.jsx)(_C, { mark: HO(e) }), t]+ children: [/* @__PURE__ */ (0, w.jsx)(bC, { mark: GO(e) }), t]}, e))})]}),@@ -33464,17 +33476,17 @@ function qO({ data: e, receipt: t }) {})]}),- M ? /* @__PURE__ */ (0, w.jsx)(AO, {}) : null,- ee.map((e) => /* @__PURE__ */ (0, w.jsxs)(lC, { children: [+ M ? /* @__PURE__ */ (0, w.jsx)(NO, {}) : null,+ ee.map((e) => /* @__PURE__ */ (0, w.jsxs)(fC, { children: ["未检测到 ",e.name,"。",- /* @__PURE__ */ (0, w.jsxs)(fC, {+ /* @__PURE__ */ (0, w.jsxs)(hC, {href: e.download_url,children: ["下载 ", e.name]})] }, e.name)),- e.windows === !1 ? /* @__PURE__ */ (0, w.jsx)(lC, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,+ e.windows === !1 ? /* @__PURE__ */ (0, w.jsx)(fC, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,e.port_editable === !1 ? null : /* @__PURE__ */ (0, w.jsx)(sb, {id: "configPort",label: "本机访问端口",@@ -33485,7 +33497,7 @@ function qO({ data: e, receipt: t }) {isInvalid: !!u,hint: u || "浏览器地址里冒号后面的数字,一般不用改。"}),- /* @__PURE__ */ (0, w.jsx)(WS, {+ /* @__PURE__ */ (0, w.jsx)(qS, {isSelected: o,onChange: s,children: "保存后扫描并补全资料"@@ -33495,7 +33507,7 @@ function qO({ data: e, receipt: t }) {title: "没有保存",children: f}) : null- ] }), /* @__PURE__ */ (0, w.jsx)(cC, {+ ] }), /* @__PURE__ */ (0, w.jsx)(dC, {status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",children: /* @__PURE__ */ (0, w.jsx)(K, {type: "submit",@@ -33505,7 +33517,7 @@ function qO({ data: e, receipt: t }) {})]});}-function JO({ online: e }) {+function ZO({ online: e }) {return e === !0 ? /* @__PURE__ */ (0, w.jsxs)("span", {"data-mount": "online",className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",@@ -33529,21 +33541,21 @@ function JO({ online: e }) {}), "未检测"]});}-function YO({ data: e }) {+function QO({ data: e }) {let t = e.media_sources, n = mh();- return t ? /* @__PURE__ */ (0, w.jsxs)(aC, {+ return t ? /* @__PURE__ */ (0, w.jsxs)(cC, {title: "挂载状态",children: [- /* @__PURE__ */ (0, w.jsx)(pC, { children: t.map((e, t) => /* @__PURE__ */ (0, w.jsxs)(mC, {- term: /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(_C, { mark: HO(e.location) }), VO(e.location)] }),- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, w.jsx)(JO, { online: e.online })]+ /* @__PURE__ */ (0, w.jsx)(gC, { children: t.map((e, t) => /* @__PURE__ */ (0, w.jsxs)(_C, {+ term: /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(bC, { mark: GO(e.location) }), WO(e.location)] }),+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, w.jsx)(ZO, { online: e.online })]}, t)) }),- n.error ? /* @__PURE__ */ (0, w.jsx)(sC, {+ n.error ? /* @__PURE__ */ (0, w.jsx)(uC, {divided: !0,- children: /* @__PURE__ */ (0, w.jsx)(uC, { children: n.error })+ children: /* @__PURE__ */ (0, w.jsx)(pC, { children: n.error })}) : null,- /* @__PURE__ */ (0, w.jsx)(cC, { children: /* @__PURE__ */ (0, w.jsx)(K, {- onClick: () => void n.run("refresh", (e) => pO(e), (e) => hh.setQueryData(fO, e)),+ /* @__PURE__ */ (0, w.jsx)(dC, { children: /* @__PURE__ */ (0, w.jsx)(K, {+ onClick: () => void n.run("refresh", (e) => gO(e), (e) => hh.setQueryData(hO, e)),...X(n.busy === "refresh"),children: "刷新挂载状态"}) })@@ -33552,12 +33564,12 @@ function YO({ data: e }) {}//#endregion//#region src/react/settings/access-settings.tsx-var XO = {+var $O = {legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",locked: "访问设置无法读取,请在本机检查配置文件。",password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"};-function ZO({ initial: e, receipt: t }) {+function ek({ initial: e, receipt: t }) {let [n, r] = (0, C.useState)(e), [i, a] = (0, C.useState)(""), [o, s] = (0, C.useState)(""), [c, l] = (0, C.useState)(""), [u, d] = (0, C.useState)(!1), [f, p] = (0, C.useState)({}), m = (0, C.useRef)(null), h = mh(), g = (e) => {e.preventDefault();let f = {};@@ -33578,20 +33590,20 @@ function ZO({ initial: e, receipt: t }) {let t = e instanceof Qm ? e.body : null, n = t?.errors || t?.detail?.errors;n ? p(n) : h.setError(q(e));});- }, _ = XO[n.mode], v = n.mode !== "locked";- return /* @__PURE__ */ (0, w.jsxs)(aC, {+ }, _ = $O[n.mode], v = n.mode !== "locked";+ return /* @__PURE__ */ (0, w.jsxs)(cC, {title: "访问密码",onSubmit: g,children: [/* @__PURE__ */ (0, w.jsx)("div", {ref: m,- children: /* @__PURE__ */ (0, w.jsxs)(sC, { children: [- _ ? /* @__PURE__ */ (0, w.jsx)(lC, { children: _ }) : null,+ children: /* @__PURE__ */ (0, w.jsxs)(uC, { children: [+ _ ? /* @__PURE__ */ (0, w.jsx)(fC, { children: _ }) : null,n.mode === "open" ? /* @__PURE__ */ (0, w.jsx)(Y, {tone: "warning",title: "未设置访问密码",children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"}) : null,- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, w.jsx)(WS, {+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, w.jsx)(qS, {isSelected: u,onChange: d,children: "关闭访问密码"@@ -33641,9 +33653,9 @@ function ZO({ initial: e, receipt: t }) {title: "访问范围",children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"}) : null,- h.error ? /* @__PURE__ */ (0, w.jsx)(uC, { children: h.error }) : null+ h.error ? /* @__PURE__ */ (0, w.jsx)(pC, { children: h.error }) : null] })- }), v ? /* @__PURE__ */ (0, w.jsx)(cC, {+ }), v ? /* @__PURE__ */ (0, w.jsx)(dC, {status: "保存后立即生效。",children: /* @__PURE__ */ (0, w.jsx)(K, {type: "submit",@@ -33655,19 +33667,19 @@ function ZO({ initial: e, receipt: t }) {}//#endregion//#region src/react/settings/tunnel-settings.tsx-var QO = 2e3, $O = [["quick", "临时链接"], ["named", "命名隧道"]], ek = {+var tk = 2e3, nk = [["quick", "临时链接"], ["named", "命名隧道"]], rk = {quick: "只用于临时预览;地址随机、重启后会变化。启动前必须设置访问密码。",named: "地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"};-function tk({ revision: e, initial: t, receipt: n }) {+function ik({ revision: e, initial: t, receipt: n }) {let [r, i] = (0, C.useState)(t), [a, o] = (0, C.useState)(e), [s, c] = (0, C.useState)(t.mode), [l, u] = (0, C.useState)(t.hostname), [d, f] = (0, C.useState)(""), [p, m] = (0, C.useState)({}), h = mh(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";(0, C.useEffect)(() => {if (r.state !== "starting") return;let e = new AbortController(), t = window.setInterval(() => {- pO(e.signal).then((t) => {- e.signal.aborted || !t.tunnel || (hh.setQueryData(fO, t), i(t.tunnel), o(t.revision));+ gO(e.signal).then((t) => {+ e.signal.aborted || !t.tunnel || (hh.setQueryData(hO, t), i(t.tunnel), o(t.revision));}).catch(() => void 0);- }, QO);+ }, tk);return () => {e.abort(), window.clearInterval(t);};@@ -33686,25 +33698,25 @@ function tk({ revision: e, initial: t, receipt: n }) {n ? m(n) : h.setError(q(e));});};- return /* @__PURE__ */ (0, w.jsxs)(aC, {+ return /* @__PURE__ */ (0, w.jsxs)(cC, {title: "Cloudflare 公网入口",onSubmit: (e) => {e.preventDefault(), v("save", g, () => n("已保存配置"));},- children: [/* @__PURE__ */ (0, w.jsxs)(sC, { children: [+ children: [/* @__PURE__ */ (0, w.jsxs)(uC, { children: [r.named_available ? /* @__PURE__ */ (0, w.jsx)(Ev, {"aria-label": "公网入口的形态(二选一)",value: s,isDisabled: g,onChange: (e) => c(e),- className: FS,- children: $O.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(Dv, {+ className: RS,+ children: nk.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(Dv, {value: e,- className: IS,+ className: zS,children: t}, e))}) : null,- /* @__PURE__ */ (0, w.jsx)(lC, { children: ek[_ ? "named" : "quick"] }),+ /* @__PURE__ */ (0, w.jsx)(fC, { children: rk[_ ? "named" : "quick"] }),_ ? /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)(sb, {id: "tunnel-hostname",label: "公开主机名",@@ -33736,7 +33748,7 @@ function tk({ revision: e, initial: t, receipt: n }) {r.state === "running" && r.url ? /* @__PURE__ */ (0, w.jsx)(Y, {tone: "info",title: "公网地址",- children: /* @__PURE__ */ (0, w.jsx)(fC, {+ children: /* @__PURE__ */ (0, w.jsx)(hC, {href: r.url,children: r.url})@@ -33746,9 +33758,9 @@ function tk({ revision: e, initial: t, receipt: n }) {title: "正在连接",children: "正在等待 cloudflared 连上 Cloudflare 边缘。"}) : null,- r.error ? /* @__PURE__ */ (0, w.jsx)(uC, { children: r.error }) : null,- h.error ? /* @__PURE__ */ (0, w.jsx)(uC, { children: h.error }) : null- ] }), /* @__PURE__ */ (0, w.jsxs)(cC, {+ r.error ? /* @__PURE__ */ (0, w.jsx)(pC, { children: r.error }) : null,+ h.error ? /* @__PURE__ */ (0, w.jsx)(pC, { children: h.error }) : null+ ] }), /* @__PURE__ */ (0, w.jsxs)(dC, {status: r.enabled ? "服务重启时会按设置尝试恢复。" : "服务重启后保持关闭。",children: [/* @__PURE__ */ (0, w.jsx)(K, {onClick: () => v("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),@@ -33764,24 +33776,24 @@ function tk({ revision: e, initial: t, receipt: n }) {}//#endregion//#region src/react/settings/network-settings.tsx-var nk = [+var ak = [["environment", "系统代理"],["direct", "直连"],["proxy", "自定义"]];-function rk({ data: e, receipt: t }) {+function ok({ data: e, receipt: t }) {return /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-col gap-6",children: [- e.peach_proxy ? /* @__PURE__ */ (0, w.jsx)(ik, {+ e.peach_proxy ? /* @__PURE__ */ (0, w.jsx)(sk, {initial: e.peach_proxy,receipt: t}) : null,- e.access ? /* @__PURE__ */ (0, w.jsx)(ZO, {+ e.access ? /* @__PURE__ */ (0, w.jsx)(ek, {initial: e.access,receipt: t}) : null,- e.tunnel ? /* @__PURE__ */ (0, w.jsx)(tk, {+ e.tunnel ? /* @__PURE__ */ (0, w.jsx)(ik, {revision: e.revision,initial: e.tunnel,receipt: t@@ -33789,9 +33801,9 @@ function rk({ data: e, receipt: t }) {]});}-function ik({ initial: e, receipt: t }) {+function sk({ initial: e, receipt: t }) {let [n, r] = (0, C.useState)(e), [i, a] = (0, C.useState)(e.mode), [o, s] = (0, C.useState)(""), c = mh();- return /* @__PURE__ */ (0, w.jsxs)(aC, {+ return /* @__PURE__ */ (0, w.jsxs)(cC, {id: "peachProxy",title: "Peach 代理",onSubmit: (e) => {@@ -33803,22 +33815,22 @@ function ik({ initial: e, receipt: t }) {});},children: [- /* @__PURE__ */ (0, w.jsx)(oC, { children: /* @__PURE__ */ (0, w.jsx)(nC, {+ /* @__PURE__ */ (0, w.jsx)(lC, { children: /* @__PURE__ */ (0, w.jsx)(aC, {label: "连接方式",description: "采集来源选「Peach 代理」时共用这里的连接方式。",- children: /* @__PURE__ */ (0, w.jsx)(kT, {+ children: /* @__PURE__ */ (0, w.jsx)(MT, {"aria-label": "连接方式",selectedKey: i,onSelectionChange: (e) => {e !== null && a(String(e));},- children: nk.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(AT, {+ children: ak.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(NT, {id: e,children: t}, e))})}) }),- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, w.jsxs)(sC, {+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, w.jsxs)(uC, {divided: !0,children: [i === "proxy" ? /* @__PURE__ */ (0, w.jsx)(sb, {@@ -33835,10 +33847,10 @@ function ik({ initial: e, receipt: t }) {title: "需要选择连接方式",children: "已有来源的代理地址不同,请选择公共连接方式。"}) : null,- c.error ? /* @__PURE__ */ (0, w.jsx)(uC, { children: c.error }) : null+ c.error ? /* @__PURE__ */ (0, w.jsx)(pC, { children: c.error }) : null]}) : null,- /* @__PURE__ */ (0, w.jsx)(cC, { children: /* @__PURE__ */ (0, w.jsx)(K, {+ /* @__PURE__ */ (0, w.jsx)(dC, { children: /* @__PURE__ */ (0, w.jsx)(K, {type: "submit",...X(c.busy === "save"),children: "保存配置"@@ -33848,10 +33860,10 @@ function ik({ initial: e, receipt: t }) {}//#endregion//#region src/react/settings/configuration-page.tsx-function ak({ receipt: e, reopenTutorial: t }) {+function ck({ receipt: e, reopenTutorial: t }) {let n = pt({- queryKey: fO,- queryFn: ({ signal: e }) => pO(e)+ queryKey: hO,+ queryFn: ({ signal: e }) => gO(e)}), r = n.data;if (!r) return /* @__PURE__ */ (0, w.jsx)("div", {className: "configpage",@@ -33872,22 +33884,22 @@ function ak({ receipt: e, reopenTutorial: t }) {className: "configgroup",children: "通用"}) : null,- a ? /* @__PURE__ */ (0, w.jsx)(gO, { ...i }) : null,+ a ? /* @__PURE__ */ (0, w.jsx)(yO, { ...i }) : null,/* @__PURE__ */ (0, w.jsx)("h2", {className: "configgroup",children: "媒体"}),- /* @__PURE__ */ (0, w.jsx)(KO, { ...i }),+ /* @__PURE__ */ (0, w.jsx)(YO, { ...i }),o ? /* @__PURE__ */ (0, w.jsx)("h2", {className: "configgroup",children: "网络与访问"}) : null,- o ? /* @__PURE__ */ (0, w.jsx)(rk, { ...i }) : null,+ o ? /* @__PURE__ */ (0, w.jsx)(ok, { ...i }) : null,/* @__PURE__ */ (0, w.jsx)("h2", {className: "configgroup",children: "更新与维护"}),- /* @__PURE__ */ (0, w.jsx)(CO, {+ /* @__PURE__ */ (0, w.jsx)(EO, {...i,reopenTutorial: t})@@ -33896,35 +33908,35 @@ function ak({ receipt: e, reopenTutorial: t }) {}//#endregion//#region src/react/settings/configuration-summary.tsx-var ok = (e) => {+var lk = (e) => {let t = e.updates;return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";};-function sk({ openConfiguration: e }) {+function uk({ openConfiguration: e }) {let t = pt({- queryKey: fO,- queryFn: ({ signal: e }) => pO(e)+ queryKey: hO,+ queryFn: ({ signal: e }) => gO(e)}), n = t.data;return /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-col",- children: [n ? /* @__PURE__ */ (0, w.jsxs)(pC, { children: [- /* @__PURE__ */ (0, w.jsx)(mC, {+ children: [n ? /* @__PURE__ */ (0, w.jsxs)(gC, { children: [+ /* @__PURE__ */ (0, w.jsx)(_C, {term: "媒体库",children: `${n.library_count} 个`}),- /* @__PURE__ */ (0, w.jsx)(mC, {+ /* @__PURE__ */ (0, w.jsx)(_C, {term: "端口",children: String(n.port)}),- /* @__PURE__ */ (0, w.jsx)(mC, {+ /* @__PURE__ */ (0, w.jsx)(_C, {term: "更新",- children: ok(n)+ children: lk(n)})- ] }) : /* @__PURE__ */ (0, w.jsx)(sC, { children: /* @__PURE__ */ (0, w.jsx)(Y, {+ ] }) : /* @__PURE__ */ (0, w.jsx)(uC, { children: /* @__PURE__ */ (0, w.jsx)(Y, {tone: "error",title: "打不开配置",children: t.error ? q(t.error) : "没有读到配置"- }) }), /* @__PURE__ */ (0, w.jsx)(cC, {+ }) }), /* @__PURE__ */ (0, w.jsx)(dC, {status: "媒体文件夹、端口、代理与更新在配置页上改。",children: /* @__PURE__ */ (0, w.jsx)(K, {onClick: e,@@ -33935,15 +33947,15 @@ function sk({ openConfiguration: e }) {}//#endregion//#region src/react/stats/stats.ts-var ck = "/api/stats", lk = ["stats"], uk = (e) => eh(ck, e);-async function dk(e) {+var dk = "/api/stats", fk = ["stats"], pk = (e) => eh(dk, e);+async function mk(e) {await hh.fetchQuery({- queryKey: lk,- queryFn: () => uk(e)+ queryKey: fk,+ queryFn: () => pk(e)});}-var fk = (e, t) => t ? Math.round(e / t * 100) : 0, pk = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, mk = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, hk = (e) => (e.max_reached || 0) * 100, gk = (e) => e.kind === "online" ? "在线直接观看" : mk(e) < hk(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", _k = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`;-function vk(e) {+var hk = (e, t) => t ? Math.round(e / t * 100) : 0, gk = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, _k = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, vk = (e) => (e.max_reached || 0) * 100, yk = (e) => e.kind === "online" ? "在线直接观看" : _k(e) < vk(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", bk = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`;+function xk(e) {let t = Math.max(1, ...e) * 1.1, n = Math.min(22, 110 / Math.max(1, e.length)), r = Math.min(15, n * .68);return e.map((e, i) => ({radius: 32 + i * n,@@ -33953,7 +33965,7 @@ function vk(e) {}//#endregion//#region src/react/components/expandable-ranking.tsx-function yk({ children: e, className: t = "", previewCount: n = 10 }) {+function Sk({ children: e, className: t = "", previewCount: n = 10 }) {let r = (0, C.useId)(), i = (0, C.useRef)(null), [a, o] = (0, C.useState)(!1), [s, c] = (0, C.useState)(!1), l = C.Children.toArray(e), u = l.length > n;(0, C.useLayoutEffect)(() => {let e = i.current;@@ -34000,21 +34012,21 @@ function yk({ children: e, className: t = "", previewCount: n = 10 }) {}//#endregion//#region src/react/stats/radial-card.tsx-var bk = [+var Ck = ["stroke-chart-1","stroke-chart-2","stroke-chart-3","stroke-chart-4","stroke-chart-5","stroke-chart-6"-], xk = [+], wk = ["bg-chart-1","bg-chart-2","bg-chart-3","bg-chart-4","bg-chart-5","bg-chart-6"-], Sk = [+], Tk = ["aria-pressed:bg-chart-1/10 aria-pressed:ring-chart-1","aria-pressed:bg-chart-2/10 aria-pressed:ring-chart-2","aria-pressed:bg-chart-3/10 aria-pressed:ring-chart-3",@@ -34022,10 +34034,10 @@ var bk = ["aria-pressed:bg-chart-5/10 aria-pressed:ring-chart-5","aria-pressed:bg-chart-6/10 aria-pressed:ring-chart-6"];-function Ck({ title: e, rows: t, unit: n = "个视频" }) {+function Ek({ title: e, rows: t, unit: n = "个视频" }) {let [r, i] = (0, C.useState)(-1), [a, o] = (0, C.useState)(-1), s = t.filter((e) => Number.isFinite(e.value) && e.value >= 0);if (!s.length) return null;- let c = a >= 0 ? a : r, l = s.reduce((e, t) => e + t.value, 0), u = vk(s.map((e) => e.value)), d = s[c], f = (e) => i((t) => t === e ? -1 : e);+ let c = a >= 0 ? a : r, l = s.reduce((e, t) => e + t.value, 0), u = xk(s.map((e) => e.value)), d = s[c], f = (e) => i((t) => t === e ? -1 : e);return /* @__PURE__ */ (0, w.jsxs)("section", {className: `${ch({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`,children: [@@ -34074,7 +34086,7 @@ function Ck({ title: e, rows: t, unit: n = "个视频" }) {pathLength: 100,transform: "rotate(-90 160 160)",strokeDasharray: `${u[t].length} ${100 - u[t].length}`,- className: c >= 0 && c !== t ? `cursor-pointer opacity-30 transition-opacity ${bk[t % 6]}` : `cursor-pointer transition-opacity ${bk[t % 6]}`+ className: c >= 0 && c !== t ? `cursor-pointer opacity-30 transition-opacity ${Ck[t % 6]}` : `cursor-pointer transition-opacity ${Ck[t % 6]}`})]}, e.name))@@ -34089,13 +34101,13 @@ function Ck({ title: e, rows: t, unit: n = "个视频" }) {onPointerLeave: () => o(-1),onFocus: () => o(t),onBlur: () => o(-1),- className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${Sk[t % 6]}`,+ className: `flex min-w-0 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none aria-pressed:ring-1 aria-pressed:ring-inset focus-visible:ring-2 focus-visible:ring-border-focus-ring ${Tk[t % 6]}`,children: [/* @__PURE__ */ (0, w.jsxs)("span", {className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",children: [/* @__PURE__ */ (0, w.jsx)("i", {"aria-hidden": !0,- className: `size-3 shrink-0 rounded-sm ${xk[t % 6]}`+ className: `size-3 shrink-0 rounded-sm ${wk[t % 6]}`}), e.name]}),/* @__PURE__ */ (0, w.jsx)("b", {@@ -34114,8 +34126,8 @@ function Ck({ title: e, rows: t, unit: n = "个视频" }) {}//#endregion//#region src/react/stats/stats-page.tsx-var wk = 10, Tk = `${ch()} flex flex-col gap-4`, Ek = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", Dk = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", Ok = "开始播放后,这里会显示最近的真实观看证据。", kk = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", Ak = "添加媒体文件夹后,这里会显示存储空间。";-function jk({ term: e, value: t }) {+var Dk = 10, Ok = `${ch()} flex flex-col gap-4`, kk = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", Ak = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", jk = "开始播放后,这里会显示最近的真实观看证据。", Mk = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", Nk = "添加媒体文件夹后,这里会显示存储空间。";+function Pk({ term: e, value: t }) {return /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",children: [/* @__PURE__ */ (0, w.jsx)("span", {@@ -34127,7 +34139,7 @@ function jk({ term: e, value: t }) {})]});}-function Mk({ term: e, value: t, total: n }) {+function Fk({ term: e, value: t, total: n }) {return /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",children: [/* @__PURE__ */ (0, w.jsxs)("p", {@@ -34136,7 +34148,7 @@ function Mk({ term: e, value: t, total: n }) {className: "tabular-nums",children: [t.toLocaleString(), /* @__PURE__ */ (0, w.jsxs)("span", {className: "ml-1.5 text-caption-1-regular text-text-secondary",- children: [fk(t, n), "%"]+ children: [hk(t, n), "%"]})]})]}), /* @__PURE__ */ (0, w.jsx)(ph, {@@ -34146,7 +34158,7 @@ function Mk({ term: e, value: t, total: n }) {})]});}-function Nk({ term: e, figure: t, unit: n }) {+function Ik({ term: e, figure: t, unit: n }) {return /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-64 md:pr-6 md:pb-0",children: [@@ -34165,26 +34177,26 @@ function Nk({ term: e, figure: t, unit: n }) {]});}-function Pk({ headline: e, children: t }) {+function Lk({ headline: e, children: t }) {return /* @__PURE__ */ (0, w.jsxs)("div", {- className: `${Tk} md:flex-row md:gap-6`,+ className: `${Ok} md:flex-row md:gap-6`,children: [e, /* @__PURE__ */ (0, w.jsx)("div", {className: "min-w-0 grow",children: t})]});}-function Fk({ data: t, configurable: r, openMediaSettings: i }) {+function Rk({ data: t, configurable: r, openMediaSettings: i }) {return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, w.jsxs)("div", {className: "inline-grid w-full gap-5 md:grid-cols-2",- children: [/* @__PURE__ */ (0, w.jsx)(Ck, {+ children: [/* @__PURE__ */ (0, w.jsx)(Ek, {title: "网盘与本地",rows: t.by_loc.map((t) => ({name: e[t.k] ?? t.k,value: t.videos,detail: n(t.bytes)}))- }), /* @__PURE__ */ (0, w.jsx)(Ck, {+ }), /* @__PURE__ */ (0, w.jsx)(Ek, {title: "媒体库",rows: t.by_library.map((e) => ({name: e.name,@@ -34200,40 +34212,40 @@ function Fk({ data: t, configurable: r, openMediaSettings: i }) {size: "small",onClick: i,children: "添加媒体文件夹"- }) : null, /* @__PURE__ */ (0, w.jsx)(iC, {+ }) : null, /* @__PURE__ */ (0, w.jsx)(sC, {href: "/follow-manage?tab=add",size: "small",children: "添加关注"})] }),- children: Ek+ children: kk});}-function Ik({ attribution: e }) {+function zk({ attribution: e }) {let t = e.videos;return /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-col",children: [- /* @__PURE__ */ (0, w.jsx)(Mk, {+ /* @__PURE__ */ (0, w.jsx)(Fk, {term: "有创作者",value: e.creator,total: t}),- /* @__PURE__ */ (0, w.jsx)(Mk, {+ /* @__PURE__ */ (0, w.jsx)(Fk, {term: "有番号",value: e.code,total: t}),- /* @__PURE__ */ (0, w.jsx)(Mk, {+ /* @__PURE__ */ (0, w.jsx)(Fk, {term: "有厂牌",value: e.studio,total: t}),- /* @__PURE__ */ (0, w.jsx)(Mk, {+ /* @__PURE__ */ (0, w.jsx)(Fk, {term: "已抽帧",value: e.thumb,total: t}),- /* @__PURE__ */ (0, w.jsx)(Mk, {+ /* @__PURE__ */ (0, w.jsx)(Fk, {term: "已探测时长",value: e.duration,total: t@@ -34241,7 +34253,7 @@ function Ik({ attribution: e }) {]});}-function Lk({ volume: e }) {+function Bk({ volume: e }) {let t = e.total, r = e.used ?? 0;return /* @__PURE__ */ (0, w.jsxs)("article", {className: "flex min-w-0 flex-col gap-1.5",@@ -34253,7 +34265,7 @@ function Lk({ volume: e }) {children: e.label}), /* @__PURE__ */ (0, w.jsx)("b", {className: "text-body-2-medium whitespace-nowrap text-text-primary",- children: t == null ? e.online ? "容量未取得" : "离线" : `${fk(r, t)}%`+ children: t == null ? e.online ? "容量未取得" : "离线" : `${hk(r, t)}%`})]}),/* @__PURE__ */ (0, w.jsx)("small", {@@ -34277,10 +34289,10 @@ function Lk({ volume: e }) {]});}-function Rk({ volumes: e, configurable: t, openMediaSettings: n }) {+function Vk({ volumes: e, configurable: t, openMediaSettings: n }) {return e.length ? /* @__PURE__ */ (0, w.jsx)("div", {className: "flex flex-col gap-5",- children: e.map((e) => /* @__PURE__ */ (0, w.jsx)(Lk, { volume: e }, `${e.kind}:${e.label}`))+ children: e.map((e) => /* @__PURE__ */ (0, w.jsx)(Bk, { volume: e }, `${e.kind}:${e.label}`))}) : /* @__PURE__ */ (0, w.jsx)(uh, {shell: "plain",icon: Yf,@@ -34290,12 +34302,12 @@ function Rk({ volumes: e, configurable: t, openMediaSettings: n }) {onClick: n,children: "添加媒体文件夹"}) : void 0,- children: Ak+ children: Nk});}-function zk({ tags: e, tagLabel: t, onTag: n }) {- return e.length ? /* @__PURE__ */ (0, w.jsx)(yk, {- previewCount: wk,+function Hk({ tags: e, tagLabel: t, onTag: n }) {+ return e.length ? /* @__PURE__ */ (0, w.jsx)(Sk, {+ previewCount: Dk,className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",children: e.map((e, r) => /* @__PURE__ */ (0, w.jsx)("li", {className: "min-w-0",@@ -34323,19 +34335,19 @@ function zk({ tags: e, tagLabel: t, onTag: n }) {shell: "plain",icon: rp,title: "还没有内容标签",- actions: /* @__PURE__ */ (0, w.jsx)(iC, {+ actions: /* @__PURE__ */ (0, w.jsx)(sC, {href: "/data-cleanup",size: "small",children: "补全资料"}),- children: Dk+ children: Ak});}-function Bk({ rows: e }) {+function Uk({ rows: e }) {return e.length ? /* @__PURE__ */ (0, w.jsx)("div", {className: "flex flex-col gap-5",children: e.map((e) => {- let t = mk(e);+ let t = _k(e);return /* @__PURE__ */ (0, w.jsxs)("article", {className: "flex flex-wrap items-center gap-x-6 gap-y-2",children: [/* @__PURE__ */ (0, w.jsxs)("div", {@@ -34343,14 +34355,14 @@ function Bk({ rows: e }) {children: [/* @__PURE__ */ (0, w.jsx)("h3", {className: "min-w-0 text-body-2-medium text-text-primary",children: /* @__PURE__ */ (0, w.jsx)("a", {- href: _k(e),+ href: bk(e),"data-middle-truncate": !0,className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",children: e.name})}), /* @__PURE__ */ (0, w.jsxs)("p", {className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",- children: [/* @__PURE__ */ (0, w.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, w.jsx)("span", { children: gk(e) })]+ children: [/* @__PURE__ */ (0, w.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, w.jsx)("span", { children: yk(e) })]})]}), /* @__PURE__ */ (0, w.jsxs)("div", {className: "min-w-0 basis-40",@@ -34359,7 +34371,7 @@ function Bk({ rows: e }) {value: t}), /* @__PURE__ */ (0, w.jsx)("small", {className: "mt-1.5 block text-caption-1-regular text-text-secondary",- children: `真实 ${t.toFixed(0)}% · 到达 ${hk(e).toFixed(0)}%`+ children: `真实 ${t.toFixed(0)}% · 到达 ${vk(e).toFixed(0)}%`})]})]}, `${e.kind}:${e.id}`);@@ -34368,15 +34380,15 @@ function Bk({ rows: e }) {shell: "plain",icon: Xf,title: "还没有观看记录",- actions: /* @__PURE__ */ (0, w.jsx)(iC, {+ actions: /* @__PURE__ */ (0, w.jsx)(sC, {href: "/",size: "small",children: "浏览馆藏"}),- children: Ok+ children: jk});}-function Vk({ sources: e, videos: t }) {+function Wk({ sources: e, videos: t }) {return e.length ? /* @__PURE__ */ (0, w.jsx)("div", {className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",children: e.map((e) => /* @__PURE__ */ (0, w.jsxs)("article", {@@ -34410,22 +34422,22 @@ function Vk({ sources: e, videos: t }) {shell: "plain",icon: rp,title: "还没有标签来源",- actions: /* @__PURE__ */ (0, w.jsx)(iC, {+ actions: /* @__PURE__ */ (0, w.jsx)(sC, {href: "/data-cleanup",size: "small",children: "补全资料"}),- children: kk+ children: Mk});}-function Hk({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {+function Gk({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {return /* @__PURE__ */ (0, w.jsx)(qy, {id: e,- className: zS({+ className: HS({interactive: !0,selectable: !0}),- children: /* @__PURE__ */ (0, w.jsx)(VS, {+ children: /* @__PURE__ */ (0, w.jsx)(WS, {label: t,icon: i,accent: a,@@ -34434,17 +34446,17 @@ function Hk({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {})});}-function Uk(e) {+function Kk(e) {let t = pt({- queryKey: lk,- queryFn: ({ signal: e }) => uk(e)+ queryKey: fk,+ queryFn: ({ signal: e }) => pk(e)}), r = t.data;if (!r) return /* @__PURE__ */ (0, w.jsx)(fh, { children: /* @__PURE__ */ (0, w.jsx)(Y, {tone: "error",title: "读取失败",children: t.error ? q(t.error) : "读取统计失败"}) });- let i = r.consumption, a = r.storage_summary, o = r.by_loc.reduce((e, t) => e + t.videos, 0), s = r.by_loc.reduce((e, t) => e + t.bytes, 0), c = fk(r.tag_cov, r.attribution.videos);+ let i = r.consumption, a = r.storage_summary, o = r.by_loc.reduce((e, t) => e + t.videos, 0), s = r.by_loc.reduce((e, t) => e + t.bytes, 0), c = hk(r.tag_cov, r.attribution.videos);return /* @__PURE__ */ (0, w.jsxs)(fh, { children: [/* @__PURE__ */ (0, w.jsx)("p", {className: "text-caption-1-regular text-text-secondary",@@ -34455,9 +34467,9 @@ function Uk(e) {children: [/* @__PURE__ */ (0, w.jsxs)(Gy, {"aria-label": "统计视图",- className: BS,+ className: US,children: [- /* @__PURE__ */ (0, w.jsx)(Hk, {+ /* @__PURE__ */ (0, w.jsx)(Gk, {id: "inventory",label: "馆藏视频",icon: Hf,@@ -34465,15 +34477,15 @@ function Uk(e) {figure: o.toLocaleString(),detail: n(s)}),- /* @__PURE__ */ (0, w.jsx)(Hk, {+ /* @__PURE__ */ (0, w.jsx)(Gk, {id: "viewing",label: "看过",icon: Kf,accent: 1,figure: i.played.toLocaleString(),- detail: pk(i.play_seconds)+ detail: gk(i.play_seconds)}),- /* @__PURE__ */ (0, w.jsx)(Hk, {+ /* @__PURE__ */ (0, w.jsx)(Gk, {id: "coverage",label: "内容标签",icon: rp,@@ -34481,7 +34493,7 @@ function Uk(e) {figure: `${c}%`,detail: `${r.tag_cov.toLocaleString()} / ${r.attribution.videos.toLocaleString()}`}),- /* @__PURE__ */ (0, w.jsx)(Hk, {+ /* @__PURE__ */ (0, w.jsx)(Gk, {id: "storage",label: "使用空间",icon: Yf,@@ -34493,15 +34505,15 @@ function Uk(e) {}),/* @__PURE__ */ (0, w.jsx)(Jy, {id: "inventory",- children: /* @__PURE__ */ (0, w.jsx)(Fk, {+ children: /* @__PURE__ */ (0, w.jsx)(Rk, {data: r,...e})}),/* @__PURE__ */ (0, w.jsx)(Jy, {id: "viewing",- children: /* @__PURE__ */ (0, w.jsx)(Pk, {- headline: /* @__PURE__ */ (0, w.jsx)(Nk, {+ children: /* @__PURE__ */ (0, w.jsx)(Lk, {+ headline: /* @__PURE__ */ (0, w.jsx)(Ik, {term: "观看",figure: i.played.toLocaleString(),unit: "个作品有播放记录"@@ -34509,31 +34521,31 @@ function Uk(e) {children: /* @__PURE__ */ (0, w.jsxs)("div", {className: "inline-grid w-full gap-3 sm:grid-cols-2",children: [- /* @__PURE__ */ (0, w.jsx)(jk, {+ /* @__PURE__ */ (0, w.jsx)(Pk, {term: "馆藏观看",value: i.library_played}),- /* @__PURE__ */ (0, w.jsx)(jk, {+ /* @__PURE__ */ (0, w.jsx)(Pk, {term: "在线直接观看",value: i.online_played}),- /* @__PURE__ */ (0, w.jsx)(jk, {+ /* @__PURE__ */ (0, w.jsx)(Pk, {term: "高潮计数",value: i.o_total}),- /* @__PURE__ */ (0, w.jsx)(jk, {+ /* @__PURE__ */ (0, w.jsx)(Pk, {term: "快进扫过",value: i.skimmed}),- /* @__PURE__ */ (0, w.jsx)(jk, {+ /* @__PURE__ */ (0, w.jsx)(Pk, {term: "明确不喜欢",value: i.dislike}),- /* @__PURE__ */ (0, w.jsx)(jk, {+ /* @__PURE__ */ (0, w.jsx)(Pk, {term: "看过了",value: i.seen}),- /* @__PURE__ */ (0, w.jsx)(jk, {+ /* @__PURE__ */ (0, w.jsx)(Pk, {term: "回收站",value: i.trash})@@ -34543,24 +34555,24 @@ function Uk(e) {}),/* @__PURE__ */ (0, w.jsx)(Jy, {id: "coverage",- children: /* @__PURE__ */ (0, w.jsx)(Pk, {- headline: /* @__PURE__ */ (0, w.jsx)(Nk, {+ children: /* @__PURE__ */ (0, w.jsx)(Lk, {+ headline: /* @__PURE__ */ (0, w.jsx)(Ik, {term: "内容标签覆盖",figure: `${c}%`,unit: `${r.tag_cov.toLocaleString()} / ${r.attribution.videos.toLocaleString()}`}),- children: /* @__PURE__ */ (0, w.jsx)(Ik, { attribution: r.attribution })+ children: /* @__PURE__ */ (0, w.jsx)(zk, { attribution: r.attribution })})}),/* @__PURE__ */ (0, w.jsx)(Jy, {id: "storage",- children: /* @__PURE__ */ (0, w.jsx)(Pk, {- headline: /* @__PURE__ */ (0, w.jsx)(Nk, {+ children: /* @__PURE__ */ (0, w.jsx)(Lk, {+ headline: /* @__PURE__ */ (0, w.jsx)(Ik, {term: "使用空间",figure: String(a.measured),unit: "个卷已取得容量"}),- children: /* @__PURE__ */ (0, w.jsx)(Rk, {+ children: /* @__PURE__ */ (0, w.jsx)(Vk, {volumes: r.storage_volumes,...e})@@ -34575,21 +34587,21 @@ function Uk(e) {className: "px-4 pt-3",children: /* @__PURE__ */ (0, w.jsxs)(Gy, {"aria-label": "统计维度",- className: FS,+ className: RS,children: [/* @__PURE__ */ (0, w.jsx)(qy, {id: "tags",- className: IS,+ className: zS,children: "内容标签"}),/* @__PURE__ */ (0, w.jsx)(qy, {id: "recent",- className: IS,+ className: zS,children: "最近看过"}),/* @__PURE__ */ (0, w.jsx)(qy, {id: "sources",- className: IS,+ className: zS,children: "标签来源"})]@@ -34598,7 +34610,7 @@ function Uk(e) {/* @__PURE__ */ (0, w.jsx)(Jy, {id: "tags",className: "px-4 pt-3.5 pb-4",- children: /* @__PURE__ */ (0, w.jsx)(zk, {+ children: /* @__PURE__ */ (0, w.jsx)(Hk, {tags: r.top_tags,...e})@@ -34606,12 +34618,12 @@ function Uk(e) {/* @__PURE__ */ (0, w.jsx)(Jy, {id: "recent",className: "px-4 pt-3.5 pb-4",- children: /* @__PURE__ */ (0, w.jsx)(Bk, { rows: r.recent })+ children: /* @__PURE__ */ (0, w.jsx)(Uk, { rows: r.recent })}),/* @__PURE__ */ (0, w.jsx)(Jy, {id: "sources",className: "px-4 pt-3.5 pb-4",- children: /* @__PURE__ */ (0, w.jsx)(Vk, {+ children: /* @__PURE__ */ (0, w.jsx)(Wk, {sources: r.tag_source,videos: r.attribution.videos})@@ -34622,7 +34634,7 @@ function Uk(e) {}//#endregion//#region node_modules/d3-array/src/max.js-function Wk(e, t) {+function qk(e, t) {let n;if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);else {@@ -34633,7 +34645,7 @@ function Wk(e, t) {}//#endregion//#region node_modules/d3-array/src/min.js-function Gk(e, t) {+function Jk(e, t) {let n;if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);else {@@ -34644,7 +34656,7 @@ function Gk(e, t) {}//#endregion//#region node_modules/d3-array/src/sum.js-function Kk(e, t) {+function Yk(e, t) {let n = 0;if (t === void 0) for (let t of e) (t = +t) && (n += t);else {@@ -34655,66 +34667,66 @@ function Kk(e, t) {}//#endregion//#region node_modules/d3-sankey/src/align.js-function qk(e, t) {+function Xk(e, t) {return e.sourceLinks.length ? e.depth : t - 1;}//#endregion//#region node_modules/d3-sankey/src/constant.js-function Jk(e) {+function Zk(e) {return function() {return e;};}//#endregion//#region node_modules/d3-sankey/src/sankey.js-function Yk(e, t) {- return Zk(e.source, t.source) || e.index - t.index;+function Qk(e, t) {+ return eA(e.source, t.source) || e.index - t.index;}-function Xk(e, t) {- return Zk(e.target, t.target) || e.index - t.index;+function $k(e, t) {+ return eA(e.target, t.target) || e.index - t.index;}-function Zk(e, t) {+function eA(e, t) {return e.y0 - t.y0;}-function Qk(e) {+function tA(e) {return e.value;}-function $k(e) {+function nA(e) {return e.index;}-function eA(e) {+function rA(e) {return e.nodes;}-function tA(e) {+function iA(e) {return e.links;}-function nA(e, t) {+function aA(e, t) {let n = e.get(t);if (!n) throw Error("missing: " + t);return n;}-function rA({ nodes: e }) {+function oA({ nodes: e }) {for (let t of e) {let e = t.y0, n = e;for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;}}-function iA() {- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = $k, c = qk, l, u, d = eA, f = tA, p = 6;+function sA() {+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = nA, c = Xk, l, u, d = rA, f = iA, p = 6;function m() {let e = {nodes: d.apply(null, arguments),links: f.apply(null, arguments)};- return h(e), g(e), _(e), v(e), x(e), rA(e), e;+ return h(e), g(e), _(e), v(e), x(e), oA(e), e;}m.update = function(e) {- return rA(e), e;+ return oA(e), e;}, m.nodeId = function(e) {- return arguments.length ? (s = typeof e == "function" ? e : Jk(e), m) : s;+ return arguments.length ? (s = typeof e == "function" ? e : Zk(e), m) : s;}, m.nodeAlign = function(e) {- return arguments.length ? (c = typeof e == "function" ? e : Jk(e), m) : c;+ return arguments.length ? (c = typeof e == "function" ? e : Zk(e), m) : c;}, m.nodeSort = function(e) {return arguments.length ? (l = e, m) : l;}, m.nodeWidth = function(e) {@@ -34722,9 +34734,9 @@ function iA() {}, m.nodePadding = function(e) {return arguments.length ? (a = o = +e, m) : a;}, m.nodes = function(e) {- return arguments.length ? (d = typeof e == "function" ? e : Jk(e), m) : d;+ return arguments.length ? (d = typeof e == "function" ? e : Zk(e), m) : d;}, m.links = function(e) {- return arguments.length ? (f = typeof e == "function" ? e : Jk(e), m) : f;+ return arguments.length ? (f = typeof e == "function" ? e : Zk(e), m) : f;}, m.linkSort = function(e) {return arguments.length ? (u = e, m) : u;}, m.size = function(i) {@@ -34740,12 +34752,12 @@ function iA() {for (let [e, r] of t.entries()) {r.index = e;let { source: t, target: i } = r;- typeof t != "object" && (t = r.source = nA(n, t)), typeof i != "object" && (i = r.target = nA(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);+ typeof t != "object" && (t = r.source = aA(n, t)), typeof i != "object" && (i = r.target = aA(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);}if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);}function g({ nodes: e }) {- for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(Kk(t.sourceLinks, Qk), Kk(t.targetLinks, Qk)) : t.fixedValue;+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(Yk(t.sourceLinks, tA), Yk(t.targetLinks, tA)) : t.fixedValue;}function _({ nodes: e }) {let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;@@ -34770,7 +34782,7 @@ function iA() {}}function y({ nodes: t }) {- let r = Wk(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);+ let r = qk(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);for (let n of t) {let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];@@ -34779,7 +34791,7 @@ function iA() {return o;}function b(e) {- let n = Gk(e, (e) => (r - t - (e.length - 1) * o) / Kk(e, Qk));+ let n = Jk(e, (e) => (r - t - (e.length - 1) * o) / Yk(e, tA));for (let i of e) {let e = t;for (let t of i) {@@ -34796,7 +34808,7 @@ function iA() {}function x(e) {let n = y(e);- o = Math.min(a, (r - t) / (Wk(n, (e) => e.length) - 1)), b(n);+ o = Math.min(a, (r - t) / (qk(n, (e) => e.length) - 1)), b(n);for (let e = 0; e < p; ++e) {let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);C(n, t, r), S(n, t, r);@@ -34815,7 +34827,7 @@ function iA() {let i = (n / r - e.y0) * t;e.y0 += i, e.y1 += i, D(e);}- l === void 0 && i.sort(Zk), w(i, n);+ l === void 0 && i.sort(eA), w(i, n);}}function C(e, t, n) {@@ -34831,7 +34843,7 @@ function iA() {let i = (n / r - e.y0) * t;e.y0 += i, e.y1 += i, D(e);}- l === void 0 && i.sort(Zk), w(i, n);+ l === void 0 && i.sort(eA), w(i, n);}}function w(e, n) {@@ -34852,12 +34864,12 @@ function iA() {}function D({ sourceLinks: e, targetLinks: t }) {if (u === void 0) {- for (let { source: { sourceLinks: e } } of t) e.sort(Xk);- for (let { target: { targetLinks: t } } of e) t.sort(Yk);+ for (let { source: { sourceLinks: e } } of t) e.sort($k);+ for (let { target: { targetLinks: t } } of e) t.sort(Qk);}}function O(e) {- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(Xk), n.sort(Yk);+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort($k), n.sort(Qk);}function k(e, t) {let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;@@ -34887,15 +34899,15 @@ function iA() {}//#endregion//#region node_modules/d3-path/src/path.js-var aA = Math.PI, oA = 2 * aA, sA = 1e-6, cA = oA - sA;-function lA() {+var cA = Math.PI, lA = 2 * cA, uA = 1e-6, dA = lA - uA;+function fA() {this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";}-function uA() {- return new lA();+function pA() {+ return new fA();}-lA.prototype = uA.prototype = {- constructor: lA,+fA.prototype = pA.prototype = {+ constructor: fA,moveTo: function(e, t) {this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);},@@ -34916,11 +34928,11 @@ lA.prototype = uA.prototype = {var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;if (i < 0) throw Error("negative radius: " + i);if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);- else if (d > sA) {- if (!(Math.abs(u * s - c * l) > sA) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);+ else if (d > uA) {+ if (!(Math.abs(u * s - c * l) > uA) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);else {- var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((aA - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;- Math.abs(y - 1) > sA && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);+ var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((cA - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;+ Math.abs(y - 1) > uA && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);}}},@@ -34928,7 +34940,7 @@ lA.prototype = uA.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) > sA || Math.abs(this._y1 - l) > sA) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % oA + oA), d > cA ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > sA && (this._ += "A" + n + "," + n + ",0," + +(d >= aA) + "," + 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) > uA || Math.abs(this._y1 - l) > uA) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % lA + lA), d > dA ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > uA && (this._ += "A" + n + "," + n + ",0," + +(d >= cA) + "," + 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";@@ -34939,90 +34951,90 @@ lA.prototype = uA.prototype = {};//#endregion//#region node_modules/d3-shape/src/constant.js-function dA(e) {+function mA(e) {return function() {return e;};}//#endregion//#region node_modules/d3-shape/src/point.js-function fA(e) {+function hA(e) {return e[0];}-function pA(e) {+function gA(e) {return e[1];}//#endregion//#region node_modules/d3-shape/src/array.js-var mA = Array.prototype.slice;+var _A = Array.prototype.slice;//#endregion//#region node_modules/d3-shape/src/link/index.js-function hA(e) {+function vA(e) {return e.source;}-function gA(e) {+function yA(e) {return e.target;}-function _A(e) {- var t = hA, n = gA, r = fA, i = pA, a = null;+function bA(e) {+ var t = vA, n = yA, r = hA, i = gA, a = null;function o() {- var o, s = mA.call(arguments), c = t.apply(this, s), l = n.apply(this, s);- if (a ||= o = uA(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;+ var o, s = _A.call(arguments), c = t.apply(this, s), l = n.apply(this, s);+ if (a ||= o = pA(), e(a, +r.apply(this, (s[0] = c, s)), +i.apply(this, s), +r.apply(this, (s[0] = l, s)), +i.apply(this, s)), o) return a = null, o + "" || null;}return o.source = function(e) {return arguments.length ? (t = e, o) : t;}, o.target = function(e) {return arguments.length ? (n = e, o) : n;}, o.x = function(e) {- return arguments.length ? (r = typeof e == "function" ? e : dA(+e), o) : r;+ return arguments.length ? (r = typeof e == "function" ? e : mA(+e), o) : r;}, o.y = function(e) {- return arguments.length ? (i = typeof e == "function" ? e : dA(+e), o) : i;+ return arguments.length ? (i = typeof e == "function" ? e : mA(+e), o) : i;}, o.context = function(e) {return arguments.length ? (a = e ?? null, o) : a;}, o;}-function vA(e, t, n, r, i) {+function xA(e, t, n, r, i) {e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);}-function yA() {- return _A(vA);+function SA() {+ return bA(xA);}//#endregion//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js-function bA(e) {+function CA(e) {return [e.source.x1, e.y0];}-function xA(e) {+function wA(e) {return [e.target.x0, e.y1];}-function SA() {- return yA().source(bA).target(xA);+function TA() {+ return SA().source(CA).target(wA);}//#endregion//#region src/react/taste/taste.ts-var CA = "/api/taste", wA = "/api/taste/refresh", TA = "/api/taste/import", EA = "/api/taste/source", DA = (e) => ["taste", e], OA = ["taste", "refresh"], kA = [+var EA = "/api/taste", DA = "/api/taste/refresh", OA = "/api/taste/import", kA = "/api/taste/source", AA = (e) => ["taste", e], jA = ["taste", "refresh"], MA = [["7d", "最近 7 天"],["30d", "最近 30 天"],["90d", "最近 90 天"],["365d", "最近一年"],["all", "全部时间"]-], AA = (e, t) => eh(`${CA}?window=${e}`, t), jA = (e) => eh(wA, e);-async function MA(e, t) {+], NA = (e, t) => eh(`${EA}?window=${e}`, t), PA = (e) => eh(DA, e);+async function FA(e, t) {await hh.fetchQuery({- queryKey: DA(e),- queryFn: () => AA(e, t)+ queryKey: AA(e),+ queryFn: () => NA(e, t)});}-var NA = (e) => J(wA, {+var IA = (e) => J(DA, {window: e,background: !0-}), PA = (e, t) => J(EA, {+}), LA = (e, t) => J(kA, {operation: "remove",source_key: e,window: t});-async function FA(e) {- let t = await fetch(TA, {+async function RA(e) {+ let t = await fetch(OA, {method: "POST",credentials: "same-origin",headers: {@@ -35040,34 +35052,34 @@ async function FA(e) {}return n;}-var IA = 1e4, LA = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", RA = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, zA = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);-function BA(e) {+var zA = 1e4, BA = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", VA = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, HA = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);+function UA(e) {if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();let t = [];return e.web_visits && t.push(`浏览 ${e.web_visits}`), e.peach_items && t.push(`Peach ${e.peach_items}`), t.join(" · ");}-function VA(e) {- let t = e.map(zA), n = Math.max(1, ...t);+function WA(e) {+ let t = e.map(HA), n = Math.max(1, ...t);return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));}-var HA = {+var GA = {x: 160,y: 140-}, UA = [+}, KA = [25,50,75,100-], WA = (e, t, n) => {+], qA = (e, t, n) => {let r = e / t * Math.PI * 2 - Math.PI / 2;- return [HA.x + Math.cos(r) * n, HA.y + Math.sin(r) * n];+ return [GA.x + Math.cos(r) * n, GA.y + Math.sin(r) * n];};-function GA(e) {+function JA(e) {let t = e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).slice().sort((e, t) => Number(t.score) - Number(e.score)).slice(0, 6);if (t.length < 3) return [];let n = Math.max(...t.map((e) => Number(e.score)));return t.map((e, r) => {- let [i, a] = WA(r, t.length, Number(e.score) / n * 100), [o, s] = WA(r, t.length, 116);+ let [i, a] = qA(r, t.length, Number(e.score) / n * 100), [o, s] = qA(r, t.length, 116);return {name: e.name,x: i,@@ -35077,7 +35089,7 @@ function GA(e) {};});}-var KA = (e, t) => Array.from({ length: t }, (n, r) => WA(r, t, e).map((e) => e.toFixed(2)).join(",")).join(" "), qA = (e) => e.map((e) => `${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" "), JA = [+var YA = (e, t) => Array.from({ length: t }, (n, r) => qA(r, t, e).map((e) => e.toFixed(2)).join(",")).join(" "), XA = (e) => e.map((e) => `${e.x.toFixed(2)},${e.y.toFixed(2)}`).join(" "), ZA = ["周一","周二","周三",@@ -35085,8 +35097,8 @@ var KA = (e, t) => Array.from({ length: t }, (n, r) => WA(r, t, e).map((e) => e."周五","周六","周日"-], YA = (e, t) => e ? Math.max(.12, e / t) : 0;-function XA(e) {+], QA = (e, t) => e ? Math.max(.12, e / t) : 0;+function $A(e) {let t = Array.from({ length: 7 }, () => Array(24).fill(0));for (let n of e?.hours || []) {let { weekday: e, hour: r, count: i } = n;@@ -35096,14 +35108,14 @@ function XA(e) {return {cells: t.flatMap((e, t) => e.map((e, n) => ({key: `${t}-${n}`,- label: `${JA[t]} ${n}:00`,+ label: `${ZA[t]} ${n}:00`,count: e,- share: YA(e, r)+ share: QA(e, r)}))),total: n.reduce((e, t) => e + t, 0)};}-function ZA(e) {+function ej(e) {let t = (e?.days || []).filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && Number.isFinite(e.count) && e.count >= 0).slice().sort((e, t) => e.date.localeCompare(t.date)), n = {cells: [],total: 0,@@ -35121,7 +35133,7 @@ function ZA(e) {key: r,label: r,count: s,- share: YA(s, o)+ share: QA(s, o)};});return {@@ -35131,17 +35143,17 @@ function ZA(e) {end: t.at(-1).date};}-var QA = {+var tj = {width: 720,height: 435-}, $A = {+}, nj = {source: 145,target: 545};-function ej(e = []) {+function rj(e = []) {let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);if (!t.length) return null;- let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = iA().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({+ let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = sA().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({nodes: [...n.map((e) => ({id: `source:${e}`,name: e,@@ -35156,7 +35168,7 @@ function ej(e = []) {target: `target:${e.target}`,value: e.value}))- }), a = t.reduce((e, t) => e + t.value, 0), o = SA();+ }), a = t.reduce((e, t) => e + t.value, 0), o = TA();return {nodes: i.nodes.map((e) => ({id: e.id,@@ -35186,22 +35198,22 @@ function ej(e = []) {total: a};}-var tj = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, nj = [+var ij = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, aj = ["stroke-chart-1","stroke-chart-2","stroke-chart-3","stroke-chart-4","stroke-chart-5","stroke-chart-6"-], rj = [+], oj = ["fill-chart-1","fill-chart-2","fill-chart-3","fill-chart-4","fill-chart-5","fill-chart-6"-], ij = `${ch({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;-function aj({ title: e, figure: t, note: n }) {+], sj = `${ch({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;+function cj({ title: e, figure: t, note: n }) {return /* @__PURE__ */ (0, w.jsxs)("header", {className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",children: [/* @__PURE__ */ (0, w.jsxs)("span", {@@ -35219,8 +35231,8 @@ function aj({ title: e, figure: t, note: n }) {})]});}-function oj({ rows: e, label: t }) {- let n = GA(e);+function lj({ rows: e, label: t }) {+ let n = JA(e);if (!n.length) return null;let r = n.length;return /* @__PURE__ */ (0, w.jsxs)("svg", {@@ -35230,14 +35242,14 @@ function oj({ rows: e, label: t }) {className: "block w-full overflow-visible",children: [/* @__PURE__ */ (0, w.jsx)("title", { children: n.map((e) => e.name).join(",") }),- UA.map((e) => /* @__PURE__ */ (0, w.jsx)("polygon", {- points: KA(e, r),+ KA.map((e) => /* @__PURE__ */ (0, w.jsx)("polygon", {+ points: YA(e, r),fill: "none",className: "stroke-separator-border",strokeWidth: 1}, e)),/* @__PURE__ */ (0, w.jsx)("polygon", {- points: qA(n),+ points: XA(n),strokeWidth: 2,strokeLinejoin: "round",fillOpacity: .18,@@ -35254,10 +35266,10 @@ function oj({ rows: e, label: t }) {]});}-function sj({ rows: e, label: t }) {+function uj({ rows: e, label: t }) {let n = e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).slice().sort((e, t) => Number(t.score) - Number(e.score)).slice(0, 8);if (!n.length) return null;- let r = VA(n);+ let r = WA(n);return /* @__PURE__ */ (0, w.jsx)("ol", {"aria-label": t,className: "flex flex-col gap-2",@@ -35290,12 +35302,12 @@ function sj({ rows: e, label: t }) {}, e.name))});}-function cj({ title: e, unit: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s }) {+function dj({ title: e, unit: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s }) {let [c, l] = (0, C.useState)(null), u = o ? 30 : 0, d = o ? 18 : 0;return /* @__PURE__ */ (0, w.jsxs)("section", {- className: ij,+ className: sj,children: [- /* @__PURE__ */ (0, w.jsx)(aj, {+ /* @__PURE__ */ (0, w.jsx)(cj, {title: e,figure: (c ? c.count : r).toLocaleString(),note: c ? c.label : t@@ -35335,11 +35347,11 @@ function cj({ title: e, unit: t, cells: n, total: r, columns: i, rows: a, axis:]});}-var lj = "口味网站访问";-function uj({ activity: e }) {- let t = XA(e), n = ZA(e);+var fj = "口味网站访问";+function pj({ activity: e }) {+ let t = $A(e), n = ej(e);if (!n.cells.length) return /* @__PURE__ */ (0, w.jsxs)("section", {- className: ij,+ className: sj,children: [/* @__PURE__ */ (0, w.jsx)("h3", {className: "text-title-2-medium text-text-primary",children: "浏览活跃时间"@@ -35348,7 +35360,7 @@ function uj({ activity: e }) {children: "还没有可用于分析的口味网站访问记录。"})]});- let r = /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [JA.map((e, t) => /* @__PURE__ */ (0, w.jsx)("text", {+ let r = /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [ZA.map((e, t) => /* @__PURE__ */ (0, w.jsx)("text", {x: 0,y: 18 + t * 17 + 7,dominantBaseline: "middle",@@ -35363,18 +35375,18 @@ function uj({ activity: e }) {}, t))] });return /* @__PURE__ */ (0, w.jsxs)("div", {className: "inline-grid w-full gap-5 lg:grid-cols-2",- children: [/* @__PURE__ */ (0, w.jsx)(cj, {+ children: [/* @__PURE__ */ (0, w.jsx)(dj, {title: "浏览活跃时间",- unit: lj,+ unit: fj,cells: t.cells,total: t.total,columns: 24,rows: 7,axis: r,footer: /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [/* @__PURE__ */ (0, w.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, w.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })- }), /* @__PURE__ */ (0, w.jsx)(cj, {+ }), /* @__PURE__ */ (0, w.jsx)(dj, {title: "每日活跃",- unit: lj,+ unit: fj,cells: n.cells,total: n.total,columns: 13,@@ -35383,14 +35395,14 @@ function uj({ activity: e }) {})]});}-function dj({ flows: e }) {- let [t, n] = (0, C.useState)(null), r = ej(e);+function mj({ flows: e }) {+ let [t, n] = (0, C.useState)(null), r = rj(e);if (!r) return null;let i = t?.node ?? null, a = (e, n) => t ? i === null ? t.label === n : e.source === i || e.target === i : !0;return /* @__PURE__ */ (0, w.jsxs)("section", {- className: ij,+ className: sj,children: [- /* @__PURE__ */ (0, w.jsx)(aj, {+ /* @__PURE__ */ (0, w.jsx)(cj, {title: "创作者线索来源",figure: (t ? t.value : r.total).toLocaleString(),note: t ? t.label : "条线索"@@ -35398,7 +35410,7 @@ function dj({ flows: e }) {/* @__PURE__ */ (0, w.jsx)("div", {className: "min-w-0 overflow-x-auto",children: /* @__PURE__ */ (0, w.jsxs)("svg", {- viewBox: `0 0 ${QA.width} ${QA.height}`,+ viewBox: `0 0 ${tj.width} ${tj.height}`,fill: "none",role: "img","aria-label": "来源网站与创作者线索",@@ -35412,7 +35424,7 @@ function dj({ flows: e }) {"aria-label": `${e.label}:${e.value} 条线索`,fillOpacity: 0,strokeOpacity: a(e, e.label) ? .55 : .08,- className: `outline-none transition-opacity ${nj[e.color]}`,+ className: `outline-none transition-opacity ${aj[e.color]}`,onPointerEnter: () => n({value: e.value,label: e.label,@@ -35446,15 +35458,15 @@ function dj({ flows: e }) {width: 10,height: e.height,rx: 5,- className: e.side === "source" ? rj[e.color] : "fill-text-secondary"+ className: e.side === "source" ? oj[e.color] : "fill-text-secondary"}), /* @__PURE__ */ (0, w.jsxs)("text", {- x: $A[e.side],+ x: nj[e.side],y: e.y + e.height / 2,textAnchor: e.side === "source" ? "end" : "start",dominantBaseline: "middle",className: "fill-text-secondary text-caption-1-regular",- children: [tj(e.name), /* @__PURE__ */ (0, w.jsx)("tspan", {- x: $A[e.side],+ children: [ij(e.name), /* @__PURE__ */ (0, w.jsx)("tspan", {+ x: nj[e.side],dy: 15,children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`})]@@ -35471,11 +35483,11 @@ function dj({ flows: e }) {}//#endregion//#region src/react/taste/taste-page.tsx-var fj = 10, pj = G(JS, YS, "text-body-2-medium"), mj = `${ch()} flex flex-col gap-4`, hj = "rounded-xl bg-background-primary-default p-3", gj = "读取运行 Peach 的这台电脑上的浏览记录", _j = "导入或读取浏览记录后,这里会列出已采集设备。", vj = "馆藏里暂时没有对得上浏览信号的标签。", yj = "采集浏览记录后,这里会显示聚合后的口味证据。", bj = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", xj = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", Sj = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", Cj = "需要刷新时再次读取或导入;数据源可在页面底部移除。", wj = "这个数据源将不再用于口味分析。原始导出文件保留。", Tj = "peach-taste-guide-dismissed";-function Ej({ icon: e, term: t, figure: n, detail: r, accent: i }) {+var hj = 10, gj = G(ZS, QS, "text-body-2-medium"), _j = `${ch()} flex flex-col gap-4`, vj = "rounded-xl bg-background-primary-default p-3", yj = "读取运行 Peach 的这台电脑上的浏览记录", bj = "导入或读取浏览记录后,这里会列出已采集设备。", xj = "馆藏里暂时没有对得上浏览信号的标签。", Sj = "采集浏览记录后,这里会显示聚合后的口味证据。", Cj = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", wj = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", Tj = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", Ej = "需要刷新时再次读取或导入;数据源可在页面底部移除。", Dj = "这个数据源将不再用于口味分析。原始导出文件保留。", Oj = "peach-taste-guide-dismissed";+function kj({ icon: e, term: t, figure: n, detail: r, accent: i }) {return /* @__PURE__ */ (0, w.jsx)("div", {- className: zS(),- children: /* @__PURE__ */ (0, w.jsx)(VS, {+ className: HS(),+ children: /* @__PURE__ */ (0, w.jsx)(WS, {label: t,icon: e,accent: i,@@ -35484,7 +35496,7 @@ function Ej({ icon: e, term: t, figure: n, detail: r, accent: i }) {})});}-function Dj({ name: e, domain: t }) {+function Aj({ name: e, domain: t }) {return /* @__PURE__ */ (0, w.jsxs)("span", {className: "relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-lg bg-background-tertiary-default text-caption-1-medium text-text-secondary",children: [e.slice(0, 1).toUpperCase(), /* @__PURE__ */ (0, w.jsx)("img", {@@ -35498,22 +35510,22 @@ function Dj({ name: e, domain: t }) {})]});}-function Oj({ html: e }) {+function jj({ html: e }) {return /* @__PURE__ */ (0, w.jsx)("span", {className: "relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:object-cover",dangerouslySetInnerHTML: { __html: e }});}-function kj({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {+function Mj({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {if (!e.length) return /* @__PURE__ */ (0, w.jsx)(uh, {shell: "plain",icon: op,title: "暂无足够证据",children: r});- let o = VA(e);- return /* @__PURE__ */ (0, w.jsx)(yk, {- previewCount: fj,+ let o = WA(e);+ return /* @__PURE__ */ (0, w.jsx)(Sk, {+ previewCount: hj,className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",children: e.map((e, r) => {let s = !!t && !!e.peach_items, c = String(e.source_domain || ""), l = /* @__PURE__ */ (0, w.jsxs)(w.Fragment, { children: [@@ -35532,15 +35544,15 @@ function kj({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: aclassName: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",children: r + 1}),- n === "domain" ? /* @__PURE__ */ (0, w.jsx)(Dj, {+ n === "domain" ? /* @__PURE__ */ (0, w.jsx)(Aj, {name: e.name,domain: e.name}) : null,- n === "creator" && !e.entity_id && !e.has_avatar && c ? /* @__PURE__ */ (0, w.jsx)(Dj, {+ n === "creator" && !e.entity_id && !e.has_avatar && c ? /* @__PURE__ */ (0, w.jsx)(Aj, {name: e.name,domain: c}) : null,- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, w.jsx)(Oj, { html: a(e.name, e.entity_id ? {+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, w.jsx)(jj, { html: a(e.name, e.entity_id ? {id: e.entity_id,has_image: !!e.has_image,avatar_focus: e.avatar_focus@@ -35552,7 +35564,7 @@ function kj({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: achildren: e.name}), /* @__PURE__ */ (0, w.jsx)("small", {className: "text-caption-1-regular text-text-secondary",- children: BA(e)+ children: UA(e)})]}),s ? /* @__PURE__ */ (0, w.jsx)(Ff, {@@ -35575,24 +35587,24 @@ function kj({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a})});}-function Aj({ label: e, panels: t, onSignal: n, avatarInner: r }) {+function Nj({ label: e, panels: t, onSignal: n, avatarInner: r }) {return /* @__PURE__ */ (0, w.jsxs)(Uy, {className: `${ch({ padding: "none" })} flex flex-col`,children: [/* @__PURE__ */ (0, w.jsx)("div", {className: "px-4 pt-3",children: /* @__PURE__ */ (0, w.jsx)(Gy, {"aria-label": e,- className: FS,+ className: RS,children: t.map((e) => /* @__PURE__ */ (0, w.jsx)(qy, {id: e.id,- className: IS,+ className: zS,children: e.name}, e.id))})}), t.map((e) => /* @__PURE__ */ (0, w.jsx)(Jy, {id: e.id,className: "px-4 pt-3.5 pb-4",- children: /* @__PURE__ */ (0, w.jsx)(kj, {+ children: /* @__PURE__ */ (0, w.jsx)(Mj, {...e.props,onSignal: n,avatarInner: r@@ -35600,7 +35612,7 @@ function Aj({ label: e, panels: t, onSignal: n, avatarInner: r }) {}, e.id))]});}-function jj({ data: e, onSignal: t, navigate: n }) {+function Pj({ data: e, onSignal: t, navigate: n }) {let r = e.analysis;if (!r?.headline) return null;let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({@@ -35615,7 +35627,7 @@ function jj({ data: e, onSignal: t, navigate: n }) {act: () => n(e.route)}))];return /* @__PURE__ */ (0, w.jsxs)("section", {- className: mj,+ className: _j,"aria-label": "口味总结",children: [/* @__PURE__ */ (0, w.jsxs)("header", {@@ -35641,7 +35653,7 @@ function jj({ data: e, onSignal: t, navigate: n }) {r.points?.length ? /* @__PURE__ */ (0, w.jsx)("div", {className: "inline-grid w-full gap-3 sm:grid-cols-2",children: r.points.map((e) => /* @__PURE__ */ (0, w.jsxs)("div", {- className: `flex min-w-0 flex-col gap-1 ${hj}`,+ className: `flex min-w-0 flex-col gap-1 ${vj}`,children: [/* @__PURE__ */ (0, w.jsx)("span", {className: "text-caption-1-regular text-text-secondary",children: e.label@@ -35656,7 +35668,7 @@ function jj({ data: e, onSignal: t, navigate: n }) {children: a.map((e) => /* @__PURE__ */ (0, w.jsxs)("button", {type: "button",onClick: e.act,- className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${hj} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,+ className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${vj} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,children: [/* @__PURE__ */ (0, w.jsxs)("span", {className: "flex min-w-0 grow flex-col gap-1",children: [/* @__PURE__ */ (0, w.jsx)("b", {@@ -35675,15 +35687,15 @@ function jj({ data: e, onSignal: t, navigate: n }) {shell: "plain",icon: op,title: "还没有可探索的入口",- children: vj+ children: xj})]});}-function Mj({ onboarding: e, done: t }) {+function Fj({ onboarding: e, done: t }) {let [n, r] = (0, C.useState)(() => {try {- return localStorage.getItem(Tj) === "1";+ return localStorage.getItem(Oj) === "1";} catch {return !1;}@@ -35693,17 +35705,17 @@ function Mj({ onboarding: e, done: t }) {padding: "none",className: "p-4"}),- children: /* @__PURE__ */ (0, w.jsxs)(hC, {+ children: /* @__PURE__ */ (0, w.jsxs)(vC, {summary: "浏览器历史记录导入指南",defaultOpen: e,children: [/* @__PURE__ */ (0, w.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: xj+ children: wj}),/* @__PURE__ */ (0, w.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: Sj+ children: Tj}),/* @__PURE__ */ (0, w.jsxs)("ul", {className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",@@ -35733,7 +35745,7 @@ function Mj({ onboarding: e, done: t }) {}),/* @__PURE__ */ (0, w.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: Cj+ children: Ej}),/* @__PURE__ */ (0, w.jsx)("span", {className: "self-start",@@ -35742,7 +35754,7 @@ function Mj({ onboarding: e, done: t }) {size: "small",onClick: () => {try {- localStorage.setItem(Tj, "1");+ localStorage.setItem(Oj, "1");} catch {}r(!0);},@@ -35753,7 +35765,7 @@ function Mj({ onboarding: e, done: t }) {})});}-function Nj({ busy: e, onRefresh: t, onImport: n }) {+function Ij({ busy: e, onRefresh: t, onImport: n }) {let r = (0, C.useRef)(null), [i, a] = (0, C.useState)(!1), o = (e) => {a(!1), e();};@@ -35763,7 +35775,7 @@ function Nj({ busy: e, onRefresh: t, onImport: n }) {"data-variant": "primary",children: [/* @__PURE__ */ (0, w.jsx)(K, {leadingIcon: Vf,- title: gj,+ title: yj,onClick: t,...X(e),children: "读取浏览器历史"@@ -35782,13 +35794,13 @@ function Nj({ busy: e, onRefresh: t, onImport: n }) {onOpenChange: a,placement: "bottom end",offset: 4,- className: GS,+ className: JS,children: /* @__PURE__ */ (0, w.jsxs)(lv, {"aria-label": "更多取得浏览记录的方式",className: "flex w-52 flex-col gap-1 outline-none",children: [/* @__PURE__ */ (0, w.jsxs)("button", {type: "button",- className: pj,+ className: gj,onClick: () => o(t),children: [/* @__PURE__ */ (0, w.jsx)(Vf, {"aria-hidden": !0,@@ -35796,7 +35808,7 @@ function Nj({ busy: e, onRefresh: t, onImport: n }) {}), "读取浏览器历史"]}), /* @__PURE__ */ (0, w.jsxs)("button", {type: "button",- className: pj,+ className: gj,onClick: () => o(n),children: [/* @__PURE__ */ (0, w.jsx)(up, {"aria-hidden": !0,@@ -35806,15 +35818,15 @@ function Nj({ busy: e, onRefresh: t, onImport: n }) {})})] });}-function Pj({ sources: e, window: t, toast: n }) {+function Lj({ sources: e, window: t, toast: n }) {let r = mt({- mutationFn: (e) => PA(e, t),+ mutationFn: (e) => LA(e, t),onSuccess: (e) => {- hh.setQueryData(DA(t), e.dashboard), n("已移除口味数据源");+ hh.setQueryData(AA(t), e.dashboard), n("已移除口味数据源");}});return /* @__PURE__ */ (0, w.jsxs)("section", {- className: mj,+ className: _j,"aria-label": "数据源",children: [/* @__PURE__ */ (0, w.jsx)("h3", {@@ -35828,7 +35840,7 @@ function Pj({ sources: e, window: t, toast: n }) {e.length ? /* @__PURE__ */ (0, w.jsx)("div", {className: "inline-grid w-full gap-2 sm:grid-cols-2",children: e.map((e) => /* @__PURE__ */ (0, w.jsxs)("div", {- className: `flex min-w-0 items-center gap-3 ${hj}`,+ className: `flex min-w-0 items-center gap-3 ${vj}`,children: [/* @__PURE__ */ (0, w.jsx)("span", {className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",@@ -35860,7 +35872,7 @@ function Pj({ sources: e, window: t, toast: n }) {onClick: () => {r.isPending || c({title: "移除口味数据源",- body: wj,+ body: Dj,confirmLabel: "移除口味数据源",onConfirm: () => r.mutateAsync(e.source_key)});@@ -35872,28 +35884,28 @@ function Pj({ sources: e, window: t, toast: n }) {shell: "plain",icon: Hf,title: "还没有数据源",- children: _j+ children: bj})]});}-function Fj(e) {+function Rj(e) {let { onSignal: t, navigate: r, toast: i, avatarInner: a, onboarding: o } = e, [s, c] = (0, C.useState)("all"), [l, u] = (0, C.useState)("browser"), d = (0, C.useRef)(null), f = pt({- queryKey: DA(s),- queryFn: ({ signal: e }) => AA(s, e),+ queryKey: AA(s),+ queryFn: ({ signal: e }) => NA(s, e),placeholderData: he- }), { job: p, running: m, outcome: h, start: g } = $S({- queryKey: OA,- queryFn: ({ signal: e }) => jA(e),- start: () => NA(s),- idlePollMs: IA,+ }), { job: p, running: m, outcome: h, start: g } = nC({+ queryKey: jA,+ queryFn: ({ signal: e }) => PA(e),+ start: () => IA(s),+ idlePollMs: zA,onFinish: (e) => {e.status !== "failed" && (hh.invalidateQueries({ queryKey: ["taste"] }), i("已更新口味分析"));}}), _ = mt({- mutationFn: (e) => FA(e),+ mutationFn: (e) => RA(e),onSuccess: (e) => {- hh.setQueryData(DA("all"), e.dashboard), c("all"), i("已导入口味数据");+ hh.setQueryData(AA("all"), e.dashboard), c("all"), i("已导入口味数据");}}), v = (e) => {let t = e.currentTarget.files?.[0];@@ -35917,31 +35929,31 @@ function Fj(e) {className: "flex flex-wrap items-center justify-between gap-3",children: [/* @__PURE__ */ (0, w.jsxs)(Gy, {"aria-label": "口味证据来源",- className: FS,+ className: RS,children: [/* @__PURE__ */ (0, w.jsx)(qy, {id: "browser",- className: IS,+ className: zS,children: "浏览器记录"}), /* @__PURE__ */ (0, w.jsx)(qy, {id: "peach",- className: IS,+ className: zS,children: "Peach 内部"})]}), /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-wrap items-center gap-2",children: [- /* @__PURE__ */ (0, w.jsx)(kT, {+ /* @__PURE__ */ (0, w.jsx)(MT, {"aria-label": "分析范围",selectedKey: s,onSelectionChange: (e) => {e !== null && c(String(e));},- children: kA.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(AT, {+ children: MA.map(([e, t]) => /* @__PURE__ */ (0, w.jsx)(NT, {id: e,children: t}, e))}),- /* @__PURE__ */ (0, w.jsx)(Nj, {+ /* @__PURE__ */ (0, w.jsx)(Ij, {busy: m || g.isPending || _.isPending,onRefresh: y,onImport: () => d.current?.click()@@ -35957,7 +35969,7 @@ function Fj(e) {]})]}),- /* @__PURE__ */ (0, w.jsx)(Mj, {+ /* @__PURE__ */ (0, w.jsx)(Fj, {onboarding: o,done: !!(x.history_sources || b.updated_at)}),@@ -35988,29 +36000,29 @@ function Fj(e) {className: "flex flex-col gap-5",children: [/* @__PURE__ */ (0, w.jsxs)("div", {- className: BS,+ className: US,children: [- /* @__PURE__ */ (0, w.jsx)(Ej, {+ /* @__PURE__ */ (0, w.jsx)(kj, {accent: 0,icon: Xf,term: "浏览记录",figure: Number(x.history_visits || 0).toLocaleString(),- detail: `${x.history_sources || 0} 个数据源 · ${LA(x.range_start)}—${LA(x.range_end)}`+ detail: `${x.history_sources || 0} 个数据源 · ${BA(x.range_start)}—${BA(x.range_end)}`}),- /* @__PURE__ */ (0, w.jsx)(Ej, {+ /* @__PURE__ */ (0, w.jsx)(kj, {accent: 1,icon: rp,term: "口味维度",figure: D.length.toLocaleString(),detail: D[0]?.name || "尚无主维度"}),- /* @__PURE__ */ (0, w.jsx)(Ej, {+ /* @__PURE__ */ (0, w.jsx)(kj, {accent: 2,icon: op,term: "浏览候选",figure: O.length.toLocaleString()}),- /* @__PURE__ */ (0, w.jsx)(Ej, {+ /* @__PURE__ */ (0, w.jsx)(kj, {accent: 3,icon: Hf,term: "私有导出",@@ -36020,7 +36032,7 @@ function Fj(e) {]}),/* @__PURE__ */ (0, w.jsxs)("section", {- className: `${mj} md:flex-row md:gap-6`,+ className: `${_j} md:flex-row md:gap-6`,"aria-label": "浏览器画像",children: [/* @__PURE__ */ (0, w.jsxs)("div", {className: "flex shrink-0 flex-col gap-2 pb-5 md:w-72 md:pr-6 md:pb-0",@@ -36029,31 +36041,31 @@ function Fj(e) {className: "text-caption-1-regular text-text-secondary",children: "浏览器画像"}),- /* @__PURE__ */ (0, w.jsx)(oj, {+ /* @__PURE__ */ (0, w.jsx)(lj, {rows: D,label: "主要口味维度"}),/* @__PURE__ */ (0, w.jsx)("small", {className: "text-caption-1-regular text-text-secondary",- children: b.updated_at ? `更新于 ${LA(b.updated_at)}` : "尚未采集浏览记录"+ children: b.updated_at ? `更新于 ${BA(b.updated_at)}` : "尚未采集浏览记录"})]}), /* @__PURE__ */ (0, w.jsx)("div", {className: "min-w-0 grow",- children: D.length ? /* @__PURE__ */ (0, w.jsx)(sj, {+ children: D.length ? /* @__PURE__ */ (0, w.jsx)(uj, {rows: D,label: "口味维度排名"}) : /* @__PURE__ */ (0, w.jsx)(uh, {shell: "plain",icon: op,title: "暂无口味维度",- children: yj+ children: Sj})})]}),- /* @__PURE__ */ (0, w.jsx)(uj, { activity: b.activity }),- /* @__PURE__ */ (0, w.jsx)(dj, { flows: b.creator_flows }),- /* @__PURE__ */ (0, w.jsx)(Aj, {+ /* @__PURE__ */ (0, w.jsx)(pj, { activity: b.activity }),+ /* @__PURE__ */ (0, w.jsx)(mj, { flows: b.creator_flows }),+ /* @__PURE__ */ (0, w.jsx)(Nj, {label: "浏览器口味维度",onSignal: t,avatarInner: a,@@ -36095,7 +36107,7 @@ function Fj(e) {rows: O,kind: "",visual: "none",- empty: bj+ empty: Cj}}]@@ -36107,28 +36119,28 @@ function Fj(e) {className: "flex flex-col gap-5",children: [/* @__PURE__ */ (0, w.jsxs)("div", {- className: BS,+ className: US,children: [- /* @__PURE__ */ (0, w.jsx)(Ej, {+ /* @__PURE__ */ (0, w.jsx)(kj, {accent: 0,icon: Kf,term: "Peach 看过",figure: Number(x.peach_items || 0).toLocaleString(),- detail: RA(x.peach_seconds || 0)+ detail: VA(x.peach_seconds || 0)}),- /* @__PURE__ */ (0, w.jsx)(Ej, {+ /* @__PURE__ */ (0, w.jsx)(kj, {accent: 1,icon: lp,term: "喜欢",figure: Number(x.liked || 0).toLocaleString()}),- /* @__PURE__ */ (0, w.jsx)(Ej, {+ /* @__PURE__ */ (0, w.jsx)(kj, {accent: 2,icon: cp,term: "不合口味",figure: Number(x.disliked || 0).toLocaleString()}),- /* @__PURE__ */ (0, w.jsx)(Ej, {+ /* @__PURE__ */ (0, w.jsx)(kj, {accent: 3,icon: rp,term: "有标签",@@ -36137,7 +36149,7 @@ function Fj(e) {]}),/* @__PURE__ */ (0, w.jsxs)("section", {- className: `${mj} md:flex-row md:gap-6`,+ className: `${_j} md:flex-row md:gap-6`,"aria-label": "Peach 观看",children: [/* @__PURE__ */ (0, w.jsxs)("div", {className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-72 md:pr-6 md:pb-0",@@ -36157,18 +36169,18 @@ function Fj(e) {]}), /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex min-w-0 grow flex-col",- children: [/* @__PURE__ */ (0, w.jsx)(Ij, {+ children: [/* @__PURE__ */ (0, w.jsx)(zj, {term: "有标签",value: k,rest: S.untagged || 0- }), /* @__PURE__ */ (0, w.jsx)(Ij, {+ }), /* @__PURE__ */ (0, w.jsx)(zj, {term: "有身份",value: A,rest: S.unidentified || 0})]})]}),- /* @__PURE__ */ (0, w.jsx)(Aj, {+ /* @__PURE__ */ (0, w.jsx)(Nj, {label: "Peach 口味维度",onSignal: t,avatarInner: a,@@ -36209,19 +36221,19 @@ function Fj(e) {})]}),- /* @__PURE__ */ (0, w.jsx)(jj, {+ /* @__PURE__ */ (0, w.jsx)(Pj, {data: b,onSignal: t,navigate: r}),- /* @__PURE__ */ (0, w.jsx)(Pj, {+ /* @__PURE__ */ (0, w.jsx)(Lj, {sources: b.sources || [],window: s,toast: i})] });}-function Ij({ term: e, value: t, rest: n }) {+function zj({ term: e, value: t, rest: n }) {let r = Math.max(t + n, 1);return /* @__PURE__ */ (0, w.jsxs)("div", {className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",@@ -36243,16 +36255,16 @@ function Ij({ term: e, value: t, rest: n }) {}//#endregion//#region src/react/entry.tsx-var Lj = null;-function Rj() {- return Lj?.isConnected || (Lj = document.createElement("div"), Lj.className = "peach-react", Lj.dataset.reactOverlays = "", document.body.append(Lj)), Lj;+var Bj = null;+function Vj() {+ return Bj?.isConnected || (Bj = document.createElement("div"), Bj.className = "peach-react", Bj.dataset.reactOverlays = "", document.body.append(Bj)), Bj;}-function zj(e) {+function Hj(e) {return (t, n) => {let r = (0, Af.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, w.jsx)(D, {client: hh,children: /* @__PURE__ */ (0, w.jsx)(Sc, {- getContainer: Rj,+ getContainer: Vj,children: /* @__PURE__ */ (0, w.jsx)(e, { ...t })})}));@@ -36262,59 +36274,59 @@ function zj(e) {};};}-var Bj = {+var Uj = {activity: {prefetch: (e, t) => wh(t),- mount: zj(Kh)+ mount: Hj(Kh)},"avatar-picker": {prefetch: async () => {},- mount: zj(Gb)+ mount: Hj(Jb)},"cover-crop": {prefetch: async () => {},- mount: zj(ix)+ mount: Hj(sx)},configuration: {- prefetch: (e, t) => mO(t),- mount: zj(ak)+ prefetch: (e, t) => _O(t),+ mount: Hj(ck)},"configuration-summary": {- prefetch: (e, t) => mO(t),- mount: zj(sk)+ prefetch: (e, t) => _O(t),+ mount: Hj(uk)},"follow-manage": {- prefetch: (e, t) => CS(t, e.tab),- mount: zj(UT)+ prefetch: (e, t) => ES(t, e.tab),+ mount: Hj(KT)},"library-processing": {- prefetch: (e, t) => qT(t),- mount: zj((e) => e.mode === "notice" ? /* @__PURE__ */ (0, w.jsx)(NE, { ...e }) : /* @__PURE__ */ (0, w.jsx)(kE, { ...e }))+ prefetch: (e, t) => XT(t),+ mount: Hj((e) => e.mode === "notice" ? /* @__PURE__ */ (0, w.jsx)(IE, { ...e }) : /* @__PURE__ */ (0, w.jsx)(ME, { ...e }))},"media-repair": {- prefetch: (e, t) => fE(t),- mount: zj(bE)+ prefetch: (e, t) => hE(t),+ mount: Hj(CE)},"quality-goals": {- prefetch: (e, t) => LE(t),- mount: zj(BE)+ prefetch: (e, t) => BE(t),+ mount: Hj(UE)},review: {- prefetch: (e, t) => gD(t),- mount: zj(VD)+ prefetch: (e, t) => yD(t),+ mount: Hj(WD)},scraping: {- prefetch: (e, t) => tO(t),- mount: zj(lO)+ prefetch: (e, t) => iO(t),+ mount: Hj(fO)},stats: {- prefetch: (e, t) => dk(t),- mount: zj(Uk)+ prefetch: (e, t) => mk(t),+ mount: Hj(Kk)},taste: {- prefetch: (e, t) => MA("all", t),- mount: zj(Fj)+ prefetch: (e, t) => FA("all", t),+ mount: Hj(Rj)}};//#endregion-export { Bj as pages };+export { Uj as pages };